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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NimbusPair | NimbusPair.sol | 0xdb4a372c113df57e8b15c9f67bc7c74bf887644e | Solidity | NimbusPair | contract NimbusPair is INimbusPair, NimbusERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant override MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public override factory;
a... | initialize | function initialize(address _token0, address _token1) external override {
require(msg.sender == factory, 'Nimbus: FORBIDDEN'); // sufficient check
token0 = _token0;
token1 = _token1;
}
| // called once by the factory at time of deployment | LineComment | v0.8.0+commit.c7dfd78e | None | ipfs://09efbdfdcf59ab0458bca530ac4494d67402d03a2b29e6e342b085575633b976 | {
"func_code_index": [
1726,
1947
]
} | 4,307 | ||
NimbusPair | NimbusPair.sol | 0xdb4a372c113df57e8b15c9f67bc7c74bf887644e | Solidity | NimbusPair | contract NimbusPair is INimbusPair, NimbusERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant override MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public override factory;
a... | _update | function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private {
require(balance0 <= (2**112 - 1) && balance1 <= (2**112 - 1), 'Nimbus: OVERFLOW'); // uint112(-1) = 2 ** 112 - 1
uint32 blockTimestamp = uint32(block.timestamp % 2**32);
uint32 timeElapsed = blockTimestamp - bl... | // update reserves and, on the first call per block, price accumulators | LineComment | v0.8.0+commit.c7dfd78e | None | ipfs://09efbdfdcf59ab0458bca530ac4494d67402d03a2b29e6e342b085575633b976 | {
"func_code_index": [
2027,
2921
]
} | 4,308 | ||
NimbusPair | NimbusPair.sol | 0xdb4a372c113df57e8b15c9f67bc7c74bf887644e | Solidity | NimbusPair | contract NimbusPair is INimbusPair, NimbusERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant override MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public override factory;
a... | _mintFee | function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {
address feeTo = INimbusFactory(factory).feeTo();
feeOn = feeTo != address(0);
uint _kLast = kLast; // gas savings
if (feeOn) {
if (_kLast != 0) {
uint rootK = Math.sqrt(uint(_reserve0).mul(_r... | // if fee is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k) | LineComment | v0.8.0+commit.c7dfd78e | None | ipfs://09efbdfdcf59ab0458bca530ac4494d67402d03a2b29e6e342b085575633b976 | {
"func_code_index": [
3006,
3845
]
} | 4,309 | ||
NimbusPair | NimbusPair.sol | 0xdb4a372c113df57e8b15c9f67bc7c74bf887644e | Solidity | NimbusPair | contract NimbusPair is INimbusPair, NimbusERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant override MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public override factory;
a... | mint | function mint(address to) external override lock returns (uint liquidity) {
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
uint balance0 = IERC20(token0).balanceOf(address(this));
uint balance1 = IERC20(token1).balanceOf(address(this));
uint amount0 = balance0.sub(_reserve0)... | // this low-level function should be called from a contract which performs important safety checks | LineComment | v0.8.0+commit.c7dfd78e | None | ipfs://09efbdfdcf59ab0458bca530ac4494d67402d03a2b29e6e342b085575633b976 | {
"func_code_index": [
3952,
5203
]
} | 4,310 | ||
NimbusPair | NimbusPair.sol | 0xdb4a372c113df57e8b15c9f67bc7c74bf887644e | Solidity | NimbusPair | contract NimbusPair is INimbusPair, NimbusERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant override MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public override factory;
a... | burn | function burn(address to) external override lock returns (uint amount0, uint amount1) {
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
address _token0 = token0; // gas savings
address _token1 = token1; // gas savings
... | // this low-level function should be called from a contract which performs important safety checks | LineComment | v0.8.0+commit.c7dfd78e | None | ipfs://09efbdfdcf59ab0458bca530ac4494d67402d03a2b29e6e342b085575633b976 | {
"func_code_index": [
5310,
6787
]
} | 4,311 | ||
NimbusPair | NimbusPair.sol | 0xdb4a372c113df57e8b15c9f67bc7c74bf887644e | Solidity | NimbusPair | contract NimbusPair is INimbusPair, NimbusERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant override MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public override factory;
a... | swap | function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external override lock {
require(amount0Out > 0 || amount1Out > 0, 'Nimbus: INSUFFICIENT_OUTPUT_AMOUNT');
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
require(amount0Out < _reserve0 && amount1Out <... | // this low-level function should be called from a contract which performs important safety checks | LineComment | v0.8.0+commit.c7dfd78e | None | ipfs://09efbdfdcf59ab0458bca530ac4494d67402d03a2b29e6e342b085575633b976 | {
"func_code_index": [
6894,
9549
]
} | 4,312 | ||
NimbusPair | NimbusPair.sol | 0xdb4a372c113df57e8b15c9f67bc7c74bf887644e | Solidity | NimbusPair | contract NimbusPair is INimbusPair, NimbusERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant override MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public override factory;
a... | skim | function skim(address to) external override lock {
address _token0 = token0; // gas savings
address _token1 = token1; // gas savings
_safeTransfer(_token0, to, IERC20(_token0).balanceOf(address(this)).sub(reserve0));
_safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)).sub(reserve1));... | // force balances to match reserves | LineComment | v0.8.0+commit.c7dfd78e | None | ipfs://09efbdfdcf59ab0458bca530ac4494d67402d03a2b29e6e342b085575633b976 | {
"func_code_index": [
9593,
9941
]
} | 4,313 | ||
NimbusPair | NimbusPair.sol | 0xdb4a372c113df57e8b15c9f67bc7c74bf887644e | Solidity | NimbusPair | contract NimbusPair is INimbusPair, NimbusERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant override MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public override factory;
a... | sync | function sync() external override lock {
_update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1);
}
| // force reserves to match balances | LineComment | v0.8.0+commit.c7dfd78e | None | ipfs://09efbdfdcf59ab0458bca530ac4494d67402d03a2b29e6e342b085575633b976 | {
"func_code_index": [
9985,
10157
]
} | 4,314 | ||
FraxLiquidityBridger_OPTI_Celer | contracts/Bridges/Optimism/FraxLiquidityBridger_OPTI_Celer.sol | 0x7f35dc487a5422d6946aad733c6018f163084ed0 | Solidity | FraxLiquidityBridger_OPTI_Celer | contract FraxLiquidityBridger_OPTI_Celer is FraxLiquidityBridger {
uint32 public max_slippage = 50000;
uint32 public l2_gas = 2000000;
constructor (
address _owner,
address _timelock_address,
address _amo_minter_address,
address[3] memory _bridge_addresses,
... | _bridgingLogic | function _bridgingLogic(uint256 token_type, address address_to_send_to, uint256 token_amount) internal override {
// [Optimism]
if (token_type == 0){
// L1 FRAX -> celrFRAX --(autoswap)-> canFRAX
// Celer Bridge
// Approve
ERC20(address(FRAX)).approve(bridge_addresses[token... | // Override with logic specific to this chain | LineComment | v0.8.10+commit.fc410830 | GNU GPLv2 | ipfs://29ea31bc9638a94f76663523d8540a204d180787020cef5d63ecfb3e70f5f875 | {
"func_code_index": [
896,
2636
]
} | 4,315 | ||
ERC721ConverterWithMCHExtension | localhost/contracts/lib/github.com/doublejumptokyo/mchplus-contracts-0.0.1/contracts/interfaces/IERC721TokenReceiver.sol | 0x9f90324b0da6adee99aebb467faf20278767d76a | Solidity | IERC721TokenReceiver | interface IERC721TokenReceiver {
/// @notice Handle the receipt of an NFT
/// @dev The ERC721 smart contract calls this function on the recipient
/// after a `transfer`. This function MAY throw to revert and reject the
/// transfer. Return of other than the magic value MUST result in the
/// ... | /// @dev Note: the ERC-165 identifier for this interface is 0x150b7a02. | NatSpecSingleLine | onERC721Received | function onERC721Received(
address _operator,
address _from,
uint256 _tokenId,
bytes calldata _data
)
external
returns(bytes4);
| /// @notice Handle the receipt of an NFT
/// @dev The ERC721 smart contract calls this function on the recipient
/// after a `transfer`. This function MAY throw to revert and reject the
/// transfer. Return of other than the magic value MUST result in the
/// transaction being reverted.
/// Note: the contract addre... | NatSpecSingleLine | v0.5.12+commit.7709ece9 | None | bzzr://926bccbe332c07417064aa5f59875af8d4cf1a589500f169577a89e811d8125a | {
"func_code_index": [
811,
1002
]
} | 4,316 |
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
mapping(address => bool) blockListed;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
... | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(
balances[msg.sender] >= _value
&& _value > 0
&& !blockListed[_to]
&& !blockListed[msg.sender]
);
// SafeMath.sub will throw if there is not enou... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
325,
889
]
} | 4,317 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
mapping(address => bool) blockListed;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
... | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
1105,
1225
]
} | 4,318 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer t... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(
_to != address(0)
&& balances[msg.sender] >= _value
&& balances[_from] >= _value
&& _value > 0
&& !blockListed[_to]
&& !blockListed[msg.sender]
);
uin... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
401,
1210
]
} | 4,319 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer t... | approve | function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* ... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
1853,
2064
]
} | 4,320 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer t... | allowance | function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
2395,
2544
]
} | 4,321 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | BurnableToken | contract BurnableToken is StandardToken {
event Burn(address indexed burner, uint256 value);
/**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/
function burn(uint256 _value) public {
require(_value > 0);
address bur... | burn | function burn(uint256 _value) public {
require(_value > 0);
address burner = msg.sender;
balances[burner] = balances[burner].sub(_value);
totalSupply = totalSupply.sub(_value);
emit Burn(burner, _value);
}
| /**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
225,
487
]
} | 4,322 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Ownable | contract Ownable {
address internal owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() public {
owner = msg.... | transferOwnership | function transferOwnership(address newOwner) onlyOwner public {
require(newOwner != address(0));
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
679,
876
]
} | 4,323 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | MintableToken | contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
/**
* @dev Function to mint tokens
* @param... | mint | function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
balances[_to] = balances[_to].add(_amount);
emit Mint(_to, _amount);
emit Transfer(msg.sender, _to, _amount);
return true;
}
| /**
* @dev Function to mint tokens
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
510,
768
]
} | 4,324 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | MintableToken | contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
/**
* @dev Function to mint tokens
* @param... | finishMinting | function finishMinting() onlyOwner public returns (bool) {
mintingFinished = true;
emit MintFinished();
return true;
}
| /**
* @dev Function to stop minting new tokens.
* @return True if the operation was successful.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
890,
1045
]
} | 4,325 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | PullPayment | contract PullPayment {
using SafeMath for uint256;
mapping(address => uint256) public payments;
uint256 public totalPayments;
/**
* @dev Called by the payer to store the sent amount as credit to be pulled.
* @param dest The destination address of the funds.
* @param amount The amo... | asyncSend | function asyncSend(address dest, uint256 amount) internal {
payments[dest] = payments[dest].add(amount);
totalPayments = totalPayments.add(amount);
}
| /**
* @dev Called by the payer to store the sent amount as credit to be pulled.
* @param dest The destination address of the funds.
* @param amount The amount to transfer.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
346,
523
]
} | 4,326 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | PullPayment | contract PullPayment {
using SafeMath for uint256;
mapping(address => uint256) public payments;
uint256 public totalPayments;
/**
* @dev Called by the payer to store the sent amount as credit to be pulled.
* @param dest The destination address of the funds.
* @param amount The amo... | withdrawPayments | function withdrawPayments() public {
address payee = msg.sender;
uint256 payment = payments[payee];
require(payment != 0);
require(this.balance >= payment);
totalPayments = totalPayments.sub(payment);
payments[payee] = 0;
assert(payee.send(payment));
}
| /**
* @dev withdraw accumulated balance, called by payee.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
602,
933
]
} | 4,327 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Mod... | pause | function pause() onlyOwner whenNotPaused public {
paused = true;
emit Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
555,
663
]
} | 4,328 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Mod... | unpause | function unpause() onlyOwner whenPaused public {
paused = false;
emit Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
751,
861
]
} | 4,329 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | createTokenContract | function createTokenContract() internal returns (MintableToken) {
return new MintableToken();
}
| /**
* function createTokenContract - Mintable Token Created
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
6279,
6393
]
} | 4,330 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | function () payable public {
buyTokens(msg.sender);
}
| /**
* function Fallback - Receives Ethers
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
6462,
6534
]
} | 4,331 | ||||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | privateSaleTokens | function privateSaleTokens(uint256 weiAmount, uint256 tokens) internal returns (uint256) {
require(privateSaleSupply > 0);
require(weiAmount <= privateSaleTarget);
tokens = SafeMath.add(tokens, weiAmount.mul(privateSaleBonus));
tokens = SafeMath.add(tokens, weiAmount.mul(rate));
require(pri... | /**
* function preSaleTokens - Calculate Tokens in PreSale
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
6620,
7157
]
} | 4,332 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | preSaleTokens | function preSaleTokens(uint256 weiAmount, uint256 tokens) internal returns (uint256) {
require(preSaleSupply > 0);
require(weiAmount <= preSaleTarget);
if (!upgradePreSaleSupply) {
preSaleSupply = SafeMath.add(preSaleSupply, privateSaleSupply);
preSaleTarget = SafeMath.add(preSaleTarg... | /**
* function preSaleTokens - Calculate Tokens in PreSale
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
7241,
7987
]
} | 4,333 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | preICOTokens | function preICOTokens(uint256 weiAmount, uint256 tokens) internal returns (uint256) {
require(preICOSupply > 0);
require(weiAmount <= preICOTarget);
if (!upgradePreICOSupply) {
preICOSupply = SafeMath.add(preICOSupply, preSaleSupply);
preICOTarget = SafeMath.add(preICOTa... | /**
* function preICOTokens - Calculate Tokens in PreICO
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
8075,
8828
]
} | 4,334 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | icoTokens | function icoTokens(uint256 weiAmount, uint256 tokens, uint256 accessTime) internal returns (uint256) {
require(icoSupply > 0);
if (!upgradeICOSupply) {
icoSupply = SafeMath.add(icoSupply,preICOSupply);
upgradeICOSupply = true;
}
if (accessTime <= weekOne) ... | /**
* function icoTokens - Calculate Tokens in ICO
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
8906,
9986
]
} | 4,335 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | buyTokens | function buyTokens(address beneficiary) whenNotPaused internal {
require(beneficiary != 0x0);
require(validPurchase());
uint256 accessTime = now;
uint256 tokens = 0;
uint256 weiAmount = msg.value;
require((weiAmount >= (100000000000000000)) && (weiAmount <= (20000000000000000000)));
... | /**
* function buyTokens - Collect Ethers and transfer tokens
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
10071,
11309
]
} | 4,336 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | forwardFunds | function forwardFunds() internal {
wallet.transfer(msg.value);
}
| /**
* function forwardFunds - Transfer funds to wallet
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
11387,
11470
]
} | 4,337 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | validPurchase | function validPurchase() internal view returns (bool) {
bool withinPeriod = now >= privateSaleStartTime && now <= ICOEndTime;
bool nonZeroPurchase = msg.value != 0;
return withinPeriod && nonZeroPurchase;
}
| /**
* function validPurchase - Checks the purchase is valid or not
* @return true - Purchase is withPeriod and nonZero
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
11617,
11860
]
} | 4,338 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | hasEnded | function hasEnded() public view returns (bool) {
return now > ICOEndTime;
}
| /**
* function hasEnded - Checks the ICO ends or not
* @return true - ICO Ends
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
11971,
12065
]
} | 4,339 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | unsoldToken | function unsoldToken() onlyOwner public {
require(hasEnded());
require(!checkUnsoldTokens);
checkUnsoldTokens = true;
bountySupply = SafeMath.add(bountySupply, publicSupply);
publicSupply = 0;
}
| /**
* function unsoldToken - Function used to transfer all
* unsold public tokens to reserve supply
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
12208,
12469
]
} | 4,340 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | Crowdsale | contract Crowdsale is Ownable, Pausable {
using SafeMath for uint256;
/**
* @MintableToken token - Token Object
* @address wallet - Wallet Address
* @uint8 rate - Tokens per Ether
* @uint256 weiRaised - Total funds raised in Ethers
*/
MintableToken internal token;
ad... | getTokenAddress | function getTokenAddress() onlyOwner view public returns (address) {
return token;
}
| /**
* function getTokenAddress - Get Token Address
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
12545,
12648
]
} | 4,341 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | CappedCrowdsale | contract CappedCrowdsale is Crowdsale {
using SafeMath for uint256;
uint256 public cap;
constructor(uint256 _cap) public {
require(_cap > 0);
cap = _cap;
}
// overriding Crowdsale#validPurchase to add extra cap logic
// @return true if investors can buy at the momen... | validPurchase | function validPurchase() internal view returns (bool) {
return super.validPurchase() && weiRaised.add(msg.value) <= cap;
}
| // overriding Crowdsale#validPurchase to add extra cap logic
// @return true if investors can buy at the moment | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
323,
464
]
} | 4,342 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | CappedCrowdsale | contract CappedCrowdsale is Crowdsale {
using SafeMath for uint256;
uint256 public cap;
constructor(uint256 _cap) public {
require(_cap > 0);
cap = _cap;
}
// overriding Crowdsale#validPurchase to add extra cap logic
// @return true if investors can buy at the momen... | hasEnded | function hasEnded() public view returns (bool) {
return super.hasEnded() || weiRaised >= cap;
}
| // overriding Crowdsale#hasEnded to add cap logic
// @return true if crowdsale event has ended | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
572,
686
]
} | 4,343 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | CrowdsaleFunctions | contract CrowdsaleFunctions is Crowdsale {
/**
* function bountyFunds - Transfer bounty tokens via AirDrop
* @param beneficiary address where owner wants to transfer tokens
* @param tokens value of token
*/
function bountyFunds(address[] beneficiary, uint256[] tokens) public onlyOwner {
... | bountyFunds | function bountyFunds(address[] beneficiary, uint256[] tokens) public onlyOwner {
for (uint256 i = 0; i < beneficiary.length; i++) {
tokens[i] = SafeMath.mul(tokens[i],1 ether);
require(beneficiary[i] != 0x0);
require(bountySupply >= tokens[i]);
bountySupply = ... | /**
* function bountyFunds - Transfer bounty tokens via AirDrop
* @param beneficiary address where owner wants to transfer tokens
* @param tokens value of token
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
227,
679
]
} | 4,344 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | CrowdsaleFunctions | contract CrowdsaleFunctions is Crowdsale {
/**
* function bountyFunds - Transfer bounty tokens via AirDrop
* @param beneficiary address where owner wants to transfer tokens
* @param tokens value of token
*/
function bountyFunds(address[] beneficiary, uint256[] tokens) public onlyOwner {
... | grantReservedToken | function grantReservedToken(address beneficiary, uint256 tokens) public onlyOwner {
require(beneficiary != 0x0);
require(reservedSupply > 0);
tokens = SafeMath.mul(tokens,1 ether);
require(reservedSupply >= tokens);
reservedSupply = SafeMath.sub(reservedSupply,tokens);
token.mint(benefic... | /**
* function grantReservedToken - Transfer advisor,team and founder tokens
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
780,
1150
]
} | 4,345 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | CrowdsaleFunctions | contract CrowdsaleFunctions is Crowdsale {
/**
* function bountyFunds - Transfer bounty tokens via AirDrop
* @param beneficiary address where owner wants to transfer tokens
* @param tokens value of token
*/
function bountyFunds(address[] beneficiary, uint256[] tokens) public onlyOwner {
... | transferToken | function transferToken(address beneficiary, uint256 tokens) onlyOwner public {
require(beneficiary != 0x0);
require(publicSupply > 0);
tokens = SafeMath.mul(tokens,1 ether);
require(publicSupply >= tokens);
publicSupply = SafeMath.sub(publicSupply,tokens);
token.mint(beneficiary,... | /**
*.function transferToken - Used to transfer tokens to investors who pays us other than Ethers
* @param beneficiary - Address where owner wants to transfer tokens
* @param tokens - Number of tokens
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
1368,
1733
]
} | 4,346 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | FinalizableCrowdsale | contract FinalizableCrowdsale is Crowdsale {
using SafeMath for uint256;
bool isFinalized = false;
event Finalized();
/**
* @dev Must be called after crowdsale ends, to do some extra finalization
* work. Calls the contract's finalization function.
*/
function finalize() onl... | finalize | function finalize() onlyOwner public {
require(!isFinalized);
require(hasEnded());
finalization();
emit Finalized();
isFinalized = true;
}
| /**
* @dev Must be called after crowdsale ends, to do some extra finalization
* work. Calls the contract's finalization function.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
293,
490
]
} | 4,347 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | FinalizableCrowdsale | contract FinalizableCrowdsale is Crowdsale {
using SafeMath for uint256;
bool isFinalized = false;
event Finalized();
/**
* @dev Must be called after crowdsale ends, to do some extra finalization
* work. Calls the contract's finalization function.
*/
function finalize() onl... | finalization | function finalization() internal view {
}
| /**
* @dev Can be overridden to add finalization logic. The overriding function
* should call super.finalization() to ensure the chain of finalization is
* executed entirely.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
696,
747
]
} | 4,348 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | RefundableCrowdsale | contract RefundableCrowdsale is FinalizableCrowdsale {
using SafeMath for uint256;
// minimum amount of funds to be raised in weis
uint256 public goal;
bool private _goalReached = false;
// refund vault used to hold funds while crowdsale is running
RefundVault private vault;
const... | forwardFunds | function forwardFunds() internal {
vault.deposit.value(msg.value)(msg.sender);
}
| // We're overriding the fund forwarding from Crowdsale.
// In addition to sending the funds, we want to call
// the RefundVault deposit function | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
615,
714
]
} | 4,349 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | RefundableCrowdsale | contract RefundableCrowdsale is FinalizableCrowdsale {
using SafeMath for uint256;
// minimum amount of funds to be raised in weis
uint256 public goal;
bool private _goalReached = false;
// refund vault used to hold funds while crowdsale is running
RefundVault private vault;
const... | claimRefund | function claimRefund() public {
require(isFinalized);
require(!goalReached());
vault.refund(msg.sender);
}
| // if crowdsale is unsuccessful, investors can claim refunds here | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
788,
933
]
} | 4,350 | |||
AutoCoinToken | AutoCoinToken.sol | 0x46e8b4890ff60aa2a37c5a4514cb38ee359f70b3 | Solidity | RefundableCrowdsale | contract RefundableCrowdsale is FinalizableCrowdsale {
using SafeMath for uint256;
// minimum amount of funds to be raised in weis
uint256 public goal;
bool private _goalReached = false;
// refund vault used to hold funds while crowdsale is running
RefundVault private vault;
const... | finalization | function finalization() internal view {
if (goalReached()) {
vault.close();
} else {
vault.enableRefunds();
}
super.finalization();
}
| // vault finalization task, called when owner calls finalize() | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://7d4c4302d0a26cf51a0d8b47208678631c851feb273e8874cdd6c3106023182c | {
"func_code_index": [
1004,
1209
]
} | 4,351 | |||
DropPresaleShop721 | contracts/drops/DropPresaleShop721.sol | 0xe182af6be923b29f6a53855d5571fdd96b21d93a | Solidity | DropPresaleShop721 | contract DropPresaleShop721 is
Ownable, ReentrancyGuard
{
using SafeERC20 for IERC20;
/// The address of the ERC-721 item being sold.
address public immutable collection;
/// The time when the public sale begins.
uint256 public immutable startTime;
/// The time when the public sale ends.
... | /**
@title A contract for selling NFTs via a merkle-based whitelist presale with
conversion into a public sale.
@author Tim Clancy
@author Qazawat Zirak
@author Rostislav Khlebnikov
@author Nikita Elunin
@author 0xthrpw
This contract is a modified version of SuperFarm mint shops optimized for the
s... | NatSpecMultiLine | sellPublic | function sellPublic (
uint256 _amount
) private {
uint256 totalCharge = price * _amount;
// Reject the purchase if the caller is underpaying.
if (msg.value < totalCharge) { revert CannotUnderpayForMint(); }
// Refund the caller's excess payment if they overpaid.
if (msg.value > totalCharge) {
... | /**
A private helper function to sell an item to a public sale participant. This
selling function refunds any overpayment to the user; refunding overpayment
is expected to be a common situation given the price decay in the Dutch
auction.
@param _amount The number of items that the caller would like to purc... | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
5845,
6372
]
} | 4,352 | ||
DropPresaleShop721 | contracts/drops/DropPresaleShop721.sol | 0xe182af6be923b29f6a53855d5571fdd96b21d93a | Solidity | DropPresaleShop721 | contract DropPresaleShop721 is
Ownable, ReentrancyGuard
{
using SafeERC20 for IERC20;
/// The address of the ERC-721 item being sold.
address public immutable collection;
/// The time when the public sale begins.
uint256 public immutable startTime;
/// The time when the public sale ends.
... | /**
@title A contract for selling NFTs via a merkle-based whitelist presale with
conversion into a public sale.
@author Tim Clancy
@author Qazawat Zirak
@author Rostislav Khlebnikov
@author Nikita Elunin
@author 0xthrpw
This contract is a modified version of SuperFarm mint shops optimized for the
s... | NatSpecMultiLine | getRootHash | function getRootHash (
uint256 _index,
bytes32 _node,
bytes32[] calldata _merkleProof
) private pure returns (bytes32) {
uint256 path = _index;
for (uint256 i = 0; i < _merkleProof.length; i++) {
if ((path & 0x01) == 1) {
_node = keccak256(abi.encodePacked(_merkleProof[i], _node));
} el... | /**
Calculate a root hash from given parameters.
@param _index The index of the hashed node from the list.
@param _node The index of the hashed node at that index.
@param _merkleProof An array of one required merkle hash per level.
@return The root hash from given parameters.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
6690,
7163
]
} | 4,353 | ||
DropPresaleShop721 | contracts/drops/DropPresaleShop721.sol | 0xe182af6be923b29f6a53855d5571fdd96b21d93a | Solidity | DropPresaleShop721 | contract DropPresaleShop721 is
Ownable, ReentrancyGuard
{
using SafeERC20 for IERC20;
/// The address of the ERC-721 item being sold.
address public immutable collection;
/// The time when the public sale begins.
uint256 public immutable startTime;
/// The time when the public sale ends.
... | /**
@title A contract for selling NFTs via a merkle-based whitelist presale with
conversion into a public sale.
@author Tim Clancy
@author Qazawat Zirak
@author Rostislav Khlebnikov
@author Nikita Elunin
@author 0xthrpw
This contract is a modified version of SuperFarm mint shops optimized for the
s... | NatSpecMultiLine | verify | function verify (
uint256 _accesslistId,
uint256 _index,
bytes32 _node,
bytes32[] calldata _merkleProof
) private view returns (bool) {
if (whitelists[_accesslistId].root == 0) {
return false;
} else if (block.timestamp < whitelists[_accesslistId].startTime) {
return false;
} else if (bl... | /**
A helper function to verify an access against a targeted on-chain merkle
root.
@param _accesslistId The id of the accesslist containing the merkleRoot.
@param _index The index of the hashed node from off-chain list.
@param _node The actual hashed node which needs to be verified.
@param _merkleProof T... | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
7658,
8233
]
} | 4,354 | ||
DropPresaleShop721 | contracts/drops/DropPresaleShop721.sol | 0xe182af6be923b29f6a53855d5571fdd96b21d93a | Solidity | DropPresaleShop721 | contract DropPresaleShop721 is
Ownable, ReentrancyGuard
{
using SafeERC20 for IERC20;
/// The address of the ERC-721 item being sold.
address public immutable collection;
/// The time when the public sale begins.
uint256 public immutable startTime;
/// The time when the public sale ends.
... | /**
@title A contract for selling NFTs via a merkle-based whitelist presale with
conversion into a public sale.
@author Tim Clancy
@author Qazawat Zirak
@author Rostislav Khlebnikov
@author Nikita Elunin
@author 0xthrpw
This contract is a modified version of SuperFarm mint shops optimized for the
s... | NatSpecMultiLine | sellWhitelist | function sellWhitelist (
uint256 _amount,
WhitelistProof calldata _whitelist
) private {
// Verify that the caller is on the merkle whitelist.
bool verified = verify(
_whitelist.id,
_whitelist.index,
keccak256(
abi.encodePacked(
_whitelist.index,
_msgSender(),
... | /**
A private helper function to sell an item to a whitelist presale
participant.
@param _amount The number of items that the caller would like to purchase.
@param _whitelist A whitelist proof for users to submit with their claim to
verify that they are in fact on the whitelist.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
8554,
9934
]
} | 4,355 | ||
DropPresaleShop721 | contracts/drops/DropPresaleShop721.sol | 0xe182af6be923b29f6a53855d5571fdd96b21d93a | Solidity | DropPresaleShop721 | contract DropPresaleShop721 is
Ownable, ReentrancyGuard
{
using SafeERC20 for IERC20;
/// The address of the ERC-721 item being sold.
address public immutable collection;
/// The time when the public sale begins.
uint256 public immutable startTime;
/// The time when the public sale ends.
... | /**
@title A contract for selling NFTs via a merkle-based whitelist presale with
conversion into a public sale.
@author Tim Clancy
@author Qazawat Zirak
@author Rostislav Khlebnikov
@author Nikita Elunin
@author 0xthrpw
This contract is a modified version of SuperFarm mint shops optimized for the
s... | NatSpecMultiLine | mint | function mint (
uint256 _amount,
WhitelistProof calldata _whitelist
) external payable nonReentrant {
// Reject purchases for no items.
if (_amount < 1) { revert CannotBuyZeroItems(); }
/*
Reject purchases that happen after the end of the public sale. Do note
that this means that whitelist... | /**
Allow a caller to purchase an item.
@param _amount The amount of items that the caller would like to purchase.
@param _whitelist The caller-subumitted whitelist proof to check if they
belong on a presale whitelist.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
10189,
12109
]
} | 4,356 | ||
DropPresaleShop721 | contracts/drops/DropPresaleShop721.sol | 0xe182af6be923b29f6a53855d5571fdd96b21d93a | Solidity | DropPresaleShop721 | contract DropPresaleShop721 is
Ownable, ReentrancyGuard
{
using SafeERC20 for IERC20;
/// The address of the ERC-721 item being sold.
address public immutable collection;
/// The time when the public sale begins.
uint256 public immutable startTime;
/// The time when the public sale ends.
... | /**
@title A contract for selling NFTs via a merkle-based whitelist presale with
conversion into a public sale.
@author Tim Clancy
@author Qazawat Zirak
@author Rostislav Khlebnikov
@author Nikita Elunin
@author 0xthrpw
This contract is a modified version of SuperFarm mint shops optimized for the
s... | NatSpecMultiLine | sweep | function sweep (
address _token,
address _destination,
uint256 _amount
) external onlyOwner nonReentrant {
// A zero address means we should attempt to sweep Ether.
if (_token == address(0)) {
(bool success, ) = payable(_destination).call{ value: _amount }("");
if (!success) { revert Sweepin... | /**
Allow the owner to sweep either Ether or a particular ERC-20 token from the
contract and send it to another address. This allows the owner of the shop
to withdraw their funds after the sale is completed.
@param _token The token to sweep the balance from; if a zero address is sent
then the contract's ba... | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
12603,
13108
]
} | 4,357 | ||
DELTAToken | contracts/v076/Token/Handlers/post_first_rebasing/OVLTransferHandler.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | OVLTransferHandler | contract OVLTransferHandler is OVLBase, OVLVestingCalculator, IOVLTransferHandler {
using SafeMath for uint256;
using Address for address;
address public immutable UNI_DELTA_WETH_PAIR;
address public immutable DEEP_FARMING_VAULT;
event Transfer(address indexed from, address indexed to, uint256 val... | _transferTokensToRecipient | function _transferTokensToRecipient(UserInformation storage recipientInfo, bool isSenderWhitelisted, address recipient, uint256 amount) internal {
// If the sender can send fully or this recipent is whitelisted to not get vesting we just add it to matured balance
(bool noVestingWhitelisted, uint256 maturedBalan... | // function _transferTokensToRecipient(address recipient, UserInformation memory senderInfo, UserInformation memory recipientInfo, uint256 amount) internal { | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
6967,
10616
]
} | 4,358 | ||||
DELTAToken | contracts/v076/Token/Handlers/post_first_rebasing/OVLTransferHandler.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | OVLTransferHandler | contract OVLTransferHandler is OVLBase, OVLVestingCalculator, IOVLTransferHandler {
using SafeMath for uint256;
using Address for address;
address public immutable UNI_DELTA_WETH_PAIR;
address public immutable DEEP_FARMING_VAULT;
event Transfer(address indexed from, address indexed to, uint256 val... | handleTransfer | function handleTransfer(address sender, address recipient, uint256 amount) external override {
require(sender != recipient, "DELTAToken: Can not send DELTA to yourself");
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to... | // This function does not need authentication, because this is EXCLUSIVELY
// ever meant to be called using delegatecall() from the main token.
// The memory it modifies in DELTAToken is what effects user balances. | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
12096,
14071
]
} | 4,359 | ||||
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | ERC20 | contract ERC20 {
uint256 public totalSupply;
// ERC223 and ERC20 functions and events
function totalSupply() constant public returns (uint256 _supply);
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool ok);
... | /// ERC20 contract interface With ERC23/ERC223 Extensions | NatSpecSingleLine | totalSupply | function totalSupply() constant public returns (uint256 _supply);
| // ERC223 and ERC20 functions and events | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
99,
169
]
} | 4,360 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | TokenRK70Z | function TokenRK70Z() public {
// Security check in case EVM has future flaw or exploit to call constructor multiple times
require(tokenCreated == false);
owner = msg.sender;
me = "RK70Z";
symbol = "RK70Z";
decimals = 5;
totalSupply = 500000000 * 10 ** uint256(decimals);
... | // Initialize
// Constructor is called only once and can not be called again (Ethereum Solidity specification) | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
565,
1216
]
} | 4,361 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | DateCreateToken | function DateCreateToken() public view returns (uint256 _DateCreateToken) {
turn DateCreateToken;
| // Function to create date token. | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
1344,
1455
]
} | 4,362 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | name | function name() view public returns (string _name) {
turn name;
| // Function to access name of token . | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
1505,
1582
]
} | 4,363 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | symbol | function symbol() public view returns (string _symbol) {
turn symbol;
}
| // Function to access symbol of token . | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
1631,
1717
]
} | 4,364 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | decimals | function decimals() public view returns (uint8 _decimals) {
turn decimals;
}
| // Function to access decimals of token . | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
1767,
1859
]
} | 4,365 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | totalSupply | function totalSupply() public view returns (uint256 _totalSupply) {
turn totalSupply;
| // Function to access total supply of tokens . | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
1914,
2013
]
} | 4,366 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | balanceOf | function balanceOf(address _owner) constant public returns (uint256 balance) {
return balances[_owner];
}
| // Get balance of the address provided | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
2058,
2182
]
} | 4,367 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | SmartContract_Allowed | function SmartContract_Allowed(address _target) constant public returns (bool _sc_address_allowed) {
return SmartContract_Allowed[_target];
}
| // Get Smart Contract of the address approved | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
2233,
2393
]
} | 4,368 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | transfer | function transfer(address _to, uint256 _value) public returns (bool success) {
// Only allow transfer once Locked
require(!SC_locked);
quire(!frozenAccount[msg.sender]);
quire(!frozenAccount[_to]);
//standard function transfer similar to ERC20 transfer with no _data
if (isContract(_to)) {
... | // Added due to backwards compatibility reasons . | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
2451,
2944
]
} | 4,369 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | isContract | function isContract(address _addr) private view returns (bool is_contract) {
uint length;
assembly {
//retrieve the size of the code on target address, this needs assembly
length := extcodesize(_addr)
}
return (length > 0);
}
| // assemble the given address bytecode. If bytecode exists then the _addr is a contract. | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
3038,
3335
]
} | 4,370 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | transferToAddress | function transferToAddress(address _to, uint256 _value) private returns (bool success) {
if (balanceOf(msg.sender) < _value) revert();
balances[msg.sender] = safeSub(balanceOf(msg.sender), _value);
balances[_to] = safeAdd(balanceOf(_to), _value);
emit Transfer(msg.sender, _to, _value);
return t... | // function that is called when transaction target is an address | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
3408,
3764
]
} | 4,371 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | transferToContract | function transferToContract(address _to, uint256 _value) private returns (bool success) {
require(SmartContract_Allowed[_to]);
(balanceOf(msg.sender) < _value) revert();
balances[msg.sender] = safeSub(balanceOf(msg.sender), _value);
balances[_to] = safeAdd(balanceOf(_to), _value);
emit Transfe... | // function that is called when transaction target is a contract | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
3837,
4238
]
} | 4,372 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | function () public payable {
(msg.sender != owner) { revert(); }
}
| // Function to activate Ether reception in the smart Contract address only by the Owner | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
4331,
4413
]
} | 4,373 | ||
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | OWN_contractlocked | function OWN_contractlocked(bool _locked) onlyOwner public {
SC_locked = _locked;
}
| // Creator/Owner can Locked/Unlock smart contract | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
4468,
4570
]
} | 4,374 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | OWN_burnToken | function OWN_burnToken(address _from, uint256 _value) onlyOwner public returns (bool success) {
require(balances[_from] >= _value);
balances[_from] -= _value;
totalSupply -= _value;
emit Burn(_from, _value);
return true;
}
| // Destroy tokens amount from another account (Caution!!! the operation is destructive and you can not go back) | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
4688,
4966
]
} | 4,375 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | OWN_mintToken | function OWN_mintToken(uint256 mintedAmount) onlyOwner public {
//aggiungo i decimali al valore che imposto
balances[owner] += mintedAmount;
totalSupply += mintedAmount;
emit Transfer(0, this, mintedAmount);
emit Transfer(this, owner, mintedAmount);
}
| //Generate other tokens after starting the program | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
5023,
5329
]
} | 4,376 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | OWN_freezeAddress | function OWN_freezeAddress(address target, bool freeze) onlyOwner public {
frozenAccount[target] = freeze;
emit FrozenFunds(target, freeze);
}
| // Block / Unlock address handling tokens | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
5377,
5547
]
} | 4,377 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | OWN_kill | function OWN_kill() onlyOwner public {
lfdestruct(owner);
}
| // Function to destroy the smart contract | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
5596,
5672
]
} | 4,378 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | OWN_transferOwnership | function OWN_transferOwnership(address newOwner) onlyOwner public {
// function allowed only if the address is not smart contract
if (!isContract(newOwner)) {
owner = newOwner;
}
}
| // Function Change Owner | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
5703,
5916
]
} | 4,379 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | OWN_SmartContract_Allowed | function OWN_SmartContract_Allowed(address target, bool _allowed) onlyOwner public {
function allowed only for smart contract
if (isContract(target)) {
martContract_Allowed[target] = _allowed;
}
| // Smart Contract approved | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
5949,
6178
]
} | 4,380 | |
TokenRK70Z | TokenRK70Z.sol | 0x13b849156c1e6d0ead6605562ed9268b9ffd1736 | Solidity | TokenRK70Z | contract TokenRK70Z is ERC20, SafeMath {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
bool public SC_locked = false;
bool public tokenCreated = false;
uint public DateCreateToken;
mapping(address => uint256... | /// RK70Z is an ERC20 token with ERC223 Extensions | NatSpecSingleLine | OWN_DistributeTokenAdmin_Multi | function OWN_DistributeTokenAdmin_Multi(address[] addresses, uint256 _value, bool freeze) onlyOwner public {
for (uint i = 0; i < addresses.length; i++) {
//Block / Unlock address handling tokens
frozenAccount[addresses[i]] = freeze;
emit FrozenFunds(addresses[i], freeze);
if (isContract(addresses[i]... | // Distribution Token from Admin | LineComment | v0.4.24+commit.e67f0147 | bzzr://4482afc8398e59eedfbfb32eae8b0d404bd8f3edbcf9529a021efee3836c77dd | {
"func_code_index": [
6216,
6673
]
} | 4,381 | |
DELTAToken | contracts/v076/Token/DELTAToken.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | DELTAToken | contract DELTAToken is OVLBase, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address public governance;
address public tokenTransferHandler;
address public rebasingLPAddress;
address public tokenBalanceHandler;
address public pendingGovernance;
// ERC-20 Var... | // Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer. | LineComment | performLiquidityRebasing | function performLiquidityRebasing() public {
onlyRLP(); // guarantees this call can be only done by the rebasing lp contract
liquidityRebasingPermitted = true;
IRebasingLiquidityToken(rebasingLPAddress).tokenCaller();
liquidityRebasingPermitted = false;
// Rebasing will adjust the lp tokens balance ... | // Allows for liquidity rebasing atomically
// Does a callback to rlp and closes right after | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
7172,
7688
]
} | 4,382 | ||
DELTAToken | contracts/v076/Token/DELTAToken.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | DELTAToken | contract DELTAToken is OVLBase, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address public governance;
address public tokenTransferHandler;
address public rebasingLPAddress;
address public tokenBalanceHandler;
address public pendingGovernance;
// ERC-20 Var... | // Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer. | LineComment | adjustBalanceOfNoVestingAccount | function adjustBalanceOfNoVestingAccount(address account, uint256 amount, bool isAddition) public {
onlyRLP(); // guarantees this call can be only done by the rebasing lp contract
UserInformation storage ui = _userInformation[account];
require(ui.noVestingWhitelisted, "Account is a vesting address");
i... | // Allows the rebasing LP to change balance of an account
// Nessesary for fee efficiency of the rebasing process | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
7813,
8396
]
} | 4,383 | ||
DELTAToken | contracts/v076/Token/DELTAToken.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | DELTAToken | contract DELTAToken is OVLBase, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address public governance;
address public tokenTransferHandler;
address public rebasingLPAddress;
address public tokenBalanceHandler;
address public pendingGovernance;
// ERC-20 Var... | // Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer. | LineComment | onlyRLP | function onlyRLP() internal view {
require(msg.sender == rebasingLPAddress, "DELTAToken: Only Rebasing LP contract can call this function");
}
| // allow only RLP to call functions that call this function | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
8462,
8620
]
} | 4,384 | ||
DELTAToken | contracts/v076/Token/DELTAToken.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | DELTAToken | contract DELTAToken is OVLBase, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address public governance;
address public tokenTransferHandler;
address public rebasingLPAddress;
address public tokenBalanceHandler;
address public pendingGovernance;
// ERC-20 Var... | // Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer. | LineComment | setDistributor | function setDistributor(address _newDistributor) public isGovernance() {
distributor = _newDistributor;
setWhitelists(_newDistributor, true, true, true);
}
| /// @notice sets a new distributor potentially with new distribution rules | NatSpecSingleLine | v0.7.6+commit.7338295f | {
"func_code_index": [
10035,
10214
]
} | 4,385 | ||
DELTAToken | contracts/v076/Token/DELTAToken.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | DELTAToken | contract DELTAToken is OVLBase, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address public governance;
address public tokenTransferHandler;
address public rebasingLPAddress;
address public tokenBalanceHandler;
address public pendingGovernance;
// ERC-20 Var... | // Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer. | LineComment | setPendingGovernance | function setPendingGovernance(address _newGov) public isGovernance() {
pendingGovernance = _newGov;
}
| /// @notice initializes the change of governance | NatSpecSingleLine | v0.7.6+commit.7338295f | {
"func_code_index": [
10269,
10386
]
} | 4,386 | ||
DELTAToken | contracts/v076/Token/DELTAToken.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | DELTAToken | contract DELTAToken is OVLBase, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address public governance;
address public tokenTransferHandler;
address public rebasingLPAddress;
address public tokenBalanceHandler;
address public pendingGovernance;
// ERC-20 Var... | // Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer. | LineComment | setBalanceCalculator | function setBalanceCalculator(address _newBalanceCalculator) public isGovernance() {
tokenBalanceHandler = _newBalanceCalculator;
}
| /// @notice sets the function that calculates returns from balanceOF | NatSpecSingleLine | v0.7.6+commit.7338295f | {
"func_code_index": [
10679,
10826
]
} | 4,387 | ||
DELTAToken | contracts/v076/Token/DELTAToken.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | DELTAToken | contract DELTAToken is OVLBase, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address public governance;
address public tokenTransferHandler;
address public rebasingLPAddress;
address public tokenBalanceHandler;
address public pendingGovernance;
// ERC-20 Var... | // Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer. | LineComment | setTokenTransferHandler | function setTokenTransferHandler(address _newHandler) public isGovernance() {
tokenTransferHandler = _newHandler;
}
| /// @notice sets a contract with new logic for transfer handlers (contract upgrade) | NatSpecSingleLine | v0.7.6+commit.7338295f | {
"func_code_index": [
10916,
11047
]
} | 4,388 | ||
DELTAToken | contracts/v076/Token/DELTAToken.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | DELTAToken | contract DELTAToken is OVLBase, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address public governance;
address public tokenTransferHandler;
address public rebasingLPAddress;
address public tokenBalanceHandler;
address public pendingGovernance;
// ERC-20 Var... | // Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer. | LineComment | getUserInfo | function getUserInfo(address user) external view returns (UserInformationLite memory) {
UserInformation storage info = _userInformation[user];
return UserInformationLite(info.maturedBalance, info.maxBalance, info.mostMatureTxIndex, info.lastInTxIndex);
}
| // Optimization for Balance Handler | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
12287,
12565
]
} | 4,389 | ||
DELTAToken | contracts/v076/Token/DELTAToken.sol | 0x9ea3b5b4ec044b70375236a281986106457b20ef | Solidity | DELTAToken | contract DELTAToken is OVLBase, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
address public governance;
address public tokenTransferHandler;
address public rebasingLPAddress;
address public tokenBalanceHandler;
address public pendingGovernance;
// ERC-20 Var... | // Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer. | LineComment | getTransactionDetail | function getTransactionDetail(VestingTransaction memory _tx) public view returns (VestingTransactionDetailed memory dtx) {
return IOVLVestingCalculator(tokenBalanceHandler).getTransactionDetails(_tx, block.timestamp);
}
| // Remaining for js tests only before refactor | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
12834,
13068
]
} | 4,390 | ||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | Crowdsale | function Crowdsale(uint256 _rate, address _wallet, ERC20 _token) public {
require(_rate > 0);
require(_wallet != address(0));
require(_token != address(0));
rate = _rate;
wallet = _wallet;
token = _token;
}
| /**
* @param _rate Number of token units a buyer gets per wei
* @param _wallet Address where collected funds will be forwarded to
* @param _token Address of the token being sold
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
853,
1097
]
} | 4,391 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | function () external payable {
buyTokens(msg.sender);
}
| /**
* @dev fallback function ***DO NOT OVERRIDE***
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
1298,
1364
]
} | 4,392 | ||||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | buyTokens | function buyTokens(address _beneficiary) public payable {
uint256 weiAmount = msg.value;
_preValidatePurchase(_beneficiary, weiAmount);
// calculate token amount to be created
uint256 tokens = _getTokenAmount(weiAmount);
// update state
weiRaised = weiRaised.add(weiAmount);
_processPurchase... | /**
* @dev low level token purchase ***DO NOT OVERRIDE***
* @param _beneficiary Address performing the token purchase
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
1503,
2106
]
} | 4,393 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | _preValidatePurchase | function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal {
require(_beneficiary != address(0));
require(_weiAmount != 0);
}
| /**
* @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met. Use super to concatenate validations.
* @param _beneficiary Address performing the token purchase
* @param _weiAmount Value in wei involved in the purchase
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
2538,
2701
]
} | 4,394 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | _postValidatePurchase | function _postValidatePurchase(address _beneficiary, uint256 _weiAmount) internal {
// optional override
}
| /**
* @dev Validation of an executed purchase. Observe state and use revert statements to undo rollback when valid conditions are not met.
* @param _beneficiary Address performing the token purchase
* @param _weiAmount Value in wei involved in the purchase
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
2983,
3100
]
} | 4,395 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | _deliverTokens | function _deliverTokens(address _beneficiary, uint256 _tokenAmount) internal {
token.transfer(_beneficiary, _tokenAmount);
}
| /**
* @dev Source of tokens. Override this method to modify the way in which the crowdsale ultimately gets and sends its tokens.
* @param _beneficiary Address performing the token purchase
* @param _tokenAmount Number of tokens to be emitted
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
3367,
3502
]
} | 4,396 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | _processPurchase | function _processPurchase(address _beneficiary, uint256 _tokenAmount) internal {
_deliverTokens(_beneficiary, _tokenAmount);
}
| /**
* @dev Executed when a purchase has been validated and is ready to be executed. Not necessarily emits/sends tokens.
* @param _beneficiary Address receiving the tokens
* @param _tokenAmount Number of tokens to be purchased
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
3753,
3890
]
} | 4,397 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | _updatePurchasingState | function _updatePurchasingState(address _beneficiary, uint256 _weiAmount) internal {
// optional override
}
| /**
* @dev Override for extensions that require an internal state to check for validity (current user contributions, etc.)
* @param _beneficiary Address receiving the tokens
* @param _weiAmount Value in wei involved in the purchase
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
4147,
4265
]
} | 4,398 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | _getTokenAmount | function _getTokenAmount(uint256 _weiAmount) internal view returns (uint256) {
return _weiAmount.mul(rate);
}
| /**
* @dev Override to extend the way in which ether is converted to tokens.
* @param _weiAmount Value in wei to be converted into tokens
* @return Number of tokens that can be purchased with the specified _weiAmount
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
4507,
4627
]
} | 4,399 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
uint256 public rate;
// Amount of wei raised
uint256 public weiRaised;
/**
* E... | _forwardFunds | function _forwardFunds() internal {
wallet.transfer(msg.value);
}
| /**
* @dev Determines how ETH is stored/forwarded on purchases.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
4708,
4784
]
} | 4,400 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | TimedCrowdsale | contract TimedCrowdsale is Crowdsale {
using SafeMath for uint256;
uint256 public openingTime;
uint256 public closingTime;
/**
* @dev Reverts if not in crowdsale time range.
*/
modifier onlyWhileOpen {
// solium-disable-next-line security/no-block-members
require(block.timestamp >= ... | TimedCrowdsale | function TimedCrowdsale(uint256 _openingTime, uint256 _closingTime) public {
// solium-disable-next-line security/no-block-members
require(_openingTime >= block.timestamp);
require(_closingTime >= _openingTime);
openingTime = _openingTime;
closingTime = _closingTime;
}
| /**
* @dev Constructor, takes crowdsale opening and closing times.
* @param _openingTime Crowdsale opening time
* @param _closingTime Crowdsale closing time
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
563,
865
]
} | 4,401 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | TimedCrowdsale | contract TimedCrowdsale is Crowdsale {
using SafeMath for uint256;
uint256 public openingTime;
uint256 public closingTime;
/**
* @dev Reverts if not in crowdsale time range.
*/
modifier onlyWhileOpen {
// solium-disable-next-line security/no-block-members
require(block.timestamp >= ... | hasClosed | function hasClosed() public view returns (bool) {
// solium-disable-next-line security/no-block-members
return block.timestamp > closingTime;
}
| /**
* @dev Checks whether the period in which the crowdsale is open has already elapsed.
* @return Whether crowdsale period has elapsed
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
1022,
1181
]
} | 4,402 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | TimedCrowdsale | contract TimedCrowdsale is Crowdsale {
using SafeMath for uint256;
uint256 public openingTime;
uint256 public closingTime;
/**
* @dev Reverts if not in crowdsale time range.
*/
modifier onlyWhileOpen {
// solium-disable-next-line security/no-block-members
require(block.timestamp >= ... | _preValidatePurchase | function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal onlyWhileOpen {
super._preValidatePurchase(_beneficiary, _weiAmount);
}
| /**
* @dev Extend parent behavior requiring to be within contributing period
* @param _beneficiary Token purchaser
* @param _weiAmount Amount of wei contributed
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
1367,
1530
]
} | 4,403 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
261,
321
]
} | 4,404 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
640,
821
]
} | 4,405 | |||
MonoretoPreIco | MonoretoPreIco.sol | 0x94dec5b089cd891ebe84f66f5ed8ab105895faab | Solidity | RefundVault | contract RefundVault is Ownable {
using SafeMath for uint256;
enum State { Active, Refunding, Closed }
mapping (address => uint256) public deposited;
address public wallet;
State public state;
event Closed();
event RefundsEnabled();
event Refunded(address indexed beneficiary, uint256 weiAm... | RefundVault | function RefundVault(address _wallet) public {
require(_wallet != address(0));
wallet = _wallet;
state = State.Active;
}
| /**
* @param _wallet Vault address
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://16a3efb0ae5cc12a7443d9bb205cfb230a7333bdd659240e28a91243f0a44a74 | {
"func_code_index": [
379,
520
]
} | 4,406 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.