-
Notifications
You must be signed in to change notification settings - Fork 34
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
fix(reallocate): prevent slippage #298
Conversation
c0fd883
to
07e00ba
Compare
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.
Back to the good old days?
replaced by #307 |
It is based on it! The 2 PRs don't address the same issue |
ah you're right, can you update it then? |
…o fix/prevent-slippage
/// @notice The amount of shares to allocate. | ||
uint256 shares; |
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.
We should also change the dev comment above the struct @MerlinEgalite
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.
cc @Rubilmax
reallocate
#296This PR protects the allocator from bearing slippage by simply not allowing to withdraw/supply shares. The allocator can still withdraw all from a market by passing
type(uint256).max