diff --git a/contracts/protocol/tokenization/StaticATokenLM.sol b/contracts/protocol/tokenization/StaticATokenLM.sol index ca0d3418..f6051c0b 100644 --- a/contracts/protocol/tokenization/StaticATokenLM.sol +++ b/contracts/protocol/tokenization/StaticATokenLM.sol @@ -547,15 +547,12 @@ contract StaticATokenLM is ERC20 { return 0; } - // TODO: This could retrieve the last such that we know the most up to date stuff :eyes: - // Compute the pending rewards in ray, rounded down. uint256 rayBalance = balance.wadToRay(); uint256 _supply = totalSupply(); uint256 _rewardIndex = rewardIndex; if (_supply != 0 && fresh) { - // Done purely virtually, this is used for retrieving up to date rewards for the ui address[] memory assets = new address[](1); assets[0] = address(ATOKEN); diff --git a/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts b/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts index 1c2ff0c9..4d16f5c2 100644 --- a/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts +++ b/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts @@ -1045,11 +1045,6 @@ describe('StaticATokenLM: aToken wrapper with static balances and liquidity mini expect(ctxtAfterWithdrawal.staticATokenTotalClaimableRewards).to.be.gte( ctxtAfterWithdrawal.user2PendingRewards ); - console.log('All the way down here'); - - console.log(`${formatEther(ctxtAfterClaim.staticATokenTotalClaimableRewards)}`); - console.log(`${formatEther(ctxtAfterClaim.user2StkAaveBalance)}`); - console.log(`${formatEther(ctxtAfterClaim.staticATokenStkAaveBalance)}`); expect(ctxtAfterClaim.userStkAaveBalance).to.be.eq(0); expect(ctxtAfterClaim.user2StkAaveBalance).to.be.eq(ctxtAfterWithdrawal.user2PendingRewards);