-
Notifications
You must be signed in to change notification settings - Fork 170
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
feat: add SupplyFromModule and WithdrawFromModule to leverage #2170
Conversation
Note: @kosegor could you regenerate the mock keepers using whichever mock gen you used originally? I changed the leverage keeper's signature. |
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.
pre-approving. Let's move the error in the return params to the last position
pushed regenerated mocks |
* reserves and interest refeactored * tests adapted (not working yet) * endblock funcs * Update x/metoken/keeper/redeem.go Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> * adam comments * fix mocks * safeguard for transferring dust * robert comments * fix * safer exit when asset not found * imports * feat: add SupplyFromModule and WithdrawFromModule to leverage (#2170) * add module-based supply and withdraw to leverage module * cl++ * change return order * godoc++ and function order * mocks * mocks --------- Co-authored-by: Egor Kostetskiy <kosegor@gmail.com> * new integration with x/leverage * fix after merge from main * unit mocks * fix * better logs * couple more comments --------- Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com>
This is meant to be merged into the metoken endblocker branch
It allows created
SupplyFromModule
andWithdrawFromModule
which distinguish recoverable from nonrecoverable errors, and allows module-specific logic to be used in these functions in the future.