This commit is contained in:
poma 2021-03-11 23:40:14 +03:00
parent f521ef6703
commit 91975bc778
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

View File

@ -1,7 +1,7 @@
require('dotenv').config() require('dotenv').config()
const fs = require('fs') const fs = require('fs')
const ethers = require('ethers') const ethers = require('ethers')
const { formatUnits } = ethers.utils const { formatUnits, commify } = ethers.utils
const { deploy, getContractData } = require('./utils') const { deploy, getContractData } = require('./utils')
const { DEPLOYER, SALT, HASHER, VERIFIER, COMP_ADDRESS } = process.env const { DEPLOYER, SALT, HASHER, VERIFIER, COMP_ADDRESS } = process.env
@ -67,10 +67,10 @@ for (const instance of instances) {
domain: instance.domain, domain: instance.domain,
contract: instance.isETH ? ethTornado : instance.isCToken ? compTornado : ercTornado, contract: instance.isETH ? ethTornado : instance.isCToken ? compTornado : ercTornado,
args, args,
title: `New Tornado.cash pool for ${formatUnits(instance.denomination, instance.decimals).replace(/\.0$/, '')} of ${ title: `Tornado.cash instance for ${commify(formatUnits(instance.denomination, instance.decimals)).replace(/\.0$/, '')} of ${
instance.symbol instance.symbol
}`, }`,
description: `Tornado cash instance for ${formatUnits(instance.denomination, instance.decimals).replace(/\.0$/, '')} of ${ description: `Tornado cash instance for ${commify(formatUnits(instance.denomination, instance.decimals)).replace(/\.0$/, '')} of ${
instance.symbol instance.symbol
}${instance.isETH ? '' : ` at address ${instance.tokenAddress}`}`, }${instance.isETH ? '' : ` at address ${instance.tokenAddress}`}`,
}), }),