Skip to content
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

Merged
merged 3 commits into from
Dec 18, 2024
Merged

Conversation

gpsanant
Copy link
Contributor

@gpsanant gpsanant commented Dec 18, 2024

added a view func for converting deposit shares from withdrawable shares

@gpsanant gpsanant changed the base branch from dev to slashing-magnitudes December 18, 2024 00:28
}

// get the deposit shares
uint256[] memory oneThirdWithdrawableShares = new uint256[](strategies.length);
Copy link
Collaborator

@8sunyuan 8sunyuan Dec 18, 2024

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

Copy link
Contributor Author

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

@gpsanant gpsanant requested a review from 8sunyuan December 18, 2024 01:30
@gpsanant gpsanant force-pushed the gpsanant/add-share-helpers branch from 36e8a85 to 471497a Compare December 18, 2024 02:01
@ypatil12 ypatil12 changed the title Gpsanant/add share helpers feat: add share helpers Dec 18, 2024
@gpsanant gpsanant merged commit 1777a64 into slashing-magnitudes Dec 18, 2024
11 checks passed
@gpsanant gpsanant deleted the gpsanant/add-share-helpers branch December 18, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants