mirror of
https://github.com/Instadapp/dsa-governance.git
synced 2024-07-29 22:27:52 +00:00
fix
This commit is contained in:
parent
bdfc3c1f54
commit
0ad1cfd8b9
|
@ -987,7 +987,7 @@ contract PayloadIGP30 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRawAmount(address token, uint256 amountInUSD, bool isSupply) public returns(uint256){
|
function getRawAmount(address token, uint256 amountInUSD, bool isSupply) public view returns(uint256){
|
||||||
uint256 exchangePriceAndConfig_ =
|
uint256 exchangePriceAndConfig_ =
|
||||||
LIQUIDITY.readFromStorage(
|
LIQUIDITY.readFromStorage(
|
||||||
LiquiditySlotsLink.calculateMappingStorageSlot(
|
LiquiditySlotsLink.calculateMappingStorageSlot(
|
||||||
|
@ -1003,16 +1003,16 @@ contract PayloadIGP30 {
|
||||||
if (token == wBTC_ADDRESS) {
|
if (token == wBTC_ADDRESS) {
|
||||||
usdPrice = 61_000;
|
usdPrice = 61_000;
|
||||||
decimals = 8;
|
decimals = 8;
|
||||||
} if (token == ETH_ADDRESS) {
|
} else if (token == ETH_ADDRESS) {
|
||||||
usdPrice = 3_400;
|
usdPrice = 3_400;
|
||||||
decimals = 18;
|
decimals = 18;
|
||||||
} if (token == wstETH_ADDRESS) {
|
} else if (token == wstETH_ADDRESS) {
|
||||||
usdPrice = 4_000;
|
usdPrice = 4_000;
|
||||||
decimals = 18;
|
decimals = 18;
|
||||||
} if (token == weETH_ADDRESS) {
|
} else if (token == weETH_ADDRESS) {
|
||||||
usdPrice = 3_550;
|
usdPrice = 3_550;
|
||||||
decimals = 18;
|
decimals = 18;
|
||||||
} if (token == USDC_ADDRESS || token == USDT_ADDRESS) {
|
} else if (token == USDC_ADDRESS || token == USDT_ADDRESS) {
|
||||||
usdPrice = 1;
|
usdPrice = 1;
|
||||||
decimals = 6;
|
decimals = 6;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user