Skip to content

Commit

Permalink
fix: Remove unused variable + readability
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Oct 1, 2021
1 parent dcbb583 commit 00c2e66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion contracts/protocol/libraries/math/MathUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ library MathUtils {

uint256 expMinusOne;
uint256 expMinusTwo;
uint256 ratePerSecond;
uint256 basePowerTwo;
uint256 basePowerThree;
unchecked {
Expand Down
2 changes: 1 addition & 1 deletion contracts/protocol/pool/Pool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ contract Pool is VersionedInitializable, IPool, PoolStorage {
uint256 accruedToTreasury = reserve.accruedToTreasury;

if (accruedToTreasury != 0) {
reserve.accruedToTreasury = 0;
uint256 normalizedIncome = reserve.getNormalizedIncome();
uint256 amountToMint = accruedToTreasury.rayMul(normalizedIncome);
reserve.accruedToTreasury = 0;
IAToken(reserve.aTokenAddress).mintToTreasury(amountToMint, normalizedIncome);

emit MintedToTreasury(assetAddress, amountToMint);
Expand Down

0 comments on commit 00c2e66

Please sign in to comment.