1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

add search doc

This commit is contained in:
alexcos20 2020-07-17 04:13:55 -07:00
parent b30173c692
commit 8d50bf638a

View File

@ -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<string[]> {
const result: string[] = []
const factory = new this.web3.eth.Contract(this.FactoryABI, this.factoryAddress, {