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 |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;
// Sources flattened with hardhat v2.6.7 https://hardhat.org
// File contracts/Math/SafeMath.sol
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. T... | Bonus rate on FXS minted during recollateralize(); 6 decimals of precision, set to 0.75% on genesis
| uint256 public bonus_rate; | 448,530 | [
1,
38,
22889,
4993,
603,
478,
60,
55,
312,
474,
329,
4982,
283,
12910,
2045,
287,
554,
5621,
1666,
15105,
434,
6039,
16,
444,
358,
374,
18,
5877,
9,
603,
21906,
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,
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,
565,
2254,
5034,
1071,
324,
22889,
67,
5141,
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,
... |
./partial_match/1/0x421e98fc0F0fB729B9767535b56bBec7a69bb3c4/sources/ERC223Token.sol | Function that is called when a user or another contract wants to transfer funds . | function transfer(address _to, uint _value, bytes memory _data) public returns (bool success) {
if(isContract(_to)) {
return transferToContract(_to, _value, _data);
}
else {
return transferToAddress(_to, _value, _data);
}
}
| 2,719,680 | [
1,
2083,
716,
353,
2566,
1347,
279,
729,
578,
4042,
6835,
14805,
358,
7412,
284,
19156,
263,
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,
7412,
12,
2867,
389,
869,
16,
2254,
389,
1132,
16,
1731,
3778,
389,
892,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
4202,
203,
3639,
309,
12,
291,
8924,
24899,
869,
3719,
288,
203,
5411,
327,
7412,
774,
8924,
2489... |
./full_match/4/0xa33316EFf4bC766ffbD947941Dda8e2D93bbdd9D/sources/contracts/dragonia.sol | bytes32 public merkleRoot2; mapping(address => bool) public whitelistClaimed2; bool public whitelistMint2Enabled = false; | contract DragoniaTest is ERC721A, ERC2981, Ownable, ReentrancyGuard {
using Strings for uint256;
bytes32 public merkleRoot;
mapping(address => bool) public whitelistClaimed;
string public uriPrefix = '';
string public uriSuffix = '.json';
string public hiddenMetadataUri;
uint256 public cost;
uint... | 12,481,341 | [
1,
3890,
1578,
1071,
30235,
2375,
22,
31,
2874,
12,
2867,
516,
1426,
13,
1071,
10734,
9762,
329,
22,
31,
1426,
1071,
10734,
49,
474,
22,
1526,
273,
629,
31,
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,
28425,
265,
1155,
4709,
353,
4232,
39,
27,
5340,
37,
16,
4232,
39,
5540,
11861,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
225,
1731,
1578,
1071,
30235,
237... |
pragma solidity ^0.4.24;
// Amis Dex OnChainOrderBook follows ERC20 Standards
contract ERC20 {
function totalSupply() constant returns (uint);
function balanceOf(address _owner) constant returns (uint balance);
function transfer(address _to, uint _value) returns (bool success);
function transferFrom(address _f... | bit position within bitmap
| uint bti = theirPriceStart % 256; | 914,620 | [
1,
3682,
1754,
3470,
9389,
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,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
324,
9096,
273,
3675,
5147,
1685,
738,
8303,
31,
282,
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/5/0xE21ff577d2d3d3970a6Ae1A7a16AA995aAa55237/sources/contracts/Contract.sol | Move the last element to the current index Remove the last element (duplicate) | function deletePendingRequest(uint256 _hid, address _haddress) public isOwner {
for (uint256 i = 0; i < pendingRequests.length; i++) {
if (pendingRequests[i].hid == _hid && pendingRequests[i].haddress==_haddress) {
pendingRequests[i] = pendingRequests[pendingRequests.length - 1];... | 1,943,303 | [
1,
7607,
326,
1142,
930,
358,
326,
783,
770,
3581,
326,
1142,
930,
261,
17342,
13,
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,
565,
445,
1430,
8579,
691,
12,
11890,
5034,
389,
76,
350,
16,
1758,
389,
76,
2867,
13,
1071,
353,
5541,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
4634,
6421,
18,
2469,
31,
277,
27245,
288,
203,
5411,
... |
./full_match/4/0x5BA637B96E8Bc37b70503606e18469664C0f29AD/sources/contracts/TheRebirth.sol | each address can only mint one bundle at pre-sale
| require(whitelistMinted[msg.sender] == false, "max minting allowance for presale exceeded"); | 13,315,758 | [
1,
13798,
1758,
848,
1338,
312,
474,
1245,
3440,
622,
675,
17,
87,
5349,
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,
5411,
2583,
12,
20409,
49,
474,
329,
63,
3576,
18,
15330,
65,
422,
629,
16,
315,
1896,
312,
474,
310,
1699,
1359,
364,
4075,
5349,
12428,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.6;
import "../l2/L2Lib.sol";
import "../utils/FurLib.sol";
import "../utils/FurProxy.sol";
import "../utils/MetaData.sol";
import "./ZoneDefinition.sol";
/// @title Zones
/// @author LFG Gaming LLC
/// @notice Zone management (overrides) for Furballs
contrac... | * @notice The votes a delegator can delegate, which is the current balance of the delegator. @dev Used when calling `_delegate()`/ | function votesToDelegate(address delegator) public view returns (uint96) {
return safe96(balanceOf(delegator), 'Community::votesToDelegate: amount exceeds 96 bits');
}
| 1,278,197 | [
1,
1986,
19588,
279,
11158,
639,
848,
7152,
16,
1492,
353,
326,
783,
11013,
434,
326,
11158,
639,
18,
225,
10286,
1347,
4440,
1375,
67,
22216,
20338,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19588,
774,
9586,
12,
2867,
11158,
639,
13,
1071,
1476,
1135,
261,
11890,
10525,
13,
288,
203,
3639,
327,
4183,
10525,
12,
12296,
951,
12,
3771,
1332,
639,
3631,
296,
12136,
13352,
2866,
27800,
774,
9586,
30,
3844,
14399,... |
// SPDX-License-Identifier: GPL-3.0-or-later
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is dis... | * @dev Returns the number of tokens in circulation. In other pools, this would be the same as `totalSupply`, but since this pool pre-mints all BPT, `totalSupply` remains constant, whereas `getVirtualSupply` increases as users join the pool and decreases as they exit it./ Note that unlike all other balances, the Vault's... | function getVirtualSupply() external view returns (uint256) {
(, uint256[] memory balances, ) = getVault().getPoolTokens(getPoolId());
return _getVirtualSupply(balances[_bptIndex]);
}
| 277,465 | [
1,
1356,
326,
1300,
434,
2430,
316,
5886,
1934,
367,
18,
657,
1308,
16000,
16,
333,
4102,
506,
326,
1967,
487,
1375,
4963,
3088,
1283,
9191,
1496,
3241,
333,
2845,
675,
17,
81,
28142,
777,
605,
1856,
16,
1375,
4963,
3088,
1283,
68,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
6466,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
261,
16,
2254,
5034,
8526,
3778,
324,
26488,
16,
262,
273,
11031,
3714,
7675,
588,
2864,
5157,
12,
588,
25136,
10663,
203,
3639,
327,
... |
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.6;
interface IMasterChefJoeV2 {
struct UserInfo {
uint256 amount;
uint256 rewardDebt;
}
struct PoolInfo {
address lpToken;
uint256 allocPoint;
uint256 lastRewardTimestamp;
uint256 accJoePerShare;
address rewarder;
}
f... | solhint-disable not-rely-on-time solhint-disable-next-line no-empty-blocks | contract SynthetixUniswapLpRestake is Automate {
using ERC20Tools for IERC20;
IStaking public staking;
address public liquidityRouter;
uint16 public slippage;
uint16 public deadline;
function init(
address _staking,
address _liquidityRouter,
uint16 _slippage,
uint16 _deadline
import {E... | 10,237,021 | [
1,
18281,
11317,
17,
8394,
486,
17,
266,
715,
17,
265,
17,
957,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
5531,
17,
7996,
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... | [
1,
1,
1,
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,
16351,
16091,
451,
278,
697,
984,
291,
91,
438,
48,
84,
5188,
911,
353,
11809,
362,
340,
288,
203,
225,
1450,
4232,
39,
3462,
10348,
364,
467,
654,
39,
3462,
31,
203,
203,
225,
467,
510,
6159,
1071,
384,
6159,
31,
203,
203,
2... |
./full_match/11155111/0x51F1A130F7f6FE0458C0e794a342eEd3c32A1269/sources/project:/contracts/Water.sol | * @dev Overload {_revokeRole} to track enumerable memberships/ | function _revokeRole(bytes32 role, address account) internal virtual override {
super._revokeRole(role, account);
_roleMembers[role].remove(account);
}
| 3,802,606 | [
1,
4851,
945,
288,
67,
9083,
3056,
2996,
97,
358,
3298,
14873,
12459,
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,
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,
389,
9083,
3056,
2996,
12,
3890,
1578,
2478,
16,
1758,
2236,
13,
2713,
5024,
3849,
288,
203,
3639,
2240,
6315,
9083,
3056,
2996,
12,
4615,
16,
2236,
1769,
203,
3639,
389,
4615,
6918,
63,
4615,
8009,
4479,
12,
4631,
1769... |
// File: openzeppelin-solidity/contracts/access/Roles.sol
pragma solidity ^0.5.0;
/**
* @title Roles
* @dev Library for managing addresses assigned to a Role.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an account access to this role
*/
fu... | @dev Modifier to check if caller is an admin/ | modifier onlyIdentityAdmin() {
require(isIdentityAdmin(msg.sender), "not IdentityAdmin");
_;
}
| 907,364 | [
1,
9829,
358,
866,
309,
4894,
353,
392,
3981,
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,
0,
0,
0,
0,
0... | [
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,
0... | [
1,
565,
9606,
1338,
4334,
4446,
1435,
288,
203,
3639,
2583,
12,
291,
4334,
4446,
12,
3576,
18,
15330,
3631,
315,
902,
7808,
4446,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xCbAb999b25850c6530bcA365e5005702CB6Bf006/sources/Treasury/FarmBossV1_WBTC.sol | direct sBTCPoolToken deposit/withdraw to BBTCMetapool
| _approveMax(_sBTCToken, _BBTCMetapool); | 3,127,614 | [
1,
7205,
272,
38,
15988,
2864,
1345,
443,
1724,
19,
1918,
9446,
358,
21752,
56,
9611,
278,
438,
1371,
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... | [
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,
0... | [
1,
202,
202,
67,
12908,
537,
2747,
24899,
87,
38,
56,
1268,
969,
16,
389,
9676,
56,
9611,
278,
438,
1371,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0xBB24d7CBade17c26a19B97A1E6204125985f0412/sources/useCases/vehicle-management/vehicleModificationTracker.sol | Function to check if a user is blacklisted | function isBlacklisted(address _user) external view returns (bool) {
return blacklistedUsers[_user];
}
| 9,495,835 | [
1,
2083,
358,
866,
309,
279,
729,
353,
25350,
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,
0,
0,
0,... | [
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,
0,
0... | [
1,
565,
445,
353,
13155,
18647,
12,
2867,
389,
1355,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
25350,
6588,
63,
67,
1355,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.5.17;
contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the c... | must required approved token
| BSKTETHLPToken.safeTransferFrom(_msgSender(), address(this), amount); | 11,925,326 | [
1,
11926,
1931,
20412,
1147,
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,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
0,
0,
0,
0,
0,
0... | [
1,
3639,
605,
11129,
1448,
2455,
14461,
1345,
18,
4626,
5912,
1265,
24899,
3576,
12021,
9334,
1758,
12,
2211,
3631,
3844,
1769,
3639,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2020-04-02
*/
// Sources flattened with buidler v1.2.0 https://buidler.dev
// File @pie-dao/proxy/contracts/PProxyStorage.sol@v0.0.6
pragma solidity ^0.6.2;
contract PProxyStorage {
function readString(bytes32 _key) public view returns(string memory) {
... | Using same interface as Uniswap for compatibility Buy and approve tokens | function ethToTokenTransferOutput(uint256 _tokens_bought, uint256 _deadline, address _recipient) public payable returns (uint256 eth_sold) {
uprs storage s = luprs();
require(_deadline >= block.timestamp);
(address[] memory tokens, uint256[] memory amounts) = s.pool.calcTokensForAmount(_tok... | 987,303 | [
1,
7736,
1967,
1560,
487,
1351,
291,
91,
438,
364,
8926,
605,
9835,
471,
6617,
537,
2430,
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,
565,
445,
13750,
774,
1345,
5912,
1447,
12,
11890,
5034,
389,
7860,
67,
1075,
9540,
16,
2254,
5034,
389,
22097,
1369,
16,
1758,
389,
20367,
13,
1071,
8843,
429,
1135,
261,
11890,
5034,
225,
13750,
67,
87,
1673,
13,
288,
203,
3639... |
// Sources flattened with hardhat v2.6.5 https://hardhat.org
// File @animoca/ethereum-contracts-core-1.1.2/contracts/metatx/ManagedIdentity.sol@v1.1.2
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.6 <0.8.0;
/*
* Provides information about the current execution context, including the
* sender of the trans... | * @title ERC1155Inventory, burnable version. @dev The function `uri(uint256)` needs to be implemented by a child contract, for example with the help of `BaseMetadataURI`./======================================================= ERC165 ======================================================== | abstract contract ERC1155InventoryBurnable is IERC1155InventoryBurnable, ERC1155Inventory {
using ERC1155InventoryIdentifiersLib for uint256;
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC1155InventoryBurnable).interfaceId ... | 13,005,295 | [
1,
654,
39,
2499,
2539,
15059,
16,
18305,
429,
1177,
18,
225,
1021,
445,
1375,
1650,
12,
11890,
5034,
22025,
4260,
358,
506,
8249,
635,
279,
1151,
6835,
16,
364,
3454,
598,
326,
2809,
434,
1375,
2171,
2277,
3098,
8338,
19,
20775,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17801,
6835,
4232,
39,
2499,
2539,
15059,
38,
321,
429,
353,
467,
654,
39,
2499,
2539,
15059,
38,
321,
429,
16,
4232,
39,
2499,
2539,
15059,
288,
203,
565,
1450,
4232,
39,
2499,
2539,
15059,
12745,
5664,
364,
2254,
5034,
31,
203,... |
./partial_match/44787/0xAB6CCE9540eF8Eb7b07692859746AF31123b1BBD/sources/contracts/Types.sol | The _ was used here because `type` is a Solidity keyword
| PermissionType _type; | 16,955,279 | [
1,
1986,
389,
1703,
1399,
2674,
2724,
1375,
723,
68,
353,
279,
348,
7953,
560,
4932,
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,
8509,
559,
389,
723,
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,
-100,
-... |
pragma solidity ^0.6.0;
... | inject NONSTANDARD NAMING
| function LOG40(uint p0, string memory p1, bool p2, address p3) internal view { | 1,018,987 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
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,
0,
0,
0,
... | [
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,
0,
0,
0... | [
1,
202,
915,
2018,
7132,
12,
11890,
293,
20,
16,
533,
3778,
293,
21,
16,
1426,
293,
22,
16,
1758,
293,
23,
13,
2713,
1476,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.13;
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the co... | * @dev register a community address./ | function registerCommunity(address target)
external
onlyOwner
{
require(target != address(0));
bool isRegistered = ethicHubStorage.getBool(keccak256("user", "community", target));
if (!isRegistered) {
ethicHubStorage.setBool(keccak256("user", "community", targ... | 13,140,679 | [
1,
4861,
279,
19833,
1758,
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,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1744,
12136,
13352,
12,
2867,
1018,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
2583,
12,
3299,
480,
1758,
12,
20,
10019,
203,
3639,
1426,
353,
10868,
273,
13750,
335,
8182,
3245,
18,
588,
7464... |
./full_match/1/0xAF6e66F6D2A52E2fEd343E47b75f3F1B790ba5e2/sources/contracts/PlaygroundRouter.sol | **** ADD LIQUIDITY **** create the pair if it doesn't exist yet | function _addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin
) internal virtual returns (uint256 amountA, uint256 amountB) {
if (IPlaygroundFactory(factory).getPair(tokenA, t... | 2,909,741 | [
1,
8355,
8961,
53,
3060,
4107,
225,
752,
326,
3082,
309,
518,
3302,
1404,
1005,
4671,
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,
445,
389,
1289,
48,
18988,
24237,
12,
203,
3639,
1758,
1147,
37,
16,
203,
3639,
1758,
1147,
38,
16,
203,
3639,
2254,
5034,
3844,
1880,
281,
2921,
16,
203,
3639,
2254,
5034,
3844,
38,
25683,
16,
203,
3639,
2254,
5034,
3844,
... |
/*
,▄▓▓██▌ ,╓▄▄▓▓▓▓▓▓▓▓▄▄▄,,
,▓██▓███▓▄▓███▓╬╬╬╬╬╬╬╬╬╬╬╬╬▓███▓▄,
▄█ ▓██╬╣███████╬▓▀╬╬▓▓▓████████████▓█████▄,
... | zero-out unwrap weth flag as it is taker-only
| order.info = order.info & (_UNWRAP_WETH_MASK - 1); | 12,840,541 | [
1,
7124,
17,
659,
11014,
341,
546,
2982,
487,
518,
353,
268,
6388,
17,
3700,
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,
3639,
1353,
18,
1376,
273,
1353,
18,
1376,
473,
261,
67,
2124,
27664,
67,
59,
1584,
44,
67,
11704,
300,
404,
1769,
282,
2,
-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.8.3;
contract Event {
// up to 3 parameters can be indexed
event Log(address indexed sender, string message);
event AnotherLog();
function test() public {
emit Log(msg.sender, "Hello world!");
emit Log(msg.sender, "Hello EVM!");
... | up to 3 parameters can be indexed | contract Event {
event Log(address indexed sender, string message);
event AnotherLog();
pragma solidity ^0.8.3;
function test() public {
emit Log(msg.sender, "Hello world!");
emit Log(msg.sender, "Hello EVM!");
emit AnotherLog();
}
} | 5,506,654 | [
1,
416,
358,
890,
1472,
848,
506,
8808,
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,
0,
0,
0,
0,
... | [
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,
0,
0,
0... | [
1,
16351,
2587,
288,
203,
565,
871,
1827,
12,
2867,
8808,
5793,
16,
533,
883,
1769,
203,
565,
871,
432,
24413,
1343,
5621,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
23,
31,
203,
565,
445,
1842,
1435,
1071,
288,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contra... | total number of SOTs minted total supply which can be different from sotCounter in case some tokens are burned map SOT's token id to its tokenURI check if token URI existsNo constructor in upgradeable contracts, replaced by initilize() function | contract SOT is ERC721Upgradeable, UUPSUpgradeable, OwnableUpgradeable {
uint256 public _sotCounter;
uint256 private _currentSupply;
mapping(uint256 => string) public tokenURIs;
mapping(string => bool) public tokenURIExists;
pragma solidity ^0.8.0;
function initialize() public initializer{
... | 14,930,695 | [
1,
4963,
1300,
434,
348,
1974,
87,
312,
474,
329,
2078,
14467,
1492,
848,
506,
3775,
628,
272,
352,
4789,
316,
648,
2690,
2430,
854,
18305,
329,
852,
348,
1974,
1807,
1147,
612,
358,
2097,
1147,
3098,
866,
309,
1147,
3699,
1704,
227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
1974,
353,
4232,
39,
27,
5340,
10784,
429,
16,
587,
3079,
55,
10784,
429,
16,
14223,
6914,
10784,
429,
288,
203,
203,
565,
2254,
5034,
1071,
389,
87,
352,
4789,
31,
203,
565,
2254,
5034,
3238,
389,
2972,
3088,
1283,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | разрушаться в верхней части
| rus_verbs:разрушаться{}, | 5,481,694 | [
1,
146,
227,
145,
113,
145,
120,
146,
227,
146,
230,
146,
235,
145,
113,
146,
229,
146,
239,
146,
228,
146,
242,
225,
145,
115,
225,
145,
115,
145,
118,
146,
227,
146,
232,
145,
126,
145,
118,
145,
122,
225,
146,
234,
145,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
436,
407,
67,
502,
2038,
30,
146,
227,
145,
113,
145,
120,
146,
227,
146,
230,
146,
235,
145,
113,
146,
229,
146,
239,
146,
228,
146,
242,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/84531/0x66060aCe714aF665044c75b54e4e039182757a44/sources/contracts/relayer/VaultActions.sol | Save gas by only re-encoding the data if we actually performed a replacement | function _doStableExactTokensInForBPTOutReplacements(bytes memory userData) private returns (bytes memory) {
(uint256[] memory amountsIn, uint256 minBPTAmountOut) = StablePoolUserData.exactTokensInForBptOut(userData);
return
_replacedAmounts(amountsIn)
? abi.encode(Stabl... | 14,308,891 | [
1,
4755,
16189,
635,
1338,
283,
17,
5999,
326,
501,
309,
732,
6013,
9591,
279,
6060,
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,
445,
389,
2896,
30915,
14332,
5157,
382,
1290,
38,
1856,
1182,
28440,
12,
3890,
3778,
13530,
13,
3238,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
261,
11890,
5034,
8526,
3778,
30980,
382,
16,
2254,
5034,
1131,
38,
1856,
6275,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-19
*/
pragma solidity 0.5.17;
/**
* @title Interface for EllipticCurve contract.
*/
interface EllipticCurveInterface {
function validateSignature(bytes32 message, uint[2] calldata rs, uint[2] calldata Q) external view returns (bool);
}
/**
* @title... | * @dev Function to check if a given hardwareHash has been minted or not. @param hardwareHash The hardwareHash of the device./ | function isDeviceMinted(
bytes32 hardwareHash
)
external view returns (bool)
{
return _mintedKeys[hardwareHash];
}
| 2,152,108 | [
1,
2083,
358,
866,
309,
279,
864,
16251,
2310,
711,
2118,
312,
474,
329,
578,
486,
18,
225,
16251,
2310,
1377,
1021,
16251,
2310,
434,
326,
2346,
18,
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,
353,
3654,
49,
474,
329,
12,
203,
3639,
1731,
1578,
16251,
2310,
203,
565,
262,
203,
3639,
3903,
1476,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
389,
81,
474,
329,
2396,
63,
25118,
2310,
15533,
203,
565,
289... |
./partial_match/1/0xf562B2f33b3c90d5D273f88Cdf0CeD866E17092e/sources/FraxUnifiedFarm_ERC20_Fraxswap_FRAX_OHM.sol | -------------------- COMMON -------------------- -------------------- VARIES -------------------- Convex stkcvxFPIFRAX, stkcvxFRAXBP, etc IConvexStakingWrapperFrax public immutable stakingToken; I2poolToken public immutable curveToken; I2pool public immutable curvePool; Fraxswap G-UNI IGUniPool public immutable stakin... | contract FraxUnifiedFarm_ERC20 is FraxUnifiedFarmTemplate {
bool internal frax_is_token0;
IFraxswapPair public immutable stakingToken;
mapping(address => LockedStake[]) public lockedStakes;
struct LockedStake {
bytes32 kek_id;
uint256 start_timestamp;
... | 15,476,724 | [
1,
1271,
553,
5423,
17667,
12146,
6062,
12146,
6062,
8350,
8805,
12146,
6062,
18263,
338,
384,
79,
19774,
16275,
1102,
9981,
2501,
16,
384,
79,
19774,
92,
9981,
2501,
30573,
16,
5527,
467,
17467,
338,
510,
6159,
3611,
42,
354,
92,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
478,
354,
92,
984,
939,
42,
4610,
67,
654,
39,
3462,
353,
478,
354,
92,
984,
939,
42,
4610,
2283,
288,
203,
203,
203,
565,
1426,
2713,
284,
354,
92,
67,
291,
67,
2316,
20,
31,
203,
203,
203,
203,
565,
11083,
354,
92,... |
./full_match/1/0xb249EEF45C3dC66db84B9E82D1cbF720d9D7Ddb8/sources/browser/fun.sol | Calculate information required to swap | function buyMarket(address token, uint swapAmount) public onlyOperator {
IUniswapV2Pair pair = IUniswapV2Pair(factory.getPair(token, weth));
(uint reserve0, uint reserve1,) = pair.getReserves();
address token0 = pair.token0();
(uint reserveIn, uint reserveOut) = token0 == we... | 2,933,768 | [
1,
8695,
1779,
1931,
358,
7720,
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,
0,
0,
0,
0,
0,
0,
0,... | [
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,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
3882,
278,
12,
2867,
1147,
16,
2254,
7720,
6275,
13,
1071,
1338,
5592,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
4154,
3082,
273,
467,
984,
291,
91,
438,
58,
22,
4154,
12,
6848,
18,
588,
4154,
12,
2316,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
Updated Convex VestedEscrow
found at https://github.com/convex-eth/platform/blob/main/contracts/contracts/VestedEscrow.sol
Changes:
- update to solidity 0.8
- added back disable feature
- remove staking
- implement per address vesting start time
- implemented... | cliff end not happened yet
| if (cliffAt[_recipient] > endTime){ | 295,592 | [
1,
830,
3048,
679,
486,
17497,
4671,
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,
0,
0,
0,
0,
0,
... | [
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,
0,
0,
0,
0... | [
1,
3639,
309,
261,
830,
3048,
861,
63,
67,
20367,
65,
405,
13859,
15329,
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,
-10... |
/**
*Submitted for verification at Etherscan.io on 2019-09-28
*/
pragma solidity >=0.4.21 < 0.6.0;
/**
* @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) interna... | either settled or refunded. All funds are transferred to contract owner. only team just can destruct | function moveBrickClear() onlyOwner public {
require(msg.sender == owner);
selfdestruct(msg.sender);
}
| 2,518,076 | [
1,
73,
2927,
26319,
1259,
578,
1278,
12254,
18,
4826,
284,
19156,
854,
906,
4193,
358,
6835,
3410,
18,
1338,
5927,
2537,
848,
23819,
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,
... | [
1,
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,
445,
3635,
19114,
1200,
9094,
1435,
1338,
5541,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
1769,
7010,
203,
3639,
365,
5489,
8813,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0xE6550144ACD9954a5dA5a3eb4b8E2e09be13C0D9/sources/XProToken.sol | * @dev Returns the amtoukntacgaouhnt of tokens owned by `acgaouhnt`./ | function _transfer(
address sender,
address recipient,
uint256 amtouknt
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
uint256 crossamtouknt = ca... | 9,228,196 | [
1,
1356,
326,
2125,
869,
19445,
496,
1077,
15833,
1395,
76,
496,
434,
2430,
16199,
635,
1375,
1077,
15833,
1395,
76,
496,
8338,
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,
565,
445,
389,
13866,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
2125,
869,
19445,
496,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
654,
39,
34... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library MathUtil {
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) ... | @notice A library for performing overflow-/underflow-safe addition and subtraction on uint224. | library BoringMath224 {
function add(uint224 a, uint224 b) internal pure returns (uint224 c) {
require((c = a + b) >= b, "BoringMath: Add Overflow");
}
function sub(uint224 a, uint224 b) internal pure returns (uint224 c) {
require((c = a - b) <= a, "BoringMath: Underflow");
}
funct... | 1,374,581 | [
1,
37,
5313,
364,
14928,
9391,
17,
19,
9341,
2426,
17,
4626,
2719,
471,
720,
25693,
603,
2254,
23622,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
605,
6053,
10477,
23622,
288,
203,
565,
445,
527,
12,
11890,
23622,
279,
16,
2254,
23622,
324,
13,
2713,
16618,
1135,
261,
11890,
23622,
276,
13,
288,
203,
3639,
2583,
12443,
71,
273,
279,
397,
324,
13,
1545,
324,
16,
315,... |
//Address: 0xd411d1c7fd2e1a9adf44ef852e82658bb739f8e1
//Contract name: Standix
//Balance: 0 Ether
//Verification Date: 6/4/2018
//Transacion Count: 5
// CODE STARTS HERE
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(u... | send token to multiple users in single time | function sendTokens(address[] a, uint[] v) public {
uint i = 0;
while( i < a.length ){
transfer(a[i], v[i] * TOKEN_DECIMALS);
i++;
}
}
| 989,414 | [
1,
4661,
1147,
358,
3229,
3677,
316,
2202,
813,
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,
0,
0,
... | [
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,
0,
0... | [
1,
202,
915,
1366,
5157,
12,
2867,
8526,
279,
16,
2254,
8526,
331,
13,
1071,
288,
203,
202,
565,
2254,
277,
273,
374,
31,
203,
202,
565,
1323,
12,
277,
411,
279,
18,
2469,
262,
95,
203,
202,
3639,
7412,
12,
69,
63,
77,
6487,
3... |
./full_match/80001/0xf933e54D24eBdF781f6C21Ed6C48185678D155ef/sources/contracts/SkyGenerator.sol | }* Gets Standalone style/ Unused gradient: --start:#84b6e3;--mid:#2178d1;--end:#085cb3;background:linear-gradient(0deg,var(--start, #62a0d8) 0%,var(--mid, #2178d1) 50%,var(--end, #085cb3) 100%) use:nth-child(1){animation-delay:-20s; animation-duration:65s;} use:nth-child(2){animation-delay:-10s; animation-duration:60... | function getStyle() public pure returns (string memory fragment){
}
| 868,792 | [
1,
97,
11881,
934,
464,
12451,
2154,
19,
1351,
3668,
10292,
30,
225,
1493,
1937,
30,
5193,
70,
26,
73,
23,
31,
413,
13138,
30,
22,
4033,
28,
72,
21,
31,
413,
409,
30,
6840,
25,
7358,
23,
31,
9342,
30,
12379,
17,
20219,
12,
20,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14210,
1435,
1071,
16618,
1135,
261,
1080,
3778,
5481,
15329,
203,
565,
289,
203,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.0;
contract Covid19usecase{
address public data_contributor;
address public user;
address public Committee_chair;
address public Committee_member1;
address public Data_Access_Committee;
address public Third_party;
address public other_collaborator;
enum contractSta... | request is not qpproved.
| else if(request_approval_result == 0){ | 12,855,997 | [
1,
2293,
353,
486,
22859,
685,
2155,
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,
0,
0,
0,
0,
... | [
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,
0,
0,
0... | [
1,
3639,
469,
309,
12,
2293,
67,
12908,
1125,
67,
2088,
422,
374,
15329,
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,
-10... |
pragma solidity >=0.5.0 <0.6.0;
contract graph {
address owner = msg.sender;
// uint256 g = 65537;
uint256 acc = 0;
uint256 n = 0;
modifier onlyOwner{
require (msg.sender == owner);
_;
}
function setGnN(uint x, uint y) public onlyOwner{
if (acc == 0)
... | * @dev Compute modular exponential (x k) % m @param x k m @return uint/ | function mexp(uint x, uint k, uint m) internal pure returns (uint r) {
r = 1;
for (uint s = 1; s <= k; s *= 2) {
if (k & s != 0) r = mulmod(r, x, m);
x = mulmod(x, x, m);
}
}
| 1,755,703 | [
1,
7018,
681,
2490,
21774,
261,
92,
225,
417,
13,
738,
312,
225,
619,
417,
312,
327,
2254,
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,
... | [
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,
0... | [
1,
282,
445,
312,
2749,
12,
11890,
619,
16,
2254,
417,
16,
2254,
312,
13,
2713,
16618,
1135,
261,
11890,
436,
13,
288,
203,
4202,
436,
273,
404,
31,
203,
4202,
364,
261,
11890,
272,
273,
404,
31,
272,
1648,
417,
31,
272,
6413,
5... |
./full_match/97/0xA6f9e2Ece33866aA621cb0c5268828A49c3aDB03/sources/_openzeppelin/contracts-upgradeable/crosschain/amb/CrossChainEnabledAMBUpgradeable.sol | * @dev see {CrossChainEnabled-_crossChainSender}/ | function _crossChainSender() internal view virtual override onlyCrossChain returns (address) {
return LibAMBUpgradeable.crossChainSender(_bridge);
}
| 3,292,025 | [
1,
5946,
288,
13941,
3893,
1526,
17,
67,
14653,
3893,
12021,
4004,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14653,
3893,
12021,
1435,
2713,
1476,
5024,
3849,
1338,
13941,
3893,
1135,
261,
2867,
13,
288,
203,
3639,
327,
10560,
2192,
38,
10784,
429,
18,
14653,
3893,
12021,
24899,
18337,
1769,
203,
565,
289,
203,
203,
2,
-100... |
./full_match/4/0x52dD2dc0f353eDa458A6045101F915c28eA9586e/sources/browser/BANK2.sol | we want to deposit the money to another address | function deposit_on_another(address x) public payable{
}
| 12,329,365 | [
1,
1814,
2545,
358,
443,
1724,
326,
15601,
358,
4042,
1758,
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,
... | [
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,
443,
1724,
67,
265,
67,
304,
3011,
12,
2867,
619,
13,
1071,
8843,
429,
95,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42/0xBbE177b473f51a5cBa880a75d1ADef8dCA340756/sources/Neuro.sol | * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but with `errorMessage` as a fallback revert reason when `target` reverts. _Available since v3.1._/ | function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(
address(this).balance >= value,
"Address: insufficient balance for call"
);
... | 16,212,757 | [
1,
8650,
487,
288,
22044,
17,
1887,
17,
915,
26356,
620,
17,
2867,
17,
3890,
17,
11890,
5034,
17,
20294,
68,
915,
26356,
620,
68,
6487,
1496,
598,
1375,
1636,
1079,
68,
487,
279,
5922,
15226,
3971,
1347,
1375,
3299,
68,
15226,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
445,
26356,
620,
12,
202,
203,
3639,
1758,
1018,
16,
202,
203,
3639,
1731,
3778,
501,
16,
202,
203,
3639,
2254,
5034,
460,
16,
202,
203,
3639,
533,
3778,
9324,
202,
203,
565,
262,
2713,
1135,
261,
3890,
3778,
13,
288,... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
contract DefisaverLogger {
event LogEvent(
address indexed contractAddress,
address indexed caller,
string indexed logName,
bytes data
);
// solhint-disable-next-line func-name-mixedcase
function Log(address _c... | @notice Converts Kybers Eth address -> Weth @param _src Input address | function ethToWethAddr(address _src) internal pure returns (address) {
return _src == KYBER_ETH_ADDRESS ? EXCHANGE_WETH_ADDRESS : _src;
}
mapping(address => bool) private wrappers;
| 1,147,830 | [
1,
5692,
1475,
93,
2210,
512,
451,
1758,
317,
678,
546,
225,
389,
4816,
2741,
1758,
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,
445,
13750,
774,
59,
546,
3178,
12,
2867,
389,
4816,
13,
2713,
16618,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
4816,
422,
1475,
61,
6271,
67,
1584,
44,
67,
15140,
692,
5675,
14473,
67,
59,
1584,
44,
67,
15140,
294,
... |
./partial_match/1/0x8ad8078D5966ca83c426a5B4d9549aAcAeF1Ac2a/sources/contracts/Oracle.sol | * @notice Asserts whether the sender has the SERVICE_ADMIN_ROLE/ | modifier onlyServiceAdmin() {
require(cegaState.isServiceAdmin(msg.sender), "403:SA");
_;
}
| 3,905,614 | [
1,
23860,
2856,
326,
5793,
711,
326,
12828,
67,
15468,
67,
16256,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1179,
4446,
1435,
288,
203,
3639,
2583,
12,
311,
15833,
1119,
18,
291,
1179,
4446,
12,
3576,
18,
15330,
3631,
315,
24,
4630,
30,
5233,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-10... |
pragma solidity >=0.5.4 <0.6.0;
import './SafeMath.sol';
import './TAOController.sol';
import './ITAOPool.sol';
import './ITAOFactory.sol';
import './TAOCurrency.sol';
import './Logos.sol';
import './TAO.sol';
/**
* @title TAOPool
*
* This contract acts as the bookkeeper of TAO Currencies that are staked on TAO
*... | Mapping from a Name ID to total Logos withdrawn from all Ethos lots | mapping (address => uint256) public totalLogosWithdrawn;
| 12,935,854 | [
1,
3233,
628,
279,
1770,
1599,
358,
2078,
1827,
538,
598,
9446,
82,
628,
777,
512,
451,
538,
328,
6968,
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,... | [
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,
202,
6770,
261,
2867,
516,
2254,
5034,
13,
1071,
2078,
1343,
538,
1190,
9446,
82,
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,... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.0 <0.7.0;
pragma experimental ABIEncoderV2;
import "./PrizePoolBuilder.sol";
import "../registry/RegistryInterface.sol";
import "../prize-pool/compound/CompoundPrizePoolProxyFactory.sol";
import "../external/compound/CTokenInterface.sol";
/// @title Creates... | solium-disable security/no-block-members */ | contract CompoundPrizePoolHarness is CompoundPrizePool {
uint256 public currentTime;
function setCurrentTime(uint256 _currentTime) external {
currentTime = _currentTime;
}
function setTimelockBalance(uint256 _timelockBalance) external {
timelockTotalSupply = _timelockBalance;
}
function _current... | 12,863,684 | [
1,
18281,
5077,
17,
8394,
4373,
19,
2135,
17,
2629,
17,
7640,
342,
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,
21327,
2050,
554,
2864,
44,
1303,
403,
353,
21327,
2050,
554,
2864,
288,
203,
203,
225,
2254,
5034,
1071,
6680,
31,
203,
203,
225,
445,
12589,
950,
12,
11890,
5034,
389,
2972,
950,
13,
3903,
288,
203,
565,
6680,
273,
389,
... |
pragma solidity >=0.6.0 <0.9.0;
import "@openzeppelin/contracts/access/AccessControl.sol"; //https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
import "./fixtures/modifiedOz/IERC721.sol";
import "hardhat/console.sol";
interface IDadaNFT is IERC721 {}
interface IDadaReser... | tokenId => drawingId
| mapping(uint256 => Drawing) public swapList; | 14,759,316 | [
1,
2316,
548,
516,
16327,
548,
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,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
10184,
310,
13,
1071,
7720,
682,
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,
-10... |
/**
Contract features:
5% fee auto added to the liquidity pool and locked forever
4% fee auto distributed to all holders
1% fee sent to charity wallet
*/
pragma solidity ^0.6.12;
// SPDX-License-Identifier: Unlicensed
interface IERC20 {
function totalSupply() external view returns (uint256);
/**
*... | * @dev Returns the multiplication of two unsigned integers, reverting on overflow. Counterpart to Solidity's `` operator. Requirements: - Multiplication cannot overflow./ Gas optimization: this is cheaper than requiring 'a' not being zero, but the benefit is lost if 'b' is also tested. See: https:github.com/OpenZeppeli... | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
| 6,933,831 | [
1,
1356,
326,
23066,
434,
2795,
9088,
12321,
16,
15226,
310,
603,
9391,
18,
9354,
2680,
358,
348,
7953,
560,
1807,
12176,
3726,
18,
29076,
30,
300,
5991,
1254,
2780,
9391,
18,
19,
31849,
14850,
30,
333,
353,
19315,
7294,
2353,
29468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
202,
202,
430,
261,
69,
422,
374,
13,
288,
203,
1082,
202,
2463,
374,
31,
203,
202,
202,
97,
203,
1082,
203,
2... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarvest;
uint256 maxDebtPerHarvest;
uint256 lastReport;
uin... | default to save on stack
| slippageProtectionOut = 50; | 14,896,821 | [
1,
1886,
358,
1923,
603,
2110,
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,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
0,
0,
0,
0,
0... | [
1,
3639,
272,
3169,
2433,
16938,
1182,
273,
6437,
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,
... |
./partial_match/1/0xC0205e203F423Bcd8B2a4d6f8C8A154b0Aa60F19/sources/ConverterRegistry.sol | * @dev deprecated, backward compatibility, use `getLiquidityPoolByConfig`/ | function getLiquidityPoolByReserveConfig(IERC20Token[] memory _reserveTokens, uint32[] memory _reserveWeights)
public
view
returns (IConverterAnchor)
{
return getLiquidityPoolByConfig(_reserveTokens.length > 1 ? 1 : 0, _reserveTokens, _reserveWeights);
}
| 3,607,163 | [
1,
14089,
16,
12555,
8926,
16,
999,
1375,
588,
48,
18988,
24237,
2864,
858,
809,
68,
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,
... | [
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,
9014,
18988,
24237,
2864,
858,
607,
6527,
809,
12,
45,
654,
39,
3462,
1345,
8526,
3778,
389,
455,
6527,
5157,
16,
2254,
1578,
8526,
3778,
389,
455,
6527,
16595,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261... |
./full_match/43113/0x4bDbbB1D06332f35813ca521f68832D8dbd58121/sources/contracts/1_Storage.sol | define a reasonable value for open market draw
| uint public constant drawAfterTotalSupply = 10 ether; | 13,193,543 | [
1,
11255,
279,
23589,
460,
364,
1696,
13667,
3724,
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,
0,
0,... | [
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,
0,
0... | [
1,
565,
2254,
1071,
5381,
3724,
4436,
5269,
3088,
1283,
273,
1728,
225,
2437,
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,
... |
pragma solidity 0.4.24;
/*|======================To-do list======================|*\
|*| |*|
|*| (-) Implement self-destruct function |*|
|*| (-) Add timers for various phases |*|
|*| (-) Add error trapping for issues such as ... | Submit the user's number corresponding to their hash | function submitNumber(uint256 _randNum) external onlyPlayer() isVerifyingRandom() {
require (
keccak256(abi.encode(_randNum, msg.sender)) == bytes32(players[msg.sender].hashNum) && !players[msg.sender].valid,
"Your hash does not match your number!"
);
players[msg.send... | 13,072,421 | [
1,
11620,
326,
729,
1807,
1300,
4656,
358,
3675,
1651,
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,
0... | [
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,
0... | [
1,
565,
445,
4879,
1854,
12,
11890,
5034,
389,
7884,
2578,
13,
3903,
1338,
12148,
1435,
353,
8097,
310,
8529,
1435,
288,
203,
3639,
2583,
261,
203,
5411,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
24899,
7884,
2578,
16,
1234,
18,
1... |
./partial_match/1/0xFa81b792cAFE81301A24Dad70F7d9E580F409a5d/sources/DAOPlayMarketToken.sol | * @dev Limit token transfer until the crowdsale is over./ | modifier canTransfer() {
assert(released);
_;
}
| 2,846,495 | [
1,
3039,
1147,
7412,
3180,
326,
276,
492,
2377,
5349,
353,
1879,
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,
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,
5912,
1435,
288,
203,
565,
1815,
12,
9340,
72,
1769,
203,
565,
389,
31,
203,
225,
289,
7010,
21281,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/4/0x340fC01431218a68d81F19F12E149C0804a5e1b6/sources/browser/MysteryBoxProxy.sol | Called when debug some codes | event Debug(address, uint256);
| 12,421,345 | [
1,
8185,
1347,
1198,
2690,
6198,
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,
0,
0,
0,
0,
0,
0,
0... | [
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,
0,
0,
0,
0,
0... | [
1,
565,
871,
4015,
12,
2867,
16,
2254,
5034,
1769,
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,
-... |
pragma solidity 0.5.12;
/**
* (c) 2021 Akiva Capital Holdings, LLC. All Rights Reserved.
*
* For LICENSE details, please visit:
* https://github.com/akiva-capital-holdings/pairwyse-smart-contracts/blob/master/LICENSE
*
*/
import "./helpers/ClaimableIni.sol";
import "./helpers/SafeMath.sol";
import "./mcd/McdW... | * @dev Take away dai from user's internal wallet @param _holder user's address @param _amount dai amount to pop/ | function _popDaiAsset(address _holder, uint _amount) internal {
assets[_holder].dai = assets[_holder].dai.sub(_amount);
emit AssetsDaiPop(_holder, _amount);
}
| 930,088 | [
1,
13391,
10804,
5248,
77,
628,
729,
1807,
2713,
9230,
565,
389,
4505,
729,
1807,
1758,
565,
389,
8949,
5248,
77,
3844,
358,
1843,
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... | [
1,
1,
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,
445,
389,
5120,
40,
10658,
6672,
12,
2867,
389,
4505,
16,
2254,
389,
8949,
13,
2713,
288,
203,
3639,
7176,
63,
67,
4505,
8009,
2414,
77,
273,
7176,
63,
67,
4505,
8009,
2414,
77,
18,
1717,
24899,
8949,
1769,
203,
3639,
3626... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.6;
// CONTRACT FOR CUSTOMER RELATED OPERATIONS
contract SCFCustomerOperations {
// BookingStatus of customer
enum SCFBookingStatus {INITIATED, CONFIRMED, AIRLINE_CANCELLED_REFUND_COMPLETED, USER_CANCELLED_REFUND_COMPLETED, CLAIM_REFUND_COMPLE... | Fallback function: to receive ethers in contract | receive() external payable {
}
| 6,369,719 | [
1,
12355,
445,
30,
358,
6798,
13750,
414,
316,
6835,
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,
0,
... | [
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,
0... | [
1,
565,
6798,
1435,
3903,
8843,
429,
288,
203,
540,
203,
565,
289,
203,
377,
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,... |
pragma solidity ^0.5.0;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../node_modules/openzeppelin-solidity/contracts/lifecycle/Pausable.sol";
import "../node_modules/openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "./IFlightSuretyData.sol";
contract FlightSuretyDa... | * @dev Add an airline to the registration queue Can only be called from FlightSuretyApp contract/ | function registerAirline(address airline,string calldata name)
external
payable
whenNotPaused
fromAuthorized
notRegistered(airline)
{
airlines[airline].name = name;... | 13,113,889 | [
1,
986,
392,
23350,
1369,
358,
326,
7914,
2389,
1377,
4480,
1338,
506,
2566,
628,
3857,
750,
55,
594,
4098,
3371,
6835,
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,
1744,
29752,
1369,
12,
2867,
23350,
1369,
16,
1080,
745,
892,
508,
13,
203,
18701,
3903,
203,
18701,
8843,
429,
203,
18701,
1347,
1248,
28590,
203,
18701,
628,
15341,
203,
18701,
486,
10868,
12,
1826,
1369,
13,
203,
565,
... |
// SPDX-License-Identifier: MIT-open-group
pragma solidity ^0.8.0;
import "ds-test/test.sol";
import "./GovernanceManager.sol";
import "./GovernanceMaxLock.sol";
import "./GovernanceProposal.sol";
import "./GovernanceStorage.sol";
import "./Governance.sol";
import "./StakeNFT.sol";
import "./interfaces/INFTStake.sol"... | We can only vote after 1 block has passed from the proposal creation voting threshold = 112_200_000 * 10**18 shares | function testExecuteGovernanceAllowedProposal() public {
(
StakeNFT stakeNFT,
MinerStake minerStake,
MadTokenMock madToken,
AdminAccount admin,
GovernanceManager governanceManager
) = getFixtureData();
MockProposalLogicWithAllowed... | 6,387,432 | [
1,
3218,
848,
1338,
12501,
1839,
404,
1203,
711,
2275,
628,
326,
14708,
6710,
331,
17128,
5573,
273,
23543,
67,
6976,
67,
3784,
225,
13822,
28,
24123,
2,
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,
1842,
5289,
43,
1643,
82,
1359,
5042,
14592,
1435,
1071,
288,
203,
203,
3639,
261,
203,
5411,
934,
911,
50,
4464,
384,
911,
50,
4464,
16,
203,
5411,
5444,
264,
510,
911,
1131,
264,
510,
911,
16,
203,
5411,
490,
361,
... |
pragma solidity >=0.4.22 <0.6.0;
pragma experimental ABIEncoderV2;
contract TripLogic
{
struct offer //offer cant be reserved while its started
{
address carOwnerAddress;
uint64 startTime;
uint64 endDate; //repeat to let the client know
uint32 endTime; //hours - was added by 1000 to ensure 0000 ... | endTime needs to be added by 1000 to make 0000 not possible tempOffer.id = id; maybe id should be set for the user to avoid collisions tempOffer.latdropofflocation = latdropofflocation;tempOffer.longdropOffLocation = longdropOffLocation;tempOffer.dropoffRange = dropoffRange; | function offerTrip(uint64 startTime, uint32 endTime, uint64 endDate, uint64 latpickupLocation, uint64 longpickupLocation, uint256 price, uint64[10] memory latPolygons, uint64[10] memory longPolygons, uint256 maxReservedAmount, uint8 objectType, string memory model ) public onlyVerifiedCarOwner()
{
o... | 15,820,457 | [
1,
409,
950,
4260,
358,
506,
3096,
635,
4336,
358,
1221,
374,
3784,
486,
3323,
1906,
10513,
18,
350,
273,
612,
31,
6944,
612,
1410,
506,
444,
364,
326,
729,
358,
4543,
27953,
1906,
10513,
18,
4801,
7285,
3674,
3562,
273,
2516,
7285,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10067,
16148,
12,
11890,
1105,
8657,
16,
2254,
1578,
13859,
16,
2254,
1105,
13202,
16,
2254,
1105,
2516,
11503,
416,
2735,
16,
2254,
1105,
1525,
11503,
416,
2735,
16,
2254,
5034,
6205,
16,
225,
2254,
1105,
63,
2163,
65,
... |
./full_match/5/0x8a324A30C8ca1E9CFcea267C2116968cAacEd1D6/sources/contracts/OpenNFTsV3.sol | @notice test if this interface is supported @param interfaceId interfaceId to test | function supportsInterface(bytes4 interfaceId)
public
view
override(ERC721Upgradeable, ERC721EnumerableUpgradeable)
returns (bool)
{
return
interfaceId == type(IOpenNFTs).interfaceId ||
interfaceId == type(IOpenNFTsV3).interfaceId ||
in... | 1,907,639 | [
1,
3813,
309,
333,
1560,
353,
3260,
225,
1560,
548,
1560,
548,
358,
1842,
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,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
12,
654,
39,
27,
5340,
10784,
429,
16,
4232,
39,
27,
5340,
3572,
25121,
10784,
429,
13,
203,
3639,
1135,
261,
6430,
13,
203,
... |
pragma solidity ^0.4.24;
contract PriceOracleInterface {
/**
* @notice Gets the price of a given asset
* @dev fetches the price of a given asset
* @param asset Asset to get the price of
* @return the price scaled by 10**18, or zero if the price is not available
*/
function assetPr... | * @dev emitted when a borrow is repaid Note: newBalance - amount - startingBalance = interest accumulated since last change/ | event BorrowRepaid(address account, address asset, uint amount, uint startingBalance, uint newBalance);
| 2,476,567 | [
1,
351,
11541,
1347,
279,
29759,
353,
2071,
20736,
1377,
3609,
30,
394,
13937,
300,
3844,
300,
5023,
13937,
273,
16513,
24893,
3241,
1142,
2549,
19,
2,
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,
871,
605,
15318,
426,
29434,
12,
2867,
2236,
16,
1758,
3310,
16,
2254,
3844,
16,
2254,
5023,
13937,
16,
2254,
394,
13937,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42/0x1a5b1c2B36B09480DABD8e36a25AECcC44068F55/sources/Implementation.sol | Reset debt to zero for new coupon mechanic | function initialize() initializer public {
_state.balance.debt = 0;
}
| 3,306,434 | [
1,
7013,
18202,
88,
358,
3634,
364,
394,
16174,
1791,
7472,
335,
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,
4046,
1435,
12562,
1071,
288,
203,
3639,
389,
2019,
18,
12296,
18,
323,
23602,
273,
374,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
import './BLOBRegistry.sol';
import './BLOBLeague.sol';
import './BLOBPlayer.sol';
import './BLOBSeason.sol';
import './BLOBUtils.sol';
contract BLOBMatch is WithRegistry {
struct MatchInfo {
uint matchId;
uint seasonId;
uint sch... | validate the game time eligibility 1. player must be eligible for playing, not injured or retired 2. each position can have only one starter 6. players of the same position must have play time add up to 48 minutes, 7. all starters must be playable | function ValidateTeamPlayerGameTime(uint8 _teamId)
external view returns(BLOBLeague.ErrorCode errorCode) {
BLOBPlayer.Player[] memory teamPlayers = getTeamRoster(_teamId);
uint8 playableRosterCount = 0;
uint8 totalShotAllocation = 0;
uint8 totalShot3PointAllocation = 0;
uint8[5... | 6,388,664 | [
1,
5662,
326,
7920,
813,
415,
360,
3628,
404,
18,
7291,
1297,
506,
21351,
364,
23982,
16,
486,
316,
78,
2862,
578,
325,
2921,
576,
18,
1517,
1754,
848,
1240,
1338,
1245,
10443,
387,
1666,
18,
18115,
434,
326,
1967,
1754,
1297,
1240,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3554,
8689,
12148,
12496,
950,
12,
11890,
28,
389,
10035,
548,
13,
203,
3639,
3903,
1476,
1135,
12,
38,
6038,
1682,
20910,
18,
12012,
12079,
13,
288,
203,
1377,
605,
6038,
12148,
18,
12148,
8526,
3778,
5927,
1749,
3907,
... |
./full_match/43113/0x685f551D1d172087e5493E835907317038542068/sources/test.sol | * @notice Add a new token grant @param recipient The address that is receiving the grant @param amount The amount of tokens being granted/ | function addTokenGrant(
uint recipient,
uint256 amount
)
external
{
require(amount > 0, "Claim::addTokenGrant: zero grant");
tokenGrants[recipient] = tokenGrants[recipient].add(amount);
emit Added(recipient, amount);
}
| 13,176,440 | [
1,
986,
279,
394,
1147,
7936,
225,
8027,
1021,
1758,
716,
353,
15847,
326,
7936,
225,
3844,
1021,
3844,
434,
2430,
3832,
17578,
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,
565,
445,
527,
1345,
9021,
12,
203,
3639,
2254,
8027,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
7010,
3639,
3903,
203,
565,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
315,
9762,
2866,
1289,
1345,
9021,
30,
3634,
7936,
... |
./partial_match/1/0x968348C6135C25e7160AD0671C8C9CA2eD2bb982/sources/contracts/eclp/GyroECLPMath.sol | +7 account for rounding in termXp
| termXp = tauBeta.y.mulXpU(tauBeta.y).divXpU(sqVars.x) + 7; | 15,967,237 | [
1,
15,
27,
2236,
364,
13885,
316,
2481,
60,
84,
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,
0,
0,
... | [
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,
0... | [
1,
3639,
2481,
60,
84,
273,
12284,
38,
1066,
18,
93,
18,
16411,
60,
84,
57,
12,
29908,
38,
1066,
18,
93,
2934,
2892,
60,
84,
57,
12,
11410,
5555,
18,
92,
13,
397,
2371,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/5/0x936738D8a1af92CC49FD6563Cae457Fe0a38287e/sources/contracts/SGFP.sol | * @notice Destroys the contract and transfers all funds to the contract owner. Can only be called by contract admin/ | function destroy() public onlyRole(DEFAULT_ADMIN_ROLE) {
selfdestruct(payable(admin));
}
| 1,913,221 | [
1,
9378,
28599,
326,
6835,
471,
29375,
777,
284,
19156,
358,
326,
6835,
3410,
18,
4480,
1338,
506,
2566,
635,
6835,
3981,
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,
... | [
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,
5546,
1435,
1071,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
13,
288,
203,
565,
365,
5489,
8813,
12,
10239,
429,
12,
3666,
10019,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT-0
pragma solidity =0.8.0;
pragma experimental ABIEncoderV2;
// Contracts needed: IronChef -> DfynRouter -> IronSwap -> IronChef
// "IronVault: Error Message"
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
function transfer(addre... | update pool id for iron farms | function updatePoolId(uint256 _newPid) external onlyOwner {
if (_newPid != pid) {
uint256 oldPool = pid;
pid = _newPid;
emit UpdatePoolId(oldPool, pid);
}
}
| 5,372,187 | [
1,
2725,
2845,
612,
364,
277,
1949,
10247,
959,
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,
0,
0,
... | [
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,
0,
0... | [
1,
565,
445,
1089,
25136,
12,
11890,
5034,
389,
2704,
12478,
13,
3903,
1338,
5541,
288,
203,
3639,
309,
261,
67,
2704,
12478,
480,
4231,
13,
288,
203,
5411,
2254,
5034,
1592,
2864,
273,
4231,
31,
203,
5411,
4231,
273,
389,
2704,
124... |
./full_match/4/0x9a788e1cc0940D5957589b909346774D4B894417/sources/Klaytn/CrossRouter.sol | SPDX-License-Identifier: MIT | pragma solidity ^0.6.12;
| 12,452,090 | [
1,
3118,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
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,
0,
... | [
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,
0... | [
1,
683,
9454,
18035,
560,
225,
3602,
20,
18,
26,
18,
2138,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
import '../interfaces/IERC20.sol';
import '../interfaces/IERC721.sol';
import '../interfaces/IERC721Metadata.sol';
import '../interfaces/IERC721Receiver.sol';
import '../Dependencies/Base64.sol';
/**
@title Voting Escrow
@author Curve Finance
@notice Votes have... | It was a new deposit, not extension
| old_dslope -= u_new.slope; | 899,968 | [
1,
7193,
1703,
279,
394,
443,
1724,
16,
486,
2710,
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,
0,
... | [
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,
0... | [
1,
10792,
1592,
67,
2377,
12232,
3947,
582,
67,
2704,
18,
30320,
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,
-... |
// SPDX-License-Identifier: MIT
// Dev code: Remix0x111
pragma solidity ^0.7.4;
interface ERC20 {
function totalSupply() external view returns (uint);
function balanceOf(address who) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function... | Supply 12M x Decimals
| uint256 _totalSupply = 12000000 * 100000000; | 6,224,388 | [
1,
3088,
1283,
2593,
49,
619,
3416,
11366,
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,
0,
0,
0,
0,... | [
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,
0,
0,
0... | [
1,
225,
2254,
5034,
389,
4963,
3088,
1283,
273,
2593,
9449,
380,
2130,
9449,
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,
-... |
pragma solidity 0.4.22;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function mul(uint a, uint b) internal pu... | Transfer owner rights, can use only owner (the best practice of secure for the contracts) | function transferOwnership(address _newOwner) public onlyOwner {
newOwner = _newOwner;
}
| 73,340 | [
1,
5912,
3410,
14989,
16,
848,
999,
1338,
3410,
261,
5787,
3796,
27164,
434,
8177,
364,
326,
20092,
13,
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,
... | [
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,
0... | [
1,
565,
445,
7412,
5460,
12565,
12,
2867,
389,
2704,
5541,
13,
1071,
1338,
5541,
288,
203,
3639,
394,
5541,
273,
389,
2704,
5541,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/7700/0x432036208d2717394d2614d6697c46DF3Ed69540/sources/contracts/amm/SwapUtils.sol | * @notice Get D, the StableSwap invariant, based on a set of balances and a particular A. @param xp a precision-adjusted set of pool balances. Array should be the same cardinality as the pool. @param a the amplification coefficient n (n - 1) in A_PRECISION. See the StableSwap paper for details @return the invariant, ... | function getD(uint256[] memory xp, uint256 a)
internal
pure
returns (uint256)
{
uint256 numTokens = xp.length;
uint256 s;
for (uint256 i = 0; i < numTokens; i++) {
s = s.add(xp[i]);
}
if (s == 0) {
return 0;
}
... | 4,646,836 | [
1,
967,
463,
16,
326,
934,
429,
12521,
22514,
16,
2511,
603,
279,
444,
434,
324,
26488,
471,
279,
6826,
432,
18,
225,
13681,
279,
6039,
17,
13362,
329,
444,
434,
2845,
324,
26488,
18,
1510,
1410,
506,
326,
1967,
14379,
487,
326,
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,
445,
2343,
12,
11890,
5034,
8526,
3778,
13681,
16,
2254,
5034,
279,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2254,
5034,
818,
5157,
273,
13681,
18,
2469,
31,
203... |
// SPDX-License-Identifier: bsl-1.1
/*
Copyright 2021 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import "../interfaces/IVaultParameters.sol";
import "../interfaces/vault-managers/parameters/IVaultManagerParameters.sol";
import "../interfaces/vault... | * @title AssetParameters/ | library AssetParameters {
uint8 public constant PARAM_FORCE_TRANSFER_ASSET_TO_OWNER_ON_LIQUIDATION = 0;
uint8 public constant PARAM_FORCE_MOVE_WRAPPED_ASSET_POSITION_ON_LIQUIDATION = 1;
Copyright 2021 Unit Protocol: Artem Zakharov ([email protected]).
pragma solidity 0.7.6;
function needForceTransferA... | 12,257,900 | [
1,
6672,
2402,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
10494,
2402,
288,
203,
203,
565,
2254,
28,
1071,
5381,
4655,
67,
27817,
67,
16596,
6553,
67,
3033,
4043,
67,
4296,
67,
29602,
67,
673,
67,
2053,
53,
3060,
2689,
273,
374,
31,
203,
203,
565,
2254,
28,
1071,
5381,
4655,
67... |
pragma solidity ^0.4.18;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @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;
... | * CappedToken token is Mintable token with a max cap on totalSupply that can ever be minted. PausableToken overrides all transfers methods and adds a modifier to check if paused is set to false./ | contract MeshToken is CappedToken, PausableToken {
string public name = "DJANGO UNCHAIN";
string public symbol = "DJANGO";
uint256 public decimals = 18;
uint256 public cap = 129498559 ether;
mapping (address => bool) public allowedTransfers;
function MeshToken() CappedToken(cap) public {
paused = tru... | 1,326,256 | [
1,
4664,
1845,
1345,
1147,
353,
490,
474,
429,
1147,
598,
279,
943,
3523,
603,
2078,
3088,
1283,
716,
848,
14103,
506,
312,
474,
329,
18,
21800,
16665,
1345,
9515,
777,
29375,
2590,
471,
4831,
279,
9606,
358,
866,
309,
17781,
353,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
16351,
24341,
1345,
353,
11200,
1845,
1345,
16,
21800,
16665,
1345,
288,
203,
225,
533,
1071,
508,
273,
315,
40,
46,
31630,
5019,
1792,
6964,
14432,
203,
225,
533,
1071,
3273,
273,
315,
40,
46,
31630,
14432,
203,
225,
2254,
5034,
... |
./full_match/137/0x742F2c5D96c0858d00860039c22D2805bed420E8/sources/contracts/helpers/MathHelpers.sol | * @dev Returns the average of two numbers. The result is rounded towards zero./ | function average(uint256 a, uint256 b) external pure returns (uint256) {
return (a & b) + (a ^ b) / 2;
}
| 4,699,078 | [
1,
1356,
326,
8164,
434,
2795,
5600,
18,
1021,
563,
353,
16729,
23248,
3634,
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,
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,
445,
8164,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
3903,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
261,
69,
473,
324,
13,
397,
261,
69,
3602,
324,
13,
342,
576,
31,
203,
565,
289,
203,
203,
2,
-100,
... |
pragma solidity 0.4.25;
/**
*
* Get your 7,77% every day profit with Fortune 777 Contract!
* GitHub https://github.com/fortune333/fortune777
* Site https://fortune333.online/
*
* With the refusal of ownership, without the human factor, on the most reliable blockchain in the world!
* Only 6% for technical supp... | 10/100 *100% = 10%
| Percent.percent private m_10_percent = Percent.percent(10,100); | 922,875 | [
1,
2163,
19,
6625,
2130,
9,
273,
1728,
9,
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,
0,
0,
0,
0... | [
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,
0,
0... | [
1,
8410,
18,
8849,
3238,
312,
67,
2163,
67,
8849,
273,
21198,
18,
8849,
12,
2163,
16,
6625,
1769,
2398,
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.7.6;
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";
//import "@uniswap/v3-periphery/contracts/interfaces/INonfungiblePositionManager.sol";
//import "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol";
import "@uniswap/v3-periphery/contra... | import "@uniswap/v3-periphery/contracts/interfaces/INonfungiblePositionManager.sol";import "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol"; | import "@uniswap/v3-periphery/contracts/libraries/PoolAddress.sol";
| 12,109,754 | [
1,
5666,
8787,
318,
291,
91,
438,
19,
90,
23,
17,
457,
16045,
627,
19,
16351,
87,
19,
15898,
19,
706,
265,
12125,
75,
1523,
2555,
1318,
18,
18281,
14432,
5666,
8787,
318,
291,
91,
438,
19,
90,
23,
17,
457,
16045,
627,
19,
16351,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5666,
8787,
318,
291,
91,
438,
19,
90,
23,
17,
457,
16045,
627,
19,
16351,
87,
19,
31417,
19,
2864,
1887,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0x39a57cc583434cA75CC423396760568D3A5629d4/sources/Oracle.sol | (uint112 reserve3, uint112 reserve4, uint32 blockTimestampLast2) = pair2.getReserves(); | function initializeOracle() private {
IUniswapV2Pair pair = _pair;
IUniswapV2Pair pair2 = _pair2;
uint256 priceCumulative = _index == 0 ?
pair.price0CumulativeLast() :
pair.price1CumulativeLast();
uint256 priceCumulative2 = pair2.price0CumulativeLast();
... | 5,053,401 | [
1,
12,
11890,
17666,
20501,
23,
16,
2254,
17666,
20501,
24,
16,
2254,
1578,
1203,
4921,
3024,
22,
13,
273,
3082,
22,
18,
588,
607,
264,
3324,
5621,
2,
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,
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... | [
1,
565,
445,
4046,
23601,
1435,
3238,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
4154,
3082,
273,
389,
6017,
31,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
4154,
3082,
22,
273,
389,
6017,
22,
31,
203,
3639,
2254,
5034,
6205... |
pragma solidity ^0.4.24;
//Swap Deployer functions - descriptions can be found in Deployer.sol
interface Deployer_Interface {
function newContract(address _party, address user_contract, uint _start_date) external payable returns (address);
}
//Slightly modified SafeMath library - includes a min function
library Saf... | *@dev Counts number of start dates in this factory@return the number of active start dates/ | function getDateCount() public constant returns(uint) {
return startDates.length;
}
| 2,080,683 | [
1,
9211,
1300,
434,
787,
7811,
316,
333,
3272,
2463,
326,
1300,
434,
2695,
787,
7811,
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,... | [
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,
10713,
1380,
1435,
1071,
5381,
1135,
12,
11890,
13,
288,
203,
3639,
327,
787,
15578,
18,
2469,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.21;
/**
* @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 / ... | * @title Mintable token @dev Simple ERC20 Token example, with mintable token creation This code is taken from openZeppelin without any changes./ | contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
function mint(address _to, uint256 _amount) onlyOwner public returns (bool) {
totalSupply_ = totalSupply_.add(_amount);
balances[_to] = balances[_to].add(_amount);
... | 5,496,965 | [
1,
49,
474,
429,
1147,
225,
4477,
4232,
39,
3462,
3155,
3454,
16,
598,
312,
474,
429,
1147,
6710,
1220,
981,
353,
9830,
628,
1696,
62,
881,
84,
292,
267,
2887,
1281,
3478,
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,
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,
16351,
490,
474,
429,
1345,
353,
8263,
1345,
16,
14223,
6914,
288,
203,
565,
871,
490,
474,
12,
2867,
8808,
358,
16,
2254,
5034,
3844,
1769,
203,
565,
871,
490,
474,
10577,
5621,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869... |
./partial_match/1/0xe80bF394d190851E215D5F67B67f8F5A52783F1E/sources/src/lib/ExclusiveDutchOrderLib.sol | generic order information The time at which the DutchOutputs start decaying The time at which price becomes static The address who has exclusive rights to the order until decayStartTime The amount in bps that a non-exclusive filler needs to improve the outputs by to be able to fill the order The tokens that the swappe... | struct ExclusiveDutchOrder {
OrderInfo info;
uint256 decayStartTime;
uint256 decayEndTime;
address exclusiveFiller;
uint256 exclusivityOverrideBps;
DutchInput input;
DutchOutput[] outputs;
pragma solidity ^0.8.0;
import {OrderInfo} from "../base/ReactorStructs.sol";
import {DutchOutput, Dutc... | 15,598,665 | [
1,
13540,
1353,
1779,
1021,
813,
622,
1492,
326,
463,
322,
343,
13856,
787,
22286,
310,
1021,
813,
622,
1492,
6205,
12724,
760,
1021,
1758,
10354,
711,
12060,
14989,
358,
326,
1353,
3180,
22286,
13649,
1021,
3844,
316,
324,
1121,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
1697,
1312,
9173,
40,
322,
343,
2448,
288,
203,
565,
4347,
966,
1123,
31,
203,
565,
2254,
5034,
22286,
13649,
31,
203,
565,
2254,
5034,
22286,
25255,
31,
203,
565,
1758,
12060,
8026,
264,
31,
203,
565,
2254,
5034,
4687,
407,
2818... |
./full_match/42/0xa813ffAa5a52BCdd4a9C9B90aAfb864C5679A3bB/sources/contracts/buy.sol | kovan testnet DAI address
| address cryptoToken = 0xC4375B7De8af5a38a93548eb8453a498222C4fF2; | 9,565,367 | [
1,
79,
1527,
304,
1842,
2758,
463,
18194,
1758,
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,
0,
0,
... | [
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,
0,
0... | [
1,
5411,
1758,
8170,
1345,
273,
374,
14626,
8942,
5877,
38,
27,
758,
28,
1727,
25,
69,
7414,
69,
29,
4763,
8875,
24008,
5193,
8643,
69,
7616,
24532,
22,
39,
24,
74,
42,
22,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/*
Built and deployed using FTP Deployer, a service of Fair Token Project.
Deploy your own token today at https://app.fairtokenproject.com#deploy
Meta Dating App Socials:
Telegram: https://t.me/metadatingapp
Twitter: https://twitter.com/metadatingapp
Website: https://metadatingapp.me/
Whitepaper: https://metadatingapp... | TOKEN EXCHANGES TRANSACTIONS ANTIBOT LP ADD MISC | contract MetaDatingApp is Context, IERC20, Taxable {
using SafeMath for uint256;
uint256 private constant TOTAL_SUPPLY = 1000000000000000 * 10**9;
string private m_Name = "Meta Dating App";
string private m_Symbol = "MDAPP";
uint8 private m_Decimals = 9;
address private m_UniswapV2Pair;
IUni... | 1,596,280 | [
1,
8412,
5675,
1792,
3388,
3991,
24896,
55,
27274,
13450,
1974,
511,
52,
11689,
20806,
2312,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6565,
40,
1776,
3371,
353,
1772,
16,
467,
654,
39,
3462,
16,
18240,
429,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
2254,
5034,
3238,
5381,
399,
19851,
67,
13272,
23893,
273,
2130,
12648,
11706,
380,
... |
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.6.11;
// ============ Internal Imports ============
import {BridgeRouter} from "./BridgeRouter.sol";
import {IWeth} from "../../interfaces/bridge/IWeth.sol";
// ============ External Imports ============
import {TypeCasts} from "@celo-org/optics-sol/con... | * @notice Asserts that the message is of type Transfer @param _view The message @return The message/ | function mustBeTransfer(bytes29 _view) internal pure returns (bytes29) {
return tryAsTransfer(_view).assertValid();
}
| 1,209,249 | [
1,
23860,
716,
326,
883,
353,
434,
618,
12279,
225,
389,
1945,
1021,
883,
327,
1021,
883,
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,
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,
445,
1297,
1919,
5912,
12,
3890,
5540,
389,
1945,
13,
2713,
16618,
1135,
261,
3890,
5540,
13,
288,
203,
3639,
327,
775,
1463,
5912,
24899,
1945,
2934,
11231,
1556,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-1... |
./full_match/4/0xDAA1444428215C8b60C5b6DA2141a0D2350fD235/sources/contracts/Implementation/Proxyfication/ERC1538QueryDelegates.sol | @notice Query the function signature and associated delegate of an EVM function hash @param _functionId The queried function EVM hash @return signature The signature associated with a function hash @return delegate The delegate associated with a function hash | function functionById(bytes4 _functionId) external view override returns(string memory signature, address delegate) {
for(uint256 i = 0; i < funcSignatures.length; i++) {
if(_functionId == bytes4(keccak256(funcSignatures[i]))) {
return (string(funcSignatures[i]), delegates[_funct... | 828,104 | [
1,
1138,
326,
445,
3372,
471,
3627,
7152,
434,
392,
512,
7397,
445,
1651,
225,
389,
915,
548,
1021,
23264,
445,
512,
7397,
1651,
327,
3372,
1021,
3372,
3627,
598,
279,
445,
1651,
327,
7152,
1021,
7152,
3627,
598,
279,
445,
1651,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
445,
5132,
12,
3890,
24,
389,
915,
548,
13,
3903,
1476,
3849,
1135,
12,
1080,
3778,
3372,
16,
1758,
7152,
13,
288,
203,
3639,
364,
12,
11890,
5034,
277,
273,
374,
31,
277,
411,
1326,
23918,
18,
2469,
31,
277,
27245,
... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
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 functio... | allow admin contracts to be send without approval | function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) {
if(!admins[_msgSender()]) {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approve... | 10,272,833 | [
1,
5965,
3981,
20092,
358,
506,
1366,
2887,
23556,
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,
0,
0,... | [
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,
0,
0... | [
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,
5024,
3849,
12,
654,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
13,
1203,
2047,
782,
18183,
1... |
./full_match/42/0xa262F943f7D9527333c6eD3c4f222b9Ee7FBB373/sources/bos.sol | Moved down so low balance calls safe some gas
| require(to != address(0), "BoshiERC20: no zero address"); | 9,586,134 | [
1,
25317,
2588,
1427,
4587,
11013,
4097,
4183,
2690,
16189,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7734,
2583,
12,
869,
480,
1758,
12,
20,
3631,
315,
38,
538,
12266,
654,
39,
3462,
30,
1158,
3634,
1758,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/56/0xd0367EF92B6fa5C62Ea50BE8C45f0f733D488b51/sources/MasterChef.sol | Manure with Governance. | contract Manure is BEP20('Manure Token', 'MANURE') {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
function burn(address _from ,uint256 _amount) public onlyOwner {
_burn(_from, _amount);
... | 11,341,946 | [
1,
5669,
594,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
0,
0... | [
1,
16351,
8660,
594,
353,
9722,
52,
3462,
2668,
5669,
594,
3155,
2187,
296,
9560,
4830,
6134,
288,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
81,
474,
24899,
... |
pragma solidity ^0.4.20;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {
}
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @notice send `_value` token to `_to` from `msg.sender`
/// @pa... | @return total amount of tokens | function totalSupply() constant returns (uint256 supply) {
}
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
| 8,062,127 | [
1,
2463,
2078,
3844,
434,
2430,
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,
0,
0,
0,
0,
0,
0,
0,... | [
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,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
3088,
1283,
1435,
5381,
1135,
261,
11890,
5034,
14467,
13,
288,
203,
540,
203,
565,
289,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
565,
871,
12279,
12,
2867,
8808,
389,
2080,
16,
1758... |
./full_match/5/0x26cF13780eaFfe659A5480997cbAf332BBaeBe73/sources/contracts/Staking.sol | Set the rewardsPerHour variable Because the rewards are calculated passively, the owner has to first update the rewards to all the stakers, witch could result in very heavy load and expensive transactions or even reverting due to reaching the gas limit per block. Redesign incoming to bound loop. | function setRate(uint256 _year, uint256 _quarter, uint _value) public {
Rate memory rate = Rate(_year, _quarter, _value);
rates.push(rate);
emit RateAdded(_year, _quarter, _value);
}
| 1,944,181 | [
1,
694,
326,
283,
6397,
2173,
13433,
2190,
15191,
326,
283,
6397,
854,
8894,
1342,
4492,
16,
326,
3410,
711,
358,
1122,
1089,
326,
283,
6397,
358,
777,
326,
384,
581,
414,
16,
341,
1437,
3377,
563,
316,
8572,
3904,
23935,
1262,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
4727,
12,
11890,
5034,
389,
6874,
16,
2254,
5034,
389,
372,
14153,
16,
2254,
389,
1132,
13,
1071,
225,
288,
203,
203,
3639,
13025,
3778,
4993,
273,
13025,
24899,
6874,
16,
389,
372,
14153,
16,
389,
1132,
1769,
203,... |
// SPDX-License-Identifier: LicenseRef-StarterLabs-Business-Source
/*
-----------------------------------------------------------------------------
The Licensed Work is (c) 2022 Starter Labs, LLC
Licensor: Starter Labs, LLC
Licensed Work: OpenStarter v1
Effective Date: 2022 March 1
Full License... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) _balances;
mapping(address => mapping(address => uint256)) _allowances;
uint256 _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
... | 206,462 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
389,
70,
26488,
31,
203,... |
./full_match/1/0xcD4E89f5586d8500A86165Bb09920b5E0B608e3e/sources/contracts/Token.sol | Taxes are disabled, no tax calculation needed Apply tax rate solhint-disable-next-line not-rely-on-time recipient will get to reclaim as the tax is deducted from their share solhint-disable-next-line not-rely-on-time | function _transfer(
address sender_,
address recipient_,
uint256 amount_
) internal virtual override tradingEnabled(sender_, recipient_) {
if (isTaxDisabled) {
_tokenTransfer(sender_, recipient_, amount_);
}
else {
uint256 taxAmount = _cal... | 4,890,761 | [
1,
7731,
281,
854,
5673,
16,
1158,
5320,
11096,
3577,
5534,
5320,
4993,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
486,
17,
266,
715,
17,
265,
17,
957,
8027,
903,
336,
358,
283,
14784,
487,
326,
5320,
353,
11140,
853,
329,
628,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13866,
12,
203,
3639,
1758,
5793,
67,
16,
203,
3639,
1758,
8027,
67,
16,
203,
3639,
2254,
5034,
3844,
67,
203,
565,
262,
2713,
5024,
3849,
1284,
7459,
1526,
12,
15330,
67,
16,
8027,
67,
13,
288,
203,
3639,
309,
... |
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(ad... | * @title TokenProxy @dev Helps to reduces the size of the deployed bytecode for automatically created tokens, by using a proxy contract./ storage layout is copied from PermittableToken.sol string public constant version = "1"; bytes32 public constant PERMIT_TYPEHASH = 0xea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba9... | contract TokenProxy is Proxy {
string internal name;
string internal symbol;
uint8 internal decimals;
mapping(address => uint256) internal balances;
uint256 internal totalSupply;
mapping(address => mapping(address => uint256)) internal allowed;
address internal owner;
bool internal minti... | 1,969,298 | [
1,
1345,
3886,
225,
670,
292,
1121,
358,
30568,
326,
963,
434,
326,
19357,
22801,
364,
6635,
2522,
2430,
16,
635,
1450,
279,
2889,
6835,
18,
19,
2502,
3511,
353,
9268,
628,
13813,
305,
2121,
1345,
18,
18281,
533,
1071,
5381,
1177,
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,
3155,
3886,
353,
7659,
288,
203,
565,
533,
2713,
508,
31,
203,
565,
533,
2713,
3273,
31,
203,
565,
2254,
28,
2713,
15105,
31,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
2713,
324,
26488,
31,
203,
565,
2254,
5034,
271... |
./full_match/43113/0x83bC23621cab2a054578889ca0744a90dcCE9017/sources/contracts/TAOXToken.sol | generate the uniswap pair path of token -> weth make the swap | function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupp... | 7,181,052 | [
1,
7163,
326,
640,
291,
91,
438,
3082,
589,
434,
1147,
317,
341,
546,
1221,
326,
7720,
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,
565,
445,
7720,
5157,
1290,
41,
451,
12,
11890,
5034,
1147,
6275,
13,
3238,
288,
203,
203,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
203,
3639,
589,
63,
20,
65,
273,
1758,
12,
2211,
1769,
203,
... |
pragma solidity ^0.4.18; // solhint-disable-line
/// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author Dieter Shirley <dete@axiomzen.co> (https://github.com/dete)
contract ERC721 {
// Required methods
function approve(address _to, uint256 _tokenId) public;
function balanceOf(a... | @notice Returns all the relevant information about a specific card. @param _tokenId The tokenId of the card. | function getCard(uint256 _tokenId) public view returns (
string slug,
uint256 price,
address owner
) {
Card storage card = cards[_tokenId];
slug = card.slug;
price = cardIndexToPrice[_tokenId];
owner = cardIndexToOwner[_tokenId];
}
| 880,555 | [
1,
1356,
777,
326,
9368,
1779,
2973,
279,
2923,
5270,
18,
225,
389,
2316,
548,
1021,
1147,
548,
434,
326,
5270,
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... | [
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,
225,
445,
26776,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
1135,
261,
203,
565,
533,
4959,
16,
203,
565,
2254,
5034,
6205,
16,
203,
565,
1758,
3410,
203,
225,
262,
288,
203,
565,
14338,
2502,
5270,
273,
18122,
63,
67,
23... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import "../interfaces/IReign.sol";
import "../libraries/LibReignStorage.sol";
import "diamond-libraries/contracts/libraries/LibOwnership.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contra... | _updateLockedReign stores the new `amount` into the REIGN locked history | function _updateLockedReign(uint256 amount) internal {
LibReignStorage.Storage storage ds = LibReignStorage.reignStorage();
if (
ds.reignStakedHistory.length == 0 ||
ds.reignStakedHistory[ds.reignStakedHistory.length - 1].timestamp <
block.timestamp
) {
... | 15,786,623 | [
1,
67,
2725,
8966,
426,
724,
9064,
326,
394,
1375,
8949,
68,
1368,
326,
2438,
10452,
8586,
4927,
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,
445,
389,
2725,
8966,
426,
724,
12,
11890,
5034,
3844,
13,
2713,
288,
203,
3639,
10560,
426,
724,
3245,
18,
3245,
2502,
3780,
273,
10560,
426,
724,
3245,
18,
266,
724,
3245,
5621,
203,
203,
3639,
309,
261,
203,
5411,
3780,
... |
./full_match/1/0xC9E86C84c343E2aA0EB8259152F87291dbf8186f/sources/chfry-mainnet/CheeseStakePool.sol | Todo: total weight should cal from each pools?
| uint256 poolTotal = totalMintAmount.mul(pool.weight).div(TOTAL_WEIGHT); | 4,855,731 | [
1,
56,
7370,
30,
2078,
3119,
1410,
1443,
628,
1517,
16000,
35,
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,
202,
202,
11890,
5034,
2845,
5269,
273,
2078,
49,
474,
6275,
18,
16411,
12,
6011,
18,
4865,
2934,
2892,
12,
28624,
67,
29988,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.11;
import './interfaces/IProposal.sol';
import './interfaces/ISmartToken.sol';
import './interfaces/IDABDao.sol';
import './Owned.sol';
import './SafeMath.sol';
import './SmartTokenController.sol';
/*
DAB DAO Proposal v0.1
Proposal to execute privilege functions in DAO
*/
contract Propo... | verifies that now is in propose stage | modifier proposeStage(){
require(now < startTime);
_;
}
| 7,319,221 | [
1,
502,
5032,
716,
2037,
353,
316,
450,
4150,
6009,
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,
0,
... | [
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,
0... | [
1,
565,
9606,
450,
4150,
8755,
1435,
95,
203,
3639,
2583,
12,
3338,
411,
8657,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.18;
import "../Models.sol";
contract EpochRegistry {
// State
mapping (uint256 => Models.Epoch) public epochs;
uint256[] public epochsIndex;
uint256 public currentEpoch;
uint256 public blocksPerEpoch;
// Functions
/*
* @dev Adds a Relay to the current epoch indic... | @dev Adds a Relay to the current epoch indicated in the state of this contract. @param bytes32 _txHash - The tx hash of this relay @param address _sender - Sender of the relay @param bytes32 _nodeNonce - The nonce pertaining to the Node doing this relay/ | function addRelayToCurrentEpoch(bytes8 _token, bytes32 _txHash, address _sender, bytes32 _nodeNonce) public returns(bytes32) {}
| 946,865 | [
1,
3655,
279,
4275,
528,
358,
326,
783,
7632,
17710,
316,
326,
919,
434,
333,
6835,
18,
225,
1731,
1578,
389,
978,
2310,
300,
1021,
2229,
1651,
434,
333,
18874,
225,
1758,
389,
15330,
300,
15044,
434,
326,
18874,
225,
1731,
1578,
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,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
27186,
774,
3935,
14638,
12,
3890,
28,
389,
2316,
16,
1731,
1578,
389,
978,
2310,
16,
1758,
389,
15330,
16,
1731,
1578,
389,
2159,
13611,
13,
1071,
1135,
12,
3890,
1578,
13,
2618,
203,
2,
-100,
-100,
-100,
-100,
... |
//Address: 0xb07097789653cf09322bf03d4f12b90635cf721c
//Contract name: Distribute
//Balance: 0 Ether
//Verification Date: 1/25/2018
//Transacion Count: 2
// CODE STARTS HERE
pragma solidity ^0.4.11;
// ERC20 Interface: https://github.com/ethereum/EIPs/issues/20
contract ERC20 {
function transfer(address _to, uint ... | --------------------------ADMINS-------------------------- ------------------------- PAYEES ----------------------- | function Distribute() public {
admins.push(msg.sender);
admins.push(0x91e65a0e5ff0F0E8fBA65F3636a7cd74f4c9f0E2);
}
| 7,271,967 | [
1,
1271,
15392,
15468,
55,
1271,
15392,
12146,
788,
25095,
41,
3991,
12146,
13093,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3035,
887,
1435,
1071,
288,
203,
1082,
203,
202,
202,
3666,
87,
18,
6206,
12,
3576,
18,
15330,
1769,
203,
202,
202,
3666,
87,
18,
6206,
12,
20,
92,
12416,
73,
9222,
69,
20,
73,
25,
1403,
20,
42,
20,
41,
28,
74,
... |
./full_match/1/0x61c3f8724E7c2B3bAA88f6C4cECdA498bE286A94/sources/contracts/PricyNFTTradable.sol | * @dev checks the given token ID is approved either for all or the single token ID/ | function isApproved(uint256 _tokenId, address _operator)
public
view
returns (bool)
{
return
isApprovedForAll(ownerOf(_tokenId), _operator) ||
getApproved(_tokenId) == _operator;
}
| 3,074,858 | [
1,
12366,
326,
864,
1147,
1599,
353,
20412,
3344,
364,
777,
578,
326,
2202,
1147,
1599,
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,
353,
31639,
12,
11890,
5034,
389,
2316,
548,
16,
1758,
389,
9497,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
203,
5411,
353,
31639,
1290,
1595,
12,
8443,
951,
... |
pragma solidity ^0.4.24;
import "./KydyAccessControl.sol";
import "./ERC721Standard/ERC721Basic.sol";
import "./math/SafeMath.sol";
import "./utils/Address.sol";
contract KydyBase is KydyAccessControl, ERC721Basic {
using SafeMath for uint256;
using Address for address;
event Birth(address indexed owner,... | * @dev Private function to clear current approval of a given token ID Reverts if the given address is not indeed the owner of the token @param owner owner of the token @param tokenId uint256 ID of the token to be transferred/ | function _clearApproval(address owner, uint256 tokenId) internal {
require(ownerOf(tokenId) == owner);
if (kydyIndexToApproved[tokenId] != address(0)) {
kydyIndexToApproved[tokenId] = address(0);
}
}
| 7,325,320 | [
1,
6014,
445,
358,
2424,
783,
23556,
434,
279,
864,
1147,
1599,
868,
31537,
309,
326,
864,
1758,
353,
486,
316,
323,
329,
326,
3410,
434,
326,
1147,
225,
3410,
3410,
434,
326,
1147,
225,
1147,
548,
2254,
5034,
1599,
434,
326,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
389,
8507,
23461,
12,
2867,
3410,
16,
2254,
5034,
1147,
548,
13,
2713,
288,
203,
3639,
2583,
12,
8443,
951,
12,
2316,
548,
13,
422,
3410,
1769,
203,
3639,
309,
261,
18465,
15680,
1016,
774,
31639,
63,
2316,
548,
65,
4... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | трудные подростки вовлекаются в занятие спортом
| rus_verbs:вовлекаться{}, | 5,483,389 | [
1,
146,
229,
146,
227,
146,
230,
145,
117,
145,
126,
146,
238,
145,
118,
225,
145,
128,
145,
127,
145,
117,
146,
227,
145,
127,
146,
228,
146,
229,
145,
123,
145,
121,
225,
145,
115,
145,
127,
145,
115,
145,
124,
145,
118,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8010,
67,
502,
2038,
30,
145,
115,
145,
127,
145,
115,
145,
124,
145,
118,
145,
123,
145,
113,
146,
229,
146,
239,
146,
228,
146,
242,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |