mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-15 01:25:33 -04:00
fix torn rate
This commit is contained in:
parent
273603e981
commit
c9ecd0a9e8
6 changed files with 12 additions and 7 deletions
11
src/utils.js
11
src/utils.js
|
@ -2,6 +2,12 @@ const { instances, netId } = require('./config')
|
|||
const { poseidon } = require('circomlib')
|
||||
const { toBN, toChecksumAddress, BN } = require('web3-utils')
|
||||
|
||||
const TORN_TOKEN = {
|
||||
tokenAddress: '0x77777feddddffc19ff86db637967013e6c6a116c',
|
||||
symbol: 'TORN',
|
||||
decimals: 18,
|
||||
}
|
||||
|
||||
const sleep = ms => new Promise(res => setTimeout(res, ms))
|
||||
|
||||
function getInstance(address) {
|
||||
|
@ -44,7 +50,10 @@ function when(source, event) {
|
|||
}
|
||||
|
||||
function getArgsForOracle() {
|
||||
const tokens = instances.netId1
|
||||
const tokens = {
|
||||
...instances.netId1,
|
||||
torn: TORN_TOKEN,
|
||||
}
|
||||
const tokenAddresses = []
|
||||
const oneUintAmount = []
|
||||
const currencyLookup = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue