Skip to content

Commit 38b9178

Browse files
committed
native src token not supported
1 parent 682daa5 commit 38b9178

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

connect/src/routes/tbtc/tbtc.ts

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
ChainAddress,
1212
ChainContext,
1313
deserialize,
14+
isNative,
1415
isSameToken,
1516
serialize,
1617
Signer,
@@ -326,6 +327,10 @@ export class TBTCRoute<N extends Network>
326327
sourceToken: TokenId,
327328
fromChain: ChainContext<N>,
328329
): Promise<boolean> {
330+
if (isNative(sourceToken.address)) {
331+
return false;
332+
}
333+
329334
// Native tbtc is supported
330335
const nativeTbtc = TBTCBridge.getNativeTbtcToken(fromChain.chain);
331336
if (nativeTbtc && isSameToken(sourceToken, nativeTbtc)) {

0 commit comments

Comments
 (0)