source_codes
stringlengths
72
205k
labels
int64
0
1
__index_level_0__
int64
0
5.56k
pragma solidity 0.4.25; library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(c >= a); } function sub(uint a, uint b) internal pure returns (uint c) { require(b <= a); c = a - b; } function mul(uint a, uint b) internal pu...
0
2,332
pragma solidity ^ 0.4.25; contract ERC223ReceivingContract { function tokenFallback(address _from, uint _value, bytes _data); } contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); } library SafeMath { function mul(uint256 a, uint256 b) ...
1
2,717
pragma solidity ^0.4.14; contract Ownable { address public owner; function Ownable() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(address newOwner) public onlyOwner { if (newOw...
0
2,079
pragma solidity ^0.4.24; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 ...
1
3,389
contract DAO { function balanceOf(address addr) returns (uint); function transferFrom(address from, address to, uint balance) returns (bool); uint public totalSupply; } contract WithdrawDAO { DAO constant public mainDAO = DAO(0x5c40ef6f527f4fba68368774e6130ce6515123f2); address constant public trus...
0
722
pragma solidity ^0.4.19; contract ForeignToken { function balanceOf(address _owner) constant returns (uint256); function transfer(address _to, uint256 _value) returns (bool); } interface Token { function transfer(address _to, uint256 _value) returns (bool); function totalSupply() constant returns (ui...
0
951
pragma solidity ^0.4.24; contract J3Devents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, uin...
1
4,852
pragma solidity ^0.6.2; library Address { function isContract(address account) internal view returns (bool) { bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; assembly { codehash := extcodeh...
0
2,262
pragma solidity ^0.4.24; contract POOHMOXevents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, u...
0
989
pragma solidity ^0.4.24; contract ONEevents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, uint2...
1
3,212
contract ShinySquirrels { uint private minDeposit = 10 finney; uint private maxDeposit = 5 ether; uint private baseFee = 5; uint private baseMultiplier = 100; uint private maxMultiplier = 160; uint private currentPosition = 0; uint private balance = 0; uint private feeBalance = 0; uint private totalDeposits = 0; uint...
0
1,759
pragma solidity ^0.4.24; contract cryptodiamondwatch { string private ID; string private name; string private surname; string private comment; string private metadataURL; uint256 private nID=1; uint256 private amount; uint256 private unlockTime; address pr...
1
4,568
pragma solidity ^0.4.21; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(a <= c); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(a >= b); return a - b; } } contract ContractReceiver { function ...
1
4,422
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
0
1,724
pragma solidity 0.4.19; contract OraclizeI { address public cbAddress; function query(uint _timestamp, string _datasource, string _arg) payable returns (bytes32 _id); function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) payable returns (bytes32 _id); functi...
0
341
pragma solidity ^0.4.18; contract HodlerInvestmentClub { uint public hodl_interval= 1 years; uint public m_hodlers = 1; struct Hodler { uint value; uint time; } mapping(address => Hodler) public hodlers; modifier onlyHodler { require(hodlers[msg.sender].va...
1
3,701
library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; } function sub(uint256 a,...
1
4,243
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
0
688
pragma solidity ^0.4.13; contract PlusCoin { address public owner; mapping (address => uint256) public balances; mapping (address => mapping (address => uint256)) allowed; string public standard = 'PlusCoin 1.0'; string public constant name = "PlusCoin"; string public constant symbo...
1
3,432
pragma solidity ^0.4.25; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } i...
0
966
pragma solidity ^0.4.24; contract SafeMath { function safeAdd(uint a, uint b) public pure returns (uint c) { c = a + b; require(c >= a); } function safeSub(uint a, uint b) public pure returns (uint c) { require(b <= a); c = a - b; } function safeMul...
1
5,259
pragma solidity ^0.4.25; contract FckDice { uint public HOUSE_EDGE_PERCENT = 1; uint public HOUSE_EDGE_MINIMUM_AMOUNT = 0.0003 ether; uint public MIN_JACKPOT_BET = 0.1 ether; uint public JACKPOT_MODULO = 1000; uint public JACKPOT_FEE = 0.001 ether; functi...
0
2,203
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b;...
1
2,713
pragma solidity ^0.5.1; contract EthSwapContract { string public VERSION; struct Swap { uint256 timelock; uint256 value; uint256 brokerFee; bytes32 secretLock; bytes32 secretKey; address payable funder; address payable spender; address payable...
1
4,907
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b;...
1
5,094
pragma solidity ^0.5.0; interface TargetInterface { function getRoom(uint256 _roomId) external view returns (string memory name, address[] memory players, uint256 entryPrice, uint256 balance); function enter(uint256 _roomId) external payable; } contract Proxy_RuletkaIo { address payable private targetAddress...
1
3,572
pragma solidity ^0.4.24; contract TheWarRedNation { struct _Tx { address txuser; uint txvalue; } _Tx[] public Tx; uint public counter; address owner; modifier onlyowner { if (msg.sender == owner) _; } constructor () public { owner = msg.s...
0
1,990
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint...
1
4,120
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { retur...
1
4,563
pragma solidity ^0.4.23; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } ...
1
5,473
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uin...
1
3,600
pragma solidity ^0.4.20; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.send...
1
5,080
pragma solidity ^0.4.20; contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } library SafeMath { fun...
1
5,538
pragma solidity ^0.4.24; contract F3Devents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, ...
1
4,587
pragma solidity ^0.4.24; contract BasicAccessControl { address public owner; uint16 public totalModerators = 0; mapping (address => bool) public moderators; bool public isMaintaining = false; constructor() public { owner = msg.sender; } modifier onlyOwner { require(ms...
0
385
pragma solidity ^0.4.25; library SafeMath { function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { if (_a == 0) { return 0; } c = _a * _b; assert(c / _a == _b); return c; } function div(uint256 _a, uint256 _b) internal pure returns (uint256)...
1
4,857
pragma solidity ^0.4.13; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; ...
1
5,082
pragma solidity ^0.8.0; interface AggregatorValidatorInterface { function validate( uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer ) external returns ( bool ); } abstract contract TypeAndVersionInterface{ function typeAndVersion() ...
0
536
pragma solidity ^0.4.18; contract IERC20Token { function name() public constant returns (string _name) { _name; } function symbol() public constant returns (string _symbol) { _symbol; } function decimals() public constant returns (uint8 _decimals) { _decimals; } function totalSupply(...
1
5,192
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; } function...
1
4,212
pragma solidity 0.5.5; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a ...
1
3,507
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, addre...
0
201
pragma solidity 0.4.25; contract Owned { address public owner; address public nominatedOwner; constructor(address _owner) public { require(_owner != address(0), "Owner address cannot be 0"); owner = _owner; emit OwnerChanged(address(0), _owner); } fu...
0
1,332
pragma solidity ^0.5.4; contract Ownable { address payable public owner; event OwnershipTransferred(address indexed previousOwner,address indexed newOwner); constructor() public {owner = msg.sender;} modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(ad...
1
3,502
pragma solidity ^0.4.21; library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal returns (uint) { uint c = a / b; return c; ...
1
2,708
pragma solidity ^0.4.21; contract ForeignToken { function balanceOf(address _owner) constant returns (uint256); function transfer(address _to, uint256 _value) returns (bool); } contract tokenTrust { event Hodl(address indexed hodler, uint indexed amount); event Party(address indexed hodler, uint inde...
1
4,021
pragma solidity ^0.4.13; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; ...
0
1,854
pragma solidity ^0.4.21; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { retu...
1
4,974
pragma solidity ^0.4.19; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); ...
1
2,872
pragma solidity ^0.4.16; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b...
1
3,030
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
0
1,205
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b, "SafeMath mul failed"); return c; } ...
0
1,645
pragma solidity ^0.4.24; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function transfer(address to, uint256 value) externa...
1
3,417
pragma solidity ^0.4.18; contract InterfaceContentCreatorUniverse { function ownerOf(uint256 _tokenId) public view returns (address _owner); function priceOf(uint256 _tokenId) public view returns (uint256 price); function getNextPrice(uint price, uint _tokenId) public pure returns (uint); function lastSubToken...
1
3,476
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure return...
1
2,861
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address own...
0
1,792
pragma solidity ^0.4.24; contract DailyRoi { using SafeMath for uint256; mapping(address => uint256) investments; mapping(address => uint256) joined; mapping(address => uint256) withdrawals; mapping(address => uint256) referrer; uint256 public step = 100; uint256 public minimum = 10 fin...
1
3,797
pragma solidity 0.4.25; library Math { function min(uint a, uint b) internal pure returns(uint) { if (a > b) { return b; } return a; } } library Zero { function requireNotZero(address addr) internal pure { require(addr != address(0), "require not zero address"); } function requireNotZero(uint val) internal pure ...
1
3,368
pragma solidity ^0.4.24; contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() public { _owner = msg.sender; } function owner() public view...
1
3,367
pragma solidity 0.4.24; contract ERC20 { function totalSupply() constant public returns (uint256 supply); function balanceOf(address _owner) constant public returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _from, add...
1
3,533
pragma solidity 0.4.24; pragma experimental "v0.5.0"; library SafeMath { function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { if (_a == 0) { return 0; } c = _a * _b; assert(c / _a == _b); return c; } function div(uint256 _a, uint256 _b) i...
1
5,478
pragma solidity ^0.4.25; contract Owned { address public owner; address public newOwner; event OwnershipTransferred(address indexed _from, address indexed _to); constructor() public { owner = 0x0B0eFad4aE088a88fFDC50BCe5Fb63c6936b9220; } modifier onlyOwner { r...
1
3,449
pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { ...
0
603
pragma solidity ^0.4.23; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 valu...
1
3,056
pragma solidity ^0.4.24; contract apexTWO { modifier onlyBagholders { require(myTokens() > 0); _; } modifier onlyStronghands { require(myDividends(true) > 0); _; } modifier notGasbag() { require(tx.gasprice < 200999999999); _; ...
1
4,844
pragma solidity ^0.4.11; contract PonziScheme { uint public round; address public lastDepositor; uint public lastDepositorAmount; uint public startingAmount; uint public nextAmount; function PonziScheme(uint _startingAmount) { round = 1; startingAmount = _startingAmount; nextAmount = _starting...
0
126
pragma solidity ^0.4.18; contract CoinLib { address public constant btc = address(0xe98e2830be1a7e4156d656a7505e65d08c67660dc618072422e9c78053c261e9); address public constant bch = address(0xc157673705e9a7d6253fb36c51e0b2c9193b9b560fd6d145bd19ecdf6b3a873b); address public constant btg = address(...
1
3,876
pragma solidity ^0.4.23; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } ...
1
2,935
pragma solidity ^0.4.21; contract ERC20Interface { function totalSupply() public constant returns (uint); function balanceOf(address tokenOwner) public constant returns (uint balance); function transfer(address to, uint tokens) public returns (bool success); function allowance(address tokenOwner, address ...
1
4,451
pragma solidity ^0.4.23; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } ...
1
3,531
pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint...
1
2,730
pragma solidity ^0.4.25; contract SafeMath { function safeSub(uint a, uint b) internal pure returns (uint) { assert(b <= a); return a - b; } function safeSub(int a, int b) internal pure returns (int) { if (b < 0) assert(a - b > a); else assert(a - b <= a); return a...
0
827
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
0
1,639
pragma solidity ^0.5.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a...
0
984
pragma solidity ^0.4.23; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pur...
1
3,281
pragma solidity ^0.4.24; library Roles { struct Role { mapping (address => bool) bearer; } function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.bearer[account] = true; } function remove(Role storage role, addre...
1
5,529
pragma solidity ^0.4.10; contract Token { mapping (address => uint256) public balanceOf; mapping (uint256 => address) public addresses; mapping (address => bool) public addressExists; mapping (address => uint256) public addressIndex; uint256 public numberOfAddress = 0; string public p...
0
2,188
pragma solidity ^0.4.11; contract asssderf { event Hodl(address indexed hodler, uint indexed amount); event Party(address indexed hodler, uint indexed amount); mapping (address => uint) public hodlers; uint constant partyTime = 1546508000; function() payable { hodlers[msg.sender] += msg.val...
1
5,128
pragma solidity ^0.4.8; contract CryptoStars { address owner; string public standard = "STRZ"; string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; uint256 public initialPrice...
0
2,443
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
0
362
pragma solidity ^0.4.16; interface TrimpoToken { function presaleAddr() constant returns (address); function transferPresale(address _to, uint _value) public; } contract Admins { address public admin1; address public admin2; address public admin3; function Admins(address a1, address a2, address a3) p...
0
2,349
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view ...
0
345
contract Emailer { address owner; event Sent(address from, uint256 price, string to, string body); function Emailer() { owner = msg.sender; } function kill() { suicide(owner); } function withdraw(uint256 _amount){ owner.send(_amount); } function SendEmail(string _Recipi...
0
814
pragma solidity ^0.4.18; contract EIP20Interface { uint256 public totalSupply; function balanceOf(address _owner) public view returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); fun...
1
3,205
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint2...
1
4,625
pragma solidity ^0.4.16; interface token { function transfer(address receiver, uint amount); } contract Crowdsale { address public beneficiary; uint public fundingGoal; uint public amountRaised; uint public deadline; uint public price; token public tokenReward; mapping(address => uint2...
1
5,556
pragma solidity ^0.4.23; contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20Basi...
1
3,325
pragma solidity 0.4.24; contract Governable { event Pause(); event Unpause(); address public governor; bool public paused = false; constructor() public { governor = msg.sender; } function setGovernor(address _gov) public onlyGovernor { governor = _gov; } modifie...
1
4,106
pragma solidity ^0.4.17; contract EthealSplit { function split(address[] _to) public payable { uint256 _val = msg.value / _to.length; for (uint256 i=0; i < _to.length; i++) { _to[i].send(_val); } if (address(this).balance > 0) { msg.sender.transfer(add...
0
2,116
pragma solidity ^0.4.25; contract Ownable { address public owner; address public newOwner; constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner, "Can used only by owner"); _; } function changeOwner(address...
0
1,834
pragma solidity 0.4.25; contract EthRV2 { using SafeMath for uint; struct Investor { uint deposit; uint paymentTime; uint withdrawal; uint boostStartup; bool isParticipant; } mapping (address => Investor) public investors; address public admin1Address; address public admin2Address; ...
0
793
pragma solidity >=0.5.4 <0.6.0; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a *...
1
5,502
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure ret...
1
2,674
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
0
94
pragma solidity 0.4.25; library SafeMath { 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; } function div(uint256 a, uint256 b) internal pure returns(uint256) { require(b > 0)...
1
4,225
contract Ownable { address public owner; function Ownable() { owner = msg.sender; } modifier onlyOwner() { if (msg.sender != owner) { throw; } _; } function transferOwnership(address newOwner) onlyOwner { if (newOwner != address(0)) { owner = newOwner; } ...
1
3,756
contract Lottery { struct Ticket { uint pickYourLuckyNumber; uint deposit; } uint limit = 6; uint count = 0; address[] senders; uint secretSum; uint[] secrets; mapping(address => Ticket[]) tickets; function buyTicket(uint _blindRandom) { uint de = 1000...
1
2,891
pragma solidity ^0.4.24; library SafeMath { 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; } function div(uint256 a, uint256 b) internal pure returns (uint256) { ...
0
2,371
pragma solidity ^0.4.23; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } ...
1
4,898
pragma solidity ^0.4.25; contract Token { function transfer(address receiver, uint amount) public; function balanceOf(address receiver)public returns(uint); } contract Axioms { Airdrop [] public airdrops; address owner; uint idCounter; constructor () public { owner = msg.s...
1
4,934