Function loans::pallet::dispatchables::add_reserves
source · pub fn add_reserves<T: Config>(
payer: <T::Lookup as StaticLookup>::Source,
asset_id: <T as Config>::CurrencyId,
add_amount: <T as Config>::Balance
)
Expand description
Add reserves by transferring from payer.
TODO: This extrinsic currently does nothing useful. See the TODO comment
of the ensure_enough_cash
function for more details. Based on that
TODO, decide whether this extrinsic should be kept.
May only be called from T::ReserveOrigin
.
payer
: the payer account.asset_id
: the assets to be added.add_amount
: the amount to be added.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::add_reserves
.