diff --git a/packages/sdk/src/pool/omni/OmniPool.ts b/packages/sdk/src/pool/omni/OmniPool.ts index 17f09b11..a7e0d975 100644 --- a/packages/sdk/src/pool/omni/OmniPool.ts +++ b/packages/sdk/src/pool/omni/OmniPool.ts @@ -26,8 +26,8 @@ export type OmniPoolPair = PoolPair & { }; export type OmniPoolToken = PoolToken & { - hubReserves: string; - shares: string; + hubReserves: BigNumber; + shares: BigNumber; cap: string; protocolShares: string; }; @@ -103,10 +103,10 @@ export class OmniPool implements Pool { return { assetIn: tokenIn, assetOut: tokenOut, - hubReservesIn: bnum(tokenInMeta.hubReserves), - hubReservesOut: bnum(tokenOutMeta.hubReserves), - sharesIn: bnum(tokenInMeta.shares), - sharesOut: bnum(tokenOutMeta.shares), + hubReservesIn: tokenInMeta.hubReserves, + hubReservesOut: tokenOutMeta.hubReserves, + sharesIn: tokenInMeta.shares, + sharesOut: tokenOutMeta.shares, decimalsIn: tokenInMeta.decimals, decimalsOut: tokenOutMeta.decimals, balanceIn: balanceIn, diff --git a/packages/sdk/src/pool/omni/OmniPoolClient.ts b/packages/sdk/src/pool/omni/OmniPoolClient.ts index fff127de..1146bd81 100644 --- a/packages/sdk/src/pool/omni/OmniPoolClient.ts +++ b/packages/sdk/src/pool/omni/OmniPoolClient.ts @@ -50,8 +50,8 @@ export class OmniPoolClient extends PoolClient { const balance = await this.getBalance(poolAddress, id.toString()); return { id: id.toString(), - hubReserves: hubReserve.toString(), - shares: shares.toString(), + hubReserves: bnum(hubReserve.toString()), + shares: bnum(shares.toString()), tradeable: tradable.bits.toNumber(), balance: balance.toString(), cap: cap.toString(), @@ -128,8 +128,8 @@ export class OmniPoolClient extends PoolClient { const { hubReserve, shares, tradable } = tokenState; return { ...token, - hubReserves: hubReserve.toString(), - shares: shares.toString(), + hubReserves: bnum(hubReserve.toString()), + shares: bnum(shares.toString()), tradeable: tradable.bits.toNumber(), } as OmniPoolToken; }