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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
3931,
4066
]
} | 15,900 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
4546,
4717
]
} | 15,901 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | Solidity | Context | abstract contract Context {
//function _msgSender() internal view virtual returns (address payable) {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mut... | _msgSender | function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
| //function _msgSender() internal view virtual returns (address payable) { | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
108,
211
]
} | 15,902 | ||
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
606,
1230
]
} | 15,903 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
2160,
2562
]
} | 15,904 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
3318,
3496
]
} | 15,905 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
3721,
3922
]
} | 15,906 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
4292,
4523
]
} | 15,907 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | 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.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
4774,
5095
]
} | 15,908 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | 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.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
557,
641
]
} | 15,909 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | 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.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
1200,
1353
]
} | 15,910 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | 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.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
1503,
1752
]
} | 15,911 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | 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 = block.timestamp + time;
emit OwnershipTransferred(_owner, address(0));
}
| //Locks the contract for owner for the amount of time provided | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
1920,
2151
]
} | 15,912 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | 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(block.timestamp > _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
| //Unlocks the contract for owner when _lockTime is exceeds | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
2222,
2532
]
} | 15,913 |
MiniMarshallRogan | Mini Marshall Rogan_flat.sol | 0xc0311deef4f1cf47b98f93bec5491723b360b207 | Solidity | MiniMarshallRogan | contract MiniMarshallRogan 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 (ad... | _tokenTransfer | function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!canTrade){
require(sender == owner()); // only owner allowed to trade or add liquidity
}
if(botWallets[sender] || botWallets[recipient]){
require(botscantrade, "bots arent all... | //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf | {
"func_code_index": [
18111,
19230
]
} | 15,914 | ||
BoostRewardsV2 | contracts/zeppelin/Ownable.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Context | contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (addres... | /*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending ... | Comment | _msgSender | function _msgSender() internal view returns (address payable) {
return msg.sender;
}
| // solhint-disable-previous-line no-empty-blocks | LineComment | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
265,
368
]
} | 15,915 |
BoostRewardsV2 | contracts/zeppelin/Ownable.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functi... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
454,
538
]
} | 15,916 |
BoostRewardsV2 | contracts/zeppelin/Ownable.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functi... | NatSpecMultiLine | isOwner | function isOwner() public view returns (bool) {
return _msgSender() == _owner;
}
| /**
* @dev Returns true if the caller is the current owner.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
820,
919
]
} | 15,917 |
BoostRewardsV2 | contracts/zeppelin/Ownable.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functi... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public 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.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
1265,
1410
]
} | 15,918 |
BoostRewardsV2 | contracts/zeppelin/Ownable.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functi... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
1560,
1674
]
} | 15,919 |
BoostRewardsV2 | contracts/zeppelin/Ownable.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functi... | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
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`).
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
1775,
2009
]
} | 15,920 |
BasketBalancer | contracts/interfaces/IPoolRouter.sol | 0x5af2c9a84b6dc6b44a4d318df75a7b71d65f3886 | Solidity | IPoolRouter | interface IPoolRouter {
// gets all tokens currently in the pool
function getPoolTokens() external view returns (address[] memory);
// gets all tokens currently in the pool
function getTokenWeights() external view returns (uint256[] memory);
} | getPoolTokens | function getPoolTokens() external view returns (address[] memory);
| // gets all tokens currently in the pool | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
69,
139
]
} | 15,921 | ||||
BasketBalancer | contracts/interfaces/IPoolRouter.sol | 0x5af2c9a84b6dc6b44a4d318df75a7b71d65f3886 | Solidity | IPoolRouter | interface IPoolRouter {
// gets all tokens currently in the pool
function getPoolTokens() external view returns (address[] memory);
// gets all tokens currently in the pool
function getTokenWeights() external view returns (uint256[] memory);
} | getTokenWeights | function getTokenWeights() external view returns (uint256[] memory);
| // gets all tokens currently in the pool | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
186,
258
]
} | 15,922 | ||||
AAmplToken | contracts/interfaces/IAToken.sol | 0x6fbc3be5ee5273598d1491d41bb45f6d05a7541a | Solidity | IAToken | interface IAToken is IERC20, IScaledBalanceToken {
/**
* @dev Emitted after the mint action
* @param from The address performing the mint
* @param value The amount being
* @param index The new liquidity index of the reserve
**/
event Mint(address indexed from, uint256 value, uint256 index);
/**
... | mint | function mint(
address user,
uint256 amount,
uint256 index
) external returns (bool);
| /**
* @dev Mints `amount` aTokens to `user`
* @param user The address receiving the minted tokens
* @param amount The amount of tokens getting minted
* @param index The new liquidity index of the reserve
* @return `true` if the the previous balance of the user was 0
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
602,
703
]
} | 15,923 | ||||
AAmplToken | contracts/interfaces/IAToken.sol | 0x6fbc3be5ee5273598d1491d41bb45f6d05a7541a | Solidity | IAToken | interface IAToken is IERC20, IScaledBalanceToken {
/**
* @dev Emitted after the mint action
* @param from The address performing the mint
* @param value The amount being
* @param index The new liquidity index of the reserve
**/
event Mint(address indexed from, uint256 value, uint256 index);
/**
... | burn | function burn(
address user,
address receiverOfUnderlying,
uint256 amount,
uint256 index
) external;
| /**
* @dev Burns aTokens from `user` and sends the equivalent amount of underlying to `receiverOfUnderlying`
* @param user The owner of the aTokens, getting them burned
* @param receiverOfUnderlying The address that will receive the underlying
* @param amount The amount being burned
* @param index The new liquidit... | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
1790,
1910
]
} | 15,924 | ||||
AAmplToken | contracts/interfaces/IAToken.sol | 0x6fbc3be5ee5273598d1491d41bb45f6d05a7541a | Solidity | IAToken | interface IAToken is IERC20, IScaledBalanceToken {
/**
* @dev Emitted after the mint action
* @param from The address performing the mint
* @param value The amount being
* @param index The new liquidity index of the reserve
**/
event Mint(address indexed from, uint256 value, uint256 index);
/**
... | mintToTreasury | function mintToTreasury(uint256 amount, uint256 index) external;
| /**
* @dev Mints aTokens to the reserve treasury
* @param amount The amount of tokens getting minted
* @param index The new liquidity index of the reserve
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
2084,
2150
]
} | 15,925 | ||||
AAmplToken | contracts/interfaces/IAToken.sol | 0x6fbc3be5ee5273598d1491d41bb45f6d05a7541a | Solidity | IAToken | interface IAToken is IERC20, IScaledBalanceToken {
/**
* @dev Emitted after the mint action
* @param from The address performing the mint
* @param value The amount being
* @param index The new liquidity index of the reserve
**/
event Mint(address indexed from, uint256 value, uint256 index);
/**
... | transferOnLiquidation | function transferOnLiquidation(
address from,
address to,
uint256 value
) external;
| /**
* @dev Transfers aTokens in the event of a borrow being liquidated, in case the liquidators reclaims the aToken
* @param from The address getting liquidated, current owner of the aTokens
* @param to The recipient
* @param value The amount of tokens getting transferred
**/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
2446,
2545
]
} | 15,926 | ||||
AAmplToken | contracts/interfaces/IAToken.sol | 0x6fbc3be5ee5273598d1491d41bb45f6d05a7541a | Solidity | IAToken | interface IAToken is IERC20, IScaledBalanceToken {
/**
* @dev Emitted after the mint action
* @param from The address performing the mint
* @param value The amount being
* @param index The new liquidity index of the reserve
**/
event Mint(address indexed from, uint256 value, uint256 index);
/**
... | transferUnderlyingTo | function transferUnderlyingTo(address user, uint256 amount) external returns (uint256);
| /**
* @dev Transfers the underlying asset to `target`. Used by the LendingPool to transfer
* assets in borrow(), withdraw() and flashLoan()
* @param user The recipient of the aTokens
* @param amount The amount getting transferred
* @return The amount transferred
**/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
2834,
2923
]
} | 15,927 | ||||
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Math | library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure r... | /**
* @dev Standard math utilities missing in the Solidity language.
*/ | NatSpecMultiLine | max | function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
| /**
* @dev Returns the largest of two numbers.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
83,
195
]
} | 15,928 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Math | library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure r... | /**
* @dev Standard math utilities missing in the Solidity language.
*/ | NatSpecMultiLine | min | function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
| /**
* @dev Returns the smallest of two numbers.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
266,
377
]
} | 15,929 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Math | library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure r... | /**
* @dev Standard math utilities missing in the Solidity language.
*/ | NatSpecMultiLine | average | function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow, so we distribute
return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
}
| /**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
491,
689
]
} | 15,930 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | Math | library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure r... | /**
* @dev Standard math utilities missing in the Solidity language.
*/ | NatSpecMultiLine | sqrt | function sqrt(uint256 x) internal pure returns (uint256) {
uint256 n = x / 2;
uint256 lstX = 0;
while (n != lstX){
lstX = n;
n = (n + x/n) / 2;
}
return uint256(n);
}
| /**
* Imported from: https://github.com/alianse777/solidity-standard-library/blob/master/Math.sol
* @dev Compute square root of x
* @return sqrt(x)
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
868,
1107
]
} | 15,931 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
251,
437
]
} | 15,932 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
707,
848
]
} | 15,933 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*
* _Available since v2.4.0._
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
1180,
1377
]
} | 15,934 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
1623,
2099
]
} | 15,935 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
2562,
2699
]
} | 15,936 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
... | /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
3224,
3574
]
} | 15,937 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
4026,
4161
]
} | 15,938 |
BoostRewardsV2 | contracts/SafeMath.sol | 0x80128f108922482c5d2dfe745af1d89d7cf39bdc | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://482c2071aaae0822d70ed05bd14d728a54e131ceeea891018c2f5d006cf2550f | {
"func_code_index": [
4675,
4846
]
} | 15,939 |
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | Greedy | function Greedy()
public payable
{
// add administrators here
administrators[msg.sender] = true;
ambassadors_[msg.sender] = true;
purchaseTokens(msg.value, address(0x0));
}
| /*
* -- APPLICATION ENTRY POINTS --
*/ | Comment | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
4997,
5249
]
} | 15,940 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | buy | function buy(address _referredBy)
public
payable
returns(uint256)
{
purchaseTokens(msg.value, _referredBy);
}
| /**
* Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any)
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
5389,
5549
]
} | 15,941 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | function()
payable
public
{
purchaseTokens(msg.value, 0x0);
}
| /**
* Fallback function to handle ethereum that was send straight to the contract
* Unfortunately we cannot use a referral address this way.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
5723,
5826
]
} | 15,942 | ||||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | reinvest | function reinvest()
onlyStronghands()
public
{
// fetch dividends
uint256 _dividends = myDividends(false); // retrieve ref. bonus later in the code
// pay out the dividends virtually
address _customerAddress = msg.sender;
payoutsTo_[_customerAddress] += (int256) (_dividend... | /**
* Converts all of caller's dividends to tokens.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
6289,
7067
]
} | 15,943 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | exit | function exit()
public
sellLimit()
{
// get token count for caller & sell them all
address _customerAddress = msg.sender;
uint256 _tokens = tokenBalanceLedger_[_customerAddress];
if(_tokens > 0) sell(_tokens);
// lambo delivery service
withdraw();
}
| /**
* Alias of sell() and withdraw().
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
7132,
7478
]
} | 15,944 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | withdraw | function withdraw()
onlyStronghands()
sellLimit()
public
{
// setup data
address _customerAddress = msg.sender;
uint256 _dividends = myDividends(false); // get ref. bonus later in the code
// update dividend tracker
payoutsTo_[_customerAddress] += (int256) (_dividends... | /**
* Withdraws all of the callers earnings.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
7546,
8255
]
} | 15,945 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | sell | function sell(uint256 _amountOfTokens)
onlyBagholders()
sellLimit()
public
{
// setup data
address _customerAddress = msg.sender;
// russian hackers BTFO
require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]);
uint256 _tokens = _amountOfTokens;
uint256 _ethereum ... | /**
* Liquifies tokens to ethereum.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
8318,
9969
]
} | 15,946 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | transfer | function transfer(address _toAddress, uint256 _amountOfTokens)
onlyBagholders()
sellLimit()
public
returns(bool)
{
// setup
address _customerAddress = msg.sender;
// make sure we have the requested tokens
// also disables transfers until ambassador phase is over
/... | /**
* Transfer tokens from the caller to a new holder.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
10057,
11320
]
} | 15,947 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | sendDividends | function sendDividends () payable public
require(msg.value > 10000 wei);
uint256 _dividends = msg.value;
profitPerShare_ += (_dividends * magnitude / (tokenSupply_));
| /**
* This function is a way to spread dividends to tokenholders from other contracts
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
12170,
12398
]
} | 15,948 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | disableInitialStage | function disableInitialStage()
onlyAdministrator()
public
{
onlyAmbassadors = false;
}
| /**
* In case the amassador quota is not met, the administrator can manually disable the ambassador phase.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
12599,
12727
]
} | 15,949 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | setAdministrator | function setAdministrator(address _identifier, bool _status)
onlyAdministrator()
public
{
administrators[_identifier] = _status;
}
| /**
* In case one of us dies, we need to replace ourselves.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
12814,
12986
]
} | 15,950 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | setStakingRequirement | function setStakingRequirement(uint256 _amountOfTokens)
onlyAdministrator()
public
{
stakingRequirement = _amountOfTokens;
}
| /**
* Precautionary measures in case we need to adjust the masternode rate.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
13089,
13255
]
} | 15,951 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | setName | function setName(string _name)
onlyAdministrator()
public
{
name = _name;
}
| /**
* If we want to rebrand, we can.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
13490,
13607
]
} | 15,952 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | setSymbol | function setSymbol(string _symbol)
onlyAdministrator()
public
{
symbol = _symbol;
}
| /**
* If we want to rebrand, we can.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
13671,
13796
]
} | 15,953 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | totalEthereumBalance | function totalEthereumBalance()
public
view
returns(uint)
{
return address(this).balance;
}
| /**
* Method to view the current Ethereum stored in the contract
* Example: totalEthereumBalance()
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
14184,
14326
]
} | 15,954 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | totalSupply | function totalSupply()
public
view
returns(uint256)
{
return tokenSupply_;
}
| /**
* Retrieve the total token supply.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
14392,
14519
]
} | 15,955 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | myTokens | function myTokens()
public
view
returns(uint256)
{
address _customerAddress = msg.sender;
return balanceOf(_customerAddress);
}
| /**
* Retrieve the tokens owned by the caller.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
14593,
14780
]
} | 15,956 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | myDividends | function myDividends(bool _includeReferralBonus)
public
view
returns(uint256)
{
address _customerAddress = msg.sender;
return _includeReferralBonus ? dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ;
}
| /**
* Retrieve the dividends owned by the caller.
* If `_includeReferralBonus` is to to 1/true, the referral bonus will be included in the calculations.
* The reason for this, is that in the frontend, we will want to get the total divs (global + ref)
* But in the internal calculations, we want them separate.
... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
15137,
15452
]
} | 15,957 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | balanceOf | function balanceOf(address _customerAddress)
view
public
returns(uint256)
{
return tokenBalanceLedger_[_customerAddress];
}
| /**
* Retrieve the token balance of any single address.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
15535,
15709
]
} | 15,958 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | dividendsOf | function dividendsOf(address _customerAddress)
view
public
returns(uint256)
{
return (uint256) ((int256)(profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude;
}
| /**
* Retrieve the dividend balance of any single address.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
15795,
16054
]
} | 15,959 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | sellPrice | function sellPrice()
public
view
returns(uint256)
{
// our calculation relies on the token supply, so we need supply. Doh.
if(tokenSupply_ == 0){
return tokenPriceInitial_ - tokenPriceIncremental_;
} else {
uint256 _ethereum = tokensToEthereum_(1e18);
uint256... | /**
* Return the buy price of 1 individual token.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
16131,
16926
]
} | 15,960 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | buyPrice | function buyPrice()
public
view
returns(uint256)
{
// our calculation relies on the token supply, so we need supply. Doh.
if(tokenSupply_ == 0){
return tokenPriceInitial_ + tokenPriceIncremental_;
} else {
uint256 _ethereum = tokensToEthereum_(1e18);
uint256 ... | /**
* Return the sell price of 1 individual token.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
17004,
17796
]
} | 15,961 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | calculateTokensReceived | function calculateTokensReceived(uint256 _ethereumToSpend)
public
view
returns(uint256)
{
uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereumToSpend, dividendFee_), 100);
uint256 _jackpotPay = SafeMath.div(SafeMath.mul(_ethereumToSpend, jackpotFee_), 100);
uint256 _devPay = SafeMa... | /**
* Function for the frontend to dynamically retrieve the price scaling of buy orders.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
17912,
18568
]
} | 15,962 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | calculateEthereumReceived | function calculateEthereumReceived(uint256 _tokensToSell)
public
view
returns(uint256)
{
require(_tokensToSell <= tokenSupply_);
uint256 _ethereum = tokensToEthereum_(_tokensToSell);
uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, dividendFee_), 100);
uint256 _jackpotPay... | /**
* Function for the frontend to dynamically retrieve the price scaling of sell orders.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
18685,
19343
]
} | 15,963 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | purchaseTokens | function purchaseTokens(uint256 _incomingEthereum, address _referredBy)
buyLimit()
internal
returns(uint256)
{
return _purchaseTokens(_incomingEthereum, _referredBy);
}
| /*==========================================
= INTERNAL FUNCTIONS =
==========================================*/ | Comment | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
19669,
19888
]
} | 15,964 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | ethereumToTokens_ | function ethereumToTokens_(uint256 _ethereum)
internal
view
returns(uint256)
{
uint256 _tokenPriceInitial = tokenPriceInitial_ * 1e18;
uint256 _tokensReceived =
(
(
// underflow attempts BTFO
SafeMath.sub(
(sqrt
(
... | /**
* Calculate Token price based on an amount of incoming ethereum
* It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation;
* Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
24004,
24985
]
} | 15,965 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | tokensToEthereum_ | function tokensToEthereum_(uint256 _tokens)
internal
view
returns(uint256)
uint256 tokens_ = (_tokens + 1e18);
uint256 _tokenSupply = (tokenSupply_ + 1e18);
uint256 _etherReceived =
(
// underflow attempts BTFO
SafeMath.sub(
(
(
... | /**
* Calculate token sell value.
* It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation;
* Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
25246,
25974
]
} | 15,966 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | GreedVSFear | contract GreedVSFear {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onl... | sqrt | function sqrt(uint x) internal pure returns (uint y) {
uint z = (x + 1) / 2;
y = x;
while (z < y) {
y = z;
z = (x / z + z) / 2;
}
}
| //This is where all your gas goes, sorry
//Not sorry, you probably only paid 1 gwei | LineComment | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
26081,
26284
]
} | 15,967 | |||
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
95,
308
]
} | 15,968 | |
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
398,
691
]
} | 15,969 | |
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
812,
940
]
} | 15,970 | |
GreedVSFear | GreedVSFear.sol | 0xc41f889947be4c71bf97d383ec15f83d8cceec75 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://9df60a27f495212ad7446ded0a85295cccac599c3dd33bed4b17c693b79b93df | {
"func_code_index": [
1010,
1162
]
} | 15,971 | |
AAmplToken | contracts/dependencies/uFragments/UInt256Lib.sol | 0x6fbc3be5ee5273598d1491d41bb45f6d05a7541a | Solidity | UInt256Lib | library UInt256Lib {
uint256 private constant MAX_INT256 = ~(uint256(1) << 255);
/**
* @dev Safely converts a uint256 to an int256.
*/
function toInt256Safe(uint256 a) internal pure returns (int256) {
require(a <= MAX_INT256);
return int256(a);
}
} | /**
* @title Various utilities useful for uint256.
*/ | NatSpecMultiLine | toInt256Safe | function toInt256Safe(uint256 a) internal pure returns (int256) {
require(a <= MAX_INT256);
return int256(a);
}
| /**
* @dev Safely converts a uint256 to an int256.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
154,
289
]
} | 15,972 | ||
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | KANYE | function KANYE() public {
symbol = "KANYE";
name = "KANYE";
decimals = 18;
_totalSupply = 1000000000000000000000000000;
balances[0x432a39e0884a0bAA16e2b304b344E47f8CCe8B87] = _totalSupply;
Transfer(address(0), 0x432a39e0884a0bAA16e2b304b344E47f8CCe8B87, _totalSupply);
}
| // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
452,
786
]
} | 15,973 | |
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
974,
1095
]
} | 15,974 | |
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
1315,
1444
]
} | 15,975 | |
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
1788,
2065
]
} | 15,976 | |
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
2573,
2781
]
} | 15,977 | |
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
3312,
3670
]
} | 15,978 | |
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
3953,
4109
]
} | 15,979 | |
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
4464,
4781
]
} | 15,980 | |
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
4973,
5032
]
} | 15,981 | ||
KANYE | KANYE.sol | 0x59717982d56d2138c74449bd2797faebf01c0d22 | Solidity | KANYE | contract KANYE is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.20+commit.3155dd80 | bzzr://b6001a14dc4008c3fc2d4dfd5d87ffc6044550c4c7d1c28aef251769fd7802c8 | {
"func_code_index": [
5265,
5454
]
} | 15,982 | |
SkidCoin | SkidCoin.sol | 0x9f6546576ae7a71cf8c823ec2201a890ea7404f9 | Solidity | SkidCoin | contract SkidCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public override view returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://31c9d146557fe8544001155fc7ec7fd3f8e4475fd014c4506555921473764dba | {
"func_code_index": [
983,
1108
]
} | 15,983 |
SkidCoin | SkidCoin.sol | 0x9f6546576ae7a71cf8c823ec2201a890ea7404f9 | Solidity | SkidCoin | contract SkidCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public override view returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://31c9d146557fe8544001155fc7ec7fd3f8e4475fd014c4506555921473764dba | {
"func_code_index": [
1328,
1462
]
} | 15,984 |
SkidCoin | SkidCoin.sol | 0x9f6546576ae7a71cf8c823ec2201a890ea7404f9 | Solidity | SkidCoin | contract SkidCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public override returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://31c9d146557fe8544001155fc7ec7fd3f8e4475fd014c4506555921473764dba | {
"func_code_index": [
1806,
2097
]
} | 15,985 |
SkidCoin | SkidCoin.sol | 0x9f6546576ae7a71cf8c823ec2201a890ea7404f9 | Solidity | SkidCoin | contract SkidCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public 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
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://31c9d146557fe8544001155fc7ec7fd3f8e4475fd014c4506555921473764dba | {
"func_code_index": [
2605,
2827
]
} | 15,986 |
SkidCoin | SkidCoin.sol | 0x9f6546576ae7a71cf8c823ec2201a890ea7404f9 | Solidity | SkidCoin | contract SkidCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public override returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(from, to, tokens... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://31c9d146557fe8544001155fc7ec7fd3f8e4475fd014c4506555921473764dba | {
"func_code_index": [
3358,
3730
]
} | 15,987 |
SkidCoin | SkidCoin.sol | 0x9f6546576ae7a71cf8c823ec2201a890ea7404f9 | Solidity | SkidCoin | contract SkidCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public override view returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://31c9d146557fe8544001155fc7ec7fd3f8e4475fd014c4506555921473764dba | {
"func_code_index": [
4013,
4174
]
} | 15,988 |
SkidCoin | SkidCoin.sol | 0x9f6546576ae7a71cf8c823ec2201a890ea7404f9 | Solidity | SkidCoin | contract SkidCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes memory data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, address(this), data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://31c9d146557fe8544001155fc7ec7fd3f8e4475fd014c4506555921473764dba | {
"func_code_index": [
4529,
4867
]
} | 15,989 |
SkidCoin | SkidCoin.sol | 0x9f6546576ae7a71cf8c823ec2201a890ea7404f9 | Solidity | SkidCoin | contract SkidCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------
// function () external payable {
// revert();
// }
// ------------------------------------------------------------------------
// Owner can tra... | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://31c9d146557fe8544001155fc7ec7fd3f8e4475fd014c4506555921473764dba | {
"func_code_index": [
5362,
5551
]
} | 15,990 |
OneTimeMintFactory | OneTimeMintFactory.sol | 0x72b890f2fdb6f8416afbeb4a47cda00fcc7613a7 | Solidity | TokenClaimer | contract TokenClaimer{
event ClaimedTokens(address indexed _token, address indexed _to, uint _amount);
/// @notice This method can be used by the controller to extract mistakenly
/// sent tokens to this contract.
/// @param _token The address of the token contract that you want to recover
//... | _claimStdTokens | function _claimStdTokens(address _token, address payable to) internal {
if (_token == address(0x0)) {
to.transfer(address(this).balance);
return;
}
TransferableToken token = TransferableToken(_token);
uint balance = token.balanceOf(address(this));
(bool status,... | /// @notice This method can be used by the controller to extract mistakenly
/// sent tokens to this contract.
/// @param _token The address of the token contract that you want to recover
/// set to 0 in case you want to extract ether. | NatSpecSingleLine | v0.5.10+commit.5a6ea5b1 | MIT | bzzr://25917f8eec1a8a317bd78e40c54883fc1a871ecc71391e1caec35c3bd74696bd | {
"func_code_index": [
368,
884
]
} | 15,991 | ||
AmonaCoin | AmonaCoin.sol | 0xdd62d9cf8a9b428b349baed0c1da3ebcbf108424 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://98eb3bee4db77e2795e189fe864c41679686e74e130cd9010ccf285620d625d8 | {
"func_code_index": [
60,
124
]
} | 15,992 | |||
AmonaCoin | AmonaCoin.sol | 0xdd62d9cf8a9b428b349baed0c1da3ebcbf108424 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {}
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://98eb3bee4db77e2795e189fe864c41679686e74e130cd9010ccf285620d625d8 | {
"func_code_index": [
232,
309
]
} | 15,993 | |||
AmonaCoin | AmonaCoin.sol | 0xdd62d9cf8a9b428b349baed0c1da3ebcbf108424 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transfer | function transfer(address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://98eb3bee4db77e2795e189fe864c41679686e74e130cd9010ccf285620d625d8 | {
"func_code_index": [
546,
623
]
} | 15,994 | |||
AmonaCoin | AmonaCoin.sol | 0xdd62d9cf8a9b428b349baed0c1da3ebcbf108424 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://98eb3bee4db77e2795e189fe864c41679686e74e130cd9010ccf285620d625d8 | {
"func_code_index": [
946,
1042
]
} | 15,995 | |||
AmonaCoin | AmonaCoin.sol | 0xdd62d9cf8a9b428b349baed0c1da3ebcbf108424 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://98eb3bee4db77e2795e189fe864c41679686e74e130cd9010ccf285620d625d8 | {
"func_code_index": [
1326,
1407
]
} | 15,996 | |||
AmonaCoin | AmonaCoin.sol | 0xdd62d9cf8a9b428b349baed0c1da3ebcbf108424 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.19+commit.c4cbbb05 | bzzr://98eb3bee4db77e2795e189fe864c41679686e74e130cd9010ccf285620d625d8 | {
"func_code_index": [
1615,
1712
]
} | 15,997 | |||
AmonaCoin | AmonaCoin.sol | 0xdd62d9cf8a9b428b349baed0c1da3ebcbf108424 | Solidity | AmonaCoin | contract AmonaCoin is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to custo... | //name this contract whatever you'd like | LineComment | AmonaCoin | function AmonaCoin(
) {
balances[msg.sender] = 1111111111; // Give the creator all initial tokens (100000 for example)
totalSupply = 1111111111; // Update total supply (100000 for example)
name = "Amona Coin"; // Set the name for... | //human 0.1 standard. Just an arbitrary versioning scheme.
//
// CHANGE THESE VALUES FOR YOUR TOKEN
//
//make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://98eb3bee4db77e2795e189fe864c41679686e74e130cd9010ccf285620d625d8 | {
"func_code_index": [
1158,
1711
]
} | 15,998 | |
AmonaCoin | AmonaCoin.sol | 0xdd62d9cf8a9b428b349baed0c1da3ebcbf108424 | Solidity | AmonaCoin | contract AmonaCoin is StandardToken {
function () {
//if ether is sent to this address, send it back.
throw;
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to custo... | //name this contract whatever you'd like | LineComment | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.19+commit.c4cbbb05 | bzzr://98eb3bee4db77e2795e189fe864c41679686e74e130cd9010ccf285620d625d8 | {
"func_code_index": [
1772,
2577
]
} | 15,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.