Skip to content

Instantly share code, notes, and snippets.

@GalloDaSballo
Created August 22, 2023 11:44
Show Gist options
  • Save GalloDaSballo/5a0eb205d72df5b0d033b55f3baaa927 to your computer and use it in GitHub Desktop.
Save GalloDaSballo/5a0eb205d72df5b0d033b55f3baaa927 to your computer and use it in GitHub Desktop.
@GalloDaSballo
Copy link
Author

https://homepage.divms.uiowa.edu/~mbognar/applets/bin.html

Screenshot 2023-08-22 at 13 47 24

You need 64 Block Producers in 2 epochs, each probability is 28% (assuming LIDO was one)
Since you need super 2/3 majority (else you get slashed), you need 42 producers which is statistically not possible

TODO: This should be challenged furter

@GalloDaSballo
Copy link
Author

This becomes extremely unlikely but plausible with a 40% stake

Screenshot 2023-08-22 at 13 49 38

@GalloDaSballo
Copy link
Author

Cost of Reorg on ETH2
-> 2/3 -> Else you get slashed
-> So you need 2/3 of the network to agree with you to reorg
-> How do you achieve that?

-> Odds of MEV Boost given current landscape
https://transparency.flashbots.net/

80% chance that the block will be relayed by someone that opted in
20% Chance you don’t even get to perform the operation

4/5 chances you do

https://docs.flashbots.net/flashbots-auction/searchers/advanced/bundle-pricing

Rep + Pricing

Also MEV of You Liquidating vs They Liquidate you

You getting Liquidated is Higher % for Gas
So given same profit scenario it’s best to liquidate you for the Relayer

@GalloDaSballo
Copy link
Author

Screenshot 2023-08-22 at 14 32 19

Liquidate -> 50 | 100k
LiquidateCdps -> 187k

If we assume the same tip then to win the Flashbot Auction the attacker needs to pay a multiple to compensate for the gas being paid

This assuming a few CDPs being liquidated, if we increase the number to 10+ then this cost raises even further

Ultimately liquidating the attacking CDP is the most profitable move

@GalloDaSballo
Copy link
Author

To summarize into some napkin math

The attacker needs to find at least 10 times it's collateral as liquidatable CDPs
To offer the highest premium and not get liquidated they have to offer the highest cut to the relayer (I assume 80%), this means they have to find 50 times their collateral as collateral at risk

This is very unlikely and in this scenario liquidations should be happening due to the sheer amount of leverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment