pub fn parse_outcome_nautilus_symbol(symbol: &str) -> Option<(u32, u8)>Expand description
Parses a Nautilus outcome instrument symbol of the form
{outcome_index}-{YES|NO}-OUTCOME into (outcome_index, side) where side
is 0 for Yes and 1 for No.
Returns None if the symbol does not match the expected shape or if the
(outcome_index, side) pair would not encode into a valid HIP-4
HyperliquidAssetId (i.e. 100_000_000 + 10 * outcome_index + side
would overflow u32). The legacy #E / +E wire parser already rejects
out-of-range encodings; this keeps the two paths in parity so downstream
arithmetic on the returned pair cannot overflow.