Suppliers are minted a wrong amount which results in them immediately being in profit
Upon users supplying, we reach RToken::mint()
where we have the following line:
We mint the amountToMint
value which is actually the amount of assets the user supplies. This is incorrect as we should be minting a scaled value.
This results in the suppliers immediately being in profit:
Index is 1.5 and user supplies 100 tokens
We mint him 100 tokens
As the index is 1.5, the user is owed 150 tokens
Suppliers are immediately in profit
Manual Review
Divide by index first
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.