BlockScience / aztec-gddt

Aztec Granular Design Digital Twin
Apache License 2.0
10 stars 0 forks source link

Add the functional parameterization for profitability which looks at op costs #311

Closed SeanMcOwen closed 4 months ago

SeanMcOwen commented 4 months ago

Right now will have just the dummy version always profits,

but splitting out the stuff in the commented out can be a separate functional parameterization

expected_rewards = params['daily_block_reward']

            # expected_rewards *= rewards_to_sequencer(params)
            # expected_rewards /= expected_l2_blocks_per_day
            expected_rewards = 1  # XXX: Temporary to ignore economic assumptions.
            assert (
                expected_rewards >= 0
            ), "REVEAL_CONTENT: Expected rewards should be positive."

            # expected_costs: float = params["op_cost_sequencer"]
            # expected_costs += fee
            # expected_costs += SAFETY_BUFFER
            # expected_costs *= params['gwei_to_tokens']
            expected_costs = 0  # XXX: Temporary to ignore economic assumptions.
            assert (
                expected_costs == 0
            ), "REVEAL_CONTENT: Expected costs should be zero."