Skip to content

Commit

Permalink
fix bad index (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewyszinski authored Jan 10, 2024
1 parent 04c87ae commit 99cc9b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/do-swap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ yarn doSend "MnemonicPhrase" mainnet 1 8 THOR.RUNE thorxxxx +:thor.rune:mayaxxxx
### Do streaming swap

executes a transfer of an asset from your wallet to another address minimizing slippage
`yarn doStreamingSwap "MnemonicPhrase" stagenet|mainnet assetsAmount decimals fromString toString streamingInterval streamingQuantity`
`yarn doStreamingSwap "MnemonicPhrase" stagenet|mainnet assetsAmount decimals fromString toString streamingInterval streamingQuantity [affiliateAddress] [affiliate percent]`

streamingInterval: The maximum interval for swaps that involve L1 assets (such as BTC, ETH) is restricted by the limitation of the maximum duration for a swap; currently, this limitation is 24 hours.

Expand Down
4 changes: 2 additions & 2 deletions examples/do-swap/doStreamingSwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ const doStreamingSwap = async (tcAmm: ThorchainAMM, wallet: Wallet, network: Net
wallet,
walletIndex: 0,
}
const affiliateAddress = process.argv[8]
const affiliateAddress = process.argv[10]
if (affiliateAddress) {
const affiliateFeeBasisPoints = Number(process.argv[9])
const affiliateFeeBasisPoints = Number(process.argv[11])
swapParams.affiliateAddress = affiliateAddress
swapParams.affiliateBps = affiliateFeeBasisPoints
}
Expand Down

0 comments on commit 99cc9b8

Please sign in to comment.