Function deposit

Source
fn deposit<'a, T: LazyBalanceMarker>(
    model: &'a mut LazyContainer<T>,
    value: T::Asset,
    subject: &'a T::Subject,
) -> Result<(T::Asset, T::Receipt), Error<T>>
Expand description

Executes a deposit on the lazy balance model using the provided container.

Constructs the required tagged input, invokes LazyBalance::deposit, and extracts the resolved (asset, receipt) output.

Returns the actual deposited value and issued receipt.