Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

RedeemIntoEther: Return excess base Set to the user #451

Merged
merged 2 commits into from
Mar 26, 2019

Conversation

felix2feng
Copy link
Contributor

Remove the check that base Set quantity must be the implied quantity from the rebalancing Set in favor of returning dust to the end user.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5381

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 5368: 0.0%
Covered Lines: 1003
Relevant Lines: 1003

💛 - Coveralls

@felix2feng felix2feng merged commit a0b1626 into master Mar 26, 2019
@felix2feng felix2feng deleted the felix/return-base-set branch March 26, 2019 02:16
@@ -183,7 +183,7 @@ contract RebalancingSetExchangeIssuanceModule is
);

// Send excess base Set and ether to the user
returnExcessFunds(baseSetAddress);
returnIssuanceExcessFunds(baseSetAddress);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: weird grammar. returnExcessIssuanceFunds

@@ -661,6 +662,56 @@ contract('RebalancingSetExchangeIssuanceModule', accounts => {
});
});

describe('when the implied base Set quantity is greater than the issuance params base Set quantity', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we call it implied base set quantity? can we be clearer about the explanation here and in the comments?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants