Skip to content

Commit e59a974

Browse files
committed
add refundTo for hyperliquid withdrawals
1 parent e2badd9 commit e59a974

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/ui/src/components/widgets/SwapWidgetRenderer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ const SwapWidgetRenderer: FC<SwapWidgetRendererProps> = ({
602602
useExternalLiquidity,
603603
useDepositAddress:
604604
!fromChainWalletVMSupported || fromToken?.chainId === 1337,
605+
refundTo: fromToken?.chainId === 1337 ? address : undefined,
605606
slippageTolerance: slippageTolerance,
606607
topupGas: gasTopUpEnabled && gasTopUpRequired,
607608
protocolVersion: quoteProtocol

0 commit comments

Comments
 (0)