Skip to content

Feature/728 slippage protection vaults - #826

Open
rabsqueen wants to merge 2 commits into
BCPathway:mainfrom
rabsqueen:feature/728-slippage-protection-vaults
Open

Feature/728 slippage protection vaults#826
rabsqueen wants to merge 2 commits into
BCPathway:mainfrom
rabsqueen:feature/728-slippage-protection-vaults

Conversation

@rabsqueen

@rabsqueen rabsqueen commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Implements user-configurable slippage protection for the Yield-Bearing Fee Vault, allowing users to specify the minimum amount they are willing to receive from deposits and withdrawals.

Depositors can provide min_shares_out, while withdrawers can provide min_tokens_out. If the calculated output falls below the specified minimum, the transaction reverts instead of executing at an unfavorable rate.

What Changed
📥 Deposit Slippage Protection
min_shares_out

Result

The Yield-Bearing Fee Vault now provides user-controlled slippage protection for deposits and withdrawals.

Users can define the minimum acceptable output for each operation, preventing unexpected vault-state changes or conversion-rate movements from resulting in an execution that falls below their specified tolerance.

Closes #728

@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@rabsqueen Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@p3ris0n

p3ris0n commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

@rabsqueen please fix CI

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.

[Math] Slippage protection for deposits/withdrawals

2 participants