Fees in a vault are not stored locally but are requested from the manager when a user performs actions such as swapping, minting, or burning. If the manager changes the fee rates before a user interacts with the vault, the user may end up paying more fees than expected. This situation is analogous to a user taking a fixed loan, and the bank unilaterally decides to increase the interest rate.
Users may lose more money than anticipated with a new minting.
A burn fee that is too high can prevent a user from repaying.
Potential for abuse if the protocol team is considered untrusted, allowing for front-running scenarios where the protocol team exploits fee changes just before a user interacts with the vault.
Set burn fee rates in the vault at its creation. This not only prevents the described vulnerability but also consumes less gas.
If possible, implement a similar mechanism for swapping and minting fees. Alternatively, warn users well in advance about potential increases in minting and swapping fees.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.