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
AkulaInu
openzeppelin-solidity\contracts\utils\Address.sol
0x4f8ed47f839e079be0a79b95d0fd5473c90804d0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
None
ipfs://36acfd850d1a2fda2fc855c17ea6964ae99204c9d3a51b35ba8958489722da1b
{ "func_code_index": [ 2160, 2562 ] }
7,100
AkulaInu
openzeppelin-solidity\contracts\utils\Address.sol
0x4f8ed47f839e079be0a79b95d0fd5473c90804d0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
None
ipfs://36acfd850d1a2fda2fc855c17ea6964ae99204c9d3a51b35ba8958489722da1b
{ "func_code_index": [ 3318, 3498 ] }
7,101
AkulaInu
openzeppelin-solidity\contracts\utils\Address.sol
0x4f8ed47f839e079be0a79b95d0fd5473c90804d0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
None
ipfs://36acfd850d1a2fda2fc855c17ea6964ae99204c9d3a51b35ba8958489722da1b
{ "func_code_index": [ 3723, 3924 ] }
7,102
AkulaInu
openzeppelin-solidity\contracts\utils\Address.sol
0x4f8ed47f839e079be0a79b95d0fd5473c90804d0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
None
ipfs://36acfd850d1a2fda2fc855c17ea6964ae99204c9d3a51b35ba8958489722da1b
{ "func_code_index": [ 4294, 4525 ] }
7,103
AkulaInu
openzeppelin-solidity\contracts\utils\Address.sol
0x4f8ed47f839e079be0a79b95d0fd5473c90804d0
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
None
ipfs://36acfd850d1a2fda2fc855c17ea6964ae99204c9d3a51b35ba8958489722da1b
{ "func_code_index": [ 4776, 5097 ] }
7,104
AkulaInu
openzeppelin-solidity\contracts\utils\Address.sol
0x4f8ed47f839e079be0a79b95d0fd5473c90804d0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
None
ipfs://36acfd850d1a2fda2fc855c17ea6964ae99204c9d3a51b35ba8958489722da1b
{ "func_code_index": [ 497, 581 ] }
7,105
AkulaInu
openzeppelin-solidity\contracts\utils\Address.sol
0x4f8ed47f839e079be0a79b95d0fd5473c90804d0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
None
ipfs://36acfd850d1a2fda2fc855c17ea6964ae99204c9d3a51b35ba8958489722da1b
{ "func_code_index": [ 1139, 1292 ] }
7,106
AkulaInu
openzeppelin-solidity\contracts\utils\Address.sol
0x4f8ed47f839e079be0a79b95d0fd5473c90804d0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
None
ipfs://36acfd850d1a2fda2fc855c17ea6964ae99204c9d3a51b35ba8958489722da1b
{ "func_code_index": [ 1442, 1691 ] }
7,107
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
typeAndVersion
function typeAndVersion() external pure virtual override returns ( string memory ) { return "ArbitrumValidator 0.1.0"; }
/** * @notice versions: * * - ArbitrumValidator 0.1.0: initial release * * @inheritdoc TypeAndVersionInterface */
NatSpecMultiLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 3207, 3367 ] }
7,108
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
l2Flags
function l2Flags() external view virtual returns (address) { return s_l2FlagsAddress; }
/// @return L2 Flags contract address
NatSpecSingleLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 3409, 3522 ] }
7,109
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
inbox
function inbox() external view virtual returns (address) { return address(s_inbox); }
/// @return Arbitrum Inbox contract address
NatSpecSingleLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 3570, 3681 ] }
7,110
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
gasConfigAccessController
function gasConfigAccessController() external view virtual returns (address) { return address(s_gasConfigAccessController); }
/// @return gas config AccessControllerInterface contract address
NatSpecSingleLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 3751, 3902 ] }
7,111
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
gasConfig
function gasConfig() external view virtual returns (GasConfiguration memory) { return s_gasConfig; }
/// @return stored GasConfiguration
NatSpecSingleLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 3942, 4068 ] }
7,112
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
/// @notice makes this contract payable as it need funds to pay for L2 transactions fees on L1.
NatSpecSingleLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 4168, 4199 ] }
7,113
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
withdrawFunds
function withdrawFunds() external onlyOwner() { address payable to = payable(msg.sender); to.transfer(address(this).balance); }
/** * @notice withdraws all funds availbale in this contract to the msg.sender * @dev only owner can call this */
NatSpecMultiLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 4326, 4475 ] }
7,114
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
withdrawFundsTo
function withdrawFundsTo( address payable to ) external onlyOwner() { to.transfer(address(this).balance); }
/** * @notice withdraws all funds availbale in this contract to the address specified * @dev only owner can call this * @param to address where to send the funds */
NatSpecMultiLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 4656, 4788 ] }
7,115
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
setGasAccessController
function setGasAccessController( address accessController ) external onlyOwner { _setGasAccessController(accessController); }
/** * @notice sets gas config AccessControllerInterface contract * @dev only owner can call this * @param accessController new AccessControllerInterface contract address */
NatSpecMultiLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 4977, 5126 ] }
7,116
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
setGasConfiguration
function setGasConfiguration( uint256 maxSubmissionCost, uint256 maxGasPrice, uint256 gasCostL2, uint256 gasLimitL2, address refundableAddress ) external { require(s_gasConfigAccessController.hasAccess(msg.sender, msg.data), "Access required to set config"); _setGasConfiguration(maxSubmissionCost, maxGa...
/** * @notice sets Arbitrum gas configuration * @dev access control provided by s_gasConfigAccessController * @param maxSubmissionCost maximum cost willing to pay on L2 * @param maxGasPrice maximum gas price to pay on L2 * @param gasCostL2 value to send to L2 to cover gas fee * @param gasLimitL2 gas limit for imm...
NatSpecMultiLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 5610, 6006 ] }
7,117
ArbitrumValidator
src/v0.8/dev/ArbitrumValidator.sol
0x29cd92f343f9d81e74fae28913b038a81005b46f
Solidity
ArbitrumValidator
contract ArbitrumValidator is TypeAndVersionInterface, AggregatorValidatorInterface, SimpleWriteAccessController { // Config for L1 -> L2 `createRetryableTicket` call struct GasConfiguration { uint256 maxSubmissionCost; uint256 maxGasPrice; uint256 gasCostL2; uint256 gasLimitL2; address refundab...
/** * @title ArbitrumValidator * @notice Allows to raise and lower Flags on the Arbitrum network through its Layer 1 contracts * - The internal AccessController controls the access of the validate method * - Gas configuration is controlled by a configurable external SimpleWriteAccessController * - Funds on the ...
NatSpecMultiLine
validate
function validate( uint256 /* previousRoundId */, int256 previousAnswer, uint256 /* currentRoundId */, int256 currentAnswer ) external override checkAccess() returns (bool) { // Avoids resending to L2 the same tx on every call if (previousAnswer == currentAnswer) { return true; } int isSer...
/** * @notice validate method updates the state of an L2 Flag in case of change on the Arbitrum Sequencer. * A one answer considers the service as offline. * In case the previous answer is the same as the current it does not trigger any tx on L2. In other case, * a retryable ticket is created on the Arbitrum L1 Inb...
NatSpecMultiLine
v0.8.6+commit.11564f7e
MIT
{ "func_code_index": [ 6632, 8033 ] }
7,118
BondingVault
contracts/BondingVault.sol
0x8f540e6d91ce3296824a4e469ff5f01abf5d700c
Solidity
BondingVault
contract BondingVault is Secondary { using SafeMath for uint256; CommunityToken public communityToken; BuyFormula public buyFormula; LiquidationFormula public liquidationFormula; event LogEthReceived( uint256 amount, address indexed account ); event LogEthSent(...
/** * @title BondingVault * @dev Vault which holds (a part) of the donations and mints the tokens to the donators in return. * Actual funding and liquidation calls come from the community contract. * The logic of price (both award and liquidation) calculation is delegated to 2 corresponding formulas * */
NatSpecMultiLine
function() external payable { emit LogEthReceived(msg.value, msg.sender); }
/** * @dev funding bondingVault and not receiving tokens back is allowed **/
NatSpecMultiLine
v0.5.2+commit.1df8f40c
None
bzzr://bf639f6bbcc8e97f4643fda25bf8b031922ec55ccc27074e351e5c96b256ea1f
{ "func_code_index": [ 601, 695 ] }
7,119
BondingVault
contracts/BondingVault.sol
0x8f540e6d91ce3296824a4e469ff5f01abf5d700c
Solidity
BondingVault
contract BondingVault is Secondary { using SafeMath for uint256; CommunityToken public communityToken; BuyFormula public buyFormula; LiquidationFormula public liquidationFormula; event LogEthReceived( uint256 amount, address indexed account ); event LogEthSent(...
/** * @title BondingVault * @dev Vault which holds (a part) of the donations and mints the tokens to the donators in return. * Actual funding and liquidation calls come from the community contract. * The logic of price (both award and liquidation) calculation is delegated to 2 corresponding formulas * */
NatSpecMultiLine
sweepVault
function sweepVault(address payable _operator) public onlyPrimary { //1 initially minted + 1 possible rounding corrections require(communityToken.totalSupply() < 2 ether, 'Sweep available only if no minted tokens left'); require(address(this).balance > 0, 'Vault is empty'); _operator.transfer(addres...
/** * @dev Owner can withdraw the remaining ETH balance as long as amount of minted tokens is * less than 1 token (due to possible rounding leftovers) * */
NatSpecMultiLine
v0.5.2+commit.1df8f40c
None
bzzr://bf639f6bbcc8e97f4643fda25bf8b031922ec55ccc27074e351e5c96b256ea1f
{ "func_code_index": [ 2076, 2501 ] }
7,120
BRBT
BRBT.sol
0x17a644bf6006ed98631c987afbe0da2e3c5ca02f
Solidity
BRBT
contract BRBT is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) private _isExcludedFromFee; m...
setFeeRate
function setFeeRate(uint256 rate) external { require(_msgSender() == _FeeAddress); require(rate < 51, "Rate can't exceed 50%"); _feeRate = rate; emit FeeRateUpdated(_feeRate); }
// fallback in case contract is not releasing tokens fast enough
LineComment
v0.8.4+commit.c7e474f2
Unlicense
ipfs://f0b640d89fb6ed7cc5c3c8b68a2548ebdca6d900428bba0eae62dbddd70db8be
{ "func_code_index": [ 12600, 12823 ] }
7,121
LottoX
LottoX.sol
0x5bc09a82235348850ef480bb00aae3662c914945
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.25+commit.59dbf8f1
bzzr://c1505d6b29f6a3f4a120ebc6ada1c91fb36ba39ac220cdadf035dd07a033243a
{ "func_code_index": [ 60, 124 ] }
7,122
LottoX
LottoX.sol
0x5bc09a82235348850ef480bb00aae3662c914945
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.25+commit.59dbf8f1
bzzr://c1505d6b29f6a3f4a120ebc6ada1c91fb36ba39ac220cdadf035dd07a033243a
{ "func_code_index": [ 232, 309 ] }
7,123
LottoX
LottoX.sol
0x5bc09a82235348850ef480bb00aae3662c914945
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.25+commit.59dbf8f1
bzzr://c1505d6b29f6a3f4a120ebc6ada1c91fb36ba39ac220cdadf035dd07a033243a
{ "func_code_index": [ 546, 623 ] }
7,124
LottoX
LottoX.sol
0x5bc09a82235348850ef480bb00aae3662c914945
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.25+commit.59dbf8f1
bzzr://c1505d6b29f6a3f4a120ebc6ada1c91fb36ba39ac220cdadf035dd07a033243a
{ "func_code_index": [ 946, 1042 ] }
7,125
LottoX
LottoX.sol
0x5bc09a82235348850ef480bb00aae3662c914945
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.25+commit.59dbf8f1
bzzr://c1505d6b29f6a3f4a120ebc6ada1c91fb36ba39ac220cdadf035dd07a033243a
{ "func_code_index": [ 1326, 1407 ] }
7,126
LottoX
LottoX.sol
0x5bc09a82235348850ef480bb00aae3662c914945
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.25+commit.59dbf8f1
bzzr://c1505d6b29f6a3f4a120ebc6ada1c91fb36ba39ac220cdadf035dd07a033243a
{ "func_code_index": [ 1615, 1712 ] }
7,127
LottoX
LottoX.sol
0x5bc09a82235348850ef480bb00aae3662c914945
Solidity
LottoX
contract LottoX is StandardToken { /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influences the core functionality. Some wallets/interfaces might...
LottoX
function LottoX() { balances[msg.sender] = 400000000000000000000000000; totalSupply = 400000000000000000000000000; name = "LottoX"; decimals = 18; symbol = "LTOXS"; unitsOneEthCanBuy = 1000; fundsWallet = msg.sender; }
// Where should the raised ETH go? // which means the following function name has to match the contract name declared above
LineComment
v0.4.25+commit.59dbf8f1
bzzr://c1505d6b29f6a3f4a120ebc6ada1c91fb36ba39ac220cdadf035dd07a033243a
{ "func_code_index": [ 1115, 1410 ] }
7,128
LottoX
LottoX.sol
0x5bc09a82235348850ef480bb00aae3662c914945
Solidity
LottoX
contract LottoX is StandardToken { /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influences the core functionality. Some wallets/interfaces might...
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.25+commit.59dbf8f1
bzzr://c1505d6b29f6a3f4a120ebc6ada1c91fb36ba39ac220cdadf035dd07a033243a
{ "func_code_index": [ 2006, 2811 ] }
7,129
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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...
//****************************************************************************************
LineComment
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.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 83, 195 ] }
7,130
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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...
//****************************************************************************************
LineComment
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.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 266, 377 ] }
7,131
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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...
//****************************************************************************************
LineComment
average
function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; }
/** * @dev Returns the average of two numbers. The result is rounded towards * zero. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 491, 652 ] }
7,132
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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...
//****************************************************************************************
LineComment
ceilDiv
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); }
/** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 854, 1056 ] }
7,133
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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; } /** * @dev Integer division of two numbe...
//****************************************************************************************
LineComment
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.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 89, 272 ] }
7,134
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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; } /** * @dev Integer division of two numbe...
//****************************************************************************************
LineComment
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.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 356, 629 ] }
7,135
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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; } /** * @dev Integer division of two numbe...
//****************************************************************************************
LineComment
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.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 744, 860 ] }
7,136
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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; } /** * @dev Integer division of two numbe...
//****************************************************************************************
LineComment
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.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 924, 1060 ] }
7,137
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
isContract
function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) ...
/** * @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.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 606, 998 ] }
7,138
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); }
/** * @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.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1928, 2250 ] }
7,139
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
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.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 3007, 3187 ] }
7,140
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
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.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 3412, 3646 ] }
7,141
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
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.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 4016, 4281 ] }
7,142
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
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"); require(isContract(target), "Address: call to non-contract");...
/** * @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.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 4532, 5047 ] }
7,143
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
functionStaticCall
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 5227, 5431 ] }
7,144
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
functionStaticCall
function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallRe...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 5618, 6018 ] }
7,145
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
functionDelegateCall
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 6200, 6405 ] }
7,146
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
functionDelegateCall
function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallR...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 6594, 6995 ] }
7,147
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
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 ...
//****************************************************************************************
LineComment
verifyCallResult
function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { ...
/** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 7218, 7935 ] }
7,148
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Arrays
library Arrays { /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). ...
findUpperBound
function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; while (low < high) { uint256 mid = Math.average(low, high); // Note that mid wi...
/** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 439, 1362 ] }
7,149
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Strings
library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT ...
//****************************************************************************************
LineComment
toString
function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 ...
/** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 184, 912 ] }
7,150
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Strings
library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT ...
//****************************************************************************************
LineComment
toHexString
function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); }
/** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1017, 1362 ] }
7,151
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Strings
library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT ...
//****************************************************************************************
LineComment
toHexString
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } ...
/** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1485, 1941 ] }
7,152
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
//**************************************************************************************** //**************************************************************************************** //**************************************************************************************** //*********************************************...
LineComment
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 399, 491 ] }
7,153
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
//**************************************************************************************** //**************************************************************************************** //**************************************************************************************** //*********************************************...
LineComment
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1050, 1149 ] }
7,154
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
//**************************************************************************************** //**************************************************************************************** //**************************************************************************************** //*********************************************...
LineComment
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1299, 1496 ] }
7,155
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
//****************************************************************************************
LineComment
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 94, 154 ] }
7,156
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
//****************************************************************************************
LineComment
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 237, 310 ] }
7,157
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
//****************************************************************************************
LineComment
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 534, 616 ] }
7,158
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
//****************************************************************************************
LineComment
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 895, 983 ] }
7,159
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
//****************************************************************************************
LineComment
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1647, 1726 ] }
7,160
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
//****************************************************************************************
LineComment
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 2039, 2175 ] }
7,161
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
//****************************************************************************************
LineComment
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 100, 159 ] }
7,162
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
//****************************************************************************************
LineComment
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 226, 287 ] }
7,163
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
//****************************************************************************************
LineComment
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 363, 418 ] }
7,164
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 809, 914 ] }
7,165
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1028, 1137 ] }
7,166
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1771, 1869 ] }
7,167
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1929, 2042 ] }
7,168
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 2100, 2232 ] }
7,169
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 2440, 2620 ] }
7,170
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 2678, 2834 ] }
7,171
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 2976, 3150 ] }
7,172
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds all...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 3627, 4124 ] }
7,173
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 4528, 4748 ] }
7,174
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, c...
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 5246, 5664 ] }
7,175
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
_transfer
function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); ...
/** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 6149, 6887 ] }
7,176
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 7169, 7573 ] }
7,177
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds ba...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 7901, 8497 ] }
7,178
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
_approve
function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(own...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 8930, 9315 ] }
7,179
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - wh...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 9910, 10040 ] }
7,180
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** ...
//****************************************************************************************
LineComment
_afterTokenTransfer
function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - ...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 10639, 10768 ] }
7,181
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20Burnable
abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`...
//****************************************************************************************
LineComment
burn
function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); }
/** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 161, 257 ] }
7,182
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20Burnable
abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`...
//****************************************************************************************
LineComment
burnFrom
function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(...
/** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 571, 944 ] }
7,183
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Pausable
abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** ...
//****************************************************************************************
LineComment
paused
function paused() public view virtual returns (bool) { return _paused; }
/** * @dev Returns true if the contract is paused, and false otherwise. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 530, 621 ] }
7,184
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Pausable
abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** ...
//****************************************************************************************
LineComment
_pause
function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); }
/** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1330, 1453 ] }
7,185
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
Pausable
abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** ...
//****************************************************************************************
LineComment
_unpause
function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); }
/** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 1589, 1714 ] }
7,186
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20Snapshot
abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; /...
//****************************************************************************************
LineComment
_snapshot
function _snapshot() internal virtual returns (uint256) { _currentSnapshotId.increment(); uint256 currentId = _getCurrentSnapshotId(); emit Snapshot(currentId); return currentId; }
/** * @dev Creates a new snapshot and returns its snapshot id. * * Emits a {Snapshot} event that contains the same id. * * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a * set of accounts, for example using {AccessControl}, or it may be open to...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 2128, 2356 ] }
7,187
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20Snapshot
abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; /...
//****************************************************************************************
LineComment
_getCurrentSnapshotId
function _getCurrentSnapshotId() internal view virtual returns (uint256) { return _currentSnapshotId.current(); }
/** * @dev Get the current snapshotId */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 2417, 2549 ] }
7,188
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20Snapshot
abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; /...
//****************************************************************************************
LineComment
balanceOfAt
function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]); return snapshotted ? value : balanceOf(account); }
/** * @dev Retrieves the balance of `account` at the time `snapshotId` was created. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 2656, 2927 ] }
7,189
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20Snapshot
abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; /...
//****************************************************************************************
LineComment
totalSupplyAt
function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots); return snapshotted ? value : totalSupply(); }
/** * @dev Retrieves the total supply at the time `snapshotId` was created. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 3026, 3265 ] }
7,190
NitrixToken
NitrixToken.sol
0xfc73d0e787593bc7dd48b1c40a39116b5dc13daa
Solidity
ERC20Snapshot
abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; /...
//****************************************************************************************
LineComment
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); if (from == address(0)) { // mint _updateAccountSnapshot(to); _updateTotalSupplySnapshot(); } else if (to == add...
// Update balance and/or total supply snapshots before the values are modified. This is implemented // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations.
LineComment
v0.8.4+commit.c7e474f2
MIT
ipfs://1c33956328f23e83382fedfda22be8b0abfb2d1a6b57312b7bb1489f77254728
{ "func_code_index": [ 3477, 4104 ] }
7,191
DWalletToken
DWalletToken.sol
0x33107312890cf911020351d24c15c622a7df608b
Solidity
SafeMath
contract SafeMath { //internals function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeSub(uint a, uint b) internal returns (uint) { assert(b <= a); return a - b; } function safeAdd(uint a, uint b...
safeMul
function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; }
//internals
LineComment
v0.4.16+commit.d7661dd9
bzzr://ae256c691336e9778873c7ded705206bd26c1d929258e675ee9686730bd4850f
{ "func_code_index": [ 38, 175 ] }
7,192
DWalletToken
DWalletToken.sol
0x33107312890cf911020351d24c15c622a7df608b
Solidity
DWalletToken
contract DWalletToken is SafeMath { /* Public variables of the token */ string public standard = 'ERC20'; string public name = 'D-WALLET TOKEN'; string public symbol = 'DWT'; uint8 public decimals = 0; uint256 public totalSupply; address public owner; /* ICO Start time 26 Augus...
function () payable { owner.transfer(msg.value);
// fallback function
LineComment
v0.4.16+commit.d7661dd9
bzzr://ae256c691336e9778873c7ded705206bd26c1d929258e675ee9686730bd4850f
{ "func_code_index": [ 1041, 1106 ] }
7,193
DWalletToken
DWalletToken.sol
0x33107312890cf911020351d24c15c622a7df608b
Solidity
DWalletToken
contract DWalletToken is SafeMath { /* Public variables of the token */ string public standard = 'ERC20'; string public name = 'D-WALLET TOKEN'; string public symbol = 'DWT'; uint8 public decimals = 0; uint256 public totalSupply; address public owner; /* ICO Start time 26 Augus...
DWalletToken
function DWalletToken() { owner = 0x1C46b45a7d6d28E27A755448e68c03248aefd18b; balanceOf[owner] = 10000000000; // Give the owner all initial tokens totalSupply = 10000000000; // Update initial total supply }
/* Initializes contract with initial supply tokens to the creator of the contract */
Comment
v0.4.16+commit.d7661dd9
bzzr://ae256c691336e9778873c7ded705206bd26c1d929258e675ee9686730bd4850f
{ "func_code_index": [ 1199, 1473 ] }
7,194
DWalletToken
DWalletToken.sol
0x33107312890cf911020351d24c15c622a7df608b
Solidity
DWalletToken
contract DWalletToken is SafeMath { /* Public variables of the token */ string public standard = 'ERC20'; string public name = 'D-WALLET TOKEN'; string public symbol = 'DWT'; uint8 public decimals = 0; uint256 public totalSupply; address public owner; /* ICO Start time 26 Augus...
transfer
function transfer(address _to, uint256 _value) returns (bool success){ require (now < startTime); //check if the crowdsale is already over require(msg.sender == owner && now < startTime + 1 years && safeSub(balanceOf[msg.sender],_value) < 1000000000); //prevent the owner of spending his share of tokens within...
/* function to send tokens to a given address */
Comment
v0.4.16+commit.d7661dd9
bzzr://ae256c691336e9778873c7ded705206bd26c1d929258e675ee9686730bd4850f
{ "func_code_index": [ 1530, 2265 ] }
7,195
DWalletToken
DWalletToken.sol
0x33107312890cf911020351d24c15c622a7df608b
Solidity
DWalletToken
contract DWalletToken is SafeMath { /* Public variables of the token */ string public standard = 'ERC20'; string public name = 'D-WALLET TOKEN'; string public symbol = 'DWT'; uint8 public decimals = 0; uint256 public totalSupply; address public owner; /* ICO Start time 26 Augus...
approve
function approve(address _spender, uint256 _value) returns (bool success) { allowance[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
/* Function to allow spender to spend token on owners behalf */
Comment
v0.4.16+commit.d7661dd9
bzzr://ae256c691336e9778873c7ded705206bd26c1d929258e675ee9686730bd4850f
{ "func_code_index": [ 2337, 2546 ] }
7,196
DWalletToken
DWalletToken.sol
0x33107312890cf911020351d24c15c622a7df608b
Solidity
DWalletToken
contract DWalletToken is SafeMath { /* Public variables of the token */ string public standard = 'ERC20'; string public name = 'D-WALLET TOKEN'; string public symbol = 'DWT'; uint8 public decimals = 0; uint256 public totalSupply; address public owner; /* ICO Start time 26 Augus...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { require (now < startTime && _from!=owner); //check if the crowdsale is already over require(_from == owner && now < startTime + 1 years && safeSub(balanceOf[_from],_value) < 1000000000); var _allowance = allowance...
/* Transferfrom function*/
Comment
v0.4.16+commit.d7661dd9
bzzr://ae256c691336e9778873c7ded705206bd26c1d929258e675ee9686730bd4850f
{ "func_code_index": [ 2583, 3261 ] }
7,197
DWalletToken
DWalletToken.sol
0x33107312890cf911020351d24c15c622a7df608b
Solidity
DWalletToken
contract DWalletToken is SafeMath { /* Public variables of the token */ string public standard = 'ERC20'; string public name = 'D-WALLET TOKEN'; string public symbol = 'DWT'; uint8 public decimals = 0; uint256 public totalSupply; address public owner; /* ICO Start time 26 Augus...
burn
function burn(){ //if tokens have not been burned already and the ICO ended if(!burned && now>endTime){ uint difference = safeSub(balanceOf[owner], 1024000000);//checked for overflow above balanceOf[owner] = 1024000000; totalSupply = safeSub(totalSupply, difference); burned = true; Burned(difference)...
/* To be called when ICO is closed, burns the remaining tokens but the D-WALLET FREEZE VAULT (1000000000) and the ones reserved * for the bounty program (24000000). * anybody may burn the tokens after ICO ended, but only once (in case the owner holds more tokens in the future). * this ensures that the owner wi...
Comment
v0.4.16+commit.d7661dd9
bzzr://ae256c691336e9778873c7ded705206bd26c1d929258e675ee9686730bd4850f
{ "func_code_index": [ 3643, 4012 ] }
7,198
ReferralCircle
ReferralCircle.sol
0x8e4428008900589869a8d38c69d7b905823de144
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; // Modifier to make a function callable only when the contract is not paused. modifier whenNotPaused() { require(!paused); _; } // Modifier to make a function callable on...
// Pausable contract which allows children to implement an emergency stop mechanism.
LineComment
pause
function pause() onlyOwner whenNotPaused public { paused = true; emit Pause(); }
// Сalled by the owner to pause, triggers stopped state
LineComment
v0.4.25+commit.59dbf8f1
bzzr://17103c3e2fcd054d9615118d0a639fe764b876757fc004b8606bd97656441eed
{ "func_code_index": [ 492, 600 ] }
7,199