From 8d50bf638ab653ecdbe26749f57a655868e2041c Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Fri, 17 Jul 2020 04:13:55 -0700 Subject: [PATCH] add search doc --- src/balancer/OceanPool.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/balancer/OceanPool.ts b/src/balancer/OceanPool.ts index e1af6342..266d2bc9 100644 --- a/src/balancer/OceanPool.ts +++ b/src/balancer/OceanPool.ts @@ -305,6 +305,12 @@ export class OceanPool extends Pool { return super.getSpotPrice(account, poolAddress, this.dtAddress, this.oceanAddress) } + /** + * Search all pools that has DT in his composition + * @param {String} account + * @param {String} dtAddress + * @return {String[]} + */ public async searchPoolforDT(account: string, dtAddress: string): Promise { const result: string[] = [] const factory = new this.web3.eth.Contract(this.FactoryABI, this.factoryAddress, {