3.7.3 • Published 2 years ago

@dtribe/current-pool-data v3.7.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Current Pool Data

Use this library to programmatically get constants data (ie. contract addresses, etc) for specific versions of the dTribe.gg 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 @dtribe/current-pool-data
import { contractAddresses } from '@dtribe/current-pool-data'

// rinkeby is 4
const CHAIN_ID = 4

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