Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: high
Invalid

Use of Parllel data structures can cause critical bug.

Summary

The use of parllel data structures in LendingVault.sol can cause the bug .

Vulnerability Details

// Mapping of borrowers to borrowers struct
   mapping(address => Borrower) public borrowers;

Impact

The bug can occur when we update the state of any struct variable but forget to update the mapping.

Tools Used

Manual Review .

Resource

Owen Thrum security course

Recommendations

You can use Enummerable mapping from openzepplin to iterate over things in a mapping .

Updates

Lead Judging Commences

hans Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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