The executeWhiskdrawal
function lacks proper checks to ensure that the user has sufficient balance (in terms of cattyNip
) before allowing the withdrawal. This can lead to a situation where users can withdraw more than they have, potentially draining the balance of the protocol.
This issue can lead to a complete drain of the protocol's funds, as users could withdraw more than their fair share of the collateral, leading to financial loss for other users and the protocol itself.
Manual Review
To mitigate this issue, add a check to ensure that the user has sufficient cattyNip
balance before allowing the withdrawal. This can be done by comparing the _cattyNipToWithdraw
with the user's current cattyNip
balance.
Here is an updated version of the executeWhiskdrawal
function with the necessary balance check:
}
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.