The absence of a minimum requirement check for _amount
in SmartVaultV3::mint
, SmartVaultV3::burn
, and SmartVaultV3::swap
allows a user to send a very small amount, effectively bypassing fees.
This could result in a loss of fees for the protocol. However, the likelihood of this scenario is low, given that an attacker would need to spend a significant amount of gas for multiple transactions, making it less impactful.
It's important to note that if any fees rate is decreased in the future, it could exacerbate the problem.
Implement a minimum threshold check in SmartVaultV3::mint
, SmartVaultV3::burn
, and SmartVaultV3::swap
. Example: require(_amount > 1e8)
.
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.