diff --git a/src/entities/donation.ts b/src/entities/donation.ts index cf0598ac8..a8d8315f7 100644 --- a/src/entities/donation.ts +++ b/src/entities/donation.ts @@ -23,7 +23,7 @@ export const DONATION_STATUS = { export const DONATION_ORIGINS = { IDRISS_TWITTER: 'Idriss', DRAFT_DONATION_MATCHING: 'DraftDonationMatching', - ANKR: 'Ankr', + CHAIN: 'Chain', SUPER_FLUID: 'SuperFluid', }; diff --git a/src/services/ankrService.ts b/src/services/ankrService.ts index 30848f289..a4c36ca76 100644 --- a/src/services/ankrService.ts +++ b/src/services/ankrService.ts @@ -116,7 +116,9 @@ export const processAnkrTransfers = async ({ }): Promise => { const ankrState = await getAnkrState(); - const fromTimestamp = ankrState?.timestamp || ANKR_FETCH_START_TIMESTAMP; + const fromTimestamp = ankrState?.timestamp + ? ankrState?.timestamp + 1 + : ANKR_FETCH_START_TIMESTAMP; const { lastTimeStamp } = await fetchAnkrTransfers({ addresses, diff --git a/src/services/donationService.ts b/src/services/donationService.ts index 893492999..ae6ceabcd 100644 --- a/src/services/donationService.ts +++ b/src/services/donationService.ts @@ -714,7 +714,7 @@ const ankrTransferHandler = async (transfer: TokenTransfer) => { ); await Donation.update(Number(donationId), { - origin: DONATION_ORIGINS.ANKR, + origin: DONATION_ORIGINS.CHAIN, }); logger.debug(