Skip to content

Commit

Permalink
Reduce canonical route checks by using deadaddress
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromcunha committed Oct 3, 2024
1 parent 0bb27c3 commit eae9339
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ui/src/components/widgets/SwapWidgetRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,13 @@ const SwapWidgetRenderer: FC<SwapWidgetRendererProps> = ({
relayClient ? relayClient : undefined,
fromToken && toToken
? {
user: fromAddressWithFallback,
user: fromChain?.vmType === 'evm' ? evmDeadAddress : solDeadAddress,
originChainId: fromToken.chainId,
destinationChainId: toToken.chainId,
originCurrency: fromToken.address,
destinationCurrency: toToken.address,
recipient: toAddressWithFallback,
recipient:
fromChain?.vmType === 'evm' ? evmDeadAddress : solDeadAddress,
tradeType,
appFees: providerOptionsContext.appFees,
amount: parseUnits('1', fromToken.decimals).toString(),
Expand Down

0 comments on commit eae9339

Please sign in to comment.