Skip to content

Commit

Permalink
Add timestamp param
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Sep 13, 2021
1 parent d2e78d3 commit 0ac889f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/strategies/coordinape/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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&timestamp=${ts}&snapshot=${snapshot}`;
const res = await fetch(url, {
method: 'GET',
headers: {
Expand Down

0 comments on commit 0ac889f

Please sign in to comment.