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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.deleg... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
6685,
7113
]
} | 26,300 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _add | function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
retur... | /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
908,
1327
]
} | 26,301 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _remove | function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) { // Equivalent to contains(set, value)
// To delete an element f... | /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
1498,
3056
]
} | 26,302 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _contains | function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
3137,
3271
]
} | 26,303 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _length | function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
| /**
* @dev Returns the number of values on the set. O(1).
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
3352,
3466
]
} | 26,304 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | _at | function _at(Set storage set, uint256 index) private view returns (bytes32) {
require(set._values.length > index, "EnumerableSet: index out of bounds");
return set._values[index];
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
3805,
4014
]
} | 26,305 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | add | function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
| /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
4263,
4393
]
} | 26,306 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | remove | function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
| /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
4564,
4700
]
} | 26,307 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | contains | function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
4781,
4926
]
} | 26,308 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | length | function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
| /**
* @dev Returns the number of values in the set. O(1).
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
5007,
5129
]
} | 26,309 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | at | function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
5468,
5604
]
} | 26,310 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | add | function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
| /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
5853,
6010
]
} | 26,311 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | remove | function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
| /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
6181,
6344
]
} | 26,312 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | contains | function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
6425,
6597
]
} | 26,313 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | length | function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
| /**
* @dev Returns the number of values in the set. O(1).
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
6678,
6800
]
} | 26,314 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | at | function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
7139,
7302
]
} | 26,315 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | add | function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
| /**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
7545,
7681
]
} | 26,316 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | remove | function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
| /**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
7852,
7994
]
} | 26,317 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | contains | function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
| /**
* @dev Returns true if the value is in the set. O(1).
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
8075,
8226
]
} | 26,318 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | length | function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
| /**
* @dev Returns the number of values on the set. O(1).
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
8307,
8426
]
} | 26,319 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | EnumerableSet | library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are... | /**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are ma... | NatSpecMultiLine | at | function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
| /**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
8765,
8907
]
} | 26,320 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _isTeam | function _isTeam(address addr) private view returns (bool){
return addr==owner()||addr==TeamWallet||addr==LoanWallet;
}
| //Checks if address is in Team, is needed to give Team access even if contract is renounced
//Team doesn't have access to critical Functions that could turn this into a Rugpull(Exept liquidity unlocks) | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
2883,
3021
]
} | 26,321 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _transfer | function _transfer(address sender, address recipient, uint256 amount) private{
require(sender != address(0), "Transfer from zero");
require(recipient != address(0), "Transfer to zero");
//Manually Excluded adresses are transfering tax and lock free
bool isExcluded = (_excluded.contains(sen... | //Transfer functionality///
//transfer function, every transfer runs through this function | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
4582,
6131
]
} | 26,322 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _taxedTransfer | function _taxedTransfer(address sender, address recipient, uint256 amount,bool isBuy,bool isSell) private{
uint256 recipientBalance = _balances[recipient];
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "Transfer exceeds balance");
uint8 tax;
if(isSell){
... | //applies taxes, checks for limits, locks generates autoLP and stakingETH, and autostakes | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
6227,
9304
]
} | 26,323 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _feelessTransfer | function _feelessTransfer(address sender, address recipient, uint256 amount) private{
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "Transfer exceeds balance");
//Removes token and handles staking
_removeToken(sender,amount);
//Adds token and handles staking
_... | //Feeless transfer only transfers and autostakes | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
9361,
9806
]
} | 26,324 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _calculateFee | function _calculateFee(uint256 amount, uint8 tax, uint8 taxPercent) private pure returns (uint256) {
return (amount*tax*taxPercent) / 10000;
}
| //Calculates the token that should be taxed | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
9856,
10017
]
} | 26,325 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | isExcludedFromStaking | function isExcludedFromStaking(address addr) public view returns (bool){
return _excludedFromStaking.contains(addr);
}
| //Contract, uniswapV2 and burnAddress are excluded, other addresses like CEX
//can be manually excluded, excluded list is limited to 30 entries to avoid a
//out of gas exeption during sells | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
11714,
11851
]
} | 26,326 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _getTotalShares | function _getTotalShares() public view returns (uint256){
uint256 shares=_circulatingSupply;
//substracts all excluded from shares, excluded list is limited to 30
// to avoid creating a Honeypot through OutOfGas exeption
for(uint i=0; i<_excludedFromStaking.length(); i++){
shares-=_balances... | //Total shares equals circulating supply minus excluded Balances | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
11924,
12340
]
} | 26,327 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _addToken | function _addToken(address addr, uint256 amount) private {
//the amount of token after transfer
uint256 newAmount=_balances[addr]+amount;
if(isExcludedFromStaking(addr)){
_balances[addr]=newAmount;
return;
}
//gets the payout before the change
uint256 pa... | //adds Token to balances, adds new ETH to the toBePaid mapping and resets staking | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
12430,
13080
]
} | 26,328 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _removeToken | function _removeToken(address addr, uint256 amount) private {
//the amount of token after transfer
uint256 newAmount=_balances[addr]-amount;
if(isExcludedFromStaking(addr)){
_balances[addr]=newAmount;
return;
}
//gets the payout before the change
uint256... | //removes Token, adds ETH to the toBePaid mapping and resets staking | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
13167,
13820
]
} | 26,329 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _newDividentsOf | function _newDividentsOf(address staker) private view returns (uint256) {
uint256 fullPayout = profitPerShare * _balances[staker];
// if theres an overflow for some unexpected reason, return 0, instead of
// an exeption to still make trades possible
if(fullPayout<alreadyPaidShares[staker]) return 0... | //gets the not dividents of a staker that aren't in the toBePaid mapping
//returns wrong value for excluded accounts | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
13961,
14393
]
} | 26,330 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _distributeStake | function _distributeStake(uint256 ETHAmount) private {
// Deduct marketing Tax
uint256 marketingSplit = (ETHAmount * StakingShare) / 100;
uint256 amount = ETHAmount - marketingSplit;
marketingBalance+=marketingSplit;
if (amount > 0) {
totalStakingReward += amount;
ui... | //distributes ETH between marketing share and dividends | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
14458,
15219
]
} | 26,331 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | claimBTC | function claimBTC(address addr) private{
require(!_isWithdrawing);
_isWithdrawing=true;
uint256 amount;
if(isExcludedFromStaking(addr)){
//if excluded just withdraw remaining toBePaid ETH
amount=toBePaid[addr];
toBePaid[addr]=0;
}
else{
uint256 newAmount... | //withdraws all dividents of address | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
15329,
16544
]
} | 26,332 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _swapContractToken | function _swapContractToken() private lockTheSwap{
uint256 contractBalance=_balances[address(this)];
uint16 totalTax=_liquidityTax+_stakingTax;
uint256 tokenToSwap = _setSellAmount;
//only swap if contractBalance is larger than tokenToSwap, and totalTax is unequal to 0
if(contractBalance<tokenT... | //swaps the token on the contract for Marketing ETH and LP Token.
//always swaps the sellLimit of token to avoid a large price impact | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
17120,
18748
]
} | 26,333 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _swapTokenForETH | function _swapTokenForETH(uint256 amount) private {
_approve(address(this), address(_uniswapV2Router), amount);
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _uniswapV2Router.WETH();
_uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
a... | //swaps tokens on the contract for ETH | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
18793,
19259
]
} | 26,334 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | _addLiquidity | function _addLiquidity(uint256 tokenamount, uint256 ETHamount) private {
totalLPETH=ETHamount;
_approve(address(this), address(_uniswapV2Router), tokenamount);
_uniswapV2Router.addLiquidityETH{value: ETHamount}(
address(this),
tokenamount,
0,
0,
address(this),... | //Adds Liquidity directly to the contract where LP are locked(unlike safemoon forks, that transfer it to the owner) | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
19381,
19786
]
} | 26,335 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | getLiquidityReleaseTimeInSeconds | function getLiquidityReleaseTimeInSeconds() public view returns (uint256){
if(block.timestamp<_liquidityUnlockTime){
return _liquidityUnlockTime-block.timestamp;
}
return 0;
}
| //public functions ///////////////////////////////////////////////////////////////////////////////////// | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
19901,
20126
]
} | 26,336 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | getAddressBuyLockTimeInSeconds | function getAddressBuyLockTimeInSeconds(address AddressToCheck) public view returns (uint256){
uint256 lockTime=_buyLock[AddressToCheck];
if(lockTime<=block.timestamp)
{
return 0;
}
return lockTime-block.timestamp;
}
| //How long is a given address still locked from buying | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
20736,
21011
]
} | 26,337 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | AddressResetBuyLock | function AddressResetBuyLock() public{
_buyLock[msg.sender]=block.timestamp+buyLockTime;
}
| //Functions every wallet can call
//Resets buy lock of caller to the default buyLockTime should something go very wrong | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
21254,
21363
]
} | 26,338 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamSwitchManualETHConversion | function TeamSwitchManualETHConversion(bool manual) public onlyOwner{
manualConversion=manual;
}
| //switches autoLiquidity and marketing ETH generation during transfers | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
22365,
22480
]
} | 26,339 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamDisableBuyLock | function TeamDisableBuyLock(bool disabled) public onlyOwner{
buyLockDisabled=disabled;
}
| //Disables the timeLock after buying for everyone | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
22928,
23035
]
} | 26,340 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamSetBuyLockTime | function TeamSetBuyLockTime(uint256 buyLockSeconds)public onlyOwner{
require(buyLockSeconds<=MaxBuyLockTime,"Buy Lock time too high");
buyLockTime=buyLockSeconds;
}
| //Sets BuyLockTime, needs to be lower than MaxBuyLockTime | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
23099,
23300
]
} | 26,341 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | AddWalletExclusion | function AddWalletExclusion(address exclusionAdd) public onlyOwner{
_excluded.add(exclusionAdd);
}
| //Allows wallet exclusion to be added after launch | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
23363,
23480
]
} | 26,342 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamSetTaxes | function TeamSetTaxes(uint8 burnTaxes, uint8 liquidityTaxes, uint8 stakingTaxes,uint8 buyTax, uint8 sellTax, uint8 transferTax) public onlyOwner{
uint8 totalTax=burnTaxes+liquidityTaxes+stakingTaxes;
require(totalTax==100, "burn+liq+marketing needs to equal 100%");
_burnTax=burnTaxes;
_liquidityTa... | //Sets Taxes, is limited by MaxTax(20%) to make it impossible to create honeypot | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
23573,
24070
]
} | 26,343 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamChangeStakingShare | function TeamChangeStakingShare(uint8 newShare) public onlyOwner{
require(newShare<=50);
StakingShare=newShare;
}
| //How much of the staking tax should be allocated for marketing | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
24142,
24284
]
} | 26,344 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamCreateLPandETH | function TeamCreateLPandETH() public onlyOwner{
_swapContractToken();
}
| //manually converts contract token to LP and staking ETH | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
24347,
24433
]
} | 26,345 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamUpdateLimits | function TeamUpdateLimits(uint256 newBalanceLimit, uint256 newSellLimit) public onlyOwner{
//SellLimit needs to be below 1% to avoid a Large Price impact when generating auto LP
require(newSellLimit<_circulatingSupply/100);
//Adds decimals to limits
newBalanceLimit=newBalanceLimit*10**_decimals;
... | //Limits need to be at least target, to avoid setting value to 0(avoid potential Honeypot) | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
24537,
25437
]
} | 26,346 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | SetupEnableTrading | function SetupEnableTrading() public onlyOwner{
tradingEnabled=true;
}
| //Enables trading for everyone | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
25676,
25765
]
} | 26,347 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | SetupLiquidityTokenAddress | function SetupLiquidityTokenAddress(address liquidityTokenAddress) public onlyOwner{
_liquidityTokenAddress=liquidityTokenAddress;
}
| //Sets up the LP-Token Address required for LP Release | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
25826,
25977
]
} | 26,348 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | changeTokenToSwapAmount | function changeTokenToSwapAmount(uint256 _setAmountToSwap) public onlyOwner {
_setSellAmount = _setAmountToSwap;
}
| //Contract TokenToSwap change function. | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
26025,
26158
]
} | 26,349 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamReleaseLiquidity | function TeamReleaseLiquidity() public onlyOwner {
//Only callable if liquidity Unlock time is over
require(block.timestamp >= _liquidityUnlockTime, "Not yet unlocked");
IuniswapV2ERC20 liquidityToken = IuniswapV2ERC20(_liquidityTokenAddress);
uint256 amount = liquidityToken.balanceOf(addr... | //Release Liquidity Tokens once unlock time is over | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
26819,
27306
]
} | 26,350 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamRemoveLiquidity | function TeamRemoveLiquidity(bool addToStaking) public onlyOwner{
//Only callable if liquidity Unlock time is over
require(block.timestamp >= _liquidityUnlockTime, "Not yet unlocked");
_liquidityUnlockTime=block.timestamp+DefaultLiquidityLockTime;
IuniswapV2ERC20 liquidityToken = IuniswapV2ERC20(_li... | //Removes Liquidity once unlock Time is over, | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
27359,
28591
]
} | 26,351 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | TeamRemoveRemainingETH | function TeamRemoveRemainingETH() public onlyOwner{
require(block.timestamp >= _liquidityUnlockTime, "Not yet unlocked");
_liquidityUnlockTime=block.timestamp+DefaultLiquidityLockTime;
(bool sent,) =TeamWallet.call{value: (address(this).balance)}("");
require(sent);
}
| //Releases all remaining ETH on the contract wallet, so ETH wont be burned | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
28672,
28986
]
} | 26,352 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | //////////////////////////////////////////////////////////////////////////////////////////////////////// | NatSpecSingleLine | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
29319,
29353
]
} | 26,353 | ||
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | getOwner | function getOwner() external view override returns (address) {
return owner();
}
| // IBEP20 | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
29407,
29506
]
} | 26,354 |
MetaVault | MetaVault.sol | 0xf0df7a455e2e72e9b71364679a66af2c2d86f7a2 | Solidity | MetaVault | contract MetaVault is IBEP20, Ownable
{
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _buyLock;
... | //MetaVault Contract ///////////// | LineComment | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {
_approve(msg.sender, spender, _allowances[msg.sender][spender] + addedValue);
return true;
}
| // IBEP20 - Helpers | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://85f36c3b6e8e65613da6d069cdad73d2dcca8752d54c3ecf9b39262f16bd078d | {
"func_code_index": [
31295,
31505
]
} | 26,355 |
CryptoBeauties | contracts/Ownable.sol | 0xfa1dbfeb3933acab666ce8bc7a20d5560fbe2504 | 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() {
_set... | /**
* @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.7+commit.e28d00a7 | MIT | ipfs://7a3c20c32e1c7de0d2d43582a2a6385b1070506260e629e6e16f54361ce371bb | {
"func_code_index": [
424,
516
]
} | 26,356 |
CryptoBeauties | contracts/Ownable.sol | 0xfa1dbfeb3933acab666ce8bc7a20d5560fbe2504 | 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() {
_set... | /**
* @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 {
_setOwner(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.7+commit.e28d00a7 | MIT | ipfs://7a3c20c32e1c7de0d2d43582a2a6385b1070506260e629e6e16f54361ce371bb | {
"func_code_index": [
1075,
1174
]
} | 26,357 |
CryptoBeauties | contracts/Ownable.sol | 0xfa1dbfeb3933acab666ce8bc7a20d5560fbe2504 | 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() {
_set... | /**
* @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"
);
_setOwner(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://7a3c20c32e1c7de0d2d43582a2a6385b1070506260e629e6e16f54361ce371bb | {
"func_code_index": [
1324,
1558
]
} | 26,358 |
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https:... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
}
uint2... | /**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
98,
496
]
} | 26,359 | ||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https:... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
618,
902
]
} | 26,360 | ||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https:... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
1027,
1166
]
} | 26,361 | ||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https:... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
1241,
1380
]
} | 26,362 | ||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https:... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
1525,
1642
]
} | 26,363 | ||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | PacmanPoolSale | contract PacmanPoolSale {
using SafeMath for uint256;
uint256 public totalSold;
ERC20 public Token;
address payable public owner;
uint256 public collectedETH;
uint256 public startDate;
bool private presaleClosed = false;
constructor(address _wallet) public {
owner = msg.sender;
Tok... | // Converts ETH to Tokens and sends new Tokens to the sender | LineComment | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
435,
1338
]
} | 26,364 | ||||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | PacmanPoolSale | contract PacmanPoolSale {
using SafeMath for uint256;
uint256 public totalSold;
ERC20 public Token;
address payable public owner;
uint256 public collectedETH;
uint256 public startDate;
bool private presaleClosed = false;
constructor(address _wallet) public {
owner = msg.sender;
Tok... | contribute | function contribute() external payable {
require(startDate > 0 && now.sub(startDate) <= 5 days);
require(Token.balanceOf(address(this)) > 0);
require(msg.value >= 0.1 ether && msg.value <= 60 ether);
require(!presaleClosed);
if (now.sub(startDate) <= 1 days) {
amount = msg.value.mul(20);
... | // Converts ETH to Tokens 1and sends new Tokens to the sender | LineComment | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
1406,
2320
]
} | 26,365 | ||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | PacmanPoolSale | contract PacmanPoolSale {
using SafeMath for uint256;
uint256 public totalSold;
ERC20 public Token;
address payable public owner;
uint256 public collectedETH;
uint256 public startDate;
bool private presaleClosed = false;
constructor(address _wallet) public {
owner = msg.sender;
Tok... | withdrawETH | function withdrawETH() public {
require(msg.sender == owner);
require(presaleClosed == true);
owner.transfer(collectedETH);
}
| // Only the contract owner can call this function | LineComment | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
2376,
2522
]
} | 26,366 | ||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | PacmanPoolSale | contract PacmanPoolSale {
using SafeMath for uint256;
uint256 public totalSold;
ERC20 public Token;
address payable public owner;
uint256 public collectedETH;
uint256 public startDate;
bool private presaleClosed = false;
constructor(address _wallet) public {
owner = msg.sender;
Tok... | burn | function burn() public {
require(msg.sender == owner && Token.balanceOf(address(this)) > 0 && now.sub(startDate) > 7 days);
// burn the left over.
Token.transfer(address(0), Token.balanceOf(address(this)));
}
| // Only the contract owner can call this function | LineComment | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
2681,
2910
]
} | 26,367 | ||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | PacmanPoolSale | contract PacmanPoolSale {
using SafeMath for uint256;
uint256 public totalSold;
ERC20 public Token;
address payable public owner;
uint256 public collectedETH;
uint256 public startDate;
bool private presaleClosed = false;
constructor(address _wallet) public {
owner = msg.sender;
Tok... | startSale | function startSale() public {
require(msg.sender == owner && startDate==0);
startDate=now;
}
| // Starts the sale
// Only the contract owner can call this function | LineComment | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
2990,
3098
]
} | 26,368 | ||
PacmanPoolSale | PacmanPoolSale.sol | 0x8fbe376886861940698703520f437a9a2fde21cf | Solidity | PacmanPoolSale | contract PacmanPoolSale {
using SafeMath for uint256;
uint256 public totalSold;
ERC20 public Token;
address payable public owner;
uint256 public collectedETH;
uint256 public startDate;
bool private presaleClosed = false;
constructor(address _wallet) public {
owner = msg.sender;
Tok... | availableTokens | function availableTokens() public view returns(uint256) {
return Token.balanceOf(address(this));
}
| // Function to query the supply of Tokens in the contract | LineComment | v0.6.8+commit.0bbfe453 | None | ipfs://c74ad1ed345ee50ea446d5842e114ae02e83e026f0505ff322c2e40788150aa8 | {
"func_code_index": [
3164,
3273
]
} | 26,369 | ||
PAYTRADEX | PAYTRADEX.sol | 0x52b4f84d785317039868acf2600b47c64d8f96f7 | Solidity | PAYTRADEX | contract PAYTRADEX is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f2dd6350fb664a450fd1124cc9de6bd55a7afc037b9f5823d8c15338dd309f3e | {
"func_code_index": [
981,
1102
]
} | 26,370 |
PAYTRADEX | PAYTRADEX.sol | 0x52b4f84d785317039868acf2600b47c64d8f96f7 | Solidity | PAYTRADEX | contract PAYTRADEX is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f2dd6350fb664a450fd1124cc9de6bd55a7afc037b9f5823d8c15338dd309f3e | {
"func_code_index": [
1322,
1451
]
} | 26,371 |
PAYTRADEX | PAYTRADEX.sol | 0x52b4f84d785317039868acf2600b47c64d8f96f7 | Solidity | PAYTRADEX | contract PAYTRADEX is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f2dd6350fb664a450fd1124cc9de6bd55a7afc037b9f5823d8c15338dd309f3e | {
"func_code_index": [
1795,
2077
]
} | 26,372 |
PAYTRADEX | PAYTRADEX.sol | 0x52b4f84d785317039868acf2600b47c64d8f96f7 | Solidity | PAYTRADEX | contract PAYTRADEX is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f2dd6350fb664a450fd1124cc9de6bd55a7afc037b9f5823d8c15338dd309f3e | {
"func_code_index": [
2585,
2798
]
} | 26,373 |
PAYTRADEX | PAYTRADEX.sol | 0x52b4f84d785317039868acf2600b47c64d8f96f7 | Solidity | PAYTRADEX | contract PAYTRADEX is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(from, to, tokens);
r... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f2dd6350fb664a450fd1124cc9de6bd55a7afc037b9f5823d8c15338dd309f3e | {
"func_code_index": [
3329,
3692
]
} | 26,374 |
PAYTRADEX | PAYTRADEX.sol | 0x52b4f84d785317039868acf2600b47c64d8f96f7 | Solidity | PAYTRADEX | contract PAYTRADEX is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f2dd6350fb664a450fd1124cc9de6bd55a7afc037b9f5823d8c15338dd309f3e | {
"func_code_index": [
3975,
4131
]
} | 26,375 |
PAYTRADEX | PAYTRADEX.sol | 0x52b4f84d785317039868acf2600b47c64d8f96f7 | Solidity | PAYTRADEX | contract PAYTRADEX is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f2dd6350fb664a450fd1124cc9de6bd55a7afc037b9f5823d8c15338dd309f3e | {
"func_code_index": [
4486,
4808
]
} | 26,376 |
PAYTRADEX | PAYTRADEX.sol | 0x52b4f84d785317039868acf2600b47c64d8f96f7 | Solidity | PAYTRADEX | contract PAYTRADEX is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f2dd6350fb664a450fd1124cc9de6bd55a7afc037b9f5823d8c15338dd309f3e | {
"func_code_index": [
5000,
5059
]
} | 26,377 | |
PAYTRADEX | PAYTRADEX.sol | 0x52b4f84d785317039868acf2600b47c64d8f96f7 | Solidity | PAYTRADEX | contract PAYTRADEX is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | GNU GPLv3 | bzzr://f2dd6350fb664a450fd1124cc9de6bd55a7afc037b9f5823d8c15338dd309f3e | {
"func_code_index": [
5292,
5481
]
} | 26,378 |
LootPortal | contracts/arbitrum/IBridge.sol | 0xec2075a71c208f9a9219bd73d4b40053f0c84dd3 | Solidity | IBridge | interface IBridge {
event MessageDelivered(
uint256 indexed messageIndex,
bytes32 indexed beforeInboxAcc,
address inbox,
uint8 kind,
address sender,
bytes32 messageDataHash
);
function deliverMessageToInbox(
uint8 kind,
address sender,
... | setInbox | function setInbox(address inbox, bool enabled) external;
| // These are only callable by the admin | LineComment | v0.6.12+commit.27d51765 | {
"func_code_index": [
601,
661
]
} | 26,379 | ||||
LootPortal | contracts/arbitrum/IBridge.sol | 0xec2075a71c208f9a9219bd73d4b40053f0c84dd3 | Solidity | IBridge | interface IBridge {
event MessageDelivered(
uint256 indexed messageIndex,
bytes32 indexed beforeInboxAcc,
address inbox,
uint8 kind,
address sender,
bytes32 messageDataHash
);
function deliverMessageToInbox(
uint8 kind,
address sender,
... | activeOutbox | function activeOutbox() external view returns (address);
| // View functions | LineComment | v0.6.12+commit.27d51765 | {
"func_code_index": [
749,
809
]
} | 26,380 | ||||
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
165,
238
]
} | 26,381 | ||
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
462,
544
]
} | 26,382 | ||
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
823,
911
]
} | 26,383 | ||
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
1575,
1654
]
} | 26,384 | ||
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
1967,
2069
]
} | 26,385 | ||
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
259,
445
]
} | 26,386 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
723,
864
]
} | 26,387 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
1162,
1359
]
} | 26,388 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
1613,
2089
]
} | 26,389 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
2560,
2697
]
} | 26,390 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
3188,
3471
]
} | 26,391 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
3931,
4066
]
} | 26,392 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
4546,
4717
]
} | 26,393 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | Solidity | Context | abstract contract Context {
//function _msgSender() internal view virtual returns (address payable) {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mut... | _msgSender | function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
| //function _msgSender() internal view virtual returns (address payable) { | LineComment | v0.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
108,
211
]
} | 26,394 | ||
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
606,
1230
]
} | 26,395 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | 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.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
2160,
2562
]
} | 26,396 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
3318,
3496
]
} | 26,397 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
3721,
3922
]
} | 26,398 |
PokeMongoose | PokeMongoose.sol | 0xe923b0fea32c2c97c6cf8923228fd6aed6281dd5 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | None | ipfs://8aa25944ea1f40e3e7397d386ff455d07d4212a0af70517469c1b51ac6970392 | {
"func_code_index": [
4292,
4523
]
} | 26,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.