Function deposit_reserve

Source
pub fn deposit_reserve<T: Config<I>, I: 'static>(
    amount: AssetOf<T, I>,
    precision: PrecisionWrapper,
)
Expand description

Deposits funds from free balance into reserve for future commitments.

Locks the specified amount under the HoldReason::PrepareForCommit hold reason.

These funds remain available for placing or raising commitments until explicitly withdrawn via Pallet::withdraw_reserve.

§Behavior

  • If precision is BestEffort, deposits the maximum available balance when insufficient
  • If precision is Exact, requires exact amount or fails with Error::InsufficientFunds

§Emits

Event::ReserveDeposited: Contains the amount deposited and the total balance on hold.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::deposit_reserve.