Skip to content

Commit

Permalink
Merge pull request #288 from EdgeApp/paul/fixTcToQuote
Browse files Browse the repository at this point in the history
Fix 'to' quotes in Thorchain
  • Loading branch information
paullinator authored Sep 13, 2023
2 parents f21841e + 961b9c6 commit b14bc8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swap/defi/thorchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -897,9 +897,9 @@ const calcSwapTo = async ({
)
log(`fromExchangeAmount: ${fromExchangeAmount}`)

const fromNativeAmountFloat = await toWallet.denominationToNative(
const fromNativeAmountFloat = await fromWallet.denominationToNative(
fromExchangeAmount,
toCurrencyCode
fromCurrencyCode
)
const fromNativeAmount = round(fromNativeAmountFloat, 0)
log(`fromNativeAmount: ${fromNativeAmount}`)
Expand Down

0 comments on commit b14bc8d

Please sign in to comment.