mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: Addded decimals in borrowCap require
This commit is contained in:
parent
7e02877966
commit
05ca0c4ed1
|
@ -166,6 +166,7 @@ library ValidationLogic {
|
||||||
vars.totalSupplyStableDebt
|
vars.totalSupplyStableDebt
|
||||||
.add(vars.totalSupplyVariableDebt)
|
.add(vars.totalSupplyVariableDebt)
|
||||||
.add(amount)
|
.add(amount)
|
||||||
|
.div(10 ** reserve.configuration.getDecimals())
|
||||||
< reserve.configuration.getBorrowCap(),
|
< reserve.configuration.getBorrowCap(),
|
||||||
Errors.VL_BORROW_CAP_EXCEEDED);
|
Errors.VL_BORROW_CAP_EXCEEDED);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user