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
RtcTokenCrowdsale
RtcTokenCrowdsale.sol
0xa988a5808f8b839fe65ec75fd5d5a005b59a466d
Solidity
RtcTokenCrowdsale
contract RtcTokenCrowdsale is Ownable, AddressWhitelist { using SafeMath for uint256; PausableToken public tokenReward; // address of the token used as reward // deployment variables for static supply sale uint256 public initialSupply; uint256 public tokensRemaining; ...
function () external payable { require(tx.gasprice <= maxGasPrice); require(msg.data.length == 0); BuyRTCtokens(); }
// default payable function when sending ether to this contract
LineComment
v0.4.19+commit.c4cbbb05
bzzr://6091d92f92cb7d01520dabfffd71b0b6515f4e34d31943f44fa093d8d215feaa
{ "func_code_index": [ 6008, 6171 ] }
1,007
Deposit
Deposit.sol
0xbec4fd72b3d1f81767505cd820865f181bce1afa
Solidity
Ownable
abstract contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = msg.sender; ...
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
None
ipfs://3e6b7f3d0745bc501b5664c4b8f8525d01c1eba7dddb6ff72f038c2cf1fbc2f9
{ "func_code_index": [ 484, 576 ] }
1,008
Deposit
Deposit.sol
0xbec4fd72b3d1f81767505cd820865f181bce1afa
Solidity
Ownable
abstract contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = msg.sender; ...
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.4+commit.c7e474f2
None
ipfs://3e6b7f3d0745bc501b5664c4b8f8525d01c1eba7dddb6ff72f038c2cf1fbc2f9
{ "func_code_index": [ 1133, 1286 ] }
1,009
Deposit
Deposit.sol
0xbec4fd72b3d1f81767505cd820865f181bce1afa
Solidity
Ownable
abstract contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = msg.sender; ...
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.4+commit.c7e474f2
None
ipfs://3e6b7f3d0745bc501b5664c4b8f8525d01c1eba7dddb6ff72f038c2cf1fbc2f9
{ "func_code_index": [ 1436, 1685 ] }
1,010
Deposit
Deposit.sol
0xbec4fd72b3d1f81767505cd820865f181bce1afa
Solidity
Deposit
contract Deposit is Ownable{ ERC20 public fungibleContract; uint256 public erc20TokenValue = 34 * 10 ** 16; uint256 public depositLimit = 10* 10**18; address public erc20AdminAddress; mapping (address => bool) public depositedMap; event DepositSuccess(address addr, uint256 value); ...
setERC20AdminAddress
function setERC20AdminAddress(address _address) external onlyOwner { erc20AdminAddress = _address; }
// function setDepositLimit(uint256 _limit) public onlyOwner{ // depositLimit = _limit; // }
LineComment
v0.8.4+commit.c7e474f2
None
ipfs://3e6b7f3d0745bc501b5664c4b8f8525d01c1eba7dddb6ff72f038c2cf1fbc2f9
{ "func_code_index": [ 1144, 1263 ] }
1,011
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 165, 238 ] }
1,012
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 462, 544 ] }
1,013
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 823, 911 ] }
1,014
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 1575, 1654 ] }
1,015
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 1967, 2069 ] }
1,016
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 259, 445 ] }
1,017
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 723, 864 ] }
1,018
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 1162, 1359 ] }
1,019
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 1613, 2089 ] }
1,020
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 2560, 2697 ] }
1,021
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 3188, 3471 ] }
1,022
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 3931, 4066 ] }
1,023
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 4546, 4717 ] }
1,024
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 606, 1230 ] }
1,025
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 2160, 2562 ] }
1,026
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 3318, 3496 ] }
1,027
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 3721, 3922 ] }
1,028
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 4292, 4523 ] }
1,029
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
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://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 4774, 5095 ] }
1,030
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 566, 650 ] }
1,031
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 1209, 1362 ] }
1,032
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 1512, 1761 ] }
1,033
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
lock
function lock(uint256 time) public virtual onlyOwner { _previousOwner = _owner; _owner = address(0); _lockTime = now + time; emit OwnershipTransferred(_owner, address(0)); }
//Locks the contract for owner for the amount of time provided
LineComment
v0.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 1929, 2148 ] }
1,034
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
unlock
function unlock() public virtual { require(_previousOwner == msg.sender, "You don't have permission to unlock"); require(now > _lockTime , "Contract is locked until 7 days"); emit OwnershipTransferred(_owner, _previousOwner); _owner = _previousOwner; }
//Unlocks the contract for owner when _lockTime is exceeds
LineComment
v0.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 2215, 2513 ] }
1,035
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
Solidity
ChowChow
contract ChowChow is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => ...
//to recieve ETH from uniswapV2Router when swaping
LineComment
v0.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 8023, 8057 ] }
1,036
ChowChow
ChowChow.sol
0x795cd42ca45ee99398f8e3ae87c6c87c43183627
Solidity
ChowChow
contract ChowChow is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => ...
_tokenTransfer
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if(!takeFee) removeAllFee(); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _isExcluded[recipie...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.6.12+commit.27d51765
None
ipfs://dc2ef5f183a3408ddfd271dfdddd9f9ea17de1f5c07a47614436fba036f0931b
{ "func_code_index": [ 15658, 16481 ] }
1,037
Token
Token.sol
0x8b80596660f007342dc590e5c53bbddd2cd550fb
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "FRMS"; string public name = "The Forms"; uint256 public decimals = 18; uint256 private _totalSupply = 5898277 * 10 ** (decimals); mapping(address => uint256) balances; mapping(addres...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public override view returns (uint256){ return _totalSupply; }
/** ERC20Interface function's implementation **/
NatSpecMultiLine
v0.6.6+commit.6c089d02
Unlicense
ipfs://10e7056ffdb36de8e87f8f571f3b72a1fb3c1fd831e1b8ae606289c735dea39d
{ "func_code_index": [ 15368, 15471 ] }
1,038
Token
Token.sol
0x8b80596660f007342dc590e5c53bbddd2cd550fb
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "FRMS"; string public name = "The Forms"; uint256 public decimals = 18; uint256 private _totalSupply = 5898277 * 10 ** (decimals); mapping(address => uint256) balances; mapping(addres...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public override view returns (uint256 balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account `tokenOwner` // ------------------------------------------------------------------------
LineComment
v0.6.6+commit.6c089d02
Unlicense
ipfs://10e7056ffdb36de8e87f8f571f3b72a1fb3c1fd831e1b8ae606289c735dea39d
{ "func_code_index": [ 15691, 15828 ] }
1,039
Token
Token.sol
0x8b80596660f007342dc590e5c53bbddd2cd550fb
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "FRMS"; string public name = "The Forms"; uint256 public decimals = 18; uint256 private _totalSupply = 5898277 * 10 ** (decimals); mapping(address => uint256) balances; mapping(addres...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address to, uint256 tokens) public override returns (bool success) { // prevent transfer to 0x0, use burn instead require(address(to) != address(0), "Transfer to address 0 not allowed"); require(balances[msg.sender] >= tokens, "SENDER: insufficient balance"); if (walletsL...
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to `to` account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.6.6+commit.6c089d02
Unlicense
ipfs://10e7056ffdb36de8e87f8f571f3b72a1fb3c1fd831e1b8ae606289c735dea39d
{ "func_code_index": [ 16172, 17071 ] }
1,040
Token
Token.sol
0x8b80596660f007342dc590e5c53bbddd2cd550fb
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "FRMS"; string public name = "The Forms"; uint256 public decimals = 18; uint256 private _totalSupply = 5898277 * 10 ** (decimals); mapping(address => uint256) balances; mapping(addres...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approve
function approve(address spender, uint256 tokens) public override returns (bool success){ allowed[msg.sender][spender] = tokens; emit Approval(msg.sender,spender,tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for `spender` to transferFrom(...) `tokens` // from the token owner's account // ------------------------------------------------------------------------
LineComment
v0.6.6+commit.6c089d02
Unlicense
ipfs://10e7056ffdb36de8e87f8f571f3b72a1fb3c1fd831e1b8ae606289c735dea39d
{ "func_code_index": [ 17351, 17573 ] }
1,041
Token
Token.sol
0x8b80596660f007342dc590e5c53bbddd2cd550fb
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "FRMS"; string public name = "The Forms"; uint256 public decimals = 18; uint256 private _totalSupply = 5898277 * 10 ** (decimals); mapping(address => uint256) balances; mapping(addres...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address from, address to, uint256 tokens) public override returns (bool success){ require(tokens <= allowed[from][msg.sender]); //check allowance // prevent transfer to 0x0, use burn instead require(address(to) != address(0), "Transfer to address 0 not allowed"); requ...
// ------------------------------------------------------------------------ // Transfer `tokens` from the `from` account to the `to` account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the `from` account and // - From account must have sufficient balance to transfer...
LineComment
v0.6.6+commit.6c089d02
Unlicense
ipfs://10e7056ffdb36de8e87f8f571f3b72a1fb3c1fd831e1b8ae606289c735dea39d
{ "func_code_index": [ 18109, 19207 ] }
1,042
Token
Token.sol
0x8b80596660f007342dc590e5c53bbddd2cd550fb
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "FRMS"; string public name = "The Forms"; uint256 public decimals = 18; uint256 private _totalSupply = 5898277 * 10 ** (decimals); mapping(address => uint256) balances; mapping(addres...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public override view returns (uint256 remaining) { return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.6.6+commit.6c089d02
Unlicense
ipfs://10e7056ffdb36de8e87f8f571f3b72a1fb3c1fd831e1b8ae606289c735dea39d
{ "func_code_index": [ 19488, 19652 ] }
1,043
Token
Token.sol
0x8b80596660f007342dc590e5c53bbddd2cd550fb
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "FRMS"; string public name = "The Forms"; uint256 public decimals = 18; uint256 private _totalSupply = 5898277 * 10 ** (decimals); mapping(address => uint256) balances; mapping(addres...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
burnTokens
function burnTokens(uint256 _amount, address _account) public { require(msg.sender == _account || msg.sender == owner, "UnAuthorized"); require(balances[_account] >= _amount, "Insufficient account balance"); _totalSupply = _totalSupply.sub(_amount); balances[_account] = balances[_account].sub(_amoun...
// ------------------------------------------------------------------------ // @dev Internal function that burns an amount of the token from a given account // @param _amount The amount that will be burnt // @param _account The tokens to burn from // can be used from account owner or contract owner // -----------------...
LineComment
v0.6.6+commit.6c089d02
Unlicense
ipfs://10e7056ffdb36de8e87f8f571f3b72a1fb3c1fd831e1b8ae606289c735dea39d
{ "func_code_index": [ 20065, 20471 ] }
1,044
PimmelToken
PimmelToken.sol
0x651a824c225e60c1901ec6018a685aa38d82f23c
Solidity
PimmelToken
contract PimmelToken { /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (addr...
PimmelToken
function PimmelToken() { uint initialSupply = 28000000000000000000000000; balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens totalSupply = initialSupply; // Update total supply name = "Pimmel Token"; // ...
/* Initializes contract with initial supply tokens to the creator of the contract */
Comment
v0.4.16+commit.d7661dd9
bzzr://11263c6d04359deefeafbf54b0d3f9786dd1481efd5ac7e2a19c5b8ab2b166ef
{ "func_code_index": [ 724, 1293 ] }
1,045
PimmelToken
PimmelToken.sol
0x651a824c225e60c1901ec6018a685aa38d82f23c
Solidity
PimmelToken
contract PimmelToken { /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (addr...
_transfer
function _transfer(address _from, address _to, uint _value) internal { require (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead require (balanceOf[_from] > _value); // Check if the sender has enough require (balanceOf[_to] + _value > balanc...
/* Internal transfer, only can be called by this contract */
Comment
v0.4.16+commit.d7661dd9
bzzr://11263c6d04359deefeafbf54b0d3f9786dd1481efd5ac7e2a19c5b8ab2b166ef
{ "func_code_index": [ 1362, 1962 ] }
1,046
PimmelToken
PimmelToken.sol
0x651a824c225e60c1901ec6018a685aa38d82f23c
Solidity
PimmelToken
contract PimmelToken { /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (addr...
transfer
function transfer(address _to, uint256 _value) { _transfer(msg.sender, _to, _value); }
/// @notice Send `_value` tokens to `_to` from your account /// @param _to The address of the recipient /// @param _value the amount to send
NatSpecSingleLine
v0.4.16+commit.d7661dd9
bzzr://11263c6d04359deefeafbf54b0d3f9786dd1481efd5ac7e2a19c5b8ab2b166ef
{ "func_code_index": [ 2121, 2226 ] }
1,047
PimmelToken
PimmelToken.sol
0x651a824c225e60c1901ec6018a685aa38d82f23c
Solidity
PimmelToken
contract PimmelToken { /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (addr...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { require (_value < allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/// @notice Send `_value` tokens to `_to` in behalf of `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value the amount to send
NatSpecSingleLine
v0.4.16+commit.d7661dd9
bzzr://11263c6d04359deefeafbf54b0d3f9786dd1481efd5ac7e2a19c5b8ab2b166ef
{ "func_code_index": [ 2436, 2730 ] }
1,048
PimmelToken
PimmelToken.sol
0x651a824c225e60c1901ec6018a685aa38d82f23c
Solidity
PimmelToken
contract PimmelToken { /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (addr...
approve
function approve(address _spender, uint256 _value) returns (bool success) { allowance[msg.sender][_spender] = _value; return true; }
/// @notice Allows `_spender` to spend no more than `_value` tokens in your behalf /// @param _spender The address authorized to spend /// @param _value the max amount they can spend
NatSpecSingleLine
v0.4.16+commit.d7661dd9
bzzr://11263c6d04359deefeafbf54b0d3f9786dd1481efd5ac7e2a19c5b8ab2b166ef
{ "func_code_index": [ 2931, 3100 ] }
1,049
PimmelToken
PimmelToken.sol
0x651a824c225e60c1901ec6018a685aa38d82f23c
Solidity
PimmelToken
contract PimmelToken { /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (addr...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } }
/// @notice Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it /// @param _spender The address authorized to spend /// @param _value the max amount they can spend /// @param _extraData some extra information to send to the approved contract
NatSpecSingleLine
v0.4.16+commit.d7661dd9
bzzr://11263c6d04359deefeafbf54b0d3f9786dd1481efd5ac7e2a19c5b8ab2b166ef
{ "func_code_index": [ 3421, 3765 ] }
1,050
PimmelToken
PimmelToken.sol
0x651a824c225e60c1901ec6018a685aa38d82f23c
Solidity
PimmelToken
contract PimmelToken { /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (addr...
burn
function burn(uint256 _value) returns (bool success) { require (balanceOf[msg.sender] > _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply ...
/// @notice Remove `_value` tokens from the system irreversibly /// @param _value the amount of money to burn
NatSpecSingleLine
v0.4.16+commit.d7661dd9
bzzr://11263c6d04359deefeafbf54b0d3f9786dd1481efd5ac7e2a19c5b8ab2b166ef
{ "func_code_index": [ 3888, 4284 ] }
1,051
MillennialzApp
MillennialzApp.sol
0xfa74500d028c25798ef6854380a81c7f07b26ea8
Solidity
MillennialzApp
contract MillennialzApp is ERC20 { using SafeMath for uint256; address owner = msg.sender; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; string public constant name = "MillennialzApp"; //* Token Name *// string public constant symbol ...
withdrawForeignTokens
function withdrawForeignTokens(address _tokenContract) onlyOwner public returns (bool) { ForeignToken token = ForeignToken(_tokenContract); uint256 amount = token.balanceOf(address(this)); return token.transfer(owner, amount); //withdraw foreign tokens
//allow the contract owner to withdraw any token that are not belongs to MillennialzApp Community
LineComment
v0.4.26+commit.4563c3fc
None
bzzr://7cefdadd8697c38652e1c0570d5dab038b71f33fc828aa549003efde88b43193
{ "func_code_index": [ 6313, 6605 ] }
1,052
MillennialzApp
MillennialzApp.sol
0xfa74500d028c25798ef6854380a81c7f07b26ea8
Solidity
MillennialzApp
contract MillennialzApp is ERC20 { using SafeMath for uint256; address owner = msg.sender; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; string public constant name = "MillennialzApp"; //* Token Name *// string public constant symbol ...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { if (_value != 0 && allowed[msg.sender][_spender] != 0) { return false; } allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
//withdraw foreign tokens
LineComment
v0.4.26+commit.4563c3fc
None
bzzr://7cefdadd8697c38652e1c0570d5dab038b71f33fc828aa549003efde88b43193
{ "func_code_index": [ 6612, 6914 ] }
1,053
MillennialzApp
MillennialzApp.sol
0xfa74500d028c25798ef6854380a81c7f07b26ea8
Solidity
MillennialzApp
contract MillennialzApp is ERC20 { using SafeMath for uint256; address owner = msg.sender; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; string public constant name = "MillennialzApp"; //* Token Name *// string public constant symbol ...
withdrawEther
function withdrawEther() onlyOwner public { address myAddress = this; uint256 etherBalance = myAddress.balance; owner.transfer(etherBalance); }
//withdraw Ethereum from Contract address
LineComment
v0.4.26+commit.4563c3fc
None
bzzr://7cefdadd8697c38652e1c0570d5dab038b71f33fc828aa549003efde88b43193
{ "func_code_index": [ 7197, 7377 ] }
1,054
MillennialzApp
MillennialzApp.sol
0xfa74500d028c25798ef6854380a81c7f07b26ea8
Solidity
MillennialzApp
contract MillennialzApp is ERC20 { using SafeMath for uint256; address owner = msg.sender; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; string public constant name = "MillennialzApp"; //* Token Name *// string public constant symbol ...
burnMillennialzApp
function burnMillennialzApp(uint256 _value) onlyOwner public { require(_value <= balances[msg.sender]); address burner = msg.sender; balances[burner] = balances[burner].sub(_value); totalSupply = totalSupply.sub(_value); totalDistributed = totalDistributed.sub(_value); emit Burn(burner, _v...
//Burning specific amount of MillennialzApp
LineComment
v0.4.26+commit.4563c3fc
None
bzzr://7cefdadd8697c38652e1c0570d5dab038b71f33fc828aa549003efde88b43193
{ "func_code_index": [ 7583, 7946 ] }
1,055
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
Owned
contract Owned { // The address of the account that is the current owner address public owner; // The publiser is the inital owner function Owned() { owner = msg.sender; } /** * Access is restricted to the current owner */ modifier onlyOwner() { re...
Owned
function Owned() { owner = msg.sender; }
// The publiser is the inital owner
LineComment
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 152, 211 ] }
1,056
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
Owned
contract Owned { // The address of the account that is the current owner address public owner; // The publiser is the inital owner function Owned() { owner = msg.sender; } /** * Access is restricted to the current owner */ modifier onlyOwner() { re...
transferOwnership
function transferOwnership(address _newOwner) onlyOwner { owner = _newOwner; }
/** * Transfer ownership to `_newOwner` * * @param _newOwner The address of the account that will become the new owner */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 522, 619 ] }
1,057
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
Token
contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public ...
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20
LineComment
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance);
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 629, 704 ] }
1,058
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
Token
contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public ...
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20
LineComment
transfer
function transfer(address _to, uint256 _value) returns (bool success);
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 941, 1016 ] }
1,059
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
Token
contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public ...
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20
LineComment
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 1339, 1433 ] }
1,060
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
Token
contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public ...
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20
LineComment
approve
function approve(address _spender, uint256 _value) returns (bool success);
/// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 1723, 1802 ] }
1,061
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
Token
contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public ...
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20
LineComment
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining);
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 2010, 2105 ] }
1,062
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
StandardToken
contract StandardToken is Token { /** * ERC20 Short Address Attack fix */ modifier onlyPayloadSize(uint numArgs) { assert(msg.data.length == numArgs * 32 + 4); _; } // ZTT token balances mapping (address => uint256) balances; // ZTT token allowances ...
/** * Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 * * Modified version of https://github.com/ConsenSys/Tokens that implements the * original Token contract, an abstract contract for the full ERC 20 Token standard */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; }
/** * Get balance of `_owner` * * @param _owner The address from which the balance will be retrieved * @return The balance */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 557, 674 ] }
1,063
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
StandardToken
contract StandardToken is Token { /** * ERC20 Short Address Attack fix */ modifier onlyPayloadSize(uint numArgs) { assert(msg.data.length == numArgs * 32 + 4); _; } // ZTT token balances mapping (address => uint256) balances; // ZTT token allowances ...
/** * Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 * * Modified version of https://github.com/ConsenSys/Tokens that implements the * original Token contract, an abstract contract for the full ERC 20 Token standard */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) onlyPayloadSize(2) returns (bool success) { // Check if the sender has enough tokens require(balances[msg.sender] >= _value); // Check for overflows require(balances[_to] + _value > balances[_to]); // Transfer tokens balances[msg.send...
/** * Send `_value` token to `_to` from `msg.sender` * * @param _to The address of the recipient * @param _value The amount of token to be transferred * @return Whether the transfer was successful or not */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 929, 1429 ] }
1,064
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
StandardToken
contract StandardToken is Token { /** * ERC20 Short Address Attack fix */ modifier onlyPayloadSize(uint numArgs) { assert(msg.data.length == numArgs * 32 + 4); _; } // ZTT token balances mapping (address => uint256) balances; // ZTT token allowances ...
/** * Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 * * Modified version of https://github.com/ConsenSys/Tokens that implements the * original Token contract, an abstract contract for the full ERC 20 Token standard */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) onlyPayloadSize(3) returns (bool success) { // Check if the sender has enough require(balances[_from] >= _value); // Check for overflows require(balances[_to] + _value > balances[_to]); // Check allowance require(_valu...
/** * Send `_value` token to `_to` from `_from` on the condition it is approved by `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value The amount of token to be transferred * @return Whether the transfer was successful or not */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 1769, 2427 ] }
1,065
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
StandardToken
contract StandardToken is Token { /** * ERC20 Short Address Attack fix */ modifier onlyPayloadSize(uint numArgs) { assert(msg.data.length == numArgs * 32 + 4); _; } // ZTT token balances mapping (address => uint256) balances; // ZTT token allowances ...
/** * Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 * * Modified version of https://github.com/ConsenSys/Tokens that implements the * original Token contract, an abstract contract for the full ERC 20 Token standard */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) onlyPayloadSize(2) returns (bool success) { // Update allowance allowed[msg.sender][_spender] = _value; // Notify listners Approval(msg.sender, _spender, _value); return true; }
/** * `msg.sender` approves `_spender` to spend `_value` tokens * * @param _spender The address of the account able to transfer the tokens * @param _value The amount of tokens to be approved for transfer * @return Whether the approval was successful or not */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 2735, 3022 ] }
1,066
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
StandardToken
contract StandardToken is Token { /** * ERC20 Short Address Attack fix */ modifier onlyPayloadSize(uint numArgs) { assert(msg.data.length == numArgs * 32 + 4); _; } // ZTT token balances mapping (address => uint256) balances; // ZTT token allowances ...
/** * Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 * * Modified version of https://github.com/ConsenSys/Tokens that implements the * original Token contract, an abstract contract for the full ERC 20 Token standard */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * Get the amount of remaining tokens that `_spender` is allowed to spend from `_owner` * * @param _owner The address of the account owning tokens * @param _spender The address of the account able to transfer the tokens * @return Amount of remaining tokens allowed to spent */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 3350, 3494 ] }
1,067
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
ZTToken
contract ZTToken is Owned, StandardToken { // Ethereum token standard string public standard = "Token 0.2"; // Full name string public name = "ZeroTraffic"; // Symbol string public symbol = "ZTT"; // No decimal points uint8 public decimals = 8; // Core ...
/** * @title ZTT (ZeroTraffic) token * * Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 with the addition * of ownership, a lock and issuing. * * #created 29/08/2017 * #author Frank Bonnet */
NatSpecMultiLine
ZTToken
function ZTToken() { balances[msg.sender] = 0; totalSupply = 0; incentiveDistributionDate = now + incentiveDistributionInterval; incentives.push(Incentive(0x3cAf983aCCccc2551195e0809B7824DA6FDe4EC8, 1)); // 0.01 * 10^2 Frank Bonnet }
/** * Starts with a total supply of zero and the creator starts with * zero tokens (just like everyone else) */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 811, 1092 ] }
1,068
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
ZTToken
contract ZTToken is Owned, StandardToken { // Ethereum token standard string public standard = "Token 0.2"; // Full name string public name = "ZeroTraffic"; // Symbol string public symbol = "ZTT"; // No decimal points uint8 public decimals = 8; // Core ...
/** * @title ZTT (ZeroTraffic) token * * Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 with the addition * of ownership, a lock and issuing. * * #created 29/08/2017 * #author Frank Bonnet */
NatSpecMultiLine
withdrawIncentives
function withdrawIncentives() { require(!incentiveDistributed); require(now > incentiveDistributionDate); incentiveDistributed = true; uint256 totalSupplyToDate = totalSupply; for (uint256 i = 0; i < incentives.length; i++) { // totalSupplyToDate * (percentage * 10^2) / 10^2 / de...
/** * Distributes incentives over the core team members as * described in the whitepaper */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 1213, 1966 ] }
1,069
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
ZTToken
contract ZTToken is Owned, StandardToken { // Ethereum token standard string public standard = "Token 0.2"; // Full name string public name = "ZeroTraffic"; // Symbol string public symbol = "ZTT"; // No decimal points uint8 public decimals = 8; // Core ...
/** * @title ZTT (ZeroTraffic) token * * Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 with the addition * of ownership, a lock and issuing. * * #created 29/08/2017 * #author Frank Bonnet */
NatSpecMultiLine
issue
function issue(address _recipient, uint256 _value) onlyOwner onlyPayloadSize(2) returns (bool success) { // Guarantee positive require(_value > 0); // Create tokens balances[_recipient] += _value; totalSupply += _value; // Notify listners Transfer(0, owner, _value); Trans...
/** * Issues `_value` new tokens to `_recipient` (_value < 0 guarantees that tokens are never removed) * * @param _recipient The address to which the tokens will be issued * @param _value The amount of new tokens to issue * @return Whether the approval was successful or not */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 2290, 2709 ] }
1,070
ZTToken
ZTToken.sol
0xb572d10b11b0c2951c8ef566d527f3cd8708d5a2
Solidity
ZTToken
contract ZTToken is Owned, StandardToken { // Ethereum token standard string public standard = "Token 0.2"; // Full name string public name = "ZeroTraffic"; // Symbol string public symbol = "ZTT"; // No decimal points uint8 public decimals = 8; // Core ...
/** * @title ZTT (ZeroTraffic) token * * Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 with the addition * of ownership, a lock and issuing. * * #created 29/08/2017 * #author Frank Bonnet */
NatSpecMultiLine
function () { revert(); }
/** * Prevents accidental sending of ether */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://4c70c261386c94da493ad2c34bfd306629174754605eacfaeff94bfd0ee913eb
{ "func_code_index": [ 2777, 2821 ] }
1,071
VotingPower
contracts/lib/PrismProxyImplementation.sol
0xd07d77eab98f32f672de1f5b6a6aa824582e74cd
Solidity
PrismProxyImplementation
contract PrismProxyImplementation is Initializable { /** * @notice Accept invitation to be implementation contract for proxy * @param prism Prism Proxy contract */ function become(PrismProxy prism) public { require(msg.sender == prism.proxyAdmin(), "Prism::become: only proxy admin can cha...
become
function become(PrismProxy prism) public { require(msg.sender == prism.proxyAdmin(), "Prism::become: only proxy admin can change implementation"); require(prism.acceptProxyImplementation() == true, "Prism::become: change not authorized"); }
/** * @notice Accept invitation to be implementation contract for proxy * @param prism Prism Proxy contract */
NatSpecMultiLine
v0.7.4+commit.3f05b770
MIT
{ "func_code_index": [ 183, 447 ] }
1,072
Yearnifyfinance
Yearnifyfinance.sol
0xb9ae6fe574982e891666a5b1c2b33e79eb5dabb5
Solidity
StandardToken
contract StandardToken is ERC20{ using SafeMath for uint256; mapping(address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; function _transfer(address _from, address _to, uint256 _value) internal returns (bool success){ //prevent sending of tokens from ...
approve
function approve(address _spender, uint256 _value) public returns (bool) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender,0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/...
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
None
bzzr://b9787d9ba7da01ddf2575796a9d6067ca256881369a10e34ccbb62a50eb9ac6b
{ "func_code_index": [ 2367, 2922 ] }
1,073
Yearnifyfinance
Yearnifyfinance.sol
0xb9ae6fe574982e891666a5b1c2b33e79eb5dabb5
Solidity
StandardToken
contract StandardToken is ERC20{ using SafeMath for uint256; mapping(address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; function _transfer(address _from, address _to, uint256 _value) internal returns (bool success){ //prevent sending of tokens from ...
allowance
function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
None
bzzr://b9787d9ba7da01ddf2575796a9d6067ca256881369a10e34ccbb62a50eb9ac6b
{ "func_code_index": [ 3246, 3377 ] }
1,074
Yearnifyfinance
Yearnifyfinance.sol
0xb9ae6fe574982e891666a5b1c2b33e79eb5dabb5
Solidity
Yearnifyfinance
contract Yearnifyfinance is StandardToken, OnlyOwner{ uint256 public constant decimals = 18; string public constant name = "Yearnify"; string public constant symbol = "YFY"; string public constant version = "1.0"; uint256 public constant totalSupply =29000*10**18; uint256 private approvalCoun...
setApprovalCounts
function setApprovalCounts(uint _value) public isController { approvalCounts = _value; }
/** * @dev Function to set approval count variable value. * @param _value uint The value by which approvalCounts variable will be set. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
None
bzzr://b9787d9ba7da01ddf2575796a9d6067ca256881369a10e34ccbb62a50eb9ac6b
{ "func_code_index": [ 734, 841 ] }
1,075
Yearnifyfinance
Yearnifyfinance.sol
0xb9ae6fe574982e891666a5b1c2b33e79eb5dabb5
Solidity
Yearnifyfinance
contract Yearnifyfinance is StandardToken, OnlyOwner{ uint256 public constant decimals = 18; string public constant name = "Yearnify"; string public constant symbol = "YFY"; string public constant version = "1.0"; uint256 public constant totalSupply =29000*10**18; uint256 private approvalCoun...
setMinApprovalCounts
function setMinApprovalCounts(uint _value) public isController returns (bool){ require(_value > 0); minRequiredApprovals = _value; return true; }
/** * @dev Function to set minimum require approval variable value. * @param _value uint The value by which minRequiredApprovals variable will be set. * @return true. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
None
bzzr://b9787d9ba7da01ddf2575796a9d6067ca256881369a10e34ccbb62a50eb9ac6b
{ "func_code_index": [ 1039, 1221 ] }
1,076
Yearnifyfinance
Yearnifyfinance.sol
0xb9ae6fe574982e891666a5b1c2b33e79eb5dabb5
Solidity
Yearnifyfinance
contract Yearnifyfinance is StandardToken, OnlyOwner{ uint256 public constant decimals = 18; string public constant name = "Yearnify"; string public constant symbol = "YFY"; string public constant version = "1.0"; uint256 public constant totalSupply =29000*10**18; uint256 private approvalCoun...
getApprovalCount
function getApprovalCount() public view isController returns(uint){ return approvalCounts; }
/** * @dev Function to get approvalCounts variable value. * @return approvalCounts. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
None
bzzr://b9787d9ba7da01ddf2575796a9d6067ca256881369a10e34ccbb62a50eb9ac6b
{ "func_code_index": [ 1332, 1443 ] }
1,077
Yearnifyfinance
Yearnifyfinance.sol
0xb9ae6fe574982e891666a5b1c2b33e79eb5dabb5
Solidity
Yearnifyfinance
contract Yearnifyfinance is StandardToken, OnlyOwner{ uint256 public constant decimals = 18; string public constant name = "Yearnify"; string public constant symbol = "YFY"; string public constant version = "1.0"; uint256 public constant totalSupply =29000*10**18; uint256 private approvalCoun...
getBurnedTokensReceiver
function getBurnedTokensReceiver() public view isController returns(address){ return burnedTokensReceiver; }
/** * @dev Function to get burned Tokens Receiver address. * @return burnedTokensReceiver. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
None
bzzr://b9787d9ba7da01ddf2575796a9d6067ca256881369a10e34ccbb62a50eb9ac6b
{ "func_code_index": [ 1562, 1689 ] }
1,078
ParrotPass
contracts/ParrotPass.sol
0xd27faeb97af584b55faa03ed6ab70632d3b90aaa
Solidity
ParrotPass
contract ParrotPass is ERC721Burnable, Ownable { using SafeMath for uint256; using SafeMath for uint8; uint256 public constant MAX_PARROT_PASSES = 8888; uint256 public constant MAX_FREE_PASSES_PER_ROUND = 1000; uint256 public constant MAX_PAID_MINT = 4800; bool public mintPaused = true; boo...
freeMint
function freeMint() public payable { require(!freeMintPaused, 'Free ParrotPass minting paused.'); require(!claimedFreePass[msg.sender], 'Address has already claimed a free parrot pass.'); require( totalSupply().add(1) <= MAX_PARROT_PASSES, 'Not enough passes left for minting.' ); req...
// one free token per wallet
LineComment
v0.7.3+commit.9bfce1f6
{ "func_code_index": [ 1639, 2906 ] }
1,079
ParrotPass
contracts/ParrotPass.sol
0xd27faeb97af584b55faa03ed6ab70632d3b90aaa
Solidity
ParrotPass
contract ParrotPass is ERC721Burnable, Ownable { using SafeMath for uint256; using SafeMath for uint8; uint256 public constant MAX_PARROT_PASSES = 8888; uint256 public constant MAX_FREE_PASSES_PER_ROUND = 1000; uint256 public constant MAX_PAID_MINT = 4800; bool public mintPaused = true; boo...
setBaseURI
function setBaseURI(string memory _newBaseURI) public onlyOwner { _setBaseURI(_newBaseURI); }
/* * Only the owner can do these things */
Comment
v0.7.3+commit.9bfce1f6
{ "func_code_index": [ 3996, 4105 ] }
1,080
UniswapZAP
contracts/Utils/SafeMath.sol
0x4c72653b2f0916ced776c6514926112f289f4484
Solidity
SafeMath
library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath:...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. */
NatSpecMultiLine
sqrt
function sqrt(uint y) internal pure returns (uint z) { if (y > 3) { z = y; uint x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } }
// babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
ipfs://5fb53e5c71bd6136fc00a0d29e9342d2965b11229f23c3eabfbda699263fb011
{ "func_code_index": [ 1986, 2294 ] }
1,081
SocialGoodToken
contracts/SocialGoodToken.sol
0xca90f5ea4416e3d6662b359f856a1d96b1846ef1
Solidity
SocialGoodToken
contract SocialGoodToken is CappedToken(210000000e18), PausableToken, Superuser { // capped at 210 mil using SafeMath for uint256; /* * Constants / Token meta data */ string constant public name = 'SocialGood'; // Token name string constant public symbol = 'SG'; // Token symbol ...
/// @title Token contract - ERC20 compatible SocialGood token contract. /// @author Social Good Foundation Inc. - <info@socialgood-foundation.com>
NatSpecSingleLine
initializeTeamTokens
function initializeTeamTokens(address socialGoodTeamAddr, uint256 startTimerAt) external { require(socialGoodTeamAddr != 0 && startTimerAt > 0); // Tokens for the SocialGood team (loked-up initially) // 25% tokens will be released every year timelock1 = new TokenTimelock(ERC20Basic(this), socialGo...
/** * @dev Initialize this contract * @param socialGoodTeamAddr Address to receive unlocked team tokens * @param startTimerAt Time to start counting the lock-up periods */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6b77865bafd561106d86c4b575123dae904fe3496c4a67701148832894936dfd
{ "func_code_index": [ 1266, 2189 ] }
1,082
SocialGoodToken
contracts/SocialGoodToken.sol
0xca90f5ea4416e3d6662b359f856a1d96b1846ef1
Solidity
SocialGoodToken
contract SocialGoodToken is CappedToken(210000000e18), PausableToken, Superuser { // capped at 210 mil using SafeMath for uint256; /* * Constants / Token meta data */ string constant public name = 'SocialGood'; // Token name string constant public symbol = 'SG'; // Token symbol ...
/// @title Token contract - ERC20 compatible SocialGood token contract. /// @author Social Good Foundation Inc. - <info@socialgood-foundation.com>
NatSpecSingleLine
burn
function burn(uint256 _value) public onlyOwner { _burn(msg.sender, _value); }
/** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6b77865bafd561106d86c4b575123dae904fe3496c4a67701148832894936dfd
{ "func_code_index": [ 2314, 2410 ] }
1,083
SocialGoodToken
contracts/SocialGoodToken.sol
0xca90f5ea4416e3d6662b359f856a1d96b1846ef1
Solidity
SocialGoodToken
contract SocialGoodToken is CappedToken(210000000e18), PausableToken, Superuser { // capped at 210 mil using SafeMath for uint256; /* * Constants / Token meta data */ string constant public name = 'SocialGood'; // Token name string constant public symbol = 'SG'; // Token symbol ...
/// @title Token contract - ERC20 compatible SocialGood token contract. /// @author Social Good Foundation Inc. - <info@socialgood-foundation.com>
NatSpecSingleLine
burnFrom
function burnFrom(address _from, uint256 _value) public onlyOwner { assert(transferFrom(_from, msg.sender, _value)); _burn(msg.sender, _value); }
// save some gas by making only one contract call
LineComment
v0.4.24+commit.e67f0147
bzzr://6b77865bafd561106d86c4b575123dae904fe3496c4a67701148832894936dfd
{ "func_code_index": [ 2468, 2664 ] }
1,084
SocialGoodToken
contracts/SocialGoodToken.sol
0xca90f5ea4416e3d6662b359f856a1d96b1846ef1
Solidity
SocialGoodToken
contract SocialGoodToken is CappedToken(210000000e18), PausableToken, Superuser { // capped at 210 mil using SafeMath for uint256; /* * Constants / Token meta data */ string constant public name = 'SocialGood'; // Token name string constant public symbol = 'SG'; // Token symbol ...
/// @title Token contract - ERC20 compatible SocialGood token contract. /// @author Social Good Foundation Inc. - <info@socialgood-foundation.com>
NatSpecSingleLine
pause
function pause() public { revert(); }
// this inherited function is disabled to prevent centralized pausing
LineComment
v0.4.24+commit.e67f0147
bzzr://6b77865bafd561106d86c4b575123dae904fe3496c4a67701148832894936dfd
{ "func_code_index": [ 2742, 2784 ] }
1,085
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
IERC165
interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This f...
/** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool);
/** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 374, 455 ] }
1,086
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 94, 154 ] }
1,087
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 237, 310 ] }
1,088
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 534, 616 ] }
1,089
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 895, 983 ] }
1,090
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 1647, 1726 ] }
1,091
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 2039, 2141 ] }
1,092
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view virtual returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 766, 862 ] }
1,093
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view virtual returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 976, 1076 ] }
1,094
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view virtual returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 1710, 1799 ] }
1,095
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 1859, 1972 ] }
1,096
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 2030, 2162 ] }
1,097
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 2370, 2550 ] }
1,098
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 2608, 2764 ] }
1,099
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 2906, 3080 ] }
1,100
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _ap...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 3557, 3984 ] }
1,101
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 4388, 4608 ] }
1,102
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - sub...
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 5106, 5488 ] }
1,103
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @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); uint256 sende...
/** * @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.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 5973, 6582 ] }
1,104
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 6859, 7202 ] }
1,105
BCUG
BCUG.sol
0x14da7b27b2e0fedefe0a664118b0c9bc68e2e9af
Solidity
ERC20
contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {sy...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds ba...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.8.1+commit.df193b15
MIT
ipfs://b5a9bf50d6ab20fb6187e0977c4859ef104592e8af65af586f892117edccd45a
{ "func_code_index": [ 7530, 8029 ] }
1,106