First Flight #21: KittyFi

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

Inefficient Storage of `KittyCoin::pool` address

Description: There is the issue of storing the address of the KittyCoin::pool in the contract.

Impact: Storing the pool address in a private state variable costs more gas than storing it in an immutable state variable, which would only store it once during deployment.

Recommended Mitigation: Use an immutable state variable for the pool address.

address private immutable pool;
constructor(address _pool) ERC20("Kitty Token", "MEOWDY") {
pool = _pool;
}
Updates

Lead Judging Commences

shikhar229169 Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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