Transfer
transfer
is a BEP-20 method that allows accounts to send tokens to other Binance addresses. A qToken transfer will fail if the account has entered that qToken market and the transfer would have put the account into a state of negative liquidity.function transfer(address recipient, uint amount) external returns (bool);
- recipient: The transfer recipient address.
- amount: The amount of aTokens to transfer.
- RETURN: Returns a boolean value indicating whether or not the operation succeeded.
n(<qTokenAddress>);
qToken.transfer(<recipientAddress>, <amount>);
const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
await qToken.transfer(<recipientAddress>, <amount>);
Last modified 2yr ago