From 1d34e712b1e29923a5629c7d35a212baab338a94 Mon Sep 17 00:00:00 2001 From: moreal Date: Thu, 24 Oct 2024 21:32:44 +0900 Subject: [PATCH] =?UTF-8?q?Skip=20non-NCG=20transfer=20downstream=20?= =?UTF-8?q?=E2=86=92=20upstream?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sync/downstream/events/transfer.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sync/downstream/events/transfer.ts b/src/sync/downstream/events/transfer.ts index b603c2f..f9df257 100644 --- a/src/sync/downstream/events/transfer.ts +++ b/src/sync/downstream/events/transfer.ts @@ -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" ? {