Skip to content

Commit

Permalink
Add Goerli and Holesky deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
enriquefynn committed Jan 31, 2024
1 parent bea538a commit 397acfa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ PRIVATE_KEY=
ETHERSCAN_API_KEY=
DEFAULT_FEE=2800
GOERLI_RPC_URL=https://ethereum-goerli.publicnode.com
HOLESKY_RPC_URL=https://ethereum-holesky.publicnode.com
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ forge script ./script/FeeRewardsManager.s.sol --verify --broadcast --rpc-url goe
Switch to `--rpc-url mainnet` making sure the `mainnet` RPC endpoint exists in the `foundry.toml` file.
If deploying with a ledger, instead of `--private-key ${PRIVATE_KEY}`, use `--ledger`.

## Deployments

This contract is currently deployed on:

| Network | FeeRewardsManager | CalculateAndSendRewards |
|--------------|-----------------------|-------------------------|
| Goerli | [0xaf0f0d6c4eeb740f62dfe2b10fd9e9b9c90ad3c3](https://goerli.etherscan.io/address/0xaf0f0d6c4eeb740f62dfe2b10fd9e9b9c90ad3c3) | [0xa2f0982aa895c3abbfebb858f0ec011e27d8210b](https://goerli.etherscan.io/address/0xa2f0982aa895c3abbfebb858f0ec011e27d8210b) |
| Holesky | [0x84aC4E25d621D9c73EF75E2FB4DBf491ae396B8a](https://holesky.etherscan.io/address/0x84aC4E25d621D9c73EF75E2FB4DBf491ae396B8a) | [0x49302ddf4d8651c14c2572a5d1d68d98d6090ded](https://holesky.etherscan.io/address/0x49302ddf4d8651c14c2572a5d1d68d98d6090ded) |

## Walkthrough a normal execution

Deploy `FeeRewardsManager` as `manager`, then we call
Expand All @@ -53,7 +62,7 @@ withdrawal credentials, this will create the `collector` contract where the `col
note that the contract state will already have 10 Ether.
By default, the `manager` contract gets `collector.balance * x` and the
`withdrawal_credential` contract gets the rest of the Ether (`collector.balance - collector.balance * x`).
the `manager` contract has a default tax, it gets _copied_ to the `collector` contract during contract creation,
the `manager` contract has a default tax, it gets *copied* to the `collector` contract during contract creation,
these tax can be modified by the owner of the `manager` contract.

Let's assume the tax `x` is 28% and
Expand Down
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ libs = ["lib"]

[rpc_endpoints]
goerli = "${GOERLI_RPC_URL}"
holesky = "${HOLESKY_RPC_URL}"

[etherscan]
all_chains = { key = "${ETHERSCAN_API_KEY}" }

0 comments on commit 397acfa

Please sign in to comment.