Skip to content

Feature/728 slippage protection vaults - #826

Merged
p3ris0n merged 2 commits into
BCPathway:mainfrom
rabsqueen:feature/728-slippage-protection-vaults
Aug 28, 2026
Merged

Feature/728 slippage protection vaults#826
p3ris0n merged 2 commits into
BCPathway:mainfrom
rabsqueen:feature/728-slippage-protection-vaults

Conversation

@rabsqueen

@rabsqueen rabsqueen commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

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

@p3ris0n
p3ris0n merged commit b063958 into BCPathway:main Aug 28, 2026
2 of 3 checks passed
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