Skip to content

Commit f07d951

Browse files
committed
fix: yacomments
1 parent 230e42c commit f07d951

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/data-flow/src/helpers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const getMetadataCidsFromEvents = (
3232
const decoded = decodeDVMDExtendedApplicationData(event.params.data);
3333
ids.add(decoded.metadata.pointer);
3434
} catch (error) {
35-
logger.warn("Failed to decode DVMD extended application data", {
35+
logger.warn("Failed to decode Metadata CID from event data", {
3636
error,
3737
event,
3838
});

packages/data-flow/src/orchestrator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export class Orchestrator {
297297
blockNumber,
298298
logIndex,
299299
limit: this.fetchLimit,
300-
// allowPartialLastBlock: false, //TODO: ask nigiri about this
300+
// allowPartialLastBlock: false,
301301
});
302302

303303
return events;
@@ -373,7 +373,7 @@ export class Orchestrator {
373373
return { status: "rejected", reason: error };
374374
}
375375
},
376-
{ concurrency: MAX_BULK_FETCH_METADATA_CONCURRENCY }, //FIXME: remove hardcoded concurrency
376+
{ concurrency: MAX_BULK_FETCH_METADATA_CONCURRENCY },
377377
);
378378

379379
const metadata: unknown[] = [];

packages/pricing/src/providers/coingecko.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class CoingeckoProvider implements IPricingProvider {
178178
while (currentStart < effectiveMax) {
179179
const currentEnd = Math.min(currentStart + segmentDuration, effectiveMax);
180180

181-
path = `/coins/${tokenId}/market_chart/range?vs_currency=usd&from=${currentStart / 1000}&to=${currentEnd / 1000}&precision=full`;
181+
path = `/coins/${tokenId}/market_chart/range?vs_currency=usd&from=${Math.floor(currentStart / 1000)}&to=${Math.floor(currentEnd / 1000)}&precision=full`;
182182
// Push the promise for the current segment
183183
segments.push(
184184
this.axios.get<CoingeckoPriceChartData>(path).then(({ data }) =>

0 commit comments

Comments
 (0)