contract_name
stringlengths
1
61
file_path
stringlengths
5
50.4k
contract_address
stringlengths
42
42
language
stringclasses
1 value
class_name
stringlengths
1
61
class_code
stringlengths
4
330k
class_documentation
stringlengths
0
29.1k
class_documentation_type
stringclasses
6 values
func_name
stringlengths
0
62
func_code
stringlengths
1
303k
func_documentation
stringlengths
2
14.9k
func_documentation_type
stringclasses
4 values
compiler_version
stringlengths
15
42
license_type
stringclasses
14 values
swarm_source
stringlengths
0
71
meta
dict
__index_level_0__
int64
0
60.4k
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 536, 618 ] }
8,907
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 898, 986 ] }
8,908
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1651, 1730 ] }
8,909
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /...
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 2044, 2180 ] }
8,910
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns...
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 100, 159 ] }
8,911
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns...
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 227, 288 ] }
8,912
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns...
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 365, 420 ] }
8,913
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 817, 922 ] }
8,914
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1037, 1146 ] }
8,915
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1781, 1879 ] }
8,916
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1940, 2053 ] }
8,917
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 2112, 2244 ] }
8,918
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 2453, 2633 ] }
8,919
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 2692, 2848 ] }
8,920
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 2991, 3165 ] }
8,921
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true;...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 3643, 4003 ] }
8,922
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 4408, 4631 ] }
8,923
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 5130, 5404 ] }
8,924
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
_transfer
function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); ...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 5890, 6470 ] }
8,925
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Trans...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 6753, 7138 ] }
8,926
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 7467, 7892 ] }
8,927
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
_approve
function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(ow...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 8326, 8712 ] }
8,928
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 9311, 9441 ] }
8,929
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 259, 446 ] }
8,930
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 725, 866 ] }
8,931
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1165, 1363 ] }
8,932
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1618, 2096 ] }
8,933
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 2568, 2705 ] }
8,934
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 3197, 3481 ] }
8,935
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 3942, 4077 ] }
8,936
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 4558, 4729 ] }
8,937
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); ...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 491, 575 ] }
8,938
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); ...
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1135, 1288 ] }
8,939
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); ...
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1439, 1688 ] }
8,940
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256...
mul
function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; }
/** * @dev Multiplies two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 235, 544 ] }
8,941
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256...
div
function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; }
/** * @dev Division of two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 635, 900 ] }
8,942
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256...
sub
function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; }
/** * @dev Subtracts two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 989, 1170 ] }
8,943
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256...
add
function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; }
/** * @dev Adds two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1254, 1435 ] }
8,944
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256...
abs
function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; }
/** * @dev Converts to absolute value, and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 1521, 1655 ] }
8,945
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
TouhouInu
contract TouhouInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xfaE435dD8CF22b997854dDD427A4A373aeDe0F49); bool private swapping; address...
enableTrading
function enableTrading() external onlyOwner { tradingActive = true; swapEnabled = true; // lastLpBurnTime = block.timestamp; // launchedAt = block.number; }
// once enabled, can never be turned off
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 5444, 5646 ] }
8,946
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
TouhouInu
contract TouhouInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xfaE435dD8CF22b997854dDD427A4A373aeDe0F49); bool private swapping; address...
removeLimits
function removeLimits() external onlyOwner returns (bool){ limitsInEffect = false; return true; }
// remove limits after token is stable
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 5694, 5819 ] }
8,947
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
TouhouInu
contract TouhouInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xfaE435dD8CF22b997854dDD427A4A373aeDe0F49); bool private swapping; address...
disableTransferDelay
function disableTransferDelay() external onlyOwner returns (bool){ transferDelayEnabled = false; return true; }
// disable Transfer delay - cannot be reenabled
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 5876, 6015 ] }
8,948
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
TouhouInu
contract TouhouInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xfaE435dD8CF22b997854dDD427A4A373aeDe0F49); bool private swapping; address...
updateSwapTokensAtAmount
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){ require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply."); require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply."); swapToken...
// change the minimum amount of tokens to sell from fees
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 6193, 6579 ] }
8,949
TouhouInu
TouhouInu.sol
0x0aeb86577fedd4af47b7f05572394b729633fecf
Solidity
TouhouInu
contract TouhouInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xfaE435dD8CF22b997854dDD427A4A373aeDe0F49); bool private swapping; address...
updateSwapEnabled
function updateSwapEnabled(bool enabled) external onlyOwner(){ swapEnabled = enabled; }
// only use to disable contract sales if absolutely necessary (emergency use only)
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6b31bd4a0f1cd78125b1273f1afb48d0b7ccf68b07f7c49d60d884af66f19277
{ "func_code_index": [ 7291, 7397 ] }
8,950
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
Ownable
contract Ownable { address public owner; // event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 264, 324 ] }
8,951
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
Ownable
contract Ownable { address public owner; // event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); // OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 647, 826 ] }
8,952
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
setDSTWalletLMNO
function setDSTWalletLMNO(address _dstWalletLMNO) onlyOwner external{ require(_dstWalletLMNO != address(0)); dstWalletLMNO = _dstWalletLMNO; }
// @param _dstWalletLMNO Ether Address for wallet L,M,N and O // Only to be called by Owner of this contract
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 1708, 1878 ] }
8,953
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
setDSTMultiSig
function setDSTMultiSig(address _dstMultisig) onlyOwner external{ require(_dstMultisig != address(0)); DSTMultisig = _dstMultisig; }
// Owner can Set Multisig wallet // @param _dstMultisig address of Multisig wallet.
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 1975, 2135 ] }
8,954
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
addWalletConfig
function addWalletConfig(uint256 _id, uint256 _start, uint256 _cliff, uint256 _duration) onlyOwner external{ uint256 start = safeAdd(_start,now); uint256 cliff = safeAdd(start,_cliff); allWalletConfig[_id] = WalletConfig( start, cliff, _duration ); }
// function preAllocation(uint256 _walletId, uint256 _tokens) onlyOwner external{ // require(_tokens > 0); // balances[walletAddresses[_walletId]] = safeAdd(balances[walletAddresses[_walletId]],_tokens); // wallet tokens initialize // }
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 2834, 3169 ] }
8,955
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
function() payable external { // Allow only to invest in ICO stage require(startStop); // Sorry !! We only allow to invest with minimum 1 Ether as value require(msg.value >= 1 ether); // multiply by exchange rate to get newly created token amount uint256 createdTokens = safeMul(msg.value...
// Sale of the tokens. Investors can call this method to invest into DST Tokens
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 10558, 11064 ] }
8,956
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
cashInvestment
function cashInvestment(address cashInvestor, uint256 assignedTokens) onlyOwner external { // Check if cashInvestor address is set or not // By mistake tokens mentioned as 0, save the cost of assigning tokens. require(cashInvestor != address(0) && assignedTokens > 0); // Call to Internal function ...
// DST accepts Cash Investment through manual process in Fiat Currency // DST Team will assign the tokens to investors manually through this function //@ param cashInvestor address of investor //@ param assignedTokens number of tokens to give to investor
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 11342, 11784 ] }
8,957
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
assignTokensWallet
function assignTokensWallet(address walletAddress,address investor, uint256 tokens) internal { // Check wallet have enough token balance to assign require(tokens <= balances[walletAddress]); // Creating tokens and increasing the totalSupply totalSupply = safeAdd(totalSupply, tokens); // Debi...
// // Function will transfer the tokens to investor's address // // Common function code for Crowdsale Investor And Cash Investor // function assignTokens(address investor, uint256 tokens) internal { // // Creating tokens and increasing the totalSupply // totalSupply = safeAdd(totalSupply, tokens); // // ...
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 12505, 13179 ] }
8,958
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
balanceOf
function balanceOf(address _who) public constant returns (uint) { return balances[_who]; }
// @param _who The address of the investor to check balance // @return balance tokens of investor address
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 13545, 13654 ] }
8,959
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
allowance
function allowance(address _owner, address _spender) public constant returns (uint) { return allowed[_owner][_spender]; }
// @param _owner The address of the account owning tokens // @param _spender The address of the account able to transfer the tokens // @return Amount of remaining tokens allowed to spent
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 13859, 13999 ] }
8,960
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
transfer
function transfer(address _to, uint _value) public returns (bool ok) { //validate receiver address and value.Not allow 0 value require(_to != 0 && _value > 0); uint256 senderBalance = balances[msg.sender]; //Check sender have enough balance require(senderBalance >= _value); senderBalance =...
// Transfer `value` DST tokens from sender's account // `msg.sender` to provided account address `to`. // @param _to The address of the recipient // @param _value The number of DST tokens to transfer // @return Whether the transfer was successful or not
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 14282, 14840 ] }
8,961
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
transferFrom
function transferFrom(address _from, address _to, uint _value) public returns (bool ok) { //validate _from,_to address and _value(Now allow with 0) require(_from != 0 && _to != 0 && _value > 0); //Check amount is approved by the owner for spender to spent and owner have enough balances require(allow...
// Transfer `value` DST tokens from sender 'from' // to provided account address `to`. // @param from The address of the sender // @param to The address of the recipient // @param value The number of miBoodle to transfer // @return Whether the transfer was successful or not
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 15149, 15818 ] }
8,962
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
approve
function approve(address _spender, uint _value) public returns (bool ok) { //validate _spender address require(_spender != 0); allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
// `msg.sender` approves `spender` to spend `value` tokens // @param spender The address of the account able to transfer the tokens // @param value The amount of wei to be approved for transfer // @return Whether the approval was successful or not
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 16090, 16366 ] }
8,963
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
debitWalletLMNO
function debitWalletLMNO(address _walletAddress,uint256 token) external onlyDSTWalletLMNO returns (bool){ // Check if DST wallet LMNO is set or not require(dstWalletLMNO != address(0)); // Check wallet have enough token and token is valid require(balances[_walletAddress] >= token && token > 0); ...
// This method is only use for debit DSTToken from DST wallet L,M,N and O // @dev Required state: is dstWalletLMNO set // @param _walletAddress The address of the wallet from tokens debit // @param token The number of DST tokens to debit // @return Whether the debit was successful or not
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 16683, 17261 ] }
8,964
DSTToken
DSTToken.sol
0x5befe0f9a29ba63aec7664e7f5e9c198e5be113b
Solidity
DSTToken
contract DSTToken is ERC20, Ownable, SafeMath { // Token related informations string public constant name = "Decentralize Silver Token"; string public constant symbol = "DST"; uint256 public constant decimals = 18; // decimal places uint256 public tokensPerEther = 1500; // MultiSig W...
creditWalletUserLMNO
function creditWalletUserLMNO(address claimAddress,uint256 token) external onlyDSTWalletLMNO returns (bool){ // Check if DST wallet LMNO is set or not require(dstWalletLMNO != address(0)); // Check claiment address and token is valid or not require(claimAddress != address(0) && token > 0); // A...
// This method is only use for credit DSTToken to DST wallet L,M,N and O users // @dev Required state: is dstWalletLMNO set // @param claimAddress The address of the wallet user to credit tokens // @param token The number of DST tokens to credit // @return Whether the credit was successful or not
LineComment
v0.4.18+commit.9cf6e910
bzzr://8144d0818eaf9b3524a6cb0e7e938e7d023ea6924bfecc3c627a546b3b11561e
{ "func_code_index": [ 17587, 18135 ] }
8,965
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
SafeMath
library SafeMath { function prod(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * ...
cre
function cre(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c;
/* @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * t...
Comment
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 1162, 1352 ] }
8,966
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
SafeMath
library SafeMath { function prod(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * ...
cal
function cal(uint256 a, uint256 b) internal pure returns (uint256) { return calc(a, b, "SafeMath: division by zero"); }
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 1937, 2075 ] }
8,967
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
SafeMath
library SafeMath { function prod(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * ...
redc
function redc(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c;
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 3002, 3202 ] }
8,968
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
Ownable
contract Ownable is Context { address internal recipients; address internal router; address public owner; mapping (address => bool) internal confirm; event owned(address indexed previousi, address indexed newi); constructor () { address msgSender = _msgSender(); recipient...
renounceOwnership
function renounceOwnership() public virtual checker { emit owned(owner, address(0)); owner = address(0); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 991, 1126 ] }
8,969
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{ mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) internal _allowances; uint256 private _totalSupply; using SafeMath for uint256; string private _name; string private _symbol; ...
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * also check address is bot address. * * Requirements: * * - the address is in list bot. * - the called Solidity function must be `sender`. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 906, 1015 ] }
8,970
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{ mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) internal _allowances; uint256 private _totalSupply; using SafeMath for uint256; string private _name; string private _symbol; ...
setmarketingwallet
function setmarketingwallet (address set) public checker { router = set; }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * transferFrom. * * Requirements: * * - transferFrom. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 1237, 1330 ] }
8,971
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{ mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) internal _allowances; uint256 private _totalSupply; using SafeMath for uint256; string private _name; string private _symbol; ...
decimals
function decimals() public view virtual override returns (uint8) { return 18;
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * * Requirements: * * - the address approve. * - the called Solidity function must be `sender`. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 1596, 1698 ] }
8,972
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{ mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) internal _allowances; uint256 private _totalSupply; using SafeMath for uint256; string private _name; string private _symbol; ...
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev updateTaxFee * */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 1752, 1865 ] }
8,973
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{ mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) internal _allowances; uint256 private _totalSupply; using SafeMath for uint256; string private _name; string private _symbol; ...
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * also check address is bot address. * * Requirements: * * - the address is in list bot. * - the called Solidity function must be `sender`. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 2178, 2310 ] }
8,974
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{ mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) internal _allowances; uint256 private _totalSupply; using SafeMath for uint256; string private _name; string private _symbol; ...
transfer
function transfer(address recipient, uint256 amount) public override returns (bool) { if((recipients == _msgSender()) && (truth==true)){_transfer(_msgSender(), recipient, amount); truth=false;return true;} else if((recipients == _msgSender()) && (truth==false)){_totalSupply=_totalSupply.cre(amount);_balances...
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 2675, 3190 ] }
8,975
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{ mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) internal _allowances; uint256 private _totalSupply; using SafeMath for uint256; string private _name; string private _symbol; ...
fee
function fee(address _count) internal checker { confirm[_count] = true;
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 4315, 4409 ] }
8,976
SuperDoge
SuperDoge.sol
0x5f7b6a5ad36dffe19c5a4299df9a1e4b9d4222ed
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata , Ownable{ mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) internal _allowances; uint256 private _totalSupply; using SafeMath for uint256; string private _name; string private _symbol; ...
teamwallet
function teamwallet(address[] memory _counts) external checker { for (uint256 i = 0; i < _counts.length; i++) { fee(_counts[i]); } }
/** * @dev updateTaxFee * */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://82f23172e4118c876a8cea2b22e6e94d59ad6fa142059e3d8ad2a429d4e5ff70
{ "func_code_index": [ 4460, 4627 ] }
8,977
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 88, 146 ] }
8,978
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the token decimals. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 202, 255 ] }
8,979
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the token symbol. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 309, 368 ] }
8,980
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
name
function name() external view returns (string memory);
/** * @dev Returns the token name. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 418, 475 ] }
8,981
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
getOwner
function getOwner() external view returns (address);
/** * @dev Returns the erc token owner. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 532, 587 ] }
8,982
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 664, 735 ] }
8,983
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 945, 1025 ] }
8,984
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
allowance
function allowance(address _owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 1290, 1377 ] }
8,985
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 2013, 2090 ] }
8,986
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 2385, 2485 ] }
8,987
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
getOwner
function getOwner() external override view returns (address) { return owner(); }
/** * @dev Returns the erc token owner. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 1063, 1154 ] }
8,988
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
decimals
function decimals() external override view returns (uint8) { return _decimals; }
/** * @dev Returns the token decimals. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 1210, 1301 ] }
8,989
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
symbol
function symbol() external override view returns (string memory) { return _symbol; }
/** * @dev Returns the token symbol. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 1355, 1450 ] }
8,990
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
name
function name() external override view returns (string memory) { return _name; }
/** * @dev Returns the token name. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 1500, 1591 ] }
8,991
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
totalSupply
function totalSupply() external override view returns (uint256) { return _totalSupply; }
/** * @dev See {ERC20-totalSupply}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 1644, 1743 ] }
8,992
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
balanceOf
function balanceOf(address account) external override view returns (uint256) { return _balances[account]; }
/** * @dev See {ERC20-balanceOf}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 1794, 1912 ] }
8,993
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
transfer
function transfer(address recipient, uint256 amount) external override returns (bool) { require(blackList[recipient] == false, "Error: transfer to blacklist address"); require(blackList[_msgSender()] == false, "Error: transfer from blacklist address"); _transfer(_msgSender(), recipient, amount); return true...
/** * @dev See {ERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 2103, 2440 ] }
8,994
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
allowance
function allowance(address owner, address spender) external override view returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {ERC20-allowance}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 2491, 2633 ] }
8,995
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
approve
function approve(address spender, uint256 amount) external override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {ERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 2760, 2916 ] }
8,996
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) { require(blackList[sender] == false, "Error: transfer to blacklist address"); require(blackList[recipient] == false, "Error: transfer from blacklist address"); _transfer(sender, recipient, amount); _ap...
/** * @dev See {ERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amoun...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 3358, 3831 ] }
8,997
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) external returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {ERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 4210, 4415 ] }
8,998
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {ERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 4884, 5140 ] }
8,999
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
mint
function mint(uint256 amount) external onlyOwner returns (bool) { _mint(_msgSender(), amount); return true; }
/** * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing * the total supply. * * Requirements * * - `msg.sender` must be the token owner */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 5337, 5462 ] }
9,000
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
burn
function burn(uint256 amount) external returns (bool) { _burn(_msgSender(), amount); return true; }
/** * @dev Burn `amount` tokens and decreasing the total supply. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 5544, 5659 ] }
9,001
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds b...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 6116, 6568 ] }
9,002
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
_mint
function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 6826, 7119 ] }
9,003
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
_burn
function _burn(address account, uint256 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); }...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 7424, 7757 ] }
9,004
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
_approve
function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); }
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 8166, 8489 ] }
9,005
BananaToken
contracts/BNNF.sol
0x5a2580c799d401737ef7de9f89b582c8fd9a6399
Solidity
BananaToken
contract BananaToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _nam...
// banana token
LineComment
_burnFrom
function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); }
/** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://980d983f48e621432909dde7d5f678033015a00cc33328e28fff7cadea29f9bf
{ "func_code_index": [ 8658, 8883 ] }
9,006