These functions are called by users when they want to mint and burn their KittyCoin
. The stablecoin of the KittyFi protocol is pegged to EUR and can be minted by supplying collateral and minting via KittyPool. However, some checks are missing leading to potentially compromising the functionality and security smart contract.
In the KittyCoin::burn
function without the Check for the burn amount exceeding the balance, it could lead to unexpected errors and reverts deeper in the call stack, which is harder to debug and handle.
Result:
In the KittyCoin::mint
function allowing operations with _amount = 0
wastes gas and clutters the blockchain with unnecessary transactions.
Manually
foundry
To ensure robust and secure smart contract development, it is essential to include thorough checks for input validation. This not only prevents potential security vulnerabilities but also improves the overall reliability and user experience of the contract.
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.