mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
review-fix: mul => percentMul in premium
This commit is contained in:
parent
a24a09a2bf
commit
335b13e891
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user