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
precisionisBestEffort, deposits the maximum available balance when insufficient - If
precisionisExact, requires exact amount or fails withError::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.