File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ export default class EvmCrossChainExtension {
3434
3535 if ( _request instanceof SdkException ) return _request
3636
37+ if ( request . tokenIn . network . name === units . name || request . tokensOut . some ( token => token . network . name === units . name ) )
38+ return new SdkException ( "Cross-chain swaps with units network not supported" , SdkExceptionCode . InvalidRequest )
39+
3740 if ( _request . exactInput ) return this . createMultiChainExchangeTransactionLTR ( from , _request , taskId )
3841
3942 return this . createMultiChainExchangeTransactionRTL ( from , _request , taskId )
@@ -460,7 +463,7 @@ export default class EvmCrossChainExtension {
460463 ) ) ,
461464 smartRoutingEstimatedGasUsage : smGasUsage . gt ( 0 ) ? smGasUsage . toFixed ( 0 ) : undefined
462465 }
463-
466+
464467 return mixin . applyMixin ( "quotaComputationFinalized" , {
465468 ...rawQuota ,
466469 estimatedGasUsage : ExchangeUtils . computeQuotaExecutionGasUsage ( rawQuota , this . mixins )
You can’t perform that action at this time.
0 commit comments