HardhatDeFi
15,000 USDC
View results
Submission Details
Severity: low
Invalid

Inefficient Deployment of a New WToken for Each Collateral Token

Summary

The _registerCollateralToken function deploys a new wToken contract each time a collateral token is registered. This approach is inefficient because
- Each deployment costs extra gas, increasing transaction costs.
- Contracts are immutable meaning any upgrade or modification requires deploying new instances
- Storage grows unnecessarily, increasing the blockchain state size.

Impact

  • Gas costs Increase significantly for each registered token

  • Cannot reuse logic, making upgrades and maintenance harder.

  • Unnecessary contract deployments make the system less efficient

Tools Used

Manual Review

Recommendations

Use a WToken Factory

Updates

Lead Judging Commences

bube Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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