Supply
The supply function transfers an asset into the protocol, which begins accumulating interest based on the current Supply Rate for the asset. The user receives a quantity of qTokens equal to the underlying tokens supplied, divided by the current Exchange Rate.
Qore
msg.sender: The account which shall supply the asset, and own the minted qTokens.
msg.value: (BNB only) The amount of BNB to be supplied, in wei.
qToken: The address of the qToken market to supply.
underlyingAmount: The amount of the asset to be supplied, in units of the underlying asset.
RETURN: The qToken amount minted.
Solidity
Ethers.js
Last updated