@indigo-labs/indigo-sdk 0.2.15 → 0.2.16

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 CHANGED
@@ -1489,6 +1489,7 @@ function serialiseTreasuryRedeemer(redeemer) {
1489
1489
 
1490
1490
  // src/contracts/treasury/transactions.ts
1491
1491
  async function treasuryFeeTx(fee, lucid, sysParams, tx, treasuryOref) {
1492
+ console.debug("treasuryFeeTx", fee);
1492
1493
  const treasuryUtxo = matchSingle(
1493
1494
  await lucid.utxosByOutRef([treasuryOref]),
1494
1495
  (_) => new Error("Expected a single treasury UTXO")
package/dist/index.mjs CHANGED
@@ -1260,6 +1260,7 @@ function serialiseTreasuryRedeemer(redeemer) {
1260
1260
 
1261
1261
  // src/contracts/treasury/transactions.ts
1262
1262
  async function treasuryFeeTx(fee, lucid, sysParams, tx, treasuryOref) {
1263
+ console.debug("treasuryFeeTx", fee);
1263
1264
  const treasuryUtxo = matchSingle(
1264
1265
  await lucid.utxosByOutRef([treasuryOref]),
1265
1266
  (_) => new Error("Expected a single treasury UTXO")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigo-labs/indigo-sdk",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Indigo SDK for interacting with Indigo endpoints via lucid-evolution",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -895,10 +895,10 @@ export async function redeemCdp(
895
895
  ),
896
896
  );
897
897
 
898
- const collectorFee = processingFee + partialRedemptionFee + interestCollectorAdaAmt;
899
- if (collectorFee > 0) {
900
- await collectorFeeTx(collectorFee, lucid, sysParams, tx, collectorOref);
901
- }
898
+ const collectorFee = processingFee + partialRedemptionFee + interestCollectorAdaAmt;
899
+ if (collectorFee > 0) {
900
+ await collectorFeeTx(collectorFee, lucid, sysParams, tx, collectorOref);
901
+ }
902
902
 
903
903
  if (interestTreasuryAdaAmt > 0) {
904
904
  await treasuryFeeTx(
@@ -20,6 +20,7 @@ export async function treasuryFeeTx(
20
20
  tx: TxBuilder,
21
21
  treasuryOref: OutRef,
22
22
  ): Promise<void> {
23
+ console.debug('treasuryFeeTx', fee);
23
24
  const treasuryUtxo = matchSingle(
24
25
  await lucid.utxosByOutRef([treasuryOref]),
25
26
  (_) => new Error('Expected a single treasury UTXO'),