A user can mint as many times and as much KittyCoin
as she wants if her collateral balance in the pool is not zero.
the kittypool::meowintKittyCoin
can be called as long as KittyPool::_hasEnoughMeowllateral
returns true hence an attacker can deposit little collateral and continue to mint smaller amount of KittyCoin
in a loop and then withdraws her collateral back from the vault. this can be done in one transaction by using loop, deposit and withdraw functions.
```solidi`ty
function test_userDepositsCollateralMintsKittyCoinAndWithdrawCollateral() public
{
uint256 withdrawAmount = 5 ether;
loss of funds for the protocol
manual review
foundry test
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.