Skip to main content

encode_merge_positions

Function encode_merge_positions 

Source
pub fn encode_merge_positions(
    condition_id: &str,
    amount: Decimal,
    neg_risk: bool,
) -> Result<PositionCall>
Expand description

Encodes a mergePositions call for amount pUSD of complete sets.

ยงErrors

Returns an error if condition_id is not a 32-byte hex value or amount is not an exact positive six-decimal pUSD quantity.