@defisaver/positions-sdk 1.0.26-dev-portfolio-4 → 1.0.26-dev-portfolio-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,7 +105,7 @@ const _getMakerCdpData = (provider, network, cdp) => __awaiter(void 0, void 0, v
105
105
  dogContract.read.chop([cdp.ilk]),
106
106
  ]);
107
107
  const collInfo = (0, makerHelpers_1.parseCollateralInfo)(cdp.ilk, par.toString(), mat.toString(), artGlobal.toString(), rate.toString(), spot.toString(), line.toString(), duty.toString(), futureRate.toString(), chop.toString());
108
- const collateral = (0, tokens_1.assetAmountInEth)(ink.toString(), cdp.asset);
108
+ const collateral = (0, tokens_1.assetAmountInEth)(ink.toString(), `MCD-${cdp.asset}`);
109
109
  const collateralUsd = new decimal_js_1.default(collateral).mul(collInfo.assetPrice).toString();
110
110
  const debt = new decimal_js_1.default(art).times(collInfo.currentRate).div(1e27).floor()
111
111
  .toString();
@@ -95,7 +95,7 @@ export const _getMakerCdpData = (provider, network, cdp) => __awaiter(void 0, vo
95
95
  dogContract.read.chop([cdp.ilk]),
96
96
  ]);
97
97
  const collInfo = parseCollateralInfo(cdp.ilk, par.toString(), mat.toString(), artGlobal.toString(), rate.toString(), spot.toString(), line.toString(), duty.toString(), futureRate.toString(), chop.toString());
98
- const collateral = assetAmountInEth(ink.toString(), cdp.asset);
98
+ const collateral = assetAmountInEth(ink.toString(), `MCD-${cdp.asset}`);
99
99
  const collateralUsd = new Dec(collateral).mul(collInfo.assetPrice).toString();
100
100
  const debt = new Dec(art).times(collInfo.currentRate).div(1e27).floor()
101
101
  .toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "1.0.26-dev-portfolio-4",
3
+ "version": "1.0.26-dev-portfolio-5",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -167,7 +167,7 @@ export const _getMakerCdpData = async (provider: Client, network: NetworkNumber,
167
167
  chop.toString(),
168
168
  );
169
169
 
170
- const collateral = assetAmountInEth(ink.toString(), cdp.asset);
170
+ const collateral = assetAmountInEth(ink.toString(), `MCD-${cdp.asset}`);
171
171
 
172
172
  const collateralUsd = new Dec(collateral).mul(collInfo.assetPrice).toString();
173
173
  const debt = new Dec(art).times(collInfo.currentRate).div(1e27).floor()