Skip to content

Commit

Permalink
Merge pull request #301 from MVPWorkshop/296-strange-number-represent…
Browse files Browse the repository at this point in the history
…ation-of-WND-token

fix: fix swapNativeForAssetExactOut function
  • Loading branch information
ra79sta authored Oct 26, 2023
2 parents 0b6b6c0 + 60ef798 commit bf758db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/swapServices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const swapNativeForAssetExactOut = async (
dispatch({ type: ActionType.SET_SWAP_LOADING, payload: true });

const result = api.tx.assetConversion.swapTokensForExactTokens(
reverse ? [firstArg, secondArg] : [secondArg, firstArg],
reverse ? [secondArg, firstArg] : [firstArg, secondArg],
reverse ? nativeTokenValue : assetTokenValue,
reverse ? assetTokenValue : nativeTokenValue,
account.address,
Expand Down

1 comment on commit bf758db

@vercel
Copy link

@vercel vercel bot commented on bf758db Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.