pub fn encode_redeem_position_v2(
condition_id: &str,
outcome_index: u8,
amount: Decimal,
) -> Result<PositionCall>Expand description
Encodes a V2 Router redemption of amount shares of outcome 0 or 1.
ยงErrors
Returns an error if the condition ID or outcome index is invalid, or the amount is nonpositive or inexact.