File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,6 @@ export class NttAutomaticRoute<N extends Network>
114
114
request : routes . RouteTransferRequest < N > ,
115
115
params : Tp
116
116
) : Promise < Vr > {
117
- if ( ! ( await this . isAvailable ( request ) ) ) {
118
- return {
119
- valid : false ,
120
- params,
121
- error : new Error ( "Relaying is not available" ) ,
122
- } ;
123
- }
124
-
125
117
const options = params . options ?? this . getDefaultOptions ( ) ;
126
118
127
119
const gasDropoff = amount . parse (
@@ -168,6 +160,13 @@ export class NttAutomaticRoute<N extends Network>
168
160
ntt : params . normalizedParams . sourceContracts ,
169
161
} ) ;
170
162
163
+ if ( ! ( await ntt . isRelayingAvailable ( toChain . chain ) ) ) {
164
+ return {
165
+ success : false ,
166
+ error : new Error ( `Relaying to chain ${ toChain . chain } is not available` ) ,
167
+ } ;
168
+ }
169
+
171
170
const deliveryPrice = await ntt . quoteDeliveryPrice (
172
171
toChain . chain ,
173
172
params . normalizedParams . options
You can’t perform that action at this time.
0 commit comments