-
Notifications
You must be signed in to change notification settings - Fork 208
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
remove uneeded casting, refractor transfer from mint #461
Conversation
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you! |
i dont think we can remove the address err check in redeemstake and liquidstake without fixing the test cases right now |
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.
Thanks for opening this! I agree on moving the code out of the else statement.
Can you elaborate on the motivation behind moving the transfer out of the mint function? If it's because the name is unclear, you could just rename it to MintAndTransferStAsset
i think that function should only have 1 responsibility that is minting as it describe, the transfer should be moving out of the funtion. Hmmm but yeah rename it would be clearer too |
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
Base on 2 approves, i will merge the PR |
Co-authored-by: Son Trinh <sontrinh@Sons-MacBook-Pro.local>
Closes: #422
Context and purpose of the change
Fix some audited coding style
Author's Checklist
I have...