Ray Tracing allows to trace MEV (miner extractable value) hiding between the glass shards of the Eth1-Eth2 devnets and testnets.
Ray Tracing delivers a combination of infrastructure setup, smart contracts and Eth1 client modifications for the sake of a demo of a MEV/VEV/SEV (miner extractable value / validator extractable value / staker extractable value).
We show how a trio of independent validator, eth1 node operator and liquid staking operator can work together in order to share the MEV revenue with pool participants.
We referenced Flashbots (MEV-geth reference implementation) and implemented MEV and The Merge plugins into Nethermind client to enable receiving and producing blocks with the most profitable MEV bundles. We modified the Lido contracts (liquid staking rewards distribution) to enable payouts to staking pool, ETH2 validators and ETH1 node runners.
We used Docker / Docker Compose for infrastructure setup, Solidity contract for rewards distribution between validator, eth1 node and stakers (LightPrism contract), .NET Core code additions and a Nethermind plugin for Nethermind MEV.