This Safe App brings no-loss prize games to Gnosis Safe users by allowing them to use the PoolTogether protocol.
Read more about Safe Apps here.
Using this Safe App users can buy tickets for community approved prize pools, giving them a chance to win the weekly prize for those pools. They can also withdraw their tickets, and view the current dollar estimate of the prizes.
Install dependencies and start a local dev server.
yarn install
cp .env.sample .env
yarn start
Then:
- If HTTPS is used (by default enabled)
- Open your Safe app locally (by default via https://localhost:3000/) and accept the SSL error.
- Go to Safe Multisig web interface
- Create your test safe
- Install dependencies in repo
yarn
- Start local server
yarn start
- Go to Apps -> Manage Apps -> Add Custom App
- Paste your localhost URL, default is https://localhost:3000/
- You should see PoolTogether as a new app
Currently Rinkeby and Mainnet only. We pull in data from the PoolTogether hosted subgraphs for these networks. We use ethers-multicall for batching of RPC calls, so for now any future supported network would need to be one that has a multicall contract deployed to it.
We use the following dependencies for interacting with Gnosis Safe:
We use Apollo for graph queries, and ethers for RPC calls.
On the PoolTogether side we use the following dependencies:
- current-pool-data for a list of community approved pools.
- pooltogether-pool-contracts for the ABIs for the PoolTogether contracts.
We use Chainlink as our oracle for Eth to Usd prices. We use the Rinkeby and Mainnet oracles.