diff --git a/package.json b/package.json index d2e5702..0b29e8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@curvefi/lending-api", - "version": "1.6.5", + "version": "1.6.6", "description": "JavaScript library for Curve Lending", "main": "lib/index.js", "author": "Macket", diff --git a/src/markets/OneWayMarketTemplate.ts b/src/markets/OneWayMarketTemplate.ts index 8100c0b..41cee1f 100644 --- a/src/markets/OneWayMarketTemplate.ts +++ b/src/markets/OneWayMarketTemplate.ts @@ -859,8 +859,8 @@ export class OneWayMarketTemplate { // bands_x and bands_y always return amounts with 18 decimals return { - borrowed: formatNumber(formatUnits(_balances[0], this.borrowed_token.decimals), this.borrowed_token.decimals), - collateral: formatNumber(formatUnits(_balances[1], this.collateral_token.decimals), this.collateral_token.decimals), + borrowed: formatNumber(formatUnits(_balances[0]), this.borrowed_token.decimals), + collateral: formatNumber(formatUnits(_balances[1]), this.collateral_token.decimals), } } @@ -880,8 +880,8 @@ export class OneWayMarketTemplate { const _i = i - minBand // bands_x and bands_y always return amounts with 18 decimals bands[i] = { - borrowed: formatNumber(formatUnits(_bands[2 * _i], this.borrowed_token.decimals), this.borrowed_token.decimals), - collateral: formatNumber(formatUnits(_bands[(2 * _i) + 1], this.collateral_token.decimals), this.collateral_token.decimals), + borrowed: formatNumber(formatUnits(_bands[2 * _i]), this.borrowed_token.decimals), + collateral: formatNumber(formatUnits(_bands[(2 * _i) + 1]), this.collateral_token.decimals), } }