Skip to content

Commit 2fc30bc

Browse files
authored
Merge pull request #796 from relayprotocol/chore/add-back-explicit-deposit
Add back explicit deposit
2 parents ca26236 + bbee152 commit 2fc30bc

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.changeset/public-doodles-win.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@relayprotocol/relay-kit-ui': patch
3+
---
4+
5+
Reimplement explicitDeposit logic

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -642,12 +642,11 @@ const SwapWidgetRenderer: FC<SwapWidgetRendererProps> = ({
642642
refundTo: fromToken?.chainId === 1337 ? address : undefined,
643643
slippageTolerance: slippageTolerance,
644644
topupGas: gasTopUpEnabled && gasTopUpRequired,
645-
protocolVersion: quoteProtocol
646-
//Disabled temporarily for investigation
647-
// ...(quoteProtocol === 'preferV2' &&
648-
// explicitDeposit !== undefined && {
649-
// explicitDeposit: explicitDeposit
650-
// })
645+
protocolVersion: quoteProtocol,
646+
...(quoteProtocol === 'preferV2' &&
647+
explicitDeposit !== undefined && {
648+
explicitDeposit: explicitDeposit
649+
})
651650
}
652651
: undefined
653652

0 commit comments

Comments
 (0)