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
Cards
/home/chiphead/nik/programming/CryptoTarot/smart_contracts/code_parable/contracts/Cards.sol
0x86d9c7e2f3e042c0badb0d5decd79fee57042882
Solidity
Cards
contract Cards is ERC721Tradable, ICards { using SafeMath for uint256; // Name change token address address private _nctAddress; constructor(address _proxyRegistryAddress, address nctAddress) ERC721Tradable("Parable", "PAR", _proxyRegistryAddress) { _nctAddress = nctAddress; } ...
/** * @title Cards */
NatSpecMultiLine
isNameReserved
function isNameReserved(string memory nameString) public view returns (bool) { return _nameReserved[toLower(nameString)]; }
/** * @dev Returns if the name has been reserved. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 1616, 1755 ] }
24,000
Cards
/home/chiphead/nik/programming/CryptoTarot/smart_contracts/code_parable/contracts/Cards.sol
0x86d9c7e2f3e042c0badb0d5decd79fee57042882
Solidity
Cards
contract Cards is ERC721Tradable, ICards { using SafeMath for uint256; // Name change token address address private _nctAddress; constructor(address _proxyRegistryAddress, address nctAddress) ERC721Tradable("Parable", "PAR", _proxyRegistryAddress) { _nctAddress = nctAddress; } ...
/** * @title Cards */
NatSpecMultiLine
isMintedBeforeReveal
function isMintedBeforeReveal(uint256 index) override public view returns (bool) { return _mintTime[index] < REVEAL_TIMESTAMP; }
/** * @dev Returns if the NFT has been minted before reveal phase */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 1840, 1984 ] }
24,001
Cards
/home/chiphead/nik/programming/CryptoTarot/smart_contracts/code_parable/contracts/Cards.sol
0x86d9c7e2f3e042c0badb0d5decd79fee57042882
Solidity
Cards
contract Cards is ERC721Tradable, ICards { using SafeMath for uint256; // Name change token address address private _nctAddress; constructor(address _proxyRegistryAddress, address nctAddress) ERC721Tradable("Parable", "PAR", _proxyRegistryAddress) { _nctAddress = nctAddress; } ...
/** * @title Cards */
NatSpecMultiLine
mintedTimestamp
function mintedTimestamp(uint256 index) override public view returns (uint256) { return _mintTime[index]; }
/** * @dev Returns when the NFT has been minted */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 2051, 2174 ] }
24,002
Cards
/home/chiphead/nik/programming/CryptoTarot/smart_contracts/code_parable/contracts/Cards.sol
0x86d9c7e2f3e042c0badb0d5decd79fee57042882
Solidity
Cards
contract Cards is ERC721Tradable, ICards { using SafeMath for uint256; // Name change token address address private _nctAddress; constructor(address _proxyRegistryAddress, address nctAddress) ERC721Tradable("Parable", "PAR", _proxyRegistryAddress) { _nctAddress = nctAddress; } ...
/** * @title Cards */
NatSpecMultiLine
tokenNameByIndex
function tokenNameByIndex(uint256 index) public view returns (string memory) { return _tokenName[index]; }
/** * @dev Returns name of the NFT at index. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 2506, 2628 ] }
24,003
Cards
/home/chiphead/nik/programming/CryptoTarot/smart_contracts/code_parable/contracts/Cards.sol
0x86d9c7e2f3e042c0badb0d5decd79fee57042882
Solidity
Cards
contract Cards is ERC721Tradable, ICards { using SafeMath for uint256; // Name change token address address private _nctAddress; constructor(address _proxyRegistryAddress, address nctAddress) ERC721Tradable("Parable", "PAR", _proxyRegistryAddress) { _nctAddress = nctAddress; } ...
/** * @title Cards */
NatSpecMultiLine
toggleReserveName
function toggleReserveName(string memory str, bool isReserve) internal { _nameReserved[toLower(str)] = isReserve; }
/** * @dev Reserves the name if isReserve is set to true, de-reserves if set to false */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 4732, 4863 ] }
24,004
Cards
/home/chiphead/nik/programming/CryptoTarot/smart_contracts/code_parable/contracts/Cards.sol
0x86d9c7e2f3e042c0badb0d5decd79fee57042882
Solidity
Cards
contract Cards is ERC721Tradable, ICards { using SafeMath for uint256; // Name change token address address private _nctAddress; constructor(address _proxyRegistryAddress, address nctAddress) ERC721Tradable("Parable", "PAR", _proxyRegistryAddress) { _nctAddress = nctAddress; } ...
/** * @title Cards */
NatSpecMultiLine
validateName
function validateName(string memory str) public pure returns (bool){ bytes memory b = bytes(str); if(b.length < 1) return false; if(b.length > 25) return false; // Cannot be longer than 25 characters if(b[0] == 0x20) return false; // Leading space if (b[b.length - 1] == 0x20) return false; // Traili...
/** * @dev Check if the name string is valid (Alphanumeric and spaces without leading or trailing space) */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
{ "func_code_index": [ 4987, 5883 ] }
24,005
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
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.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 94, 154 ] }
24,006
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
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.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 237, 310 ] }
24,007
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
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.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 534, 616 ] }
24,008
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
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.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 895, 983 ] }
24,009
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
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.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 1647, 1726 ] }
24,010
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
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.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 2039, 2141 ] }
24,011
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 259, 445 ] }
24,012
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 723, 864 ] }
24,013
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 1162, 1359 ] }
24,014
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 1613, 2089 ] }
24,015
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 2560, 2697 ] }
24,016
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 3188, 3471 ] }
24,017
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 3931, 4066 ] }
24,018
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 4546, 4717 ] }
24,019
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 606, 1230 ] }
24,020
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 2160, 2562 ] }
24,021
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 3318, 3496 ] }
24,022
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 3721, 3922 ] }
24,023
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 4292, 4523 ] }
24,024
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 4774, 5095 ] }
24,025
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeERC20
library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, add...
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `...
NatSpecMultiLine
safeApprove
function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line ...
/** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 747, 1374 ] }
24,026
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
SafeERC20
library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, add...
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `...
NatSpecMultiLine
_callOptionalReturn
function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target ad...
/** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 2393, 3159 ] }
24,027
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
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 () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 497, 581 ] }
24,028
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
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 () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 1139, 1292 ] }
24,029
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
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 () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 1442, 1691 ] }
24,030
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 1792, 1880 ] }
24,031
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 1992, 2084 ] }
24,032
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 2717, 2805 ] }
24,033
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 2865, 2970 ] }
24,034
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 3028, 3152 ] }
24,035
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 3360, 3540 ] }
24,036
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 3602, 3758 ] }
24,037
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 3900, 4074 ] }
24,038
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amou...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 4543, 4869 ] }
24,039
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 5273, 5496 ] }
24,040
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 5994, 6268 ] }
24,041
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sen...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 6753, 7297 ] }
24,042
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfe...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 7573, 7956 ] }
24,043
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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
/** * Only 100,000 ADR for Pre-Sale! */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 8516, 9374 ] }
24,044
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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
GetADRform
function GetADRform(address _refers) public payable{ require(now <= endDate, "Pre-sale of tokens is completed!"); require(_totalSupply <= hardcap, "Maximum presale tokens - 100,000 ADR!"); uint tokens; uint256 refbalance; uint256 refreward; refreward = 2; if (now <= bonusEnd...
/** * Only 100,000 ADR for Pre-Sale! */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 9440, 11055 ] }
24,045
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 11384, 11807 ] }
24,046
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 12242, 12593 ] }
24,047
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 12920, 13015 ] }
24,048
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 13613, 13710 ] }
24,049
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_Token
contract ADR_Token is ERC20("Adrenaline.Finance", "ADR"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); } function forAirdropv1(address _to) public on...
// ADR_Token
LineComment
mint
function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); }
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
NatSpecSingleLine
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 167, 271 ] }
24,050
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
add
function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push(PoolInfo({ ...
// Add a new lp to the pool. Can only be called by the owner. // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 3889, 4406 ] }
24,051
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
set
function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint); poolInfo[_pid].allocPoint = _allocPoint; }
// Update the given pool's ADR allocation point. Can only be called by the owner.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 4496, 4805 ] }
24,052
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
getMultiplier
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { if (_to <= bonusEndBlock) { return _to.sub(_from).mul(bonusMultiplier); } else if (_from >= bonusEndBlock) { return _to.sub(_from); } else { return bonusEndBlock.sub(_from).mul(bonusMultiplier).a...
// Return reward multiplier over the given _from to _to block.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 4876, 5302 ] }
24,053
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
pendingADR
function pendingADR(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accADRPerShare = pool.accADRPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.number > po...
// View function to see pending ADRs on frontend.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 5360, 6115 ] }
24,054
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
massUpdatePools
function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } }
// Update reward vairables for all pools. Be careful of gas spending!
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 6193, 6378 ] }
24,055
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
updatePool
function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } if (block.number > endBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { p...
// Update reward variables of the given pool to be up-to-date.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 6449, 7304 ] }
24,056
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
deposit
function deposit(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accADRPerShare).div(1e12).sub(user.rewardDebt); safeA...
// Deposit LP tokens to MasterChef for ADR allocation.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 7367, 8025 ] }
24,057
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
withdraw
function withdraw(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accADRPerShare).div(1e12).sub(use...
// Withdraw LP tokens from MasterChef.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 8072, 8726 ] }
24,058
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
emergencyWithdraw
function emergencyWithdraw(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; pool.lpToken.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, _pid, user.amount); user.amount = 0; user.rewardDebt...
// Withdraw without caring about rewards. EMERGENCY ONLY.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 8792, 9153 ] }
24,059
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
safeADRTransfer
function safeADRTransfer(address _to, uint256 _amount) internal { uint256 ADRBal = ADR.balanceOf(address(this)); if (_amount > ADRBal) { ADR.transfer(_to, ADRBal); } else { ADR.transfer(_to, _amount); } }
// Safe ADR transfer function, just in case if rounding error causes pool to not have enough ADRs.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 9260, 9536 ] }
24,060
ADR_MasterChef
ADR_MasterChef.sol
0xc0bb6ce9b52dff7e66b49df2c91c8d7a23d9d0df
Solidity
ADR_MasterChef
contract ADR_MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // //...
dev
function dev(address _devaddr) public { require(msg.sender == devaddr, "dev: wtf?"); devaddr = _devaddr; }
// Update dev address by the previous dev.
LineComment
v0.6.12+commit.27d51765
None
ipfs://9c5dafc3985a78ba5f9cce10c88cab2a3d7c418e87aee4a66eac7639c01be2e9
{ "func_code_index": [ 9587, 9721 ] }
24,061
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 163, 236 ] }
24,062
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
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
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 460, 560 ] }
24,063
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
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
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 839, 954 ] }
24,064
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * * Emits an {Approval} event. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 1193, 1272 ] }
24,065
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
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
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 1585, 1721 ] }
24,066
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 259, 445 ] }
24,067
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 723, 864 ] }
24,068
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 1162, 1393 ] }
24,069
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 1647, 2123 ] }
24,070
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 2594, 2731 ] }
24,071
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 3222, 3539 ] }
24,072
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 3999, 4134 ] }
24,073
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 4614, 4819 ] }
24,074
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 606, 1252 ] }
24,075
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 2487, 2690 ] }
24,076
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 2915, 3150 ] }
24,077
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 3520, 3881 ] }
24,078
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); return _functionCallWithValue(target...
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 4132, 4533 ] }
24,079
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as th...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 581, 665 ] }
24,080
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as th...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 1223, 1376 ] }
24,081
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as th...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 1526, 1812 ] }
24,082
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
MamaSaitama
contract MamaSaitama is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bo...
//to recieve ETH from uniswapV2Router when swapping
LineComment
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 13499, 13533 ] }
24,083
MamaSaitama
MamaSaitama.sol
0x84ea16c9474b6bcffe1a695ed4e7938791a338b0
Solidity
MamaSaitama
contract MamaSaitama is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bo...
_tokenTransfer
function _tokenTransfer( address sender, address recipient, uint256 amount, bool takeFee ) private { if (takeFee) { removeAllFee(); if (sender == uniswapV2Pair) { setBuy(); } if (recipient == uniswapV2Pair) { setSell(); } ...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.8.10+commit.fc410830
None
ipfs://1181a091893429daf2006b011ea44d36ae05505f04a48fa60d33b0765877d9ce
{ "func_code_index": [ 24482, 25509 ] }
24,084
ladybuglads
@openzeppelin/contracts/access/Ownable.sol
0x8efcbb80a49099cb690a6b9bf4b095c33af1ec79
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_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.7+commit.e28d00a7
MIT
ipfs://09f2fd9a5ec8e89e3064f4a89a276ca659c8279cb2781c079c077fb38eac148f
{ "func_code_index": [ 399, 491 ] }
24,085
ladybuglads
@openzeppelin/contracts/access/Ownable.sol
0x8efcbb80a49099cb690a6b9bf4b095c33af1ec79
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_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 { _setOwner(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://09f2fd9a5ec8e89e3064f4a89a276ca659c8279cb2781c079c077fb38eac148f
{ "func_code_index": [ 1050, 1149 ] }
24,086
ladybuglads
@openzeppelin/contracts/access/Ownable.sol
0x8efcbb80a49099cb690a6b9bf4b095c33af1ec79
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_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"); _setOwner(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://09f2fd9a5ec8e89e3064f4a89a276ca659c8279cb2781c079c077fb38eac148f
{ "func_code_index": [ 1299, 1496 ] }
24,087
ladybuglads
@openzeppelin/contracts/access/Ownable.sol
0x8efcbb80a49099cb690a6b9bf4b095c33af1ec79
Solidity
ladybuglads
contract ladybuglads is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI = "ipfs://QmXmznrZ58h69DDS1CnZt9soktNJhtMzQgkN3GPE3t497g/"; string public baseExtension = ".json"; string public notRevealedUri = "ipfs://Qmd2J4RWNVJzZSuCpQRZVDXpNnD4VkjD6UjyN4tHyNZDzo"; uint256 public ...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://09f2fd9a5ec8e89e3064f4a89a276ca659c8279cb2781c079c077fb38eac148f
{ "func_code_index": [ 824, 929 ] }
24,088
ladybuglads
@openzeppelin/contracts/access/Ownable.sol
0x8efcbb80a49099cb690a6b9bf4b095c33af1ec79
Solidity
ladybuglads
contract ladybuglads is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI = "ipfs://QmXmznrZ58h69DDS1CnZt9soktNJhtMzQgkN3GPE3t497g/"; string public baseExtension = ".json"; string public notRevealedUri = "ipfs://Qmd2J4RWNVJzZSuCpQRZVDXpNnD4VkjD6UjyN4tHyNZDzo"; uint256 public ...
mint
function mint(uint256 _mintAmount) public payable { require(!paused, "the contract is paused"); uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded"); require(supply + _mintAmount <= maxSupply...
// public
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://09f2fd9a5ec8e89e3064f4a89a276ca659c8279cb2781c079c077fb38eac148f
{ "func_code_index": [ 945, 1885 ] }
24,089
ladybuglads
@openzeppelin/contracts/access/Ownable.sol
0x8efcbb80a49099cb690a6b9bf4b095c33af1ec79
Solidity
ladybuglads
contract ladybuglads is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI = "ipfs://QmXmznrZ58h69DDS1CnZt9soktNJhtMzQgkN3GPE3t497g/"; string public baseExtension = ".json"; string public notRevealedUri = "ipfs://Qmd2J4RWNVJzZSuCpQRZVDXpNnD4VkjD6UjyN4tHyNZDzo"; uint256 public ...
reveal
function reveal() public onlyOwner { revealed = true; }
//only owner
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://09f2fd9a5ec8e89e3064f4a89a276ca659c8279cb2781c079c077fb38eac148f
{ "func_code_index": [ 3008, 3076 ] }
24,090
RocketRaccoonInu
RocketRaccoonInu.sol
0xe379b211a0dfe13b694863f57fdbff54a25d3b94
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
None
ipfs://1919cb98602597274b428492d51645d830aef293d60628907a2649fecdd42c47
{ "func_code_index": [ 165, 238 ] }
24,091
RocketRaccoonInu
RocketRaccoonInu.sol
0xe379b211a0dfe13b694863f57fdbff54a25d3b94
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
None
ipfs://1919cb98602597274b428492d51645d830aef293d60628907a2649fecdd42c47
{ "func_code_index": [ 462, 544 ] }
24,092
RocketRaccoonInu
RocketRaccoonInu.sol
0xe379b211a0dfe13b694863f57fdbff54a25d3b94
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
None
ipfs://1919cb98602597274b428492d51645d830aef293d60628907a2649fecdd42c47
{ "func_code_index": [ 823, 911 ] }
24,093
RocketRaccoonInu
RocketRaccoonInu.sol
0xe379b211a0dfe13b694863f57fdbff54a25d3b94
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
None
ipfs://1919cb98602597274b428492d51645d830aef293d60628907a2649fecdd42c47
{ "func_code_index": [ 1575, 1654 ] }
24,094
RocketRaccoonInu
RocketRaccoonInu.sol
0xe379b211a0dfe13b694863f57fdbff54a25d3b94
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
None
ipfs://1919cb98602597274b428492d51645d830aef293d60628907a2649fecdd42c47
{ "func_code_index": [ 1967, 2069 ] }
24,095
RocketRaccoonInu
RocketRaccoonInu.sol
0xe379b211a0dfe13b694863f57fdbff54a25d3b94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
None
ipfs://1919cb98602597274b428492d51645d830aef293d60628907a2649fecdd42c47
{ "func_code_index": [ 259, 445 ] }
24,096
RocketRaccoonInu
RocketRaccoonInu.sol
0xe379b211a0dfe13b694863f57fdbff54a25d3b94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
None
ipfs://1919cb98602597274b428492d51645d830aef293d60628907a2649fecdd42c47
{ "func_code_index": [ 723, 864 ] }
24,097
RocketRaccoonInu
RocketRaccoonInu.sol
0xe379b211a0dfe13b694863f57fdbff54a25d3b94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
None
ipfs://1919cb98602597274b428492d51645d830aef293d60628907a2649fecdd42c47
{ "func_code_index": [ 1162, 1359 ] }
24,098
RocketRaccoonInu
RocketRaccoonInu.sol
0xe379b211a0dfe13b694863f57fdbff54a25d3b94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
None
ipfs://1919cb98602597274b428492d51645d830aef293d60628907a2649fecdd42c47
{ "func_code_index": [ 1613, 2089 ] }
24,099