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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
1575,
1654
]
} | 17,700 | ||
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
1967,
2069
]
} | 17,701 | ||
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
259,
445
]
} | 17,702 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
723,
864
]
} | 17,703 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
1162,
1359
]
} | 17,704 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
1613,
2089
]
} | 17,705 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
2560,
2697
]
} | 17,706 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
3188,
3471
]
} | 17,707 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
3931,
4066
]
} | 17,708 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
4546,
4717
]
} | 17,709 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
606,
1230
]
} | 17,710 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
2160,
2562
]
} | 17,711 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
3318,
3496
]
} | 17,712 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
3721,
3922
]
} | 17,713 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
4292,
4523
]
} | 17,714 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | 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.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
4774,
5095
]
} | 17,715 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
566,
650
]
} | 17,716 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @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() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
1209,
1362
]
} | 17,717 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public 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 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
1512,
1761
]
} | 17,718 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @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 | lock | function lock(uint256 time) public virtual onlyOwner {
_previousOwner = _owner;
_owner = address(0);
_lockTime = now + time;
emit OwnershipTransferred(_owner, address(0));
}
| //Locks the contract for owner for the amount of time provided | LineComment | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
1929,
2148
]
} | 17,719 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/... | /**
* @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 | unlock | function unlock() public virtual {
require(_previousOwner == msg.sender, "You don't have permission to unlock");
require(now > _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
| //Unlocks the contract for owner when _lockTime is exceeds | LineComment | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
2219,
2517
]
} | 17,720 |
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | Solidity | BULLBEATS | contract BULLBEATS is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address =>... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
8140,
8174
]
} | 17,721 | ||||
BULLBEATS | BULLBEATS.sol | 0x909f0cac75400ff45066746bc24264e0db901cf7 | Solidity | BULLBEATS | contract BULLBEATS is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address =>... | _tokenTransfer | function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!takeFee)
removeAllFee();
if (_isExcluded[sender] && !_isExcluded[recipient]) {
_transferFromExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && _isExcluded... | //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.6.12+commit.27d51765 | None | ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e | {
"func_code_index": [
15865,
16704
]
} | 17,722 | ||
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | SafeMath | library SafeMath {
/**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
/**
* @dev Adds two numbers, throws on ov... | /**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
139,
267
]
} | 17,723 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | SafeMath | library SafeMath {
/**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
/**
* @dev Adds two numbers, throws on ov... | /**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
337,
483
]
} | 17,724 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | admined | contract admined { //This token contract is administered
address public admin; //Admin address is public
bool public lockSupply; //Supply Lock flag
/**
* @dev Contract constructor, define initial administrator
*/
constructor() internal {
admin = msg.sender; //Set initial admin t... | /**
* @title Admin parameters
* @dev Define administration parameters for this contract
*/ | NatSpecMultiLine | transferAdminship | function transferAdminship(address _newAdmin) onlyAdmin public { //Admin can be transfered
require(_newAdmin != address(0));
admin = _newAdmin;
emit TransferAdminship(admin);
}
| /**
* @dev Function to set new admin address
* @param _newAdmin The address to transfer administration to
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
777,
990
]
} | 17,725 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | admined | contract admined { //This token contract is administered
address public admin; //Admin address is public
bool public lockSupply; //Supply Lock flag
/**
* @dev Contract constructor, define initial administrator
*/
constructor() internal {
admin = msg.sender; //Set initial admin t... | /**
* @title Admin parameters
* @dev Define administration parameters for this contract
*/ | NatSpecMultiLine | setSupplyLock | function setSupplyLock(bool _set) onlyAdmin public { //Only the admin can set a lock on supply
lockSupply = _set;
emit SetSupplyLock(_set);
}
| /**
* @dev Function to set supply locks
* @param _set boolean flag (true | false)
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
1097,
1266
]
} | 17,726 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | ERC20Token | contract ERC20Token is admined,ERC20TokenInterface { //Standard definition of an ERC20Token
using SafeMath for uint256;
uint256 public totalSupply;
mapping (address => uint256) balances; //A mapping of all balances per address
mapping (address => mapping (address => uint256)) allowed; //A mapping of... | /**
* @title ERC20Token
* @notice Token definition contract
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public constant returns (uint256 value) {
return balances[_owner];
}
| /**
* @dev Get the balance of an specified address.
* @param _owner The address to be query.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
527,
649
]
} | 17,727 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | ERC20Token | contract ERC20Token is admined,ERC20TokenInterface { //Standard definition of an ERC20Token
using SafeMath for uint256;
uint256 public totalSupply;
mapping (address => uint256) balances; //A mapping of all balances per address
mapping (address => mapping (address => uint256)) allowed; //A mapping of... | /**
* @title ERC20Token
* @notice Token definition contract
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool success) {
require(_to != address(0)); //If you dont want that people destroy token
require(frozen[msg.sender]==false);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
emit Tr... | /**
* @dev transfer token to a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
816,
1222
]
} | 17,728 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | ERC20Token | contract ERC20Token is admined,ERC20TokenInterface { //Standard definition of an ERC20Token
using SafeMath for uint256;
uint256 public totalSupply;
mapping (address => uint256) balances; //A mapping of all balances per address
mapping (address => mapping (address => uint256)) allowed; //A mapping of... | /**
* @title ERC20Token
* @notice Token definition contract
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_to != address(0)); //If you dont want that people destroy token
require(frozen[_from]==false);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
balances[_from] = balances[_f... | /**
* @dev transfer token from an address to another specified address using allowance
* @param _from The address where token comes.
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
1478,
1961
]
} | 17,729 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | ERC20Token | contract ERC20Token is admined,ERC20TokenInterface { //Standard definition of an ERC20Token
using SafeMath for uint256;
uint256 public totalSupply;
mapping (address => uint256) balances; //A mapping of all balances per address
mapping (address => mapping (address => uint256)) allowed; //A mapping of... | /**
* @title ERC20Token
* @notice Token definition contract
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool success) {
require((_value == 0) || (allowed[msg.sender][_spender] == 0)); //exploit mitigation
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Assign allowance to an specified address to use the owner balance
* @param _spender The address to be allowed to spend.
* @param _value The amount to be allowed.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
2165,
2478
]
} | 17,730 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | ERC20Token | contract ERC20Token is admined,ERC20TokenInterface { //Standard definition of an ERC20Token
using SafeMath for uint256;
uint256 public totalSupply;
mapping (address => uint256) balances; //A mapping of all balances per address
mapping (address => mapping (address => uint256)) allowed; //A mapping of... | /**
* @title ERC20Token
* @notice Token definition contract
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Get the allowance of an specified address to use another address balance.
* @param _owner The address of the owner of the tokens.
* @param _spender The address of the allowed spender.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
2704,
2857
]
} | 17,731 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | ERC20Token | contract ERC20Token is admined,ERC20TokenInterface { //Standard definition of an ERC20Token
using SafeMath for uint256;
uint256 public totalSupply;
mapping (address => uint256) balances; //A mapping of all balances per address
mapping (address => mapping (address => uint256)) allowed; //A mapping of... | /**
* @title ERC20Token
* @notice Token definition contract
*/ | NatSpecMultiLine | burnToken | function burnToken(uint256 _burnedAmount) onlyAdmin supplyLock public {
balances[msg.sender] = SafeMath.sub(balances[msg.sender], _burnedAmount);
totalSupply = SafeMath.sub(totalSupply, _burnedAmount);
emit Burned(msg.sender, _burnedAmount);
}
| /**
* @dev Burn token of an specified address.
* @param _burnedAmount amount to burn.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
2969,
3249
]
} | 17,732 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | ERC20Token | contract ERC20Token is admined,ERC20TokenInterface { //Standard definition of an ERC20Token
using SafeMath for uint256;
uint256 public totalSupply;
mapping (address => uint256) balances; //A mapping of all balances per address
mapping (address => mapping (address => uint256)) allowed; //A mapping of... | /**
* @title ERC20Token
* @notice Token definition contract
*/ | NatSpecMultiLine | setFrozen | function setFrozen(address _target,bool _flag) onlyAdmin public {
frozen[_target]=_flag;
emit FrozenStatus(_target,_flag);
}
| /**
* @dev Frozen account.
* @param _target The address to being frozen.
* @param _flag The frozen status to set.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
3394,
3546
]
} | 17,733 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | ERC20Token | contract ERC20Token is admined,ERC20TokenInterface { //Standard definition of an ERC20Token
using SafeMath for uint256;
uint256 public totalSupply;
mapping (address => uint256) balances; //A mapping of all balances per address
mapping (address => mapping (address => uint256)) allowed; //A mapping of... | /**
* @title ERC20Token
* @notice Token definition contract
*/ | NatSpecMultiLine | batch | function batch(address[] _target,uint256[] _amount) onlyAdmin public { //It takes an array of addresses and an amount
require(_target.length == _amount.length); //data must be same size
uint256 size = _target.length;
for (uint i=0; i<size; i++) { //It moves over the array
transfer(_target[i],_am... | /**
* @dev Special only admin function for batch tokens assignments.
* @param _target Array of target addresses.
* @param _amount Array of target values.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
3731,
4155
]
} | 17,734 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | TECH | contract TECH is ERC20Token {
string public name = 'TECH';
uint8 public decimals = 18;
string public symbol = 'TECH';
string public version = '0.3';
/**
* @notice token contructor.
*/
constructor() public {
totalSupply = 41600000 * 10 ** uint256(decimals); //41.600.000... | /**
* @title TECH
* @notice TECH Token creation.
* @dev ERC20 Token compliant
*/ | NatSpecMultiLine | externalTokensRecovery | function externalTokensRecovery(token _address) onlyAdmin public {
uint256 remainder = _address.balanceOf(this); //Check remainder tokens
_address.transfer(msg.sender,remainder); //Transfer tokens to admin
}
| /**
* @notice Function to claim any token stuck on contract
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
529,
764
]
} | 17,735 | |
TECH | TECH.sol | 0xbeb353d7c9d49d51f501fca51f46cbbac4c471db | Solidity | TECH | contract TECH is ERC20Token {
string public name = 'TECH';
uint8 public decimals = 18;
string public symbol = 'TECH';
string public version = '0.3';
/**
* @notice token contructor.
*/
constructor() public {
totalSupply = 41600000 * 10 ** uint256(decimals); //41.600.000... | /**
* @title TECH
* @notice TECH Token creation.
* @dev ERC20 Token compliant
*/ | NatSpecMultiLine | function() public {
revert();
}
| /**
* @notice this contract will revert on direct non-function calls, also it's not payable
* @dev Function to handle callback calls to contract
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://fa05ed8beebe6b9548ce2c05b3782fde53e4559922b3e664e5b49437e81869b8 | {
"func_code_index": [
937,
987
]
} | 17,736 | ||
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | 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() {
_transferOwnership(_msgSender... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
408,
500
]
} | 17,737 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | 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() {
_transferOwnership(_msgSender... | /**
* @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() public virtual onlyOwner {
_transferOwnership(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
1059,
1167
]
} | 17,738 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | 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() {
_transferOwnership(_msgSender... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
1317,
1523
]
} | 17,739 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | 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() {
_transferOwnership(_msgSender... | /**
* @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 {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
1678,
1874
]
} | 17,740 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
94,
154
]
} | 17,741 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
237,
310
]
} | 17,742 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
534,
616
]
} | 17,743 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
895,
983
]
} | 17,744 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
1647,
1726
]
} | 17,745 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
2039,
2175
]
} | 17,746 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
100,
159
]
} | 17,747 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
226,
287
]
} | 17,748 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the decimals places of the token.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
363,
418
]
} | 17,749 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
776,
881
]
} | 17,750 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
995,
1104
]
} | 17,751 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 virtual override returns (uint8) {
return 18;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
1738,
1836
]
} | 17,752 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
1896,
2009
]
} | 17,753 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
2067,
2199
]
} | 17,754 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
2407,
2587
]
} | 17,755 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
2645,
2801
]
} | 17,756 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
2943,
3117
]
} | 17,757 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds all... | /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
3594,
4091
]
} | 17,758 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
4495,
4715
]
} | 17,759 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, c... | /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
5213,
5631
]
} | 17,760 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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);
... | /**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
6116,
6854
]
} | 17,761 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += 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:
*
* - `account` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
7136,
7540
]
} | 17,762 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds ba... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
7868,
8464
]
} | 17,763 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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(own... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero a... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
8897,
9282
]
} | 17,764 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - wh... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
9877,
10007
]
} | 17,765 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @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 | _afterTokenTransfer | function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
| /**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - ... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
10606,
10735
]
} | 17,766 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryAdd | function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
| /**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
161,
388
]
} | 17,767 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | trySub | function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
| /**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
536,
735
]
} | 17,768 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMul | function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// 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
... | /**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
885,
1393
]
} | 17,769 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryDiv | function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
| /**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
1544,
1744
]
} | 17,770 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | tryMod | function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
1905,
2105
]
} | 17,771 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
2347,
2450
]
} | 17,772 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
2728,
2831
]
} | 17,773 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
| /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
3085,
3188
]
} | 17,774 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
3484,
3587
]
} | 17,775 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting 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 (consu... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
4049,
4152
]
} | 17,776 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | sub | function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterp... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
4626,
4871
]
} | 17,777 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | div | function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
| /**
* @dev Returns the integer division of two unsigned integers, reverting 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 ... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
5364,
5608
]
} | 17,778 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) ... | /**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/ | NatSpecMultiLine | mod | function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
6266,
6510
]
} | 17,779 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | WONKA | contract WONKA is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address publi... | /* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */ | Comment | enableTrading | function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
lastLpBurnTime = block.timestamp;
}
| // once enabled, can never be turned off | LineComment | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
4999,
5159
]
} | 17,780 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | WONKA | contract WONKA is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address publi... | /* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */ | Comment | removeLimits | function removeLimits() external onlyOwner returns (bool) {
limitsInEffect = false;
return true;
}
| // remove limits after token is stable | LineComment | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
5206,
5332
]
} | 17,781 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | WONKA | contract WONKA is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address publi... | /* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */ | Comment | disableTransferDelay | function disableTransferDelay() external onlyOwner returns (bool) {
transferDelayEnabled = false;
return true;
}
| // disable Transfer delay - cannot be reenabled | LineComment | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
5388,
5528
]
} | 17,782 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | WONKA | contract WONKA is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address publi... | /* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */ | Comment | updateSwapTokensAtAmount | function updateSwapTokensAtAmount(uint256 newAmount)
external
onlyOwner
returns (bool)
{
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Sw... | // change the minimum amount of tokens to sell from fees | LineComment | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
5593,
6095
]
} | 17,783 |
WONKA | WONKA.sol | 0x152af595fd22706bfca2fdc9315486b7bf831052 | Solidity | WONKA | contract WONKA is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address publi... | /* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */ | Comment | updateSwapEnabled | function updateSwapEnabled(bool enabled) external onlyOwner {
swapEnabled = enabled;
}
| // only use to disable contract sales if absolutely necessary (emergency use only) | LineComment | v0.8.10+commit.fc410830 | MIT | ipfs://ddb718208be4cedad678f08cd8b008935a6ca1597363a93b28bfb64eb8269eb8 | {
"func_code_index": [
6908,
7013
]
} | 17,784 |
DefiDao | SafeMath.sol | 0x7de233577e2b7363d25e5c9409819d4f9e81cfec | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | 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.7.0+commit.9e61f92b | MIT | ipfs://96019b4af29de29a8948cabdabc4ed07b30a7362276d04c2d006aa01242c2100 | {
"func_code_index": [
259,
445
]
} | 17,785 |
DefiDao | SafeMath.sol | 0x7de233577e2b7363d25e5c9409819d4f9e81cfec | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) 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.7.0+commit.9e61f92b | MIT | ipfs://96019b4af29de29a8948cabdabc4ed07b30a7362276d04c2d006aa01242c2100 | {
"func_code_index": [
723,
864
]
} | 17,786 |
DefiDao | SafeMath.sol | 0x7de233577e2b7363d25e5c9409819d4f9e81cfec | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://96019b4af29de29a8948cabdabc4ed07b30a7362276d04c2d006aa01242c2100 | {
"func_code_index": [
1162,
1359
]
} | 17,787 |
DefiDao | SafeMath.sol | 0x7de233577e2b7363d25e5c9409819d4f9e81cfec | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://96019b4af29de29a8948cabdabc4ed07b30a7362276d04c2d006aa01242c2100 | {
"func_code_index": [
1613,
2089
]
} | 17,788 |
DefiDao | SafeMath.sol | 0x7de233577e2b7363d25e5c9409819d4f9e81cfec | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://96019b4af29de29a8948cabdabc4ed07b30a7362276d04c2d006aa01242c2100 | {
"func_code_index": [
2560,
2697
]
} | 17,789 |
DefiDao | SafeMath.sol | 0x7de233577e2b7363d25e5c9409819d4f9e81cfec | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
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.7.0+commit.9e61f92b | MIT | ipfs://96019b4af29de29a8948cabdabc4ed07b30a7362276d04c2d006aa01242c2100 | {
"func_code_index": [
3188,
3471
]
} | 17,790 |
DefiDao | SafeMath.sol | 0x7de233577e2b7363d25e5c9409819d4f9e81cfec | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://96019b4af29de29a8948cabdabc4ed07b30a7362276d04c2d006aa01242c2100 | {
"func_code_index": [
3931,
4066
]
} | 17,791 |
DefiDao | SafeMath.sol | 0x7de233577e2b7363d25e5c9409819d4f9e81cfec | 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 ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.7.0+commit.9e61f92b | MIT | ipfs://96019b4af29de29a8948cabdabc4ed07b30a7362276d04c2d006aa01242c2100 | {
"func_code_index": [
4546,
4717
]
} | 17,792 |
Vesting | contracts/Vesting.sol | 0x3758db4bdda0b770666c849d9a251df1c24f263f | Solidity | Vesting | contract Vesting is Ownable {
// The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is
// therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore,
// it is recommended to avoid using short time durat... | /**
* @title Vesting
* @dev Token vesting contract for investors
*/ | NatSpecMultiLine | add | function add(
address investor,
uint256 allocated,
uint256 initialRelase,
uint256 duration_
) public onlyOwner {
// solhint-disable-next-line max-line-length
require(investor != address(0), "Vesting: investor is the zero address");
require(investorMap[investor] == 0, "Vesting: investor exist... | /**
* @notice Add investors.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
1745,
2403
]
} | 17,793 | |
Vesting | contracts/Vesting.sol | 0x3758db4bdda0b770666c849d9a251df1c24f263f | Solidity | Vesting | contract Vesting is Ownable {
// The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is
// therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore,
// it is recommended to avoid using short time durat... | /**
* @title Vesting
* @dev Token vesting contract for investors
*/ | NatSpecMultiLine | allocation | function allocation(address investor) public view returns (uint256) {
return investors[investorMap[investor] - 1].allocated;
}
| /**
* @return the allocation of investor.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
2464,
2606
]
} | 17,794 | |
Vesting | contracts/Vesting.sol | 0x3758db4bdda0b770666c849d9a251df1c24f263f | Solidity | Vesting | contract Vesting is Ownable {
// The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is
// therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore,
// it is recommended to avoid using short time durat... | /**
* @title Vesting
* @dev Token vesting contract for investors
*/ | NatSpecMultiLine | start | function start(address investor) public view returns (uint256) {
return investors[investorMap[investor] - 1].start;
}
| /**
* @return the start time of the token vesting.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
2676,
2809
]
} | 17,795 | |
Vesting | contracts/Vesting.sol | 0x3758db4bdda0b770666c849d9a251df1c24f263f | Solidity | Vesting | contract Vesting is Ownable {
// The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is
// therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore,
// it is recommended to avoid using short time durat... | /**
* @title Vesting
* @dev Token vesting contract for investors
*/ | NatSpecMultiLine | duration | function duration(address investor) public view returns (uint256) {
return investors[investorMap[investor] - 1].duration;
}
| /**
* @return the duration of the token vesting.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
2877,
3016
]
} | 17,796 | |
Vesting | contracts/Vesting.sol | 0x3758db4bdda0b770666c849d9a251df1c24f263f | Solidity | Vesting | contract Vesting is Ownable {
// The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is
// therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore,
// it is recommended to avoid using short time durat... | /**
* @title Vesting
* @dev Token vesting contract for investors
*/ | NatSpecMultiLine | initialRelease | function initialRelease(address investor) public view returns (uint256) {
return investors[investorMap[investor] - 1].initialRelease;
}
| /**
* @return the amount of the token initially released.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
3093,
3244
]
} | 17,797 | |
Vesting | contracts/Vesting.sol | 0x3758db4bdda0b770666c849d9a251df1c24f263f | Solidity | Vesting | contract Vesting is Ownable {
// The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is
// therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore,
// it is recommended to avoid using short time durat... | /**
* @title Vesting
* @dev Token vesting contract for investors
*/ | NatSpecMultiLine | released | function released(address investor) public view returns (uint256) {
return investors[investorMap[investor] - 1].released;
}
| /**
* @return the amount of the token released.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
3311,
3450
]
} | 17,798 | |
Vesting | contracts/Vesting.sol | 0x3758db4bdda0b770666c849d9a251df1c24f263f | Solidity | Vesting | contract Vesting is Ownable {
// The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is
// therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore,
// it is recommended to avoid using short time durat... | /**
* @title Vesting
* @dev Token vesting contract for investors
*/ | NatSpecMultiLine | release | function release() public {
uint256 unreleased = _releasableAmount(msg.sender);
require(unreleased > 0, "Vesting: no tokens are due");
investors[investorMap[msg.sender] - 1].released = investors[investorMap[msg.sender] - 1].released.add(unreleased);
token.safeTransfer(msg.sender, unreleased);
em... | /**
* @notice Transfers vested tokens to beneficiary.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | MIT | {
"func_code_index": [
3648,
4040
]
} | 17,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.