Fixed token symbol formatting
This commit is contained in:
parent
3271e88b13
commit
15b7967c03
@ -46,7 +46,7 @@ export class TokenPriceOracle {
|
|||||||
return prices.reduce((acc, price, index) => {
|
return prices.reduce((acc, price, index) => {
|
||||||
const tokenPriceInwei = (price * BigInt(10 ** tokens[index].decimals)) / BigInt(10 ** 18);
|
const tokenPriceInwei = (price * BigInt(10 ** tokens[index].decimals)) / BigInt(10 ** 18);
|
||||||
|
|
||||||
acc[tokens[index].symbol] = tokenPriceInwei.toString();
|
acc[tokens[index].symbol.toLowerCase()] = tokenPriceInwei.toString();
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
}, {} as TokenPrices);
|
}, {} as TokenPrices);
|
||||||
|
Loading…
Reference in New Issue
Block a user