Skip to content

Instantly share code, notes, and snippets.

View bonustrack's full-sized avatar

Less bonustrack

View GitHub Profile
@bonustrack
bonustrack / index.ts
Last active September 26, 2020 19:52
STONK pool balances block 10356001
// https://etherscan.io/tx/0xeb008786a7d230180dbd890c76d6a7735430e836d55729a3ff6e22e254121192 Transaction
// https://etherscan.io/address/0x1985365e9f78359a9B6AD760e32412f4a445E862 Balancer pool
const { JsonRpcProvider } = require('@ethersproject/providers');
const snapshot = require('@bonustrack/snapshot.js/src');
// https://thegraph.com/explorer/subgraph/bonustrack/balancer?query=STONK%20pool%20before%20exploit
const poolShares = require('./subgraph-pool-shares.json');
const url = 'https://eth-mainnet.alchemyapi.io/v2/rXKbp7PTFm6hcrxU8NL-JGp5RMfRHDwg';
const provider = new JsonRpcProvider(url);
{
  "symbol": "FEI-TRIBE Staked LP",
 "strategy": {

1: Go on the settings page here: https://snapshot.page/#/ybaby.eth/settings

2: Delete the strategies "erc20-balance-of" and "erc20-balance-of-delegation"

3: Add a strategy "pagination" with these params:

[
  {
 "symbol": "YFI",
@bonustrack
bonustrack / attestation.txt
Created September 3, 2021 14:11
Attestation
I contributed to the clr.fund Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: qvt32
Contributor # 120
Hash: b63094a2 81a9068b bbaeecbc f43d92bc
70a314ff fa0a8f2a 817c607a 7f2cec1e
927aa579 e2410f45 90f21f50 5989675e
2e9e4abf 7bd83eb2 1cd2452b 2cebb190

Verifying myself: I am 0xeF8305E140ac520225DAf050e2f71d5fBcC543e7

Keybase proof

I hereby claim:

  • I am bonustrack on github.
  • I am bonustrack (https://keybase.io/bonustrack) on keybase.
  • I have a public key whose fingerprint is 161A EB18 0A30 19E9 4AE7 8CE8 4C27 FBDF 5B0F EE36

To claim this, I am signing this object:

const snapshot = require('@snapshot-labs/snapshot.js');
const space = 'cvx.eth';
const network = '1';
const strategies = [
{
name: 'erc20-balance-of',
params: {
symbol: 'CVX',
address: '0xD18140b4B819b895A3dba5442F959fA44994AF50',
@bonustrack
bonustrack / NFT.MD
Created October 21, 2021 15:27
Voting with NFT

1. Register a domain on ENS

Head to this website https://app.ens.domains to register a new domain

2. Create a Snapshot space

  • Go on this page https://snapshot.org/#/setup
  • Connect your wallet (the same one used to register the ENS domain)
  • Type the ENS domain on the page and click Next
  • Click on the copy icon to copy the IPNS url
  • Click on "Set record on ENS"
{
"safeSnap": {
"safes": [
{
"network": "1",
"realityAddress": "0x0eBaC21F7f6A6599B5fa5f57Baaa974ADFEC4613",
"hash": "0x71e7f8c0f85999b34e4e26f47a489a1a183d4c3763c8c706f8cc2cce8feb0e45",
"txs": [
{
"nonce": 0,

0x2748358f72c2c625fcf7c16b1f3d7aaa1263ef3613d7a0fdb77e78f68bf9e7c6