From 335b13e891aea37dc85d5748f5545d246ef4956e Mon Sep 17 00:00:00 2001 From: Hadrien Charlanes Date: Thu, 13 May 2021 21:29:18 +0200 Subject: [PATCH] review-fix: mul => percentMul in premium --- contracts/protocol/lendingpool/LendingPool.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/protocol/lendingpool/LendingPool.sol b/contracts/protocol/lendingpool/LendingPool.sol index 663c3efa..777b47bf 100644 --- a/contracts/protocol/lendingpool/LendingPool.sol +++ b/contracts/protocol/lendingpool/LendingPool.sol @@ -476,7 +476,7 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage for (vars.i = 0; vars.i < assets.length; vars.i++) { aTokenAddresses[vars.i] = _reserves[assets[vars.i]].aTokenAddress; - premiums[vars.i] = amounts[vars.i].mul(vars.flashloanPremiumTotal).div(10000); + premiums[vars.i] = amounts[vars.i].percentMul(vars.flashloanPremiumTotal); IAToken(aTokenAddresses[vars.i]).transferUnderlyingTo(receiverAddress, amounts[vars.i]); }