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 currency
  • collateral_factor: the collateral utilization ratio
  • liquidation_threshold: The collateral ratio when a borrower can be liquidated
  • reserve_factor: fraction of interest set aside for reserves
  • close_factor: max percentage of debt that can be liquidated in a single transaction
  • liquidate_incentive_reserved_factor: liquidation share set aside for reserves
  • liquidate_incentive: liquidation incentive ratio
  • supply_cap: Upper bound of supplying
  • borrow_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.