From 617bf7fe33fa855c2c552a43bde85f2ce788fae6 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Tue, 13 Oct 2020 09:01:53 -0700 Subject: [PATCH] remove duplicate totalSupply --- src/balancer/Pool.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/balancer/Pool.ts b/src/balancer/Pool.ts index c09f5955..60ab4cda 100644 --- a/src/balancer/Pool.ts +++ b/src/balancer/Pool.ts @@ -157,24 +157,6 @@ export class Pool extends PoolFactory { return result } - /** - * Get total supply of pool tokens - * @param {String} poolAddress - * @return {String} - */ - async totalSupply(poolAddress: string): Promise { - let result = null - - try { - const pool = new this.web3.eth.Contract(this.poolABI, poolAddress) - const totalSupply = await pool.methods.totalSupply().call() - result = this.web3.utils.fromWei(totalSupply) - } catch (e) { - console.error(e) - } - return result - } - /** * Adds tokens to pool * @param {String} account