Abstract
This bounty updates the Prize API to support Optimism. This is in support of Project: Optimism.
Motivation
Optimism is an Ethereum L2 with significantly lower transaction costs than Ethereum. Our Ethereum users will be able to migrate their funds to Optimism to take advantage of lower fees.
Additionally, Optimism is launching an incentive program for dapps. By deploying, PoolTogether will become eligible to receive incentives.
Rationale
The Prize API allows our app and others to efficiently retrieve a user’s winning picks.
Deliverables
There are two sets of deliverables for this bounty, and an expectation to support other contributors until the project has been delivered.
The deliverables will occur in two stages:
- a testnet deployment
- a production deployment.
There will be a gap in time between the testnet deployment and the production deployment. After the testnet is deployed, the other team members of Project: Optimism will start building. Once the whole team is ready to deploy, then the production deployment will continue.
Testnet Deployment
Update v4-draw-results
to run Prize computations for the Optimism Testnet PrizePool.
Production Deployment
Update v4-draw-results
to run Prize computations for the Optimism Mainnet PrizePool.
It’s recommend to fork v4-draw-results
and too add ENV variables for testing.
Specifications
Testnet Deployment
- add
OPTIMISM_TESTNET_RPC_URL
env variable - copy
v4-draw-results/.github/workflows/cron.yml
tov4-draw-results/blob/main/.github/workflows/cron.testnet.yml
- remove lines #39 to #65 which run Prize calculations for Mainnet builds
- add command to run
v4-cli:compute:poolPrize
for the Optimism Testnet ticket - update the
run_command
to use-o ./api/testnet/prizes
as the output destination
Production Deployment
- add
OPTIMISM_MAINNET_RPC_URL
env variable - add command to run
v4-cli:compute:poolPrize
for the Optimism Mainnet ticket
Reviewers
Kames and Pierrick will be reviewing the submission and are available for mentorship.
Budget
Budget: $ 1,200
Split: $1,000 USDC and $200 POOL
- 50% will be paid after the testnet deployment
- 50% will be paid after the PR to support the Optimism
ticket
address has been merged
Payout will be at full discretion of the reviewers. The requirements of the bounty and expectations of the reviewers must be met for the contributor to receive payment.
Recruitment
Referral Reward: 100 POOL
Know someone that can do it? Connect us with a qualified candidate. If that person is selected to complete the bounty, then you will be paid upon successful bounty completion. Reach out to Brendan for more info.
Resources
The v4-testnet and v4-mainnet contain deployment information for all blockchain deployments.
The modules have requirements on v4-core, v4-periphery and v4-timelock smart contracts.