First Flight #21: KittyFi

First Flight #21
Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

Private `KittyCoin::pool` variable initialization

Description: The KittyCoin::pool address is set only during contract deployment and cannot be changed thereafter. The pool address is set only once during contract initialization. If this address needs to be changed (e.g., due to a key compromise or pool upgrade), there is no way to do so.

Impact: Inability to update the pool address in case of an emergency, leading to potential loss of control over minting and burning capabilities.

Recommended Mitigation: Introduce a function to update the pool address with appropriate access control.

function setPool(address _newPool) external onlyKittyPool {
require(_newPool != address(0), "Invalid address");
pool = _newPool;
}
Updates

Lead Judging Commences

shikhar229169 Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.