Function loans::pallet::dispatchables::redeem

source ·
pub fn redeem<T: Config>(
    asset_id: <T as Config>::CurrencyId,
    redeem_amount: <T as Config>::Balance
)
Expand description

The caller redeems lend tokens for the underlying asset, at the current internal exchange rate.

  • asset_id: the asset to be redeemed
  • redeem_amount: the amount to be redeemed, expressed in the underyling currency (asset_id)

Warning: Doc-Only

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