Skip to content

Commit

Permalink
add fee per token info
Browse files Browse the repository at this point in the history
  • Loading branch information
rsalakhov committed Jan 22, 2024
1 parent aefd447 commit 68f5119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrumlabs/cardano-dex-sdk",
"version": "0.1.236",
"version": "0.1.237",
"description": "ErgoDEX SDK for Cardano",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/amm/interpreters/ammTxBuilder/swapAmmTxBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface SwapTxInfo {
readonly maxOutput: AssetAmount
readonly orderBudget: Value
readonly orderValue: Value
readonly exFeePerToken: FeePerToken;
}

export class SwapAmmTxBuilder {
Expand Down Expand Up @@ -87,7 +88,8 @@ export class SwapAmmTxBuilder {
orderValue: orderValue,
orderBudget: totalOrderBudget,
refundableDeposit: refundableValuePart + refundableBugdetPart,
txFee: userTxFee || txFees.swapOrder
txFee: userTxFee || txFees.swapOrder,
exFeePerToken: exFeePerToken
}

return [
Expand Down

0 comments on commit 68f5119

Please sign in to comment.