Skip to content

Commit

Permalink
fix: use cache.lastUpdatedTimestamp (aave-dao#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Oct 16, 2024
1 parent 26b632d commit da89365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contracts/protocol/libraries/logic/ReserveLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ library ReserveLogic {
) internal {
// If time didn't pass since last stored timestamp, skip state update
//solium-disable-next-line
if (reserve.lastUpdateTimestamp == uint40(block.timestamp)) {
if (reserveCache.reserveLastUpdateTimestamp == uint40(block.timestamp)) {
return;
}

Expand Down

0 comments on commit da89365

Please sign in to comment.