From 0ac889f6e578c1f2260bbea006939154aa4ba2cf Mon Sep 17 00:00:00 2001 From: bonustrack Date: Tue, 14 Sep 2021 03:06:45 +0700 Subject: [PATCH] Add timestamp param --- src/strategies/coordinape/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/strategies/coordinape/index.ts b/src/strategies/coordinape/index.ts index 629d381c5..d7f6f73db 100644 --- a/src/strategies/coordinape/index.ts +++ b/src/strategies/coordinape/index.ts @@ -12,7 +12,8 @@ export async function strategy( options, snapshot ) { - const url = `https://coordinape.me/api/${options.circle}/token-gifts?latest_epoch=1&snapshot=${snapshot}`; + const ts = (await provider.getBlock(snapshot)).timestamp; + const url = `https://coordinape.me/api/${options.circle}/token-gifts?latest_epoch=1×tamp=${ts}&snapshot=${snapshot}`; const res = await fetch(url, { method: 'GET', headers: {