file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity ^0.4.24;
/**
* Math operations with safety checks
*/
contract SafeMath {
function safeMul(uint256 a, uint256 b) pure internal returns (uint256) {
uint256 c = a * b;
judgement(a == 0 || c / a == b);
return c;
}
function safeDiv(uint256 a, uint256 b) pure internal returns (uint256) {
judgem... | * Math operations with safety checks/ | contract SafeMath {
function safeMul(uint256 a, uint256 b) pure internal returns (uint256) {
uint256 c = a * b;
judgement(a == 0 || c / a == b);
return c;
}
function safeDiv(uint256 a, uint256 b) pure internal returns (uint256) {
judgement(b > 0);
uint256 c = a / b;
judgement(a == b * c + a % b);
ret... | 6,883,414 | [
1,
4625,
348,
7953,
560,
30,
380,
2361,
5295,
598,
24179,
4271,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14060,
10477,
288,
203,
203,
202,
915,
4183,
27860,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
16618,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
202,
202,
11890,
5034,
276,
273,
279,
380,
324,
31,
203,
202,
202,
78,
... |
./full_match/7700/0x9B2a63F27661A468E2da22226b64A4914144f195/sources/contracts/libraries/CompoundMath.sol | multFactor will never be zero because it's bounded by 1
| uint256 z = num / multFactor; | 4,651,763 | [
1,
4625,
348,
7953,
560,
30,
225,
1778,
6837,
903,
5903,
506,
3634,
2724,
518,
1807,
28079,
635,
404,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
998,
273,
818,
342,
1778,
6837,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.24;
import '@gnosis.pm/gnosis-core-contracts/contracts/Oracles/FutarchyOracleFactory.sol';
import './Oracles/ScalarPriceOracleFactory.sol';
import "./ChallengeFactoryInterface.sol";
import "./FutarchyChallenge.sol";
import "../IDutchExchange.sol";
contract FutarchyChallengeFactory is ChallengeFact... | Dutch Exchange contract to retrive token prices
| IDutchExchange public dutchExchange; | 5,479,513 | [
1,
4625,
348,
7953,
560,
30,
225,
463,
322,
343,
18903,
6835,
358,
17343,
688,
1147,
19827,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1599,
322,
343,
11688,
1071,
302,
322,
343,
11688,
31,
1171,
9079,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xdDc2c27eA8a42b35B329c4e0216600F12EED13d1/sources/contracts/wombat-core/pool/PoolV3.sol | @notice Retention ratio: the ratio of haircut that should stay in the pool | uint256 public retentionRatio;
| 2,762,398 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
17100,
5054,
7169,
30,
326,
7169,
434,
366,
1826,
5150,
716,
1410,
23449,
316,
326,
2845,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
19362,
8541,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.18;
/**
* @title ERC20
*
*/
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);
function transferFrom(address from, address to, uint... | * MintableToken functionality/ | modifier canMint() {
require(!mintingFinished);
_;
}
| 640,686 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
490,
474,
429,
1345,
14176,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
848,
49,
474,
1435,
288,
203,
565,
2583,
12,
5,
81,
474,
310,
10577,
1769,
203,
565,
389,
31,
203,
225,
289,
203,
21281,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/5/0xc202e86192da069CE2E68666C8C014c510079c5B/sources/project:/contracts/MedicalRecordAccessControl.sol | Store the patient ID in the array associated with the wallet address
| walletToPatientIDs[patientWallet].push(patientID); | 1,875,023 | [
1,
4625,
348,
7953,
560,
30,
225,
4994,
326,
18608,
1599,
316,
326,
526,
3627,
598,
326,
9230,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
9230,
774,
22834,
1979,
5103,
63,
16330,
1979,
16936,
8009,
6206,
12,
16330,
1979,
734,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
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;
}
... | * @title BotOperated @dev The BotOperated contract holds bot addresses, and provides basic authorization control functions./ | contract BotOperated is Ownable {
mapping(address => bool) public bots;
modifier onlyBotsOrOwners() {
require(bots[msg.sender] || owners[msg.sender], 'Bot or owner message sender required.');
_;
}
modifier onlyBots() {
require(bots[msg.sender], 'Bot message sender required.');
_;
}
constructor() public... | 12,954,010 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
15039,
3542,
690,
632,
5206,
1021,
15039,
3542,
690,
6835,
14798,
2512,
6138,
16,
471,
8121,
5337,
6093,
3325,
4186,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
15039,
3542,
690,
353,
14223,
6914,
288,
203,
202,
6770,
12,
2867,
516,
1426,
13,
1071,
2512,
87,
31,
203,
203,
202,
20597,
1338,
6522,
87,
1162,
5460,
414,
1435,
288,
203,
202,
202,
6528,
12,
4819,
87,
63,
3576,
18,
153... |
./partial_match/1/0x01BD87bC97e27CB11e3c45dAB9B59Bc44edC4fc6/sources/TrueFiPool2.sol | * @dev repay debt by transferring tokens to the contract @param currencyAmount amount to repay/ | function repay(uint256 currencyAmount) external override onlyLender {
token.safeTransferFrom(msg.sender, address(this), currencyAmount);
emit Repaid(msg.sender, currencyAmount);
}
| 4,004,172 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2071,
528,
18202,
88,
635,
906,
74,
20245,
2430,
358,
326,
6835,
632,
891,
5462,
6275,
3844,
358,
2071,
528,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2071,
528,
12,
11890,
5034,
5462,
6275,
13,
3903,
3849,
1338,
48,
2345,
288,
203,
3639,
1147,
18,
4626,
5912,
1265,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3631,
5462,
6275,
1769,
203,
3639,
3626,
868,
29434,
12,
3576,... |
/**
*Submitted for verification at Etherscan.io on 2022-02-10
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
Fully commented standard ERC721 Distilled from OpenZeppelin Docs
Base for Building ERC721 by Martin McConnell
All the utility without the fluff.
*/
interface IERC165 {
functi... | Token name Token symbol URI Root Location for Json Files Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvals Specific FunctionalityDistribution Wallets | contract Normies is IERC721, Ownable, Functional {
using Address for address;
string private _name;
string private _symbol;
string private _baseURI;
mapping(uint256 => address) private _owners;
mapping(address => uint256) private _balances;
mapping(uint256 => address) private ... | 7,808,872 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
508,
3155,
3273,
3699,
7450,
7050,
364,
3424,
6471,
9408,
628,
1147,
1599,
358,
3410,
1758,
9408,
3410,
1758,
358,
1147,
1056,
9408,
628,
1147,
1599,
358,
20412,
1758,
9408,
628,
3410,
358,
3726... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
24773,
606,
353,
467,
654,
39,
27,
5340,
16,
14223,
6914,
16,
4284,
287,
288,
203,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
533,
3238,
389,
529,
31,
203,
203,
565,
533,
3238,
389,
7175,
31,
203,
377,
20... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface IPancakeV2Router {
function swapExactETHForTokens(
uint256 amountOutMin,
address[] calldata path,
address ... | PancakeSwap v2 router address address private PANCAKESWAP_V2_ROUTER = 0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3; Testnet WBNB address address private WBNB = 0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd; Testnet Mindsync platform contract address. Set by owner address public platformContract = 0x3cf8cDEe4c28739d6a5A... | contract CustomerContract is Ownable {
event Deposit(address source, uint256 amount, uint256 tokens);
address private PANCAKESWAP_V2_ROUTER = 0x10ED43C718714eb63d5aA57B78B54704E256024E;
address private WBNB = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c;
address public platformContract = 0x14A66FBcADf9... | 6,450,727 | [
1,
4625,
348,
7953,
560,
30,
225,
12913,
23780,
12521,
331,
22,
4633,
1758,
1758,
3238,
453,
1258,
3587,
47,
3991,
59,
2203,
67,
58,
22,
67,
1457,
1693,
654,
273,
374,
92,
29,
9988,
1105,
39,
71,
26,
73,
6334,
3600,
25339,
39,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
13702,
8924,
353,
14223,
6914,
288,
203,
565,
871,
4019,
538,
305,
12,
2867,
1084,
16,
2254,
5034,
3844,
16,
2254,
5034,
2430,
1769,
203,
203,
565,
1758,
3238,
453,
1258,
3587,
47,
3991,
59,
2203,
67,
58,
22,
67,
1457,
1... |
pragma solidity ^0.4.21;
contract TwoXJackpot {
using SafeMath for uint256;
address public contractOwner; // Address of the contract creator
// BuyIn Object, holding information of each Buy In
// Also used to store information about winners in each game
struct BuyIn {
uint256 value;
addre... | set last qualified to 0x0
| jackpotLastQualified = 0x0; | 5,504,541 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
1142,
9348,
358,
374,
92,
20,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
525,
484,
13130,
3024,
8708,
273,
374,
92,
20,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x34538491F6B185f2E244C6F1201337D939a33802/sources/SANTAKUROSU.sol | Anti-bot and anti-whale mappings and variableshigh sell tax at launch to deter bots/sniper. exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract SANTAKUROSU is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet = address(0x5Ce23Cf296... | 15,719,454 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
8766,
357,
80,
5320,
622,
8037,
358,
302,
847,
2512,
87,
19,
8134,
77,
457,
18,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
348,
6856,
14607,
1099,
4618,
57,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
5... |
./full_match/5/0x4FE73e57343931E713728d5dc334F7298666E980/sources/contracts/ITruthPost.sol | Multiplier of the arbitration cost that the loser has to pay as fee stake for a round in basis points.
| uint256 public immutable LOSER_STAKE_MULTIPLIER; | 11,588,973 | [
1,
4625,
348,
7953,
560,
30,
225,
5991,
5742,
434,
326,
10056,
7034,
6991,
716,
326,
437,
550,
711,
358,
8843,
487,
14036,
384,
911,
364,
279,
3643,
316,
10853,
3143,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
11732,
1806,
2123,
67,
882,
37,
6859,
67,
24683,
2053,
654,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.20;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOw... | * @dev Sets or unsets the approval of a given operator @dev An operator is allowed to transfer all tokens of the sender on their behalf @param _to operator address to set the approval @param _approved representing the status of the approval to be set/ | function setApprovalForAll(address _to, bool _approved) public {
require(_to != msg.sender);
operatorApprovals[msg.sender][_to] = _approved;
ApprovalForAll(msg.sender, _to, _approved);
}
| 10,092,983 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
578,
2646,
87,
326,
23556,
434,
279,
864,
3726,
632,
5206,
1922,
3726,
353,
2935,
358,
7412,
777,
2430,
434,
326,
5793,
603,
3675,
12433,
6186,
632,
891,
389,
869,
3726,
1758,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
444,
23461,
1290,
1595,
12,
2867,
389,
869,
16,
1426,
389,
25990,
13,
1071,
288,
203,
3639,
2583,
24899,
869,
480,
1234,
18,
15330,
1769,
203,
3639,
3726,
12053,
4524,
63,
3576,
18,
15330,
6362,
67,
869,
65,
273,
389,
... |
/**
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░|
░░░░░░██████╗░██╗░░░░░░░██╗░█████╗░██████╗░░░░░░░░░░░░|
░░░░░██╔════╝░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░░░░░░|
░░░░░╚█████╗░░╚██╗████╗██╔╝███████║██████╔╝░░░░░░░░░░░|
░░░░░░╚═══██╗░░████╔═████║░██╔══██║██╔═══╝░░░░░░░░░░░░|
░░░░░██████╔╝░░╚██╔╝░╚██╔╝░██║░░██║... | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
| mapping (address => uint) private _balances; | 6,107,403 | [
1,
4625,
348,
7953,
560,
30,
225,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
2874,
261,
2867,
516,
2254,
13,
3238,
389,
70,
26488,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/EnumerableMap.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/math/Math.sol";
import "@open... | * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. Emits a {TransferSingle} event. Requirements: - `account` cannot be the zero address. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value./ | function _mint(
address account,
uint256 id,
uint256 amount,
bytes memory data
) internal virtual {
require(account != address(0), "ERC1155: zero address");
address operator = _msgSender();
_beforeTokenTransfer(
operator,
address(... | 1,302,282 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
434,
1147,
618,
1375,
350,
9191,
471,
22698,
2182,
358,
1375,
4631,
8338,
7377,
1282,
279,
288,
5912,
5281,
97,
871,
18,
29076,
30,
300,
1375,
4631,
68,
2780,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
81,
474,
12,
203,
3639,
1758,
2236,
16,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
... |
./full_match/137/0x8189B653a7629d3b393E4eAD8356C9C45797eC12/sources/contracts/DoTx/DoTxGameProxy.sol | * Let owner set the DoTxGameContract address/ | function setDoTxGameContract(address _dotxGameContractAddress) public onlyOwner {
dotxGameContractAddress = _dotxGameContractAddress;
gameContract = IDotxGameContract(_dotxGameContractAddress);
}
| 4,675,835 | [
1,
4625,
348,
7953,
560,
30,
380,
10559,
3410,
444,
326,
2256,
4188,
12496,
8924,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
3244,
4188,
12496,
8924,
12,
2867,
389,
9811,
92,
12496,
8924,
1887,
13,
1071,
1338,
5541,
288,
203,
3639,
3928,
92,
12496,
8924,
1887,
273,
389,
9811,
92,
12496,
8924,
1887,
31,
203,
3639,
7920,
8924,
273,
1599,
3... |
pragma solidity ^0.5.2;
// Import the library 'Roles'
import "./Roles.sol";
// Define a contract 'LibraryRole' to manage this role - add, remove, check
contract LibraryRole {
using Roles for Roles.Role;
// Define 2 events, one for Adding, and other for Removing
event LibraryAdded(address indexed account);
ev... | Define a contract 'LibraryRole' to manage this role - add, remove, check Define 2 events, one for Adding, and other for Removing Define a struct 'Librarys' by inheriting from 'Roles' library, struct Role | contract LibraryRole {
using Roles for Roles.Role;
event LibraryAdded(address indexed account);
event LibraryRemoved(address indexed account);
Roles.Role private Libraries;
import "./Roles.sol";
constructor() public {
_addLibrary(msg.sender);
}
modifier onlyLibrary() {
require(isLibrary(msg.... | 15,805,504 | [
1,
4625,
348,
7953,
560,
30,
225,
13184,
279,
6835,
296,
9313,
2996,
11,
358,
10680,
333,
2478,
300,
527,
16,
1206,
16,
866,
13184,
576,
2641,
16,
1245,
364,
21240,
16,
471,
1308,
364,
31939,
13184,
279,
1958,
296,
9313,
87,
11,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
18694,
2996,
288,
203,
225,
1450,
19576,
364,
19576,
18,
2996,
31,
203,
203,
225,
871,
18694,
8602,
12,
2867,
8808,
2236,
1769,
203,
225,
871,
18694,
10026,
12,
2867,
8808,
2236,
1769,
203,
21281,
225,
19576,
18,
2996,
3238,... |
pragma solidity ^0.8.2;
// SPDX-License-Identifier: MIT
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
// ▓▓▀ ▀▓▌▐▓▓▓▓▓▀▀▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
// ▓▓▓ ▓▓▌▝▚▞▜▓ ▀▀ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓... | for the subsequent commission to be added into the next slot
| newCommissionIndex++; | 1,811,595 | [
1,
4625,
348,
7953,
560,
30,
225,
364,
326,
10815,
1543,
19710,
358,
506,
3096,
1368,
326,
1024,
4694,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1850,
394,
799,
3951,
1016,
9904,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0x22962a4a71D09f34BAB99AabA5D34e6E35FF2f0c/sources/SmartStaking.sol | * @dev claim dividends for a particular token that user has stake in @param _tokenAddr the token that the claim is made on/ | function claim(address _tokenAddr) external isValidToken(_tokenAddr) returns (uint) {
return _claim(_tokenAddr);
}
| 5,324,158 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7516,
3739,
350,
5839,
364,
279,
6826,
1147,
716,
729,
711,
384,
911,
316,
632,
891,
389,
2316,
3178,
326,
1147,
716,
326,
7516,
353,
7165,
603,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
12,
2867,
389,
2316,
3178,
13,
3903,
4908,
1345,
24899,
2316,
3178,
13,
1135,
261,
11890,
13,
288,
203,
3639,
327,
389,
14784,
24899,
2316,
3178,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x3B557Ff99BC6c2AA2A4BEB7478EA4b4dC58C8Ed2/sources/hijabcoin.sol | * @dev Modifier to make a function callable only when the contract is not paused. Requirements: - The contract must not be paused./ | modifier whenNotPaused() {
_requireNotPaused();
_;
}
| 4,343,051 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12832,
358,
1221,
279,
445,
4140,
1338,
1347,
326,
6835,
353,
486,
17781,
18,
29076,
30,
300,
1021,
6835,
1297,
486,
506,
17781,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
20597,
1347,
1248,
28590,
1435,
288,
203,
67,
6528,
1248,
28590,
5621,
203,
67,
31,
203,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../../interfaces/IUniswapV2Pair.sol";
import "../../interfaces/IUniswapV2Factory.sol";
import "../../libraries/UniswapV2Library.sol";
import "../../IVampireAdapter.sol";
import "../../IDrainControl... | token 0 - pickle token 1 - weth | contract PickleAdapter is IVampireAdapter {
IDrainController constant drainController = IDrainController(0x2e813f2e524dB699d279E631B0F2117856eb902C);
IMasterChef constant pickleMasterChef = IMasterChef(0xbD17B1ce622d73bD438b9E658acA5996dc394b0d);
IERC20 constant pickle = IERC20(0x429881672B9AE42b8EbA0E26cD9... | 5,374,477 | [
1,
4625,
348,
7953,
560,
30,
225,
1147,
374,
300,
13379,
1147,
404,
300,
341,
546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
23038,
298,
4216,
353,
21602,
931,
577,
4216,
288,
203,
565,
1599,
7596,
2933,
5381,
15427,
2933,
273,
1599,
7596,
2933,
12,
20,
92,
22,
73,
28,
3437,
74,
22,
73,
25,
3247,
72,
38,
26,
2733,
72,
5324,
29,
41,
4449,
21,... |
./partial_match/4/0x96ffFC2635dC791a4258D3606f61Af8b9e636cdF/sources/SushiswapGoblin.sol | @dev Re-invest whatever this worker has earned back to staked LP tokens. 1. Withdraw all the rewards. 2. Send the reward bounty to the caller. 3. Convert all the remaining rewards to ETH. 4. Use add ETH strategy to convert all ETH to LP tokens. 5. Mint more LP tokens and stake them for more rewards. | function reinvest() public onlyEOA nonReentrant {
masterChef.withdraw(pid, 0);
uint256 reward = testa.balanceOf(address(this));
if (reward == 0) return;
uint256 bounty = reward.mul(reinvestBountyBps) / 10000;
testa.safeTransfer(msg.sender, bounty);
address[] memory path = new address[](2);
... | 8,595,286 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
868,
17,
5768,
395,
15098,
333,
4322,
711,
425,
1303,
329,
1473,
358,
384,
9477,
511,
52,
2430,
18,
404,
18,
3423,
9446,
777,
326,
283,
6397,
18,
576,
18,
2479,
326,
19890,
324,
592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
283,
5768,
395,
1435,
1071,
1338,
41,
28202,
1661,
426,
8230,
970,
288,
203,
565,
4171,
39,
580,
74,
18,
1918,
9446,
12,
6610,
16,
374,
1769,
203,
565,
2254,
5034,
19890,
273,
1842,
69,
18,
12296,
951,
12,
2867,
12,
... |
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
// SPDX-License-Identifier: MIT OR Apache-2.0
import "./ReentrancyGuard.sol";
import "./SafeMath.sol";
import "./SafeMathUInt128.sol";
import "./SafeCast.sol";
import "./Utils.sol";
import "./Storage.sol";
import "./Config.sol";
import "./Events.sol";
im... | nftCreatorAccountId
| (offset, parsed.nftCreatorAccountId) = Bytes.readUInt32(_data, offset); | 10,423,076 | [
1,
4625,
348,
7953,
560,
30,
225,
290,
1222,
10636,
14594,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
261,
3348,
16,
2707,
18,
82,
1222,
10636,
14594,
13,
273,
5985,
18,
896,
14342,
1578,
24899,
892,
16,
1384,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
-----------------------------------------------------------------
FILE HEADER
-----------------------------------------------------------------
file: Havven.sol
version: 1.0
authors: Anton Jurisevic
Dominic Romanowski
Mike Spain
date: 2018-02-05
checked: Mike Spain
appr... | The same as saleProceedsEther(), but without the stale price check. */ | function saleProceedsEtherAllowStale(uint n)
internal
view
returns (uint)
{
return etherValueAllowStale(saleProceedsFiat(n));
}
| 1,230,072 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
1967,
487,
272,
5349,
626,
5288,
87,
41,
1136,
9334,
1496,
2887,
326,
14067,
6205,
866,
18,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
272,
5349,
626,
5288,
87,
41,
1136,
7009,
19155,
12,
11890,
290,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
13,
203,
565,
288,
203,
3639,
327,
225,
2437,
620,
7009,
19155,
12,
87,
5349,
626,
52... |
./full_match/56/0x304fCaFd129A9059eEC420700D60Aaa6cffD9fE5/sources/project_/contracts/DCBLiquidityLocker.sol | * @dev Constructor for proxy @param _router Address of router (Pancake)/ | function initialize(address _router) public initializer {
__Ownable_init();
router = IUniswapV2Router02(_router);
}
| 3,242,861 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11417,
364,
2889,
632,
891,
389,
10717,
5267,
434,
4633,
261,
4069,
23780,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4046,
12,
2867,
389,
10717,
13,
1071,
12562,
288,
203,
565,
1001,
5460,
429,
67,
2738,
5621,
203,
203,
565,
4633,
273,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
24899,
10717,
1769,
203,
225,
289,
203,
203,
2,
-100,
... |
./full_match/8453/0xf9cFB8a62f50e10AdDE5Aa888B44cF01C5957055/sources/contracts/libraries/helpers/Errors.sol | 'debt ratio haven't reach liquidate ratio'
| string internal constant VT_VAULT_DEBT_RATIO_TOO_LOW_TO_LIQUIDATE = "49"; | 11,549,337 | [
1,
4625,
348,
7953,
560,
30,
225,
296,
323,
23602,
7169,
15032,
1404,
9287,
4501,
26595,
340,
7169,
11,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
2713,
5381,
22944,
67,
27722,
2274,
67,
1639,
38,
56,
67,
54,
789,
4294,
67,
4296,
51,
67,
4130,
67,
4296,
67,
2053,
53,
3060,
1777,
273,
315,
7616,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x1C8E96B59b8611fFe635c94F58cc22760cb34e28/sources/contracts/libraries/SignatureValidator.sol | * @dev Verifies that a hash has been signed by the given signer. @param _signerAddress Address that should have signed the given hash. @param _hash Hash of the EIP-712 encoded data @param _signature Proof that the hash has been signed by signer. @return True if the address recovered from the provided si... | ) internal view returns (bool) {
if (_signerAddress.isContract()) {
return ERC1271_MAGICVALUE == IERC1271Wallet(_signerAddress).isValidSignature(_hash, _signature);
return _signerAddress == ECDSA.recover(_hash, _signature);
}
}
| 15,978,774 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6160,
5032,
716,
279,
1651,
711,
2118,
6726,
635,
326,
864,
10363,
18,
632,
891,
389,
2977,
264,
1887,
225,
5267,
716,
1410,
1240,
6726,
326,
864,
1651,
18,
632,
891,
389,
2816,
6647,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
67,
2977,
264,
1887,
18,
291,
8924,
10756,
288,
203,
5411,
327,
4232,
39,
2138,
11212,
67,
49,
22247,
4051,
422,
467,
654,
39,
2138,
11212,
16936,
24899,
2977,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the on... | getAllAssets(): return array of assets held by this contract Note: only useful for clients, as Solidity does not currently support returning dynamic arrays. | function getAllAssets()
view
external
returns (uint16[] memory allAssets)
{
return assets;
}
| 559,546 | [
1,
4625,
348,
7953,
560,
30,
282,
5514,
10726,
13332,
327,
526,
434,
7176,
15770,
635,
333,
6835,
565,
3609,
30,
1338,
5301,
364,
7712,
16,
487,
348,
7953,
560,
1552,
486,
4551,
565,
2865,
5785,
5976,
5352,
18,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5514,
10726,
1435,
203,
3639,
1476,
203,
3639,
3903,
203,
3639,
1135,
261,
11890,
2313,
8526,
3778,
777,
10726,
13,
203,
565,
288,
203,
3639,
327,
7176,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
// Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupp... | * Returns the value of the `uint256` type that mapped to the given key./ | function getUint(bytes32 _key) external view returns (uint256) {
return uIntStorage[_key];
}
| 342,389 | [
1,
4625,
348,
7953,
560,
30,
380,
2860,
326,
460,
434,
326,
1375,
11890,
5034,
68,
618,
716,
5525,
358,
326,
864,
498,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
336,
5487,
12,
3890,
1578,
389,
856,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
202,
202,
2463,
582,
1702,
3245,
63,
67,
856,
15533,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.16;
import "./interfaces/IBlockRewardHbbft.sol";
import "./interfaces/IKeyGenHistory.sol";
import "./interfaces/IRandomHbbft.sol";
import "./interfaces/IStakingHbbft.sol";
import "./interfaces/IValidatorSetHbbft.sol";
import "./upgradeability/UpgradeableOwned.sol";
import "./libs/SafeMath.sol";
... | @dev Ensures the caller is the BlockRewardHbbft contract address. | modifier onlyBlockRewardContract() {
require(msg.sender == blockRewardContract, "Only BlockReward contract");
_;
}
| 14,103,206 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1374,
8421,
326,
4894,
353,
326,
3914,
17631,
1060,
44,
9897,
1222,
6835,
1758,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
1768,
17631,
1060,
8924,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1203,
17631,
1060,
8924,
16,
315,
3386,
3914,
17631,
1060,
6835,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2022-03-24
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7 <0.9.0;
//import "../../utils/Context.sol";
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generall... | ------------------------------------------------- [public] コントローラーの確認------------------------------------------------- | function controller() public view returns (address) {
return( _controller );
}
| 15,051,566 | [
1,
4625,
348,
7953,
560,
30,
13420,
306,
482,
65,
225,
164,
229,
116,
164,
230,
116,
164,
230,
235,
164,
230,
260,
164,
230,
125,
164,
230,
107,
164,
230,
125,
164,
228,
111,
168,
100,
123,
169,
108,
240,
9634,
17,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2596,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
12,
389,
5723,
11272,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin... | Track how long an address has held a specific wizard | function _beforeTokenTransfer(address _from, address _to, uint256 _tokenId) internal override(ERC721, ERC721Enumerable) {
super._beforeTokenTransfer(_from, _to, _tokenId);
if (_from != _to && trackingHoldTime) {
uint256 startBlock = block.number;
if (_tokenId >= totalSupply() - 1) {
acquiredAt.push(star... | 332,810 | [
1,
4625,
348,
7953,
560,
30,
225,
11065,
3661,
1525,
392,
1758,
711,
15770,
279,
2923,
24204,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
389,
5771,
1345,
5912,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
2316,
548,
13,
2713,
3849,
12,
654,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
13,
288,
203,
202,
202,
9565,
6315,
5771,
1... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity ^0.8.6;
uint256 constant MAX_VAL = type(uint256).max;
// reverts on overflow
function safeAdd(uint256 x, uint256 y) pure returns (uint256) {
return x + y;
}
// does not revert on overflow
function unsafeAdd(uint256 x, uint256 y) pure returns (uin... | reverts on overflow | function safeAdd(uint256 x, uint256 y) pure returns (uint256) {
return x + y;
pragma solidity ^0.8.6;
}
| 1,053,862 | [
1,
4625,
348,
7953,
560,
30,
225,
15226,
87,
603,
9391,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
4183,
986,
12,
11890,
5034,
619,
16,
2254,
5034,
677,
13,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
619,
397,
677,
31,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
26,
31,
203,
97,
203,
2,
-100,
-100,
... |
./partial_match/1/0x0092CD4044E1672c9c513867eb75e6213AF9742f/sources/src/LlamaCore.sol | @dev `ActionInfo` does not hash to the correct value. | error InfoHashMismatch();
| 9,329,819 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1375,
1803,
966,
68,
1552,
486,
1651,
358,
326,
3434,
460,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
555,
3807,
2310,
16901,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0x495a338D18f10Fb71cBF9Bf3281BFb2A1425dFD1/sources/NFTSaleImpl.sol | * Release Artwork Contract instance NFTSaleImpl must pass _isApprovedOrOwner of nftAddress for nftId Must call setApprovalForAll(nftSaleAddress, true) @param nftId - nftId of the artwork @param to - address of the artwork recipient/ | function releaseArtwork(uint256 nftId, address to) public onlyAdmin {
_winnerPaid[nftId] = true;
ERC721Upgradeable(nftAddress).transferFrom(ERC721Upgradeable(nftAddress).ownerOf(nftId), to, nftId);
emit ArtworkReleased(nftId, to, block.timestamp);
}
| 731,107 | [
1,
4625,
348,
7953,
560,
30,
380,
10819,
9042,
1252,
13456,
791,
423,
4464,
30746,
2828,
1297,
1342,
389,
291,
31639,
1162,
5541,
434,
290,
1222,
1887,
364,
290,
1222,
548,
6753,
745,
444,
23461,
1290,
1595,
12,
82,
1222,
30746,
1887,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
3992,
4411,
1252,
12,
11890,
5034,
290,
1222,
548,
16,
1758,
358,
13,
1071,
1338,
4446,
288,
203,
3639,
389,
91,
7872,
16507,
350,
63,
82,
1222,
548,
65,
273,
638,
31,
203,
3639,
4232,
39,
27,
5340,
10784,
429,
12,
... |
./full_match/42/0x3E50E1EECAC5Ae4C84f684e7BB8Aa29F8824cBef/sources/defi_bot/DefiBot.sol | given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset | function getAmountOutLinkSwap(uint amountIn, uint reserveIn, uint reserveOut, uint256 fee) internal pure returns (uint amountOut) {
require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
uint... | 16,204,293 | [
1,
4625,
348,
7953,
560,
30,
225,
864,
392,
810,
3844,
434,
392,
3310,
471,
3082,
400,
264,
3324,
16,
1135,
326,
4207,
876,
3844,
434,
326,
1308,
3310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
24418,
1182,
2098,
12521,
12,
11890,
3844,
382,
16,
2254,
20501,
382,
16,
2254,
20501,
1182,
16,
2254,
5034,
14036,
13,
2713,
16618,
1135,
261,
11890,
3844,
1182,
13,
288,
203,
3639,
2583,
12,
8949,
382,
405,
374,
16,
2... |
/**
*Submitted for verification at Etherscan.io on 2021-03-23
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.6.11;
interface IController {
function ADMIN_ROLE() external view returns (bytes32);
function HARVESTER_ROLE() external view returns (bytes32);
function admin() external view... | / Incrementing totalDebt has the same effect as transferring profit back to vault and then depositing into this strategy Here we simply increment totalDebt to save gas | function skim() external override onlyAuthorized {
uint bal = IERC20(underlying).balanceOf(address(this));
uint supplied = _getSupplied();
uint borrowed = _getBorrowed();
uint unleveraged = supplied.sub(borrowed);
uint total = bal.add(unleveraged);
require(total > tot... | 2,068,955 | [
1,
4625,
348,
7953,
560,
30,
342,
17883,
310,
2078,
758,
23602,
711,
326,
1967,
5426,
487,
906,
74,
20245,
450,
7216,
1473,
358,
9229,
471,
1508,
443,
1724,
310,
1368,
333,
6252,
13743,
732,
8616,
5504,
2078,
758,
23602,
358,
1923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4343,
381,
1435,
3903,
3849,
1338,
15341,
288,
203,
3639,
2254,
324,
287,
273,
467,
654,
39,
3462,
12,
9341,
6291,
2934,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
2254,
4580,
273,
389,
588,
3088,
3110,
5621,
203... |
pragma solidity >=0.4.0 <0.6.0;
/*
Copyright 2017, Jordi Baylina, RJ Ewing
Contributors: Adrià Massanet <adria@codecontext.io>, Griff Green,
Arthur Lunn
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publis... | * @return the hash of the code for the given address/ retrieve the size of the code allocate output byte array actually retrieve the code | function getCodeHash(address addr) public view returns(bytes32) {
bytes memory o_code;
assembly {
let size := extcodesize(addr)
o_code := mload(0x40)
extcodecopy(addr, add(o_code, 0x20), 0, size)
}
return keccak256(o_code);
}
| 12,636,517 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
326,
1651,
434,
326,
981,
364,
326,
864,
1758,
19,
4614,
326,
963,
434,
326,
981,
10101,
876,
1160,
526,
6013,
4614,
326,
981,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6583,
2310,
12,
2867,
3091,
13,
1071,
1476,
1135,
12,
3890,
1578,
13,
288,
203,
3639,
1731,
3778,
320,
67,
710,
31,
203,
3639,
19931,
288,
203,
5411,
2231,
963,
519,
1110,
7000,
554,
12,
4793,
13,
203,
5411,
320,
67,
... |
/**
* @authors: [@unknownunknown1]
* @reviewers: []
* @auditors: []
* @bounties: []
* @deployments: []
*/
/* solium-disable security/no-block-members */
pragma solidity ^0.5.0;
import "./KlerosLiquid.sol";
import "@kleros/kleros-interaction/contracts/libraries/CappedMath.sol";
contract KlerosGovernor is A... | * @dev Submits created transaction list so it can be executed in the execution period. @param _listID The index of the transaction list in the array of lists./ Stores the hash of the list to catch duplicates. | function submitTransactionList(uint _listID) public payable depositRequired duringSubmissionPeriod{
TransactionList storage txList = txLists[_listID];
require(txList.sender == msg.sender, "Can't submit the list created by someone else");
require(txList.submissionTime == 0, "List is already s... | 12,868,806 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2592,
22679,
2522,
2492,
666,
1427,
518,
848,
506,
7120,
316,
326,
4588,
3879,
18,
225,
632,
891,
389,
1098,
734,
1021,
770,
434,
326,
2492,
666,
316,
326,
526,
434,
6035,
18,
19,
20296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4879,
3342,
682,
12,
11890,
389,
1098,
734,
13,
1071,
8843,
429,
443,
1724,
3705,
4982,
17865,
5027,
95,
203,
3639,
5947,
682,
2502,
2229,
682,
273,
2229,
7432,
63,
67,
1098,
734,
15533,
203,
3639,
2583,
12,
978,
682,
... |
./full_match/80001/0x897aE1577245E65741F94417d2633C00F155eb5F/sources/contracts/RecruitmentATSSmartContract.sol | Modifier to restrict access to applicant-only functions | modifier onlyApplicant() {
require(
applicants[msg.sender].applicantAddress != address(0),
'Only applicants can call this function.'
);
_;
}
| 5,565,353 | [
1,
4625,
348,
7953,
560,
30,
225,
12832,
358,
13108,
2006,
358,
513,
1780,
970,
17,
3700,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
1294,
1780,
970,
1435,
288,
203,
3639,
2583,
12,
203,
5411,
513,
1780,
4388,
63,
3576,
18,
15330,
8009,
438,
1780,
970,
1887,
480,
1758,
12,
20,
3631,
203,
5411,
296,
3386,
513,
1780,
4388,
848,
745,
333,
445,
... |
./partial_match/56/0x27759EfC12a268B17361B386aC77A8C2337f38d7/sources/ConsoleBar.sol | GamerSwap with Governance. | contract GamerSwap is BEP20('GamerSwap Token', 'GAMER') {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
constructor(address _treasury) public {
treasury = _treasury;
_mint(treasury... | 11,272,814 | [
1,
4625,
348,
7953,
560,
30,
225,
611,
24458,
12521,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
611,
24458,
12521,
353,
9722,
52,
3462,
2668,
43,
24458,
12521,
3155,
2187,
296,
43,
2192,
654,
6134,
288,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
contract OrchTestContract {
address lastAddressProvided;
mapping(bytes32 => bytes32) private testRecord;
bytes32 valueHolder;
/// @dev Constructor for the Orchestration contract
/// @author Aaron Kendall
constructor() {
/... | @dev This method will concatenate the provided strings into one larger string @notice | function strConcat(string memory _a, string memory _b) private pure returns (string memory) {
bytes memory _ba = bytes(_a);
bytes memory _bb = bytes(_b);
string memory abcde = new string(_ba.length + _bb.length);
bytes memory babcde = bytes(abcde);
uint k = 0;
... | 12,649,670 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1220,
707,
903,
11361,
326,
2112,
2064,
1368,
1245,
10974,
533,
632,
20392,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
609,
15113,
12,
1080,
3778,
389,
69,
16,
533,
3778,
389,
70,
13,
3238,
16618,
1135,
261,
1080,
3778,
13,
288,
203,
203,
3639,
1731,
3778,
389,
12124,
273,
1731,
24899,
69,
1769,
203,
3639,
1731,
3778,
389,
9897,
273,
... |
./full_match/42220/0x44938AC33f6F5D3831b66e755a7c07Ec9ccFEf88/sources/contracts/AutoRepay.sol | address[3] memory addressParams, user, collateralAsset, debtAsset, uint256[3] memory uintParams, collateralAmount, debtRepayAmount, debtRateMode, bool[4] memory boolParams useEthPath, useATokenAsFrom, useATokenAsTo, useFlashloan | function increaseHealthFactor(
RepayParams memory repayParams,
PermitSignature calldata permitSignature
) public {
require(isWhitelisted(msg.sender), 'Caller is not whitelisted');
_checkMinHealthFactor(repayParams.user);
if (repayParams.useFlashloan) {
bytes memory params = abi.encode(repa... | 16,341,875 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
63,
23,
65,
3778,
1758,
1370,
16,
225,
729,
16,
4508,
2045,
287,
6672,
16,
18202,
88,
6672,
16,
2254,
5034,
63,
23,
65,
3778,
2254,
1370,
16,
225,
4508,
2045,
287,
6275,
16,
18202,
88,
426... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
10929,
7802,
6837,
12,
203,
565,
868,
10239,
1370,
3778,
2071,
528,
1370,
16,
203,
565,
13813,
305,
5374,
745,
892,
21447,
5374,
203,
225,
262,
1071,
288,
203,
565,
2583,
12,
291,
18927,
329,
12,
3576,
18,
15330,
3631,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
// import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import './Admin.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract TheWellNFT is ERC721, Re... | * @notice adds marketplace contracts that are allowed to trade Well NFTs/ | function addApprovedMarketplace(address _otherMarketplace) external isAdmin() {
approvedMarketplaces[_otherMarketplace] = approvedMarketplaceArray.length + 1;
approvedMarketplaceArray.push(_otherMarketplace);
}
| 5,958,485 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4831,
29917,
20092,
716,
854,
2935,
358,
18542,
678,
1165,
423,
4464,
87,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
31639,
3882,
24577,
12,
2867,
389,
3011,
3882,
24577,
13,
3903,
23467,
1435,
288,
203,
3639,
20412,
3882,
278,
11350,
63,
67,
3011,
3882,
24577,
65,
273,
20412,
3882,
24577,
1076,
18,
2469,
397,
404,
31,
203,
3639,
... |
./full_match/80001/0xe8b4Bf2aA4b3D55A497E094AC780558B4186A8c5/sources/_thirdweb-dev/contracts/extension/PermissionsEnumerable.sol | @dev removes `account` from {roleMembers}, for `role` | function _removeMember(bytes32 role, address account) internal {
uint256 idx = roleMembers[role].indexOf[account];
delete roleMembers[role].members[idx];
delete roleMembers[role].indexOf[account];
}
| 5,605,006 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
7157,
1375,
4631,
68,
628,
288,
4615,
6918,
5779,
364,
1375,
4615,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4479,
4419,
12,
3890,
1578,
2478,
16,
1758,
2236,
13,
2713,
288,
203,
3639,
2254,
5034,
2067,
273,
2478,
6918,
63,
4615,
8009,
31806,
63,
4631,
15533,
203,
203,
3639,
1430,
2478,
6918,
63,
4615,
8009,
7640,
63,
346... |
./full_match/11297108109/0xbf3197f99d3522f957c2FC8B14D2099137f27df7/sources/contracts/NFTCollection/base/NFTAssetCollectionBase.sol | * @dev See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length./ | function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
public
view
virtual
override
returns (uint256[] memory)
{
_checkArrayLengths(accounts.length, ids.length);
uint256[] memory batchBalances = new uint256[](accounts.length);
f... | 13,236,522 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
2499,
2539,
17,
12296,
951,
4497,
5496,
29076,
30,
300,
1375,
13739,
68,
471,
1375,
2232,
68,
1297,
1240,
326,
1967,
769,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11013,
951,
4497,
12,
2867,
8526,
3778,
9484,
16,
2254,
5034,
8526,
3778,
3258,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
8526,
3778,
13,
203,
565,
288,
2... |
./full_match/43113/0x56Ce163A1909eC0c6F363FfdB71e781d56D41505/sources/project_/contracts/MintExtension.sol | * MintExtension Contract/ デモ用のNFTのコントラクトアドレスを格納する変数 | contract MintExtension is ISlashCustomPlugin, Ownable {
using SafeMath for uint256;
using UniversalERC20 for IERC20;
IERC721Demo private nftDemo;
mapping(string => uint256) public purchaseInfo;
event TokenWithdrawn(address tokenContract, uint256 amount);
function updateNftContractAddress(addr... | 7,149,233 | [
1,
4625,
348,
7953,
560,
30,
380,
490,
474,
3625,
13456,
19,
225,
164,
230,
234,
164,
230,
100,
168,
247,
106,
164,
228,
111,
50,
4464,
164,
228,
111,
164,
229,
116,
164,
230,
116,
164,
230,
235,
164,
230,
107,
164,
229,
112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
490,
474,
3625,
353,
467,
11033,
3802,
3773,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
27705,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
467,
654,
39,
27,
5340,
2... |
pragma solidity ^0.4.24;
/**
* @title ERC20 interface
*
*/
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);
function allowance(address owner, address spe... | * @dev Owner can transfer tokens that are sent to the contract by mistake/ | function refundTokens(address _recipient, ERC20 _token) onlyOwner public {
require(_token.transfer(_recipient, _token.balanceOf(this)));
}
| 13,055,925 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16837,
848,
7412,
2430,
716,
854,
3271,
358,
326,
6835,
635,
27228,
911,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
16255,
5157,
12,
2867,
389,
20367,
16,
4232,
39,
3462,
389,
2316,
13,
225,
1338,
5541,
1071,
288,
203,
565,
2583,
24899,
2316,
18,
13866,
24899,
20367,
16,
389,
2316,
18,
12296,
951,
12,
2211,
3719,
1769,
203,
225,
289,... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract Coin{
address public minter;
mapping (address => uint) balances;
constructor (){
minter = msg.sender;
}
... | only called by minter | function mint(address receiver, uint amount) public{
if (msg.sender != minter)
return;
balances[receiver] = amount;
}
| 13,100,524 | [
1,
4625,
348,
7953,
560,
30,
225,
1338,
2566,
635,
1131,
387,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
5971,
16,
2254,
3844,
13,
1071,
95,
203,
3639,
309,
261,
3576,
18,
15330,
480,
1131,
387,
13,
203,
5411,
327,
31,
203,
203,
3639,
324,
26488,
63,
24454,
65,
273,
3844,
31,
203,
565,
289,
203,
203... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
// Use upgradeable library. These interfaces will work for tokens that
// are non-upgradeable
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC... | 3. add or update a stake | uint sumIpp = pool.sumIpp[tranche];
| 10,241,701 | [
1,
4625,
348,
7953,
560,
30,
225,
890,
18,
527,
578,
1089,
279,
384,
911,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
2142,
5273,
84,
273,
2845,
18,
1364,
5273,
84,
63,
13171,
18706,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/**
* SPDX-License-Identifier: MIT
*
* Copyright (c) 2020-2021 SCEME SAS
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... | * @dev Function to add/update a new minter @param minter The address of the minter @param minterAllowedAmount The minting amount allowed for the minter/ | function addMinter(address minter, uint256 minterAllowedAmount)
public virtual
{
minterAllowed[minter] = minterAllowedAmount;
grantRole(MINTER_ROLE, minter);
}
| 6,064,670 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
527,
19,
2725,
279,
394,
1131,
387,
632,
891,
1131,
387,
1021,
1758,
434,
326,
1131,
387,
632,
891,
1131,
387,
5042,
6275,
1021,
312,
474,
310,
3844,
2935,
364,
326,
1131,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
49,
2761,
12,
2867,
1131,
387,
16,
2254,
5034,
1131,
387,
5042,
6275,
13,
203,
1377,
1071,
5024,
203,
565,
288,
203,
3639,
1131,
387,
5042,
63,
1154,
387,
65,
273,
1131,
387,
5042,
6275,
31,
203,
3639,
7936,
2996... |
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
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(uint... | The authentication manager details user accounts that have access to certain priviledges and keeps a permanent ledger of who has and has had these rights. */ | contract AuthenticationManager {
mapping (address => bool) adminAddresses;
mapping (address => bool) accountReaderAddresses;
address[] adminAudit;
address[] accountReaderAudit;
event AdminAdded(address addedBy, address admin);
event AdminRemoved(address removedBy, address admin);
event... | 6,360,203 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
5107,
3301,
3189,
729,
9484,
716,
1240,
2006,
358,
8626,
6015,
1411,
2852,
471,
20948,
279,
16866,
16160,
434,
10354,
711,
471,
711,
9323,
4259,
14989,
18,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8665,
1318,
288,
203,
565,
2874,
261,
2867,
516,
1426,
13,
3981,
7148,
31,
203,
203,
565,
2874,
261,
2867,
516,
1426,
13,
2236,
2514,
7148,
31,
203,
203,
565,
1758,
8526,
3981,
10832,
31,
203,
203,
565,
1758,
8526,
2236,
... |
./full_match/4/0x85ed12dd1D0498a7DdBdFAA3c2c5dEe2ABC4fEf7/sources/contracts/BalanceLogicContract.sol | The BalanceLogicContract is a contract that supplies logic to change some variables in the Mercor smart contractinfrastructure. It also offers the necessary checks in order to participate with the Mercor beta program.Function to whitelist users for the beta check. | contract BalanceLogicContract is Ownable {
using SafeMath for uint256;
uint256 public burningFee1 = 15 * 10**16;
uint256 public burningFee2 = 15 * 10**16;
uint256 public burningFee3 = 10 * 10**16;
uint256 public burningFee4 = 5 * 10**16;
uint256 public burningFee5 = 3 * 10**16;
uint256 pub... | 830,531 | [
1,
4625,
348,
7953,
560,
30,
1021,
30918,
20556,
8924,
353,
279,
6835,
716,
1169,
5259,
4058,
358,
2549,
2690,
3152,
316,
326,
14940,
3850,
13706,
6835,
267,
26150,
18,
2597,
2546,
28641,
326,
4573,
4271,
316,
1353,
358,
30891,
340,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
16351,
30918,
20556,
8924,
353,
14223,
6914,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
1071,
18305,
310,
14667,
21,
273,
4711,
380,
1728,
636,
2313,
31,
203,
565,
2254,
5034,
1071,
1830... |
./full_match/4/0x8436267B8b0f3051641d4ec453307e94165991AB/sources/browser/1155-clone-factory.sol | return addresses of deployed license contracts
| ERC1155License[] public deployedContracts; | 807,675 | [
1,
4625,
348,
7953,
560,
30,
225,
327,
6138,
434,
19357,
8630,
20092,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
4232,
39,
2499,
2539,
13211,
8526,
1071,
19357,
20723,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0x7050eCE7dFAd630e707eaDff3aE7a328D9552258/sources/project_/contracts/Vendor.sol | * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. These functions can be used to verify that a message was signed by the holder of the private keys of a given address./ | library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
revert("ECDSA: invalid signature");
revert... | 9,447,165 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10426,
549,
21507,
22901,
11678,
7053,
9249,
15067,
261,
7228,
19748,
13,
5295,
18,
8646,
4186,
848,
506,
1399,
358,
3929,
716,
279,
883,
1703,
6726,
635,
326,
10438,
434,
326,
3238,
1311,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
7773,
19748,
288,
203,
565,
2792,
868,
3165,
668,
288,
203,
3639,
2631,
668,
16,
203,
3639,
1962,
5374,
16,
203,
3639,
1962,
5374,
1782,
16,
203,
3639,
1962,
5374,
55,
16,
203,
565,
289,
203,
203,
565,
445,
389,
12849,
6... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-0.8/utils/math/SafeMath.sol";
import "@openzeppelin/contracts-0.8/access/Ownable.sol";
import "../common/BaseWithStorage/ERC2771Handler.sol";
import "../common/interfaces/IAssetMinter.sol";
import ".... | @dev Burn a batch of catalysts in one tx. @param from The original address that signed the tx. @param catalystsQuantities An array of quantities for each type of catalyst to burn. | function _batchBurnCatalysts(address from, uint256[] memory catalystsQuantities) internal {
uint16[] memory ids = new uint16[](catalystsQuantities.length);
for (uint16 i = 0; i < ids.length; i++) {
ids[i] = i + 1;
}
_gemsCatalystsRegistry.batchBurnCatalysts(from, ids, _sc... | 5,427,749 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
605,
321,
279,
2581,
434,
276,
3145,
1094,
87,
316,
1245,
2229,
18,
632,
891,
628,
1021,
2282,
1758,
716,
6726,
326,
2229,
18,
632,
891,
276,
3145,
1094,
87,
19471,
1961,
1922,
526,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5303,
38,
321,
39,
3145,
1094,
87,
12,
2867,
628,
16,
2254,
5034,
8526,
3778,
276,
3145,
1094,
87,
19471,
1961,
13,
2713,
288,
203,
3639,
2254,
2313,
8526,
3778,
3258,
273,
394,
2254,
2313,
8526,
12,
2574,
287,
1... |
./partial_match/3/0x1696214f3a70CdB3EAc8CEB8121Dc0D6319Ef8e8/sources/LiquidityProtectionStore.sol | bits 0...111 represent the numerator of the rate between the protected reserve token and the other reserve token bits 111...223 represent the denominator of the rate between the protected reserve token and the other reserve token bits 224...255 represent the update-time of the rate between the protected reserve token ... | struct ProtectedLiquidity {
}
| 5,129,416 | [
1,
4625,
348,
7953,
560,
30,
225,
4125,
374,
2777,
20227,
2406,
326,
16730,
434,
326,
4993,
3086,
326,
4750,
20501,
1147,
471,
326,
1308,
20501,
1147,
4125,
16344,
2777,
3787,
23,
2406,
326,
15030,
434,
326,
4993,
3086,
326,
4750,
205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
1186,
1050,
48,
18988,
24237,
288,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.21;
// File: contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a... | * @title RefundVault @dev This contract is used for storing funds while a crowdsale is in progress. Supports refunding the money if crowdsale fails, and forwarding it if crowdsale is successful./ | contract RefundVault is Ownable {
using SafeMath for uint256;
mapping (address => uint256) public deposited;
address public wallet;
State public state;
event Closed();
event RefundsEnabled();
event Refunded(address indexed beneficiary, uint256 weiAmount);
enum State { Active, Refunding, Closed }
... | 1,107,175 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
3941,
1074,
12003,
632,
5206,
1220,
6835,
353,
1399,
364,
15729,
284,
19156,
1323,
279,
276,
492,
2377,
5349,
353,
316,
4007,
18,
25110,
1278,
14351,
326,
15601,
309,
276,
492,
2377,
5349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3941,
1074,
12003,
353,
14223,
6914,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
225,
2874,
261,
2867,
516,
2254,
5034,
13,
1071,
443,
1724,
329,
31,
203,
225,
1758,
1071,
9230,
31,
203,
225,
328... |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import "./uniswapv2/interfaces/IU... | @notice Convert amount to mStable credits amount for redeem. Add 1 because the amounts always round down e.g. i have 51 credits, e4 10 = 20.4 to withdraw 20 i need 20*10/4 = 50 + 1 | function _getRedeemInput(uint256 amount) internal view returns (uint256 credits) {
credits = amount.mul(1e18).div(IMStable(savingsContract).exchangeRate()).add(1);
}
| 1,609,425 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4037,
3844,
358,
312,
30915,
6197,
1282,
3844,
364,
283,
24903,
18,
1436,
404,
2724,
326,
30980,
3712,
3643,
2588,
425,
18,
75,
18,
277,
1240,
21119,
6197,
1282,
16,
425,
24,
1728,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
389,
588,
426,
24903,
1210,
12,
11890,
5034,
3844,
13,
2713,
1476,
1135,
261,
11890,
5034,
6197,
1282,
13,
288,
203,
3639,
6197,
1282,
273,
3844,
18,
16411,
12,
21,
73,
2643,
2934,
2892,
12,
3445,
30915,
12,
87,
27497,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
// I was asked to import this ERC721 interface because cryptokitty is an ERC 721 compliant NFT
interface ERC721 /* is ERC165 */ {
event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId);
event Approval(address in... | This mitigates the trust issue, that the contract and kittyOwner would not sell off his cryptoKitty when the auction is still on-going
| cryptoKittyContract.transferFrom(msg.sender, this, cryptoKittyDna); | 12,722,156 | [
1,
4625,
348,
7953,
560,
30,
1220,
20310,
360,
815,
326,
10267,
5672,
16,
716,
326,
6835,
471,
31758,
4098,
5541,
4102,
486,
357,
80,
3397,
18423,
8170,
14102,
4098,
1347,
326,
279,
4062,
353,
4859,
603,
17,
8162,
203,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
8170,
14102,
4098,
8924,
18,
13866,
1265,
12,
3576,
18,
15330,
16,
333,
16,
8170,
14102,
4098,
40,
6582,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x1Fa85cbB83B065E5Eb3Ea302Dc49A9Cde7a5D47f/sources/MiniMeToken.sol | @notice `msg.sender` approves `_spender` to spend `_amount` tokens on its behalf. This is a modified version of the ERC20 approve function to be a little bit safer @param _spender The address of the account able to transfer the tokens @param _amount The amount of tokens to be approved for transfer @return True if th... | function approve(address _spender, uint256 _amount) public returns (bool success) {
require(transfersEnabled);
require((_amount == 0) || (allowed[msg.sender][_spender] == 0));
if (isContract(controller)) {
require(TokenController(controller).onApprove(msg.sender, _spender, _amount));
}
al... | 2,760,056 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1375,
3576,
18,
15330,
68,
6617,
3324,
1375,
67,
87,
1302,
264,
68,
358,
17571,
1375,
67,
8949,
68,
2430,
603,
225,
2097,
12433,
6186,
18,
1220,
353,
279,
4358,
1177,
434,
326,
4232,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
8949,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
565,
2583,
12,
2338,
18881,
1526,
1769,
203,
203,
565,
2583,
12443,
67,
8949,
422,
374,
13,
747,
261,
... |
./full_match/11155111/0xa2AD4c40E6DDA0366BFa55B146c30e5c100696C2/sources/multiowned.sol | (re)sets the daily limit. needs many of the owners to confirm. doesn't alter the amount already spent today. | function resetSpentToday() onlymanyowners(sha3(msg.data, block.number)) external {
m_spentToday = 0;
}
| 3,796,788 | [
1,
4625,
348,
7953,
560,
30,
225,
261,
266,
13,
4424,
326,
18872,
1800,
18,
4260,
4906,
434,
326,
25937,
358,
6932,
18,
3302,
1404,
10182,
326,
3844,
1818,
26515,
10074,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2715,
3389,
319,
56,
20136,
1435,
1338,
9353,
995,
414,
12,
7819,
23,
12,
3576,
18,
892,
16,
1203,
18,
2696,
3719,
3903,
288,
203,
3639,
312,
67,
20693,
56,
20136,
273,
374,
31,
203,
565,
289,
203,
377,
203,
2,
-100... |
./partial_match/1/0xB22049e20B90BBb26F17CEcDb9Fa26D64f504F04/sources/MANKIND.sol | set as charity wallet
| charityWallet = address(0x3217DDdd464F1752eDFbe63cB03871CC57EDF749); | 15,462,742 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
1149,
560,
9230,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
3001,
560,
16936,
273,
1758,
12,
20,
92,
1578,
4033,
5698,
449,
24,
1105,
42,
4033,
9401,
73,
4577,
2196,
4449,
71,
38,
4630,
11035,
21,
6743,
10321,
2056,
42,
5608,
29,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.4;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns... | * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder accou... | interface IERC20PermitUpgradeable {
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
function nonces(address owner) external view returns (uint256);
function DOMAIN_SEPARA... | 34,252 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
13813,
305,
2710,
15632,
6617,
4524,
358,
506,
7165,
3970,
14862,
16,
487,
2553,
316,
15605,
326,
288,
457,
1938,
97,
707,
16,
1492,
848,
506,
1399,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
654,
39,
3462,
9123,
305,
10784,
429,
288,
203,
565,
445,
21447,
12,
203,
3639,
1758,
3410,
16,
203,
3639,
1758,
17571,
264,
16,
203,
3639,
2254,
5034,
460,
16,
203,
3639,
2254,
5034,
14096,
16,
203,
3639,
2254,
28,
... |
./full_match/43114/0x717955905bf71b84651f4eD75AAC4C6A4b33b410/sources/contracts/vault/LBVaultNative.sol | @notice Rescues funds stuck @param _token address of the token to rescue. | function inCaseTokensGetStuck(address _token) external onlyOwner {
uint256 amount = IERC20(_token).balanceOf(address(this));
IERC20(_token).safeTransfer(msg.sender, amount);
}
| 4,624,753 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
534,
742,
3610,
284,
19156,
384,
9031,
632,
891,
389,
2316,
1758,
434,
326,
1147,
358,
8223,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
316,
2449,
5157,
967,
510,
9031,
12,
2867,
389,
2316,
13,
3903,
1338,
5541,
288,
203,
3639,
2254,
5034,
3844,
273,
467,
654,
39,
3462,
24899,
2316,
2934,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
467,
654,
39,
... |
./partial_match/3/0xa54B20de67B059944c0eeD388e71f4D1a9e14041/sources/RigelGift.sol | * @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor... | library SafeMathUint8 {
function add(uint8 a, uint8 b) internal pure returns (uint8) {
uint8 c = a + b;
require(c >= a, "SafeMathUnit8: addition overflow");
return c;
}
}
| 5,272,794 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4266,
10422,
1879,
348,
7953,
560,
1807,
30828,
5295,
598,
3096,
9391,
4271,
18,
27443,
5295,
316,
348,
7953,
560,
2193,
603,
9391,
18,
1220,
848,
17997,
563,
316,
22398,
16,
2724,
5402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
10477,
5487,
28,
288,
203,
203,
565,
445,
527,
12,
11890,
28,
279,
16,
2254,
28,
324,
13,
2713,
16618,
1135,
261,
11890,
28,
13,
288,
203,
3639,
2254,
28,
276,
273,
279,
397,
324,
31,
203,
3639,
2583,
12,
71,
15... |
./partial_match/4/0x84F7d65E1D82cb8c839b21945c085eC794D93d5b/sources/TetherToken.sol | * @title ERC20Basic @dev Simpler version of ERC20 interface/ | abstract contract ERC20Basic {
uint256 public _totalSupply;
function totalSupply() public virtual view returns (uint256);
function balanceOf(address who) public virtual view returns (uint256);
function transfer(address to, uint256 value) public virtual;
event Transfer(address indexed from, address indexed... | 8,758,914 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
8252,
632,
5206,
9587,
20728,
1177,
434,
4232,
39,
3462,
1560,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
3462,
8252,
288,
203,
225,
2254,
5034,
1071,
389,
4963,
3088,
1283,
31,
203,
203,
225,
445,
2078,
3088,
1283,
1435,
1071,
5024,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
225,
445,
11013,
951,
12,
2867,
... |
pragma solidity 0.5.17;
import {ValidateSPV} from "@summa-tx/bitcoin-spv-sol/contracts/ValidateSPV.sol";
import {BTCUtils} from "@summa-tx/bitcoin-spv-sol/contracts/BTCUtils.sol";
import {BytesLib} from "@summa-tx/bitcoin-spv-sol/contracts/BytesLib.sol";
import {
IBondedECDSAKeep
} from "@keep-network/keep-ecdsa/c... | @notice Withdraw caller's allowance. @dev Withdrawals can only happen when a contract is in an end-state. zero-out to prevent reentrancy | function withdrawFunds(DepositUtils.Deposit storage _d) internal {
uint256 available = _d.withdrawableAmounts[msg.sender];
require(_d.inEndState(), "Contract not yet terminated");
require(available > 0, "Nothing to withdraw");
require(
address(this).balance >= available,... | 6,360,097 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
377,
3423,
9446,
4894,
1807,
1699,
1359,
18,
632,
5206,
3639,
3423,
9446,
1031,
848,
1338,
5865,
1347,
279,
6835,
353,
316,
392,
679,
17,
2019,
18,
3634,
17,
659,
358,
5309,
283,
8230,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
42,
19156,
12,
758,
1724,
1989,
18,
758,
1724,
2502,
389,
72,
13,
2713,
288,
203,
3639,
2254,
5034,
2319,
273,
389,
72,
18,
1918,
9446,
429,
6275,
87,
63,
3576,
18,
15330,
15533,
203,
203,
3639,
2583,
24899... |
pragma solidity ^0.4.22;
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) {
ui... | admin account is creator of BlueprintFactory, currently there is no functionality for transfer of ownershipNOTE6: possible upside of functionality doesn't really justify possible security concerns over transfering ownership of admin rolespecify deployed/minted token, this can be hard coded after we determine which netw... | uint256 _purchasePrice) public {
admin = msg.sender;
rblxToken = RublixToken(_rblxTokenAddress);
rblxOracleAddress = _rblxOracleAddress;
purchasePrice = _purchasePrice;
creationPrice = _creationPrice;
lastBlueprintID = 0;
lastUserID = 0;
}
| 7,247,140 | [
1,
4625,
348,
7953,
560,
30,
3981,
2236,
353,
11784,
434,
14499,
1733,
16,
4551,
1915,
353,
1158,
14176,
364,
7412,
434,
23178,
17857,
26,
30,
3323,
731,
5564,
434,
14176,
3302,
1404,
8654,
31455,
3323,
4373,
356,
2750,
2387,
1879,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5411,
2254,
5034,
389,
12688,
12104,
5147,
13,
1071,
288,
203,
203,
3639,
3981,
273,
1234,
18,
15330,
31,
203,
203,
3639,
436,
3083,
92,
1345,
273,
225,
534,
440,
697,
1345,
24899,
86,
3083,
92,
1345,
1887,
1769,
203,
203,
3639,
... |
/**
*Submitted for verification at Etherscan.io on 2021-04-22
*/
// Sources flattened with hardhat v2.1.1 https://hardhat.org
// File @openzeppelin/contracts-upgradeable/utils/[email protected]
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {... | @dev If this value changes we need to reconstruct the DOMAIN_SEPARATOR | string public constant version = "cafe-2.0";
| 10,565,563 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
971,
333,
460,
3478,
732,
1608,
358,
23243,
326,
27025,
67,
4550,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
1071,
5381,
1177,
273,
315,
71,
2513,
17,
22,
18,
20,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzepp... | _mint function check tokenId existence | function mint(address recipient)
external
override
returns (uint256 tokenId)
{
require(_usersMap[recipient] == 0, "only mint once");
_mint(recipient, (tokenId = _nextId++));
emit MintYangNFT(recipient, tokenId);
}
| 2,502,994 | [
1,
4625,
348,
7953,
560,
30,
225,
389,
81,
474,
445,
866,
1147,
548,
15782,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
8027,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
1147,
548,
13,
203,
565,
288,
203,
3639,
2583,
24899,
5577,
863,
63,
20367,
65,
422,
374,
16,
315,
3700,
312,
474,
364... |
./partial_match/8453/0xFDaAb3725a4a4f9a4D61fDc5A817D3c4a9434D8D/sources/CHILO.sol | Used as an identifier for strings longer than 31 bytes. | library ShortStrings {
bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;
error StringTooLong(string str);
error InvalidShortString();
function toShortString(string memory str) internal pure returns (ShortString) {
bytes memory b... | 16,734,724 | [
1,
4625,
348,
7953,
560,
30,
225,
10286,
487,
392,
2756,
364,
2064,
7144,
2353,
8231,
1731,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
7925,
7957,
288,
203,
565,
1731,
1578,
3238,
5381,
389,
42,
4685,
8720,
67,
17418,
706,
2247,
273,
374,
92,
12648,
12648,
12648,
12648,
12648,
12648,
12648,
9449,
2246,
31,
203,
203,
565,
555,
514,
10703,
3708,
12,
1080,
609... |
/// Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20
pragma solidity ^0.4.11;
/// @title Abstract token contract - Functions to be implemented by token contracts
contract Token {
/*
* Events
*/
event Transfer(address indexed from, address indexed to, uint value);
ev... | @title Abstract token contract - Functions to be implemented by token contracts | contract Token {
event Transfer(address indexed from, address indexed to, uint value);
event Approval(address indexed owner, address indexed spender, uint value);
function transfer(address to, uint value) public returns (bool);
function transferFrom(address from, address to, uint value) public returns... | 14,125,208 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
4115,
1147,
6835,
300,
15486,
358,
506,
8249,
635,
1147,
20092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
288,
203,
203,
565,
871,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
460,
1769,
203,
565,
871,
1716,
685,
1125,
12,
2867,
8808,
3410,
16,
1758,
8808,
17571,
264,
16,
2254,
460,
1769,
203,
203,
565,
4... |
./partial_match/42/0xAc8b3F4E381Ae24467cBeCA803214360481f7812/sources/ArbitrableTokenList.sol | * @dev Gets information on a request made for a token. @param _tokenID The ID of the queried token. @param _request The request to be queried. @return The request information./ | {
Request storage request = tokens[_tokenID].requests[_request];
return (
request.disputed,
request.disputeID,
request.submissionTime,
request.resolved,
request.parties,
request.rounds.length,
request.ruling,
... | 8,958,708 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
1779,
603,
279,
590,
7165,
364,
279,
1147,
18,
225,
632,
891,
389,
2316,
734,
1021,
1599,
434,
326,
23264,
1147,
18,
225,
632,
891,
389,
2293,
1021,
590,
358,
506,
23264,
18,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
1567,
2502,
590,
273,
2430,
63,
67,
2316,
734,
8009,
11420,
63,
67,
2293,
15533,
203,
3639,
327,
261,
203,
5411,
590,
18,
2251,
458,
329,
16,
203,
5411,
590,
18,
2251,
2507,
734,
16,
203,
5411,
590,
18,
1... |
/**
*Submitted for verification at Etherscan.io on 2020-01-23
*/
pragma solidity ^0.5.16;
//This is the official Happy Face Place.
//You can send ChainFaces to this contract, but nobody will ever be able to retrieve them.
//No, not even Zoma
contract ChainFaces{
//Come to the Happy Face Place my beau... | Come to the Happy Face Place my beautiful children <3 | contract ChainFaces{
function createFace(uint256 seed) public payable {}
}
| 12,980,484 | [
1,
4625,
348,
7953,
560,
30,
1286,
73,
358,
326,
670,
438,
2074,
15325,
13022,
3399,
506,
25432,
2325,
411,
23,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7824,
17268,
95,
203,
203,
203,
565,
445,
752,
11824,
12,
11890,
5034,
5009,
13,
1071,
8843,
429,
2618,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.6.0 <0.8.0;
interface IMultisig {
function owners() external view returns (address[] memory addresses, uint256[] memory vPowers);
function request() external view returns (address destination, uint256 value, bytes memory data);
function requestPr... | @dev return list of currents owners and their respective voting weight @return addresses List of owners's address @return vPowers List of owner's voting weight | function owners() external view override returns (address[] memory addresses, uint256[] memory vPowers) {
uint256[] memory values = new uint256[](_owners.length);
uint256 i;
for (i = 0; i < _owners.length; i++) {
values[i] = (_votePowers[_owners[i]]);
}
return (_o... | 11,746,480 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
327,
666,
434,
783,
87,
25937,
471,
3675,
17613,
331,
17128,
3119,
632,
2463,
6138,
987,
434,
25937,
1807,
1758,
632,
2463,
331,
28289,
414,
987,
434,
3410,
1807,
331,
17128,
3119,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25937,
1435,
3903,
1476,
3849,
1135,
261,
2867,
8526,
3778,
6138,
16,
2254,
5034,
8526,
3778,
331,
28289,
414,
13,
288,
203,
3639,
2254,
5034,
8526,
3778,
924,
273,
394,
2254,
5034,
8526,
24899,
995,
414,
18,
2469,
1769,
... |
./full_match/97/0x79de3D49C544d3f3dd096e81C26dA329992FfaED/sources/project_/contracts/SousChef.sol | SousChef is the chef of new tokens. He can make yummy food and he is a fair guy as well as MasterChef. Info of each user. | contract SousChef {
using SafeMath for uint256;
using SafeBEP20 for IBEP20;
import '@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol';
struct UserInfo {
uint256 rewardPending;
}
struct PoolInfo {
}
event Deposit(address indexed user, uint256 amount);
event Withdr... | 5,042,379 | [
1,
4625,
348,
7953,
560,
30,
225,
348,
1481,
39,
580,
74,
353,
326,
462,
10241,
434,
394,
2430,
18,
8264,
848,
1221,
677,
379,
4811,
284,
4773,
471,
3904,
353,
279,
284,
1826,
3058,
93,
487,
5492,
487,
13453,
39,
580,
74,
18,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
348,
1481,
39,
580,
74,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
5948,
52,
3462,
364,
467,
5948,
52,
3462,
31,
203,
203,
5666,
4622,
7355,
71,
3223,
91,
438,
19,
7355,
23780,
17,
222... |
./partial_match/97/0xbD87040858799bAe5606baf1e6E8b01Da216E47F/sources/baseNFT.sol | uint256 nftIndex; The getNFT has already been scanned. This is allowed, but needs to be displayed in the event feed. | function scanNFT(address originAddress) public {
uint256 nftIndex = tokenOfOwnerByIndex(originAddress, 0);
if (balanceOf(originAddress) == 0) {
emit illegalScan(nftIndex);
}
if (statusNft == true) {
emit illegalScan(nftIndex);
return;
}
... | 11,481,601 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
290,
1222,
1016,
31,
1021,
11069,
4464,
711,
1818,
2118,
22711,
18,
1220,
353,
2935,
16,
1496,
4260,
358,
506,
10453,
316,
326,
871,
4746,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4135,
50,
4464,
12,
2867,
4026,
1887,
13,
1071,
288,
203,
203,
3639,
2254,
5034,
290,
1222,
1016,
273,
1147,
951,
5541,
21268,
12,
10012,
1887,
16,
374,
1769,
203,
203,
3639,
309,
261,
12296,
951,
12,
10012,
1887,
13,
... |
./full_match/4/0x0A87021D82453AB0B18a375aFfdB8C689e05A182/sources/sirtoken3.sol | * @dev adds time lock to accounts tokens @param account_ address @param days_ lock duration in days @notice requires that account is not yet locked. This way not even contract owner can chage lock time./ | function setTimeLocked(address account_, uint256 days_) public onlyOwner {
require(_timeLocked[account_] == 0, "locked");
_timeLocked[account_] = block.timestamp.add(days_.mul(1 days));
emit TimeLocked(account_, days_, _timeLocked[account_]);
}
| 12,424,946 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
5206,
4831,
813,
2176,
358,
9484,
2430,
225,
632,
891,
2236,
67,
1758,
225,
632,
891,
4681,
67,
2176,
3734,
316,
4681,
225,
632,
20392,
4991,
716,
2236,
353,
486,
4671,
8586,
18,
225,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11195,
8966,
12,
2867,
2236,
67,
16,
2254,
5034,
4681,
67,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
957,
8966,
63,
4631,
67,
65,
422,
374,
16,
315,
15091,
8863,
203,
3639,
389,
957,
8966,
63,
4631,
67,
65,
... |
./full_match/1/0x7E2bDd0837A497513A4650Ac477aDF7475D87ecE/sources/contracts/UnimoonTreasury.sol | * @dev View function to get available USDC balance in treasury (USDC treasury contract balance + non-swapped swap fees) @return available USDC balance/ | function gelAllAvailableFunds() external view returns (uint256) {
uint256 balance = IToken(UNIMOON_TOKEN).balanceOf(address(this));
if (balance == 0) return IToken(USDC).balanceOf(address(this));
address[] memory path = new address[](2);
path[0] = UNIMOON_TOKEN;
path[1] = USD... | 8,438,584 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4441,
445,
358,
336,
2319,
11836,
5528,
11013,
316,
9787,
345,
22498,
261,
3378,
5528,
9787,
345,
22498,
6835,
11013,
397,
1661,
17,
22270,
1845,
7720,
1656,
281,
13,
632,
2463,
2319,
11836... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
314,
292,
1595,
5268,
42,
19156,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
11013,
273,
467,
1345,
12,
2124,
3445,
51,
673,
67,
8412,
2934,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./../lib/uniswap/UniswapV2Library.sol";
import "./../lib/un... | a * b / doubleScale => uint
| return (cTokenBalance_).mul(deltaIndex).div(DOUBLE_SCALE); | 59,940 | [
1,
4625,
348,
7953,
560,
30,
225,
279,
380,
324,
342,
1645,
5587,
516,
2254,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
327,
261,
71,
1345,
13937,
67,
2934,
16411,
12,
9878,
1016,
2934,
2892,
12,
17088,
67,
19378,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/5/0x66A85C93526f5a0BA33F29b43035b7fF864E739A/sources/project_/contracts/TokenOfAppreciation.sol | ✧・゚: *✧・゚:* 1. Property Variables ✧・゚: *✧・゚:* ✧・゚: *✧・゚:* 2. Constructor ✧・゚: *✧・゚:* | contract TokenOfAppreciation is ERC1155, ERC1155Burnable, Ownable {
string public constant name = "eCardDemo";
string public constant symbol = "ECD";
mapping (string => uint256) public tokenIds;
constructor(
tokenIds["cucumber"] = 1;
tokenIds["strawbeary"] = 2;
tokenIds["star... | 1,917,111 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
163,
255,
105,
176,
126,
103,
176,
127,
258,
30,
380,
163,
255,
105,
176,
126,
103,
176,
127,
258,
30,
14,
404,
18,
4276,
23536,
225,
163,
255,
105,
176,
126,
103,
176,
127,
258,
30,
380,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3155,
951,
1294,
4036,
7072,
353,
4232,
39,
2499,
2539,
16,
4232,
39,
2499,
2539,
38,
321,
429,
16,
14223,
6914,
288,
203,
203,
203,
565,
533,
1071,
5381,
508,
273,
315,
73,
6415,
27126,
14432,
203,
565,
533,
1071,
5381,
... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
import "../../openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol";
import "./libraries/Constant.sol";
import "./libraries/OrderData.sol";
import "./module/TradeModule.sol";
import "./module/OrderModule.... | * @notice Deposit collateral to the perpetual. Can only called when the perpetual's state is "NORMAL". This method will always increase `cash` amount in trader's margin account. @param perpetualIndex The index of the perpetual in the liquidity pool. @param trader The address of the trad... | function deposit(
uint256 perpetualIndex,
address trader,
int256 amount
) external onlyAuthorized(trader, Constant.PRIVILEGE_DEPOSIT) nonReentrant {
require(
_liquidityPool.perpetuals[perpetualIndex].state == PerpetualState.NORMAL,
"perpetual should be in ... | 1,027,891 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
225,
4019,
538,
305,
4508,
2045,
287,
358,
326,
1534,
6951,
1462,
18,
1850,
4480,
1338,
2566,
1347,
326,
1534,
6951,
1462,
1807,
919,
353,
315,
15480,
9654,
1850,
1220,
707,
903,
3712,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
443,
1724,
12,
203,
3639,
2254,
5034,
1534,
6951,
1462,
1016,
16,
203,
3639,
1758,
1284,
765,
16,
203,
3639,
509,
5034,
3844,
203,
565,
262,
3903,
1338,
15341,
12,
313,
1143,
16,
10551,
18,
7698,
4136,
900,
7113,
67,
... |
./partial_match/1/0x5bCDC405Cb237996d29fe3Ec779209e65fF2d39C/sources/ERC721A.sol | The nested ifs save around 20+ gas over a compound boolean condition. Clear approvals from the previous owner. This is equivalent to `delete _tokenApprovals[tokenId]`. Underflow of the sender's balance is impossible because we check for ownership above and the recipient's balance can't realistically overflow. Counter ... | function transferFrom(
address from,
address to,
uint256 tokenId
) public payable virtual override onlyAllowedOperator(from){
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner()... | 2,831,795 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
4764,
309,
87,
1923,
6740,
4200,
15,
16189,
1879,
279,
11360,
1250,
2269,
18,
10121,
6617,
4524,
628,
326,
2416,
3410,
18,
1220,
353,
7680,
358,
1375,
3733,
389,
2316,
12053,
4524,
63,
2316,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
1071,
8843,
429,
5024,
3849,
1338,
5042,
5592,
12,
2080,
15329,
203,
3639,
2254,
5034,
2807,
5460,
125... |
//Address: 0xa3958375Aa3B1494faE8D53dc4a074232801bBBe
//Contract name: STQPreICO3
//Balance: 0 Ether
//Verification Date: 10/28/2017
//Transacion Count: 17
// CODE STARTS HERE
pragma solidity 0.4.15;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/is... | FIELDS @dev contract responsible for token accounting @title Base contract for Storiqa pre-ICO | contract STQPreICOBase is SimpleCrowdsaleBase, Ownable, InvestmentAnalytics {
function STQPreICOBase(address token)
SimpleCrowdsaleBase(token)
function getMaximumFunds() internal constant returns (uint);
function getMinimumFunds() internal constant returns (uint);
function getStartTime() inte... | 5,417,031 | [
1,
4625,
348,
7953,
560,
30,
225,
4011,
11608,
632,
5206,
6835,
14549,
364,
1147,
2236,
310,
632,
2649,
3360,
6835,
364,
934,
280,
77,
7588,
675,
17,
2871,
51,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
2347,
53,
1386,
2871,
51,
2171,
353,
4477,
39,
492,
2377,
5349,
2171,
16,
14223,
6914,
16,
5454,
395,
475,
15675,
288,
203,
203,
565,
445,
2347,
53,
1386,
2871,
51,
2171,
12,
2867,
1147,
13,
203,
3639,
4477,
39,
492,
237... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
import "../reserve/GoodReserveCDai.sol";
import "../Interfaces.sol";
import "../utils/DSMath.sol";
import "../utils/DAOUpgradeableContract.sol";
/**
* @title GoodFundManager contract that transfer interest from the staking contract
* to the reserve contract ... | Determines the reserve token balance that the reserve contract holds Determines the current ratio between the reserve token and the GD token How many GD tokens have been minted against that reserve tokenlast time reserve ratio was expanded | function pre(
address _scheme,
bytes32 _params,
bytes32 _method
) external returns (bool);
function when() external returns (CallPhase);
}
}
}
}
pragma solidity >=0.8.0;
import "../utils/DSMath.sol";
import "../utils/BancorFormula.sol";
import "../DAOStackInterfaces.sol";
import "../Interfaces.sol";
imp... | 14,636,524 | [
1,
4625,
348,
7953,
560,
30,
225,
30778,
326,
20501,
1147,
11013,
716,
326,
20501,
6835,
14798,
30778,
326,
783,
7169,
3086,
326,
20501,
1147,
471,
326,
30176,
1147,
9017,
4906,
30176,
2430,
1240,
2118,
312,
474,
329,
5314,
716,
20501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
675,
12,
203,
202,
202,
2867,
389,
9068,
16,
203,
202,
202,
3890,
1578,
389,
2010,
16,
203,
202,
202,
3890,
1578,
389,
2039,
203,
202,
13,
3903,
1135,
261,
6430,
1769,
203,
203,
202,
915,
1347,
1435,
3903,
1135,
261,
... |
... | inject NONSTANDARD NAMING
| function SUB13(uint a, uint b) internal pure returns (uint) { | 5,441,344 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10025,
3437,
12,
11890,
279,
16,
2254,
324,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../interfaces/IController.sol";
import "../interfaces/IConverter.sol";
import "../in... | * @notice Sets the investEnabled status flag @param _investEnabled Bool for enabling investment/ | function setInvestEnabled(
bool _investEnabled
)
external
onlyStrategist
{
investEnabled = _investEnabled;
}
| 12,830,416 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
326,
2198,
395,
1526,
1267,
2982,
632,
891,
389,
5768,
395,
1526,
9166,
364,
570,
17912,
2198,
395,
475,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
3605,
395,
1526,
12,
203,
3639,
1426,
389,
5768,
395,
1526,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
1585,
1287,
376,
203,
565,
288,
203,
3639,
2198,
395,
1526,
273,
389,
5768,
395,
1526,
31,
203,
565,
28... |
./full_match/1/0x267d1B085E125a86f53d29394fE809b3DaE2a7A8/sources/browser/ColorToken.sol | 16777216 million Comp
| uint public constant totalSupply = 16777216e18; | 3,071,962 | [
1,
4625,
348,
7953,
560,
30,
225,
2872,
4700,
9060,
2313,
312,
737,
285,
5427,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
5381,
2078,
3088,
1283,
273,
2872,
4700,
9060,
2313,
73,
2643,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/42/0xb67e3087b617C68F81b6A85a086C3F6833a7334B/sources/astronaut7/acap-pw/42/0xb67e3087b617C68F81b6A85a086C3F6833a7334B/Agreement.sol | * Last time the agreement was updated/ | uint256 public lastCheckTime;
| 9,085,812 | [
1,
4625,
348,
7953,
560,
30,
380,
6825,
813,
326,
19602,
1703,
3526,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
1142,
1564,
950,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity =0.5.16;
interface IUniSlurmFactory {
event PAIRCREATED643(address indexed token0, address indexed token1, address pair, uint); //inject NONSTANDARD NAMING
function FEETO571() external view returns (address); //inject NONSTANDA... | inject NONSTANDARD NAMING
| string public constant name17 = 'UniSlurm'; | 13,090,472 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
1071,
5381,
508,
4033,
273,
296,
984,
77,
3738,
27430,
13506,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/3/0xCc09984B3636082aa370931fE90be5a8f7520295/sources/SimpleStorage.sol | This will be inititalized to 0 | contract SimpleStorage{
uint256 favoriteNumber;
bool favoriteBool;
struct People {
uint256 favoriteNumber;
string name;
}
People[] public people;
mapping(string => uint256) public nameTofavoritenumber;
function store(uint256 _f... | 14,168,587 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
903,
506,
1208,
7053,
1235,
358,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4477,
3245,
95,
203,
377,
203,
377,
203,
565,
2254,
5034,
30705,
1854,
31,
203,
565,
1426,
30705,
7464,
31,
203,
377,
203,
565,
1958,
19622,
11763,
288,
203,
3639,
2254,
5034,
30705,
1854,
31,
203,
3639,
533,
508,
31,
203,... |
./partial_match/44787/0x926E88a280902Bfff5047693B9CeAfdb9F4d5095/sources/Users/carter/git/clabs/celo-monorepo/packages/protocol/contracts/identity/FederatedAttestations.sol | * @notice Revokes attestations [identifiers <-> accounts] from issuer @param issuer Address of the issuer of all attestations to be revoked @param identifiers Hash of the identifiers @param accounts Addresses of the accounts mapped to the identifiers at the same indices @dev Throws if the number of identifiers and ac... | function batchRevokeAttestations(
address issuer,
bytes32[] calldata identifiers,
address[] calldata accounts
) external {
require(identifiers.length == accounts.length, "Unequal number of identifiers and accounts");
require(
issuer == msg.sender || getAccounts().attestationSignerToAccount... | 16,956,671 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
14477,
601,
281,
2403,
395,
1012,
306,
20218,
411,
2122,
9484,
65,
628,
9715,
632,
891,
9715,
5267,
434,
326,
9715,
434,
777,
2403,
395,
1012,
358,
506,
22919,
632,
891,
9863,
2474,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
2581,
29196,
3075,
395,
1012,
12,
203,
565,
1758,
9715,
16,
203,
565,
1731,
1578,
8526,
745,
892,
9863,
16,
203,
565,
1758,
8526,
745,
892,
9484,
203,
225,
262,
3903,
288,
203,
565,
2583,
12,
20218,
18,
2469,
422,
948... |
./full_match/3/0x024453998160fA016B237C72Cd2E9D80171e5Bd2/sources/Market.sol | uint spread = 100 - currentProbability; | function makeBet(bool bet) public {
require(betters[msg.sender].payOffIfCorrect == 0, "You can't bet multiple times!!");
nTotalBets++;
uint spread;
nBetters.push(msg.sender);
emit Log(bet, nTotalBets);
if(bet == true) {
nTrueBets += 1;
spread = 1... | 8,251,443 | [
1,
4625,
348,
7953,
560,
30,
2254,
15103,
273,
2130,
300,
783,
25598,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1221,
38,
278,
12,
6430,
2701,
13,
1071,
288,
203,
3639,
2583,
12,
70,
278,
5432,
63,
3576,
18,
15330,
8009,
10239,
7210,
2047,
16147,
422,
374,
16,
315,
6225,
848,
1404,
2701,
3229,
4124,
5,
4442,
1769,
203,
3639,
29... |
./full_match/80001/0x67f471e05cb5BDEE0fA114fAa52d1C3192b54099/sources/contracts/NftTokenCrowdsale.sol | ----------------------------------------- Crowdsale external interface -----------------------------------------* @param _buyer Address performing the token purchase/ | function buyTokens(
address _buyer,
uint256 _typeId,
uint256 _quantity
)
public
payable
nonReentrant
isValidTokenType(_typeId)
isValidAddress(_buyer)
isValidQuantity(_quantity)
{
uint256 _wei = msg.value;
_preValidatePu... | 9,495,708 | [
1,
4625,
348,
7953,
560,
30,
225,
19134,
788,
385,
492,
2377,
5349,
3903,
1560,
19134,
788,
14,
632,
891,
389,
70,
16213,
5267,
14928,
326,
1147,
23701,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
5157,
12,
203,
3639,
1758,
389,
70,
16213,
16,
203,
3639,
2254,
5034,
389,
723,
548,
16,
203,
3639,
2254,
5034,
389,
16172,
203,
565,
262,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
1661,
426,
8230,
970,
... |
./full_match/1/0x0000A0D6a326F045531BAc2a83Ad35727234a440/sources/contracts/extensions/RecrowEscrow.sol | * @notice Record and transfer assets to the escrow. @dev Will revert if assets is empty. @param id Hash id of the order. @param payee Address that deposits the assets. @param assets Assets that will be deposited./ Guard against msg.value being reused across multiple assets | function _createDeposit(
bytes32 id,
address payee,
AssetLib.AssetData[] calldata assets
) internal whenNotEscrowDeposited(id) {
_setDeposit(id, true);
uint256 ethValue;
uint256 assetsLength = assets.length;
for (uint256 i = 0; i <= assetsLength - 1; ) {
... | 17,114,665 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
5059,
471,
7412,
7176,
358,
326,
2904,
492,
18,
632,
5206,
9980,
15226,
309,
7176,
353,
1008,
18,
632,
891,
612,
2474,
612,
434,
326,
1353,
18,
632,
891,
8843,
1340,
5267,
716,
443,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
2640,
758,
1724,
12,
203,
3639,
1731,
1578,
612,
16,
203,
3639,
1758,
8843,
1340,
16,
203,
3639,
10494,
5664,
18,
6672,
751,
8526,
745,
892,
7176,
203,
565,
262,
2713,
1347,
1248,
6412,
492,
758,
1724,
329,
12,
3... |
./partial_match/1/0x721D7965678a8cf0c534A9301b54e356a9F654c8/sources/HULK.sol | start sell tax (20%)
| uint256 private _initialSellTax=20; | 4,047,822 | [
1,
4625,
348,
7953,
560,
30,
787,
357,
80,
5320,
261,
3462,
9,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
389,
6769,
55,
1165,
7731,
33,
3462,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
impor... | withdrawal function. | function withdraw(uint256[] calldata tokenIds) external whenNotPaused requireFudFarmToken requireCropToken nonReentrant() {
claimRewards(tokenIds);
for (uint256 i; i < tokenIds.length; i++) {
require(
_deposits[msg.sender].contains(tokenIds[i]),
"Staking:... | 11,957,675 | [
1,
4625,
348,
7953,
560,
30,
598,
9446,
287,
445,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
8526,
745,
892,
1147,
2673,
13,
3903,
1347,
1248,
28590,
2583,
42,
1100,
42,
4610,
1345,
2583,
19729,
1345,
1661,
426,
8230,
970,
1435,
288,
203,
3639,
7516,
17631,
14727,
12,
2316,
2673,
1769,... |
./partial_match/1/0x99b57Abf76E69E52EfF39a5f876280d4B525119F/sources/contracts/cedar/api/agreement/ICedarAgreement.sol | Accept legal terms associated with transfer of this NFT | interface ICedarAgreementV0 {
function acceptTerms() external;
function userAgreement() external view returns (string memory);
function termsActivated() external view returns (bool);
function setTermsStatus(bool _status) external;
function getAgreementStatus(address _address) external view retur... | 3,660,018 | [
1,
4625,
348,
7953,
560,
30,
225,
8662,
19286,
6548,
3627,
598,
7412,
434,
333,
423,
4464,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
26899,
329,
297,
17420,
58,
20,
288,
203,
565,
445,
2791,
11673,
1435,
3903,
31,
203,
203,
565,
445,
729,
17420,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
445,
6548,
28724,
1435,
3903,
1476,
1135,
261,
6... |