Skip to main content

reserve_hold

Function reserve_hold 

Source
pub fn reserve_hold(
    ob: &mut Obligation,
    quote_a: u64,
    class: ActingClass,
    op_id: StrongDigest,
) -> Result<u64, QdnfError>
Expand description

Reserve A = min(quote_a, remaining after class). Duplicate op_id is idempotent.

Overflow of S+W+H+A or A that would exceed T is Denied. Offline allotment uses the same remaining cap.