OriginProtocol / origin-dollar

OUSD and OETH are stablecoins that passively accrue yield while you are holding it
https://originprotocol.com
MIT License
119 stars 80 forks source link

Stake funds with confirmations for front-running protection of Beacon Deposits #2074

Closed sparrowDom closed 4 months ago

sparrowDom commented 4 months ago

Changes

Limits the amount of ETH that can be staked to the validators until a staking monitor (5/8 multisig) doesn't confirm offline that all the stake transactions are valid

Documentation on the issue: https://www.notion.so/originprotocol/Solution-to-prevent-front-running-validator-deposit-d2c306a6596c44e2b7b0df241bd9bc9f?pvs=4#e9e9f1c1f92840aca3cfa6620201febf

Validator registration process

oethProcesses-register

github-actions[bot] commented 4 months ago
Warnings
:warning: :eyes: This PR needs at least 2 reviewers

Generated by :no_entry_sign: dangerJS against 7dcd52061420bf25f03e168013eadbf3e8cfe8c2

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 62.99%. Comparing base (e853081) to head (7dcd520).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## sparrowDom/nativeStaking #2074 +/- ## ============================================================ + Coverage 62.83% 62.99% +0.16% ============================================================ Files 65 65 Lines 3229 3243 +14 Branches 834 839 +5 ============================================================ + Hits 2029 2043 +14 Misses 1197 1197 Partials 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

notion-workspace[bot] commented 4 months ago

Solution to prevent front-running validator deposit