@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.
- package/cjs/maker/index.js +1 -1
- package/esm/maker/index.js +1 -1
- package/package.json +1 -1
- package/src/maker/index.ts +1 -1
package/cjs/maker/index.js
CHANGED
|
@@ -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();
|
package/esm/maker/index.js
CHANGED
|
@@ -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
package/src/maker/index.ts
CHANGED
|
@@ -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()
|