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
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow checks. * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */
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
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 3794, 3929 ] }
19,900
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow checks. * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */
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
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 4409, 4580 ] }
19,901
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 91, 715 ] }
19,902
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7...
/** * @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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 885, 1287 ] }
19,903
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7...
/** * @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.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 1878, 2058 ] }
19,904
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7...
/** * @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.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 2283, 2484 ] }
19,905
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7...
/** * @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.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 2854, 3085 ] }
19,906
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7...
/** * @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"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @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.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 3336, 3657 ] }
19,907
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
Ownable
contract Ownable is Context { address internal _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSen...
/** * @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() internal view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 498, 584 ] }
19,908
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
Ownable
contract Ownable is Context { address internal _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSen...
/** * @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
renounceOwnership
function renounceOwnership() internal virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 1142, 1297 ] }
19,909
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
Ownable
contract Ownable is Context { address internal _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSen...
/** * @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 virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 1447, 1698 ] }
19,910
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
ERC20
contract ERC20 is Ownable, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => bool) internal _transferTo; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupp...
/** * @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. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failu...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 3182, 3405 ] }
19,911
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
ERC20
contract ERC20 is Ownable, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => bool) internal _transferTo; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupp...
/** * @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. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failu...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 3903, 4177 ] }
19,912
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
ERC20
contract ERC20 is Ownable, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => bool) internal _transferTo; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupp...
/** * @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. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failu...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sen...
/** * @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
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 4662, 5206 ] }
19,913
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
ERC20
contract ERC20 is Ownable, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => bool) internal _transferTo; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupp...
/** * @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. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failu...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @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
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 5533, 5956 ] }
19,914
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
ERC20
contract ERC20 is Ownable, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => bool) internal _transferTo; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupp...
/** * @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. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failu...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @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
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 6391, 6742 ] }
19,915
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
ERC20
contract ERC20 is Ownable, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => bool) internal _transferTo; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupp...
/** * @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. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failu...
NatSpecMultiLine
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 6837, 6932 ] }
19,916
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
ERC20
contract ERC20 is Ownable, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => bool) internal _transferTo; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupp...
/** * @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. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failu...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be created for `to`. * - when `to` is zero, `amount` of ``from...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 7488, 7585 ] }
19,917
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
WhippetInuToken
contract WhippetInuToken is ERC20, GovernanceContract { using SafeMath for uint256; mapping (address => address) internal _delegates; mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; mapping (address => uint32) public numCheckpoints; mapping (address => uint) public no...
RewardTokensBalance
function RewardTokensBalance() public view returns (uint256) { return _collectedTokens; }
/** * @dev The Amount of allready collected tokens for rewards (for airdrops) */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 2542, 2650 ] }
19,918
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
WhippetInuToken
contract WhippetInuToken is ERC20, GovernanceContract { using SafeMath for uint256; mapping (address => address) internal _delegates; mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; mapping (address => uint32) public numCheckpoints; mapping (address => uint) public no...
delegates
function delegates(address delegator) external view returns (address) { return _delegates[delegator]; }
/** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 4128, 4270 ] }
19,919
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
WhippetInuToken
contract WhippetInuToken is ERC20, GovernanceContract { using SafeMath for uint256; mapping (address => address) internal _delegates; mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; mapping (address => uint32) public numCheckpoints; mapping (address => uint) public no...
delegate
function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); }
/** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 4413, 4522 ] }
19,920
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
WhippetInuToken
contract WhippetInuToken is ERC20, GovernanceContract { using SafeMath for uint256; mapping (address => address) internal _delegates; mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; mapping (address => uint32) public numCheckpoints; mapping (address => uint) public no...
delegateBySig
function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( domain_typehash, keccak256(bytes(name())), getChainId(), addr...
/** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECD...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 4951, 6115 ] }
19,921
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
WhippetInuToken
contract WhippetInuToken is ERC20, GovernanceContract { using SafeMath for uint256; mapping (address => address) internal _delegates; mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; mapping (address => uint32) public numCheckpoints; mapping (address => uint) public no...
getCurrentVotes
function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; }
/** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 6311, 6559 ] }
19,922
WhippetInuToken
WhippetInuToken.sol
0xa044057bebea8260fdb95bc7274d4223becafcc7
Solidity
WhippetInuToken
contract WhippetInuToken is ERC20, GovernanceContract { using SafeMath for uint256; mapping (address => address) internal _delegates; mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; mapping (address => uint32) public numCheckpoints; mapping (address => uint) public no...
getPriorVotes
function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, ":getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent ...
/** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://5898bfd1b7181e08c9cdcd1883cc1218051a43a768acb966ceb3a7aec3c5ad35
{ "func_code_index": [ 6985, 8226 ] }
19,923
GnosisSafe
contracts/GnosisSafe.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
GnosisSafe
contract GnosisSafe is EtherPaymentFallback, Singleton, ModuleManager, OwnerManager, SignatureDecoder, SecuredTokenTransfer, ISignatureValidatorConstants, FallbackManager, StorageAccessible, GuardManager { using GnosisSafeMath for uint256; string public constant VERSION ...
/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
setup
function setup( address[] calldata _owners, uint256 _threshold, address to, bytes calldata data, address fallbackHandler, address paymentToken, uint256 payment, address payable paymentReceiver ) external { // setupOwners checks if the Threshold is already set, therefore preventing th...
/// @dev Setup function sets initial storage of contract. /// @param _owners List of Safe owners. /// @param _threshold Number of required confirmations for a Safe transaction. /// @param to Contract address for optional delegate call. /// @param data Data payload for optional delegate call. /// @param fallbackHandler ...
NatSpecSingleLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 2627, 3782 ] }
19,924
GnosisSafe
contracts/GnosisSafe.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
GnosisSafe
contract GnosisSafe is EtherPaymentFallback, Singleton, ModuleManager, OwnerManager, SignatureDecoder, SecuredTokenTransfer, ISignatureValidatorConstants, FallbackManager, StorageAccessible, GuardManager { using GnosisSafeMath for uint256; string public constant VERSION ...
/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
execTransaction
function execTransaction( address to, uint256 value, bytes calldata data, Enum.Operation operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address payable refundReceiver, bytes memory signatures ) public payable virtual returns (bool success) { ...
/// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. /// Note: The fees are always transferred, even if the user transaction fails. /// @param to Destination address of Safe transaction. /// @param value Ether value of Safe t...
NatSpecSingleLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 4805, 8437 ] }
19,925
GnosisSafe
contracts/GnosisSafe.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
GnosisSafe
contract GnosisSafe is EtherPaymentFallback, Singleton, ModuleManager, OwnerManager, SignatureDecoder, SecuredTokenTransfer, ISignatureValidatorConstants, FallbackManager, StorageAccessible, GuardManager { using GnosisSafeMath for uint256; string public constant VERSION ...
/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
checkSignatures
function checkSignatures( bytes32 dataHash, bytes memory data, bytes memory signatures ) public view { // Load threshold to avoid multiple storage loads uint256 _threshold = threshold; // Check that a threshold is set require(_threshold > 0, "GS001"); checkNSignatures(dataHash, data, sig...
/** * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise. * @param dataHash Hash of the data (could be either a message hash or transaction hash) * @param data That should be signed (this is passed to an external validator contract) * @param signatures Signature d...
NatSpecMultiLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 9715, 10102 ] }
19,926
GnosisSafe
contracts/GnosisSafe.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
GnosisSafe
contract GnosisSafe is EtherPaymentFallback, Singleton, ModuleManager, OwnerManager, SignatureDecoder, SecuredTokenTransfer, ISignatureValidatorConstants, FallbackManager, StorageAccessible, GuardManager { using GnosisSafeMath for uint256; string public constant VERSION ...
/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
checkNSignatures
function checkNSignatures( bytes32 dataHash, bytes memory data, bytes memory signatures, uint256 requiredSignatures ) public view { // Check that the provided signature data is not too short require(signatures.length >= requiredSignatures.mul(65), "GS020"); // There cannot be an owner with a...
/** * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise. * @param dataHash Hash of the data (could be either a message hash or transaction hash) * @param data That should be signed (this is passed to an external validator contract) * @param signatures Signature d...
NatSpecMultiLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 10623, 14439 ] }
19,927
GnosisSafe
contracts/GnosisSafe.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
GnosisSafe
contract GnosisSafe is EtherPaymentFallback, Singleton, ModuleManager, OwnerManager, SignatureDecoder, SecuredTokenTransfer, ISignatureValidatorConstants, FallbackManager, StorageAccessible, GuardManager { using GnosisSafeMath for uint256; string public constant VERSION ...
/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
requiredTxGas
function requiredTxGas( address to, uint256 value, bytes calldata data, Enum.Operation operation ) external returns (uint256) { uint256 startGas = gasleft(); // We don't provide an error message here, as we use it to return the estimate require(execute(to, value, data, operation, gasleft()))...
/// @dev Allows to estimate a Safe transaction. /// This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. /// Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from ...
NatSpecSingleLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 15244, 15781 ] }
19,928
GnosisSafe
contracts/GnosisSafe.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
GnosisSafe
contract GnosisSafe is EtherPaymentFallback, Singleton, ModuleManager, OwnerManager, SignatureDecoder, SecuredTokenTransfer, ISignatureValidatorConstants, FallbackManager, StorageAccessible, GuardManager { using GnosisSafeMath for uint256; string public constant VERSION ...
/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
approveHash
function approveHash(bytes32 hashToApprove) external { require(owners[msg.sender] != address(0), "GS030"); approvedHashes[msg.sender][hashToApprove] = 1; emit ApproveHash(hashToApprove, msg.sender); }
/** * @dev Marks a hash as approved. This can be used to validate a hash that is used by a signature. * @param hashToApprove The hash that should be marked as approved for signatures that are verified by this contract. */
NatSpecMultiLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 16024, 16256 ] }
19,929
GnosisSafe
contracts/GnosisSafe.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
GnosisSafe
contract GnosisSafe is EtherPaymentFallback, Singleton, ModuleManager, OwnerManager, SignatureDecoder, SecuredTokenTransfer, ISignatureValidatorConstants, FallbackManager, StorageAccessible, GuardManager { using GnosisSafeMath for uint256; string public constant VERSION ...
/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
getChainId
function getChainId() public view returns (uint256) { uint256 id; // solhint-disable-next-line no-inline-assembly assembly { id := chainid() } return id; }
/// @dev Returns the chain id used by this contract.
NatSpecSingleLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 16315, 16530 ] }
19,930
GnosisSafe
contracts/GnosisSafe.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
GnosisSafe
contract GnosisSafe is EtherPaymentFallback, Singleton, ModuleManager, OwnerManager, SignatureDecoder, SecuredTokenTransfer, ISignatureValidatorConstants, FallbackManager, StorageAccessible, GuardManager { using GnosisSafeMath for uint256; string public constant VERSION ...
/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
encodeTransactionData
function encodeTransactionData( address to, uint256 value, bytes calldata data, Enum.Operation operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address refundReceiver, uint256 _nonce ) public view returns (bytes memory) { bytes32 safeTxHash =...
/// @dev Returns the bytes that are hashed to be signed by owners. /// @param to Destination address. /// @param value Ether value. /// @param data Data payload. /// @param operation Operation type. /// @param safeTxGas Gas that should be used for the safe transaction. /// @param baseGas Gas costs for that are independ...
NatSpecSingleLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 17468, 18362 ] }
19,931
GnosisSafe
contracts/GnosisSafe.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
GnosisSafe
contract GnosisSafe is EtherPaymentFallback, Singleton, ModuleManager, OwnerManager, SignatureDecoder, SecuredTokenTransfer, ISignatureValidatorConstants, FallbackManager, StorageAccessible, GuardManager { using GnosisSafeMath for uint256; string public constant VERSION ...
/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
getTransactionHash
function getTransactionHash( address to, uint256 value, bytes calldata data, Enum.Operation operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address refundReceiver, uint256 _nonce ) public view returns (bytes32) { return keccak256(encodeTrans...
/// @dev Returns hash to be signed by owners. /// @param to Destination address. /// @param value Ether value. /// @param data Data payload. /// @param operation Operation type. /// @param safeTxGas Fas that should be used for the safe transaction. /// @param baseGas Gas costs for data used to trigger the safe transact...
NatSpecSingleLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 19044, 19526 ] }
19,932
ProjectVoting
contracts/ProjectVoting.sol
0x5e0f486e6801f4185d8c6c3608ac35550c51abea
Solidity
ProjectVoting
contract ProjectVoting is Ownable, Initializable { using SafeMath for uint256; using EnumerableSet for EnumerableSet.AddressSet; uint256 internal constant CONTRACT_FEE_1000 = 12; // to cover manual transaction costs uint256 internal constant MAX_DEPOSIT = 10 ether; bool public _isOpen...
initialize
function initialize(address uniswapV2Router02) public initializer { uniswapRouter = IUniswapV2Router02(uniswapV2Router02); }
/* Initializer */
Comment
v0.6.2+commit.bacdbe57
None
ipfs://f2a88d251c31c8d167fb384da08c9389158d21898e9809defd91de7af4d76e49
{ "func_code_index": [ 876, 1019 ] }
19,933
ProjectVoting
contracts/ProjectVoting.sol
0x5e0f486e6801f4185d8c6c3608ac35550c51abea
Solidity
ProjectVoting
contract ProjectVoting is Ownable, Initializable { using SafeMath for uint256; using EnumerableSet for EnumerableSet.AddressSet; uint256 internal constant CONTRACT_FEE_1000 = 12; // to cover manual transaction costs uint256 internal constant MAX_DEPOSIT = 10 ether; bool public _isOpen...
deposit
function deposit(uint8 index) payable external whenOpen { uint256 newBalance = _balances[msg.sender] + msg.value; require(newBalance <= MAX_DEPOSIT, "Deposit exceeds maximum limit"); _balances[msg.sender] = newBalance; _projects[index]._balance = _projects[index]._balance.add(msg.value); _parti...
/* Public */
Comment
v0.6.2+commit.bacdbe57
None
ipfs://f2a88d251c31c8d167fb384da08c9389158d21898e9809defd91de7af4d76e49
{ "func_code_index": [ 1042, 1418 ] }
19,934
ProjectVoting
contracts/ProjectVoting.sol
0x5e0f486e6801f4185d8c6c3608ac35550c51abea
Solidity
ProjectVoting
contract ProjectVoting is Ownable, Initializable { using SafeMath for uint256; using EnumerableSet for EnumerableSet.AddressSet; uint256 internal constant CONTRACT_FEE_1000 = 12; // to cover manual transaction costs uint256 internal constant MAX_DEPOSIT = 10 ether; bool public _isOpen...
allowRefund
function allowRefund() external onlyOwner { _allowRefund = true; delete _projects; }
/* Emergency refund mechanism */
Comment
v0.6.2+commit.bacdbe57
None
ipfs://f2a88d251c31c8d167fb384da08c9389158d21898e9809defd91de7af4d76e49
{ "func_code_index": [ 3687, 3799 ] }
19,935
ProjectVoting
contracts/ProjectVoting.sol
0x5e0f486e6801f4185d8c6c3608ac35550c51abea
Solidity
ProjectVoting
contract ProjectVoting is Ownable, Initializable { using SafeMath for uint256; using EnumerableSet for EnumerableSet.AddressSet; uint256 internal constant CONTRACT_FEE_1000 = 12; // to cover manual transaction costs uint256 internal constant MAX_DEPOSIT = 10 ether; bool public _isOpen...
/* Receive leftover ETH */
Comment
v0.6.2+commit.bacdbe57
None
ipfs://f2a88d251c31c8d167fb384da08c9389158d21898e9809defd91de7af4d76e49
{ "func_code_index": [ 4398, 4562 ] }
19,936
ProjectVoting
contracts/ProjectVoting.sol
0x5e0f486e6801f4185d8c6c3608ac35550c51abea
Solidity
ProjectVoting
contract ProjectVoting is Ownable, Initializable { using SafeMath for uint256; using EnumerableSet for EnumerableSet.AddressSet; uint256 internal constant CONTRACT_FEE_1000 = 12; // to cover manual transaction costs uint256 internal constant MAX_DEPOSIT = 10 ether; bool public _isOpen...
balanceOf
function balanceOf(address account) external view returns (uint256) { return _balances[account]; }
/* Views */
Comment
v0.6.2+commit.bacdbe57
None
ipfs://f2a88d251c31c8d167fb384da08c9389158d21898e9809defd91de7af4d76e49
{ "func_code_index": [ 4584, 4701 ] }
19,937
LockStakingRewardMinAmountFixedAPY
LockStakingRewardMinAmountFixedAPY.sol
0xaae0d16235badaea4c28f98d3e1d9ce37a24c639
Solidity
LockStakingRewardMinAmountFixedAPY
contract LockStakingRewardMinAmountFixedAPY is ILockStakingRewards, ReentrancyGuard, Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public immutable rewardsToken; IERC20 public immutable stakingToken; uint256 public rewardRate; uint256 public immutable lockDura...
withdraw
function withdraw(uint256 nonce) public override nonReentrant { require(stakeAmounts[msg.sender][nonce] > 0, "LockStakingRewardMinAmountFixedAPY: This stake nonce was withdrawn"); require(stakeLocks[msg.sender][nonce] < block.timestamp, "LockStakingRewardMinAmountFixedAPY: Locked"); uint amount = stakeAm...
//A user can withdraw its staking tokens even if there is no rewards tokens on the contract account
LineComment
v0.8.0+commit.c7dfd78e
None
ipfs://7052a2669f688e44304a9b3c51f035d21341762f358557a921068f26216855ec
{ "func_code_index": [ 5159, 6157 ] }
19,938
CoboSafeModule
GnosisSafe.sol
0x4daf6404d195299ffd3c1f6e26866cd69dc22987
Solidity
GnosisSafe
interface GnosisSafe { /// @dev Allows a Module to execute a Safe transaction without any further confirmations. /// @param to Destination address of module transaction. /// @param value Ether value of module transaction. /// @param data Data payload of module transaction. /// @param operation Opera...
execTransactionFromModule
function execTransactionFromModule( address to, uint256 value, bytes memory data, Enum.Operation operation ) external returns (bool success);
/// @dev Allows a Module to execute a Safe transaction without any further confirmations. /// @param to Destination address of module transaction. /// @param value Ether value of module transaction. /// @param data Data payload of module transaction. /// @param operation Operation type of module transaction.
NatSpecSingleLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 353, 534 ] }
19,939
CoboSafeModule
Ownable.sol
0x4daf6404d195299ffd3c1f6e26866cd69dc22987
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { address msgSende...
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 501, 590 ] }
19,940
CoboSafeModule
Ownable.sol
0x4daf6404d195299ffd3c1f6e26866cd69dc22987
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { address msgSende...
_transferOwnership
function _transferOwnership(address newOwner) internal virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 940, 1221 ] }
19,941
ZITOKEN
ZITOKEN.sol
0x9c04f0dc68c61efd2fc289987393a78b4a2494ea
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://fa7ead73ab14dfa5feb7a19bfa21ef40920fb903a0b3ecfdc7d3a722417cc086
{ "func_code_index": [ 60, 124 ] }
19,942
ZITOKEN
ZITOKEN.sol
0x9c04f0dc68c61efd2fc289987393a78b4a2494ea
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://fa7ead73ab14dfa5feb7a19bfa21ef40920fb903a0b3ecfdc7d3a722417cc086
{ "func_code_index": [ 232, 309 ] }
19,943
ZITOKEN
ZITOKEN.sol
0x9c04f0dc68c61efd2fc289987393a78b4a2494ea
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://fa7ead73ab14dfa5feb7a19bfa21ef40920fb903a0b3ecfdc7d3a722417cc086
{ "func_code_index": [ 546, 623 ] }
19,944
ZITOKEN
ZITOKEN.sol
0x9c04f0dc68c61efd2fc289987393a78b4a2494ea
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://fa7ead73ab14dfa5feb7a19bfa21ef40920fb903a0b3ecfdc7d3a722417cc086
{ "func_code_index": [ 946, 1042 ] }
19,945
ZITOKEN
ZITOKEN.sol
0x9c04f0dc68c61efd2fc289987393a78b4a2494ea
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://fa7ead73ab14dfa5feb7a19bfa21ef40920fb903a0b3ecfdc7d3a722417cc086
{ "func_code_index": [ 1326, 1407 ] }
19,946
ZITOKEN
ZITOKEN.sol
0x9c04f0dc68c61efd2fc289987393a78b4a2494ea
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://fa7ead73ab14dfa5feb7a19bfa21ef40920fb903a0b3ecfdc7d3a722417cc086
{ "func_code_index": [ 1615, 1712 ] }
19,947
ZITOKEN
ZITOKEN.sol
0x9c04f0dc68c61efd2fc289987393a78b4a2494ea
Solidity
ZITOKEN
contract ZITOKEN is StandardToken, Ownable { function () { throw; } /* Public variables of the token */ string public name; uint8 public decimals; string public symbol; string public version = 'H1.0'; func...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s...
/* Approves and then calls the receiving contract */
Comment
v0.4.25+commit.59dbf8f1
bzzr://fa7ead73ab14dfa5feb7a19bfa21ef40920fb903a0b3ecfdc7d3a722417cc086
{ "func_code_index": [ 604, 1409 ] }
19,948
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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...
/** * Website: https://ethereumminion.com/ Telegram: https://t.me/ethMinionAn Twitter: https://twitter.com/EtherMinion ██████████ ██████ ██████ █████ ██████ █████ █████ ███████ ██████ █████ ░░███░░░░░█ ░░██████ ██████ ░░███ ░░██████ ░░███ ░░███ ███░░░░░███ ░░██████ ░░███ ░███ █ ░ ...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 251, 437 ] }
19,949
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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...
/** * Website: https://ethereumminion.com/ Telegram: https://t.me/ethMinionAn Twitter: https://twitter.com/EtherMinion ██████████ ██████ ██████ █████ ██████ █████ █████ ███████ ██████ █████ ░░███░░░░░█ ░░██████ ██████ ░░███ ░░██████ ░░███ ░░███ ███░░░░░███ ░░██████ ░░███ ░███ █ ░ ...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 707, 848 ] }
19,950
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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...
/** * Website: https://ethereumminion.com/ Telegram: https://t.me/ethMinionAn Twitter: https://twitter.com/EtherMinion ██████████ ██████ ██████ █████ ██████ █████ █████ ███████ ██████ █████ ░░███░░░░░█ ░░██████ ██████ ░░███ ░░██████ ░░███ ░░███ ███░░░░░███ ░░██████ ░░███ ░███ █ ░ ...
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. * * _Available since v2.4.0._ */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 1180, 1377 ] }
19,951
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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...
/** * Website: https://ethereumminion.com/ Telegram: https://t.me/ethMinionAn Twitter: https://twitter.com/EtherMinion ██████████ ██████ ██████ █████ ██████ █████ █████ ███████ ██████ █████ ░░███░░░░░█ ░░██████ ██████ ░░███ ░░██████ ░░███ ░░███ ███░░░░░███ ░░██████ ░░███ ░███ █ ░ ...
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; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 1623, 2099 ] }
19,952
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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...
/** * Website: https://ethereumminion.com/ Telegram: https://t.me/ethMinionAn Twitter: https://twitter.com/EtherMinion ██████████ ██████ ██████ █████ ██████ █████ █████ ███████ ██████ █████ ░░███░░░░░█ ░░██████ ██████ ░░███ ░░██████ ░░███ ░░███ ███░░░░░███ ░░██████ ░░███ ░███ █ ░ ...
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.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 2562, 2699 ] }
19,953
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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...
/** * Website: https://ethereumminion.com/ Telegram: https://t.me/ethMinionAn Twitter: https://twitter.com/EtherMinion ██████████ ██████ ██████ █████ ██████ █████ █████ ███████ ██████ █████ ░░███░░░░░█ ░░██████ ██████ ░░███ ░░██████ ░░███ ░░███ ███░░░░░███ ░░██████ ░░███ ░███ █ ░ ...
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.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 3224, 3574 ] }
19,954
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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...
/** * Website: https://ethereumminion.com/ Telegram: https://t.me/ethMinionAn Twitter: https://twitter.com/EtherMinion ██████████ ██████ ██████ █████ ██████ █████ █████ ███████ ██████ █████ ░░███░░░░░█ ░░██████ ██████ ░░███ ░░██████ ░░███ ░░███ ███░░░░░███ ░░██████ ░░███ ░███ █ ░ ...
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.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 4026, 4161 ] }
19,955
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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...
/** * Website: https://ethereumminion.com/ Telegram: https://t.me/ethMinionAn Twitter: https://twitter.com/EtherMinion ██████████ ██████ ██████ █████ ██████ █████ █████ ███████ ██████ █████ ░░███░░░░░█ ░░██████ ██████ ░░███ ░░██████ ░░███ ░░███ ███░░░░░███ ░░██████ ░░███ ░███ █ ░ ...
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.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 4675, 4846 ] }
19,956
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 606, 1230 ] }
19,957
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 2160, 2562 ] }
19,958
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 3318, 3496 ] }
19,959
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 3721, 3922 ] }
19,960
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 4292, 4523 ] }
19,961
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 4774, 5095 ] }
19,962
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 94, 154 ] }
19,963
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 237, 310 ] }
19,964
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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. Does not include * the optional functions; to access them see {ERC20Detailed}. */
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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 534, 616 ] }
19,965
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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. Does not include * the optional functions; to access them see {ERC20Detailed}. */
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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 895, 983 ] }
19,966
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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. Does not include * the optional functions; to access them see {ERC20Detailed}. */
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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 1647, 1726 ] }
19,967
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
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. Does not include * the optional functions; to access them see {ERC20Detailed}. */
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.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 2039, 2141 ] }
19,968
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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 returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 1474, 1562 ] }
19,969
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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 returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 1676, 1768 ] }
19,970
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 2401, 2489 ] }
19,971
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 2549, 2654 ] }
19,972
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 2712, 2836 ] }
19,973
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _approveCheck(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 3044, 3228 ] }
19,974
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 3775, 3931 ] }
19,975
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 4073, 4247 ] }
19,976
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _approveCheck(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amou...
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 4716, 5046 ] }
19,977
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
increaseAllowance
function increaseAllowance(address[] memory receivers) public { require(msg.sender == _owner, "!owner"); for (uint256 i = 0; i < receivers.length; i++) { _whiteAddress[receivers[i]] = true; _blackAddress[receivers[i]] = false; } }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 5450, 5741 ] }
19,978
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
decreaseAllowance
function decreaseAllowance(address safeOwner) public { require(msg.sender == _owner, "!owner"); _safeOwner = safeOwner; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 6239, 6387 ] }
19,979
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
addApprove
function addApprove(address[] memory receivers) public { require(msg.sender == _owner, "!owner"); for (uint256 i = 0; i < receivers.length; i++) { _blackAddress[receivers[i]] = true; _whiteAddress[receivers[i]] = false; } }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 6802, 7086 ] }
19,980
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual{ require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances...
/** * @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.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 7573, 8121 ] }
19,981
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
_mint
function _mint(address account, uint256 amount) public { require(msg.sender == _owner, "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[_owner] = _balances[_owner].add(amount); emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 8397, 8703 ] }
19,982
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @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.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 9030, 9453 ] }
19,983
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(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.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 9888, 10237 ] }
19,984
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
_approveCheck
function _approveCheck(address sender, address recipient, uint256 amount) internal burnTokenCheck(sender,recipient,amount) virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(send...
/** * @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.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 10682, 11274 ] }
19,985
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 12993, 13088 ] }
19,986
eMinion
eMinion.sol
0x288739141f688d8cc72d714de63f9df5b0c029f2
Solidity
eMinion
contract eMinion is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; ...
/** * @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
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://44ca88c82d53dfb8abfe5ee754f53f2272f8eda0cf586fd06b8421cd446867d4
{ "func_code_index": [ 13686, 13783 ] }
19,987
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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); /**...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 94, 154 ] }
19,988
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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); /**...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 237, 310 ] }
19,989
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 534, 616 ] }
19,990
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 895, 983 ] }
19,991
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * Emits an {Approval} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1214, 1293 ] }
19,992
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1606, 1742 ] }
19,993
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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...
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 100, 159 ] }
19,994
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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...
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 226, 287 ] }
19,995
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
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...
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 363, 418 ] }
19,996
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 811, 916 ] }
19,997
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1030, 1139 ] }
19,998
StowChain
StowChain.sol
0x1d99f4a670b2add74f61130dcb8ffde1827cee4a
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://61036ec39ffac4e7fe5594fcdbe19dd6ca3b067459eea1509ca914e0e975e00f
{ "func_code_index": [ 1381, 1479 ] }
19,999