Skip to content

Commit

Permalink
fix: STX - Mia pair route
Browse files Browse the repository at this point in the history
  • Loading branch information
zhigang1992 committed Feb 23, 2024
1 parent 76b6a31 commit 8c17db0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/bridgeHelperResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export function bridgeHelperResolver(
ammPools: AMMSwapPool.PoolTokens[]
) {
const bridgingToken = [Currency.STX, Currency.ALEX];
if (bridgingToken.includes(from) || bridgingToken.includes(to)) {
return { type: "none" as const }
}
const fromPool = ammPools.find((a) => {
if (!AMMSwapPool.breakDown(a).includes(from)) return false;
const [x, y] = AMMSwapPool.breakDown(a);
Expand Down

0 comments on commit 8c17db0

Please sign in to comment.