-
Notifications
You must be signed in to change notification settings - Fork 346
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 share helpers #964
Conversation
} | ||
|
||
// get the deposit shares | ||
uint256[] memory oneThirdWithdrawableShares = new uint256[](strategies.length); |
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.
Not quite sure why this is being done here in the helper
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.
it's just to make sure the thing properly scales down as well when called with smaller values that the max amount of shares
36e8a85
to
471497a
Compare
added a view func for converting deposit shares from withdrawable shares