mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Removed setDecimals
This commit is contained in:
parent
e907f91742
commit
bfa26634a6
|
@ -554,21 +554,6 @@ contract LendingPoolConfigurator is VersionedInitializable {
|
||||||
emit ReserveLiquidationBonusChanged(asset, bonus);
|
emit ReserveLiquidationBonusChanged(asset, bonus);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @dev updates the reserve decimals
|
|
||||||
* @param asset the address of the reserve
|
|
||||||
* @param decimals the new number of decimals
|
|
||||||
**/
|
|
||||||
function setReserveDecimals(address asset, uint256 decimals) external onlyPoolAdmin {
|
|
||||||
ReserveConfiguration.Map memory currentConfig = pool.getConfiguration(asset);
|
|
||||||
|
|
||||||
currentConfig.setDecimals(decimals);
|
|
||||||
|
|
||||||
pool.setConfiguration(asset, currentConfig.data);
|
|
||||||
|
|
||||||
emit ReserveDecimalsChanged(asset, decimals);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev sets the interest rate strategy of a reserve
|
* @dev sets the interest rate strategy of a reserve
|
||||||
* @param asset the address of the reserve
|
* @param asset the address of the reserve
|
||||||
|
|
Loading…
Reference in New Issue
Block a user