Mints fTokens in the market of ID market_id to the caller. The amount depends on the current exchange rate and the underlying_amount specified.
Returns:
#Ok: the total balance in underlying (fToken converted to underlying amount) the user has in the market.
#Err: Insufficient Balance, if the user does not have enough underlying in the protocol.
Converts fTokens in the market of ID market_id to the underlying asset, and stores it in the book. The amount depends on the current exchange rate and the amount specified.
Returns:
#Ok: The current amount owned by the user, still in the market, as the underlying asset.#Err: Unauthorized, if a user tries to redeem while using the fTokens as collateral for a borrow.
Locks the value the user has in the market of ID market_id as collateral for a borrow. This allows us to offer users the ability to borrow against certain assets instead of risking their entire portfolio.
Returns:NULL type