diff --git a/demo/pages/sdk/actions/bridge.tsx b/demo/pages/sdk/actions/bridge.tsx index 7031db83..717287ae 100644 --- a/demo/pages/sdk/actions/bridge.tsx +++ b/demo/pages/sdk/actions/bridge.tsx @@ -12,6 +12,7 @@ const BridgeActionPage: NextPage = () => { const [currency, setCurrency] =useState('eth') const [usePermit, setUsePermit] = useState(false) const [canonical, setCanonical] = useState(false) + const [useExactInput, setUseExactInput] = useState(false) const [toChainId, setToChainId] = useState(zora.id) const [fromChainId, setFromChainId] = useState(base.id) const [depositGasLimit, setDepositGasLimit] = useState("") @@ -91,6 +92,17 @@ const BridgeActionPage: NextPage = () => { /> +
+ + { + setUseExactInput(e.target.checked) + }} + /> +
+
setRecipient(e.target.value)} /> @@ -132,7 +144,8 @@ const BridgeActionPage: NextPage = () => { depositGasLimit, options: { usePermit: usePermit, - useExternalLiquidity: canonical + useExternalLiquidity: canonical, + useExactInput: useExactInput }, onProgress: (steps, fees, currentStep, currentStepItem, txHashes) => { console.log(steps, fees, currentStep, currentStepItem, txHashes) diff --git a/demo/pages/sdk/methods/getBridgeQuote.tsx b/demo/pages/sdk/methods/getBridgeQuote.tsx index f3f008ef..444743a6 100644 --- a/demo/pages/sdk/methods/getBridgeQuote.tsx +++ b/demo/pages/sdk/methods/getBridgeQuote.tsx @@ -12,6 +12,7 @@ const GetBridgeQuotePage: NextPage = () => { const [currency, setCurrency] =useState('eth') const [toChainId, setToChainId] = useState(zora.id) const [fromChainId, setFromChainId] = useState(base.id) + const [useExactInput, setUseExactInput] = useState(false) const { data: wallet } = useWalletClient() const [response, setResponse] = useState(null) @@ -68,6 +69,18 @@ const GetBridgeQuotePage: NextPage = () => { setRecipient(e.target.value)} />
+ +
+ + { + setUseExactInput(e.target.checked) + }} + /> +
+