Fixed token symbol formatting

This commit is contained in:
Tornado Contrib 2024-05-12 20:52:26 +00:00
parent 3271e88b13
commit 15b7967c03
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1

@ -46,7 +46,7 @@ export class TokenPriceOracle {
return prices.reduce((acc, price, index) => {
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;
}, {} as TokenPrices);