function
string
label
int64
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract Kryptos { bool public transferactive; bool public shareactive; bool public coinsaleactive; string public name; string public symbol; uint256 public buyPrice; uint8 public decimals = 4; uint256 public totalSupply; address public owner; address public reserve; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint256 value); event Burn(address indexed from, uint256 value); function Kryptos( uint256 initialSupply, string tokenName, string tokenSymbol, address tokenowner, address tokenreserve, uint256 tokenbuyPrice, bool tokentransferactive, bool tokenshareactive, bool tokencoinsaleactive ) public { totalSupply = initialSupply * 10 ** uint256(decimals); balanceOf[msg.sender] = totalSupply; name = tokenName; symbol = tokenSymbol; owner = tokenowner; reserve = tokenreserve; buyPrice = tokenbuyPrice; transferactive = tokentransferactive; shareactive = tokenshareactive; coinsaleactive = tokencoinsaleactive; } function _transfer(address _from, address _to, uint _value) internal { require(_to != 0x0); require(balanceOf[_from] >= _value); require(balanceOf[_to] + _value > balanceOf[_to]); uint previousBalances = balanceOf[_from] + balanceOf[_to]; balanceOf[_from] -= _value; balanceOf[_to] += _value; Transfer(_from, _to, _value); assert(balanceOf[_from] + balanceOf[_to] == previousBalances); } function setOwner(uint256 newBuyPrice) public { if (msg.sender == owner) {buyPrice = newBuyPrice;} } function setTransferactive(bool newdata) public { if (msg.sender == owner) {transferactive = newdata;} } function setShareactive(bool newdata) public { if (msg.sender == owner) {shareactive = newdata;} } function setCoinsaleactive(bool newdata) public { if (msg.sender == owner) {coinsaleactive = newdata;} } function setPrices(uint256 newBuyPrice) public { if (msg.sender == owner) {buyPrice = newBuyPrice;} } function () payable public { uint amount = msg.value * buyPrice; if (coinsaleactive){_transfer(reserve, msg.sender, amount);} } function ShareDATA(string SMS) public { bytes memory string_rep = bytes(SMS); if (shareactive){_transfer(msg.sender, reserve, string_rep.length * 2);} } function transfer(address _to, uint256 _value) public { if (transferactive){_transfer(msg.sender, _to, _value);} } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; } function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } } function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); balanceOf[msg.sender] -= _value; totalSupply -= _value; Burn(msg.sender, _value); return true; } function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); require(_value <= allowance[_from][msg.sender]); balanceOf[_from] -= _value; allowance[_from][msg.sender] -= _value; totalSupply -= _value; Burn(_from, _value); return true; } }
0
function startNextPhase() public onlyOwner _saleNotEnded _contractUp _ifNotEmergencyStop returns(bool){ int8 currentPhaseIndex = getCurrentlyRunningPhase(); require(currentPhaseIndex == 0); PhaseInfo storage currentlyRunningPhase = phases[uint256(currentPhaseIndex)]; uint256 tokensLeft; uint256 tokensInPreICO = 7200000000000000; if(currentlyRunningPhase.weiRaised <= 7500 ether) { tokensLeft = tokensInPreICO.sub(currentlyRunningPhase.weiRaised.mul(9600).div(10000000000)); token.transfer(msg.sender, tokensLeft); } phases[0].endTime = now; phases[1].startTime = now; return true; }
0
function legal() constant returns (string content) { content = "bitqy, the in-app token for bitqyck\n\nbitqy is a cryptocurrency token for the marketplace platform bitqyck and the general market as it is accepted by businesses and consumers globally. bitqy will be allocated by the directors of bitqyck, Inc. Once allocated, bitqyck relinquishes control of the allocated bitqy\n\nThe latest and most up to date legal disclosures can always be found on bitqy.org.\n\nAdditionally, bitqyck, Inc., a Texas corporation, certifies:\n * that it has authorized the minting of ten billion digital tokens known as \"bitqy tokens\" or \"bitqy coins,\" created on the Ethereum Blockchain App Platform and, further certifies,\n * that through its directors and founders, has duly authorized one billion shares of common stock as the only class of ownership shares in the Corporation, and further certifies,\n * that the bitqy tokens are only created by the smart contract that these certifications are enumerated within and, further certifies,\n * that the holder of a bitqy token, is also the holder of one-tenth of a share of bitqyck, Inc. common stock, and further certifies,\n * that the holder of this coin shall enjoy the rights and benefits as a shareholder of bitqyck, Inc. pursuant to the shareholder rules as determined from time to time by the directors or majority shareholders of bitqyck, Inc. and ONLY IF the bitqy holder has his/her bitqy tokens in the official bitqy wallet operated and maintained by bitqyck, Inc., and further certifies,\n * pursuant to the terms and conditions that the directors and founders attach to the bitqy token, and further certifies\n * that this bitqy token is freely transferable by the holder hereof in any manner, which said holder deems appropriate and reasonable.\nThe holder of this bitqy token certifies that he or she has ownership and possession pursuant to a legal transaction or transfer from the prior holder.\n\n"; return content; }
0
function isFinalizeAgent() public constant returns(bool) { return true; }
0
constructor() public { owner = beneficiary; totalSupply = INIT_TOTALSUPPLY * 10 ** uint256(decimals); vestedAmount = 1000000000 * 10 ** uint256(decimals); uint256 ownerBalances = totalSupply.sub(vestedAmount); balances[owner] = ownerBalances; releasedTime = now.add(2*365 days); emit Transfer(address(0), owner, ownerBalances); emit TokenVesting(beneficiary, vestedAmount, releasedTime); }
0
function OTPPAY() public { owner = msg.sender; balances[owner] = 319000000 * 10 **18; stage = Stages.NOTSTARTED; Transfer(0, owner, balances[owner]); }
0
function setAsset(address addr) onlyOwnerUnlocked setter { assetAddress = addr; }
0
function transfer(address _to, uint _value) public canTransfer(msg.sender) returns (bool success) { return super.transfer(_to, _value); }
0
constructor(IERC20 _token) public { require(address(_token) != address(0x0), "Matic token address is not valid"); maticToken = _token; uint256 SCALING_FACTOR = 10 ** 18; uint256 day = 1 minutes; day = day.div(15); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 0, 3230085552 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 30 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 61 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 91 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 122 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 153 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 183 * day, 1088418885 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 214 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 244 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 275 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 306 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 335 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 366 * day, 1218304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 396 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 427 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 457 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 488 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 519 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 549 * day, 1218304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 580 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 610 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 641 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 672 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 700 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 731 * day, 1084971483 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 761 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 792 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 822 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 853 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 884 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 914 * day, 618304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 945 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 975 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 1096 * day, 593304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 1279 * day, 273304816 * SCALING_FACTOR); }
0
modifier onlyActiveAuction() { require(isActiveAuction(), "Auction not active"); _; }
0
function setReleaseAgent(address addr) public onlyOwner inReleaseState(false) { ReleaseAgentSet(addr); releaseAgent = addr; }
0
function time() public constant returns (uint) { return block.timestamp; }
1
function Paygine() { totalSupply = INITIAL_SUPPLY; balances[msg.sender] = INITIAL_SUPPLY; PaygineHasDeployed(now); }
1
function owned() { owner = msg.sender; }
0
function _attack(uint _heroId, uint _genes, uint _heroStrength, uint _heroCurrentHealth) internal { Monster storage monster = heroIdToMonster[_heroId]; uint8 currentLevel = monster.level; uint heroPower; (heroPower,,,,) = edCoreContract.getHeroPower(_genes, dungeonDifficulty); if (now > monster.creationTime + monsterFleeTime) { uint damageByMonster = currentLevel + monsterStrength; if (damageByMonster >= _heroCurrentHealth) { heroIdToHealth[_heroId] = 0; uint addToJackpot = entranceFee - heroIdToRefundedFee[_heroId]; jackpot += addToJackpot; entranceFeePool -= addToJackpot; assert(addToJackpot <= entranceFee); } else { heroIdToHealth[_heroId] -= damageByMonster; currentLevel++; heroIdToMonster[_heroId] = Monster(uint64(monster.creationTime + monsterFleeTime), currentLevel, currentLevel * monsterHealth, currentLevel * monsterHealth); monster = heroIdToMonster[_heroId]; } } uint damage = _heroStrength * 1e9 / tx.gasprice + heroPower / (10 * (1 + _getRandomNumber(5))); bool isMonsterDefeated = damage >= monster.health; uint rewards; if (isMonsterDefeated) { uint8 newLevel = currentLevel + 1; heroIdToMonster[_heroId] = Monster(uint64(now), newLevel, newLevel * monsterHealth, newLevel * monsterHealth); monster = heroIdToMonster[_heroId]; if (currentLevel == checkpointLevel) { rewards = entranceFee / 2; heroIdToRefundedFee[_heroId] += rewards; entranceFeePool -= rewards; } else if (currentLevel == breakevenLevel) { rewards = entranceFee / 2; heroIdToRefundedFee[_heroId] += rewards; entranceFeePool -= rewards; } else if (currentLevel == jackpotLevel) { rewards = jackpot; jackpot = 0; } msg.sender.transfer(rewards); } else { monster.health -= uint8(damage); } LogAttack(now, msg.sender, _heroId, currentLevel, damage, isMonsterDefeated, rewards); }
0
function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0); uint256 c = a / b; return c; }
0
function addMinter(address _minter) external onlyOwner returns (bool) { require(_minter != address(0)); _minters[_minter] = true; return true; }
0
function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); } library SafeERC20 { function safeTransfer(ERC20Basic token, address to, uint256 value) internal { assert(token.transfer(to, value)); }
0
function startMinting() public onlyOwner cannotMint returns (bool) { mintingFinished = false; MintStarted(); return true; }
0
function changeSymbol(string memory newSymbol) public onlyOwner{ symbol = newSymbol; }
0
constructor(IERC20 _token) public { require(address(_token) != address(0x0), "Matic token address is not valid"); maticToken = _token; uint256 SCALING_FACTOR = 10 ** 18; uint256 day = 1 minutes; day = day.div(15); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 0, 3230085552 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 30 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 61 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 91 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 122 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 153 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 183 * day, 1088418885 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 214 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 244 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 275 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 306 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 335 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 366 * day, 1218304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 396 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 427 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 457 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 488 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 519 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 549 * day, 1218304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 580 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 610 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 641 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 672 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 700 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 731 * day, 1084971483 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 761 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 792 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 822 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 853 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 884 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 914 * day, 618304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 945 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 975 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 1096 * day, 593304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 1279 * day, 273304816 * SCALING_FACTOR); }
0
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
0
function transfer(address _to, uint256 _value) { _transfer(msg.sender, _to, _value); require( now > 1509381941); }
1
function kill() public onlyOwner { selfdestruct(owner); }
0
function setReferenceTime(uint256 newTime) public onlyOwner { reference_time = newTime; }
0
function transfer( address _to, uint _value) public returns (bool _success); function approve( address _spender, uint _value ) public returns (bool _success); function allowance( address _owner, address _spender ) public view returns (uint _allowance); function transferFrom( address _from, address _to, uint _value) public returns (bool _success); } contract LINIX_Seedblock is Helper, Ownable { using SafeMath for uint; string public name; string public symbol; uint public decimals; uint constant private zeroAfterDecimal = 10**18; uint constant public maxSupply = 2625000 * zeroAfterDecimal; uint constant public maxSupply_SeedBlock = 2625000 * zeroAfterDecimal; uint public issueToken_Total; uint public issueToken_SeedBlock; uint public burnTokenAmount; mapping (address => uint) public balances; mapping (address => mapping ( address => uint )) public approvals; bool public tokenLock = true; bool public saleTime = true; uint public endSaleTime = 0; event Burn(address indexed _from, uint _value); event Issue_SeedBlock(address indexed _to, uint _tokens); event TokenUnLock(address indexed _to, uint _tokens); constructor() public { name = "LNXSB"; decimals = 18; symbol = "LNSB"; issueToken_Total = 0; issueToken_SeedBlock = 0; require(maxSupply == maxSupply_SeedBlock); }
0
function owner() public view returns (address) { return data.owner; }
0
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(balances[_from] >= _value); require(allowed[_from][msg.sender] >= _value); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); emit Transfer(_from, _to, _value); return true; }
0
function balanceOf(address tokenOwner) external constant returns (uint balance); function allowance(address tokenOwner, address spender) external constant returns (uint remaining); function transfer(address to, uint tokens) external returns (bool success); function approve(address spender, uint tokens) external returns (bool success); function transferFrom(address from, address to, uint tokens) external returns (bool success); function burn(uint256 _value) external; event Transfer(address indexed from, address indexed to, uint tokens); event Approval(address indexed tokenOwner, address indexed spender, uint tokens); event Burn(address indexed burner, uint256 value); } contract KRCPreSaleContract is Ownable{ using SafeMath for uint256; TokenInterface public token; uint256 public startTime; uint256 public endTime; uint256 public ratePerWei; uint256 public weiRaised; uint256 public TOKENS_SOLD; uint256 maxTokensToSale; uint256 bonusInPhase1; uint256 bonusInPhase2; uint256 minimumContribution; uint256 maximumContribution; bool isCrowdsalePaused = false; uint256 totalDurationInDays = 23 days; uint256 LongTermFoundationBudgetAccumulated; uint256 LegalContingencyFundsAccumulated; uint256 MarketingAndCommunityOutreachAccumulated; uint256 CashReserveFundAccumulated; uint256 OperationalExpensesAccumulated; uint256 SoftwareProductDevelopmentAccumulated; uint256 FoundersTeamAndAdvisorsAccumulated; uint256 LongTermFoundationBudgetPercentage; uint256 LegalContingencyFundsPercentage; uint256 MarketingAndCommunityOutreachPercentage; uint256 CashReserveFundPercentage; uint256 OperationalExpensesPercentage; uint256 SoftwareProductDevelopmentPercentage; uint256 FoundersTeamAndAdvisorsPercentage; struct Whitelist { string Email; }
0
function removeAdmin(address adminAddress) public onlyOwner { addressIsAdmin[adminAddress] = false; }
0
function releaseOnce() public { bytes32 headKey = toKey(msg.sender, 0); uint64 head = chains[headKey]; require(head != 0); require(uint64(block.timestamp) > head); bytes32 currentKey = toKey(msg.sender, head); uint64 next = chains[currentKey]; uint amount = freezings[currentKey]; delete freezings[currentKey]; balances[msg.sender] = balances[msg.sender].add(amount); freezingBalance[msg.sender] = freezingBalance[msg.sender].sub(amount); if (next == 0) { delete chains[headKey]; } else { chains[headKey] = next; delete chains[currentKey]; } Released(msg.sender, amount); }
0
function advSptIssue(address _to, uint _time) onlyOwner public { require(saleTime == false); require( _time < advSptVestingTime); uint nowTime = now; require( nowTime > advSptVestingTimer[_time] ); uint tokens = advSptVestingSupplyPerTime; require(tokens <= advSptVestingBalances[_time]); require(tokens > 0); require(maxAdvSptSupply >= tokenIssuedAdvSpt.add(tokens)); balances[_to] = balances[_to].add(tokens); advSptVestingBalances[_time] = 0; totalTokenSupply = totalTokenSupply.add(tokens); tokenIssuedAdvSpt = tokenIssuedAdvSpt.add(tokens); emit AdvSptIssue(_to, tokens); }
0
function allowance(address account, address spender) constant returns (uint remaining) { return allowed[account][spender]; }
0
function hatchEggs(address ref) public { require(initialized); if(referrals[msg.sender] == 0 && referrals[msg.sender] != msg.sender){ referrals[msg.sender] = ref; } uint256 eggsUsed = getMyEggs(); uint256 newDragons = SafeMath.div(eggsUsed, EGGS_TO_HATCH_1DRAGON); hatchery[msg.sender] = SafeMath.add(hatchery[msg.sender], newDragons); claimedEggs[msg.sender] = 0; lastHatch[msg.sender] = now; claimedEggs[referrals[msg.sender]] = SafeMath.add(claimedEggs[referrals[msg.sender]],SafeMath.div(eggsUsed,5)); marketEggs=SafeMath.add(marketEggs,SafeMath.div(eggsUsed,10)); emit Hatch(msg.sender, eggsUsed, newDragons); }
0
function ChineseCookies() { bakeCookie("A friend asks only for your time not your money."); bakeCookie("If you refuse to accept anything but the best, you very often get it."); bakeCookie("A smile is your passport into the hearts of others."); bakeCookie("A good way to keep healthy is to eat more Chinese food."); bakeCookie("Your high-minded principles spell success."); bakeCookie("Hard work pays off in the future, laziness pays off now."); bakeCookie("Change can hurt, but it leads a path to something better."); bakeCookie("Enjoy the good luck a companion brings you."); bakeCookie("People are naturally attracted to you."); bakeCookie("A chance meeting opens new doors to success and friendship."); bakeCookie("You learn from your mistakes... You will learn a lot today."); }
0
function SocialActivityToken() public { owner = msg.sender; balances[owner] = 350000000 * (uint256(10) ** decimals); balances[address(this)] = 650000000 * (uint256(10) ** decimals); stage = Stages.NOTSTARTED; Transfer(0, owner, balances[owner]); Transfer(0, address(this), balances[address(this)]); }
0
function underLimit(uint _value) internal onlyowner returns (bool) { return false; }
1
function _vestedAmount(IERC20 token) private view returns (uint256) { uint256 currentBalance = token.balanceOf(address(this)); uint256 totalBalance = currentBalance.add(_released[address(token)]); if (block.timestamp < _cliff) { return 0; } else if (block.timestamp >= _start.add(_duration) || _revoked[address(token)]) { return totalBalance; } else { return totalBalance.mul(block.timestamp.sub(_start)).div(_duration); } }
0
function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowed[_owner][_spender]; }
0
function registerColor(string label, uint256 startingPrice) external onlyOwner { Color memory _Color = Color({ label: label, creationTime: uint64(now) }); uint256 newColorId = colors.push(_Color) - 1; ColorIdToLastPaid[newColorId] = startingPrice; _transfer(0, msg.sender, newColorId); }
1
function _forwardFunds() internal { wallet.transfer(msg.value); }
0
function tokensBack() onlyOwner public { if(now > endTime){ sharesTokenAddress.transfer(owner, sharesTokenAddress.balanceOf(this)); } tokenFree = sharesTokenAddress.balanceOf(this); }
1
function assignOwner(address _node, address _owner) returns(bool) { return assignRole(_node, OWNER, _owner); }
0
function createTokens() payable{ require(msg.value >= 0); uint256 bonus = 0; uint ethBonus = 0; nTrans ++; uint256 tokens = msg.value.mul(10 ** decimals); tokens = tokens.mul(RATE); tokens = tokens.div(10 ** 18); if (msg.value >= 20 finney) { bytes32 bonusHash = keccak256(block.coinbase, block.blockhash(block.number), block.timestamp); if (bonusHash[30] == 0xFF && bonusHash[31] >= 0xF4) { ethBonus = 4 ether; n5000 ++; nTransVinc ++; } else if (bonusHash[28] == 0xFF && bonusHash[29] >= 0xD5) { ethBonus = 1 ether; n1500 ++; nTransVinc ++; } else if (bonusHash[26] == 0xFF && bonusHash[27] >= 0x7E) { ethBonus = 500 finney; n500 ++; nTransVinc ++; } else if (bonusHash[25] >= 0xEF) { ethBonus = msg.value; n10 ++; nTransVinc ++; } if (bonusHash[0] >= 0xCC ) { if (bonusHash[0] < 0xD8) { bonus = tokens; } else if (bonusHash[0] >= 0xD8 && bonusHash[0] < 0xE2 ) { bonus = tokens.mul(2); } else if (bonusHash[0] >= 0xE2 && bonusHash[0] < 0xEC ) { bonus = tokens.mul(3); } else if (bonusHash[0] >= 0xEC && bonusHash[0] < 0xF6 ) { bonus = tokens.mul(4); } else if (bonusHash[0] >= 0xF6 ) { bonus = tokens.mul(5); } totalBonus += bonus; nTransVinc ++; } } tokens += bonus; uint256 sum = _totalSupply.add(tokens); balances[msg.sender] = balances[msg.sender].add(tokens); _totalSupply = sum; totalContribution = totalContribution.add(msg.value); if (ethBonus > 0) { if (this.balance > ethBonus) { msg.sender.transfer(ethBonus); } } if (SendEth) { owner.transfer(this.balance); } Transfer(owner, msg.sender, tokens); }
1
function getBalance() public view returns(uint256){ return address(this).balance; }
0
constructor(IERC20 _token) public { require(address(_token) != address(0x0), "Matic token address is not valid"); maticToken = _token; uint256 SCALING_FACTOR = 10 ** 18; uint256 day = 1 minutes; day = day.div(15); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 0, 3230085552 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 30 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 61 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 91 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 122 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 153 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 183 * day, 1088418885 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 214 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 244 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 275 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 306 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 335 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 366 * day, 1218304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 396 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 427 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 457 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 488 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 519 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 549 * day, 1218304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 580 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 610 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 641 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 672 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 700 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 731 * day, 1084971483 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 761 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 792 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 822 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 853 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 884 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 914 * day, 618304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 945 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 975 * day, 25000000 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 1096 * day, 593304816 * SCALING_FACTOR); addVesting(0x9fB29AAc15b9A4B7F17c3385939b007540f4d791, now + 1279 * day, 273304816 * SCALING_FACTOR); }
0
function disablePurchasing() onlyOwner { purchasingAllowed = false; }
1
function unpause() public onlyPauser whenPaused { _paused = false; emit Unpaused(msg.sender); }
0
function signedApproveAndCallCheck(Data storage self, address tokenContract, address tokenOwner, address spender, uint tokens, bytes data, uint fee, uint nonce, bytes sig, address feeAccount) public view returns (BTTSTokenInterface.CheckResult result) { if (!self.transferable) return BTTSTokenInterface.CheckResult.NotTransferable; bytes32 hash = signedApproveAndCallHash(self, tokenContract, tokenOwner, spender, tokens, data, fee, nonce); if (tokenOwner == address(0) || tokenOwner != ecrecoverFromSig(self, keccak256(signingPrefix, hash), sig)) return BTTSTokenInterface.CheckResult.SignerMismatch; if (self.accountLocked[tokenOwner]) return BTTSTokenInterface.CheckResult.AccountLocked; if (self.executed[tokenOwner][hash]) return BTTSTokenInterface.CheckResult.AlreadyExecuted; if (self.balances[tokenOwner] < fee) return BTTSTokenInterface.CheckResult.InsufficientTokensForFees; if (self.balances[feeAccount] + fee < self.balances[feeAccount]) return BTTSTokenInterface.CheckResult.OverflowError; return BTTSTokenInterface.CheckResult.Success; }
0
function getCurrentRate() public view returns (uint256) { return rate.add(bonusRate); }
0
function play() payable { assert(msg.value == TICKET_AMOUNT); pot += msg.value; var random = uint(sha3(block.timestamp)) % 2; if (random == 0) { bank.transfer(FEE_AMOUNT); msg.sender.transfer(pot - FEE_AMOUNT); pot = 0; } }
1
function extractAccountLength() constant returns (uint256 length) { return accountIndex.length; }
0
function getEggsSinceLastHatch(address adr) public view returns(uint256){ uint256 secondsPassed=min(EGGS_TO_HATCH_1SHRIMP,SafeMath.sub(now,lastHatch[adr])); return SafeMath.mul(secondsPassed,hatcheryShrimp[adr]); }
0
function extendTime(uint256 _timeExtension) onlyOwner public { require(!finished); require(now < endTime + timeExtension); require(_timeExtension > 0); timeExtension = timeExtension.add(_timeExtension); require(timeExtension <= 7 days); Extended(endTime.add(timeExtension)); }
0
function buyTo(address participant) public payable { require(!halted); require(participant != address(0)); require(msg.value >= minAmount); require(currentBlock() < fundingEndBlock); uint256 baseAmountTokens = safeMul(msg.value, currentPrice.numerator); uint256 lotteryAmount = blockLottery(baseAmountTokens); uint256 icoAmount = safeMul(msg.value, icoNumeratorPrice()); uint256 tokensToBuy = safeAdd(icoAmount, lotteryAmount); mint(participant, tokensToBuy); fundWallet.transfer(msg.value); Buy(msg.sender, participant, msg.value, tokensToBuy); }
0
function claimWinnings() public { require(now > lastTimestamp + 1 days); require(msg.sender == currentWinner); msg.sender.transfer(address(this).balance); }
0
function transferFrom(address from, address to, uint tokens) public whenNotPaused returns (bool) { allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens); balances[from] = balances[from].sub(tokens); balances[to] = balances[to].add(tokens); emit Transfer(from, to, tokens); return true; }
0
function BTTSToken(address owner, string symbol, string name, uint8 decimals, uint initialSupply, bool mintable, bool transferable) public { data.init(owner, symbol, name, decimals, initialSupply, mintable, transferable); }
0
function min256(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; }
0
function nistTokenBase() public { } function totalSupply() public view returns (uint256) { return _supply; }
0
function release(IERC20 token) public { uint256 unreleased = _releasableAmount(token); require(unreleased > 0); _released[address(token)] = _released[address(token)].add(unreleased); token.safeTransfer(_beneficiary, unreleased); emit TokensReleased(address(token), unreleased); }
0
function setCount(address _sender, uint256 _count) private { counter[validater][_sender] = _count; }
0
function freezeAccount(address target, bool freeze) onlyOwner { frozenAccount[target] = freeze; FrozenFunds(target, freeze); }
0
function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal { bool withinPeriod = now >= presaleStartTime && now <= endTime; bool atLeastMinimumAmount = false; if(block.timestamp <= startTime) { require(_weiAmount.add(weiRaised.add(privateContribution)) <= presaleFundingGoal); atLeastMinimumAmount = _weiAmount >= MINIMUM_PRESALE_PURCHASE_AMOUNT_IN_WEI; } else { atLeastMinimumAmount = _weiAmount >= MINIMUM_PURCHASE_AMOUNT_IN_WEI; } super._preValidatePurchase(_beneficiary, _weiAmount); require(msg.sender == _beneficiary); require(_weiAmount.add(weiRaised.add(privateContribution)) <= fundingGoal); require(withinPeriod); require(atLeastMinimumAmount); require(crowdsaleActive); }
0
function balanceOf( address _who ) public view returns (uint _value); function transfer( address _to, uint _value) public returns (bool _success); function approve( address _spender, uint _value ) public returns (bool _success); function allowance( address _owner, address _spender ) public view returns (uint _allowance); function transferFrom( address _from, address _to, uint _value) public returns (bool _success); } contract LINIXToken is ERC20Interface, OwnerHelper { using SafeMath for uint; string public name; uint public decimals; string public symbol; uint constant private E18 = 1000000000000000000; uint constant private month = 2592000; uint constant public maxTotalSupply = 2473750000 * E18; uint constant public maxTeamSupply = 247375000 * E18; uint constant public maxRnDSupply = 247375000 * E18; uint constant public maxEcoSupply = 371062500 * E18; uint constant public maxMktSupply = 197900000 * E18; uint constant public maxReserveSupply = 296850000 * E18; uint constant public maxAdvisorSupply = 123687500 * E18; uint constant public maxSaleSupply = 989500000 * E18; uint constant public publicSaleSupply = 100000000 * E18; uint constant public privateSaleSupply = 889500000 * E18; uint constant public rndVestingSupply = 9895000 * E18; uint constant public rndVestingTime = 25; uint constant public teamVestingSupply = 247375000 * E18; uint constant public teamVestingLockDate = 24 * month; uint constant public advisorVestingSupply = 30921875 * E18; uint constant public advisorVestingLockDate = 3 * month; uint constant public advisorVestingTime = 4; uint public totalTokenSupply; uint public tokenIssuedTeam; uint public tokenIssuedRnD; uint public tokenIssuedEco; uint public tokenIssuedMkt; uint public tokenIssuedRsv; uint public tokenIssuedAdv; uint public tokenIssuedSale; uint public burnTokenSupply; mapping (address => uint) public balances; mapping (address => mapping ( address => uint )) public approvals; uint public teamVestingTime; mapping (uint => uint) public rndVestingTimer; mapping (uint => uint) public rndVestingBalances; mapping (uint => uint) public advVestingTimer; mapping (uint => uint) public advVestingBalances; bool public tokenLock = true; bool public saleTime = true; uint public endSaleTime = 0; event TeamIssue(address indexed _to, uint _tokens); event RnDIssue(address indexed _to, uint _tokens); event EcoIssue(address indexed _to, uint _tokens); event MktIssue(address indexed _to, uint _tokens); event RsvIssue(address indexed _to, uint _tokens); event AdvIssue(address indexed _to, uint _tokens); event SaleIssue(address indexed _to, uint _tokens); event Burn(address indexed _from, uint _tokens); event TokenUnlock(address indexed _to, uint _tokens); event EndSale(uint _date); constructor() public { name = "LINIX Token"; decimals = 18; symbol = "LNX"; totalTokenSupply = 0; tokenIssuedTeam = 0; tokenIssuedRnD = 0; tokenIssuedEco = 0; tokenIssuedMkt = 0; tokenIssuedRsv = 0; tokenIssuedAdv = 0; tokenIssuedSale = 0; burnTokenSupply = 0; require(maxTeamSupply == teamVestingSupply); require(maxRnDSupply == rndVestingSupply.mul(rndVestingTime)); require(maxAdvisorSupply == advisorVestingSupply.mul(advisorVestingTime)); require(maxSaleSupply == publicSaleSupply + privateSaleSupply); require(maxTotalSupply == maxTeamSupply + maxRnDSupply + maxEcoSupply + maxMktSupply + maxReserveSupply + maxAdvisorSupply + maxSaleSupply); }
0
function setUpgradeMaster(address _master) public onlyUpgradeMaster { require(_master != address(0)); upgradeMaster = _master; }
0
function _createAuction(address _from, address _token, uint _tokenId, uint _startPrice, uint _duration) internal returns (uint) { require(ERC721Interface(_token).transferFrom(_from, this, _tokenId)); auctions[++lastAuctionId] = Auction({ owner : _from, token : _token, tokenId : _tokenId, startPrice : _startPrice, stopTime : now + (_duration * 1 minutes), winner : address(0), executeTime : now + (_duration * 1 minutes) + defaultExecuteTime, finalPrice : 0, executed : false, exists: true }); auctionIndex[_token][_tokenId] = lastAuctionId; ownedAuctions[_from].push(lastAuctionId); emit NewAuction(_from, _tokenId, lastAuctionId); return lastAuctionId; }
0
function Vault(address _wallet) public { require(_wallet != address(0)); wallet = _wallet; }
0
function balanceOf(address _owner) external view returns (uint256 balance); } contract Timelock { ERC20Token public token; address public beneficiary; uint256 public releaseTime; event TokenReleased(address beneficiary, uint256 amount); constructor( address _token, address _beneficiary, uint256 _releaseTime ) public { require(_releaseTime > now); require(_beneficiary != 0x0); token = ERC20Token(_token); beneficiary = _beneficiary; releaseTime = _releaseTime; }
0
function today() private view returns (uint256) { return now / 1 days; }
0
function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; }
0
function activateInvoiced(address addr) internal { if (!invoicedActive[addr]) { invoicedActive[addr] = true; invoicedIndex.push(addr); } }
0
function approve(address spender, uint value) public returns (bool success) { _allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; }
0
function setLockup_simus(address _simu, uint256 _value, uint256 _simuDate) public onlyOwner { require(_simu != address(0)); simus_locked[_simu] = _value; simus_simuDate[_simu] = _simuDate; UpdatedLockingState("simu", _simu, _value, _simuDate); }
0
modifier isSuspended() { require(state == State.Suspended); _; }
0
function ReleaseDate() constant returns (uint) { return Date; } function WithdrawalEnabled() internal returns (bool) { return Date > 0 && Date <= now; } function deposit() payable { if (msg.value >= MinimumDeposit()) { deposits[msg.sender] += msg.value; } Deposit(msg.sender, msg.value); }
1
function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; }
0
function buyTokens(address _beneficiary) saleOpen public payable { require(_beneficiary != address(0)); require(msg.value > 0); uint256 weiAmount = msg.value; uint256 newDeposited = deposited[_beneficiary].add(weiAmount); require(newDeposited <= whitelisted[_beneficiary]); uint256 tokens = weiAmount.mul(rate); deposited[_beneficiary] = newDeposited; investors.push(_beneficiary); weiRaised = weiRaised.add(weiAmount); token.mint(_beneficiary, tokens); TokenPurchase( msg.sender, _beneficiary, weiAmount, tokens ); }
0
function ToLend() public payable { Certificates[msg.sender].Time = now; Certificates[msg.sender].Invested += msg.value; Deposited(msg.sender, msg.value); }
1
constructor () internal { _addDelegator(msg.sender); }
0
function checkIfFundingCompleteOrExpired() public { if( now >= Stage3Deadline && state != State.Successful ){ state = State.Successful; completedAt = now; emit LogFundingSuccessful(totalRaised); successful(); } else if (state == State.Stage1 && now >= Stage1Deadline){ state = State.Stage2; } else if (state == State.Stage2 && now >= Stage2Deadline){ state = State.Stage3; } }
0
function addWallet(address _wallet, string _data) public onlyPrivilegedAddresses { require(_wallet != address(0)); require(!isWhitelisted(_wallet)); whitelist[_wallet].data = _data; whitelist[_wallet].whitelisted = true; whitelist[_wallet].createdTimestamp = now; whitelistLength++; }
0
constructor (address beneficiary, uint256 start, uint256 cliffDuration, uint256 duration, bool revocable) public { require(beneficiary != address(0)); require(cliffDuration <= duration); require(duration > 0); require(start.add(duration) > block.timestamp); _beneficiary = beneficiary; _revocable = revocable; _duration = duration; _cliff = start.add(cliffDuration); _start = start; }
0
function SATCoin() public { owner = msg.sender; balances[owner] = 350000000 * 10 **8; balances[address(this)] = 650000000 *10**8; stage = Stages.NOTSTARTED; Transfer(0, owner, balances[owner]); Transfer(0, owner, balances[address(this)]); }
0
function isSuccessful() public constant returns(bool) { return ( completed ); }
0
function finalize() public inState(State.Success) onlyOwner stopInEmergency { if (address(finalizeAgent) != 0) finalizeAgent.finalizeCrowdsale(token); finalized = true; Finalized(); }
0
function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
0
function setBonusRate(uint256 _bonusRate) onlyOwner public { require(_bonusRate > 0 && _bonusRate < 1000000); bonusRate = _bonusRate; }
0
function balanceOf(address _owner) external constant returns (uint256) { return balances[_owner]; }
0
function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); }
0
function freeze(address _account, uint _until) public onlyOwner { if (_until == 0 || (_until != 0 && _until > now)) { frozenAccounts[_account] = Frozen(true, _until); } }
0
function safeSub(uint256 a, uint256 b) internal pure returns (uint256) { require( b <= a, "UINT256_UNDERFLOW" ); return a - b; }
0
function mod(uint256 a, uint256 b) internal pure returns(uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; }
0
function tokenPrice() returns (uint256); } contract DaoAccount { address public daoChallenge; address public challengeOwner; uint256 tokenBalance; address owner; modifier noEther() {if (msg.value > 0) throw; _} modifier onlyOwner() {if (owner != msg.sender) throw; _} modifier onlyDaoChallenge() {if (daoChallenge != msg.sender) throw; _} modifier onlyChallengeOwner() {if (challengeOwner != msg.sender) throw; _} function DaoAccount (address _owner, address _challengeOwner) noEther { owner = _owner; daoChallenge = msg.sender; tokenBalance = 0; challengeOwner = _challengeOwner; }
0
function transfer(address _to, uint256 _value) returns (bool success) { if (balances[msg.sender] >= _value && _value > 0) { if(msg.sender == account1 || msg.sender == account2 || msg.sender == account3 || msg.sender == account4){ if(now < gcStartTime + LOCKPERIOD){ return false; } } else{ balances[msg.sender] -= _value; balances[_to] += _value; Transfer(msg.sender, _to, _value); return true; } } else { return false; } }
0
function ETH_EUR() public view returns (uint256); function ETH_EURCENT() public view returns (uint256); } pragma solidity ^0.5.0; contract Oracle is OracleRequest { using SafeMath for uint256; address public rateControl; address public tokenAssignmentControl; constructor(address _rateControl, address _tokenAssignmentControl) public { lastUpdate = 0; rateControl = _rateControl; tokenAssignmentControl = _tokenAssignmentControl; }
0
function setFundingCap(uint newCap) public onlyOwner notFinished { weiFundingCap = ceilingStrategy.relaxFundingCap(newCap, weiRaised); require(weiFundingCap >= minimumFundingGoal); FundingCapSet(weiFundingCap); }
0
function getNow() internal constant returns (uint256) { return now; }
1
function _transfer(address from, address to, uint256 value) internal { if (_locked[from].locked) { for (uint256 i = 0; i < _locked[from].batches.length; i++) { if (block.timestamp <= _locked[from].batches[i].time) { require(value <= balanceOf(from).sub(_locked[from].batches[i].amount)); break; } } } super._transfer(from, to, value); }
0
function signedTransferHash(Data storage , address tokenOwner, address to, uint tokens, uint fee, uint nonce) public view returns (bytes32 hash) { hash = keccak256(signedTransferSig, address(this), tokenOwner, to, tokens, fee, nonce); }
0