Skip to content

Instantly share code, notes, and snippets.

@banteg

banteg/air.py Secret

Last active July 17, 2023 02:29
Show Gist options
  • Save banteg/b683b2a44e87913e9624ef6e2a2f0c9c to your computer and use it in GitHub Desktop.
Save banteg/b683b2a44e87913e9624ef6e2a2f0c9c to your computer and use it in GitHub Desktop.
import re
import csv
import requests
airdrops = {
"Uniswap": "https://raw.githubusercontent.com/banteg/uniswap-distribution/master/uniswap-distribution.csv",
"1inch": "https://gist.githubusercontent.com/banteg/12708815fb63239d9f28dec5df8641f9/raw/28a9dffe9d5681ef5f75b0ab6c39fe5ea0064712/1inch.csv",
"Tornado": "https://raw.githubusercontent.com/tornadocash/airdrop/master/airdrop.csv",
}
my_addrs = [addr.lower() for addr in re.findall(r"0x\w{40}", open("addrs.txt").read())]
for drop, url in airdrops.items():
print(drop)
for addr, amount, *_ in csv.reader(requests.get(url).text.splitlines()):
if addr.lower() in my_addrs:
print(addr, amount)
@Blussappke
Copy link

0x16C975d21c3E7bb2191d7E77Bc50c573AaF5EFC5

@DeFiDude
Copy link

0x16C975d21c3E7bb2191d7E77Bc50c573AaF5EFC5

i don't think that's how it works

@Blussappke
Copy link

I thought I'd fill in the Ethereum address here

@DeFiDude
Copy link

I thought I'd fill in the Ethereum address here

no harm in that

@nazariyv
Copy link

my address is not in the 1inch csv but I definitely claimed 1inch airdrop. If I tried to do it directly it wouldn't allow me to, but Zerion showed me that I had it claimable through InstaDapp and I was able to claim from inside of Zerion. So it must be tracking (your 1inch csv) that other address (InstaDapp).

@Deepcryptodive
Copy link

Couldn't see where to make a PR for this, but here is the list for the upcoming Furucombo (COMBO) airdrop: https://docs.google.com/spreadsheets/d/113AiPrGJ-yp7g-Kdo_IofMWiftc7msEoBMmKNKxJ4fo/edit#gid=0

Some addresses are in there twice, since they took multiple eligible actions, so that still needs to be accounted for.

@dawsbot
Copy link

dawsbot commented Feb 8, 2021

I published a website for this and all POAPs: https://earni.fi

claim-gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment