@indigo-labs/indigo-sdk 0.1.26 → 0.1.27
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/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/contracts/cdp.ts +2 -4
package/dist/index.js
CHANGED
|
@@ -953,7 +953,7 @@ var CDPContract = class _CDPContract {
|
|
|
953
953
|
cdpAssets["lovelace"] = cdp.assets["lovelace"] + collateralAmount;
|
|
954
954
|
const interestOracleAsset = iAsset.datum.interestOracleNft;
|
|
955
955
|
const interestOracleOut = interestOracleRef ? (await lucid.utxosByOutRef([interestOracleRef]))[0] : await lucid.utxoByUnit(
|
|
956
|
-
interestOracleAsset.currencySymbol +
|
|
956
|
+
interestOracleAsset.currencySymbol + interestOracleAsset.tokenName
|
|
957
957
|
);
|
|
958
958
|
if (!interestOracleOut.datum)
|
|
959
959
|
return Promise.reject(new Error("Interest Oracle datum not found"));
|
|
@@ -1078,7 +1078,7 @@ var CDPContract = class _CDPContract {
|
|
|
1078
1078
|
);
|
|
1079
1079
|
const interestOracleAsset = iAsset.datum.interestOracleNft;
|
|
1080
1080
|
const interestOracleOut = interestOracleRef ? (await lucid.utxosByOutRef([interestOracleRef]))[0] : await lucid.utxoByUnit(
|
|
1081
|
-
interestOracleAsset.currencySymbol +
|
|
1081
|
+
interestOracleAsset.currencySymbol + interestOracleAsset.tokenName
|
|
1082
1082
|
);
|
|
1083
1083
|
if (!interestOracleOut.datum)
|
|
1084
1084
|
return Promise.reject(new Error("Interest Oracle datum not found"));
|
package/dist/index.mjs
CHANGED
|
@@ -824,7 +824,7 @@ var CDPContract = class _CDPContract {
|
|
|
824
824
|
cdpAssets["lovelace"] = cdp.assets["lovelace"] + collateralAmount;
|
|
825
825
|
const interestOracleAsset = iAsset.datum.interestOracleNft;
|
|
826
826
|
const interestOracleOut = interestOracleRef ? (await lucid.utxosByOutRef([interestOracleRef]))[0] : await lucid.utxoByUnit(
|
|
827
|
-
interestOracleAsset.currencySymbol +
|
|
827
|
+
interestOracleAsset.currencySymbol + interestOracleAsset.tokenName
|
|
828
828
|
);
|
|
829
829
|
if (!interestOracleOut.datum)
|
|
830
830
|
return Promise.reject(new Error("Interest Oracle datum not found"));
|
|
@@ -949,7 +949,7 @@ var CDPContract = class _CDPContract {
|
|
|
949
949
|
);
|
|
950
950
|
const interestOracleAsset = iAsset.datum.interestOracleNft;
|
|
951
951
|
const interestOracleOut = interestOracleRef ? (await lucid.utxosByOutRef([interestOracleRef]))[0] : await lucid.utxoByUnit(
|
|
952
|
-
interestOracleAsset.currencySymbol +
|
|
952
|
+
interestOracleAsset.currencySymbol + interestOracleAsset.tokenName
|
|
953
953
|
);
|
|
954
954
|
if (!interestOracleOut.datum)
|
|
955
955
|
return Promise.reject(new Error("Interest Oracle datum not found"));
|
package/package.json
CHANGED
package/src/contracts/cdp.ts
CHANGED
|
@@ -372,8 +372,7 @@ export class CDPContract {
|
|
|
372
372
|
const interestOracleOut = interestOracleRef
|
|
373
373
|
? (await lucid.utxosByOutRef([interestOracleRef]))[0]
|
|
374
374
|
: await lucid.utxoByUnit(
|
|
375
|
-
interestOracleAsset.currencySymbol +
|
|
376
|
-
fromText(interestOracleAsset.tokenName),
|
|
375
|
+
interestOracleAsset.currencySymbol + interestOracleAsset.tokenName,
|
|
377
376
|
);
|
|
378
377
|
if (!interestOracleOut.datum)
|
|
379
378
|
return Promise.reject(new Error('Interest Oracle datum not found'));
|
|
@@ -556,8 +555,7 @@ export class CDPContract {
|
|
|
556
555
|
const interestOracleOut = interestOracleRef
|
|
557
556
|
? (await lucid.utxosByOutRef([interestOracleRef]))[0]
|
|
558
557
|
: await lucid.utxoByUnit(
|
|
559
|
-
interestOracleAsset.currencySymbol +
|
|
560
|
-
fromText(interestOracleAsset.tokenName),
|
|
558
|
+
interestOracleAsset.currencySymbol + interestOracleAsset.tokenName,
|
|
561
559
|
);
|
|
562
560
|
if (!interestOracleOut.datum)
|
|
563
561
|
return Promise.reject(new Error('Interest Oracle datum not found'));
|