This commit is contained in:
poma 2020-10-03 10:02:38 +03:00
parent 00e17b1687
commit 5328178d65
No known key found for this signature in database
GPG key ID: BA20CB01FE165657
4 changed files with 24 additions and 22 deletions

View file

@ -89,7 +89,7 @@ async function checkTornadoFee({ args, contract }) {
async function checkMiningFee({ args }) {
const swap = new web3.eth.Contract(swapABI, swapAddress)
const TornAmount = await swap.getExpectedReturn(args.fee).call()
const TornAmount = await swap.methods.getExpectedReturn(args.fee).call()
console.log('TornAmount', TornAmount)
// todo: use desired torn/eth rate and compute the same way as in tornado