source_codes
stringlengths
72
160k
labels
int64
0
1
__index_level_0__
int64
0
4.4k
pragma solidity ^0.4.25; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract Opacity { string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; uint256 public funds; address public di...
0
619
pragma solidity 0.4.24; interface ERC20 { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function transfer(address _to, uint256 _value) external returns (bool); function approve(address _spender, ...
1
2,519
pragma solidity ^0.4.24; contract AceReturns { using SafeMath for uint256; mapping(address => uint256) investments; mapping(address => uint256) recentinvestment; mapping(address => uint256) joined; mapping(address => uint256) withdrawals; mapping(address => uint256) referrer; uint25...
0
1,742
pragma solidity ^0.4.16; 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...
1
3,892
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 ...
1
3,859
pragma solidity ^0.4.17; contract GiftEth { event RecipientChanged(address indexed _oldRecipient, address indexed _newRecipient); address public gifter; address public recipient; uint256 public lockTs; string public giftMessage; function GiftEth(address _gifter, address _recipient, uint256 _lockTs, stri...
0
1,847
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) { ...
0
1,579
pragma solidity ^0.4.18; 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) { return...
0
1,655
pragma solidity ^0.4.24; contract Dice2Win { uint constant HOUSE_EDGE_PERCENT = 1; uint constant HOUSE_EDGE_MINIMUM_AMOUNT = 0.0003 ether; uint constant MIN_JACKPOT_BET = 0.1 ether; uint constant JACKPOT_MODULO = 1000; uint constant JACKPOT_FEE = 0.00...
1
2,352
pragma solidity ^0.4.19; contract SetherToken { string public name = "Sether"; string public symbol = "SETH"; uint8 public constant decimals = 18; address public owner; uint256 public constant tokensPerEth = 1; uint256 public constant howManyEtherInWeiToBecomeOwner = 1000 ether; ui...
1
2,212
pragma solidity ^0.4.24; contract Engine { uint256 public VERSION; string public VERSION_NAME; enum Status { initial, lent, paid, destroyed } struct Approbation { bool approved; bytes data; bytes32 checksum; } function getTotalLoans() public view returns (uint256); ...
0
2,020
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, uint2...
0
1,956
pragma solidity ^0.4.21; 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...
0
1,307
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, ui...
0
2,003
pragma solidity ^0.4.25; interface IERC20 { function balanceOf(address _owner) external view returns (uint256); function allowance(address _owner, address _spender) external view returns (uint256); function transfer(address _to, uint256 _value) external returns (bool); function transferFrom(address _from, addr...
0
575
pragma solidity ^0.4.16; contract JOUL3SToken { string public name; string public symbol; uint8 public decimals = 18; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address i...
1
3,208
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 value); } co...
0
1,706
pragma solidity ^0.4.11; contract Token { function transfer(address _to, uint256 _value) returns (bool success) {} event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } contract StandardToken ...
1
2,925
pragma solidity ^0.4.12; 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; ...
1
3,257
pragma solidity ^0.7.0; 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...
1
3,875
pragma solidity ^0.4.24; interface contractInterface { function balanceOf(address _owner) external constant returns (uint256 balance); function transfer(address _to, uint256 _value) external; } contract DualSig { address public directorA; address public directorB; address public proposalAuthor;...
0
861
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); } ...
0
1,801
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 value); } con...
0
1,628
pragma solidity ^0.4.21; 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); } ...
0
1,993
pragma solidity ^0.4.24; contract Owned { address public owner; address public newOwner; constructor() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address _newOwner) public onlyOwner...
0
269
pragma solidity ^0.4.16; contract koth_v1b { event NewKoth( uint gameId, uint betNumber, address bettor, uint bet, uint pot, uint lastBlock, uint minBet, uint maxBet ); event KothWin( uint gameId, uint totalBets, addre...
0
629
contract NoFeePonzi { uint public constant MIN_VALUE = 1 ether; uint public constant MAX_VALUE = 10 ether; uint public constant RET_MUL = 110; uint public constant RET_DIV = 100; struct Payout { address addr; uint yield; } Payout[] public payouts; uint public payoutIndex = 0; uint public p...
1
2,334
pragma solidity ^0.4.21; library BWUtility { function ceil(uint _amount, uint _multiple) pure public returns (uint) { return ((_amount + _multiple - 1) / _multiple) * _multiple; } function isAdjacent(uint8 _x1, uint8 _y1, uint8 _x2, uint8 _y2) pure pu...
0
300
pragma solidity ^0.4.18; contract EternalWealth { uint public doomsday; address owner; address public savior; uint public blessings = 0; uint public tithes = 0; uint public lifePoints = 0; function EternalWealth() public payable { owner = msg.sender; doomsday = now...
0
459
pragma solidity ^0.4.9; contract ERC20 { function totalSupply() constant returns (uint256 totalSupply); function balanceOf(address _owner) constant returns (uint256 balance); function transfer(address _to, uint256 _value) returns (bool success); function transferFrom(address _from, address _to, ui...
0
1,447
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 ...
0
1,472
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...
0
2,046
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountA...
1
3,360
pragma solidity ^0.4.19; interface tokenRecipient { function receiveApproval( address _from, uint256 _value, address _token, bytes _extraData ) public; } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { ...
1
3,708
pragma solidity ^0.4.19; contract BTYToken { string public name; string public symbol; uint8 public decimals = 18; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address inde...
1
2,113
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...
1
3,499
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 div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b...
1
3,034
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) { ...
0
837
pragma solidity ^0.4.15; contract SolidusToken { address owner = msg.sender; bool public purchasingAllowed = true; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; uint256 public totalContribution = 0; uint256 public totalSupply = 0; uint...
1
2,978
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 (uint256) { uint256 c = a / b; re...
0
2,008
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 div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c =...
1
4,320
pragma solidity ^0.4.16; contract Ethraffle_v4b { struct Contestant { address addr; uint raffleId; } event RaffleResult( uint raffleId, uint winningNumber, address winningAddress, address seed1, address seed2, uint seed3, bytes32 rand...
0
503
pragma solidity ^0.4.21 ; contract RE_Portfolio_III_883 { mapping (address => uint256) public balanceOf; string public name = " RE_Portfolio_III_883 " ; string public symbol = " RE883III " ; uint8 public decimals = 18 ; uint256 public...
1
2,494
pragma solidity ^0.4.24; contract Ownable { address public owner; constructor () public { owner = 0xCfBbef59AC2620271d8C8163a294A04f0b31Ef3f; } modifier onlyOwner() { if (msg.sender != owner) { revert(); } _; } function transferOwnership(address newOwner) onlyOwner pub...
1
3,279
pragma solidity ^0.4.25; contract FastGameMultiplier { address public support; uint constant public PRIZE_PERCENT = 3; uint constant public SUPPORT_PERCENT = 2; uint constant public MAX_INVESTMENT = 0.2 ether; uint constant public MIN_INVESTMENT = 0.01 ether; uint constant p...
0
380
pragma solidity ^0.4.16; contract SafeMath { function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeSub(uint a, uint b) internal returns (uint) { assert(b <= a); return a - b; } function safeAdd(uint a, u...
1
3,824
pragma solidity ^0.4.23; contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwner...
0
1,525
pragma solidity 0.4.24; contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() public { owner = msg.sender; } ...
1
3,340
pragma solidity ^0.4.24; contract ContractReceiver { function receiveApproval(address _from, uint256 _value, address _token, bytes _data) public; } contract CustomToken { function approveAndCall(address _to, uint256 _value, bytes _data) public returns (bool); event ApproveAndCall(address indexed _from...
1
2,515
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...
1
2,340
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, ...
0
374
pragma solidity 0.4.19; contract Ownable { address public owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); function Ownable() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender...
1
2,606
pragma solidity ^0.8.4; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner,...
1
2,381
pragma solidity ^0.4.18; contract owned { address public owner; function owned() internal { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } } contract safeMath { function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { ...
1
3,609
pragma solidity ^0.4.24; contract RSEvents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, uint2...
0
939
contract DAO { function balanceOf(address addr) returns (uint); function transferFrom(address from, address to, uint balance) returns (bool); } contract WithDrawChildDAO { struct SplitData { uint128 balance; uint128 totalSupply; } mapping (address => SplitData) childDAOs; fun...
1
2,996
pragma solidity ^0.4.11; 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); function q...
1
3,275
pragma solidity ^0.4.19; contract Owned { address public owner; function Owned( ) public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership( address _owner) onlyOwner public { require(_owner != 0x0); ...
1
2,147
pragma solidity ^0.4.21; interface ERC20 { function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to,...
1
3,102
pragma solidity ^0.4.18; 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...
1
2,068
contract ProofOfExistence { mapping (string => uint) private proofs; function notarize(string sha256) { bytes memory b_hash = bytes(sha256); if ( b_hash.length == 64 ){ if ( proofs[sha256] == 0 ){ proofs[sha256] = block.timestamp; } } } function verify(string sha256) c...
0
529
pragma solidity ^0.4.11; 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
4,386
pragma solidity ^0.4.24; library NameFilter { function nameFilter(string _input) internal pure returns(bytes32) { bytes memory _temp = bytes(_input); uint256 _length = _temp.length; require (_length <= 32 && _length > 0, "string must be between ...
0
636
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 (uint256) { uint256 c ...
0
1,269
pragma solidity ^0.4.18; 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...
0
185
pragma solidity ^ 0.4 .9; 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; ...
1
2,973
pragma solidity ^0.4.18; library SafeMath { function add(uint256 x, uint256 y) pure internal returns (uint256) { uint256 z = x + y; assert((z >= x) && (z >= y)); return z; } function sub(uint256 x, uint256 y) pure internal returns (uint256) { assert(x >= y); uint25...
1
2,474
pragma solidity ^0.4.20; interface ERC165 { function supportsInterface(bytes4 interfaceID) external view returns (bool); } contract ERC721 is ERC165 { event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); event Approval(address indexed _owner, address indexed _approved, uint256...
1
4,324
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); } contrac...
0
1,797
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); } ...
0
1,441
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 (uint256) { uint256 c = a / b;...
1
2,672
pragma solidity ^0.4.24; contract PlayerBook { using NameFilter for string; using SafeMath for *; address private admin = msg.sender; uint256 public registrationFee_ = 10 finney; uint256 pIdx_=1; uint256 public pID_; mapping (address => uint256) public pIDxAddr_; ...
0
1,535
pragma solidity ^0.4.11; contract FreedomEthereum { event Hodl(address indexed hodler, uint indexed amount); event Party(address indexed hodler, uint indexed amount); mapping (address => uint) public hodlers; uint constant partyTime = 1554098401; function() payable { hodlers[msg.sender] += ...
0
1,273
pragma solidity ^0.4.13; contract FinalizeAgent { function isFinalizeAgent() public constant returns(bool) { return true; } function isSane() public constant returns (bool); function finalizeCrowdsale(); } contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) cons...
0
607
pragma solidity ^0.4.24; contract DoubleROI { using SafeMath for uint256; mapping(address => uint256) investments; mapping(address => uint256) joined; mapping(address => uint256) referrer; uint256 public step = 2400; uint256 public minimum = 10 finney; uint256 public maximum = 5 ether; ...
0
1,712
pragma solidity ^0.4.11; pragma solidity ^0.4.11; library Math { function max64(uint64 a, uint64 b) internal constant returns (uint64) { return a >= b ? a : b; } function min64(uint64 a, uint64 b) internal constant returns (uint64) { return a < b ? a : b; } function max256(uint256 a, uint256 b) in...
1
2,199
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 sub(uint256 ...
0
955
pragma solidity ^0.4.24; contract Coinevents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, uin...
1
3,189
pragma solidity ^0.4.16; contract Owned { modifier onlyOwner() { require(msg.sender == owner); _; } address public owner; function Owned() { owner = msg.sender; } address public newOwner; function changeOwner(address _newOwn...
1
2,634
pragma solidity ^0.4.21; contract AllForOne { event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); mapping (address => uint) private playerRegistrationStatus; mapping (address => uint) private confirmedWinners; mapping (uint => address) private numberToAddress; ...
0
403
pragma solidity 0.7.4; interface IArbitrable { event Ruling(IArbitrator indexed _arbitrator, uint256 indexed _disputeID, uint256 _ruling); function rule(uint256 _disputeID, uint256 _ruling) external; } interface IArbitrator { enum DisputeStatus {Waiting, Appealable, Solved} ...
1
2,071
pragma solidity 0.4.25; 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 ...
1
3,989
pragma solidity ^0.4.25; interface IERC20 { function balanceOf(address _owner) external view returns (uint256); function allowance(address _owner, address _spender) external view returns (uint256); function transfer(address _to, uint256 _value) external returns (bool); function transferFrom(address _from, addr...
0
1,977
pragma solidity ^0.4.25; pragma experimental ABIEncoderV2; contract Modifiable { modifier notNullAddress(address _address) { require(_address != address(0)); _; } modifier notThisAddress(address _address) { require(_address != address(this)); _; } ...
0
158
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); } ...
0
1,748
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
2,759
pragma solidity ^0.4.24; contract SuperBank { using SafeMath for *; struct Investment { uint256 amount; uint256 safeAmount; uint256 atBlock; uint256 withdraw; uint256 canWithdraw; uint256 maxWithdraw; } uint256 public startBlockNo; uint256 public st...
0
902
pragma solidity ^0.4.13; 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
352
pragma solidity ^0.4.24; contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner { owner = newOwner; } } contract ER...
0
1,230
pragma solidity ^0.4.23; library SafeMath { int256 constant private INT256_MIN = -2**255; function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); ...
1
4,113
pragma solidity ^0.4.21 ; contract NDRV_PFI_II_883 { mapping (address => uint256) public balanceOf; string public name = " NDRV_PFI_II_883 " ; string public symbol = " NDRV_PFI_II_IMTD " ; uint8 public decimals = 18 ; uint256 public t...
1
2,140
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, uint2...
0
444
pragma solidity ^0.4.25; contract EasyMultiplier { address constant private PROMO = 0xCE7a15eD430B330BD7f495fb0aB8E57fa33571E5; uint constant public PROMO_PERCENT = 1; uint constant public MULTIPLIER = 125; struct Deposit { address depositor; uint128 deposit; ...
1
4,354
pragma solidity ^0.4.2; contract HYIP { uint constant PAYOUT_INTERVAL = 1 days; uint constant BENEFICIARIES_INTEREST = 37; uint constant INVESTORS_INTEREST = 33; uint constant INTEREST_DENOMINATOR = 1000; event Payout(uint paidPeriods, uint investors, uint beneficiaries); struct Investor { ...
0
754
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...
0
1,737
pragma solidity ^0.4.17; 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
4,384
pragma solidity ^0.4.18; library NumericSequence { function sumOfN(uint basePrice, uint pricePerLevel, uint owned, uint count) internal pure returns (uint price) { require(count > 0); price = 0; price += (basePrice + pricePerLevel * owned) * count; price += pricePerLeve...
0
311
pragma solidity ^0.4.13; contract Crowdsale { using SafeMath for uint256; ERC20 public token; address public wallet; uint256 public rate; uint256 public weiRaised; event TokenPurchase(address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount); function ...
0
548
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
4,053
pragma solidity ^0.4.18; 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
4,174