Function loans::pallet::dispatchables::deposit_all_collateral
source · pub fn deposit_all_collateral<T: Config>(asset_id: <T as Config>::CurrencyId)
Expand description
Caller enables their lend token balance as borrow collateral. This operation locks the lend tokens, so they are no longer transferrable. Any incoming lend tokens into the caller’s account (either by direct transfer or minting) are automatically locked as well, such that locking and unlocking borrow collateral is an atomic state (a “collateral toggle”). If any of the caller’s lend token balance is locked elsewhere (for instance, as bridge vault collateral), this operation will fail. If this operation is successful, the caller’s maximum allowed debt increases.
asset_id
: the underlying asset denoting the market whose lend tokens are to be enabled as collateral.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::deposit_all_collateral
.