Skip to content

Programmatically get constants data (ie. contract addresses, etc) for specific versions of the PoolTogether protocol.

License

Notifications You must be signed in to change notification settings

pooltogether/current-pool-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Dylan DesRosier
Apr 5, 2022
89d7c3c · Apr 5, 2022
Dec 31, 2020
Sep 28, 2020
Oct 21, 2020
Aug 5, 2021
Apr 20, 2021
Sep 28, 2020
Sep 28, 2020
Jul 27, 2021
Oct 4, 2021
Jun 24, 2021
Apr 21, 2021
Jul 2, 2021
Apr 20, 2021
Apr 5, 2022
Jul 26, 2021
Jul 26, 2021
Oct 4, 2021
Jun 27, 2021
Feb 24, 2021
Apr 5, 2022
Apr 19, 2021

Repository files navigation

PoolTogether Brand


Current Pool Data

Use this library to programmatically get constants data (ie. contract addresses, etc) for specific versions of the PoolTogether protocol.

Note:

Since anyone can create a pool the contractAddresses array contains only community approved pool addresses.

This doesn't publish every pool address available, you'll want to use one of the subgraphs for that: (eg. https://thegraph.com/explorer/subgraph/pooltogether/rinkeby-staging-v3)

Instructions:

yarn add @pooltogether/current-pool-data
import { contractAddresses } from '@pooltogether/current-pool-data'

// rinkeby is 4
const CHAIN_ID = 4

const daiPoolAddress = contractAddresses[CHAIN_ID].dai.prizePool
const daiPrizeStrategyAddress = contractAddresses[CHAIN_ID].dai.prizeStrategy

About

Programmatically get constants data (ie. contract addresses, etc) for specific versions of the PoolTogether protocol.

Resources

License

Stars

Watchers

Forks

Packages

No packages published