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
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
Solidity
F3DKeysCalcShort
library F3DKeysCalcShort { using SafeMath for *; /** * @dev calculates number of keys received given X eth * @param _curEth current amount of eth in contract * @param _newEth eth being spent * @return amount of ticket purchased */ function keysRec(uint256 _curEth, uint256 _n...
//============================================================================== // | _ _ _ | _ . // |<(/_\/ (_(_||(_ . //=======/======================================================================
LineComment
ethRec
function ethRec(uint256 _curKeys, uint256 _sellKeys) internal pure returns (uint256) { return((eth(_curKeys)).sub(eth(_curKeys.sub(_sellKeys)))); }
/** * @dev calculates amount of eth received if you sold X keys * @param _curKeys current amount of keys that exist * @param _sellKeys amount of keys you wish to sell * @return amount of eth received */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 707, 905 ] }
22,500
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
Solidity
F3DKeysCalcShort
library F3DKeysCalcShort { using SafeMath for *; /** * @dev calculates number of keys received given X eth * @param _curEth current amount of eth in contract * @param _newEth eth being spent * @return amount of ticket purchased */ function keysRec(uint256 _curEth, uint256 _n...
//============================================================================== // | _ _ _ | _ . // |<(/_\/ (_(_||(_ . //=======/======================================================================
LineComment
keys
function keys(uint256 _eth) internal pure returns(uint256) { return ((((((_eth).mul(1000000000000000000)).mul(312500000000000000000000000)).add(5624988281256103515625000000000000000000000000000000000000000000)).sqrt()).sub(74999921875000000000000000000000)) / (156250000); }
/** * @dev calculates how many keys would exist with given an amount of eth * @param _eth eth "in contract" * @return number of keys that would exist */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 1090, 1415 ] }
22,501
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
Solidity
F3DKeysCalcShort
library F3DKeysCalcShort { using SafeMath for *; /** * @dev calculates number of keys received given X eth * @param _curEth current amount of eth in contract * @param _newEth eth being spent * @return amount of ticket purchased */ function keysRec(uint256 _curEth, uint256 _n...
//============================================================================== // | _ _ _ | _ . // |<(/_\/ (_(_||(_ . //=======/======================================================================
LineComment
eth
function eth(uint256 _keys) internal pure returns(uint256) { return ((78125000).mul(_keys.sq()).add(((149999843750000).mul(_keys.mul(1000000000000000000))) / (2))) / ((1000000000000000000).sq()); }
/** * @dev calculates how much eth would be in contract given a number of keys * @param _keys number of keys "in contract" * @return eth that would exists */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 1605, 1853 ] }
22,502
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
Solidity
NameFilter
library NameFilter { /** * @dev filters name strings * -converts uppercase to lower case. * -makes sure it does not start/end with a space * -makes sure it does not contain multiple spaces in a row * -cannot be only numbers * -cannot start with 0x * -restricts characters t...
/** * @title -Name Filter- v0.1.9 * ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐ * │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐ * ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘ * _____ _____ * (, / /...
NatSpecMultiLine
nameFilter
function nameFilter(string _input) internal pure returns(bytes32) { bytes memory _temp = bytes(_input); uint256 _length = _temp.length; //sorry limited to 32 characters require (_length <= 32 && _length > 0, "string must be between 1 and 32 characters"); // make sure it doesnt...
/** * @dev filters name strings * -converts uppercase to lower case. * -makes sure it does not start/end with a space * -makes sure it does not contain multiple spaces in a row * -cannot be only numbers * -cannot start with 0x * -restricts characters to A-Z, a-z, 0-9, and space. * @return reprocessed st...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 411, 2733 ] }
22,503
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
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; require(c / a == b, "SafeMath mu...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b, "SafeMath mul failed"); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 95, 358 ] }
22,504
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
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; require(c / a == b, "SafeMath mu...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath sub failed"); 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://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 478, 662 ] }
22,505
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
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; require(c / a == b, "SafeMath mu...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; require(c >= a, "SafeMath add failed"); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 732, 934 ] }
22,506
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
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; require(c / a == b, "SafeMath mu...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
sqrt
function sqrt(uint256 x) internal pure returns (uint256 y) { uint256 z = ((add(x,1)) / 2); y = x; while (z < y) { y = z; z = ((add((x / z),z)) / 2); } }
/** * @dev gives square root of given x. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 998, 1263 ] }
22,507
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
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; require(c / a == b, "SafeMath mu...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
sq
function sq(uint256 x) internal pure returns (uint256) { return (mul(x,x)); }
/** * @dev gives square. multiplies x by x */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 1329, 1457 ] }
22,508
F3DGame
F3DGame.sol
0x09f3b2e744b62eff955a0e4cedadcff2fb923d55
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; require(c / a == b, "SafeMath mu...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
pwr
function pwr(uint256 x, uint256 y) internal pure returns (uint256) { if (x==0) return (0); else if (y==0) return (1); else { uint256 z = x; for (uint256 i=1; i < y; i++) z = mul(z,x); return (z); } }
/** * @dev x to the power of y */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://27c439e84703dc0eadb1021ad12a52a6c3bed6f56d5456de4491420ec392438d
{ "func_code_index": [ 1511, 1879 ] }
22,509
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
Context
contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (addres...
_msgSender
function _msgSender() internal view returns (address payable) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 265, 368 ] }
22,510
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
IERC165
interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This f...
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool);
/** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 374, 455 ] }
22,511
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC165
contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedIn...
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool) { return _supportedInterfaces[interfaceId]; }
/** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 711, 851 ] }
22,512
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC165
contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedIn...
_registerInterface
function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; }
/** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 inval...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 1253, 1451 ] }
22,513
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 251, 437 ] }
22,514
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 707, 848 ] }
22,515
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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. * * _Available since v2.4.0._ */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 1180, 1377 ] }
22,516
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 1623, 2099 ] }
22,517
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 2562, 2699 ] }
22,518
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; ...
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 3224, 3574 ] }
22,519
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 4026, 4161 ] }
22,520
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 4675, 4846 ] }
22,521
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
IERC721
contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** ...
balanceOf
function balanceOf(address owner) public view returns (uint256 balance);
/** * @dev Returns the number of NFTs in `owner`'s account. */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 387, 464 ] }
22,522
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
IERC721
contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** ...
ownerOf
function ownerOf(uint256 tokenId) public view returns (address owner);
/** * @dev Returns the owner of the NFT specified by `tokenId`. */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 551, 626 ] }
22,523
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
IERC721
contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** ...
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 tokenId) public;
/** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * * * Requirements: * - `from`, `to` cannot be zero. * - `tokenId` must be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this * NFT by either {approve} or {setApp...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 1017, 1098 ] }
22,524
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
IERC721
contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** ...
transferFrom
function transferFrom(address from, address to, uint256 tokenId) public;
/** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * Requirements: * - If the caller is not `from`, it must be approved to move this NFT by * either {approve} or {setApprovalForAll}. */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 1378, 1455 ] }
22,525
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
balanceOf
function balanceOf(address owner) public view returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _ownedTokensCount[owner].current(); }
/** * @dev Gets the balance of the specified address. * @param owner address to query the balance of * @return uint256 representing the amount owned by the passed address */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 2172, 2388 ] }
22,526
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
ownerOf
function ownerOf(uint256 tokenId) public view returns (address) { address owner = _tokenOwner[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; }
/** * @dev Gets the owner of the specified token ID. * @param tokenId uint256 ID of the token to query the owner of * @return address currently marked as the owner of the given token ID */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 2609, 2842 ] }
22,527
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
approve
function approve(address to, uint256 tokenId) public { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); ...
/** * @dev Approves another address to transfer the given token ID * The zero address indicates there is no approved address. * There can only be one approved address per token at a given time. * Can only be called by the token owner or an approved operator. * @param to address to be approved for the given to...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 3268, 3698 ] }
22,528
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
getApproved
function getApproved(uint256 tokenId) public view returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; }
/** * @dev Gets the approved address for a token ID, or zero if no address set * Reverts if the token ID does not exist. * @param tokenId uint256 ID of the token to query the approval of * @return address currently approved for the given token ID */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 3986, 4195 ] }
22,529
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
setApprovalForAll
function setApprovalForAll(address to, bool approved) public { require(to != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][to] = approved; emit ApprovalForAll(_msgSender(), to, approved); }
/** * @dev Sets or unsets the approval of a given operator * An operator is allowed to transfer all tokens of the sender on their behalf. * @param to operator address to set the approval * @param approved representing the status of the approval to be set */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 4491, 4750 ] }
22,530
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
isApprovedForAll
function isApprovedForAll(address owner, address operator) public view returns (bool) { return _operatorApprovals[owner][operator]; }
/** * @dev Tells whether an operator is approved by a given owner. * @param owner owner address which you want to query the approval of * @param operator operator address which you want to query the approval of * @return bool whether the given operator is approved by the given owner */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 5075, 5227 ] }
22,531
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
transferFrom
function transferFrom(address from, address to, uint256 tokenId) public { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transferFrom(from, to, tokenId); }
/** * @dev Transfers the ownership of a given token ID to another address. * Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * Requires the msg.sender to be the owner, approved, or operator. * @param from current owner of the token * @param to address to receive the ownership of...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 5669, 5966 ] }
22,532
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); }
/** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received}, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 6623, 6762 ] }
22,533
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransferFrom(from, to, tokenId, _data); }
/** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received}, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 7494, 7771 ] }
22,534
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_safeTransferFrom
function _safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) internal { _transferFrom(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); }
/** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, ...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 8485, 8762 ] }
22,535
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_exists
function _exists(uint256 tokenId) internal view returns (bool) { address owner = _tokenOwner[tokenId]; return owner != address(0); }
/** * @dev Returns whether the specified token exists. * @param tokenId uint256 ID of the token to query the existence of * @return bool whether the token exists */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 8959, 9119 ] }
22,536
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_isApprovedOrOwner
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); }
/** * @dev Returns whether the given spender can transfer a given token ID. * @param spender address of the spender to query * @param tokenId uint256 ID of the token to be transferred * @return bool whether the msg.sender is approved for the given token ID, * is an operator of the owner, or is the owner of th...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 9484, 9822 ] }
22,537
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_safeMint
function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); }
/** * @dev Internal function to safely mint a new token. * Reverts if the given token ID already exists. * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 10358, 10465 ] }
22,538
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_safeMint
function _safeMint(address to, uint256 tokenId, bytes memory _data) internal { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); }
/** * @dev Internal function to safely mint a new token. * Reverts if the given token ID already exists. * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 11074, 11321 ] }
22,539
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_mint
function _mint(address to, uint256 tokenId) internal { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _tokenOwner[tokenId] = to; _ownedTokensCount[to].increment(); emit Transfer(address(0), to, tokenId); }
/** * @dev Internal function to mint a new token. * Reverts if the given token ID already exists. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 11569, 11909 ] }
22,540
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_burn
function _burn(address owner, uint256 tokenId) internal { require(ownerOf(tokenId) == owner, "ERC721: burn of token that is not own"); _clearApproval(tokenId); _ownedTokensCount[owner].decrement(); _tokenOwner[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); }
/** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use {_burn} instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 12181, 12519 ] }
22,541
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_burn
function _burn(uint256 tokenId) internal { _burn(ownerOf(tokenId), tokenId); }
/** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * @param tokenId uint256 ID of the token being burned */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 12702, 12799 ] }
22,542
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_transferFrom
function _transferFrom(address from, address to, uint256 tokenId) internal { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _clearApproval(tokenId); _ownedTokensCount[from].decrement(); _owne...
/** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the ...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 13180, 13644 ] }
22,543
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_checkOnERC721Received
function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) internal returns (bool) { if (!to.isContract()) { return true; } // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector( ...
/** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * This is an internal detail of the `ERC721` contract and its use is deprecated. * @param from address representing the previous owner of the giv...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 14291, 15375 ] }
22,544
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
ERC721
contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.s...
_clearApproval
function _clearApproval(uint256 tokenId) private { if (_tokenApprovals[tokenId] != address(0)) { _tokenApprovals[tokenId] = address(0); } }
/** * @dev Private function to clear current approval of a given token ID. * @param tokenId uint256 ID of the token to be transferred */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 15538, 15718 ] }
22,545
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
IERC721Receiver
contract IERC721Receiver { /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a {IERC721-safeTransferFrom}. This function MUST return the function selector, * otherwise the caller will revert the transaction. The selector...
onERC721Received
function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) public returns (bytes4);
/** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a {IERC721-safeTransferFrom}. This function MUST return the function selector, * otherwise the caller will revert the transaction. The selector to be * returned can be obtained as `this.onE...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 912, 1040 ] }
22,546
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 607, 1231 ] }
22,547
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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 ...
toPayable
function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); }
/** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 1443, 1575 ] }
22,548
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
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 ...
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, re...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 2547, 2923 ] }
22,549
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
Poap
contract Poap is ERC721 { event EventToken(uint256 eventId, uint256 tokenId); // Last Used id (used to generate new ids) uint256 private lastId; // EventId for each token mapping(uint256 => uint256) private _tokenEvent; /** * @dev Function to mint tokens * @param eventId ...
_mintToken
function _mintToken(uint256 eventId, uint256 tokenId, address to) internal returns (bool) { _mint(to, tokenId); _tokenEvent[tokenId] = eventId; emit EventToken(eventId, tokenId); return true; }
/** * @dev Function to mint tokens * @param eventId EventId for the new token * @param tokenId The token id to mint. * @param to The address that will receive the minted tokens. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 542, 781 ] }
22,550
PoapDelegatedMint
PoapDelegatedMint.sol
0xaac2497174f2ec4069a98375a67d798db8a05337
Solidity
Poap
contract Poap is ERC721 { event EventToken(uint256 eventId, uint256 tokenId); // Last Used id (used to generate new ids) uint256 private lastId; // EventId for each token mapping(uint256 => uint256) private _tokenEvent; /** * @dev Function to mint tokens * @param eventId ...
mintToken
function mintToken(uint256 eventId, address to) public returns (bool) { lastId += 1; return _mintToken(eventId, lastId, to); }
/** * @dev Function to mint tokens * @param eventId EventId for the new token * @param to The address that will receive the minted tokens. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.5.15+commit.6a57276f
MIT
bzzr://c65cd4fa355a27daca5f5117498b079ab6961fcc9fdee249506242fba125206e
{ "func_code_index": [ 1029, 1183 ] }
22,551
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 399, 491 ] }
22,552
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 1050, 1158 ] }
22,553
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 1308, 1514 ] }
22,554
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 1669, 1865 ] }
22,555
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 94, 154 ] }
22,556
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 237, 310 ] }
22,557
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 534, 616 ] }
22,558
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 895, 983 ] }
22,559
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 1647, 1726 ] }
22,560
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 2039, 2175 ] }
22,561
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 100, 159 ] }
22,562
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 226, 287 ] }
22,563
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 363, 418 ] }
22,564
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 776, 881 ] }
22,565
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 995, 1104 ] }
22,566
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 1738, 1836 ] }
22,567
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 1896, 2009 ] }
22,568
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 2067, 2199 ] }
22,569
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 2407, 2587 ] }
22,570
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 2645, 2801 ] }
22,571
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 2943, 3117 ] }
22,572
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds all...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 3594, 4091 ] }
22,573
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 4495, 4715 ] }
22,574
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, c...
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 5213, 5631 ] }
22,575
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); ...
/** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 6116, 6854 ] }
22,576
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 7136, 7540 ] }
22,577
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds ba...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 7868, 8464 ] }
22,578
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(own...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 8897, 9282 ] }
22,579
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - wh...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 9877, 10007 ] }
22,580
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_afterTokenTransfer
function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - ...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 10606, 10735 ] }
22,581
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryAdd
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } }
/** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 161, 388 ] }
22,582
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
trySub
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } }
/** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 536, 735 ] }
22,583
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMul
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 ...
/** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 885, 1393 ] }
22,584
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryDiv
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } }
/** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 1544, 1744 ] }
22,585
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMod
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } }
/** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 1905, 2105 ] }
22,586
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 2347, 2450 ] }
22,587
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 2728, 2831 ] }
22,588
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; }
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 3085, 3188 ] }
22,589
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; }
/** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 3484, 3587 ] }
22,590
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consu...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 4049, 4152 ] }
22,591
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterp...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 4626, 4871 ] }
22,592
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } }
/** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an ...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 5364, 5608 ] }
22,593
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. ...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 6266, 6510 ] }
22,594
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
GrandPonziAcademy
contract GrandPonziAcademy is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; a...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
classinsession
function classinsession() external onlyOwner { tradingActive = true; swapEnabled = true; lastLpBurnTime = block.timestamp; }
// once enabled, can never be turned off
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 5004, 5165 ] }
22,595
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
GrandPonziAcademy
contract GrandPonziAcademy is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; a...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
recess
function recess() external onlyOwner returns (bool) { limitsInEffect = false; return true; }
// remove limits after token is stable
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 5212, 5332 ] }
22,596
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
GrandPonziAcademy
contract GrandPonziAcademy is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; a...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
disableTransferDelay
function disableTransferDelay() external onlyOwner returns (bool) { transferDelayEnabled = false; return true; }
// disable Transfer delay - cannot be reenabled
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 5388, 5528 ] }
22,597
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
GrandPonziAcademy
contract GrandPonziAcademy is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; a...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
updateSwapTokensAtAmount
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) { require( newAmount >= (totalSupply() * 1) / 100000, "Swap amount cannot be lower than 0.001% total supply." ); require( newAmount <= (totalSupply() * 5) / 1000, "Sw...
// change the minimum amount of tokens to sell from fees
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 5593, 6095 ] }
22,598
GrandPonziAcademy
GrandPonziAcademy.sol
0x663aed440817a3d02b0531b2fab06aefe65d11b9
Solidity
GrandPonziAcademy
contract GrandPonziAcademy is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; a...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
updateSwapEnabled
function updateSwapEnabled(bool enabled) external onlyOwner { swapEnabled = enabled; }
// only use to disable contract sales if absolutely necessary (emergency use only)
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://36df6d478002c23a5a9eb506b564599ae713d2b4c8d78e55f356ef764b0b1e97
{ "func_code_index": [ 6908, 7013 ] }
22,599