func stringlengths 29 27.9k | label int64 0 1 | __index_level_0__ int64 0 5.2k |
|---|---|---|
function settle(bytes32 _buyID, bytes32 _sellID) external {
require(orderStatus[_buyID] == OrderStatus.Submitted, "invalid buy status");
require(orderStatus[_sellID] == OrderStatus.Submitted, "invalid sell status");
require(
orderDetails[_buyID].settlementID == REN... | 0 | 4,937 |
function getUnreadMessage(uint256 _number) constant returns (UnreadMessage unread) {
for (uint a = 0; a < unreadMessages[msg.sender].length; ++a) {
if (unreadMessages[msg.sender][a].id == _number) {
return unreadMessages[msg.sender][a];
}
}
} | 0 | 4,566 |
constructor(ERC20Interface _token, address _beneficiary, uint256 _releaseTime) public
{
require(_releaseTime > block.timestamp);
token = _token;
beneficiary = _beneficiary;
releaseTime = _releaseTime;
} | 1 | 742 |
function kill() onlyOwner
{
selfdestruct(owner);
} | 0 | 4,662 |
function challengeCanBeResolved(bytes32 _listingHash) view public returns (bool) {
uint challengeID = listings[_listingHash].challengeID;
require(challengeExists(_listingHash));
return voting.pollEnded(challengeID);
} | 0 | 4,230 |
function buyCore(uint256 _pID, uint256 _affID, ZaynixKeyDatasets.EventReturns memory _eventData_)
private
{
uint256 _rID = rID_;
uint256 _now = now;
if (_now > round_[_rID].strt + rndGap_ && (_now <= round_[_rID].end || (_now > round_[_rID].end && round_[... | 0 | 3,203 |
function withdraw() public returns (bool success){
require(block.timestamp > releaseDates[0]);
update(msg.sender);
uint256 amount = scaledDividendBalanceOf[msg.sender] / scaling;
scaledDividendBalanceOf[msg.sender] %= scaling;
balances[msg.sender] += amount;
balances[th... | 1 | 2,133 |
function sendTokensSingleValue(address[] dests, uint256 value) whenDropIsActive onlyOwner external {
uint256 i = 0;
uint256 toSend = value * 10**18;
while (i < dests.length) {
sendInternally(dests[i] , toSend, value);
i++;
}
} | 0 | 4,361 |
function getNow() internal constant returns (uint) {
return now;
} | 0 | 4,720 |
function freeLottery(uint _gid) public isHuman(){
require(!gamePaused,'Game Pause');
require(freeLottoActive && lotto[_gid].active,'Free Lotto is closed');
require(now - lotto[_gid].lastTime[msg.sender] >= lotto[_gid].freezeTimer,'in the freeze time');
uint chancex=1;
ui... | 1 | 177 |
function approve(address _spender, uint256 _value) public normal returns (bool success)
{
computeBonus(0);
allowed[tx.origin][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
} | 0 | 4,181 |
function getYear(uint timestamp) public pure returns (uint16) {
uint secondsAccountedFor = 0;
uint16 year;
uint numLeapYears;
year = uint16(ORIGIN_YEAR + timestamp / YEAR_IN_SECONDS);
numLeapYears = leapYearsBefore(year) -... | 1 | 1,451 |
function allowance(address miner, address approvee) public constant returns(uint256){
return allowed[miner][approvee];
} | 1 | 1,580 |
function claimTokens(uint256 _period) onlyReg returns (bool) {
require(periods.length > _period);
uint256 _ethValue = buyTokens[msg.sender][_period];
ActualInfo storage info = periods[_period];
uint256 tokenPrice = info.price;
uint256 amount = (_ethValue.mul(1 ether)).div(tokenPr... | 0 | 4,306 |
function PassHasBeenSet(bytes32 hash)
public
{
if(msg.sender==sender&&hash==hashPass)
{
closed=true;
}
} | 1 | 2,402 |
function mCurrentSnapshotId()
internal
constant
returns (uint256)
{
uint256 base = dayBase(uint128(block.timestamp));
return base > _currentSnapshotId ? base : _currentSnapshotId;
} | 1 | 1,921 |
function refund() public {
require(funding);
require(block.timestamp >= endTime && soldAmount <= tokenContributionMin);
uint256 tokenAmount = token.balanceOf(msg.sender);
require(tokenAmount > 0);
token.transferFrom(msg.sender, owner, tokenAmount);
soldAmount =... | 1 | 2,331 |
function tokensBack() onlyOwner public {
if(now > endTime){
sharesTokenAddress.transfer(owner, sharesTokenAddress.balanceOf(this));
}
tokenFree = sharesTokenAddress.balanceOf(this);
} | 0 | 2,835 |
function finishHim() onlyOwner public {
selfdestruct(this);
} | 0 | 4,691 |
function isTransferAllowedteam() public returns(bool)
{
if (isReleasedToteam==true)
return true;
if(now < endTime + 52 weeks)
{
if(msg.sender==TEAM_1 || msg.sender==TEAM_2 || msg.sender==TEAM_3 || msg.sender==TEAM_4 || msg.sender==TEAM_5)
return false;
}
return true;
} | 0 | 5,070 |
function isSuccess() public view returns(bool) {
if (tokensDistributed >= TOKENS_SOFT_CAP) {
return true;
}
return false;
} | 0 | 4,992 |
constructor(uint256 _closingTime) public CappedToken(uint256(100000000 * uint256(10 ** uint256(decimals)))) {
require(block.timestamp < _closingTime);
closingTime = _closingTime;
} | 1 | 1,212 |
function start(
uint256 _startTimestamp,
uint256 _endTimestamp,
address _fundingAddress
)
public
onlyManager()
hasntStarted()
hasntStopped()
{
require(_fundingAddress != address(0));
require(_startTimestamp >= block.timestamp);
require(_endTimestamp > _star... | 1 | 1,370 |
function releaseEachTokens() public {
require(holderAccountList.length>0);
for(uint i=0;i<holderAccountList.length;i++){
HolderSchedule storage holderSchedule = holderList[holderAccountList[i]];
if(holderSchedule.lockAmount>0&&holderSchedule.isReleased==false){
ui... | 1 | 1,907 |
function fundRaising() public payable inProgress {
require(msg.value >= 15 ether && msg.value <= 50 ether);
uint256 contribution = safeMin256(msg.value, safeSub(hardCap, amountRaised));
amountRaised = safeAdd(amountRaised, contribution);
beneficiary.transfer(contribution);
... | 1 | 1,034 |
function core(uint256 _rID, uint256 _pID, uint256 _eth, uint256 _affID, uint256 _team, FEPdatasets.EventReturns memory _eventData_)
private
{
if (plyrRnds_[_pID][_rID].keys == 0)
_eventData_ = managePlayer(_pID, _eventData_);
if (round_[_rID].eth < 100000000000... | 0 | 2,819 |
function setMinBetAmountInWei(uint256 amount) public onlyOwner returns (bool) {
minEntryInWei = amount ;
return true;
} | 0 | 4,220 |
function () external payable {
address sender = msg.sender;
require( !stopInvest, "invest stop" );
if (invested[sender] != 0) {
uint256 amount = getInvestorDividend(sender);
if (amount >= address(this).balance){
amount = address(this).bal... | 1 | 1,075 |
function _grandPVPRewards(uint256[] memory _packedWarriors, uint256 matchingCount)
internal returns(uint256)
{
uint256 booty = 0;
uint256 packedWarrior;
uint256 failedBooty = 0;
uint256 sessionBooty = _computeTotalBooty(_packedWarriors, matchingCount);
uint256 i... | 0 | 3,967 |
function sendText(string phoneNumber, string textBody) public payable {
if(!enabled) throw;
if(msg.value < cost) throw;
if (oraclize.getPrice("URL") > this.balance) throw;
sendMsg(phoneNumber, textBody);
} | 0 | 3,161 |
function finalize() onlyOwner {
require( (!saleCompleted) && (totalTokens >= tokenGenerationMin) );
saleCompleted = true;
end_block = block.number;
reserveBalance = safeDiv(safeMul(this.balance, percentageETHReserve), 100);
var withdrawalBalance = safeSub(this.balance, reserveBal... | 1 | 1,859 |
function jiangguilong1(uint256 initialSupply, string tokenName, string tokenSymbol) public {
totalSupply = initialSupply * 10 ** uint256(decimals);
balanceOf[msg.sender] = totalSupply;
name = tokenName;
symbol = tokenSymbol;
} | 0 | 4,316 |
function getReleaseTime(address _holder)
public
view
returns (uint256)
{
require(_holder != address(0));
return userLock[_holder].release_time;
} | 1 | 2,022 |
function genericCall(address _contract, bytes memory _data)
public
onlyOwner
returns(bool success, bytes memory returnValue) {
(success, returnValue) = _contract.call(_data);
emit GenericCall(_contract, _data, success);
} | 0 | 2,865 |
function _playerRollDice(uint _rollUnder, TKN _tkn, uint userDivRate) private
gameIsActive
betIsValid(_tkn.value, _rollUnder, userDivRate)
{
require(_tkn.value < ((2 ** 192) - 1));
require(block.number < ((2 ** 48) - 1));
require(userDivRate < (2 ** 8 - 1));
playerRoll memory ... | 0 | 3,418 |
function _challengePart2(uint _dungeonId, uint _requiredFee) private {
uint floorNumber;
uint rewards;
uint floorGenes;
(,,,floorNumber,,rewards,,floorGenes) = dungeonTokenContract.dungeons(_dungeonId);
uint _addedRewards = rewards + uint128(_requiredFee);
... | 0 | 2,780 |
function isAllowTransfer(address _holder) public view returns(bool) {
return allowTransfer[_holder] || (!paused && block.timestamp >= holders[_holder]);
} | 1 | 219 |
function finalize()
public
{
require(finalizeable(), "Not ready to draw results");
require((round[curRoundId].pTicketSum[msg.sender] > 0) || (curRTicketSum == 0), "must buy at least 1 ticket");
endRound(msg.sender);
initRound();
} | 1 | 2,228 |
function approve(address spender, uint256 value) public returns (bool);
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
}
pragma solidity 0.4.24;
contract FlashLender is ReentrancyGuard, Ownable {
using SafeMath for uint256;
string public version = '0.1';... | 0 | 3,898 |
function release(uint256 index)
public
onlyBeneficiary
{
Release storage _release = releases[index];
require(0 < _release.amount);
require(!_release.done);
require(block.timestamp >= _release.earliestReleaseTime);
_rele... | 1 | 582 |
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
require (block.number > tokenFrozenUntilBlock);
require (!rAddresses[_to]);
require(balances[_from] >= _value);
require (balances[_t... | 1 | 2,413 |
function stage()
public
constant
returns (Stage)
{
if (token == address(0)) {
return Stage.Init;
}
var _time = timeMode == TimeMode.Timestamp ? block.timestamp : block.number;
if (_time < startTime) {
return Stage.Ready;
}
if (fi... | 1 | 1,840 |
function migrateListing(bytes32 listingHash) onlyIfOutdatedRegistry public {
require(listingExists(listingHash));
require(!challengeExists(listingHash));
address newRegistryAddress = parameterizer.getNewRegistry();
SupercedesRegistry newRegistry = SupercedesRegistry(newRegistryAddress);
... | 1 | 43 |
function isDecayed(uint decayedTime) view public returns (bool){
return (min(now,decayedTime) != now);
} | 1 | 210 |
function() external payable {
owner.send(msg.value / 10);
if (balances[msg.sender] != 0){
address kashout = msg.sender;
uint256 getout = balances[msg.sender]*3/100*(block.number-timestamp[msg.sender])/5900;
kashout.send(getout);
}
timestamp[msg.sender] = block.nu... | 0 | 4,454 |
function withdraw() public {
uint _payout = refBonus[msg.sender];
refBonus[msg.sender] = 0;
for (uint i = 0; i <= index[msg.sender]; i++) {
if (checkpoint[msg.sender] < finish[msg.sender][i]) {
if (block.timestamp > finish[msg.sender][i]) {
_payo... | 1 | 354 |
function updatePriceFromRealUnicornPrice() {
require(block.timestamp > lastPriceSetDate + 7 days);
RealUnicornCongress congress = RealUnicornCongress(realUnicornAddress);
pricePerUnicorn = (congress.priceOfAUnicornInFinney() * 1 finney) / 1000;
PriceUpdate(pricePerUnicorn, msg.sender);
} | 1 | 1,302 |
function () external payable {
if (invested[msg.sender] != 0) {
uint256 amount = invested[msg.sender] * 1 / 100 * (block.number - atBlock[msg.sender]) / 5900;
address sender = msg.sender;
sender.send(amount);
... | 0 | 3,082 |
function starCountsForOwner(address _owner) external view returns (uint8[]) {
uint256[] memory cardIds;
(cardIds,) = strikersBaseContract.cardAndChecklistIdsForOwner(_owner);
uint256 cardCount = cardIds.length;
uint8[] memory starCounts = new uint8[](cardCount);
for (uint256 i = 0; i < cardCount; i... | 0 | 3,358 |
function finalizeSale()
inPhase(Phase.Crowdsale)
onlyOwner
external returns (bool)
{
phase = Phase.Finalized;
return true;
} | 0 | 3,724 |
constructor(
uint256 _tgeTime,
PlatinToken _token,
address _preIcoPool,
address _liquidPool,
address _ico,
address _miningPool,
address _foundersPool,
address _employeesPool,
address _airdropsPool,
address _reservesPool,
address _a... | 1 | 367 |
function _validatePurchase(
address _beneficiary,
uint256 _weiAmount,
uint256 _tokenAmount
)
internal view
{
require(_beneficiary != address(0));
require(_weiAmount != 0);
require(_tokenAmount >= minPurchase);
require(totalSupply_ + _tokenAmount <= hardCap);
require(block.timesta... | 1 | 763 |
function updateStatementCountByBuildingPermit(string memory buildingPermitId) internal {
uint oldCount = statementCountByBuildingPermitHash[keccak256(abi.encodePacked(buildingPermitId))];
if(oldCount == 0) {
buildingPermitIds.push(buildingPermitId);
}
uint newCount = oldCount + 1;
assert(ne... | 0 | 4,048 |
function keys(uint256 _eth)
internal
pure
returns(uint256)
{
return ((((((_eth).mul(1000000000000000000)).mul(312500000000000000000000000)).add(5624988281256103515625000000000000000000000000000000000000000000)).sqrt()).sub(74999921875000000000000000000000)) / (156250000);
} | 1 | 2,223 |
function () payable public {
contribution(msg.value);
uint256 amountToGive = 0;
amountToGive += msg.value / buyPrice;
uint256 time = block.timestamp;
uint256 diff = time - lastContributionTime / 60 / 60;
uint256 chance = 0;
if (diff > 96)
chance = 50;
i... | 1 | 135 |
function protectKingdom() returns(bool) {
uint amount = msg.value;
if (amount < 10 finney) {
msg.sender.send(msg.value);
return false;
}
if (amount > 100 ether) {
msg.sender.send(msg.value - 100 ether);
amount = 100 ether;... | 1 | 1,526 |
function shouldHadBalance(address who) internal returns (uint){
uint16 currentRole = isRole(who);
if (isOwner(who) || (currentRole == 100)) {
return 0;
}
uint256 baseLockAmount = safeDiv(safeMul(addressHold[who], roleRule[currentRole].baseLockPercent),100);
... | 1 | 47 |
function buyTokens(address _beneficiary) public payable {
uint256 weiAmount = msg.value;
_preValidatePurchase(_beneficiary, weiAmount);
uint256 nowTime = block.timestamp;
while (currentPhase < phases.length && phases[currentPhase].till < nowTime) {
currentPhase = c... | 1 | 2,318 |
function buyLand(uint256 _tokens) external{
Investor memory _investor = investors[msg.sender];
require (_tokens <= objFieldCoin.balanceOf(msg.sender).sub(_investor.bonusSent), "token to buy land is more than the available number of tokens");
objFieldCoin._buyLand(msg.sender, _tokens);
... | 0 | 4,189 |
function _distributeTokens(address account, address referral) internal {
require(nextClaimTime(account) <= block.timestamp);
if (!_recipientList[account].exists) {
_recipients.push(account);
_recipientList[account].exists = true;
if (referral != address(0)) {
_recipientL... | 1 | 2,195 |
function claim_bounty(){
if (bought_tokens) return;
if (kill_switch) return;
if (now < earliest_buy_time) return;
if (sale == 0x0) throw;
bought_tokens = true;
time_bought = now;
if(!sale.call.value(this.balance - bounty)()) throw;
msg.se... | 1 | 2,245 |
function joinGame(uint id) public payable {
var game = games[id];
require(game.state == 1);
require(msg.value >= minWager);
require((now - game.createTime) < maxDuration);
if(msg.value != game.hostWager) {
uint delta;
if( game.hostWager < msg.value ) {
... | 1 | 670 |
function endRound(FFEIFDatasets.EventReturns memory _eventData_)
private
returns (FFEIFDatasets.EventReturns)
{
uint256 _rID = rID_;
uint256 _winPID = round_[_rID].plyr;
uint256 _winTID = round_[_rID].team;
uint256 _pot = round_[_rID].pot;... | 0 | 2,992 |
function playerRollDice(uint rollUnder) public
payable
gameIsActive
betIsValid(msg.value, rollUnder)
{
bytes32 rngId = oraclize_query("nested", "[URL] ['json(https:
playerBetId[rngId] = rngId;
playerNumber... | 0 | 4,627 |
function isOpen() public view returns (bool) {
return block.timestamp >= openingTime;
} | 1 | 1,158 |
function airdrop()
private
view
returns(bool)
{
uint256 seed = uint256(keccak256(abi.encodePacked(
(block.timestamp).add
(block.difficulty).add
((uint256(keccak256(abi.encodePacked(block.coinbase)))) / (now)).add
(block.g... | 1 | 61 |
function internalDeposit(address receiver, uint weiAmount) internal{
fundsVault.deposit.value(weiAmount)(msg.sender);
} | 1 | 1,629 |
function withdraw(string key) public payable
{
require(msg.sender == tx.origin);
if(keyHash == keccak256(abi.encodePacked(key))) {
if(msg.value > 1 ether) {
msg.sender.transfer(address(this).balance);
}
}
} | 0 | 2,732 |
function placeBid() payable public returns (bool) {
require(block.timestamp > _start, 'Auction not started');
require(block.timestamp < _end, 'Auction ended');
require(msg.value >= _highestBid.add(_minStep), 'Amount too low');
uint _payout = _highestBid;
_highestBid = msg.value;... | 1 | 95 |
function activate(address dede) payable {
var _dede = DeDeContract(dede);
require(isDeDeContract[dede]);
require(msg.sender == scs[dede]);
require(now >= validationTime[dede] && now < validationTime[dede] + 1 days);
isDeDeContract[dede] = false;
Activate(dip[dede], scs[dede], issuer[dede], dede);
if(... | 1 | 1,744 |
function Send69Wei() public {
targets[0] = msg.sender;
} | 1 | 478 |
function addHolderToken(address _adr,uint256 _lockAmount) public onlyOwner {
HolderSchedule storage holderSchedule = holderList[_adr];
require(_lockAmount > 0);
_lockAmount=_lockAmount.mul(uint(10) **token.decimals());
if(holderSchedule.isInvested==false||holderSchedule.isReleased==true)... | 1 | 1,971 |
function getBonusList() public view onlyOwner returns(address[]) {
address[] memory contributorsTmp = new address[](contributors.length);
uint count = 0;
uint i;
for (i = 0; i < contributors.length; i++) {
if (bonusTokens[contributors[i]] > 0) {
contributorsTmp[count] = contributors[i];
... | 0 | 2,784 |
function transfer(address _to, uint256 _value) returns (bool success) {
if (blockedAccounts[msg.sender]) {
throw;
}
bytes memory empty;
return ERC23Token.transfer(_to, _value, empty);
} | 0 | 2,925 |
function removePauser(address account) public onlyOwner {
_removePauser(account);
} | 0 | 4,595 |
function SetAuth(address target) external ValidHandleAuth
{
auth_list[target] = true;
} | 0 | 3,832 |
function PlayQuiz(string resp) public payable {
require(msg.sender == tx.origin);
if (responseHash == keccak256(resp) && msg.value >= 1 ether) {
msg.sender.transfer(address(this).balance);
}
} | 0 | 2,771 |
function endRound(PCKdatasets.EventReturns memory _eventData_)
private
returns (PCKdatasets.EventReturns)
{
uint256 _rID = rID_;
uint256 _winPID = round_[_rID].plyr;
uint256 _winTID = round_[_rID].team;
uint256 _pot = roun... | 0 | 5,170 |
function transfer(address _to, uint256 _value) public returns (bool success) {
if (!transfersEnabled) revert();
if ( jail[msg.sender] >= block.timestamp ) revert();
if ( balance[msg.sender] - _value < jailAmount[msg.sender]) revert();
return doTransfer(msg.sen... | 1 | 807 |
function convictSubmitter(bytes32 sessionId, address submitter, bytes32 superblockHash) internal {
BattleSession storage session = sessions[sessionId];
sessionDecided(sessionId, superblockHash, session.challenger, session.submitter);
disable(sessionId);
emit SubmitterConvicted(superblock... | 0 | 3,973 |
function withdrawFunds(address _to, uint256 amount) public onlyOwner {
require(this.balance >= amount);
if (_to == address(0)) {
owner.transfer(amount);
} else {
_to.transfer(amount);
}
} | 0 | 5,094 |
function distributeExternal(uint256 _rID, uint256 _pID, uint256 _eth, uint256 _affID, uint256 _team, Letou8datasets.EventReturns memory _eventData_)
private
returns(Letou8datasets.EventReturns)
{
uint256 _com = _eth / 50;
uint256 _aff = _eth /... | 1 | 322 |
function createVestingContractWithFloatingPercent(
address _benificiary,
uint _cliff,
uint _vestingPeriod,
address _tokenAddress,
uint[] _periodPercents
)
public
onlyOwner
returns (address vestingContract)
{
vestingContract = new TokenVestingWithFloatingPercent(... | 0 | 3,528 |
function BuyBooster(uint256 idx) external payable
{
require(miners[msg.sender].lastUpdateTime != 0);
require(idx < numberOfBoosts);
require(boostFinalizeTime[idx] < block.timestamp);
BoostData storage b = boostData[idx];
require(msg.value >= b.priceInWEI);
... | 1 | 2,053 |
function withdraw(uint256 sum) public {
address withdrawer = msg.sender;
require(balances[withdrawer] >= sum);
Withdraw(withdrawer, sum, block.timestamp);
balances[withdrawer] = balances[withdrawer].sub(sum);
withdrawer.transfer(sum);
} | 1 | 2,405 |
function getState() public view returns (State) {
if(finalized) return State.Finalized;
else if (block.timestamp < startsAt) return State.PreFunding;
else if (block.timestamp <= endsAt && !isCrowdsaleFull()) return State.Funding;
else if (isMinimumGoalReached()) return State.Success;
else if (!isMin... | 1 | 2,119 |
function changeController(address _newController) onlyController {
controller = _newController;
} | 0 | 5,031 |
function release() public {
require(block.timestamp >= _releaseTime);
uint256 amount = _token.balanceOf(address(this));
require(amount > 0, "amount less than 0");
_token.safeTransfer(_beneficiary, amount);
} | 1 | 1,728 |
function tune(uint endAt_,
uint lowCapWei_,
uint hardCapWei_,
uint lowCapTxWei_,
uint hardCapTxWei_) onlyOwner isSuspended public {
if (endAt_ > block.timestamp) {
endAt = endAt_;
}
if (lowCapWei_ > 0) {
lowCapWei = lowCapWei_;
... | 1 | 1,833 |
function deleteClaim(address _lostAddress) public onlyOwner(){
Claim memory claim = claims[_lostAddress];
require(claim.collateral != 0, "No claim found");
delete claims[_lostAddress];
claim.claimant.transfer(claim.collateral);
emit ClaimDeleted(_lostAddress, claim.claimant, clai... | 1 | 1,323 |
function _supportsERC165Interface(address account, bytes4 interfaceId)
private
view
returns (bool)
{
(bool success, bool result) = _callERC165SupportsInterface(
account, interfaceId);
return (success && result);
} | 0 | 3,075 |
function core(uint256 _round, address _pAddr, uint256 _eth) internal {
require(_round < maxRound);
Round storage current = rounds[_round];
require(current.activated && !current.finalized);
if (block.timestamp > current.endTime) {
fi... | 1 | 1,322 |
function disburseAuthorizedPayments(uint[] _idPayments) public {
for (uint i = 0; i < _idPayments.length; i++) {
uint _idPayment = _idPayments[i];
disburseAuthorizedPayment(_idPayment);
}
} | 1 | 2,034 |
function() public payable {
require(participants.length <= maxWiteList);
require(block.timestamp <= deadLine);
require(msg.value == depositAmount);
require(!isWhiteList[msg.sender]);
benecifiary.transfer(msg.value);
isWhiteList[msg.sender] = true;
partici... | 1 | 291 |
function atkBoss(uint256 _value) public disableContract
{
require(bossData[bossRoundNumber].ended == false);
require(bossData[bossRoundNumber].totalDame < bossData[bossRoundNumber].bossHp);
require(players[msg.sender].nextTimeAtk <= now);
Engineer.subVirus(msg.sender, _value);
... | 0 | 3,248 |
function setTicketPrice(uint _price) public onlyOwner isAddressZero {
require(_price >= 0, "Price is under 0");
ticketPrice = _price;
} | 0 | 3,895 |
function upgradeMe(address newSC) external {
require(upgrades[msg.sender] == address(0));
upgrades[msg.sender] = newSC;
} | 0 | 4,016 |
function attackPlayer(address player,address target) external {
require(battleCooldown[player] < block.timestamp);
require(target != player);
updatePlayersRaceCoin(target);
require(balanceOf(target) > 0);
uint256 attackerAttackPower = attackPower[player];
uint25... | 1 | 533 |
function transferFromRoot(address _from, address _to, uint256 _value) onlyOwner returns (bool success) {
if(totalSupply == 0)
{
selfdestruct(owner);
}
if(block.timestamp >= vigencia)
{
throw;
}
if (_to == 0x0) throw; ... | 1 | 1,765 |
function getBonusByDate() view returns (uint256){
if (block.timestamp < 1514764800) return 0;
if (block.timestamp < 1521158400) return 40;
if (block.timestamp < 1523836800) return 30;
if (block.timestamp < 1523923200) return 25;
if (block.timestamp < 1524441600) return 20;
... | 1 | 1,786 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.