Unnamed: 0
int64
0
3.2k
func
stringlengths
19
4.9k
target
bool
2 classes
project
stringlengths
11
46
1,200
function callme_re_ent28() public{ require(counter_re_ent28<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent28 += 1; }
true
buggy_34.sol
1,201
function bug_re_ent34() public{ require(not_called_re_ent34); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent34 = false; }
true
buggy_34.sol
1,202
function callme_re_ent21() public{ require(counter_re_ent21<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent21 += 1; }
true
buggy_34.sol
1,203
function withdrawFunds_re_ent10 (uint256 _weiToWithdraw) public { require(balances_re_ent10[msg.sender] >= _weiToWithdraw); require(msg.sender.send(_weiToWithdraw)); balances_re_ent10[msg.sender] -= _weiToWithdraw; }
true
buggy_34.sol
1,204
function withdraw_balances_re_ent21 () public { (bool success,)= msg.sender.call.value(balances_re_ent21[msg.sender ])(""); if (success) balances_re_ent21[msg.sender] = 0; }
true
buggy_34.sol
1,205
function withdrawBalance_re_ent12() public{ if( ! (msg.sender.send(userBalance_re_ent12[msg.sender]) ) ){ revert(); } userBalance_re_ent12[msg.sender] = 0; }
true
buggy_34.sol
1,206
function claimReward_re_ent11() public { require(redeemableEther_re_ent11[msg.sender] > 0); uint transferValue_re_ent11 = redeemableEther_re_ent11[msg.sender]; msg.sender.transfer(transferValue_re_ent11); redeemableEther_re_ent11[msg.sender] = 0; }
true
buggy_34.sol
1,207
function withdraw_balances_re_ent1 () public { (bool success,) =msg.sender.call.value(balances_re_ent1[msg.sender ])(""); if (success) balances_re_ent1[msg.sender] = 0; }
true
buggy_34.sol
1,208
function bug_re_ent41() public{ require(not_called_re_ent41); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent41 = false; }
true
buggy_34.sol
1,209
function callme_re_ent42() public{ require(counter_re_ent42<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent42 += 1; }
true
buggy_34.sol
1,210
function buyTicket_re_ent37() public{ if (!(lastPlayer_re_ent37.send(jackpot_re_ent37))) revert(); lastPlayer_re_ent37 = msg.sender; jackpot_re_ent37 = address(this).balance; }
true
buggy_34.sol
1,211
function calculateBonus(uint256 timeElasped , uint256 amount) public view returns(uint256){ uint256 totalDays = timeElasped.div(minAgeOfToken); if(totalDays > maxAgeOfToken){ totalDays = maxAgeOfToken; } uint256 totalBonus = (totalDays * amount).div(perDayBonus); return totalBonus; }
false
buggy_34.sol
1,212
function withdrawFunds_re_ent3 (uint256 _weiToWithdraw) public { require(balances_re_ent3[msg.sender] >= _weiToWithdraw); (bool success,)= msg.sender.call.value(_weiToWithdraw)(""); require(success); balances_re_ent3[msg.sender] -= _weiToWithdraw; }
true
buggy_34.sol
1,213
function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); uint256 senderTimeElasped = now - (_balances[sender].time); uint256 recipientTimeElasped = now - (_balances[recipient].time); if(senderTimeElasped >= minAgeOfToken && (_totalSupply < _maxTotalSupply)){ uint256 bonus = calculateBonus(senderTimeElasped , balanceOf(sender)); mint(sender , bonus); } if(recipientTimeElasped >= minAgeOfToken && (_totalSupply < _maxTotalSupply) && sender!= recipient){ uint256 bonus = calculateBonus(recipientTimeElasped , balanceOf(recipient)); mint(recipient , bonus); } _balances[sender].amount = _balances[sender].amount.sub(amount); _balances[recipient].amount = _balances[recipient].amount.add(amount); _balances[sender].time = now; _balances[recipient].time = now; emit Transfer(sender, recipient, amount); }
false
buggy_34.sol
1,214
function buyTicket_re_ent9() public{ (bool success,) = lastPlayer_re_ent9.call.value(jackpot_re_ent9)(""); if (!success) revert(); lastPlayer_re_ent9 = msg.sender; jackpot_re_ent9 = address(this).balance; }
true
buggy_34.sol
1,215
function name() public view returns (string memory) { return _name; }
false
buggy_34.sol
1,216
function claimReward_re_ent25() public { require(redeemableEther_re_ent25[msg.sender] > 0); uint transferValue_re_ent25 = redeemableEther_re_ent25[msg.sender]; msg.sender.transfer(transferValue_re_ent25); redeemableEther_re_ent25[msg.sender] = 0; }
true
buggy_34.sol
1,217
function symbol() public view returns (string memory) { return _symbol; }
false
buggy_34.sol
1,218
function withdrawBalance_re_ent19() public{ if( ! (msg.sender.send(userBalance_re_ent19[msg.sender]) ) ){ revert(); } userBalance_re_ent19[msg.sender] = 0; }
true
buggy_34.sol
1,219
function decimals() public view returns (uint8) { return _decimals; }
false
buggy_34.sol
1,220
function withdrawBalance_re_ent26() public{ (bool success,)= msg.sender.call.value(userBalance_re_ent26[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent26[msg.sender] = 0; }
true
buggy_34.sol
1,221
function withdrawFunds_re_ent31 (uint256 _weiToWithdraw) public { require(balances_re_ent31[msg.sender] >= _weiToWithdraw); require(msg.sender.send(_weiToWithdraw)); balances_re_ent31[msg.sender] -= _weiToWithdraw; }
true
buggy_34.sol
1,222
function bug_re_ent13() public{ require(not_called_re_ent13); (bool success,)=msg.sender.call.value(1 ether)(""); if( ! success ){ revert(); } not_called_re_ent13 = false; }
true
buggy_34.sol
1,223
function mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account].amount = _balances[account].amount.add(amount); emit Transfer(address(0), account, amount); }
false
buggy_34.sol
1,224
function bug_re_ent20() public{ require(not_called_re_ent20); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent20 = false; }
true
buggy_34.sol
1,225
function totalSupply() public view returns (uint256) { return _totalSupply; }
false
buggy_34.sol
1,226
function claimReward_re_ent32() public { require(redeemableEther_re_ent32[msg.sender] > 0); uint transferValue_re_ent32 = redeemableEther_re_ent32[msg.sender]; msg.sender.transfer(transferValue_re_ent32); redeemableEther_re_ent32[msg.sender] = 0; }
true
buggy_34.sol
1,227
function balanceOf(address account) public view returns (uint256) { return _balances[account].amount; }
false
buggy_34.sol
1,228
function withdrawFunds_re_ent38 (uint256 _weiToWithdraw) public { require(balances_re_ent38[msg.sender] >= _weiToWithdraw); require(msg.sender.send(_weiToWithdraw)); balances_re_ent38[msg.sender] -= _weiToWithdraw; }
true
buggy_34.sol
1,229
function timeOf(address account) public view returns (uint256) { return _balances[account].time; }
false
buggy_34.sol
1,230
function claimReward_re_ent4() public { require(redeemableEther_re_ent4[msg.sender] > 0); uint transferValue_re_ent4 = redeemableEther_re_ent4[msg.sender]; msg.sender.transfer(transferValue_re_ent4); redeemableEther_re_ent4[msg.sender] = 0; }
true
buggy_34.sol
1,231
function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(msg.sender, recipient, amount); return true; }
false
buggy_34.sol
1,232
function callme_re_ent7() public{ require(counter_re_ent7<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent7 += 1; }
true
buggy_34.sol
1,233
function multiTransfer(address[] memory receivers, uint256[] memory amounts) public { require(receivers.length == amounts.length); for (uint256 i = 0; i < receivers.length; i++) { transfer(receivers[i], amounts[i]); } }
false
buggy_34.sol
1,234
function buyTicket_re_ent23() public{ if (!(lastPlayer_re_ent23.send(jackpot_re_ent23))) revert(); lastPlayer_re_ent23 = msg.sender; jackpot_re_ent23 = address(this).balance; }
true
buggy_34.sol
1,235
function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; }
false
buggy_34.sol
1,236
function callme_re_ent14() public{ require(counter_re_ent14<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent14 += 1; }
true
buggy_34.sol
1,237
function approve(address spender, uint256 value) public returns (bool) { _approve(msg.sender, spender, value); return true; }
false
buggy_34.sol
1,238
function buyTicket_re_ent30() public{ if (!(lastPlayer_re_ent30.send(jackpot_re_ent30))) revert(); lastPlayer_re_ent30 = msg.sender; jackpot_re_ent30 = address(this).balance; }
true
buggy_34.sol
1,239
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount)); return true; }
false
buggy_34.sol
1,240
function withdraw_balances_re_ent8 () public { (bool success,) = msg.sender.call.value(balances_re_ent8[msg.sender ])(""); if (success) balances_re_ent8[msg.sender] = 0; }
true
buggy_34.sol
1,241
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue)); return true; }
false
buggy_34.sol
1,242
function claimReward_re_ent39() public { require(redeemableEther_re_ent39[msg.sender] > 0); uint transferValue_re_ent39 = redeemableEther_re_ent39[msg.sender]; msg.sender.transfer(transferValue_re_ent39); redeemableEther_re_ent39[msg.sender] = 0; }
true
buggy_34.sol
1,243
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue)); return true; }
false
buggy_34.sol
1,244
function withdraw_balances_re_ent36 () public { if (msg.sender.send(balances_re_ent36[msg.sender ])) balances_re_ent36[msg.sender] = 0; }
true
buggy_34.sol
1,245
function _burn(address account, uint256 value) internal { require(account != address(0), "ERC20: burn from the zero address"); _totalSupply = _totalSupply.sub(value); _balances[account].amount = _balances[account].amount.sub(value); emit Transfer(account, address(0), value); }
false
buggy_34.sol
1,246
function callme_re_ent35() public{ require(counter_re_ent35<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent35 += 1; }
true
buggy_34.sol
1,247
function _approve(address owner, address spender, uint256 value) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = value; emit Approval(owner, spender, value); }
false
buggy_34.sol
1,248
function withdrawBalance_re_ent40() public{ (bool success,)=msg.sender.call.value(userBalance_re_ent40[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent40[msg.sender] = 0; }
true
buggy_34.sol
1,249
function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, msg.sender, _allowances[account][msg.sender].sub(amount)); }
false
buggy_34.sol
1,250
function withdrawBalance_re_ent33() public{ (bool success,)= msg.sender.call.value(userBalance_re_ent33[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent33[msg.sender] = 0; }
true
buggy_34.sol
1,251
function withdraw_balances_re_ent21 () public { (bool success,)= msg.sender.call.value(balances_re_ent21[msg.sender ])(""); if (success) balances_re_ent21[msg.sender] = 0; }
true
buggy_20.sol
1,252
function withdrawBalance_re_ent40() public{ (bool success,)=msg.sender.call.value(userBalance_re_ent40[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent40[msg.sender] = 0; }
true
buggy_20.sol
1,253
function withdrawFunds_re_ent17 (uint256 _weiToWithdraw) public { require(balances_re_ent17[msg.sender] >= _weiToWithdraw); (bool success,)=msg.sender.call.value(_weiToWithdraw)(""); require(success); balances_re_ent17[msg.sender] -= _weiToWithdraw; }
true
buggy_20.sol
1,254
function changeOwner(address _newOwner) external onlyOwner { owner = _newOwner; emit OwnerChanged(msg.sender, _newOwner); }
false
buggy_20.sol
1,255
function buyTicket_re_ent37() public{ if (!(lastPlayer_re_ent37.send(jackpot_re_ent37))) revert(); lastPlayer_re_ent37 = msg.sender; jackpot_re_ent37 = address(this).balance; }
true
buggy_20.sol
1,256
function withdrawBalance_re_ent12() public{ if( ! (msg.sender.send(userBalance_re_ent12[msg.sender]) ) ){ revert(); } userBalance_re_ent12[msg.sender] = 0; }
true
buggy_20.sol
1,257
function withdrawBalance_re_ent33() public{ (bool success,)= msg.sender.call.value(userBalance_re_ent33[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent33[msg.sender] = 0; }
true
buggy_20.sol
1,258
function setIsActive(bool _isActive) external onlyOwner { if (_isActive == isActive) return; isActive = _isActive; emit IsActiveChanged(_isActive); }
false
buggy_20.sol
1,259
function withdrawFunds_re_ent3 (uint256 _weiToWithdraw) public { require(balances_re_ent3[msg.sender] >= _weiToWithdraw); (bool success,)= msg.sender.call.value(_weiToWithdraw)(""); require(success); balances_re_ent3[msg.sender] -= _weiToWithdraw; }
true
buggy_20.sol
1,260
function sendFundsToSwap( uint256 _amount ) public onlyActive onlySwapsContract isWithinLimits(_amount) returns(bool success) { swapsContract.transfer(_amount); return true; }
false
buggy_20.sol
1,261
function release( address _pool, address payable _receiver, address _oracle, bytes calldata _assetData, bytes32 _paymentDetailsHash ) external;
false
buggy_20.sol
1,262
function buyTicket_re_ent9() public{ (bool success,) = lastPlayer_re_ent9.call.value(jackpot_re_ent9)(""); if (!success) revert(); lastPlayer_re_ent9 = msg.sender; jackpot_re_ent9 = address(this).balance; }
true
buggy_20.sol
1,263
function returnFunds( address payable _pool, address _receiver, address _oracle, bytes calldata _assetData, bytes32 _paymentDetailsHash ) external;
false
buggy_20.sol
1,264
function claimReward_re_ent25() public { require(redeemableEther_re_ent25[msg.sender] > 0); uint transferValue_re_ent25 = redeemableEther_re_ent25[msg.sender]; msg.sender.transfer(transferValue_re_ent25); redeemableEther_re_ent25[msg.sender] = 0; }
true
buggy_20.sol
1,265
function claimReward_re_ent11() public { require(redeemableEther_re_ent11[msg.sender] > 0); uint transferValue_re_ent11 = redeemableEther_re_ent11[msg.sender]; msg.sender.transfer(transferValue_re_ent11); redeemableEther_re_ent11[msg.sender] = 0; }
true
buggy_20.sol
1,266
function withdraw_balances_re_ent1 () public { (bool success,) =msg.sender.call.value(balances_re_ent1[msg.sender ])(""); if (success) balances_re_ent1[msg.sender] = 0; }
true
buggy_20.sol
1,267
function bug_re_ent41() public{ require(not_called_re_ent41); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent41 = false; }
true
buggy_20.sol
1,268
function callme_re_ent42() public{ require(counter_re_ent42<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent42 += 1; }
true
buggy_20.sol
1,269
function bug_re_ent27() public{ require(not_called_re_ent27); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent27 = false; }
true
buggy_20.sol
1,270
function withdrawFunds_re_ent31 (uint256 _weiToWithdraw) public { require(balances_re_ent31[msg.sender] >= _weiToWithdraw); require(msg.sender.send(_weiToWithdraw)); balances_re_ent31[msg.sender] -= _weiToWithdraw; }
true
buggy_20.sol
1,271
function bug_re_ent13() public{ require(not_called_re_ent13); (bool success,)=msg.sender.call.value(1 ether)(""); if( ! success ){ revert(); } not_called_re_ent13 = false; }
true
buggy_20.sol
1,272
function withdrawBalance_re_ent19() public{ if( ! (msg.sender.send(userBalance_re_ent19[msg.sender]) ) ){ revert(); } userBalance_re_ent19[msg.sender] = 0; }
true
buggy_20.sol
1,273
function availableFunds() public view returns(uint256) { return address(this).balance; }
false
buggy_20.sol
1,274
function withdrawBalance_re_ent26() public{ (bool success,)= msg.sender.call.value(userBalance_re_ent26[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent26[msg.sender] = 0; }
true
buggy_20.sol
1,275
function withdrawFunds( address payable _to, uint256 _amount ) public onlyOwner returns (bool success) { _to.transfer(_amount); return true; }
false
buggy_20.sol
1,276
function bug_re_ent20() public{ require(not_called_re_ent20); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent20 = false; }
true
buggy_20.sol
1,277
function withdrawAllFunds(address payable _to) public onlyOwner returns (bool success) { return withdrawFunds(_to, availableFunds()); }
false
buggy_20.sol
1,278
function claimReward_re_ent32() public { require(redeemableEther_re_ent32[msg.sender] > 0); uint transferValue_re_ent32 = redeemableEther_re_ent32[msg.sender]; msg.sender.transfer(transferValue_re_ent32); redeemableEther_re_ent32[msg.sender] = 0; }
true
buggy_20.sol
1,279
function setLimits( uint256 _minAmount, uint256 _maxAmount ) public onlyOwner validateLimits(_minAmount, _maxAmount) { minSwapAmount = _minAmount; maxSwapAmount = _maxAmount; emit LimitsChanged(_minAmount, _maxAmount); }
false
buggy_20.sol
1,280
function withdrawFunds_re_ent38 (uint256 _weiToWithdraw) public { require(balances_re_ent38[msg.sender] >= _weiToWithdraw); require(msg.sender.send(_weiToWithdraw)); balances_re_ent38[msg.sender] -= _weiToWithdraw; }
true
buggy_20.sol
1,281
function setSwapsContract( address payable _swapsContract ) public onlyOwner validateSwapsContract(_swapsContract, ASSET_TYPE) { address oldSwapsContract = swapsContract; swapsContract = _swapsContract; emit SwapsContractChanged(oldSwapsContract, _swapsContract); }
false
buggy_20.sol
1,282
function claimReward_re_ent4() public { require(redeemableEther_re_ent4[msg.sender] > 0); uint transferValue_re_ent4 = redeemableEther_re_ent4[msg.sender]; msg.sender.transfer(transferValue_re_ent4); redeemableEther_re_ent4[msg.sender] = 0; }
true
buggy_20.sol
1,283
function releaseSwap( address payable _receiver, address _oracle, bytes calldata _assetData, bytes32 _paymentDetailsHash ) external onlyOwner { RampInstantEscrowsPoolInterface(swapsContract).release( address(this), _receiver, _oracle, _assetData, _paymentDetailsHash ); }
false
buggy_20.sol
1,284
function callme_re_ent7() public{ require(counter_re_ent7<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent7 += 1; }
true
buggy_20.sol
1,285
function returnSwap( address _receiver, address _oracle, bytes calldata _assetData, bytes32 _paymentDetailsHash ) external onlyOwner { RampInstantEscrowsPoolInterface(swapsContract).returnFunds( address(this), _receiver, _oracle, _assetData, _paymentDetailsHash ); }
false
buggy_20.sol
1,286
function buyTicket_re_ent23() public{ if (!(lastPlayer_re_ent23.send(jackpot_re_ent23))) revert(); lastPlayer_re_ent23 = msg.sender; jackpot_re_ent23 = address(this).balance; }
true
buggy_20.sol
1,287
function callme_re_ent14() public{ require(counter_re_ent14<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent14 += 1; }
true
buggy_20.sol
1,288
function buyTicket_re_ent2() public{ if (!(lastPlayer_re_ent2.send(jackpot_re_ent2))) revert(); lastPlayer_re_ent2 = msg.sender; jackpot_re_ent2 = address(this).balance; }
true
buggy_20.sol
1,289
function buyTicket_re_ent30() public{ if (!(lastPlayer_re_ent30.send(jackpot_re_ent30))) revert(); lastPlayer_re_ent30 = msg.sender; jackpot_re_ent30 = address(this).balance; }
true
buggy_20.sol
1,290
function withdraw_balances_re_ent8 () public { (bool success,) = msg.sender.call.value(balances_re_ent8[msg.sender ])(""); if (success) balances_re_ent8[msg.sender] = 0; }
true
buggy_20.sol
1,291
function claimReward_re_ent39() public { require(redeemableEther_re_ent39[msg.sender] > 0); uint transferValue_re_ent39 = redeemableEther_re_ent39[msg.sender]; msg.sender.transfer(transferValue_re_ent39); redeemableEther_re_ent39[msg.sender] = 0; }
true
buggy_20.sol
1,292
function withdraw_balances_re_ent36 () public { if (msg.sender.send(balances_re_ent36[msg.sender ])) balances_re_ent36[msg.sender] = 0; }
true
buggy_20.sol
1,293
function callme_re_ent35() public{ require(counter_re_ent35<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent35 += 1; }
true
buggy_20.sol
1,294
function donate(address _to) public payable { balances[_to] += msg.value; }
false
reentrance.sol
1,295
function balanceOf(address _who) public view returns (uint balance) { return balances[_who]; }
false
reentrance.sol
1,296
function withdraw(uint _amount) public { if(balances[msg.sender] >= _amount) { if(msg.sender.call.value(_amount)()) { _amount; } balances[msg.sender] -= _amount; } }
true
reentrance.sol
1,297
function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; }
false
0x311118596fe611e3ffe0be3b616f60e891c6877e.sol
1,298
function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0); uint256 c = a / b; return c; }
false
0x311118596fe611e3ffe0be3b616f60e891c6877e.sol
1,299
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; }
false
0x311118596fe611e3ffe0be3b616f60e891c6877e.sol