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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SedoPoWToken | SedoPoWToken.sol | 0x0f00f1696218eaefa2d2330df3d6d1f94813b38f | Solidity | SedoPoWToken | contract SedoPoWToken is ERC20Interface, Owned {
using SafeMath for uint;
using ExtendedMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public latestDifficultyPeriodStarted;
uint public epochCount;/... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and an
// initial fixed supply
// ---------------------------------------------------------------------------- | 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 | bzzr://c4774b9768b3b751f21d10c61fa3e0c71800beaa69e1672013c69d5ace49c9fb | {
"func_code_index": [
19319,
19512
]
} | 6,007 | |
MGEX | contracts/MGEX.sol | 0x10ea970cd621fab8553551030db5f9787958d422 | Solidity | MGEX | contract MGEX is EIP20Interface {
uint256 constant private MAX_UINT256 = 2**256 - 1;
mapping (address => uint256) public balances;
mapping (address => mapping (address => uint256)) public allowed;
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
... | MGEX | function MGEX(
uint256 _initialAmount,
string _tokenName,
uint8 _decimalUnits,
string _tokenSymbol
) public {
balances[msg.sender] = _initialAmount; // Give the creator all initial tokens
totalSupply = _initialAmount; // Update total supply
name =... | //An identifier: eg SBX | LineComment | v0.4.21+commit.dfe3193c | bzzr://d9c53457a34646bb679f473a90b2ae69084a4a65d7d6ce2c4beef4551b9fdfc0 | {
"func_code_index": [
721,
1374
]
} | 6,008 | |||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | supportsInterface | function supportsInterface(bytes4 interfaceId) public pure virtual returns (bool) {
return
interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
interfaceId == 0x5b5e139f || // ERC165 Interface ID for ERC721Metadata
interfaceId == 0x780e9d... | /// @notice Returns true if this contract implements an interface from its ID.
/// @dev See the corresponding
/// [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
/// to learn more about how these IDs are created.
/// @return The implementation status. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
2552,
2928
]
} | 6,009 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | name | function name() public view virtual returns (string memory) {
return _name;
}
| /// @notice Returns the collection name.
/// @return The collection name. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
3253,
3334
]
} | 6,010 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | symbol | function symbol() public view virtual returns (string memory) {
return _symbol;
}
| /// @notice Returns the collection symbol.
/// @return The collection symbol. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
3416,
3501
]
} | 6,011 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | tokenURI | function tokenURI(uint256 id) public view virtual returns (string memory);
| /// @notice Returns the Uniform Resource Identifier (URI) for `id` token.
/// @param id The token ID.
/// @return The URI. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
3629,
3704
]
} | 6,012 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | totalSupply | function totalSupply() public view virtual returns (uint256);
| /// @notice Returns the total amount of tokens stored by the contract.
/// @return The token supply. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
4056,
4118
]
} | 6,013 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256);
| /// @notice Returns a token ID owned by `owner` at a given `index` of its token list.
/// @dev Use along with {balanceOf} to enumerate all of `owner`'s tokens.
/// @param owner The address to query.
/// @param index The index to query.
/// @return The token ID. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
4387,
4485
]
} | 6,014 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | tokenByIndex | function tokenByIndex(uint256 index) public view virtual returns (uint256);
| /// @notice Returns a token ID at a given `index` of all the tokens stored by the contract.
/// @dev Use along with {totalSupply} to enumerate all tokens.
/// @param index The index to query.
/// @return The token ID. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
4709,
4785
]
} | 6,015 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | getApproved | function getApproved(uint256 id) public virtual returns (address) {
require(_exists(id), "NONEXISTENT_TOKEN");
return _tokenApprovals[id];
}
| /// @notice Returns the account approved for a token ID.
/// @dev Requirements:
/// - `id` must exist.
/// @param id Token ID to query.
/// @return The account approved for `id` token. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
5224,
5370
]
} | 6,016 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {
return _operatorApprovals[owner][operator];
}
| /// @notice Returns if the `operator` is allowed to manage all of the assets of `owner`.
/// @param owner The address of the owner.
/// @param operator The address of the operator.
/// @return True if `operator` was approved by `owner`. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
5613,
5758
]
} | 6,017 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | approve | function approve(address spender, uint256 id) public virtual {
address owner = ownerOf(id);
require(isApprovedForAll(owner, msg.sender) || msg.sender == owner, "NOT_AUTHORIZED");
_tokenApprovals[id] = spender;
emit Approval(owner, spender, id);
}
| /// @notice Gives permission to `to` to transfer `id` token to another account.
/// @dev The approval is cleared when the token is transferred.
/// Only a single account can be approved at a time, so approving the zero address clears previous approvals.
/// Requirements:
/// - The caller must own the token or be an app... | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
6259,
6518
]
} | 6,018 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual {
_operatorApprovals[msg.sender][operator] = approved;
emit ApprovalForAll(msg.sender, operator, approved);
}
| /// @notice Approve or remove `operator` as an operator for the caller.
/// @dev Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
/// Emits an {ApprovalForAll} event.
/// @param operator The address of the operator to approve.
/// @param approved The status to set. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
6833,
7024
]
} | 6,019 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | transferFrom | function transferFrom(
address from,
address to,
uint256 id
) public virtual {
_transfer(from, to, id);
}
| /// @notice Transfers `id` token from `from` to `to`.
/// WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
/// @dev Requirements:
/// - `to` cannot be the zero address.
/// - `id` token must be owned by `from`.
/// - If the caller is not `from`, it must be approved to move this to... | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
7562,
7678
]
} | 6,020 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 id
) public virtual {
_transfer(from, to, id);
require(to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT");
}
| /// @notice Safely transfers `id` token from `from` to `to`.
/// @dev Requirements:
/// - `to` cannot be the zero address.
/// - `id` token must exist and be owned by `from`.
/// - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
/// - If `to` refers to a s... | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
8279,
8571
]
} | 6,021 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 id,
bytes memory data
) public virtual {
_transfer(from, to, id);
require(to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT");
}
| /// @notice Safely transfers `id` token from `from` to `to`.
/// @dev Requirements:
/// - `to` cannot be the zero address.
/// - `id` token must exist and be owned by `from`.
/// - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
/// - If `to` refers to a s... | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
9315,
9630
]
} | 6,022 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | balanceOf | function balanceOf(address owner) public view virtual returns (uint256);
| /// @notice Returns the number of tokens in an account.
/// @param owner The address to query.
/// @return The balance. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
9755,
9828
]
} | 6,023 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | ownerOf | function ownerOf(uint256 id) public view virtual returns (address);
| /// @notice Returns the owner of a token ID.
/// @dev Requirements:
/// - `id` must exist.
/// @param id The token ID. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
9953,
10021
]
} | 6,024 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | _exists | function _exists(uint256 id) internal view virtual returns (bool);
| /// @dev Returns whether a token ID exists.
/// Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
/// Tokens start existing when they are minted.
/// @param id Token ID to query. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
10499,
10566
]
} | 6,025 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | _transfer | function _transfer(
address from,
address to,
uint256 id
) internal virtual;
| /// @dev Transfers `id` from `from` to `to`.
/// Requirements:
/// - `to` cannot be the zero address.
/// - `id` token must be owned by `from`.
/// Emits a {Transfer} event.
/// @param from The address to transfer from.
/// @param to The address to transfer to.
/// @param id The token ID to transfer. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
10878,
10962
]
} | 6,026 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | _mint | function _mint(address to, uint256 amount) internal virtual;
| /// @dev Mints `amount` tokens to `to`.
/// Requirements:
/// - there must be `amount` tokens remaining unminted in the total collection.
/// - `to` cannot be the zero address.
/// Emits `amount` {Transfer} events.
/// @param to The address to mint to.
/// @param amount The amount of tokens to mint. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
11272,
11333
]
} | 6,027 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | _safeMint | function _safeMint(address to, uint256 amount) internal virtual {
_mint(to, amount);
require(to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(address(0), to, totalSupply() - amount + 1, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT");
}
| /// @dev Safely mints `amount` of tokens and transfers them to `to`.
/// If `to` is a contract it must implement {ERC721TokenReceiver.onERC721Received}
/// that returns {ERC721TokenReceiver.onERC721Received.selector}.
/// @param to The address to mint to.
/// @param amount The amount of tokens to mint. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
11644,
11928
]
} | 6,028 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | _safeMint | function _safeMint(
address to,
uint256 amount,
bytes memory data
) internal virtual {
_mint(to, amount);
require(to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(address(0), to, totalSupply() - amount + 1, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT");
}
| /// @dev Safely mints `amount` of tokens and transfers them to `to`.
/// Requirements:
/// - `id` must not exist.
/// - If `to` refers to a smart contract, it must implement {ERC721TokenReceiver.onERC721Received}, which is called upon a safe transfer.
/// Additionally passes `data` in the callback.
/// @param to The ad... | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
12417,
12731
]
} | 6,029 | ||||
Mingoes | contracts/src/ERC721/ERC721.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | ERC721 | abstract contract ERC721 {
/* -------------------------------------------------------------------------- */
/* EVENTS */
/* -------------------------------------------------------------------------- */
/// @dev Emitted when `id` token is transferr... | toString | function toString(uint256 value) internal pure virtual returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint2... | /// @notice Converts a `uint256` to its ASCII `string` decimal representation.
/// @dev https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
13165,
13748
]
} | 6,030 | ||||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
251,
437
]
} | 6,031 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
707,
848
]
} | 6,032 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
1138,
1335
]
} | 6,033 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
1581,
2057
]
} | 6,034 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
2520,
2657
]
} | 6,035 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
3140,
3423
]
} | 6,036 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
3875,
4010
]
} | 6,037 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
4482,
4653
]
} | 6,038 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | 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 ... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
606,
1230
]
} | 6,039 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
94,
154
]
} | 6,040 |
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
237,
310
]
} | 6,041 |
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
534,
616
]
} | 6,042 |
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
895,
983
]
} | 6,043 |
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
1647,
1726
]
} | 6,044 |
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
2039,
2141
]
} | 6,045 |
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
902,
990
]
} | 6,046 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
1104,
1196
]
} | 6,047 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
1829,
1917
]
} | 6,048 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
1977,
2082
]
} | 6,049 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
2140,
2264
]
} | 6,050 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | transfer | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
2472,
2652
]
} | 6,051 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
2710,
2866
]
} | 6,052 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
3008,
3182
]
} | 6,053 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amou... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
3651,
3977
]
} | 6,054 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
4381,
4604
]
} | 6,055 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
5102,
5376
]
} | 6,056 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sen... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
5861,
6405
]
} | 6,057 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | _mint | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfe... | /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
6681,
7064
]
} | 6,058 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _to... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
7391,
7814
]
} | 6,059 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | _approve | function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amoun... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
8249,
8600
]
} | 6,060 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | _setupDecimals | function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
| /**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/ | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
8927,
9022
]
} | 6,061 | ||
Camouflage | Camouflage.sol | 0x0bb7db697567178c590efa64a7dcb2ce6213768c | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private ... | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* -... | NatSpecMultiLine | v0.6.0+commit.26b70077 | GNU GPLv2 | ipfs://ed2bbb414fc83aeb430340251c3e73c2ad927dddf3b739f6c723a3cbbd85c6ad | {
"func_code_index": [
9620,
9717
]
} | 6,062 | ||
KakashiInu | KakashiInu.sol | 0x2afe947da357679ae3e7d3b54bab4fa904d21c65 | Solidity | KakashiInu | contract KakashiInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress;
address payable public devAddress;
address payable public liquidityAddress;
mapping(address => uint256) private ... | removeLimits | function removeLimits() external onlyOwner returns (bool){
limitsInEffect = false;
gasLimitActive = false;
transferDelayEnabled = false;
return true;
}
| // remove limits after token is stable - 30-60 minutes | LineComment | v0.8.9+commit.e5eed63a | MIT | ipfs://26fe8cb0c3133224ff4fc393f1c7aff93c2e83eba46b8c78781d2ce471ee7178 | {
"func_code_index": [
8419,
8616
]
} | 6,063 | ||
KakashiInu | KakashiInu.sol | 0x2afe947da357679ae3e7d3b54bab4fa904d21c65 | Solidity | KakashiInu | contract KakashiInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress;
address payable public devAddress;
address payable public liquidityAddress;
mapping(address => uint256) private ... | disableTransferDelay | function disableTransferDelay() external onlyOwner returns (bool){
transferDelayEnabled = false;
return true;
}
| // disable Transfer delay | LineComment | v0.8.9+commit.e5eed63a | MIT | ipfs://26fe8cb0c3133224ff4fc393f1c7aff93c2e83eba46b8c78781d2ce471ee7178 | {
"func_code_index": [
8654,
8793
]
} | 6,064 | ||
KakashiInu | KakashiInu.sol | 0x2afe947da357679ae3e7d3b54bab4fa904d21c65 | Solidity | KakashiInu | contract KakashiInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress;
address payable public devAddress;
address payable public liquidityAddress;
mapping(address => uint256) private ... | enableTrading | function enableTrading() internal onlyOwner {
tradingActive = true;
swapAndLiquifyEnabled = true;
tradingActiveBlock = block.number;
earlyBuyPenaltyEnd = block.timestamp + 72 hours;
}
| // once enabled, can never be turned off | LineComment | v0.8.9+commit.e5eed63a | MIT | ipfs://26fe8cb0c3133224ff4fc393f1c7aff93c2e83eba46b8c78781d2ce471ee7178 | {
"func_code_index": [
9002,
9231
]
} | 6,065 | ||
KakashiInu | KakashiInu.sol | 0x2afe947da357679ae3e7d3b54bab4fa904d21c65 | Solidity | KakashiInu | contract KakashiInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress;
address payable public devAddress;
address payable public liquidityAddress;
mapping(address => uint256) private ... | launch | function launch(address[] memory airdropWallets, uint256[] memory amounts) external onlyOwner returns (bool){
require(!tradingActive, "Trading is already active, cannot relaunch.");
require(airdropWallets.length < 200, "Can only airdrop 200 wallets per txn due to gas limits"); // allows for airdrop + launch a... | // send tokens and ETH for liquidity to contract directly, then call this (not required, can still use Uniswap to add liquidity manually, but this ensures everything is excluded properly and makes for a great stealth launch) | LineComment | v0.8.9+commit.e5eed63a | MIT | ipfs://26fe8cb0c3133224ff4fc393f1c7aff93c2e83eba46b8c78781d2ce471ee7178 | {
"func_code_index": [
9468,
10864
]
} | 6,066 | ||
KakashiInu | KakashiInu.sol | 0x2afe947da357679ae3e7d3b54bab4fa904d21c65 | Solidity | KakashiInu | contract KakashiInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress;
address payable public devAddress;
address payable public liquidityAddress;
mapping(address => uint256) private ... | forceSwapBack | function forceSwapBack() external onlyOwner {
uint256 contractBalance = balanceOf(address(this));
require(contractBalance >= _tTotal / 100, "Can only swap back if more than 1% of tokens stuck on contract");
swapBack();
emit OwnerForcedSwapBack(block.timestamp);
}
| // force Swap back if slippage above 49% for launch. | LineComment | v0.8.9+commit.e5eed63a | MIT | ipfs://26fe8cb0c3133224ff4fc393f1c7aff93c2e83eba46b8c78781d2ce471ee7178 | {
"func_code_index": [
20542,
20851
]
} | 6,067 | ||
KakashiInu | KakashiInu.sol | 0x2afe947da357679ae3e7d3b54bab4fa904d21c65 | Solidity | KakashiInu | contract KakashiInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress;
address payable public devAddress;
address payable public liquidityAddress;
mapping(address => uint256) private ... | // To receive ETH from uniswapV2Router when swapping | LineComment | v0.8.9+commit.e5eed63a | MIT | ipfs://26fe8cb0c3133224ff4fc393f1c7aff93c2e83eba46b8c78781d2ce471ee7178 | {
"func_code_index": [
32004,
32038
]
} | 6,068 | ||||
KakashiInu | KakashiInu.sol | 0x2afe947da357679ae3e7d3b54bab4fa904d21c65 | Solidity | KakashiInu | contract KakashiInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress;
address payable public devAddress;
address payable public liquidityAddress;
mapping(address => uint256) private ... | withdrawStuckETH | function withdrawStuckETH() external onlyOwner {
require(!tradingActive, "Can only withdraw if trading hasn't started");
bool success;
(success,) = address(msg.sender).call{value: address(this).balance}("");
}
| // withdraw ETH if stuck before launch | LineComment | v0.8.9+commit.e5eed63a | MIT | ipfs://26fe8cb0c3133224ff4fc393f1c7aff93c2e83eba46b8c78781d2ce471ee7178 | {
"func_code_index": [
32585,
32831
]
} | 6,069 | ||
DeltaChainToken | DeltaChainToken.sol | 0xec82fffd7c1961904fdbb4cbd98f06d9dd0870a8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
* Name : DeltaChain (Delta)
* Decimals : 8
* TotalSupply : 30000000000
*
*
*
*
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0c08fd3a8699c778f6d6ad96a488e82381f843d586d74388e5b7495eec5d88ca | {
"func_code_index": [
95,
302
]
} | 6,070 | |
DeltaChainToken | DeltaChainToken.sol | 0xec82fffd7c1961904fdbb4cbd98f06d9dd0870a8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
* Name : DeltaChain (Delta)
* Decimals : 8
* TotalSupply : 30000000000
*
*
*
*
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0c08fd3a8699c778f6d6ad96a488e82381f843d586d74388e5b7495eec5d88ca | {
"func_code_index": [
392,
692
]
} | 6,071 | |
DeltaChainToken | DeltaChainToken.sol | 0xec82fffd7c1961904fdbb4cbd98f06d9dd0870a8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
* Name : DeltaChain (Delta)
* Decimals : 8
* TotalSupply : 30000000000
*
*
*
*
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0c08fd3a8699c778f6d6ad96a488e82381f843d586d74388e5b7495eec5d88ca | {
"func_code_index": [
812,
940
]
} | 6,072 | |
DeltaChainToken | DeltaChainToken.sol | 0xec82fffd7c1961904fdbb4cbd98f06d9dd0870a8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
* Name : DeltaChain (Delta)
* Decimals : 8
* TotalSupply : 30000000000
*
*
*
*
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://0c08fd3a8699c778f6d6ad96a488e82381f843d586d74388e5b7495eec5d88ca | {
"func_code_index": [
1010,
1156
]
} | 6,073 | |
Mingoes | contracts/src/Mingoes.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | Mingoes | contract Mingoes is ERC721M, ERC721Tradable, Ownable {
uint256 public constant PRICE = 0.04 ether;
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_RESERVE = 300;
uint256 public constant MAX_PUBLIC = 9700; // MAX_SUPPLY - MAX_RESERVE
uint256 public constant MAX_FREE = 200;
uint256 public ... | publicMint | function publicMint(uint256 amount) external payable {
require(isSaleActive, "Sale is not active");
require(msg.sender == tx.origin, "No contracts allowed");
uint256 _totalSupply = totalSupply();
if (_totalSupply < MAX_FREE) {
require(!hasClaimed[msg.sender], "Already claimed");
hasClaimed[msg.sender] = true;
... | /// @notice Mints an amount of tokens and transfers them to the caller during the public sale.
/// @param amount The amount of tokens to mint. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
1358,
1964
]
} | 6,074 | ||||
Mingoes | contracts/src/Mingoes.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | Mingoes | contract Mingoes is ERC721M, ERC721Tradable, Ownable {
uint256 public constant PRICE = 0.04 ether;
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_RESERVE = 300;
uint256 public constant MAX_PUBLIC = 9700; // MAX_SUPPLY - MAX_RESERVE
uint256 public constant MAX_FREE = 200;
uint256 public ... | setIsSaleActive | function setIsSaleActive(bool _isSaleActive) external onlyOwner {
isSaleActive = _isSaleActive;
}
| /// @notice Enables or disables minting through {publicMint}.
/// @dev Requirements:
/// - Caller must be the owner. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
2333,
2434
]
} | 6,075 | ||||
Mingoes | contracts/src/Mingoes.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | Mingoes | contract Mingoes is ERC721M, ERC721Tradable, Ownable {
uint256 public constant PRICE = 0.04 ether;
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_RESERVE = 300;
uint256 public constant MAX_PUBLIC = 9700; // MAX_SUPPLY - MAX_RESERVE
uint256 public constant MAX_FREE = 200;
uint256 public ... | reserveMint | function reserveMint(address[] calldata recipients, uint256[] calldata amounts) external onlyOwner {
unchecked {
uint256 sum;
uint256 length = recipients.length;
for (uint256 i; i < length; i++) {
address to = recipients[i];
require(to != address(0), "Invalid recipient");
uint256 amount = amounts[i];
... | /// @notice Mints tokens to multiple addresses.
/// @dev Requirements:
/// - Caller must be the owner.
/// @param recipients The addresses to mint the tokens to.
/// @param amounts The amounts of tokens to mint. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
2653,
3257
]
} | 6,076 | ||||
Mingoes | contracts/src/Mingoes.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | Mingoes | contract Mingoes is ERC721M, ERC721Tradable, Ownable {
uint256 public constant PRICE = 0.04 ether;
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_RESERVE = 300;
uint256 public constant MAX_PUBLIC = 9700; // MAX_SUPPLY - MAX_RESERVE
uint256 public constant MAX_FREE = 200;
uint256 public ... | setBaseURI | function setBaseURI(string calldata _baseURI) external onlyOwner {
baseURI = _baseURI;
}
| /// @notice Sets the base Uniform Resource Identifier (URI) for token metadata.
/// @dev Requirements:
/// - Caller must be the owner.
/// @param _baseURI The base URI. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
3432,
3524
]
} | 6,077 | ||||
Mingoes | contracts/src/Mingoes.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | Mingoes | contract Mingoes is ERC721M, ERC721Tradable, Ownable {
uint256 public constant PRICE = 0.04 ether;
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_RESERVE = 300;
uint256 public constant MAX_PUBLIC = 9700; // MAX_SUPPLY - MAX_RESERVE
uint256 public constant MAX_FREE = 200;
uint256 public ... | withdrawETH | function withdrawETH() external onlyOwner {
_transferETH(msg.sender, address(this).balance);
}
| /// @notice Withdraws all contract balance to the caller.
/// @dev Requirements:
/// - Caller must be the owner. | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
3642,
3740
]
} | 6,078 | ||||
Mingoes | contracts/src/Mingoes.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | Mingoes | contract Mingoes is ERC721M, ERC721Tradable, Ownable {
uint256 public constant PRICE = 0.04 ether;
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_RESERVE = 300;
uint256 public constant MAX_PUBLIC = 9700; // MAX_SUPPLY - MAX_RESERVE
uint256 public constant MAX_FREE = 200;
uint256 public ... | setMarketplaceApprovalForAll | function setMarketplaceApprovalForAll(bool approved) public override onlyOwner {
marketPlaceApprovalForAll = approved;
}
| /// @dev Requirements:
/// - Caller must be the owner.
/// @inheritdoc ERC721Tradable | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
3831,
3955
]
} | 6,079 | ||||
Mingoes | contracts/src/Mingoes.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | Mingoes | contract Mingoes is ERC721M, ERC721Tradable, Ownable {
uint256 public constant PRICE = 0.04 ether;
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_RESERVE = 300;
uint256 public constant MAX_PUBLIC = 9700; // MAX_SUPPLY - MAX_RESERVE
uint256 public constant MAX_FREE = 200;
uint256 public ... | tokenURI | function tokenURI(uint256 id) public view override returns (string memory) {
require(_exists(id), "NONEXISTENT_TOKEN");
string memory _baseURI = baseURI;
return bytes(_baseURI).length == 0 ? "" : string(abi.encodePacked(_baseURI, toString(id)));
}
| /// @inheritdoc ERC721 | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
4228,
4483
]
} | 6,080 | ||||
Mingoes | contracts/src/Mingoes.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | Mingoes | contract Mingoes is ERC721M, ERC721Tradable, Ownable {
uint256 public constant PRICE = 0.04 ether;
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_RESERVE = 300;
uint256 public constant MAX_PUBLIC = 9700; // MAX_SUPPLY - MAX_RESERVE
uint256 public constant MAX_FREE = 200;
uint256 public ... | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view override(ERC721, ERC721Tradable) returns (bool) {
return ERC721Tradable.isApprovedForAll(owner, operator);
}
| /// @inheritdoc ERC721Tradable | NatSpecSingleLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
4517,
4700
]
} | 6,081 | ||||
Mingoes | contracts/src/Mingoes.sol | 0xe6f475c11ad693e48455fcaf7bca33fe84ce71b0 | Solidity | Mingoes | contract Mingoes is ERC721M, ERC721Tradable, Ownable {
uint256 public constant PRICE = 0.04 ether;
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_RESERVE = 300;
uint256 public constant MAX_PUBLIC = 9700; // MAX_SUPPLY - MAX_RESERVE
uint256 public constant MAX_FREE = 200;
uint256 public ... | _transferETH | function _transferETH(address to, uint256 value) internal {
// solhint-disable-next-line avoid-low-level-calls
(bool success, ) = to.call{ value: value }("");
require(success, "ETH transfer failed");
}
| /* -------------------------------------------------------------------------- */ | Comment | v0.8.11+commit.d7f03943 | {
"func_code_index": [
4949,
5158
]
} | 6,082 | ||||
IAMEPrivateSale | IAMEPrivateSale.sol | 0xedb7f6c49e26c4602b109755246155c522dd4032 | Solidity | IAMEPrivateSale | contract IAMEPrivateSale is Owned {
// -------------------------------------------------------------------------------------
// TODO Before deployment of contract to Mainnet
// 1. Confirm MINIMUM_PARTICIPATION_AMOUNT below
// 2. Adjust PRIVATESALE_START_DATE and confirm the Private Sale period
// 3. Test... | /// ----------------------------------------------------------------------------------------
/// @title IAME Private Sale Contract
/// @author IAME Ltd
/// @dev Changes to this contract will invalidate any security audits done before.
/// ---------------------------------------------------------------------------------... | NatSpecSingleLine | IAMEPrivateSale | function IAMEPrivateSale() public{
PRIVATESALE_START_DATE = now + 5 days; // 'now' is the block timestamp
PRIVATESALE_END_DATE = now + 40 days;
}
| /// @notice This is the constructor to set the dates | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://b78abb8ea18f9451ff8269daa03671b966fa8f6212d172cd2bc0fa56cdc72ce7 | {
"func_code_index": [
982,
1143
]
} | 6,083 | |
IAMEPrivateSale | IAMEPrivateSale.sol | 0xedb7f6c49e26c4602b109755246155c522dd4032 | Solidity | IAMEPrivateSale | contract IAMEPrivateSale is Owned {
// -------------------------------------------------------------------------------------
// TODO Before deployment of contract to Mainnet
// 1. Confirm MINIMUM_PARTICIPATION_AMOUNT below
// 2. Adjust PRIVATESALE_START_DATE and confirm the Private Sale period
// 3. Test... | /// ----------------------------------------------------------------------------------------
/// @title IAME Private Sale Contract
/// @author IAME Ltd
/// @dev Changes to this contract will invalidate any security audits done before.
/// ---------------------------------------------------------------------------------... | NatSpecSingleLine | function () public payable {
// A participant cannot send funds before the Private Sale Start Date
if (now < PRIVATESALE_START_DATE) revert();
// A participant cannot send funds after the Private Sale End Date
if (now > PRIVATESALE_END_DATE) revert();
// A participant cannot send less than the minimum am... | /// @notice A participant sends a contribution to the contract's address
/// between the PRIVATESALE_STATE_DATE and the PRIVATESALE_END_DATE
/// @notice Only contributions bigger than the MINIMUM_PARTICIPATION_AMOUNT
/// are accepted. Otherwise the transaction
/// is rejected and contributed amo... | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://b78abb8ea18f9451ff8269daa03671b966fa8f6212d172cd2bc0fa56cdc72ce7 | {
"func_code_index": [
2168,
2659
]
} | 6,084 | ||
IAMEPrivateSale | IAMEPrivateSale.sol | 0xedb7f6c49e26c4602b109755246155c522dd4032 | Solidity | IAMEPrivateSale | contract IAMEPrivateSale is Owned {
// -------------------------------------------------------------------------------------
// TODO Before deployment of contract to Mainnet
// 1. Confirm MINIMUM_PARTICIPATION_AMOUNT below
// 2. Adjust PRIVATESALE_START_DATE and confirm the Private Sale period
// 3. Test... | /// ----------------------------------------------------------------------------------------
/// @title IAME Private Sale Contract
/// @author IAME Ltd
/// @dev Changes to this contract will invalidate any security audits done before.
/// ---------------------------------------------------------------------------------... | NatSpecSingleLine | ownerWithdraw | function ownerWithdraw(uint256 value) external onlyOwner {
if (!owner.send(value)) revert();
}
| /// @notice The owner can withdraw ethers already during Private Sale, | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://b78abb8ea18f9451ff8269daa03671b966fa8f6212d172cd2bc0fa56cdc72ce7 | {
"func_code_index": [
2736,
2841
]
} | 6,085 | |
IAMEPrivateSale | IAMEPrivateSale.sol | 0xedb7f6c49e26c4602b109755246155c522dd4032 | Solidity | IAMEPrivateSale | contract IAMEPrivateSale is Owned {
// -------------------------------------------------------------------------------------
// TODO Before deployment of contract to Mainnet
// 1. Confirm MINIMUM_PARTICIPATION_AMOUNT below
// 2. Adjust PRIVATESALE_START_DATE and confirm the Private Sale period
// 3. Test... | /// ----------------------------------------------------------------------------------------
/// @title IAME Private Sale Contract
/// @author IAME Ltd
/// @dev Changes to this contract will invalidate any security audits done before.
/// ---------------------------------------------------------------------------------... | NatSpecSingleLine | addBalance | function addBalance(address participant, uint256 value) private {
// Participant's balance is increased by the sent amount
balanceOf[participant] = safeIncrement(balanceOf[participant], value);
// Keep track of the total funding amount
totalFunding = safeIncrement(totalFunding, value);
// Log an event of... | /// @dev Keep track of participants contributions and the total funding amount | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://b78abb8ea18f9451ff8269daa03671b966fa8f6212d172cd2bc0fa56cdc72ce7 | {
"func_code_index": [
2926,
3343
]
} | 6,086 | |
IAMEPrivateSale | IAMEPrivateSale.sol | 0xedb7f6c49e26c4602b109755246155c522dd4032 | Solidity | IAMEPrivateSale | contract IAMEPrivateSale is Owned {
// -------------------------------------------------------------------------------------
// TODO Before deployment of contract to Mainnet
// 1. Confirm MINIMUM_PARTICIPATION_AMOUNT below
// 2. Adjust PRIVATESALE_START_DATE and confirm the Private Sale period
// 3. Test... | /// ----------------------------------------------------------------------------------------
/// @title IAME Private Sale Contract
/// @author IAME Ltd
/// @dev Changes to this contract will invalidate any security audits done before.
/// ---------------------------------------------------------------------------------... | NatSpecSingleLine | safeIncrement | function safeIncrement(uint256 base, uint256 increment) private pure returns (uint256) {
uint256 result = base + increment;
if (result < base) revert();
return result;
}
| /// @dev Add a number to a base value. Detect overflows by checking the result is larger
/// than the original base value. | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://b78abb8ea18f9451ff8269daa03671b966fa8f6212d172cd2bc0fa56cdc72ce7 | {
"func_code_index": [
3480,
3670
]
} | 6,087 | |
hippofinance | hippofinance.sol | 0x30dbb5e8118525ef1ecdbe9589d6a3a57efefc18 | Solidity | Context | contract Context {
constructor() internal {}
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns(address payable) {
return msg.sender;
}
} | _msgSender | function _msgSender() internal view returns(address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.17+commit.d19bba13 | MIT | bzzr://8a23ea3b8f7586da7980115a1244fff4285dd2010a496f01b819b497d26be9ed | {
"func_code_index": [
105,
207
]
} | 6,088 | ||
SIMCOIN | SIMCOIN.sol | 0xef9744120c57678665be18ea519797f3feac65ff | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.22+commit.4cb486ee | bzzr://e1e0d751f5b2a468562832899766d3298749739223ba6c347aa88dbba9862e26 | {
"func_code_index": [
60,
124
]
} | 6,089 | |||
SIMCOIN | SIMCOIN.sol | 0xef9744120c57678665be18ea519797f3feac65ff | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {}
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.22+commit.4cb486ee | bzzr://e1e0d751f5b2a468562832899766d3298749739223ba6c347aa88dbba9862e26 | {
"func_code_index": [
232,
309
]
} | 6,090 | |||
SIMCOIN | SIMCOIN.sol | 0xef9744120c57678665be18ea519797f3feac65ff | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transfer | function transfer(address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.22+commit.4cb486ee | bzzr://e1e0d751f5b2a468562832899766d3298749739223ba6c347aa88dbba9862e26 | {
"func_code_index": [
546,
623
]
} | 6,091 | |||
SIMCOIN | SIMCOIN.sol | 0xef9744120c57678665be18ea519797f3feac65ff | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.22+commit.4cb486ee | bzzr://e1e0d751f5b2a468562832899766d3298749739223ba6c347aa88dbba9862e26 | {
"func_code_index": [
946,
1042
]
} | 6,092 | |||
SIMCOIN | SIMCOIN.sol | 0xef9744120c57678665be18ea519797f3feac65ff | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.22+commit.4cb486ee | bzzr://e1e0d751f5b2a468562832899766d3298749739223ba6c347aa88dbba9862e26 | {
"func_code_index": [
1326,
1407
]
} | 6,093 | |||
SIMCOIN | SIMCOIN.sol | 0xef9744120c57678665be18ea519797f3feac65ff | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.22+commit.4cb486ee | bzzr://e1e0d751f5b2a468562832899766d3298749739223ba6c347aa88dbba9862e26 | {
"func_code_index": [
1615,
1712
]
} | 6,094 | |||
SIMCOIN | SIMCOIN.sol | 0xef9744120c57678665be18ea519797f3feac65ff | Solidity | SIMCOIN | contract SIMCOIN is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customi... | //name this contract whatever you'd like | LineComment | SIMCOIN | function SIMCOIN(
) {
balances[msg.sender] = 10000000;
totalSupply = 10000000;
name = "SIMCOIN"; // Set the name for display purposes
decimals = 0; // Amount of decimals for display purposes
symbol = "SIM"; ... | //human 0.1 standard. Just an arbitrary versioning scheme. | LineComment | v0.4.22+commit.4cb486ee | bzzr://e1e0d751f5b2a468562832899766d3298749739223ba6c347aa88dbba9862e26 | {
"func_code_index": [
918,
1320
]
} | 6,095 | |
SIMCOIN | SIMCOIN.sol | 0xef9744120c57678665be18ea519797f3feac65ff | Solidity | SIMCOIN | contract SIMCOIN is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customi... | //name this contract whatever you'd like | LineComment | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.22+commit.4cb486ee | bzzr://e1e0d751f5b2a468562832899766d3298749739223ba6c347aa88dbba9862e26 | {
"func_code_index": [
1381,
2186
]
} | 6,096 | |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
94,
154
]
} | 6,097 |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
237,
310
]
} | 6,098 |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
534,
616
]
} | 6,099 |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
895,
983
]
} | 6,100 |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
1647,
1726
]
} | 6,101 |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
2039,
2141
]
} | 6,102 |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @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.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
251,
437
]
} | 6,103 |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @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.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
707,
848
]
} | 6,104 |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @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.
*
* _Available since v2.4.0._
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
1180,
1377
]
} | 6,105 |
StrategyCurveLINKVoterProxy | StrategyCurveLINKVoterProxy.sol | 0x153fe8894a76f14bc8c8b02dd81efbb6d24e909f | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @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.5.17+commit.d19bba13 | Unknown | bzzr://daf0a5f408826bee6b9553d7574de4a6d1cb04c31aa2a20140dd8677e59a2f31 | {
"func_code_index": [
1623,
2099
]
} | 6,106 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.