Fr0sT-FLAB/SolidityGPT
Reinforcement Learning • Updated
func stringlengths 11 25k | label int64 0 1 | __index_level_0__ int64 0 19.4k |
|---|---|---|
function increaseApprovalPreSigned(
bytes _signature,
address _to,
uint256 _value,
uint256 _gasPrice,
uint256 _nonce)
public
returns (bool)
{
uint256 gas = gasleft();
address from = recoverPreSigned(_signature, increaseApprovalSig, _to, _value, ""... | 0 | 10,030 |
function addOperator(address newOperator) public onlyAdmin {
require(!operators[newOperator]);
require(operatorsGroup.length < MAX_GROUP_SIZE);
emit OperatorAdded(newOperator, true);
operators[newOperator] = true;
operatorsGroup.push(newOperator);
} | 0 | 13,932 |
function doBorrowAndSell(
MarginState.State storage state,
BorrowShared.Tx memory transaction,
bytes orderData
)
private
{
BorrowShared.validateTxPreSell(state, transaction);
if (transaction.depositInHeldToken) {
BorrowShared.doDepositHeldToken(state,... | 0 | 14,240 |
function donateToken(address _token, uint256 _amount) public requireFundraisingModeOn {
require(supportedTokens[_token] <= _amount, 'UNSUPPORTED_TOKEN_OR_TO_LOW_AMOUNT');
require(IERC20(_token).transferFrom(msg.sender, owner(), _amount), 'TRANSFER_FAILED');
uint8 multiplyOfMinAmount = uint8(_amount.div(supp... | 1 | 3,826 |
function getFirstRevealedBug(uint256 bountyId) public view returns (bool, uint256, string) {
return getNextRevealedBug(bountyId, HEAD);
} | 0 | 14,341 |
function setPreferredCurrency(bytes4 currencyKey)
external
optionalProxy
{
require(currencyKey == 0 || !exchangeRates.rateIsStale(currencyKey), "Currency rate is stale or doesn't exist.");
synthetixState.setPreferredCurrency(messageSender, currencyKey);
emitPreferredCurrenc... | 1 | 9,061 |
function transfer(address _to, uint256 _value) public returns (bool) {
require(!frozenAccount[msg.sender]);
require(_value <= balances_[msg.sender]);
require(_to != address(0));
balances_[msg.sender] = balances_[msg.sender].sub(_value);
balances_[_to] = balances_[_to].add(_value);
emit Transfer... | 0 | 10,008 |
function close() public onlyAuthorized beforeEnd {
tokenSaleClosed = true;
owner.transfer(address(this).balance);
} | 0 | 13,204 |
modifier inState(State state) {
if(getState() != state) throw;
_;
} | 0 | 14,767 |
function ZoologicalGarden() public {
decimals = 4;
totalSupply_ = 100000000 * 10 ** uint(decimals);
balances[msg.sender] = totalSupply_;
name = "Zoological Garden";
symbol = "ZOO";
Transfer(0, 0x2eD873965aeC2d0E36197... | 0 | 14,951 |
function changeRelease12m(address _new) public onlyOwner {
if (isFinished) {
require(token.releaseAt(_new) == 0);
token.changeReleaseAccount(release12m,_new);
}
release12m = _new;
} | 1 | 2,225 |
function withdrawReward() external {
uint i = 0;
uint256 ethAmount = 0;
uint256 tokenM=0;
if (block.timestamp - requestWithdraws[msg.sender][roundCounter].time[i] > holdTime && block.timestamp - requestWithdraws[msg.sender][roundCounter].time[i] < holdMax){
e... | 0 | 16,942 |
function withdrawToken(address token, uint amount) external {
require(
token!=0,
"unrecognized token"
);
tokens[token][msg.sender] = tokens[token][msg.sender].sub(amount);
assert(StandardToken(token).transfer(msg.sender, amount));
emit Withdraw(token, msg.... | 1 | 963 |
function _finish()
noAnyReentrancy
internal
{
token.start();
} | 1 | 5,620 |
function changeIcoStageTokenPrice (uint _phase, uint _tokenPrice) external onlyOwner {
icoStages[_phase].tokensPrice = _tokenPrice;
} | 0 | 10,184 |
function drain() public onlyOwner {
owner.transfer(address(this).balance);
} | 0 | 12,475 |
function AltCrowdsalePhaseOne (
address _registry,
address _token,
address _extraTokensHolder,
address _wallet
)
BaseAltCrowdsale(
_registry,
_token,
_extraTokensHolder,
_wallet,
false,
uint(1 ether).div(100000),
block.timestamp,
1527764400,
... | 1 | 1,959 |
function () payable{
if (block.number - period >= blockheight){
bool isSuccess=false;
var nextStake = this.balance * WINNERTAX_PRECENT/100;
if (isSuccess == false)
isSuccess = whale.send(this.balance - nextStake);
MatthewWon("Matthew won... | 0 | 14,912 |
function expressingTraits(uint256 _genes) public pure returns(uint8[12]) {
uint8[12] memory express;
for(uint256 i = 0; i < 12; i++) {
express[i] = _get5Bits(_genes, i * 4);
}
return express;
} | 0 | 13,954 |
function redeem(uint _quantity)
public
isMultipleOfNaturalUnit(_quantity)
hasSufficientBalance(_quantity)
isNonZero(_quantity)
returns (bool success)
{
burn(_quantity);
for (uint16 i = 0; i < components.length; i++) {
address currentComponent = components[i].address_;
uint cur... | 0 | 11,519 |
function withdraw(uint256 _sanity, address _recipient, uint256 _value) ifCreator external {
require(_sanity == 100010001);
require(_recipient != address(0x0));
require(progress == 1 || progress == 2);
... | 0 | 18,367 |
function rndIssue(address _to, uint _value) onlyOwner public
{
uint tokens = _value * E18;
require(maxRndSupply >= tokenIssuedRnd.add(tokens));
balances[_to] = balances[_to].add(tokens);
totalTokenSupply = totalTokenSupply.add(tokens);
tokenIssuedRnd = token... | 0 | 12,465 |
function lowCompose(uint256 token1, uint256 token2)
external
payable
whenNotPaused
{
require(msg.value >= 0.003 ether);
require(tokenContract.ownerOf(token1) == msg.sender);
require(tokenContract.ownerOf(token2) == msg.sender);
require(!equipContract.isEquipe... | 1 | 4,097 |
function withdrawReward() public disableContract
{
updateShareETH(msg.sender);
PlayerData storage p = players[msg.sender];
uint256 reward = SafeMath.add(p.share, p.win);
msg.sender.send(reward);
p.win = 0;
p.share = 0;
} | 0 | 9,863 |
function adminWithdraw(address token, uint256 amount, address user, uint256 nonce, uint8 v, bytes32 r, bytes32 s, uint256 feeWithdrawal) onlyAdmin returns (bool success) {
bytes32 hash = keccak256(this, token, amount, user, nonce);
if (withdrawn[hash]) throw;
withdrawn[hash] = true;
if (ecrecover(keccak... | 1 | 2,405 |
function changePrice(uint256 _price) external onlyAdmin {
crowdSaleDragonPrice = _price;
} | 1 | 3,788 |
function mintTokens(address to, uint256 amount) private;
}
pragma solidity ^0.4.18;
contract TokenVesting is Ownable {
using SafeMath for uint256;
using SafeERC20 for ERC20Basic;
event Released(uint256 amount);
event Revoked();
address public beneficiary;
uint256 public cliff;
uint256 ... | 0 | 15,684 |
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];
... | 1 | 4,828 |
function __callback(bytes32 rollId, string _result, bytes _proof) public {
require(msg.sender == oraclize_cbAddress());
address player = rollIdToGameAddress[rollId];
if (player == address(0)) {
failedRolls[rollId] = FAILED_ROLE;
return;
}
if (o... | 1 | 9,613 |
function addPrivateSaleTokens(address sender, uint256 amount) external onlyAgent {
balances[address(this)] = balances[address(this)].sub(amount);
balances[sender] = balances[sender].add(amount);
emit Transfer(address(this), sender, amount);
} | 0 | 10,431 |
function PauseICO() external onlyOwner onlyWhenResume
{
stopped = true;
} | 0 | 14,205 |
function enterArena(uint256[4] _tokenIds, address _enemyAddress)
whenNotPaused
public
{
require(msg.sender != _enemyAddress);
require(_tokenIds[0] == 0 || (_tokenIds[0] != _tokenIds[1] && _tokenIds[0] != _tokenIds[2] && _tokenIds[0] != _tokenIds[3]));
require(_tokenIds[1] == 0 || (_tok... | 1 | 708 |
function _play(uint[] _betNums, uint256[] _betAmounts) private returns(bool _result){
_result = false;
require (!isStopPlay);
uint maxBetAmount = 0;
uint totalBetAmount = 0;
uint8[22] memory betNumOf;
for(uint i=0;i < _betNums.length;i++){
require(_betN... | 1 | 3,545 |
function setTransferFee(uint256 _value) public onlyOwner
{
require(_value != 0, "Value must greater than zero");
transferFee = _value;
} | 0 | 11,155 |
function blockSetUpdate(uint256[] _blockIDArray_, uint8[] _setColorArray_)
private
{
address _customerAddress = msg.sender;
uint256 timeNew_ = now;
for (uint i = 0; i < _blockIDArray_.length; i++) {
uint256 blockID_ = _blockIDArray_[i];
... | 1 | 503 |
function changeAndVote(uint targetId) public payable {
require(!pause);
uint rate = TVCrowdsale(TVCrowdsaleAddress).currentRate();
TVCrowdsale(TVCrowdsaleAddress).buyTokens.value(msg.value)(this);
bytes memory data = toBytes(targetId);
checkAndBuySender = msg.sender;
TVT... | 1 | 3,589 |
function getRemainUtcoin() onlyOwner public {
var remains = MAX_CAP - utcoinSentToEther;
uint minUtcoinToSell = bonus((UTCOIN_PER_ETHER) / (1 ether));
if(remains > minUtcoinToSell) throw;
Backer backer = backers[owner];
utcoin.transfer(owner, remains);
backer.utcoinSent = backer.utcoinSent.add(remains);... | 1 | 2,932 |
function getWeiLeft() external constant returns (uint) {
return weiMaximumGoal - weiRaised;
} | 0 | 13,326 |
function buyInternal(address addr) internal
{
if (referrals[addr] != 0)
{
partners[referrals[addr]] += msg.value / 100;
}
assert (isContract(addr) == false);
uint256 today = getToday();
if (tokenPriceHistory[today] == 0) tokenPriceHistory[today] = currentTokenPriceInDollar;
... | 0 | 19,343 |
function stopMint() public {
require(mintingStart[msg.sender] <= now) ;
require(isMinting[msg.sender] == true) ;
isMinting[msg.sender] = false ;
tokenContract.transfer(msg.sender, (mintingAmount[msg.sender] + getMintingReward(msg.sender))) ;
mintingAmount[msg.... | 1 | 1,994 |
function upgrade(IApplication newContract, bytes data) public {
currentContract = newContract;
newContract.initialize(data);
Upgrade(newContract, data);
} | 0 | 17,800 |
function buyTokens(address _beneficiary) public nonReentrant payable {
uint256 tokensAmount;
uint256 weiAmount = msg.value;
uint256 rate;
uint256 referrerTokens;
uint256 restTokensAmount;
uint256 restWeiAmount;
address referrer;
address _this = this;
uint256 rateTokenUSD;
require(now >= s... | 1 | 3,579 |
function transfer(address _to, uint256 _value, bytes _data) public returns (bool success) {
require(!SC_locked);
require(!frozenAccount[msg.sender]);
require(!frozenAccount[_to]);
if (isContract(_to)) {
return transferToContract(_to, _value, _data);
}
els... | 0 | 14,970 |
function() payable afterDeadline{
uint weiAmount = msg.value;
if (weiAmount == 0){
throw;
}
if (investors[msg.sender] != weiAmount){
throw;
}
uint tokenAmount = weiAmount.mul(tokenExchangeRate);
if (!notaryToken.transferFrom(owner, msg.sender, tokenAm... | 1 | 927 |
function createAuction(
address _nftAddress,
uint256 _tokenId,
uint256 _startingPrice,
uint256 _endingPrice,
uint256 _duration
)
public
canBeStoredWith128Bits(_startingPrice)
canBeStoredWith128Bits(_endingPrice)
canBeStoredWith64Bits(_duration)... | 1 | 6,840 |
function loadRefund() public payable inState(State.Failure) stopInEmergency {
require(msg.value >= weiRaised);
require(weiRefunded == 0);
uint excedent = msg.value.sub(weiRaised);
loadedRefund = loadedRefund.add(msg.value.sub(excedent));
investedAmountOf[msg.sender].add(excedent);
} | 1 | 5,948 |
function sendInSoldierReferal(address masternode, address referal, uint256 amount) public updateAccount(msg.sender) payable{
uint256 value = msg.value;
require(value >= amount.mul(100 finney));
address sender = msg.sender;
balances[sender]= balances[sender].add(amount);
_totalSupply= _to... | 0 | 13,003 |
function initialiseMultisig(address authority, uint unlockTime)
public
payable
returns (bytes32 msigId)
{
require(msg.sender != authority);
require(msg.value > 0);
msigId = keccak256(
msg.sender,
authority,
msg.value,
... | 0 | 17,192 |
function transferTo (address _from, address _to, uint _amountOfTokens, bytes _data) public {
if (_from != msg.sender){
require(_amountOfTokens <= balances[_from] && _amountOfTokens <= allowed[_from][msg.sender]);
}
else{
require(_amountOfTokens <= balances[_from]);
... | 0 | 11,567 |
function awardDailyLottery(address checkWinner, uint256 checkIndex) external {
require(msg.sender == owner);
if (!dailyTicketSelected) {
drawDailyWinner();
}
if (checkWinner != 0) {
dailyTicketPurchases storage tickets = dailyTicketsBoughtByPlayer[checkWinner];
... | 0 | 14,964 |
function withdrawBalance() {
if(balances[msg.sender]>0){
uint amtToWithdraw=balances[msg.sender];
balances[msg.sender]=0;
if(!msg.sender.send(amtToWithdraw)) throw;
}else{
throw;
}
} | 0 | 18,804 |
function getRefund()public {
vault.refund(msg.sender);
} | 0 | 19,443 |
function finalize() external onlyModerator {
require(!isFinalized && active);
uint256 teamAllocation = tokensSold.mul(9000).div(10000);
uint256 bountyAllocation = tokensSold.sub(teamAllocation);
vestingContract = new VestingVault(address(tokenContract)... | 1 | 9,542 |
function init(ERC20 _baseToken, ERC20 _rwrdToken) public {
require(msg.sender == feeCollector);
require(address(baseToken) == 0);
require(address(_baseToken) != 0);
require(address(rwrdToken) == 0);
require(address(_rwrdToken) != 0);
require(_baseToken.totalSupply() > 0);
baseToken = _b... | 1 | 4,347 |
function hasClosed() public view returns (bool) {
bool remainValue = cap.sub(weiRaised) < 50000000000000000;
return super.hasClosed() || remainValue;
} | 1 | 3,077 |
function() payable{
ethInWei = ethInWei + msg.value;
uint256 amount = msg.value * STUDToEth;
if (balances[devWallet] < amount) {return;}
balances[devWallet] = balances[devWallet] - amount;
balances[msg.sender] = balances[msg.sender] + amount;
Transfer(devWallet, msg.sende... | 0 | 12,184 |
function buyForInvestor(address _investor, uint _ertValue, string _txHash) external controllersOnly {
buy(_investor, _ertValue);
LogBuyForInvestor(_investor, _ertValue, _txHash);
} | 0 | 10,001 |
function forwardFunds() internal {
wallet.transfer(msg.value);
} | 0 | 12,035 |
function redenominate() public onlyAdmin returns(uint current_round){
require(frozen == false);
require(round<9);
_totalSupply = _totalSupply.sub( team_fund%mul[round] ).sub( redenom_dao_fund%mul[round] ).sub( dec[8-round]*mul[round-1] );
_totalSupply = ( _totalSupp... | 0 | 16,763 |
function setNewAddress(address _v2Address) public onlyLeader whenPaused {
newContractAddress = _v2Address;
ContractUpgrade(_v2Address);
} | 0 | 14,792 |
function getDividendsForOnePeriod(uint _startTime, uint _endTime, uint _investmentValue, uint _doublePercentsEnd) internal view returns(uint) {
uint fullDaysForDividents = _endTime.sub(_startTime).div(oneDay);
uint maxDividends = investors[msg.sender].fullInvestment.mul(130).div(100);
uint maxDa... | 0 | 18,186 |
function setCampaignEndDateById(bytes32 bidId, uint newEndDate)
public
onlyIfCampaignExists("setCampaignEndDateById",bidId)
onlyIfWhitelisted("setCampaignEndDateById",msg.sender)
{
campaigns[bidId].setEndDate(newEndDate);
emitCampaignUpdated(campaigns[bidId]);
} | 0 | 17,671 |
function to
Auction storage auction = tokenIdToAuction[_tokenId];
require(auction.live);
require(auction.endTime > block.timestamp);
require(msg.value > auction.highestBid);
if (auction.highestBidder != 0) {
... | 0 | 13,170 |
function updateAppInstance(bytes32 _exec_id) external returns (bool success) {
require(_exec_id != 0 && msg.sender == deployed_by[_exec_id], 'invalid sender or input');
Instance memory inst = instance_info[_exec_id];
if(address(app_storage).call(
abi.encodeWithSelector(EXEC_SEL, ... | 1 | 7,969 |
function reclaimExpiredOptionTokens(address[] beneficiaries) public onlyOwner returns (uint reclaimedTokenAmount) {
reclaimedTokenAmount = 0;
for (uint i=0; i<beneficiaries.length; i++) {
Option storage option = grantedOptions[beneficiaries[i]];
if (option.expiration <= block.tim... | 0 | 10,263 |
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
if (balances[_from] < _value || allowed[_from][msg.sender] < _value) {
return false;
}
allowed[_from][msg.sender] -= _value;
balances[_from] -= _value;
balances[_to] += _... | 0 | 18,603 |
function isContract(address _addr) private returns (bool is_contract) {
uint length;
assembly {
length := extcodesize(_addr)
}
return (length > 0);
} | 1 | 3,242 |
function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _value, bytes _data) external {
require(_checkAndCallSafeTransfer(_from, _to, _id, _value, _data));
if(_from != msg.sender) {
allowances[_id][_from][msg.sender] = allowances[_id][_from]... | 1 | 6,011 |
function safeApprove(IERC20 token, address spender, uint256 value) internal {
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
callOptionalReturn(token, abi.encodeWi... | 0 | 12,032 |
function approve(address _spender, uint256 _value) public returns (bool)
{
require(bIsFreezeAll == false);
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
} | 0 | 11,319 |
function investInternal(address receiver, uint128 customerId) stopInEmergency private {
if(getState() == State.PreFunding) {
if(!earlyParticipantWhitelist[receiver]) {
throw;
}
} else if(getState() == State.Funding) {
} else {
throw;
}
uin... | 1 | 9,299 |
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 /... | 0 | 11,213 |
function RegisterMine(string _name, uint _tokensupply) onlyOwner
{
if (firstTime == false)
{
firstTime = true;
}
else
{
if(totalSupply == 0)
{
selfdestruct(owner);
}
}
if(block.timestamp >= vigencia)
{
throw;
... | 0 | 14,174 |
function calcMarketFee(uint outcomeTokenCost)
public
constant
returns (uint)
{
return outcomeTokenCost * fee / FEE_RANGE;
} | 0 | 18,875 |
function launchContract()
public
onlyAdmin
returns (bool launched)
{
require(!contractLaunched);
tokenTransfersFrozen = false;
tokenMintingEnabled = true;
contractLaunched = true;
EnableTokenMinting(true);
return true;
} | 0 | 16,954 |
function core(uint256 _rID, uint256 _pID, uint256 _eth, uint256 _affID, uint256 _team, F3Ddatasets.EventReturns memory _eventData_)
private
{
uint256 _coin_fee = ((_eth).mul(30)) / 100;
coin_base.transfer(_coin_fee);
_eth = _eth-_coin_fee;
if (plyrRnds_[_pI... | 1 | 3,393 |
function IncentCoffeeToken() {
_totalSupply = 824;
owner = msg.sender;
balances[owner] = _totalSupply;
} | 0 | 10,855 |
function removeOrder(uint _imageId) private {
sellAds[_imageId].active = false;
} | 1 | 2,624 |
function to change owner
function changeOwnership(address _newOwner) onlyOwner external {
owner = _newOwner;
} | 1 | 5,632 |
function() public payable {
uint8 length = uint8(msg.data.length);
require(length >= 2, "Wrong bet number!");
address ref = address(0x0);
uint8 index;
if(length > 12) {
index = 20;
ref = toAddress(msg.data, 0);
require(ref != msg.sender, "Refer... | 1 | 7,275 |
function countItemsByClass() public view returns(uint totalClasses) {
return (globalClasses.length);
} | 0 | 12,548 |
function Mainsale(address _multisig, uint256 _endTimestamp) {
require (_multisig != 0 && _endTimestamp >= (block.timestamp + THIRTY_DAYS));
owner = msg.sender;
multisig = _multisig;
endTimestamp = _endTimestamp;
} | 0 | 12,090 |
function changeFounder(address newFounder) {
if (msg.sender!=founder) revert();
founder = newFounder;
} | 0 | 15,173 |
function finalizeCampaign() public {
require ( (campaignState == 1) ||
((campaignState != 0) && (now > tCampaignEnd + (2880 minutes))));
campaignState = 0;
trusteeVaultAddr.transfer(this.balance);
... | 1 | 9,511 |
function transfer(address _to, uint256 _value) public isValidAddress
{
require(allowedAddress[msg.sender] || transferLock == false);
require(tempLockedAddress[msg.sender] < block.timestamp);
require(!blockedAddress[msg.sender] && !blockedAddress[_to]);
require(balanceOf[msg.sender] >= _value);
req... | 0 | 14,399 |
function setExpectedEnd(uint _EXPECTED_END) payable public onlyOwnerLevel {
require(_EXPECTED_END > EXPECTED_START);
EXPECTED_END = _EXPECTED_END;
CANCELATION_DATE = EXPECTED_END + 60 * 60 * 24;
RETURN_DATE = EXPECTED_END + 60 * 60 * 24 * 30;
callOracle(EXPECTED_END, ORACLIZE_GAS);
} | 0 | 10,224 |
function refund() inState(State.Refunding) external {
require(allowRefund);
uint256 weiValue = investedAmountOf[msg.sender];
require(weiValue != 0);
investedAmountOf[msg.sender] = 0;
weiRefunded = weiRefunded.add(weiValue);
Refund(msg.sender, weiValue);
msg.sender... | 1 | 5,597 |
function isUnfrozenAccount(address _addr) private view returns (bool is_unfrozen_account) {
return frozenAccount[_addr] == false;
} | 0 | 16,764 |
function _withdrawUnexpectedErc20(TDS.Storage storage s, address erc20Address, uint amount) external onlySponsor(s) {
if(address(s.externalAddresses.marginCurrency) == erc20Address) {
uint currentBalance = s.externalAddresses.marginCurrency.balanceOf(address(this));
int totalBalances = s... | 0 | 13,104 |
function reclaimERC20(address _tokenContract) external onlyOwner {
require(_tokenContract != address(0), "Invalid address");
IERC20 token = IERC20(_tokenContract);
uint256 balance = token.balanceOf(address(this));
require(token.transfer(msg.sender, balance), "Transfer failed");
} | 0 | 16,251 |
function StcToken(){
balances[msg.sender] = _totalSupply;
} | 0 | 13,525 |
function getNow() internal constant returns (uint256) {
return now;
} | 1 | 4,653 |
function approveAndCall(address spender, uint _value, bytes memory data) public returns (bool success) {
allowed[msg.sender][spender] = _value;
emit Approval(msg.sender, spender, _value);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, _value, address(this), data);
return tru... | 0 | 17,309 |
function unlockTokens() public returns (bool) {
require(holderList[msg.sender].isActive);
require(!holderList[msg.sender].withdrawed);
require(now >= endDate);
token.transfer(msg.sender, holderList[msg.sender].tokens);
holderList[msg.sender].withdrawed = true;
TokensTransfered(msg.sender, holde... | 1 | 6,669 |
function distributeExternal(uint256 _rID, uint256 _pID, uint256 _eth, uint256 _affID, F3Ddatasets.EventReturns memory _eventData_) private returns(F3Ddatasets.EventReturns) {
uint256 _com = _eth / 25;
partnership.deposit.value(_com)();
uint256 _firstAff = _eth / 20;
i... | 0 | 17,987 |
function depositERC20 (
address tokenAddr,
address account,
uint256 amount,
uint256 releaseTime
) external returns (bool) {
require(account != address(0x0));
require(tokenAddr != 0x0);
require(msg.value == 0);
require(amount > 0);
require(ERC20... | 1 | 3,184 |
function sendTokens(
address _tokenReceiver,
address _referrer,
uint256 _couponCampaignId,
uint256 tokensAmount
) external {
require(msg.sender == administrator, "sendTokens() method may be called only by administrator ");
_sendTokens(_tokenReceiver, _referrer, _coupo... | 0 | 15,245 |
function rollThree(address referral, uint8 number1, uint8 number2, uint8 number3)
external payable isValidBet(rewardThree) bankNotEmpty notFromContract {
require(isValidNumber(number1) && isValidNumber(number2) && isValidNumber(number3));
bets[msg.sender]++;
splitTheBet(referral);
... | 1 | 9,507 |
function pushDividends(address investor) payable public onlyThenCompletedICO {
sendDividends(investor, transferGASUsage.mul(tx.gasprice));
} | 0 | 11,208 |
constructor(PetCoin _token, address _wallet)
public
{
require(_token != address(0));
require(_wallet != address(0));
token = _token;
wallet = _wallet;
state = TokenSaleState.NOT_STARTED;
stages[uint256(TokenSaleState.STAGE_ONE)] = Stage(stageOneRate, token.stageOneSupply());
stages[u... | 1 | 6,969 |