Skip to content

GenerationSoftware/ez-deposit

Repository files navigation

EzDepositor

Easily contribute directly to PoolTogether V5 prize pools.

Want to pump vaults? Contribute prizes to the prize pool on their behalf.


Deployed on Optimism and verified on Etherscan at 0x68A100A3729Fc04ab26Fb4C0862Df22CEec2f18B

Prize Pool on Optimism


Deployed on Base and verified on Etherscan at 0x4E30C0a8cCE76940D87ae62EB12f3Ac536A996F4

Prize Pool on Base


Deployed on Arbitrum and verified on Etherscan at 0x5f9292672e33B76b70Dea44163c780376B4da397

Prize Pool on Arbitrum


Deployed on Ethereum Mainnet and verified on Etherscan at 0x84882EB46dA981d1aD2f154359061942Ca1c062f

Prize Pool on Ethereum

--

Deployed on Scroll Mainnet and verified on Etherscan at 0xbdf6bd9bde192861bd8e0e0a11dad71f178a34c8

Prize Pool on Scroll


Deployed on Gnosis Mainnet and verified on Etherscan at 0x69fc8095b949c0ff703ead99bf7d6620843c37ef

Prize Pool on Gnosis


Contributing Prizes

  1. First approve prize token spending by the EzDepositor.
  1. Call contribute() with the prize pool address, your desired vault address, and the amount of WETH you want to contribute.

Development

Installation

You may have to install the following tools to use this repository:

  • Foundry to compile and test contracts
  • direnv to handle environment variables
  • lcov to generate the code coverage report

Install dependencies:

npm i

Env

Copy .envrc.example and write down the env variables needed to run this project.

cp .envrc.example .envrc

Once your env variables are setup, load them with:

direnv allow

Compile

Run the following command to compile the contracts:

npm run compile

Coverage

Forge is used for coverage, run it with:

npm run coverage

You can then consult the report by opening coverage/index.html:

open coverage/index.html

Code quality

Husky is used to run lint-staged and tests when committing.

Prettier is used to format TypeScript and Solidity code. Use it by running:

npm run format

Solhint is used to lint Solidity files. Run it with:

npm run hint

CI

A default Github Actions workflow is setup to execute on push and pull request.

It will build the contracts and run the test coverage.

You can modify it here: .github/workflows/coverage.yml

For the coverage to work, you will need to setup the MAINNET_RPC_URL repository secret in the settings of your Github repository.