hash stringlengths 64 64 | size int64 7k 624k | ext stringclasses 1
value | lang stringclasses 1
value | is_test bool 2
classes | repo_id stringclasses 846
values | repo_name stringclasses 846
values | repo_head stringclasses 846
values | repo_path stringlengths 7 155 | content_tokens int64 1.82k 42.6k | content_chars int64 6.85k 58.7k | content stringlengths 6.85k 58.7k | __index_level_0__ int64 84 346k | id int64 0 14.2k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
005f1e240aba9ae217fb75798b02551518329bf4715daafb97ba030c7ad23b43 | 26,398 | .sol | Solidity | false | 627794329 | uni-due-syssec/efcf-framework | c3088c935f567dc7fc286475d6759204b6e44ef5 | data/smartbugs-top-1000-balance/0x72a73495b769682d7b09a9641fa1a95e308fbe08.sol | 4,865 | 18,529 | pragma solidity ^0.4.21;
// File: contracts/P4RTYRelay.sol
interface P4RTYRelay {
function relay(address beneficiary, uint256 tokenAmount) external;
}
// File: contracts/ReinvestProxy.sol
interface ReinvestProxy {
/// @dev Converts all incoming ethereum to tokens for the caller,
function reinvestFor(address... | 270,687 | 14,200 |
e31554c6d6aa9fd29232bf7362b3712834e1147a60a0f1e8cf39ab948ecf3d20 | 10,659 | .sol | Solidity | false | 454080957 | tintinweb/smart-contract-sanctuary-arbitrum | 22f63ccbfcf792323b5e919312e2678851cff29e | contracts/mainnet/c2/C2a01CC552bB90E60f5297E1a45e4914A3fcA644_usa.sol | 2,600 | 9,929 | pragma solidity ^0.6.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) {
return sub(a, b,... | 48,569 | 14,201 |
c866f1223ebd88fe64949c116f3f933b3efa44e311fa416c5da9d4be6b1a024c | 12,334 | .sol | Solidity | false | 416581097 | NoamaSamreen93/SmartScan-Dataset | 0199a090283626c8f2a5e96786e89fc850bdeabd | evaluation-dataset/0x6306aa8b86ab7edc61b5a30b2644f606fa1ca00a.sol | 2,876 | 10,711 | pragma solidity 0.4.19;
// File: contracts\ERC20.sol
contract ERC20 {
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 inde... | 180,093 | 14,202 |
3e5d5a69c3136b0f42d9f232043b9eedd33d446635401acd1c1f41746fc59287 | 19,273 | .sol | Solidity | false | 454085139 | tintinweb/smart-contract-sanctuary-fantom | 63c4f5207082cb2a5f3ee5a49ccec1870b1acf3a | contracts/mainnet/a3/a32cb0541a3a2cd5a57c6472aabf908651794908_FTM_CROPS_2.sol | 5,236 | 17,112 | // SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
contract FTM_CROPS_2 {
using SafeMath for uint256;
uint256 public EGGS_TO_HIRE_1MINERS = 1440000;
uint256 public REFERRAL = 70;
uint256 public PERCENTS_DIVIDER = 1000;
uint256 private TAX = 9;
uint256 private MKT = 9;
uint256 public MARK... | 320,261 | 14,203 |
599aab4aa6b3d95371540ba1047917e7dd324575ead460b017e4107d9816769f | 22,423 | .sol | Solidity | false | 454032456 | tintinweb/smart-contract-sanctuary-avalanche | 39792ff211cb89e79e9eb6ee7278f6843acb5cc6 | contracts/testnet/ce/cea6fcf7f7131025eba03492eecc0eca8f6f093a_TestLock.sol | 3,047 | 11,058 | // SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes c... | 120,655 | 14,204 |
50c515b16834afcfcd190e6e0db9203b29f6dabf337e3fede1af70d42fcbac7b | 17,264 | .sol | Solidity | false | 428551037 | SecureDAO/securedao-contracts | f1915a87b81c3c48966c0350b455037ebb905f56 | contracts/StakingDistributor.sol | 3,971 | 15,676 | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, val... | 173,742 | 14,205 |
47979fcf34b33dc57d3fbf7a757c28f7be421bec9fc263ad35bca64151bed959 | 18,114 | .sol | Solidity | false | 453466497 | tintinweb/smart-contract-sanctuary-tron | 44b9f519dbeb8c3346807180c57db5337cf8779b | contracts/mainnet/TS/TSkdYwmuXiZr7EFHN9Zjqr2Kuick9hhpSG_Token.sol | 3,232 | 12,016 | //SourceUnit: LSL(6).sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this;
return ... | 285,939 | 14,206 |
783ce8cbbd94b398af89e3a5545ef27fb1b2d8090f6ace82ac669434ccc11b3b | 27,530 | .sol | Solidity | false | 454085139 | tintinweb/smart-contract-sanctuary-fantom | 63c4f5207082cb2a5f3ee5a49ccec1870b1acf3a | contracts/mainnet/51/51E8ED0e4480a09375A8Ab0D0e2693dEFF26b426_gOHM.sol | 4,763 | 18,841 | // SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;
// TODO(zx): Replace all instances of SafeMath with OZ implementation
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return... | 329,495 | 14,207 |
1e0969a9dd6d05d0ec5399a63d30a81db102b2f5b7d5e27e403c52770739492e | 27,428 | .sol | Solidity | false | 454032456 | tintinweb/smart-contract-sanctuary-avalanche | 39792ff211cb89e79e9eb6ee7278f6843acb5cc6 | contracts/testnet/31/3116F15301F62077c5593436Eb7aF3ae6bd6006c_Noonercoin.sol | 5,995 | 23,116 | 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) {
return sub(a, b,... | 98,352 | 14,208 |
81a0a14097b04df338d2f9c37f509c241416e44493d1298283aa2f482bddd593 | 32,013 | .sol | Solidity | false | 293466625 | xf97/HuangGai | 40a349be6102d5eb63893fb914659405ae162d93 | injectedContractDataSet/unlimitedCompilerVersions/0x29fd30b0db31825b622d14109213a9015a4fb92b_unlimitedCompilerVersions.sol | 3,380 | 13,090 | pragma solidity ^0.6.12; //inject UNLIMITED COMPILER VERSIONS
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this;
return msg.data;
}
}
in... | 278,227 | 14,209 |
2450fb36635204a678c214a2f2570951d48bc53fba8335575dcb2cd256a2e163 | 23,858 | .sol | Solidity | false | 606585904 | plotchy/defi-detective | f48830b1085dac002283a2ce5e565e341aab5d0c | scraping/data/source/uniswap-v2.sol | 4,143 | 15,670 | pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
requ... | 344,849 | 14,210 |
653cc2ccf3239acf16175bc6280dd6f5c6887cfa8842dbf65c31fa3910817339 | 27,277 | .sol | Solidity | false | 379749889 | fegtoken/fegtoken | 9d688ffd4ccc19c3a3ccec3103b21ee089a26ffe | FEG Wrapped/ETH.sol | 4,795 | 17,772 | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-fac... | 266,647 | 14,211 |
bbb0174c1ff9f419d91364dbeed5a5dc46c2abf5ee8d0072ee17eef9df446954 | 22,544 | .sol | Solidity | false | 453466497 | tintinweb/smart-contract-sanctuary-tron | 44b9f519dbeb8c3346807180c57db5337cf8779b | contracts/mainnet/TD/TD58Vy9rJuBq7Pout3omzXAXku3v7YYFRq_DiamondDividend.sol | 3,831 | 15,758 | //SourceUnit: diamondDividend.sol
pragma solidity 0.4.25;
//
//------------------------ SafeMath Library -------------------------//
//
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, '... | 296,829 | 14,212 |
b6b41887fe5df59c181c192fc37ee33d1b15740912004fd3a4caf4cbc90038fa | 33,093 | .sol | Solidity | false | 366468716 | idexo/ido-contracts | 4c4f94bee4c80579c1cfb53a0c09ada5bb265aad | flattened/MultipleVotingMirror.sol | 4,510 | 16,434 | pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
interface IAccessControl {
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
event RoleGranted(bytes32 indexed role, address indexed a... | 16,966 | 14,213 |
ef37be39f4cc5c25d533aaba4ab89f1df8b844ca77af6aeb8c358d011c1d7462 | 21,596 | .sol | Solidity | false | 600295047 | ZhangZhuoSJTU/Web3Bugs | 1243d0b5dba9f455b7034394cd0ea01fcdc8140e | contracts/124/index-coop-notional-trade-module/external/contracts/compound/PriceOracle.sol | 3,688 | 14,849 | pragma solidity ^0.4.24;
contract CompoundPriceOracle is Exponential {
bool public paused;
uint public constant numBlocksPerPeriod = 240; // approximately 1 hour: 60 seconds/minute * 60 minutes/hour * 1 block/15 seconds
uint public constant maxSwingMantissa = (10 ** 17); // 0.1
mapping(address => DSValu... | 272,509 | 14,214 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.