Skip to content

Commit

Permalink
fix: Remove unneeded local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Jan 7, 2022
1 parent 153e74e commit a718549
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions contracts/protocol/pool/PoolConfigurator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,8 @@ contract PoolConfigurator is VersionedInitializable, IPoolConfigurator {
newFlashloanPremiumTotal <= PercentageMath.PERCENTAGE_FACTOR,
Errors.FLASHLOAN_PREMIUM_INVALID
);
uint256 premiumToProtocol = _pool.FLASHLOAN_PREMIUM_TO_PROTOCOL();
uint256 oldFlashloanPremiumTotal = _pool.FLASHLOAN_PREMIUM_TOTAL();
_pool.updateFlashloanPremiums(newFlashloanPremiumTotal, premiumToProtocol);
_pool.updateFlashloanPremiums(newFlashloanPremiumTotal, _pool.FLASHLOAN_PREMIUM_TO_PROTOCOL());
emit FlashloanPremiumTotalUpdated(oldFlashloanPremiumTotal, newFlashloanPremiumTotal);
}

Expand All @@ -416,9 +415,8 @@ contract PoolConfigurator is VersionedInitializable, IPoolConfigurator {
newFlashloanPremiumToProtocol <= PercentageMath.PERCENTAGE_FACTOR,
Errors.FLASHLOAN_PREMIUM_INVALID
);
uint256 premiumTotal = _pool.FLASHLOAN_PREMIUM_TOTAL();
uint256 oldFlashloanPremiumToProtocol = _pool.FLASHLOAN_PREMIUM_TO_PROTOCOL();
_pool.updateFlashloanPremiums(premiumTotal, newFlashloanPremiumToProtocol);
_pool.updateFlashloanPremiums(_pool.FLASHLOAN_PREMIUM_TOTAL(), newFlashloanPremiumToProtocol);
emit FlashloanPremiumToProtocolUpdated(
oldFlashloanPremiumToProtocol,
newFlashloanPremiumToProtocol
Expand Down

0 comments on commit a718549

Please sign in to comment.