Skip to content

Commit

Permalink
Merge pull request #21 from Hipo/fix/tiny-1107-add-note-to-swap-route…
Browse files Browse the repository at this point in the history
…r-app-call

fix(swap-router): Add note to swap router app call
  • Loading branch information
Anlerkan authored Apr 13, 2023
2 parents abcf990 + 34b3333 commit dbf527c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/swap/v2/router/swap-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
getSwapRouterAppID
} from "./util";
import {TINYMAN_ANALYTICS_API_BASE_URLS} from "../../../util/constant";
import {tinymanJSSDKConfig} from "../../../config";

/**
* Generates txns that would opt in the Swap Router Application to the assets used in the swap router
Expand Down Expand Up @@ -130,7 +131,8 @@ export async function generateSwapRouterTxns({
foreignApps: [getValidatorAppID(network, CONTRACT_VERSION.V2)],
foreignAssets: [assetInID, intermediaryAssetID, assetOutID],
accounts: [pool1Address, pool2Address],
suggestedParams
suggestedParams,
note: tinymanJSSDKConfig.getAppCallTxnNoteWithClientName(CONTRACT_VERSION.V2)
});

routerAppCallTxn.fee =
Expand Down

0 comments on commit dbf527c

Please sign in to comment.