Skip to content

Commit

Permalink
Check if denom is akt in deploymentBalanceMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed Sep 7, 2023
1 parent 5b354d0 commit 4397302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion api/src/providers/apiNodeProvider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fetch from "node-fetch";
import { getDeploymentRelatedMessages } from "../db/deploymentProvider";
import { averageBlockCountInAMonth } from "@src/shared/constants";
import { round } from "@src/shared/utils/math";
import { getMarketData } from "./marketDataProvider";
import { coinToAsset } from "@src/shared/utils/coin";
import { getTransactionByAddress } from "@src/db/transactionsProvider";
Expand Down
3 changes: 2 additions & 1 deletion indexer/src/monitors/deploymentBalanceMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ export class DeploymentBalanceMonitor {

const balance = response.data.escrow_account.balance;
const funds = response.data.escrow_account.funds;
const isAktDenom = balance.denom === activeChain.denom && balance.denom === activeChain.udenom;

if (!balance || !funds) {
if (!balance || !funds || !isAktDenom) {
return null;
}

Expand Down

0 comments on commit 4397302

Please sign in to comment.