Skip to content

Commit

Permalink
fix duplicated paying reductionAssets
Browse files Browse the repository at this point in the history
  • Loading branch information
m1n999999 committed Sep 18, 2024
1 parent a529cf4 commit ad82e01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stableswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,6 @@ export class Stableswap {
},
orderAssets
);
if (Object.keys(reductionAssets).length !== 0) {
tx.payToAddress(sender, reductionAssets);
}

if (customReceiver && customReceiver.receiverDatum) {
const utxoForStoringDatum = buildUtxoToStoreDatum(
Expand All @@ -363,6 +360,9 @@ export class Stableswap {
}
}
}
if (Object.keys(reductionAssets).length !== 0) {
tx.payToAddress(sender, reductionAssets);
}
tx.attachMetadata(674, {
msg: [
orderOptions.length > 1
Expand Down

0 comments on commit ad82e01

Please sign in to comment.