Function loans::pallet::dispatchables::update_market
source · pub fn update_market<T: Config>(
asset_id: <T as Config>::CurrencyId,
collateral_factor: Option<Ratio>,
liquidation_threshold: Option<Ratio>,
reserve_factor: Option<Ratio>,
close_factor: Option<Ratio>,
liquidate_incentive_reserved_factor: Option<Ratio>,
liquidate_incentive: Option<Rate>,
supply_cap: Option<<T as Config>::Balance>,
borrow_cap: Option<<T as Config>::Balance>
)Expand description
Updates a stored market. Returns Err if the market currency does not exist.
asset_id: market related currencycollateral_factor: the collateral utilization ratioliquidation_threshold: The collateral ratio when a borrower can be liquidatedreserve_factor: fraction of interest set aside for reservesclose_factor: max percentage of debt that can be liquidated in a single transactionliquidate_incentive_reserved_factor: liquidation share set aside for reservesliquidate_incentive: liquidation incentive ratiosupply_cap: Upper bound of supplyingborrow_cap: Upper bound of borrowing
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::update_market.