runLiquidation
is not burning enough EUROs
at liquidation of SmartVault
which will lead to undercollateralization
When there is liquidation
of a vault, we are setting minted = 0
then we should burn the amount of EUROs
that vault had minted inorder to keep the protocol overcollateralized . We are taking % of EUROs from all the stakers to cover that minted EUROs, but that is not equal to the amount of minted EUROs in liquidated vault
Here is how this will work(POC)
User deposited 1 eth at 1000 usd price
maxMintable will be 833.3 euro at 120% collateralRate and at 1.0 conversion rate from usd to euro(for simplicity)
User max minted his euros ie 833.3
Price of eth dropped by 10% to 900 usd and vault became undercollateralized
Above 4 points can be anything but the core is vault should be undercolleralized
Now, there are 2 staker in LiquidityPool, S1 has 1000 TST & 2000 EUROs while S2 has 4000 TST & 3000 EUROs
portion
that S1 will get is 1/4 ie 25% of 1 eth, similarly S2 will get 3/4 of 1 eth
costInEuro
for that portion of S1 will be 187.5 euro while for S2 will be 562.5 euro
total euro that stakers are giving is 187.5 + 562.5 = 750 euros, but vault have minted 833.3 euro which is ~10% less
Every time a vault will be liquidated, this will happen
We'll have more EUROs minted than backing it, system will eventually become overcollateralized
Manual Review
One thing that can be done is to reduce discount that stakers are receiving or protocol can pay the extra 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.