Skip to content

Commit

Permalink
Add Juno pairs to router (#897)
Browse files Browse the repository at this point in the history
Allows use of stJUNO/JUNO and seJUNO/JUNO in the router.
  • Loading branch information
JohnnyWyles authored Oct 28, 2022
1 parent 7172bfb commit 21ab411
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/web/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ const Home: NextPage = observer(function () {
break;
}
}

// only pools with at least 10,000 JUNO
if (
"originChainId" in asset.amount.currency &&
asset.amount.currency.coinMinimalDenom ===
"ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED"
) {
if (asset.amount.toDec().gt(new Dec(10_000))) {
hasEnoughAssets = true;
break;
}
}
}

if (hasEnoughAssets) {
Expand Down

2 comments on commit 21ab411

@vercel
Copy link

@vercel vercel bot commented on 21ab411 Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 21ab411 Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.