Skip to content

Commit

Permalink
Merge pull request #12 from terra-money/fix/filter/vt
Browse files Browse the repository at this point in the history
fix: filter virtual token for migaloo
  • Loading branch information
javiersuweijie authored Nov 7, 2023
2 parents a10dee0 + 981a83a commit 00b74da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/AllianceQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const TOTAL_STAKED_QUERY = "ewogICJ0b3RhbF9zdGFrZWRfYmFsYW5jZXMiOiB7fQp9";
export const QueryForAlliances: AllianceQuery = async (chain: Chain): Promise<AllianceResponse> => {
const chainResponse = await fetch(`${chain.lcd}/terra/alliances?pagination.limit=100`);
const resp = (await chainResponse.json()) as AllianceResponse;
resp.alliances = resp.alliances.filter((a) => a.denom !== "factory/migaloo190qz7q5fu4079svf890h4h3f8u46ty6cxnlt78eh486k9qm995hquuv9kd/ualliance");

if (chain.name === "Terra") {
const allianceHubDenom = Object.keys(chain.alliance_coins).find((key: string) => chain.alliance_coins[key].hub_contract);
Expand Down

0 comments on commit 00b74da

Please sign in to comment.