hypercall_engine/matching.rs
1//! Pure matching result types shared by the runtime adapter.
2
3use hypercall_types::Fill;
4use rust_decimal::Decimal;
5
6#[derive(Debug, Clone)]
7pub struct OptionMatchOutcome {
8 pub fills: Vec<Fill>,
9 pub filled_size: Decimal,
10 pub mmp_trigger: Option<MmpTriggerIntent>,
11 pub self_trade_maker_id: Option<u64>,
12}
13
14#[derive(Debug, Clone, PartialEq, Eq)]
15pub struct MmpTriggerIntent {
16 pub wallet: hypercall_types::WalletAddress,
17 pub underlying: String,
18 pub reason: String,
19}