Transfer
Transfer is an ERC-20 method that allows accounts to send tokens to other Ethereum addresses. A bToken transfer will fail if the account has entered that bToken market and the transfer would have put the account into a state of negative liquidity.
BErc20 / CEther
function transfer(address recipient, uint256 amount) returns (bool)
recipient
: The transfer recipient address.amount
: The amount of bTokens to transfer.RETURN
: Returns a boolean value indicating whether or not the operation succeeded.
Solidity
CEther bToken = CEther(0x3FDB...);
bToken.transfer(0xABCD..., 100000000000);
Web3 1.0
const bToken = BErc20.at(0x3FDA...);
await bToken.methods.transfer(0xABCD..., 100000000000).send({from: 0xSender});
Last updated