styles: prettier

This commit is contained in:
nikdementev 2021-06-19 23:20:19 +03:00
parent 0cd9e515ae
commit a46afed752
No known key found for this signature in database
GPG Key ID: 769B05D57CF16FE2

@ -22,11 +22,11 @@ async function main() {
const ethPrices = {} const ethPrices = {}
for (let i = 0; i < tokenAddresses.length; i++) { for (let i = 0; i < tokenAddresses.length; i++) {
try { try {
const isWrap = toChecksumAddress(tokenAddresses[i]) === toChecksumAddress('0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643') const isWrap =
toChecksumAddress(tokenAddresses[i]) ===
toChecksumAddress('0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643')
const price = await offchainOracle.methods const price = await offchainOracle.methods.getRateToEth(tokenAddresses[i], isWrap).call()
.getRateToEth(tokenAddresses[i], isWrap)
.call()
const numerator = toBN(oneUintAmount[i]) const numerator = toBN(oneUintAmount[i])
const denominator = toBN(10).pow(toBN(18)) // eth decimals const denominator = toBN(10).pow(toBN(18)) // eth decimals
const priceFormatted = toBN(price).mul(numerator).div(denominator) const priceFormatted = toBN(price).mul(numerator).div(denominator)