20,000 USDC
View results
Submission Details
Severity: gas

Add previous values to the events

Summary

Add previous values to the events

Vulnerability Details

File: src/Lender.sol
13: event PoolBalanceUpdated(bytes32 indexed poolId, uint256 newBalance);
14: event PoolInterestRateUpdated(
bytes32 indexed poolId,
uint256 newInterestRate
);
18: event PoolMaxLoanRatioUpdated(
bytes32 indexed poolId,
uint256 newMaxLoanRatio
);

Link to code - https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L13-L21

Tools Used

Code Review

Recommendations

Add previous values to the events

Auditor

NeoCrao

Support

FAQs

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

Give us feedback!