User input zero amount when call meowintKittyCoin(uint256 _ameownt)
, Nothing changed, but still pay gas.
input _ameownt as zero, the function will still be executed, Nothing changed, but still pay gas.
POC
as forge gas report, the invalid execution cost gas.
src/KittyPool.sol:KittyPool contract Deployment Cost Deployment Size 2408727 11603 Function Name min avg median max # calls depawsitMeowllateral 173650 173650 173650 173650 1 getKittyCoin 250 250 250 250 1 getTokenToVault 592 592 592 592 1 meowintKittyCoin 133945 133945 133945 133945 1 meownufactureKittyVault 997863 997863 997863 997863 1
Manual
Check _ameownt, must greater then zero.
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.