ODCdataManagersERC20extensions

ERC20Transfers

Abstract contract that provides the transfer operations of the ERC20 Data Manager

transfer

function transfer(address to, uint256 amount) external virtual returns (bool)

Transfers amount tokens from the caller's account to to

Parameters

NameTypeDescription
toaddressAddress to transfer tokens to
amountuint256Amount of tokens to transfer

Return Values

NameTypeDescription
[0]boolTrue if the transfer was successful, reverts otherwise

transferFrom

function transferFrom(address from, address to, uint256 amount) external virtual returns (bool)

Transfers amount tokens from from to to

The caller must have allowance for from's tokens of at least amount

Parameters

NameTypeDescription
fromaddressAddress to transfer tokens from
toaddressAddress to transfer tokens to
amountuint256Amount of tokens to transfer

Return Values

NameTypeDescription
[0]boolTrue if the transfer was successful, reverts otherwise

_transferFrom

function _transferFrom(address from, address to, uint256 amount) internal virtual returns (bool)

_beforeTokenTransfer

function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual

_writeTransfer

function _writeTransfer(address from, address to, uint256 amount) internal virtual

On this page