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:
parent
b30173c692
commit
8d50bf638a
@ -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, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user