fix: Removed some comments

This commit is contained in:
Lasse Herskind 2021-06-03 16:06:23 +02:00
parent e36a2f0e21
commit 27ec584490
2 changed files with 0 additions and 8 deletions

View File

@ -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);

View File

@ -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);