![]() `amount` is then deducted from the caller'sįunction transferFrom(address sender, address recipient, uint256 amount) external returns (bool) * Moves `amount` tokens from `sender` to `recipient` using the * condition is to first reduce the spender's allowance to 0 and set theįunction approve(address spender, uint256 amount) external returns (bool) One possible solution to mitigate this race * that someone may use both the old and the new allowance by unfortunate * > Beware that changing an allowance with this method brings the risk * Sets `amount` as the allowance of `spender` over the caller's tokens. ![]() * This value changes when `approve` or `transferFrom` are called.įunction allowance(address owner, address spender) external view returns (uint256) * allowed to spend on behalf of `owner` through `transferFrom`. * Returns the remaining number of tokens that `spender` will be * Returns a boolean value indicating whether the operation succeeded.įunction transfer(address recipient, uint256 amount) external returns (bool) * Moves `amount` tokens from the caller's account to `recipient`. * Returns the amount of tokens owned by `account`.įunction balanceOf(address account) external view returns (uint256) * Returns the amount of tokens in existence.įunction totalSupply() external view returns (uint256) * the optional functions to access them see `ERC20Detailed`. * Interface of the ERC20 standard as defined in the EIP. *Submitted for verification at Etherscan.io on function burn(uint256 amount) - function burnFrom(address account, ui. function cap() - function _mint(address account, uint2. contract MinterRole - function isMinter(address account) - function addMinter(address account) - function renounceMinter() - function _addMinter(address account) - function _removeMinter(address accoun. ![]() contract Pausable is PauserRole - function paused() - function pause() - function unpause() contract ERC20Pausable is ERC20, P. contract PauserRole - function isPauser(address account) - function addPauser(address account) - function renouncePauser() - function _addPauser(address account) - function _removePauser(address accoun. contract ERC20Detailed is IERC20 - function name() - function symbol() - function decimals() library Roles - function add(Role storage role, addre. library SafeMath - function add(uint256 a, uint256 b) - function sub(uint256 a, uint256 b) - function mul(uint256 a, uint256 b) - function div(uint256 a, uint256 b) - function mod(uint256 a, uint256 b) contract ERC20 is IERC20 - function totalSupply() - function balanceOf(address account) - function transfer(address recipient. Interface IERC20 - function totalSupply() - function balanceOf(address account) - function transfer(address recipient.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |