pub fn add_market<T: Config>(
    asset_id: <T as Config>::CurrencyId,
    market: Market<<T as Config>::Balance>
)
Expand description

Creates a new lending market for a given currency. Returns Err if a market already exists for the given currency.

All provided market states must be Pending, otherwise an error will be returned.

The lend_token id specified in the Market struct has to be unique, and cannot be later reused when creating a new market.

  • asset_id: Currency to enable lending and borrowing for.
  • market: Configuration of the new lending market

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::add_market.