ethereum-optimism / design-docs

MIT License
27 stars 20 forks source link

Remove Pre-Fault-Proofs Legacy Code #28

Closed ajsutton closed 1 month ago

ajsutton commented 5 months ago

Description

Design doc to agree on a strategy to allow us to remove the pre-fault proof code such as L2OutputOracle.

tynes commented 5 months ago

I am definitely supportive of this as we have a lot of technical debt in various parts of the codebase and removing legacy things will simplify future development. The big win that I see here from a product pov is that it effectively forces us to ensure that the deploy script can deploy production ready chains that have fault proofs enabled at genesis.

K-Ho commented 5 months ago

Thanks for the writeup! One question:

ajsutton commented 5 months ago

@K-Ho The bond is hard coded. It increases as you go deeper down the fault game but for the initial proposal it's 0.08ETH.

ajsutton commented 5 months ago

For reference, bond amounts based on the depth of the claim:

Depth Bond (Wei) Bond (ETH)
1 8E+16 0.08
2 8.7594E+16 0.087594
3 9.59088E+16 0.0959088
4 1.05013E+17 0.105013
5 1.14981E+17 0.1149812
6 1.25896E+17 0.125896
7 1.37847E+17 0.1378466
8 1.50932E+17 0.1509318
9 1.65259E+17 0.165259
10 1.80946E+17 0.1809462
11 1.98122E+17 0.1981224
12 2.16929E+17 0.2169292
13 2.37521E+17 0.2375214
14 2.60068E+17 0.260068
15 2.84755E+17 0.284755
16 3.11785E+17 0.3117854
17 3.41382E+17 0.3413818
18 3.73787E+17 0.3737874
19 4.09269E+17 0.4092692
20 4.48119E+17 0.4481192
21 4.90657E+17 0.490657
22 5.37233E+17 0.5372326
23 5.88229E+17 0.5882294
24 6.44067E+17 0.6440672
25 7.05205E+17 0.7052052
26 7.72147E+17 0.772147
27 8.45443E+17 0.845443
28 9.25697E+17 0.9256968
29 1.01357E+18 1.0135686
30 1.10978E+18 1.1097818
31 1.21513E+18 1.2151278
32 1.33047E+18 1.330474
33 1.45677E+18 1.4567694
34 1.59505E+18 1.5950532
35 1.74646E+18 1.7464638
36 1.91225E+18 1.912247
37 2.09377E+18 2.0937672
38 2.29252E+18 2.2925182
39 2.51014E+18 2.5101358
40 2.74841E+18 2.7484106
41 3.0093E+18 3.0093036
42 3.29496E+18 3.294962
43 3.60774E+18 3.6077366
44 3.9502E+18 3.9502012
45 4.32517E+18 4.3251744
46 4.73574E+18 4.7357418
47 5.18528E+18 5.1852824
48 5.6775E+18 5.6774958
49 6.21643E+18 6.2164324
50 6.80653E+18 6.8065278
51 7.45264E+18 7.452638
52 8.16008E+18 8.1600802
53 8.93468E+18 8.9346764
54 9.7828E+18 9.7828012
55 1.07114E+19 10.7114344
56 1.17282E+19 11.728218
57 1.28415E+19 12.84152
58 1.40605E+19 14.0605022
59 1.53952E+19 15.3951964
60 1.68566E+19 16.8565866
61 1.84567E+19 18.4566994
62 2.02087E+19 20.2087028
63 2.2127E+19 22.1270154
64 2.42274E+19 24.227424
65 2.65272E+19 26.527214
66 2.90453E+19 29.0453118
67 3.18024E+19 31.80244
68 3.48213E+19 34.821289
69 3.81267E+19 38.1267024
70 4.17459E+19 41.7458824
71 4.57086E+19 45.7086134
72 5.00475E+19 50.0475068
73 5.47983E+19 54.7982702
mds1 commented 1 month ago

Superseded by https://github.com/ethereum-optimism/design-docs/pull/147