Skip to content

Commit

Permalink
Skip non-NCG transfer downstream → upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal committed Oct 24, 2024
1 parent 014368c commit 1d34e71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sync/downstream/events/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export async function responseTransactionsFromTransferEvents(
txId,
);

if (amount.currency.ticker !== "NCG") {
console.debug(
`[sync][downstream] skip ${txId} because it transfers ${amount.currency.ticker} not NCG.`,
);
continue;
}

const transferAssetAmount =
amount.currency.ticker === "NCG"
? {
Expand Down

0 comments on commit 1d34e71

Please sign in to comment.