Skip to content

Commit

Permalink
Revert "Mellow integration (#247)"
Browse files Browse the repository at this point in the history
This reverts commit d73c534.
  • Loading branch information
infloop committed Aug 12, 2024
1 parent b6c6386 commit 5c8626f
Show file tree
Hide file tree
Showing 44 changed files with 665 additions and 1,200 deletions.
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,3 @@ DEPOSIT_MODULES_WHITELIST=1

# Prefix for the Prometheus metrics(depositor_bot,pauser_bot,unvetter_bot)
PROMETHEUS_PREFIX=depositor_bot

# Mellow strategy address for direct deposits
# Holesky: 0x182Cb3A76B0EFaCb25255F9594B5807460882fa4
MELLOW_CONTRACT_ADDRESS=0x182Cb3A76B0EFaCb25255F9594B5807460882fa4
17 changes: 3 additions & 14 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.11'

- name: Setup poetry
run: |
Expand All @@ -29,18 +29,7 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Integration tests with pytest, holesky fork
run: |
poetry run pytest tests -m integration_holesky
env:
WEB3_RPC_ENDPOINTS: ${{ secrets.HOLESKY_WEB3_RPC_ENDPOINT }}
DEPOSIT_CONTRACT: "0x4242424242424242424242424242424242424242"
LIDO_LOCATOR: "0x28FAB2059C713A7F9D8c86Db49f9bb0e96Af1ef8"
MELLOW_CONTRACT_ADDRESS: "0x182Cb3A76B0EFaCb25255F9594B5807460882fa4"
ANVIL_PATH: ""

- name: Integration tests with pytest, mainnet fork
if: success() || failure()
- name: Integration tests with pytest
run: |
poetry run pytest tests -m integration
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-and-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.11'

- name: Setup poetry
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.4-slim as base
FROM python:3.11.9-slim as base

RUN apt-get update && apt-get install -y --no-install-recommends -qq \
gcc=4:12.2.0-3 \
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Depositor and pauser bots are parts of [Deposit Security Module](https://github.
Once a sufficient number of messages is collected to constitute a quorum, the bot proceeds to initiate a deposit into the designated staking module.
This deposit is executed using the depositBufferedEther function within the "DepositSecurityModule" smart contract.

Direct deposit is a mechanism that allows depositors to use side vault facilities for deposits. This process transfers ETH from the vault and facilitates the deposit to specified in side vault staking module, preventing funds from being stuck in the withdrawal queue.

**The Pauser Bot** obtains pause message from Council Daemon and enacts pause deposits on protocol. Pause can occurs when Lido detects stealing.

**The Unvetting Bot** obtains unvet message from Council Daemon and enacts unvet on the specified node operator.
Expand Down Expand Up @@ -84,8 +82,6 @@ Unvetting is the proces of decreasing approved depositable signing keys.
| PROMETHEUS_PREFIX | depositor_bot | Prefix for the metrics |
| HEALTHCHECK_SERVER_PORT | 9010 | Port with bot`s status server |
| MAX_CYCLE_LIFETIME_IN_SECONDS | 1200 | Max lifetime of usual cycle. If cycle will not end in this time, bot will crush |
| MELLOW_CONTRACT_ADDRESS | None | If variable is set then deposit can go to predifined module |
| VAULT_DIRECT_DEPOSIT_THRESHOLD | 1 ether | If mellow vault has VAULT_DIRECT_DEPOSIT_THRESHOLD ethers then direct deposit will be sent |

## Metrics and logs

Expand Down Expand Up @@ -123,13 +119,11 @@ poetry run pytest tests -m unit
#### Run integration tests.

Install Anvil

```bash
poetry run pytest tests -m integration
```

In case of "command not found: anvil" error, provide `ANVIL_PATH` variable

In case of "command not found: anvil" error, provide `ANVIL_PATH` variable
```bash
export ANVIL_PATH='pathto/anvil'
```
Expand Down
1 change: 0 additions & 1 deletion interfaces/ERC20.json

This file was deleted.

1 change: 0 additions & 1 deletion interfaces/SimpleDVTStakingStrategy.json

This file was deleted.

1 change: 0 additions & 1 deletion interfaces/StakingModule.json

This file was deleted.

1 change: 0 additions & 1 deletion interfaces/WithdrawalQueue.json

This file was deleted.

Loading

0 comments on commit 5c8626f

Please sign in to comment.