pub struct SimulationOptions {
pub duration: u64,
pub total_users: u64,
pub market_volatility: Decimal,
pub decimal_precision: u32,
pub interval_type: SimulationInterval,
pub transaction_fee_percentage: Option<Decimal>,
pub adoption_rate: Option<Decimal>,
pub valuation_model: Option<ValuationModel>,
}
Expand description
Input parameters for a simulation.
Fields§
§duration: u64
Duration of the simulation, depending on the interval type. For daily interval, this is the number of days.
total_users: u64
Number of users in the simulation. This is the total number of users that will be simulated.
market_volatility: Decimal
Volatility level. 0.0 is no volatility, 1.0 is maximum volatility. This is used to simulate the price volatility in the market.
decimal_precision: u32
Decimal precision for the simulation. Default value is 4.
interval_type: SimulationInterval
Interval type for the simulation. This is the interval at which the simulation will run.
transaction_fee_percentage: Option<Decimal>
Transaction fee for each trade, in percentage. This is the fee that will be charged for each trade in the simulation.
adoption_rate: Option<Decimal>
Rate at which users adopt the token. This is the rate at which users will adopt the token.
valuation_model: Option<ValuationModel>
Valuation model for the token. This is the model used to calculate the valuation of the token.
Trait Implementations§
Source§impl Clone for SimulationOptions
impl Clone for SimulationOptions
Source§fn clone(&self) -> SimulationOptions
fn clone(&self) -> SimulationOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more