|
26 | 26 | Percentage,
|
27 | 27 | Stage,
|
28 | 28 | )
|
| 29 | +from model.utils import default |
29 | 30 | from data.historical_values import eth_price_mean, eth_price_min, eth_price_max
|
30 | 31 |
|
31 | 32 |
|
@@ -137,46 +138,46 @@ class StateVariables:
|
137 | 138 | """The total realized MEV to validators post Proof-of-Stake"""
|
138 | 139 |
|
139 | 140 | # System metric state variables
|
140 |
| - validator_eth_staked: np.ndarray = np.zeros( |
141 |
| - (number_of_validator_environments, 1), dtype=int |
| 141 | + validator_eth_staked: np.ndarray = default( |
| 142 | + np.zeros((number_of_validator_environments, 1), dtype=int) |
142 | 143 | )
|
143 | 144 | """The ETH staked per validator environment"""
|
144 |
| - validator_revenue: np.ndarray = np.zeros( |
145 |
| - (number_of_validator_environments, 1), dtype=int |
| 145 | + validator_revenue: np.ndarray = default( |
| 146 | + np.zeros((number_of_validator_environments, 1), dtype=int) |
146 | 147 | )
|
147 | 148 | """The total revenue (income received) for performing PoS duties per validator environment"""
|
148 |
| - validator_profit: np.ndarray = np.zeros( |
149 |
| - (number_of_validator_environments, 1), dtype=int |
| 149 | + validator_profit: np.ndarray = default( |
| 150 | + np.zeros((number_of_validator_environments, 1), dtype=int) |
150 | 151 | )
|
151 | 152 | """The total profit (income received - costs) per validator environment"""
|
152 |
| - validator_revenue_yields: np.ndarray = np.zeros( |
153 |
| - (number_of_validator_environments, 1), dtype=int |
| 153 | + validator_revenue_yields: np.ndarray = default( |
| 154 | + np.zeros((number_of_validator_environments, 1), dtype=int) |
154 | 155 | )
|
155 | 156 | """The total annualized revenue (income received) yields (percentage of investment amount)
|
156 | 157 | per validator environment"""
|
157 |
| - validator_profit_yields: np.ndarray = np.zeros( |
158 |
| - (number_of_validator_environments, 1), dtype=int |
| 158 | + validator_profit_yields: np.ndarray = default( |
| 159 | + np.zeros((number_of_validator_environments, 1), dtype=int) |
159 | 160 | )
|
160 | 161 | """The total annualized profit (income received - costs) yields (percentage of investment amount)
|
161 | 162 | per validator environment"""
|
162 |
| - validator_count_distribution: np.ndarray = np.zeros( |
163 |
| - (number_of_validator_environments, 1), dtype=int |
| 163 | + validator_count_distribution: np.ndarray = default( |
| 164 | + np.zeros((number_of_validator_environments, 1), dtype=int) |
164 | 165 | )
|
165 | 166 | """The total number of validators per validator environment"""
|
166 |
| - validator_hardware_costs: np.ndarray = np.zeros( |
167 |
| - (number_of_validator_environments, 1), dtype=USD |
| 167 | + validator_hardware_costs: np.ndarray = default( |
| 168 | + np.zeros((number_of_validator_environments, 1), dtype=USD) |
168 | 169 | )
|
169 | 170 | """The total validator hardware operation costs per validator environment"""
|
170 |
| - validator_cloud_costs: np.ndarray = np.zeros( |
171 |
| - (number_of_validator_environments, 1), dtype=USD |
| 171 | + validator_cloud_costs: np.ndarray = default( |
| 172 | + np.zeros((number_of_validator_environments, 1), dtype=USD) |
172 | 173 | )
|
173 | 174 | """The total validator cloud operation costs per validator environment"""
|
174 |
| - validator_third_party_costs: np.ndarray = np.zeros( |
175 |
| - (number_of_validator_environments, 1), dtype=USD |
| 175 | + validator_third_party_costs: np.ndarray = default( |
| 176 | + np.zeros((number_of_validator_environments, 1), dtype=USD) |
176 | 177 | )
|
177 | 178 | """The total validator third-party fee costs validator environment"""
|
178 |
| - validator_costs: np.ndarray = np.zeros( |
179 |
| - (number_of_validator_environments, 1), dtype=USD |
| 179 | + validator_costs: np.ndarray = default( |
| 180 | + np.zeros((number_of_validator_environments, 1), dtype=USD) |
180 | 181 | )
|
181 | 182 | """The total validator costs validator environment"""
|
182 | 183 |
|
|
0 commit comments