From 91975bc7781adb60ae72d21e4543e13261c8db53 Mon Sep 17 00:00:00 2001 From: poma Date: Thu, 11 Mar 2021 23:40:14 +0300 Subject: [PATCH] commify --- src/generate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generate.js b/src/generate.js index 4af2d72..2e29a6f 100644 --- a/src/generate.js +++ b/src/generate.js @@ -1,7 +1,7 @@ require('dotenv').config() const fs = require('fs') const ethers = require('ethers') -const { formatUnits } = ethers.utils +const { formatUnits, commify } = ethers.utils const { deploy, getContractData } = require('./utils') const { DEPLOYER, SALT, HASHER, VERIFIER, COMP_ADDRESS } = process.env @@ -67,10 +67,10 @@ for (const instance of instances) { domain: instance.domain, contract: instance.isETH ? ethTornado : instance.isCToken ? compTornado : ercTornado, 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 }`, - 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.isETH ? '' : ` at address ${instance.tokenAddress}`}`, }),