When a user creates a vault, where he can add collateral and in return mint EURO
tokens to himself, he is expected to pay a fee on every call to mint()
and burn()
. However if the amount is very small a user can skip paying the fees. Because of the following line in the mint()
function:
And this line in the burn()
function:
For example if the mintFeeRate()
is 500
which should represent 0.5%
according to the devs and we try to mint 199 EUROs
we won't pay any fee to the LiquidationPoolManager()
contract, which is the contract where the fees have to be sent to. When we put numbers in the formula we get the following 199 * 500 / 100000
which is 0
.
After following the steps in the above provided gist, add the following test to the AuditorTestst.t.sol
:
Protocol looses some small fees.
Manual Review & Foundry
Add a minimum amount that can be minted for example 1e18
EUROs
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.