[vaultExit] document lack of slippage check in IKR and add shareprice slippage check force withdraw#71
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad911885ea
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2400584c24
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
# Conflicts: # src/vault-exit/VaultExitBundlesV1.sol # src/vault-exit/interfaces/IVaultExitBundlesV1.sol
| uint256 sharesBurned = sharesBefore - IERC20(vault).balanceOf(msg.sender); | ||
| require(sharesBurned == 0 || withdrawn.mulDivDown(1e27, sharesBurned) >= minSharePriceE27, SlippageExceeded()); |
fixes https://cantina.xyz/code/ded8848a-c712-49cb-a148-eca694667074/findings/13
https://cantina.xyz/code/ded8848a-c712-49cb-a148-eca694667074/findings/7
https://cantina.xyz/code/ded8848a-c712-49cb-a148-eca694667074/findings/9
https://cantina.xyz/code/ded8848a-c712-49cb-a148-eca694667074/findings/10