fix torn rate

This commit is contained in:
Danil Kovtonyuk 2021-02-10 03:14:37 +10:00 committed by Alexey Pertsev
parent 273603e981
commit c9ecd0a9e8
6 changed files with 12 additions and 7 deletions

View file

@ -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 = {}