pub struct SimulationReport {
pub profit_loss: Decimal,
pub trades: u64,
pub successful_trades: u64,
pub failed_trades: u64,
pub token_distribution: Vec<Decimal>,
pub market_volatility: Decimal,
pub liquidity: Decimal,
pub adoption_rate: Decimal,
pub burn_rate: Decimal,
pub inflation_rate: Decimal,
pub user_retention: Decimal,
pub network_activity: u64,
}
Expand description
Report containing the results of a simulation.
Fields§
§profit_loss: Decimal
Profit or loss for the interval.
trades: u64
Number of trades made in the interval.
successful_trades: u64
Number of successful trades made in the interval.
failed_trades: u64
Number of failed trades made in the interval.
token_distribution: Vec<Decimal>
Token distribution among participants.
market_volatility: Decimal
Market volatility during the simulation.
liquidity: Decimal
Liquidity of the token during the simulation.
adoption_rate: Decimal
Adoption rate of the token.
burn_rate: Decimal
Burn rate of the token.
inflation_rate: Decimal
Inflation rate of the token.
user_retention: Decimal
User retention rate.
network_activity: u64
Network activity (e.g., transactions per second).
Implementations§
Source§impl SimulationReport
impl SimulationReport
Sourcepub fn calculate_liquidity(
&self,
trades: Decimal,
interval_duration: Decimal,
) -> Decimal
pub fn calculate_liquidity( &self, trades: Decimal, interval_duration: Decimal, ) -> Decimal
Sourcepub fn calculate_adoption_rate(&self, users: &[User]) -> Decimal
pub fn calculate_adoption_rate(&self, users: &[User]) -> Decimal
Sourcepub fn calculate_burn_rate(
&self,
total_burned: Decimal,
total_users: Decimal,
) -> Decimal
pub fn calculate_burn_rate( &self, total_burned: Decimal, total_users: Decimal, ) -> Decimal
Sourcepub fn calculate_inflation_rate(
&self,
total_new_tokens: Decimal,
total_users: Decimal,
) -> Decimal
pub fn calculate_inflation_rate( &self, total_new_tokens: Decimal, total_users: Decimal, ) -> Decimal
Trait Implementations§
Source§impl Debug for SimulationReport
impl Debug for SimulationReport
Source§impl Default for SimulationReport
impl Default for SimulationReport
Source§impl<'de> Deserialize<'de> for SimulationReport
impl<'de> Deserialize<'de> for SimulationReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SimulationReport
impl RefUnwindSafe for SimulationReport
impl Send for SimulationReport
impl Sync for SimulationReport
impl Unpin for SimulationReport
impl UnwindSafe for SimulationReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more