Skip to content

Instantly share code, notes, and snippets.

@Vergan-star
Created September 30, 2020 05:55
Show Gist options
  • Save Vergan-star/faeed2df4a858e7957d6e4b7dd088f31 to your computer and use it in GitHub Desktop.
Save Vergan-star/faeed2df4a858e7957d6e4b7dd088f31 to your computer and use it in GitHub Desktop.
TokenGrant
SELECT date_trunc('hour', evt_block_time) AS Date,
SUM(amount / 1e18) OVER (ORDER BY date_trunc('hour', evt_block_time)) as "Cumulative KEEP Grants Withdrawn"
FROM keep."TokenGrant_evt_TokenGrantWithdrawn";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment