- {/* From-To */}
-
-
- {
- const _sourceChain = targetChain ? { ...targetChain } : undefined;
- const _targetChain = sourceChain ? { ...sourceChain } : undefined;
- const _sourceToken = targetToken ? { ...targetToken } : undefined;
- const _targetToken = sourceToken ? { ...sourceToken } : undefined;
- const _category = getAvailableBridges(_sourceChain, _targetChain, _sourceToken).at(0);
-
- setBridgeCategory(_category);
- setSourceChain(_sourceChain);
- setTargetChain(_targetChain);
- setSourceToken(_sourceToken);
- setTargetToken(_targetToken);
- updateUrlParams(router, searchParams, {
- _category,
- _sourceChain,
- _targetChain,
- _sourceToken,
- _targetToken,
- });
- }}
- />
-
-
-
- {/* Amount */}
-
}>
-
{
- const _targetTokens = getAvailableTargetTokens(sourceChain, targetChain, _sourceToken);
- const _targetToken = _targetTokens.at(0);
- const _category = getAvailableBridges(sourceChain, targetChain, _sourceToken).at(0);
- setBridgeCategory(_category);
- setSourceToken(_sourceToken);
- setTargetToken(_targetToken);
- updateUrlParams(router, searchParams, { _category, _sourceToken, _targetToken });
- }}
- />
-
-
- {/* Bridge */}
-
-
- {/* Information */}
-
-
- {/* Action */}
-
-
-
-