mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: Removed some comments
This commit is contained in:
parent
e36a2f0e21
commit
27ec584490
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user