mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-07-23 23:11:21 -04:00
styles: prettier
This commit is contained in:
parent
0cd9e515ae
commit
a46afed752
1 changed files with 4 additions and 4 deletions
|
@ -22,11 +22,11 @@ async function main() {
|
|||
const ethPrices = {}
|
||||
for (let i = 0; i < tokenAddresses.length; i++) {
|
||||
try {
|
||||
const isWrap = toChecksumAddress(tokenAddresses[i]) === toChecksumAddress('0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643')
|
||||
const isWrap =
|
||||
toChecksumAddress(tokenAddresses[i]) ===
|
||||
toChecksumAddress('0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643')
|
||||
|
||||
const price = await offchainOracle.methods
|
||||
.getRateToEth(tokenAddresses[i], isWrap)
|
||||
.call()
|
||||
const price = await offchainOracle.methods.getRateToEth(tokenAddresses[i], isWrap).call()
|
||||
const numerator = toBN(oneUintAmount[i])
|
||||
const denominator = toBN(10).pow(toBN(18)) // eth decimals
|
||||
const priceFormatted = toBN(price).mul(numerator).div(denominator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue