Function set_shares

Source
pub fn set_shares<T: LazyBalance>(
    receipt: &mut T::Receipt,
    value: T::Asset,
) -> Result<(), ShareBalanceError>
Expand description

Sets the total shares provided for the receipt.

LazyBalance::Receipt virtual field: shares

Writes to the discriminant ReceiptAsset field at index 1.