Skip to content

[vaultExit] document lack of slippage check in IKR and add shareprice slippage check force withdraw#71

Merged
bhargavbh merged 12 commits into
mainfrom
feat/maxBurnedShares
Jul 24, 2026
Merged

[vaultExit] document lack of slippage check in IKR and add shareprice slippage check force withdraw#71
bhargavbh merged 12 commits into
mainfrom
feat/maxBurnedShares

Conversation

@bhargavbh

@bhargavbh bhargavbh commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@bhargavbh
bhargavbh marked this pull request as draft July 20, 2026 08:01

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/vault-exit/VaultExitBundlesV1.sol Outdated
@bhargavbh
bhargavbh marked this pull request as ready for review July 22, 2026 07:16
@bhargavbh bhargavbh changed the title [vaultExit] add a maxBurnedShares slippage check for IKR and force withdraw [vaultExit] document lack of slippage check in IKR and add shareprice slippage check force withdraw Jul 23, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/vault-exit/VaultExitBundlesV1.sol Outdated
@bhargavbh
bhargavbh requested review from MathisGD and QGarchery July 23, 2026 15:19
@QGarchery QGarchery changed the title [vaultExit] document lack of slippage check in IKR and add shareprice slippage check force withdraw [vaultExit] slippage check in IKR and add shareprice slippage check force withdraw Jul 24, 2026
@QGarchery QGarchery changed the title [vaultExit] slippage check in IKR and add shareprice slippage check force withdraw [vaultExit] document lack of slippage check in IKR and add shareprice slippage check force withdraw Jul 24, 2026
Comment thread src/vault-exit/VaultExitBundlesV1.sol
Comment thread src/vault-exit/VaultExitBundlesV1.sol
Comment thread src/vault-exit/interfaces/IVaultExitBundlesV1.sol
@bhargavbh bhargavbh self-assigned this Jul 24, 2026
# Conflicts:
#	src/vault-exit/VaultExitBundlesV1.sol
#	src/vault-exit/interfaces/IVaultExitBundlesV1.sol
@bhargavbh
bhargavbh merged commit d5dc4c6 into main Jul 24, 2026
9 checks passed
@bhargavbh
bhargavbh deleted the feat/maxBurnedShares branch July 24, 2026 17:28
Comment on lines +226 to +227
uint256 sharesBurned = sharesBefore - IERC20(vault).balanceOf(msg.sender);
require(sharesBurned == 0 || withdrawn.mulDivDown(1e27, sharesBurned) >= minSharePriceE27, SlippageExceeded());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"TotalSharesBurnt"

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