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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | 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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
1060,
1241
]
} | 56,061 |
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | 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;
}
uint25... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
1469,
1903
]
} | 56,062 |
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | 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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
2344,
2473
]
} | 56,063 |
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
2934,
3260
]
} | 56,064 |
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | 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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
3690,
3817
]
} | 56,065 |
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | 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 (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | 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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
4267,
4426
]
} | 56,066 |
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | 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 () internal {
address msgSender = _msgSender();
_owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
465,
541
]
} | 56,067 |
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | 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 () internal {
address msgSender = _msgSender();
_owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
879,
985
]
} | 56,068 |
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | 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 () internal {
address msgSender = _msgSender();
_owne... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
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`).
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
1080,
1298
]
} | 56,069 |
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | getOwner | function getOwner() external override view returns (address) {
return owner();
}
| /**
* @dev Returns the ERC token owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
628,
719
]
} | 56,070 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | decimals | function decimals() external override view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
775,
866
]
} | 56,071 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | symbol | function symbol() external override view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
920,
1015
]
} | 56,072 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | name | function name() external override view returns (string memory) {
return _name;
}
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
1065,
1156
]
} | 56,073 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | totalSupply | function totalSupply() external override view returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {ERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
1209,
1308
]
} | 56,074 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | balanceOf | function balanceOf(address account) external override view returns (uint256) {
return _balances[account];
}
| /**
* @dev See {ERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
1359,
1477
]
} | 56,075 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | transfer | function transfer(address recipient, uint256 amount) external override returns (bool) {
_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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
1668,
1830
]
} | 56,076 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | allowance | function allowance(address owner, address spender) external override view returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {ERC20-allowance}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
1881,
2023
]
} | 56,077 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | 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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
2150,
2306
]
} | 56,078 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
2748,
3052
]
} | 56,079 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public 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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
3431,
3634
]
} | 56,080 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public 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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
4103,
4357
]
} | 56,081 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | burn | function burn(uint256 amount) public returns (bool) {
_burn(_msgSender(), amount);
return true;
}
| /**
* @dev Burn `amount` tokens and decreasing the total supply.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
4439,
4552
]
} | 56,082 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | _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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
5009,
5461
]
} | 56,083 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | _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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
5766,
6099
]
} | 56,084 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | _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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
6508,
6831
]
} | 56,085 | ||
ElonHusk | ElonHusk.sol | 0x4246b20dc9ad4f5d43fdbbbcda745f531fb57c4d | Solidity | ElonHusk | contract ElonHusk 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 _name;
... | _burnFrom | function _burnFrom(address account, uint256 amount) public {
_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.6.12+commit.27d51765 | None | ipfs://c5c78bc91826eec9e559d6b9606c2ee9c248307d640bf9e82fac5a3379d759d7 | {
"func_code_index": [
7000,
7223
]
} | 56,086 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | 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-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
106,
544
]
} | 56,087 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
674,
982
]
} | 56,088 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
1115,
1270
]
} | 56,089 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
1353,
1508
]
} | 56,090 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
1664,
1793
]
} | 56,091 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | totalSupply | function totalSupply() public view returns (uint256) {
return _totalSupply;
}
| /**
* @dev Total number of tokens in existence.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
298,
394
]
} | 56,092 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | balanceOf | function balanceOf(address owner) public view returns (uint256) {
return _balances[owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param owner The address to query the balance of.
* @return A uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
608,
719
]
} | 56,093 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | allowance | function allowance(address owner, address spender) public view returns (uint256) {
return _allowed[owner][spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param owner address The address which owns the funds.
* @param spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
1053,
1189
]
} | 56,094 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | transfer | function transfer(address to, uint256 value) public returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
| /**
* @dev Transfer token to a specified address.
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
1359,
1504
]
} | 56,095 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | approve | function approve(address spender, uint256 value) public returns (bool) {
_approve(msg.sender, spender, value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race... | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
2146,
2299
]
} | 56,096 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | transferFrom | function transferFrom(address from, address to, uint256 value) public returns (bool) {
_transfer(from, to, value);
_approve(from, msg.sender, _allowed[from][msg.sender].sub(value));
return true;
}
| /**
* @dev Transfer tokens from one address to another.
* Note that while this function emits an Approval event, this is not required as per the specification,
* and other compliant implementations may not emit the event.
* @param from address The address which you want to send tokens from
* @param to address... | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
2767,
3000
]
} | 56,097 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
_approve(msg.sender, spender, _allowed[msg.sender][spender].add(addedValue));
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
* approve should be called when _allowed[msg.sender][spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* Emits... | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
3521,
3729
]
} | 56,098 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
_approve(msg.sender, spender, _allowed[msg.sender][spender].sub(subtractedValue));
return true;
}
| /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
* approve should be called when _allowed[msg.sender][spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* Emits... | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
4255,
4473
]
} | 56,099 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | _transfer | function _transfer(address from, address to, uint256 value) internal {
require(to != address(0));
_balances[from] = _balances[from].sub(value);
_balances[to] = _balances[to].add(value);
emit Transfer(from, to, value);
}
| /**
* @dev Transfer token for a specified addresses.
* @param from The address to transfer from.
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
4696,
4963
]
} | 56,100 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | _mint | function _mint(address account, uint256 value) internal {
require(account != address(0));
_totalSupply = _totalSupply.add(value);
_balances[account] = _balances[account].add(value);
emit Transfer(address(0), account, value);
}
| /**
* @dev Internal function that mints an amount of the token and assigns it to
* an account. This encapsulates the modification of balances such that the
* proper events are emitted.
* @param account The account that will receive the created tokens.
* @param value The amount that will be created.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
5310,
5584
]
} | 56,101 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | _burn | function _burn(address account, uint256 value) internal {
require(account != address(0));
_totalSupply = _totalSupply.sub(value);
_balances[account] = _balances[account].sub(value);
emit Transfer(account, address(0), value);
}
| /**
* @dev Internal function that burns an amount of the token of a given
* account.
* @param account The account whose tokens will be burnt.
* @param value The amount that will be burnt.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
5813,
6087
]
} | 56,102 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupp... | _approve | function _approve(address owner, address spender, uint256 value) internal {
require(spender != address(0));
require(owner != address(0));
_allowed[owner][spender] = value;
emit Approval(owner, spender, value);
}
| /**
* @dev Approve an address to spend another addresses' tokens.
* @param owner The address that owns the tokens.
* @param spender The address that will spend the tokens.
* @param value The number of tokens that can be spent.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
6355,
6614
]
} | 56,103 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = m... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @return the address of the owner.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
457,
541
]
} | 56,104 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = m... | isOwner | function isOwner() public view returns (bool) {
return msg.sender == _owner;
}
| /**
* @return true if `msg.sender` is the owner of the contract.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
792,
889
]
} | 56,105 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = m... | transferOwnership | function transferOwnership(address newOwner) public {
_transferOwnership(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.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
1063,
1168
]
} | 56,106 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = m... | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0));
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
1313,
1505
]
} | 56,107 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20Mintable | contract ERC20Mintable is ERC20, Ownable {
/**
* @dev Function to mint tokens
* @param to The address that will receive the minted tokens.
* @param value The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address to,... | mint | function mint(address to, uint256 value) public onlyOwner returns (bool) {
_mint(to, value);
return true;
}
| /**
* @dev Function to mint tokens
* @param to The address that will receive the minted tokens.
* @param value The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
291,
426
]
} | 56,108 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @retu... | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @return the name of the token.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
356,
444
]
} | 56,109 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @retu... | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @return the symbol of the token.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
506,
598
]
} | 56,110 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @retu... | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @return the number of decimals of the token.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
672,
760
]
} | 56,111 | ||
FoodecentDollar | FoodecentDollar.sol | 0x2fbe1f33fcf7ee032ccbaea55337e8aa89efa44c | Solidity | ERC20Burnable | contract ERC20Burnable is ERC20, Ownable {
/**
* @dev Burns a specific amount of tokens.
* @param value The amount of token to be burned.
*/
function burn(uint256 value) public onlyOwner {
_burn(msg.sender, value);
}
} | burn | function burn(uint256 value) public onlyOwner {
_burn(msg.sender, value);
}
| /**
* @dev Burns a specific amount of tokens.
* @param value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://6e2795587dd4db6480aa1f45390459cc0c7b857b11dfe2afc5c59956d06c71ab | {
"func_code_index": [
165,
259
]
} | 56,112 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | CTokenInterface | interface CTokenInterface {
function mint(uint mintAmount) external returns (uint); // For ERC20
function redeem(uint redeemTokens) external returns (uint);
function redeemUnderlying(uint redeemAmount) external returns (uint);
function borrow(uint borrowAmount) external returns (uint);
function... | redeem | function redeem(uint redeemTokens) external returns (uint);
| // For ERC20 | LineComment | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
103,
167
]
} | 56,113 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | CTokenInterface | interface CTokenInterface {
function mint(uint mintAmount) external returns (uint); // For ERC20
function redeem(uint redeemTokens) external returns (uint);
function redeemUnderlying(uint redeemAmount) external returns (uint);
function borrow(uint borrowAmount) external returns (uint);
function... | borrowBalanceCurrent | function borrowBalanceCurrent(address account) external returns (uint);
| // For ERC20 | LineComment | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
653,
729
]
} | 56,114 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | CETHInterface | interface CETHInterface {
function exchangeRateCurrent() external returns (uint);
function mint() external payable; // For ETH
function repayBorrow() external payable; // For ETH
function transfer(address, uint) external returns (bool);
function borrowBalanceCurrent(address account) external re... | repayBorrow | function repayBorrow() external payable; // For ETH
| // For ETH | LineComment | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
138,
194
]
} | 56,115 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | CETHInterface | interface CETHInterface {
function exchangeRateCurrent() external returns (uint);
function mint() external payable; // For ETH
function repayBorrow() external payable; // For ETH
function transfer(address, uint) external returns (bool);
function borrowBalanceCurrent(address account) external re... | transfer | function transfer(address, uint) external returns (bool);
| // For ETH | LineComment | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
195,
257
]
} | 56,116 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | ProvideLiquidity | contract ProvideLiquidity is Helper {
mapping (address => mapping (address => uint)) public deposits;
mapping (address => uint) public totalDeposits;
event LogDepositToken(address tknAddr, address ctknAddr, uint amt);
event LogWithdrawToken(address tknAddr, address ctknAddr, uint amt);
even... | depositToken | function depositToken(address tknAddr, address ctknAddr, uint amt) public payable {
if (tknAddr != ethAddr) {
ERC20Interface tknContract = ERC20Interface(tknAddr);
require(tknContract.transferFrom(msg.sender, address(this), amt), "Not enough tkn to deposit");
CTokenInterface cTokenContra... | /**
* @dev Deposit Token for liquidity
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
488,
2152
]
} | 56,117 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | ProvideLiquidity | contract ProvideLiquidity is Helper {
mapping (address => mapping (address => uint)) public deposits;
mapping (address => uint) public totalDeposits;
event LogDepositToken(address tknAddr, address ctknAddr, uint amt);
event LogWithdrawToken(address tknAddr, address ctknAddr, uint amt);
even... | withdrawToken | function withdrawToken(address tknAddr, address ctknAddr, uint amt) public {
require(deposits[msg.sender][ctknAddr] != 0, "Nothing to Withdraw");
CTokenInterface cTokenContract = CTokenInterface(ctknAddr);
uint exchangeRate = cTokenContract.exchangeRateCurrent();
uint withdrawAmt = wdiv(amt, exchang... | /**
* @dev Withdraw Token from liquidity
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
2216,
3772
]
} | 56,118 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | ProvideLiquidity | contract ProvideLiquidity is Helper {
mapping (address => mapping (address => uint)) public deposits;
mapping (address => uint) public totalDeposits;
event LogDepositToken(address tknAddr, address ctknAddr, uint amt);
event LogWithdrawToken(address tknAddr, address ctknAddr, uint amt);
even... | depositCTkn | function depositCTkn(address ctknAddr, uint amt) public {
require(CTokenInterface(ctknAddr).transferFrom(msg.sender, address(this), amt), "Nothing to deposit");
deposits[msg.sender][ctknAddr] += amt;
totalDeposits[ctknAddr] += amt;
emit LogDepositCToken(ctknAddr, amt);
}
| /**
* @dev Deposit CToken for liquidity
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
3835,
4152
]
} | 56,119 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | ProvideLiquidity | contract ProvideLiquidity is Helper {
mapping (address => mapping (address => uint)) public deposits;
mapping (address => uint) public totalDeposits;
event LogDepositToken(address tknAddr, address ctknAddr, uint amt);
event LogWithdrawToken(address tknAddr, address ctknAddr, uint amt);
even... | withdrawCTkn | function withdrawCTkn(address ctknAddr, uint amt) public {
require(deposits[msg.sender][ctknAddr] != 0, "Nothing to Withdraw");
uint withdrawAmt = amt < deposits[msg.sender][ctknAddr] ? amt : deposits[msg.sender][ctknAddr];
assert(CTokenInterface(ctknAddr).transfer(msg.sender, withdrawAmt));
deposit... | /**
* @dev Withdraw CToken from liquidity
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
4217,
4709
]
} | 56,120 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AccessLiquidity | contract AccessLiquidity is ProvideLiquidity {
event LogRedeemTknAndTransfer(address tknAddr, address ctknAddr, uint amt);
event LogMintTknBack(address tknAddr, address ctknAddr, uint amt);
event LogBorrowTknAndTransfer(address tknAddr, address ctknAddr, uint amt);
event LogPayBorrowBack(address t... | redeemTknAndTransfer | function redeemTknAndTransfer(address tknAddr, address ctknAddr, uint tknAmt) public isUserWallet {
if (tknAmt > 0) {
if (tknAddr != ethAddr) {
CTokenInterface ctknContract = CTokenInterface(ctknAddr);
ERC20Interface tknContract = ERC20Interface(tknAddr);
uint initia... | /**
* @dev Redeem CTokens and use them on InstaDApp's contract wallets
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
888,
2035
]
} | 56,121 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AccessLiquidity | contract AccessLiquidity is ProvideLiquidity {
event LogRedeemTknAndTransfer(address tknAddr, address ctknAddr, uint amt);
event LogMintTknBack(address tknAddr, address ctknAddr, uint amt);
event LogBorrowTknAndTransfer(address tknAddr, address ctknAddr, uint amt);
event LogPayBorrowBack(address t... | mintTknBack | function mintTknBack(address tknAddr, address ctknAddr, uint tknAmt) public payable isUserWallet {
mintCTkn(tknAddr, ctknAddr, tknAmt);
}
| /**
* @dev Mint back redeemed tokens
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
2095,
2251
]
} | 56,122 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AccessLiquidity | contract AccessLiquidity is ProvideLiquidity {
event LogRedeemTknAndTransfer(address tknAddr, address ctknAddr, uint amt);
event LogMintTknBack(address tknAddr, address ctknAddr, uint amt);
event LogBorrowTknAndTransfer(address tknAddr, address ctknAddr, uint amt);
event LogPayBorrowBack(address t... | borrowTknAndTransfer | function borrowTknAndTransfer(address tknAddr, address ctknAddr, uint tknAmt) public isUserWallet {
if (tknAmt > 0) {
CTokenInterface ctknContract = CTokenInterface(ctknAddr);
if (tknAddr != ethAddr) {
ERC20Interface tknContract = ERC20Interface(tknAddr);
uint initialBal... | /**
* @dev Borrow tokens and use them on InstaDApp's contract wallets
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
2344,
3368
]
} | 56,123 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AccessLiquidity | contract AccessLiquidity is ProvideLiquidity {
event LogRedeemTknAndTransfer(address tknAddr, address ctknAddr, uint amt);
event LogMintTknBack(address tknAddr, address ctknAddr, uint amt);
event LogBorrowTknAndTransfer(address tknAddr, address ctknAddr, uint amt);
event LogPayBorrowBack(address t... | payBorrowBack | function payBorrowBack(address tknAddr, address ctknAddr, uint tknAmt) public payable isUserWallet {
if (tknAmt > 0) {
if (tknAddr != ethAddr) {
ERC20Interface tknContract = ERC20Interface(tknAddr);
CTokenInterface ctknContract = CTokenInterface(ctknAddr);
uint borro... | /**
* @dev Payback borrow tokens
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
3424,
4658
]
} | 56,124 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AdminStuff | contract AdminStuff is AccessLiquidity {
/**
* Give approval to other addresses
*/
function setApproval(address erc20, uint srcAmt, address to) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
ERC20Interface erc20Contract = ERC20Interface... | setApproval | function setApproval(address erc20, uint srcAmt, address to) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
ERC20Interface erc20Contract = ERC20Interface(erc20);
uint tokenAllowance = erc20Contract.allowance(address(this), to);
if (srcAmt > tokenAllowance) {... | /**
* Give approval to other addresses
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
103,
512
]
} | 56,125 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AdminStuff | contract AdminStuff is AccessLiquidity {
/**
* Give approval to other addresses
*/
function setApproval(address erc20, uint srcAmt, address to) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
ERC20Interface erc20Contract = ERC20Interface... | collectCTokens | function collectCTokens(address ctkn) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
CTokenInterface cTokenContract = CTokenInterface(ctkn);
uint cTokenBal = cTokenContract.balanceOf(address(this));
uint withdrawAmt = sub(cTokenBal, totalDeposits[ctkn]);
... | /**
* collect unmapped CToken
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
565,
1003
]
} | 56,126 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AdminStuff | contract AdminStuff is AccessLiquidity {
/**
* Give approval to other addresses
*/
function setApproval(address erc20, uint srcAmt, address to) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
ERC20Interface erc20Contract = ERC20Interface... | collectTokens | function collectTokens(address token) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
assert(isCToken[token] == false);
if (token == ethAddr) {
msg.sender.transfer(address(this).balance);
} else {
ERC20Interface tokenContract = ERC20Interfac... | /**
* (HIGHLY UNLIKELY TO HAPPEN)
* collecting Tokens/ETH other than CTokens
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
1109,
1641
]
} | 56,127 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AdminStuff | contract AdminStuff is AccessLiquidity {
/**
* Give approval to other addresses
*/
function setApproval(address erc20, uint srcAmt, address to) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
ERC20Interface erc20Contract = ERC20Interface... | mintCollectedTkns | function mintCollectedTkns(address tknAddr, address ctknAddr, uint tknAmt) public payable {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
mintCTkn(tknAddr, ctknAddr, tknAmt);
}
| /**
* @dev Mint back redeemed tokens
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
1701,
1939
]
} | 56,128 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AdminStuff | contract AdminStuff is AccessLiquidity {
/**
* Give approval to other addresses
*/
function setApproval(address erc20, uint srcAmt, address to) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
ERC20Interface erc20Contract = ERC20Interface... | enterMarket | function enterMarket(address[] memory cTknAddrArr) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
ComptrollerInterface troller = ComptrollerInterface(comptrollerAddr);
troller.enterMarkets(cTknAddrArr);
}
| /**
* Enter Compound Market to enable borrowing
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
2010,
2293
]
} | 56,129 | ||
AccessLiquidity | AccessLiquidity.sol | 0x2c717bfe76556fc7730f287f9b108da4722d6065 | Solidity | AdminStuff | contract AdminStuff is AccessLiquidity {
/**
* Give approval to other addresses
*/
function setApproval(address erc20, uint srcAmt, address to) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
ERC20Interface erc20Contract = ERC20Interface... | exitMarket | function exitMarket(address cErc20) public {
require(msg.sender == adminOne || msg.sender == adminTwo, "Not admin address");
ComptrollerInterface troller = ComptrollerInterface(comptrollerAddr);
troller.exitMarket(cErc20);
}
| /**
* Enter Compound Market to disable borrowing
*/ | NatSpecMultiLine | v0.5.8+commit.23d335f2 | None | bzzr://88cbfd976c8224271b0823bee25cf38de27d861afa2c9784da856728a7dbcd13 | {
"func_code_index": [
2365,
2626
]
} | 56,130 | ||
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
94,
154
]
} | 56,131 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
237,
310
]
} | 56,132 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
534,
616
]
} | 56,133 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
895,
983
]
} | 56,134 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
1647,
1726
]
} | 56,135 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
2039,
2175
]
} | 56,136 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
... | /**
* @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.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
606,
998
]
} | 56,137 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
| /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
1928,
2250
]
} | 56,138 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
3007,
3187
]
} | 56,139 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
3412,
3646
]
} | 56,140 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @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.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
4016,
4281
]
} | 56,141 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");... | /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
4532,
5047
]
} | 56,142 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
5227,
5431
]
} | 56,143 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallRe... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
5618,
6018
]
} | 56,144 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
6200,
6405
]
} | 56,145 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallR... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
6594,
6995
]
} | 56,146 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | Address | library Address {
/**
* @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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | verifyCallResult | function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
... | /**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
7218,
7935
]
} | 56,147 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | SafeERC20 | library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | safeApprove | function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
... | /**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
791,
1412
]
} | 56,148 |
_8SIAN_PaymentSpliiter_ | _8SIAN_PaymentSpliiter_.sol | 0x52de33769fc2eb39d2e66b17f9e8d9e241f6c3bd | Solidity | SafeERC20 | library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | _callOptionalReturn | function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target ad... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://ae00e7bf1406f45f5f41a971b2a3203d15843b376c29597d16b51f0950c1d723 | {
"func_code_index": [
2628,
3349
]
} | 56,149 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
94,
154
]
} | 56,150 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
237,
310
]
} | 56,151 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
534,
616
]
} | 56,152 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
895,
983
]
} | 56,153 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
1647,
1726
]
} | 56,154 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
2039,
2141
]
} | 56,155 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | 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 t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
100,
159
]
} | 56,156 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | 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 t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
226,
287
]
} | 56,157 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | 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 t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the decimals places of the token.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
363,
418
]
} | 56,158 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
779,
884
]
} | 56,159 |
ThroneERC20 | ThroneERC20.sol | 0x2e95cea14dd384429eb3c4331b776c4cfbb6fcd9 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | 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.4+commit.c7e474f2 | MIT | ipfs://b57468dd69bef025aa37774f30167907745b8d7d825492841bbe8f363cab7160 | {
"func_code_index": [
998,
1107
]
} | 56,160 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.