Skip to content

Add closeWithCollateral to SIP-135#1496

Merged
barrasso merged 13 commits intomeb-short-refactorfrom
repay-and-close
Sep 8, 2021
Merged

Add closeWithCollateral to SIP-135#1496
barrasso merged 13 commits intomeb-short-refactorfrom
repay-and-close

Conversation

@barrasso
Copy link
Copy Markdown
Contributor

@barrasso barrasso commented Sep 6, 2021

This allows users to close their short when repaying with collateral.

  • Added tests for the closeWithCollateral function that repays the loan in full, records it as closed, and transfers the remaining collateral back to the borrower.
  • Removed the payInterest flag -> pay back the accruedInterest in all cases.

@barrasso barrasso requested a review from jacko125 September 6, 2021 04:21
@jjgonecrypto jjgonecrypto changed the title Add repayAndClose Add repayAndClose to SIP-135 Sep 6, 2021
@barrasso barrasso changed the title Add repayAndClose to SIP-135 Add closeWithCollateral to SIP-135 Sep 8, 2021
@barrasso barrasso merged commit fa160ff into meb-short-refactor Sep 8, 2021
@barrasso barrasso deleted the repay-and-close branch September 8, 2021 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants