Skip to content

Enforce ERC4626 previews on wrapper#260

Merged
kexleyBeefy merged 2 commits intomasterfrom
fix-wrapper
Mar 24, 2025
Merged

Enforce ERC4626 previews on wrapper#260
kexleyBeefy merged 2 commits intomasterfrom
fix-wrapper

Conversation

@kexleyBeefy
Copy link
Member

Switching out the conversion functions to reflect what the Beefy vault actually does and also enforce the depositing/withdrawing to always be the same as the previews.

Wrapped vaults need to not change ppfs on deposits, i.e. excludes most HoD vaults without profit locking. That also goes for vaults like Compound which update the conversion rate on interaction with the vault.

@kexleyBeefy kexleyBeefy merged commit 3012926 into master Mar 24, 2025
1 check failed
@kexleyBeefy kexleyBeefy deleted the fix-wrapper branch March 24, 2025 18:59
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.

1 participant