Skip to content

Commit c5a9b7e

Browse files
committed
docs: changed comment for future request implementation
1 parent 25c1847 commit c5a9b7e

File tree

1 file changed

+1
-2
lines changed
  • packages/wallet-widget/src/components/SequenceWalletProvider/ProviderComponents

1 file changed

+1
-2
lines changed

packages/wallet-widget/src/components/SequenceWalletProvider/ProviderComponents/SwapProvider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ export const SwapProvider = ({ children }: { children: ReactNode }) => {
7474
// userAddress: String(userAddress),
7575
// buyCurrencyAddress: toCoin.contractAddress,
7676
// sellCurrencyAddress: fromCoin.contractAddress,
77-
// tokenAmount: String(recentInput === 'to' ? toAmount : fromAmount),
78-
// isBuyAmount: recentInput === 'to',
7977
// chainId: connectedChainId,
8078
// includeApprove: true
79+
// ...(recentInput === 'from' ? {sellAmount: String(amount)} : {buyAmount: String(amount)})
8180
// })
8281

8382
swapQuote = await apiClient.getSwapQuoteV2({

0 commit comments

Comments
 (0)