Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmy147 committed Nov 11, 2024
1 parent e4b7a0b commit 1ff0092
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/views/Bridge/Component/BridgeContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const BridgeContent = () => {
setFetchingBridgeQuote(true);
const { tx } = await pRetry(
() =>
wallet.openapi.getBridgeQuote({
wallet.openapi.getBridgeQuoteTxV2({
aggregator_id: selectedBridgeQuote.aggregator.id,
bridge_id: selectedBridgeQuote.bridge_id,
from_token_id: fromToken.id,
Expand All @@ -156,6 +156,7 @@ export const BridgeContent = () => {
.toString(),
to_chain_id: toToken.chain,
to_token_id: toToken.id,
slippage: new BigNumber(slippageState).div(100).toString(10),
}),
{ retries: 1 }
);
Expand Down Expand Up @@ -233,6 +234,7 @@ export const BridgeContent = () => {
wallet,
amount,
rbiSource,
slippageState,
]);

const buildTxs = useMemoizedFn(async () => {
Expand Down

0 comments on commit 1ff0092

Please sign in to comment.