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§
Structs§
- Account
Snapshot - Serializable snapshot of a single account’s state.
- Engine
Snapshot - Complete serializable snapshot of the engine state.
- Named
Engine - Human-readable wrapper around the Percolator
RiskEngine. - Params
Config - Serde-friendly risk parameter configuration with sensible defaults.
Enums§
- Engine
Error - Errors from the
NamedEnginewrapper layer.