https://github.com/curvefi/lp-snapshots
https://github.com/curvefi/lp-snapshots
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/curvefi/lp-snapshots
- Owner: curvefi
- Created: 2022-06-25T15:23:51.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-30T14:50:39.000Z (almost 3 years ago)
- Last Synced: 2025-01-09T08:28:52.113Z (4 months ago)
- Language: Python
- Size: 101 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About
Snapshot of Curve LP holders.### Structure
For each pool pre-attack and post-attack snapshot of LP tokens and corresponding share of UST tokens is generated.
All token shares are combined in `combined.csv` and then merged through all pools into `merged.csv`.### Run
"
Set [config](config.json):
```json
{
"network name": {
"endpoint": "https://endpoint.for.web3",
"name of pool": {
"network": "RPC endpoint for web3 queries",
"start_block": 0,
"snapshot_blocks": [
[
123,
"name of snapshot"
]
],
"token": "0xAddressOfTokenToSnapshot",
"lp_token": "0xAddressOfLPToken",
"gauge": "
}
}
}
```
`start_block` can be set to the pool creation block to minimize made queries.
`snapshot_blocks` if not set will be set at execution time, e.g. find block with specific timestamp(see [SNAPSHOT_BLOCKS](config.py)).
Set network and name in [config.py](config.py), all `<-- CHANGE` if necessary and run
```shell
python3 snapshot.py
```