Skip to main content

Crate percli_core

Crate percli_core 

Source
Expand description

percli-core: Offline simulation adapter for the Percolator risk engine.

Wraps the vendored Percolator engine with human-readable account names, serde-compatible snapshots, and ergonomic defaults.

Re-exports§

pub use percolator::Account;
pub use percolator::CrankOutcome;
pub use percolator::InsuranceFund;
pub use percolator::LiquidationPolicy;
pub use percolator::RiskEngine;
pub use percolator::RiskError;
pub use percolator::RiskParams;
pub use percolator::SideMode;
pub use percolator::ADL_ONE;
pub use percolator::I128;
pub use percolator::MAX_ACCOUNTS;
pub use percolator::MAX_ORACLE_PRICE;
pub use percolator::MAX_VAULT_TVL;
pub use percolator::POS_SCALE;
pub use percolator::U128;

Modules§

agent
percolator
scenario

Structs§

AccountSnapshot
Serializable snapshot of a single account’s state.
EngineSnapshot
Complete serializable snapshot of the engine state.
NamedEngine
Human-readable wrapper around the Percolator RiskEngine.
ParamsConfig
Serde-friendly risk parameter configuration with sensible defaults.

Enums§

EngineError
Errors from the NamedEngine wrapper layer.