diff --git a/src/balancer/OceanPool.ts b/src/balancer/OceanPool.ts index f3072eb9..be77891a 100644 --- a/src/balancer/OceanPool.ts +++ b/src/balancer/OceanPool.ts @@ -351,6 +351,23 @@ export class OceanPool extends Pool { return this.calcSingleOutGivenPoolIn(poolAddress, this.oceanAddress, poolShares) } + /** + * Returns max DT amount that you can add to the pool + * @param poolAddress + */ + public async getDTMaxAddLiquidity(poolAddress: string): Promise { + const dtAddress = await this.getDTAddress(poolAddress) + return this.getMaxAddLiquidity(poolAddress, dtAddress) + } + + /** + * Returns max Ocean amount that you can add to the pool + * @param poolAddress + */ + public async getOceanMaxAddLiquidity(poolAddress: string): Promise { + return this.getMaxAddLiquidity(poolAddress, this.oceanAddress) + } + /** * Returns max amount of tokens that you can add to the pool * @param poolAddress