-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RedeemPool, Redeemer proxy contract and tests #790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice code 👍 .
I scanned through the contract code only, will go through the tests as well, providing the feedback so that you can be unblocked.
Maybe you want to consider implementing the proxy pattern for RedeemProxy to reduce the gas consumption. #773
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Very minor cosmetic changes, please see inline.
test_integration/03_redeem_and_unstake/02_redeem_and_unstake_with_redeem_composer.js
Outdated
Show resolved
Hide resolved
test_integration/03_redeem_and_unstake/utils/accept_redeem_assertion.js
Outdated
Show resolved
Hide resolved
test_integration/03_redeem_and_unstake/utils/request_redeem_assertion.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💯
fixes #788
This PR implements
Redeem Composer
,Redeemer proxy contract
and integration of redeem flow with redeem composer.These contracts are similar to OST composer and Staker proxy, however there are few deviations.
stakeRequest
mapping in the OST composer contract seems redundant. I haven't added this storage in Redeem composer contracthttps://github.com/mosaicdao/mosaic-contracts/blob/45023774d47ab8322bfb8cb495175fdf62b8a509/contracts/gateway/OSTComposer.sol#L83
AceeptRedeemRequest
is a payable function.