🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@pooltogether/current-pool-data

Package Overview
Dependencies
Maintainers
6
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pooltogether/current-pool-data

Published list of contract addresses for PoolTogether v3

npmnpm
Version
3.7.0
Version published
Weekly downloads
42
-89.88%
Maintainers
6
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 01 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts