Skip to content

Commit

Permalink
update timestamp check
Browse files Browse the repository at this point in the history
  • Loading branch information
haythemsellami committed Jun 4, 2024
1 parent 3320087 commit c065a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FourSixTwoSixAgg.sol
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ contract FourSixTwoSixAgg is BalanceForwarder, EVCUtil, ERC4626, AccessControlEn
/// @param to Address receiving the amount
function _afterTokenTransfer(address from, address to, uint256 /*amount*/ ) internal override {
if (from == to) return;

if ((from != address(0)) && (isBalanceForwarderEnabled[from])) {
balanceTracker.balanceTrackerHook(from, super.balanceOf(from), false);
}
Expand All @@ -700,7 +700,7 @@ contract FourSixTwoSixAgg is BalanceForwarder, EVCUtil, ERC4626, AccessControlEn
/// @return uint256 accrued interest
function _interestAccruedFromCache(ESRSlot memory esrSlotCache) internal view returns (uint256) {
// If distribution ended, full amount is accrued
if (block.timestamp > esrSlotCache.interestSmearEnd) {
if (block.timestamp >= esrSlotCache.interestSmearEnd) {
return esrSlotCache.interestLeft;
}

Expand Down

0 comments on commit c065a0d

Please sign in to comment.