We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25c1847 commit c5a9b7eCopy full SHA for c5a9b7e
packages/wallet-widget/src/components/SequenceWalletProvider/ProviderComponents/SwapProvider.tsx
@@ -74,10 +74,9 @@ export const SwapProvider = ({ children }: { children: ReactNode }) => {
74
// userAddress: String(userAddress),
75
// buyCurrencyAddress: toCoin.contractAddress,
76
// sellCurrencyAddress: fromCoin.contractAddress,
77
- // tokenAmount: String(recentInput === 'to' ? toAmount : fromAmount),
78
- // isBuyAmount: recentInput === 'to',
79
// chainId: connectedChainId,
80
// includeApprove: true
+ // ...(recentInput === 'from' ? {sellAmount: String(amount)} : {buyAmount: String(amount)})
81
// })
82
83
swapQuote = await apiClient.getSwapQuoteV2({
0 commit comments