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 |
|---|---|---|---|---|---|---|
./full_match/43114/0xA3F9bC1D08fF0b0d483fFEAA122455D479BEEC71/sources/production-contracts/BlizzLockedStrategy.sol | After the first locked withdrawal, there will be a buffer of unlocked tokens remaining in the contractNot enough unlocked tokens available, need to withdraw locked stakes as well | function _withdrawSome(uint256 _amount) internal returns (uint256) {
uint256 unlocked = IRewardPool(rewardPool).unlockedBalance(address(this));
if(unlocked >= _amount) {
IRewardPool(rewardPool).withdraw(_amount);
return _amount;
}
else {
if(unlock... | 4,594,070 | [
1,
4625,
348,
7953,
560,
30,
7360,
326,
1122,
8586,
598,
9446,
287,
16,
1915,
903,
506,
279,
1613,
434,
25966,
2430,
4463,
316,
326,
6835,
1248,
7304,
25966,
2430,
2319,
16,
1608,
358,
598,
9446,
8586,
384,
3223,
487,
5492,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1918,
9446,
17358,
12,
11890,
5034,
389,
8949,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
25966,
273,
15908,
359,
1060,
2864,
12,
266,
2913,
2864,
2934,
318,
15091,
13937,
12,
2867,
12,
2211,
... |
./partial_match/1/0x4C1Bf22D608E9E871f42c4e377d8a32F8b40372C/sources/contracts/vendor/@uniswap/v3-core/contracts/libraries/Tick.sol | @notice Retrieves fee growth data @param self The mapping containing all tick information for initialized ticks @param tickLower The lower tick boundary of the position @param tickUpper The upper tick boundary of the position @param tickCurrent The current tick @param feeGrowthGlobal0X128 The all-time global fee growt... | function getFeeGrowthInside(
mapping(int24 => Tick.Info) storage self,
int24 tickLower,
int24 tickUpper,
int24 tickCurrent,
uint256 feeGrowthGlobal0X128,
uint256 feeGrowthGlobal1X128
) internal view returns (uint256 feeGrowthInside0X128, uint256 feeGrowthInside1X1... | 4,333,766 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
20507,
14036,
13334,
451,
501,
632,
891,
365,
1021,
2874,
4191,
777,
4024,
1779,
364,
6454,
13003,
632,
891,
4024,
4070,
1021,
2612,
4024,
7679,
434,
326,
1754,
632,
891,
4024,
5988,
1021,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2812,
1340,
30948,
451,
18619,
12,
203,
3639,
2874,
12,
474,
3247,
516,
13588,
18,
966,
13,
2502,
365,
16,
203,
3639,
509,
3247,
4024,
4070,
16,
203,
3639,
509,
3247,
4024,
5988,
16,
203,
3639,
509,
3247,
4024,
3935,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import './ERC721Enumerable.sol';
import './Ownable.sol';
import './Strings.sol';
import './Payment.sol';
import './Guard.sol';
import './IERC20.sol';
import './IERC1155.sol';
abstract contract ERC1155Token {
function balanceOf(address account, uint256 i... | Authorize specific ERC1155 smart contract | function toggleContractAuthorizationERC1155(address contractAddress) public onlyOwner {
authorizedContractERC1155[contractAddress] = 1;
}
| 12,101,008 | [
1,
4625,
348,
7953,
560,
30,
225,
23859,
2923,
4232,
39,
2499,
2539,
13706,
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,
... | [
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,
10486,
8924,
6063,
654,
39,
2499,
2539,
12,
2867,
6835,
1887,
13,
1071,
1338,
5541,
288,
203,
3639,
10799,
8924,
654,
39,
2499,
2539,
63,
16351,
1887,
65,
273,
404,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/ERC20Snapshot.sol";
import "./AuthorizableNoOperator.sol";
import "./interfaces/IERC20Lockable.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./interfaces/ITheoretics.sol";
import "./utils/Co... | Cannot bring down price of MASTER.
| require(address(_token) != address(theory), "MP-"); | 13,139,266 | [
1,
4625,
348,
7953,
560,
30,
14143,
5186,
310,
2588,
6205,
434,
27312,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
2583,
12,
2867,
24899,
2316,
13,
480,
1758,
12,
5787,
630,
3631,
315,
4566,
17,
8863,
225,
2,
-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/0xa1a5143b4044cC3B710FfB8D7130b24a542536f0/sources/lib/forge-std/src/safeconsole.sol | Selector of `log(address,address,uint256,address)`. | function log(address p0, address p1, uint256 p2, address p3) internal pure {
bytes32 m0;
bytes32 m1;
bytes32 m2;
bytes32 m3;
bytes32 m4;
assembly {
m0 := mload(0x00)
m1 := mload(0x20)
m2 := mload(0x40)
m3 := mload(0x60)
... | 16,052,941 | [
1,
4625,
348,
7953,
560,
30,
225,
11703,
434,
1375,
1330,
12,
2867,
16,
2867,
16,
11890,
5034,
16,
2867,
13,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
613,
12,
2867,
293,
20,
16,
1758,
293,
21,
16,
2254,
5034,
293,
22,
16,
1758,
293,
23,
13,
2713,
16618,
288,
203,
3639,
1731,
1578,
312,
20,
31,
203,
3639,
1731,
1578,
312,
21,
31,
203,
3639,
1731,
1578,
312,
22,
... |
./full_match/3/0x26789AFc164b9b07708Ac46e922eA818fa971964/sources/browser/RandDropExp.sol | Randomnesstest user 0xF210da174a432a460C6e1B4C677e0B2B8f9F77F3account 3 | contract RandDropExp is ERC20("RandDropExp", "RDE"), Ownable {
using SafeMath for uint256;
uint8 public taxRatio = 4;
uint8 public devRatioFromTax = 25;
uint8 public winRatio = 100;
uint256 airdropAmount = 0;
uint randNonce = 0;
address devWallet = 0x7Dd91DcD8FF87Eb727403B38b... | 8,166,411 | [
1,
4625,
348,
7953,
560,
30,
8072,
23712,
334,
395,
729,
374,
16275,
22,
2163,
2414,
28686,
69,
24,
1578,
69,
24,
4848,
39,
26,
73,
21,
38,
24,
39,
26,
4700,
73,
20,
38,
22,
38,
28,
74,
29,
42,
4700,
42,
23,
4631,
890,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
30756,
7544,
2966,
353,
4232,
39,
3462,
2932,
54,
464,
7544,
2966,
3113,
315,
54,
1639,
6,
3631,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
2254,
28,
1071,
5320,
8541,
273,
1059,
31,
203... |
./partial_match/1/0xd22f3F2577b2f9A46114e292F39f940d18B6Ac45/sources/HFT.sol | must hold 100+ tokens
| minimumTokenBalanceForDividends = 100 * (10**18); | 4,073,100 | [
1,
4625,
348,
7953,
560,
30,
1297,
6887,
2130,
15,
2430,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
5224,
1345,
13937,
1290,
7244,
350,
5839,
273,
2130,
380,
261,
2163,
636,
2643,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.21;
/*
******************** HALO 3D *********************
* ===============================================*
MMMMMMMMMMMMMMMMMMMMMWWXKKXNWMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWWXko;'',lkKNWWMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMNOc'. .:d0XWWMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMNOc'... | total ETH charity recieved from this contract
| uint256 public totalEthCharityRecieved; | 7,823,069 | [
1,
4625,
348,
7953,
560,
30,
225,
2078,
512,
2455,
1149,
560,
1950,
1385,
2155,
628,
333,
6835,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
2254,
5034,
1071,
2078,
41,
451,
2156,
560,
5650,
1385,
2155,
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,
-1... |
./full_match/1/0xdEeDF6AE43B04AD3Ea6C79CCBCa4046C348E2875/sources/browser/Bullet_Loan.sol | Admin-only. Update the permission and precision of an asset, simultaneously. | function changeAsset(address _asset, bool _permitted, uint _precision) isAdmin public {
Asset_Permitted[_asset] = _permitted;
Asset_Precision[_asset] = _precision;
}
| 2,960,394 | [
1,
4625,
348,
7953,
560,
30,
225,
7807,
17,
3700,
18,
2315,
326,
4132,
471,
6039,
434,
392,
3310,
16,
27504,
715,
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,... | [
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,
2549,
6672,
12,
2867,
389,
9406,
16,
1426,
389,
457,
7948,
16,
2254,
389,
14548,
13,
23467,
1071,
288,
203,
3639,
10494,
67,
31465,
63,
67,
9406,
65,
273,
389,
457,
7948,
31,
203,
3639,
10494,
67,
15410,
63,
67,
9406,... |
// SPDX-License-Identifier: MIT
/*
####################################################################################
####################### ################################# ########################
######################### ###################### ###########################
############################ ... | * @title Counters @author Matt Condon (@shrugs) @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number of elements in a mapping, issuing ERC721 ids, or counting request ids. Include with `using Counters for Counters.Counter;`/ | library Counters {
####################################################################################
struct Counter {
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
u... | 6,869,434 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
9354,
87,
632,
4161,
490,
4558,
735,
19752,
261,
36,
674,
8653,
564,
13,
632,
5206,
28805,
13199,
716,
848,
1338,
506,
28859,
16,
15267,
329,
578,
2715,
18,
1220,
848,
506,
1399,
425,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
9354,
87,
288,
203,
10140,
10140,
5516,
1970,
203,
203,
203,
565,
1958,
9354,
288,
203,
565,
289,
203,
203,
565,
445,
783,
12,
4789,
2502,
3895,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
3895,
6315,
... |
pragma solidity ^0.4.17;
import "./PassageEvents.sol";
contract PassageHelper is PassageEvents {
// TODO:
// OnlyPassageTeam
// OnlyIndustry
// OnlyPublic
// OnlyGovernment
modifier ownerOf(bytes32 _productId) {
require(msg.sender == productIdToProductStruct[_productId].owner);
... | TODO: OnlyPassageTeam OnlyIndustry OnlyPublic OnlyGovernment | contract PassageHelper is PassageEvents {
modifier ownerOf(bytes32 _productId) {
require(msg.sender == productIdToProductStruct[_productId].owner);
_;
}
modifier productIdsExist(bytes32[] _productIds) {
bool allIdsExist = true;
for (uint i = 0; i < _productIds.length; i++)... | 12,990,709 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
5098,
6433,
410,
8689,
5098,
3866,
407,
698,
5098,
4782,
5098,
43,
1643,
82,
475,
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,
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,
16351,
10311,
410,
2276,
353,
10311,
410,
3783,
288,
203,
203,
203,
565,
9606,
3410,
951,
12,
3890,
1578,
389,
5896,
548,
13,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
23820,
774,
4133,
3823,
63,
67,
5896,
548,
8009,
8443,
... |
./partial_match/1/0x34441fA51bd02AC54A02FB7cE0172690C6d49913/sources/BalancerProxy.sol | File: contracts/utils/interfaces/IBPool.sol solhint-disable-next-line func-name-mixedcase | interface IBPool {
function rebind(address token, uint balance, uint denorm) external;
function setSwapFee(uint swapFee) external;
function setPublicSwap(bool publicSwap) external;
function bind(address token, uint balance, uint denorm) external;
function unbind(address token) external;
function... | 3,545,000 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
19,
5471,
19,
15898,
19,
13450,
2864,
18,
18281,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1326,
17,
529,
17,
19562,
3593,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
23450,
2864,
288,
203,
565,
445,
283,
4376,
12,
2867,
1147,
16,
2254,
11013,
16,
2254,
5545,
535,
13,
3903,
31,
203,
565,
445,
444,
12521,
14667,
12,
11890,
7720,
14667,
13,
3903,
31,
203,
565,
445,
27467,
12521,
12,
6430,
... |
pragma solidity 0.8.1;
interface ISupplyController {
function mintIncentive(address addr) external;
function mintableIncentive(address addr) external view returns (uint);
function mint(address token, address owner, uint amount) external;
function changeSupplyController(address newSupplyController) external;
}
int... | Full interface here: https:github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/interfaces/IUniswapV2Router01.sol | interface IUniswapSimple {
function WETH() external pure returns (address);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
}
| 496,446 | [
1,
4625,
348,
7953,
560,
30,
225,
11692,
1560,
2674,
30,
2333,
30,
6662,
18,
832,
19,
984,
291,
91,
438,
19,
318,
291,
91,
438,
17,
90,
22,
17,
457,
16045,
627,
19,
10721,
19,
7525,
19,
16351,
87,
19,
15898,
19,
45,
984,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5831,
467,
984,
291,
91,
438,
5784,
288,
203,
202,
915,
678,
1584,
44,
1435,
3903,
16618,
1135,
261,
2867,
1769,
203,
202,
915,
7720,
5157,
1290,
14332,
5157,
12,
203,
202,
202,
11890,
3844,
1182,
16,
203,
202,
202,
11890,
3844,
... |
/**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
fun... | * @dev Library for managing types. Sets have the following properties: - Elements are added, removed, and checked for existence in constant time (O(1)). - Elements are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { using EnumerableSet for EnumerableSet.AddressSet; EnumerableS... | library EnumerableSet {
struct Set {
bytes32[] _values;
mapping (bytes32 => uint256) _indexes;
}
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
set._indexes[value] =... | 10,403,570 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
18694,
364,
30632,
1953,
18,
11511,
1240,
326,
3751,
1790,
30,
300,
17219,
854,
3096,
16,
3723,
16,
471,
5950,
364,
15782,
316,
5381,
813,
261,
51,
12,
21,
13,
2934,
300,
17219,
854,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
5313,
6057,
25121,
694,
288,
203,
203,
203,
3639,
1958,
1000,
288,
203,
3639,
1731,
1578,
8526,
389,
2372,
31,
203,
203,
3639,
2874,
261,
3890,
1578,
516,
2254,
5034,
13,
389,
11265,
31,
203,
3639,
289,
203,
203,
3639,
445,... |
pragma solidity ^0.4.23;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);... | Log who sent, and how much so it can be returned | function() payable {
emit LogFallbackFunctionCalled(msg.sender, msg.value);
}
| 5,848,069 | [
1,
4625,
348,
7953,
560,
30,
1827,
10354,
3271,
16,
471,
3661,
9816,
1427,
518,
848,
506,
2106,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1435,
8843,
429,
288,
203,
565,
3626,
1827,
12355,
2083,
8185,
12,
3576,
18,
15330,
16,
1234,
18,
1132,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------
file: Proxyable.sol
version: 1.1
author: Anton Jurisevic
date: 2018-05-15
checked: Mike Spain
approved: Samuel Brooks
----------------------... | This contract should be treated like an abstract contract | contract Proxyable is Owned {
Proxy public proxy;
Proxy public integrationProxy;
address public messageSender;
constructor(address _proxy, address _owner)
Owned(_owner)
public
-----------------------------------------------------------------
{
proxy = Proxy(_proxy);
... | 12,814,217 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
6835,
1410,
506,
13974,
3007,
392,
8770,
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,... | [
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,
7659,
429,
353,
14223,
11748,
288,
203,
565,
7659,
1071,
2889,
31,
203,
565,
7659,
1071,
12040,
3886,
31,
203,
203,
565,
1758,
1071,
883,
12021,
31,
203,
203,
565,
3885,
12,
2867,
389,
5656,
16,
1758,
389,
8443,
13,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-04
*/
/**
*Submitted for verification at Etherscan.io on 2021-04-23
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
... | Contract implementation Tax and charity fees will start at 0 so we don't have a big impact when deploying to Uniswap Charity wallet address is null but the method to set the address is exposed We will set a minimum amount of tokens to be swaped => 5M | contract Luke is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapp... | 10,835,423 | [
1,
4625,
348,
7953,
560,
30,
225,
13456,
4471,
18240,
471,
1149,
560,
1656,
281,
903,
787,
622,
374,
1427,
732,
2727,
1404,
1240,
279,
5446,
15800,
1347,
7286,
310,
358,
1351,
291,
91,
438,
3703,
560,
9230,
1758,
353,
446,
1496,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6835,
511,
89,
4491,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
3639,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
3639,
1450,
5267,
364,
1758,
31,
203,
203,
3639,
2874,
261,
2867,
516,
2254,
5034,
13,
... |
pragma solidity ^0.5.0;
import "./ReentrancyGuard.sol";
import "./SafeMath.sol";
import "./SafeMathUInt128.sol";
import "./SafeCast.sol";
import "./Utils.sol";
import "./Storage.sol";
import "./Config.sol";
import "./Events.sol";
import "./Bytes.sol";
import "./Operations.sol";
import "./UpgradeableMaster.sol";
imp... | @title ZKSwap operations tools Circuit ops and their pubdata (chunks * bytes) | library Operations {
enum OpType {
Noop,
Deposit,
TransferToNew,
PartialExit,
Transfer,
FullExit,
ChangePubKey,
CreatePair,
AddLiquidity,
RemoveLiquidity,
Swap
}
uint8 constant TOKEN_BYTES = 2;
uint8 constant PUB... | 1,250,487 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
29878,
12521,
5295,
8513,
20797,
6727,
471,
3675,
5634,
892,
261,
14691,
380,
1731,
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,
... | [
1,
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,
12083,
25938,
288,
203,
203,
203,
565,
2792,
6066,
559,
288,
203,
3639,
2631,
556,
16,
203,
3639,
4019,
538,
305,
16,
203,
3639,
12279,
774,
1908,
16,
203,
3639,
19060,
6767,
16,
203,
3639,
12279,
16,
203,
3639,
11692,
6767,
16,
... |
//Address: 0x00416B9d728069eDB0cEb04bC2b203fA7336d1F1
//Contract name: AversafeSeedCrowdsale
//Balance: 0 Ether
//Verification Date: 11/29/2017
//Transacion Count: 36
// CODE STARTS HERE
/*
Copyright 2017 Cofound.it.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ex... | Add contribution amount to existing contributor
| contributorList[_contributor].contributionAmount += contributionAmount; | 1,003,035 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
24880,
3844,
358,
2062,
31123,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
31123,
682,
63,
67,
591,
19293,
8009,
591,
4027,
6275,
1011,
24880,
6275,
31,
565,
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: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
library DataTypes {
// refer to the whitepaper, section 1.1 basic concepts for a formal description of these properties.
struct ReserveData {
//stores the reserve configuration
... | returns 95% of the collateral we can withdraw from aave, used to loop and repay debts You always can repay something, if we return false, it means you have nothing to pay | function canRepay() public view returns (bool, uint256) {
(
uint256 totalCollateralETH,
uint256 totalDebtETH,
uint256 availableBorrowsETH,
uint256 currentLiquidationThreshold,
uint256 ltv,
uint256 healthFactor
) = LENDING_POOL.g... | 9,825,880 | [
1,
4625,
348,
7953,
560,
30,
225,
1135,
16848,
9,
434,
326,
4508,
2045,
287,
732,
848,
598,
9446,
628,
279,
836,
16,
1399,
358,
2798,
471,
2071,
528,
18202,
3428,
4554,
3712,
848,
2071,
528,
5943,
16,
309,
732,
327,
629,
16,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
848,
426,
10239,
1435,
1071,
1476,
1135,
261,
6430,
16,
2254,
5034,
13,
288,
203,
3639,
261,
203,
5411,
2254,
5034,
2078,
13535,
2045,
287,
1584,
44,
16,
203,
5411,
2254,
5034,
2078,
758,
23602,
1584,
44,
16,
203,
5411,... |
pragma solidity ^0.4.17;
library SafeMathMod { // Partial SafeMath Library
function mul(uint256 a, uint256 b) constant internal returns(uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) constant internal returns(uint256) {
... | Ensures that tokens are not sent to address "0x0" */ Ensures tokens are not sent to this contract */ Ensures sender has enough available allowance OR sender is balance holder allowing single transsaction send to contracts*/ Use SafeMathMod to add and subtract from the _to and _from addresses respectively. Prevents und... | if (allowed[_from][msg.sender] != MAX_UINT256 && _from != msg.sender) {
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
}
Transfer(_from, _to, _value);
return true;
| 632,355 | [
1,
4625,
348,
7953,
560,
30,
225,
1374,
8421,
716,
2430,
854,
486,
3271,
358,
1758,
315,
20,
92,
20,
6,
1195,
1374,
8421,
2430,
854,
486,
3271,
358,
333,
6835,
1195,
1374,
8421,
5793,
711,
7304,
2319,
1699,
1359,
4869,
5793,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
309,
261,
8151,
63,
67,
2080,
6362,
3576,
18,
15330,
65,
480,
4552,
67,
57,
3217,
5034,
597,
389,
2080,
480,
1234,
18,
15330,
13,
288,
203,
5411,
2935,
63,
67,
2080,
6362,
3576,
18,
15330,
65,
273,
2935,
63,
67,
2080,
6... |
pragma solidity ^0.5.16;
// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily... | * @notice Transfer `amount` tokens from `msg.sender` to `dst` @param dst The address of the destination account @param rawAmount The number of tokens to transfer @return Whether or not the transfer succeeded/ | function transfer(address dst, uint256 rawAmount) external returns (bool) {
uint96 amount =
safe96(rawAmount, "Lev::transfer: amount exceeds 96 bits");
_transferTokens(msg.sender, dst, amount);
return true;
}
| 6,123,394 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12279,
1375,
8949,
68,
2430,
628,
1375,
3576,
18,
15330,
68,
358,
1375,
11057,
68,
632,
891,
3046,
1021,
1758,
434,
326,
2929,
2236,
632,
891,
1831,
6275,
1021,
1300,
434,
2430,
358,
741... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
7412,
12,
2867,
3046,
16,
2254,
5034,
1831,
6275,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
10525,
3844,
273,
203,
5411,
4183,
10525,
12,
1899,
6275,
16,
315,
1682,
90,
2866,
13866,
30,
3844,
14399,
19332,
41... |
./partial_match/1/0x24276C57C033E4e25E0CdBC4a98e2e9B767c2A98/sources/contracts/protocol/pool/PoolConfigurator.sol | @inheritdoc IPoolConfigurator | function updatePToken(
ConfiguratorInputTypes.UpdatePTokenInput calldata input
) external override onlyPoolAdmin {
ConfiguratorLogic.executeUpdatePToken(_pool, input);
}
| 4,266,887 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
2864,
17182,
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,
1089,
52,
1345,
12,
203,
3639,
1903,
10662,
1210,
2016,
18,
1891,
52,
1345,
1210,
745,
892,
810,
203,
565,
262,
3903,
3849,
1338,
2864,
4446,
288,
203,
3639,
1903,
10662,
20556,
18,
8837,
1891,
52,
1345,
24899,
6011,
16... |
pragma solidity ^0.4.21;
/**
* Issued by
* _ __ _ _
* | | / _| | (_)
* __| | __ _ _ __ _ __ ___ ___ | |_| |_ _ ___
* / _` |/ _` | '_ \| '_ \/ __|/ _ \| _| __| | |/ _ \
* | (_| | (_| | |_) | |_) \__ \ (_) | | | |_ _| | (_) |
* \__,_... | 入场费 => 剑冢入场费为1ether
| uint enterPrice; | 1,330,775 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
166,
232,
103,
166,
255,
123,
169,
117,
122,
516,
225,
166,
236,
244,
166,
233,
100,
166,
232,
103,
166,
255,
123,
169,
117,
122,
165,
121,
123,
21,
2437,
203,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
2254,
6103,
5147,
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,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/43114/0x3fadb9DfDEfD769dC20020fBCb2Cb7B02F11C627/sources/home/pedro/Documents/projects/avalabs/party-swap/party-pinatas/contracts/StakingRewards.sol | Always needs to update the balance of the contract when calling this method | function notifyRewardAmount(uint256 reward)
external
onlyOwner
updateReward(address(0))
{
if (block.timestamp >= periodFinish) {
rewardRate = reward.div(rewardsDuration);
uint256 remaining = periodFinish.sub(block.timestamp);
uint256 leftover =... | 4,633,055 | [
1,
4625,
348,
7953,
560,
30,
225,
14178,
4260,
358,
1089,
326,
11013,
434,
326,
6835,
1347,
4440,
333,
707,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5066,
17631,
1060,
6275,
12,
11890,
5034,
19890,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
203,
3639,
1089,
17631,
1060,
12,
2867,
12,
20,
3719,
203,
565,
288,
203,
3639,
309,
261,
2629,
18,
5508,
1545,
3879,
11641,
1... |
./full_match/1/0xE4Baf69B887843aB6A0e82E8BAeA49010fF619af/sources/browser/YieldContract.sol | Define return array | uint256 noOfElements = _end - _start + 1;
| 4,867,861 | [
1,
4625,
348,
7953,
560,
30,
225,
13184,
327,
526,
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,
3639,
2254,
5034,
1158,
951,
3471,
273,
389,
409,
300,
389,
1937,
397,
404,
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,... |
./full_match/4/0xFE2574B80fc4E3FADbe4211fAa252AEDAE88811B/sources/Abito.sol | @title Random NFT Generator @author antovanFI, Elizao, irwingtello, leandrogavidia, mektigboy @notice Generates NFTs with randomness, and store them in a decentralized way. @dev This contract utilizes Chainlink VRF v2 for randomness. URIs point to IPFS. Imports contracts from OpenZeppelin. The number of accounts we wa... | contract AbitoRandomNFTGenerator is ERC721URIStorage, VRFConsumerBaseV2, Pausable, AccessControl {
Start WhiteList variables
using Counters for Counters.Counter;
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"... | 12,476,163 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
8072,
423,
4464,
10159,
632,
4161,
392,
869,
90,
304,
1653,
16,
10426,
452,
6033,
16,
9482,
91,
310,
88,
8996,
16,
884,
464,
303,
75,
842,
350,
1155,
16,
1791,
8629,
360,
1075,
93,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
432,
3682,
83,
8529,
50,
4464,
3908,
353,
225,
4232,
39,
27,
5340,
3098,
3245,
16,
776,
12918,
5869,
2171,
58,
22,
16,
21800,
16665,
16,
24349,
288,
203,
3639,
3603,
30233,
682,
3152,
203,
3639,
1450,
9354,
87,
364,
9354,
... |
//SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
interface IERC721 {
function ownerOf(uint256) external view returns (address);
function balanceOf(address) external view returns (uint25... | * @notice returns the addresses token or revert/ | function get(address _address) public view returns ( uint16 ) {
return data[_address];
}
| 463,007 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1135,
326,
6138,
1147,
578,
15226,
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,
336,
12,
2867,
389,
2867,
13,
1071,
1476,
1135,
261,
2254,
2313,
262,
288,
203,
3639,
327,
501,
63,
67,
2867,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.5.0;
//Interfaces
import './interfaces/IAddressResolver.sol';
import './interfaces/ISettings.sol';
import './interfaces/IERC20.sol';
import './interfaces/IBaseUbeswapAdapter.sol';
import "./interfaces/IStableCoinStakingRewards.sol";
import './interfaces/IPool.sol';
//Inheritance
import './interfac... | * @dev Given the index of a position, returns whether the position can be liquidated @param positionIndex Index of the leveraged position in array of leveraged positions @return bool Whether the position can be liquidated/Get current price of position's underyling asset | function checkIfPositionCanBeLiquidated(uint positionIndex) public view override positionIndexInRange(positionIndex) returns (bool) {
address baseUbeswapAdapterAddress = ADDRESS_RESOLVER.getContractAddress("BaseUbeswapAdapter");
uint USDperToken = IBaseUbeswapAdapter(baseUbeswapAdapterAddress).getPr... | 12,777,446 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16803,
326,
770,
434,
279,
1754,
16,
1135,
2856,
326,
1754,
848,
506,
4501,
26595,
690,
632,
891,
1754,
1016,
3340,
434,
326,
884,
502,
11349,
1754,
316,
526,
434,
884,
502,
11349,
6865,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19130,
2555,
2568,
1919,
48,
18988,
350,
690,
12,
11890,
1754,
1016,
13,
1071,
1476,
3849,
1754,
1016,
25277,
12,
3276,
1016,
13,
1135,
261,
6430,
13,
288,
203,
3639,
1758,
1026,
57,
70,
281,
91,
438,
4216,
1887,
273,
... |
./full_match/100/0x0Ac7ac8C6Eb5BbBEbE2d02E6B6f5B2B8e05759f1/sources/contracts/LP.sol | * @notice Active Core: Check if Core `msg.sender` can create condition for game `gameId`./ | function addCondition(uint256 gameId)
external
override
isActive(msg.sender)
returns (uint64)
{
Game storage game = _getGame(gameId);
if (game.canceled) revert GameCanceled_();
return game.startsAt;
}
| 14,285,420 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
8857,
4586,
30,
2073,
309,
4586,
1375,
3576,
18,
15330,
68,
848,
752,
2269,
364,
7920,
1375,
13957,
548,
8338,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
3418,
12,
11890,
5034,
7920,
548,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
15083,
12,
3576,
18,
15330,
13,
203,
3639,
1135,
261,
11890,
1105,
13,
203,
565,
288,
203,
3639,
14121,
2502,
7920,
273,
389,
588,
... |
./partial_match/1/0x18a5452117714ccE0d8FaECeFDFdB4783140AF74/sources/MainStorage.sol | NOLINT: constable-states uninitialized-state.
| uint256 vaultRoot; | 3,649,074 | [
1,
4625,
348,
7953,
560,
30,
225,
423,
1741,
3217,
30,
1866,
429,
17,
7992,
640,
13227,
17,
2019,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
9229,
2375,
31,
1171,
9079,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^ 0.4.21;
pragma solidity ^0.4.23;
contract PlayerContract
{
struct Player
{
address Id;//Used to identify each player
uint256 TotalWinnings;//Total winnings the player has won this will be the total DOGO tokens they've won
uint256 TotalWins;//The number of wins the player has thus far
uint256 Tot... | @Dev This function updates the specified players total wins i.e. player is awarded DOGO's by defualt 10 dogos are awarded for each win | function UpdatePlayerTotalWinnings(address id) internal returns (bool success)
{
RegisteredPlayers[id].TotalWinnings += DefualtTokenAward;
success=true;
}
| 5,364,580 | [
1,
4625,
348,
7953,
560,
30,
632,
8870,
1220,
445,
4533,
326,
1269,
18115,
2078,
31307,
277,
18,
73,
18,
7291,
353,
279,
11804,
5467,
16387,
1807,
635,
1652,
1462,
88,
1728,
302,
717,
538,
854,
279,
11804,
364,
1517,
5657,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
2315,
12148,
5269,
18049,
82,
899,
12,
2867,
612,
13,
2713,
1135,
261,
6430,
2216,
13,
225,
203,
95,
203,
26940,
1749,
3907,
63,
350,
8009,
5269,
18049,
82,
899,
1011,
225,
10922,
1462,
88,
1345,
37,
2913,
31,
203,
2216,
3... |
pragma solidity ^0.5.0;
/* @title CredentialsConstrained */
contract CredentialsConstrained {
// State
mapping(address => bool) public authorizedUsers;
address public contractOwner;
bool public isOpenToEveryUser;
// Events
event AuthorizedUserAdded(address user);
event Credentia... | @notice Open to every user @dev Allows every address to certify documents in the contract/ | function openToEveryUser() public onlyContractOwner onlyWhenCloseToEveryUser {
isOpenToEveryUser = true;
}
| 5,506,584 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3502,
358,
3614,
729,
632,
5206,
25619,
3614,
1758,
358,
3320,
1164,
7429,
316,
326,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1696,
774,
21465,
1299,
1435,
1071,
1338,
8924,
5541,
1338,
9434,
4605,
774,
21465,
1299,
288,
203,
3639,
16633,
774,
21465,
1299,
273,
638,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT OR Apache-2.0
// Reproduced from https://etherscan.io/address/0xa7d94560dbd814af316dd96fde78b9136a977d1c#code under the terms of Apache-2.0
pragma solidity ^0.7.0;
import "@openzeppelin/contracts-upgradeable2/token/ERC721/IERC721Upgradeable.sol";
/**
* @notice A place for common modi... | * @dev If the auction did not have an escrowed seller to return, this falls back to return the current owner. This allows functions to calculate the correct fees before the NFT has been listed in auction./ | {
return IERC721Upgradeable(nftContract).ownerOf(tokenId);
}
| 12,718,746 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
971,
326,
279,
4062,
5061,
486,
1240,
392,
2904,
492,
329,
29804,
358,
327,
16,
333,
21714,
1473,
358,
327,
326,
783,
3410,
18,
1220,
5360,
4186,
358,
4604,
326,
3434,
1656,
281,
1865,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
327,
467,
654,
39,
27,
5340,
10784,
429,
12,
82,
1222,
8924,
2934,
8443,
951,
12,
2316,
548,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0xcFFAa24612068254A998D2c7b57e7689642EB71E/sources/browser/Arbitrage.sol | This function is called after your contract has received the flash loaned amount Approve spending by all pools Swaps borrowed amount of asset 1 to asset 2 using pool 1 Swaps exchanged amount of asset 2 to asset 1 using pool 2 To remove Repay debt TODO Transfer remaining balances to owner | function executeOperation(
address _reserve,
uint256 _amount,
uint256 _fee,
bytes calldata _params
)
external
override
{
require(_amount <= getBalanceInternal(address(this), _reserve), "Invalid balance, was the flashLoan successful?");
... | 3,213,670 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
445,
353,
2566,
1839,
3433,
6835,
711,
5079,
326,
9563,
28183,
329,
3844,
1716,
685,
537,
272,
9561,
635,
777,
16000,
5434,
6679,
29759,
329,
3844,
434,
3310,
404,
358,
3310,
576,
1450,
2845,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
2988,
12,
203,
3639,
1758,
389,
455,
6527,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
21386,
16,
203,
3639,
1731,
745,
892,
389,
2010,
203,
565,
262,
203,
3639,
3903,
203,
3639,
3849,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
import "../openzeppelin/access/AccessControl.sol";
import "../openzeppelin/utils/math/SafeMath.sol";
import "../openzeppelin/token/ERC20/SafeERC20.sol";
import "../openzeppelin/token/ERC20/IERC20.sol";
import "../sablierh... | we store the remaing to guarantee deposit be multiple of period. We send that remining at the end of period. | uint256 remaining = deposit % duration;
| 12,569,721 | [
1,
4625,
348,
7953,
560,
30,
225,
732,
1707,
326,
849,
69,
310,
358,
18779,
443,
1724,
506,
3229,
434,
3879,
18,
1660,
1366,
716,
849,
10008,
622,
326,
679,
434,
3879,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1082,
202,
11890,
5034,
4463,
273,
443,
1724,
738,
3734,
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,
... |
./full_match/1/0x1203DaE52850b31CBa0Fd64B60224454e104B33F/sources/src/TorAddressRegister.sol | @inheritdoc ITorAddressRegister | function tryGet(uint index) external view returns (bool, string memory) {
if (index >= _register.length) {
return (false, "");
return (true, _register[index]);
}
}
| 4,970,429 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
24142,
280,
1887,
3996,
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,
445,
775,
967,
12,
11890,
770,
13,
3903,
1476,
1135,
261,
6430,
16,
533,
3778,
13,
288,
203,
3639,
309,
261,
1615,
1545,
389,
4861,
18,
2469,
13,
288,
203,
5411,
327,
261,
5743,
16,
1408,
1769,
203,
5411,
327,
261,
3767,
... |
./full_match/1/0x62450fBABdf57ce2EB1a5029d6A47D1F761c286d/sources/contracts/toadz.sol | * @title StonedToadz Contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ | contract StonedToadz is ERC721, Ownable {
using SafeMath for uint256;
using Counters for Counters.Counter;
Counters.Counter private _tokenIdTracker;
string public PROVENANCE = "";
uint256 public totalSaleElement;
uint256 public mintPrice;
uint256 public maxByMint;
address public clien... | 16,488,554 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
934,
8184,
774,
361,
94,
13456,
632,
5206,
6419,
5839,
4232,
39,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
5337,
4471,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
934,
8184,
774,
361,
94,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
565,
9354,
87,
18,
4789,
3238,
... |
/**
*Submitted for verification at Etherscan.io on 2019-12-06
*/
pragma solidity ^0.5.0;
contract CrowdsaleToken {
/* Public variables of the token */
string public constant name = 'Rocketclock';
string public constant symbol = 'RCLK';
//uint256 public constant decimals = 6;
address payable owner... | @notice Send `_value` tokens to `_to` from your account @param _to The address of the recipient @param _value the amount to send | function transfer(address payable _to, uint256 _value) public returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
| 12,669,686 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2479,
1375,
67,
1132,
68,
2430,
358,
1375,
67,
869,
68,
628,
3433,
2236,
632,
891,
389,
869,
1021,
1758,
434,
326,
8027,
632,
891,
389,
1132,
326,
3844,
358,
1366,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
8843,
429,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
203,
3639,
389,
13866,
12,
3576,
18,
15330,
16,
389,
869,
16,
389,
1132,
1769,
203,
3639,
327,
638,
31,
... |
./partial_match/1/0x569Ff451D7631917151b8C5b3F669156fdbeD251/sources/DigitalaxGarmentCollection.sol | * @notice Collection contract for Digitalax NFTs/ | contract DigitalaxGarmentCollection is Context, ReentrancyGuard, IERC721Receiver, ERC1155Receiver {
using SafeMath for uint256;
using Address for address payable;
event DigitalaxGarmentCollectionContractDeployed();
event MintGarmentCollection(
uint256 collectionId,
uint256 auctionTokenI... | 9,370,088 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2200,
6835,
364,
11678,
7053,
651,
423,
4464,
87,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
11678,
7053,
651,
43,
297,
475,
2532,
353,
1772,
16,
868,
8230,
12514,
16709,
16,
467,
654,
39,
27,
5340,
12952,
16,
4232,
39,
2499,
2539,
12952,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267... |
./full_match/42/0x04E242d992a71109b8c7d0451408bF84Ebd3ecc3/sources/contracts/ExplorerMainnet.sol | Flash Loan Amount + Flash Loan Fee | function _loanReturn(uint256 amount) public view returns(uint256) {
return amount.add(_loanFee(amount));
}
| 16,226,739 | [
1,
4625,
348,
7953,
560,
30,
15014,
3176,
304,
16811,
397,
15014,
3176,
304,
30174,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
383,
304,
990,
12,
11890,
5034,
3844,
13,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
3844,
18,
1289,
24899,
383,
304,
14667,
12,
8949,
10019,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
// Represents the base of a unibright contract
contract UnibrightContract {
// the owner of the contract
address public owner;
// state of the contract
ContractState public contractState;
// states the contract can be in
enum ContractState { CREATED, PUBLISHED, RUNNI... | publish is called by the owner of the contract to progress to the state PUBLISHED | function publish() public onlyBy(owner) {
contractState = ContractState.PUBLISHED;
}
| 12,794,627 | [
1,
4625,
348,
7953,
560,
30,
225,
3808,
353,
2566,
635,
326,
3410,
434,
326,
6835,
358,
4007,
358,
326,
919,
23295,
13462,
2056,
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,
3808,
1435,
1071,
1338,
858,
12,
8443,
13,
288,
203,
3639,
6835,
1119,
273,
13456,
1119,
18,
22224,
2056,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/80001/0x53e6104c5E6bA87bec6e794663a161d40ba6F949/sources/contracts/extensions/interfaces/IAuction.sol | * @title IAuction: @author Farasat Ali @notice inteface for Auction./ | interface IAuction {
function placeBidInAuction(
string memory tokenId,
uint256 serialNo
) external payable;
function revokeBidFromAuction(
string memory tokenId,
uint256 serialNo
) external;
function claimTokenFromAuction(
string memory tokenId,
uin... | 9,479,058 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
467,
37,
4062,
30,
632,
4161,
478,
297,
345,
270,
432,
549,
632,
20392,
509,
73,
865,
364,
432,
4062,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5831,
467,
37,
4062,
288,
203,
565,
445,
3166,
17763,
382,
37,
4062,
12,
203,
3639,
533,
3778,
1147,
548,
16,
203,
3639,
2254,
5034,
2734,
2279,
203,
565,
262,
3903,
8843,
429,
31,
203,
203,
565,
445,
18007,
17763,
1265,
37,
40... |
pragma solidity ^0.4.0;
contract FaireSharePayment
{
//آدرس 5 پرسنل توافق شده
address[] employees = [0xA9001d90528C544171398A20F05b1bC25a54c187
,0xFbf21C1F49533BbeF7a84c8f5CAA038Fa329B2f8
,0x6B22c95F3F2895EB8f43C95B9bbDc2087C606F19
,0xC0314E3362A21c24383A3e717A6dB4c99f9DeF7b
,0xEFfF3F193e76aB441... | تابع پیش فرض یا بدون نام قرارداد | function () payable public
{
updateTotalPayment();
}
| 1,755,589 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
153,
108,
153,
105,
153,
106,
153,
122,
225,
154,
127,
156,
239,
153,
117,
225,
154,
228,
153,
114,
153,
119,
225,
156,
239,
153,
105,
225,
153,
106,
153,
112,
154,
235,
154,
233,
225,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1832,
8843,
429,
1071,
203,
565,
288,
203,
3639,
1089,
5269,
6032,
5621,
203,
565,
289,
7010,
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.22 <0.6.0;
contract HTLC {
struct ProposalData {
string secret;
string sender;
string receiver;
string amount;
string timelock; // UNIX timestamp seconds - locked UNTIL this time
bool locked;
bool unlocked;
bool rolledback;
... | recode if you're the initiator | mapping(string => bool) htlcRoles;
| 5,387,846 | [
1,
4625,
348,
7953,
560,
30,
225,
283,
710,
309,
1846,
4565,
326,
26030,
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,
2874,
12,
1080,
516,
1426,
13,
18962,
6898,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2022-04-03
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that... | File: contracts/TestSkell.sol Amended by HashLips*/ | contract ISkeleton is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.13 ether;
uint256 public maxSupply = 778... | 6,526,545 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
19,
4709,
5925,
1165,
18,
18281,
3986,
3934,
635,
2474,
48,
7146,
5549,
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,
16351,
4437,
79,
12143,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
225,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
225,
9354,
87,
18,
4789,
3238,
14467,
31,
203,
... |
./full_match/1/0xb58665D962327909b94538720249b1DDDc1E3644/sources/contracts/InvestToken.sol | function withdrawAndClaimReward(address _tokenAddress, uint256 _amount, bool _isClaimReward) external { IERC20 token = IERC20(_tokenAddress); token.safeTransfer(msg.sender, _amount); } | function withdrawAndClaimReward(address _tokenAddress, uint256 _amount, bool _isClaimReward) external {
IERC20 token = IERC20(_tokenAddress);
token.safeTransfer(msg.sender, _amount);
}
| 8,357,802 | [
1,
4625,
348,
7953,
560,
30,
225,
445,
598,
9446,
1876,
9762,
17631,
1060,
12,
2867,
389,
2316,
1887,
16,
2254,
5034,
389,
8949,
16,
1426,
389,
291,
9762,
17631,
1060,
13,
3903,
288,
377,
467,
654,
39,
3462,
1147,
273,
467,
654,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
598,
9446,
1876,
9762,
17631,
1060,
12,
2867,
389,
2316,
1887,
16,
2254,
5034,
389,
8949,
16,
1426,
389,
291,
9762,
17631,
1060,
13,
3903,
288,
203,
3639,
467,
654,
39,
3462,
1147,
273,
467,
654,
39,
3462,
24899,
2316,
... |
pragma solidity ^0.4.21;
import "./Token.sol";
/**
* @title Mineable Token
*
* @dev Turns a wallet into a mine for a specified ERC20 token
*/
contract OracleToken is Token {
/*Variables*/
bytes32 public currentChallenge;
uint public timeOfLastProof; // time of last challenge solved
uint256 ... | reward to winner grows over time
| iTransfer(first_five[2].miner, 10); | 6,357,843 | [
1,
4625,
348,
7953,
560,
30,
225,
19890,
358,
5657,
1224,
314,
3870,
1879,
813,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
277,
5912,
12,
3645,
67,
74,
688,
63,
22,
8009,
1154,
264,
16,
1728,
1769,
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,
-1... |
// SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.7.6;
import "@openzeppelin/contracts/token/ERC1155/ERC1155Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IERC1155NonTransferable.sol";
import "./MetaTransactionReceiver.sol";
/**
* @title Non transferable token... | * @dev See {ERC1155-_beforeTokenTransfer}. Requirements: - tokens cannot be transferred after minter - tokens cannot be minted if user already have it - at most/ | function _beforeTokenTransfer(
address _operator,
address _from,
address _to,
uint256[] memory _ids,
uint256[] memory _amounts,
bytes memory _data
) internal virtual override onlyOwner {
require(
_from == address(0) || _to == address(0),
... | 5,730,683 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
654,
39,
2499,
2539,
17,
67,
5771,
1345,
5912,
5496,
29076,
30,
300,
2430,
2780,
506,
906,
4193,
1839,
1131,
387,
300,
2430,
2780,
506,
312,
474,
329,
309,
729,
1818,
1240,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
389,
9497,
16,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
2232,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
8949,
... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "deps/@openzeppelin/contracts/utils/SafeCast.sol";
import "deps/@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "deps/@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../../common/implementati... | * @notice Constructs the FundingRateApplier contract. Called by child contracts. @param _finderAddress Finder used to discover financial-product-related contracts. @param _fundingRateRewardRate Reward rate to pay FundingRateStore./ Seed the initial funding rate in the cumulativeFundingRateMultiplier 1. Set funding rate... | constructor(address _finderAddress, FixedPoint.Unsigned memory _fundingRateRewardRate) public {
finder = FinderInterface(_finderAddress);
lastUpdateTime = getCurrentTime();
cumulativeFundingRateMultiplier = FixedPoint.fromUnscaledUint(1);
_getFundingRateStore().setRewardRate(addre... | 2,500,843 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
14291,
87,
326,
478,
14351,
4727,
1294,
5742,
6835,
18,
11782,
635,
1151,
20092,
18,
632,
891,
389,
15356,
1887,
19307,
1399,
358,
10372,
574,
19292,
649,
17,
5896,
17,
9243,
20092,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3885,
12,
2867,
389,
15356,
1887,
16,
15038,
2148,
18,
13290,
3778,
389,
74,
14351,
4727,
17631,
1060,
4727,
13,
1071,
288,
203,
3639,
7532,
273,
19307,
1358,
24899,
15356,
1887,
1769,
203,
203,
3639,
1142,
1891,
950,
273,
517... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.13;
import "./ItemManager.sol";
contract Item{
uint public priceInWei;
uint public pricePaid;
uint public index;
ItemManager parentContract;
constructor(ItemManager _parentContract, uint _priceInWei,uint _index)public {
priceInWei... | SPDX-License-Identifier: MIT | pragma solidity >=0.6.0 <0.8.13;
| 12,578,443 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
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,
... | [
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,
683,
9454,
18035,
560,
1545,
20,
18,
26,
18,
20,
411,
20,
18,
28,
18,
3437,
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: MIT-open-group
pragma solidity ^0.8.0;
import "lib/ds-test/test.sol";
import "src/tokens/StakeNFT.sol";
import "lib/openzeppelin/token/ERC20/ERC20.sol";
import "lib/openzeppelin/token/ERC721/IERC721Receiver.sol";
uint256 constant ONE_MADTOKEN = 10**18;
contract MadTokenMock is ERC20 {
... | As long as all the users have withdrawal their dividends this should hold true As long as all the users have withdrawal their dividends this should hold true As long as all the users have withdrawal their dividends this should hold true | function test_SlushInvariance() public {
(StakeNFT stakeNFT, MadTokenMock madToken,,) = getFixtureData();
UserAccount user1 = newUserAccount(madToken, stakeNFT);
UserAccount user2 = newUserAccount(madToken, stakeNFT);
UserAccount user3 = newUserAccount(madToken, stakeNFT);
Us... | 6,424,587 | [
1,
4625,
348,
7953,
560,
30,
225,
2970,
1525,
487,
777,
326,
3677,
1240,
598,
9446,
287,
3675,
3739,
350,
5839,
333,
1410,
6887,
638,
2970,
1525,
487,
777,
326,
3677,
1240,
598,
9446,
287,
3675,
3739,
350,
5839,
333,
1410,
6887,
638... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
3738,
1218,
382,
11721,
1435,
1071,
288,
203,
3639,
261,
510,
911,
50,
4464,
384,
911,
50,
4464,
16,
490,
361,
1345,
9865,
312,
361,
1345,
16408,
13,
273,
2812,
697,
10970,
751,
5621,
203,
3639,
2177,
3032,
... |
./partial_match/3/0xf62e77cB3692f159Ba139439a30F4Cf42cAE9B11/sources/ball.sol | 创建一个交易,输入交易的信息、金额、付款人、收款人。并将指定金额打入到本合约 | function ceateTX (string calldata _name, uint256 _amount, address _sender, address _recipient) external returns(bool){
}
| 5,320,355 | [
1,
4625,
348,
7953,
560,
30,
225,
166,
235,
254,
166,
124,
123,
165,
121,
227,
165,
121,
108,
165,
123,
102,
167,
251,
246,
176,
125,
239,
169,
127,
246,
166,
232,
103,
165,
123,
102,
167,
251,
246,
168,
253,
231,
165,
128,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5898,
340,
16556,
261,
1080,
745,
892,
389,
529,
16,
2254,
5034,
389,
8949,
16,
1758,
389,
15330,
16,
1758,
389,
20367,
13,
3903,
1135,
12,
6430,
15329,
203,
540,
203,
540,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppeli... | ========== STATE VARIABLES ========== */ | struct staker {
uint stakeAmount;
uint stakeTime;
uint reward;
}
mapping (address => staker) private _stakeHolders;
uint private _placeHolder1;
event Withdraw(address indexed from, uint amount);
event Claim (address indexed from, uint amount);
event SetRewardRate... | 5,456,614 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
7442,
22965,
55,
422,
1432,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
384,
6388,
288,
203,
3639,
2254,
384,
911,
6275,
31,
203,
3639,
2254,
384,
911,
950,
31,
203,
3639,
2254,
19890,
31,
203,
565,
289,
203,
203,
565,
2874,
261,
2867,
516,
384,
6388,
13,
3238,
389,
334,
911,
27003,
31,
... |
./partial_match/1/0x921fA418F5Fb05174b69F8c2836DffE811cAC879/sources/BsideNFT.sol | * @dev See {IERC721-setApprovalForAll}./ | function setApprovalForAll(address operator, bool approved)
public
virtual
override
{
require(operator != _msgSender(), "Approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| 4,454,363 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
17,
542,
23461,
1290,
1595,
5496,
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,
... | [
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,
444,
23461,
1290,
1595,
12,
2867,
3726,
16,
1426,
20412,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
3849,
203,
565,
288,
203,
3639,
2583,
12,
9497,
480,
389,
3576,
12021,
9334,
315,
12053,
537,
358,
4894,
8863,
20... |
./full_match/1/0xc2731fb2823af3Efc2694c9bC86F444d5c5bb4Dc/sources/@keep-network/sortition-pools/contracts/SortitionPool.sol | @notice Unlocks the sortition pool. Removes all restrictions set by the `lock` method. @dev Can be called only by the contract owner. | function unlock() public onlyOwner {
isLocked = false;
}
| 2,973,674 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3967,
87,
326,
1524,
608,
2845,
18,
20284,
777,
17499,
444,
635,
540,
326,
1375,
739,
68,
707,
18,
632,
5206,
4480,
506,
2566,
1338,
635,
326,
6835,
3410,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7186,
1435,
1071,
1338,
5541,
288,
203,
565,
31753,
273,
629,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";
import "@openzeppelin/contracts/ut... | @dev Create an auction. @param _nftAddress - Address of the NFT. @param _tokenId - ID of the NFT. @param _price - Price of erc20 address. @param _erc20Address - Address of price need to be list on. | function createAuction(
address _nftAddress,
uint256 _tokenId,
uint256 _price,
address _erc20Address
) external whenNotPaused canBeStoredWith128Bits(_price) {
address _seller = msg.sender;
require(
_owns(_nftAddress, _seller, _tokenId),
"Ja... | 7,327,338 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1788,
392,
279,
4062,
18,
632,
891,
389,
82,
1222,
1887,
300,
5267,
434,
326,
423,
4464,
18,
632,
891,
389,
2316,
548,
300,
1599,
434,
326,
423,
4464,
18,
632,
891,
389,
8694,
300,
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,
752,
37,
4062,
12,
203,
3639,
1758,
389,
82,
1222,
1887,
16,
203,
3639,
2254,
5034,
389,
2316,
548,
16,
203,
3639,
2254,
5034,
389,
8694,
16,
203,
3639,
1758,
389,
12610,
3462,
1887,
203,
565,
262,
3903,
1347,
1248,
2... |
pragma solidity ^0.5.1;
/**
* Lottery 5 of 36 (Weekly)
*/
contract SmartLotto {
// For safe math operations
using SafeMath for uint;
uint private constant DAY_IN_SECONDS = 86400;
// Member struct
struct Member {
address payable addr; // Address
uint ticket; //... | / Buy ticket process/ | function processUserTicket() private {
uint8 weekday = getWeekday(now);
uint8 hour = getHour(now);
if( GAME_NUM > 0 && (weekday != 7 || (weekday == 7 && (hour < 8 || hour > 11 ))) ) {
if(msg.value == TICKET_PRICE) {
createTicket();
if(msg.value < TICKET_PRICE) {
FUND_PR = FUND_... | 7,225,040 | [
1,
4625,
348,
7953,
560,
30,
342,
605,
9835,
9322,
1207,
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... | [
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,
915,
1207,
1299,
13614,
1435,
3238,
288,
203,
1082,
203,
202,
202,
11890,
28,
7560,
273,
336,
17019,
12,
3338,
1769,
203,
202,
202,
11890,
28,
6126,
273,
7628,
477,
12,
3338,
1769,
203,
1082,
203,
202,
202,
430,
12,
611,
1... |
pragma solidity ^0.4.24;
// Deployed at 0x06af8345c1266ee172ee66a31e2be65bf9aa7b46 on Ropsten!
contract SecretEventOrg{
address public organizer; // Address of organizer
string public encryption_key; // Linnia encr... | Check if friend is already referred by other member | modifier _alreadyReferred(address addr) {
require(referralInfo[addr] != 0, "Referral by a Member is required");
_;
}
| 5,413,106 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
24271,
353,
1818,
29230,
635,
1308,
3140,
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,
9606,
389,
17583,
426,
4193,
12,
2867,
3091,
13,
288,
203,
3639,
2583,
12,
1734,
29084,
966,
63,
4793,
65,
480,
374,
16,
315,
1957,
29084,
635,
279,
8596,
353,
1931,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
2,
-100,
... |
./full_match/80001/0xD82650Ce9Dc0c05631ed86444C577fd65C4FE3cf/sources/contracts/SolyncoProfileMinter.sol | The name for the Role that allows users to edit usernames | contract SolyncoProfileMinter is ERC721SignatureMint, PermissionsEnumerable {
bytes32 public constant SOLYEDITOR_ROLE = keccak256("SOLYEDITOR_ROLE");
constructor(
string memory _name,
string memory _symbol,
address _royaltyRecipient,
uint128 _royaltyBps,
address _primary... | 9,529,406 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
508,
364,
326,
6204,
716,
5360,
3677,
358,
3874,
27675,
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,
16351,
348,
355,
1209,
83,
4029,
49,
2761,
353,
4232,
39,
27,
5340,
5374,
49,
474,
16,
15684,
3572,
25121,
288,
203,
565,
1731,
1578,
1071,
5381,
27175,
61,
13208,
67,
16256,
273,
417,
24410,
581,
5034,
2932,
19815,
61,
13208,
67... |
pragma solidity ^0.5.0;
contract SocialNetwork{
string public name;
uint public postCount = 0;
mapping(uint => Post) public posts;
struct Post {
uint id;
string content;
uint tipAmount;
address payable author;
}
event postCreated(
uint id,
st... | fetch the postfetch the authorpay the author by sending them etherincrement the tip amountupdate the posttrigger an event | function tipPost(uint _id) public payable {
require(_id > 0 && _id <= postCount);
Post memory _post = posts[_id];
address payable _author = _post.author;
address(_author).transfer(msg.value);
_post.tipAmount += msg.value;
posts[_id] = _post;
emit postTipped(po... | 12,982,438 | [
1,
4625,
348,
7953,
560,
30,
2158,
326,
1603,
5754,
326,
2869,
10239,
326,
2869,
635,
5431,
2182,
225,
2437,
15016,
326,
9529,
3844,
2725,
326,
1603,
10668,
392,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9529,
3349,
12,
11890,
389,
350,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
24899,
350,
405,
374,
597,
389,
350,
1648,
1603,
1380,
1769,
203,
3639,
5616,
3778,
389,
2767,
273,
10775,
63,
67,
350,
15533,
203,
3639,
1758,... |
./partial_match/56/0xB17Fbfa6dC55093E8c01cb26Fa45570C2460a344/sources/MasterYield.sol | Withdraw LP tokens from MasterChef. | function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "withdraw: not good");
updatePool(_pid);
uint256 pending = user.amount.mul(pool.accYieldNetPer... | 11,100,622 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
511,
52,
2430,
628,
13453,
39,
580,
74,
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,
... | [
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,
598,
9446,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
3576,
... |
./full_match/1/0x4Be6A8507cdFa3595FD35e2CF822d9f7526b6d9a/sources/contracts/interfaces/INativeTreasury.sol | generic interface to treasury contract | interface INativeTreasury {
event ReservesSynced(uint128 reserve0, uint128 reserve1);
function syncReserve() external;
function getReserves() external view returns (uint128 _reserve0, uint128 _reserve1);
function setPoolAddress(address _pool) external;
function token0() external view returns (ad... | 17,130,278 | [
1,
4625,
348,
7953,
560,
30,
225,
5210,
1560,
358,
9787,
345,
22498,
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,
... | [
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,
5831,
2120,
1535,
56,
266,
345,
22498,
288,
203,
565,
871,
1124,
264,
3324,
23985,
12,
11890,
10392,
20501,
20,
16,
2254,
10392,
20501,
21,
1769,
203,
203,
565,
445,
3792,
607,
6527,
1435,
3903,
31,
203,
203,
565,
445,
31792,
264... |
./partial_match/1/0xD7D4E0FdB0a99b7aBbc6B478Acd661595093F8cc/sources/AdminUpgradeabilityProxy.sol | * @title Package @dev A package is composed by a set of versions, identified via semantic versioning, where each version has a contract address that refers to a reusable implementation, plus an optional content URI with metadata. Note that the semver identifier is restricted to major, minor, and patch, as prerelease ta... | contract Package is ZOSLibOwnable {
event VersionAdded(uint64[3] semanticVersion, address contractAddress, bytes contentURI);
struct Version {
uint64[3] semanticVersion;
address contractAddress;
bytes contentURI;
}
mapping (bytes32 => Version) internal versions;
mapping (uint64 => bytes32) int... | 2,745,364 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
7508,
632,
5206,
432,
2181,
353,
18673,
635,
279,
444,
434,
5244,
16,
9283,
3970,
15178,
1177,
310,
16,
1625,
1517,
1177,
711,
279,
6835,
1758,
716,
21368,
358,
279,
283,
16665,
4471,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7508,
353,
2285,
51,
4559,
495,
5460,
429,
288,
203,
225,
871,
4049,
8602,
12,
11890,
1105,
63,
23,
65,
15178,
1444,
16,
1758,
6835,
1887,
16,
1731,
913,
3098,
1769,
203,
203,
203,
225,
1958,
4049,
288,
203,
565,
2254,
1... |
pragma solidity ^0.4.18;
/**
* @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 ownerAddress;
event OwnershipTransferred(address indexed previous... | can't buy again the same thing!
| require(msg.sender != _obj.owner); | 5,782,770 | [
1,
4625,
348,
7953,
560,
30,
225,
848,
1404,
30143,
3382,
326,
1967,
7757,
5,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2583,
12,
3576,
18,
15330,
480,
389,
2603,
18,
8443,
1769,
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,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "ethereum-universal-forwarder/src/solc_0.7/ERC2771/UsingUniversalForwarding.sol";
contract TestUniversalForwardingReceiver is UsingUniversalForwarding {
mapping(address => uint256) internal _d;
event Test(address from, string name);
// solhin... | solhint-disable-next-line no-empty-blocks | contract TestUniversalForwardingReceiver is UsingUniversalForwarding {
mapping(address => uint256) internal _d;
event Test(address from, string name);
constructor(IForwarderRegistry forwarderRegistry, address universalForwarder)
UsingUniversalForwarding(forwarderRegistry, universalForwarder)
prag... | 7,231,802 | [
1,
4625,
348,
7953,
560,
30,
225,
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,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7766,
984,
14651,
21487,
12952,
353,
11637,
984,
14651,
21487,
288,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
2713,
389,
72,
31,
203,
203,
565,
871,
7766,
12,
2867,
628,
16,
533,
508,
1769,
203,
203,
565,
3885,
12,
... |
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually... | * @dev Leaves the contract without registryAdmin. It will not be possible to call `onlyManager` functions anymore. Can only be called by the current registryAdmin. NOTE: Renouncing registryManagement will leave the contract without an registryAdmin, thereby removing any functionality that is only available to the regis... | function renounceRegistryManagement() public onlyRegistryAdmin {
emit RegistryManagementTransferred(_registryAdmin, address(0));
_registryAdmin = address(0);
}
| 173,601 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3519,
6606,
326,
6835,
2887,
4023,
4446,
18,
2597,
903,
486,
506,
3323,
358,
745,
1375,
3700,
1318,
68,
4186,
16828,
18,
4480,
1338,
506,
2566,
635,
326,
783,
4023,
4446,
18,
5219,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1654,
8386,
4243,
10998,
1435,
1071,
1338,
4243,
4446,
288,
203,
3639,
3626,
5438,
10998,
1429,
4193,
24899,
9893,
4446,
16,
1758,
12,
20,
10019,
203,
3639,
389,
9893,
4446,
273,
1758,
12,
20,
1769,
203,
565,
289,
203,
... |
pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2; //Needed to return array of structs
// Example of package delivery smart contract
contract Deliveries {
address owner; //Delivery firm
// Defines a new package type with delivery info.
struct Package {
address sender; //Package sender
addr... | * Cancelling of delivery, possible from sender, receiver or delivery company Send money back to sender/ | function cancelDelivery(uint packageId) onlySenderReceiverOrOwner(packageId) returns (bool) {
require(allPackages[packageId].status == DeliveryStatus.InProgress);
if (!allPackages[packageId].sender.send(deliveryPrice)) {
}
allPackages[packageId].status = DeliveryStatus.Cancelled;
allPackages[packageId... | 5,382,280 | [
1,
4625,
348,
7953,
560,
30,
380,
4480,
3855,
310,
434,
7912,
16,
3323,
628,
5793,
16,
5971,
578,
7912,
9395,
2479,
15601,
1473,
358,
5793,
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,
... | [
1,
1,
1,
1,
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,
202,
915,
3755,
8909,
12,
11890,
2181,
548,
13,
1338,
12021,
12952,
1162,
5541,
12,
5610,
548,
13,
1135,
261,
6430,
13,
288,
203,
202,
202,
6528,
12,
454,
11425,
63,
5610,
548,
8009,
2327,
422,
17390,
1482,
18,
13434,
1769,
203,
... |
./full_match/295/0x0000000000000000000000000000000000233233/sources/HederaResponseCodes.sol | The treasury for a unique token cannot be changed until it owns no NFTs
| int32 internal constant CURRENT_TREASURY_STILL_OWNS_NFTS = 250; | 4,664,350 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
9787,
345,
22498,
364,
279,
3089,
1147,
2780,
506,
3550,
3180,
518,
29065,
1158,
423,
4464,
87,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
509,
1578,
2713,
5381,
18484,
67,
56,
862,
3033,
1099,
61,
67,
882,
15125,
67,
7306,
3156,
67,
50,
4464,
55,
273,
16927,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.5.11;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/access/roles/MinterRole.sol";
import "./interfaces/IERC20Detailed.sol";
import "./interfaces/IERC20MintableBurnable.sol";
import "./interfaces/IEx... | * @dev Deploys an automated Exchange contract for a given pair of ERC20 and WrappedERC20 tokens. @param _token ERC20 token address e.g. PAY token @param _wrappedToken Wrapped ERC20 token address e.g. wPAY token @return IExchange exchange address/ | function createExchange(IERC20 _token, IERC20MintableBurnable _wrappedToken) internal returns (IExchange) {
IExchange exchange = new WrappedERC20Exchange(
_token,
_wrappedToken
);
exchanges[address(_token)] = exchange;
emit ExchangeCreated(address(_token), address... | 14,032,404 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4019,
383,
1900,
392,
18472,
690,
18903,
6835,
364,
279,
864,
3082,
434,
4232,
39,
3462,
471,
24506,
654,
39,
3462,
2430,
18,
632,
891,
389,
2316,
4232,
39,
3462,
1147,
1758,
425,
18,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
11688,
12,
45,
654,
39,
3462,
389,
2316,
16,
467,
654,
39,
3462,
49,
474,
429,
38,
321,
429,
389,
18704,
1345,
13,
2713,
1135,
261,
45,
11688,
13,
288,
203,
3639,
467,
11688,
7829,
273,
394,
24506,
654,
39,
346... |
// SPDX-License-Identifier: No License
pragma solidity ^0.8.0;
import "./ERC20/SafeERC20.sol";
import "./ERC20/IERC20.sol";
import "./proxy/InitializableAdminUpgradeabilityProxy.sol";
import "./utils/Create2.sol";
import "./utils/Initializable.sol";
import "./utils/Ownable.sol";
import "./utils/ReentrancyGuard.sol";
... | nonce of for the coverPool's accepted claims
| uint256 public override claimNonce; | 6,895,605 | [
1,
4625,
348,
7953,
560,
30,
225,
7448,
434,
364,
326,
5590,
2864,
1807,
8494,
11955,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
225,
2254,
5034,
1071,
3849,
7516,
13611,
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,... |
pragma solidity ^0.5.0;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*
* Subtraction and addition only here.
*/
library SafeMath {
/**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
... | * CONSTRUCTOR: Initialize with an admin address./ | constructor (address _admin) public RequestUid() {
admin = _admin;
}
| 2,479,104 | [
1,
4625,
348,
7953,
560,
30,
380,
3492,
13915,
916,
30,
9190,
598,
392,
3981,
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,
... | [
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,
3885,
261,
2867,
389,
3666,
13,
1071,
1567,
11994,
1435,
288,
203,
3639,
3981,
273,
389,
3666,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/11155111/0x039794dAe419d28AEF3d115F257eccF5125962be/sources/project_/contracts/World1.sol | @dev Get the address of the Verse in which this World is registered @return The address of the Verse | function getVerse() external view returns (address) {
return mainData.verse;
}
| 3,813,788 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
968,
326,
1758,
434,
326,
6160,
307,
316,
1492,
333,
21820,
353,
4104,
632,
2463,
1021,
1758,
434,
326,
6160,
307,
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,
225,
445,
336,
3945,
307,
1435,
3903,
1476,
1135,
261,
2867,
13,
288,
203,
565,
327,
2774,
751,
18,
2476,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x20246173D4BACE1757c5dd4d3a5979760AEa4404/sources/SpectrolFinance.sol | Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract SpectrolFinance is ERC20Permit, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
address public constant deadAddress = address(0xdead);
address public marketingWallet;
address public treasuryWallet;
bool public trading... | 3,139,610 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
380,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
348,
1181,
922,
6187,
1359,
353,
4232,
39,
3462,
9123,
305,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
640,
291,
91,
438,
58,... |
./partial_match/1/0x4a279C5E53c333f8F7f98Ff9805e3491756EBA67/sources/StakeUSDCtoPSC.sol | Then process to withdraw stake token | function withdraw(uint256 id) public {
require(
_StakeSlots[msg.sender][id].amount > 0,
"Invalid amount to withdraw"
);
uint256 withdrawAmount = _StakeSlots[msg.sender][id].amount;
_StakeSlots[msg.sender][id].amount = 0;
_StakeSlots[msg.sender][id].endedAt = block.timestamp;
token.safeTransfer(msg.se... | 4,241,098 | [
1,
4625,
348,
7953,
560,
30,
225,
9697,
1207,
358,
598,
9446,
384,
911,
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,
... | [
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,
202,
915,
598,
9446,
12,
11890,
5034,
612,
13,
1071,
288,
203,
202,
202,
6528,
12,
203,
1082,
202,
67,
510,
911,
16266,
63,
3576,
18,
15330,
6362,
350,
8009,
8949,
405,
374,
16,
203,
1082,
202,
6,
1941,
3844,
358,
598,
9446,
... |
./full_match/5/0x21517abae577dDC59Ac6945C501F36AF085d97A7/sources/contracts/CrowdFunding.sol | the amount 0 + add on to it the donated amount
| campaign.amountCollected = campaign.amountCollected + amount; | 1,856,067 | [
1,
4625,
348,
7953,
560,
30,
326,
3844,
374,
397,
527,
603,
358,
518,
326,
2727,
690,
3844,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1377,
8965,
18,
8949,
10808,
329,
273,
8965,
18,
8949,
10808,
329,
397,
3844,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import '@openzeppelin/cont... | * @notice unstake given token ids and forfeit rewards @param tokenIds the token ids to unstake/ | function exitWithoutRewards(uint256[] calldata tokenIds) external whenNotPaused nonReentrant {
require(tokenIds.length <= 40 && tokenIds.length > 0, "Unstake: amount prohibited");
for (uint256 i; i < tokenIds.length; i++) {
require(
stakedTokens[msg.sender].contains(toke... | 550,764 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
640,
334,
911,
864,
1147,
3258,
471,
364,
3030,
305,
283,
6397,
632,
891,
1147,
2673,
326,
1147,
3258,
358,
640,
334,
911,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2427,
8073,
17631,
14727,
12,
11890,
5034,
8526,
745,
892,
1147,
2673,
13,
3903,
1347,
1248,
28590,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
2316,
2673,
18,
2469,
1648,
8063,
597,
1147,
2673,
18,
2469,
405,
374,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, ... | * @dev These functions deal with verification of Merkle Trees proofs. The proofs can be generated using the JavaScript library Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. See `test/utils/cryptography/MerkleProof.test.js` for some examples./ | library MerkleProof {
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
by... | 456,060 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8646,
4186,
10490,
598,
11805,
434,
31827,
399,
5312,
14601,
87,
18,
1021,
14601,
87,
848,
506,
4374,
1450,
326,
11905,
5313,
3609,
30,
326,
24641,
4886,
1410,
506,
417,
24410,
581,
5034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
31827,
20439,
288,
203,
565,
445,
3929,
12,
203,
3639,
1731,
1578,
8526,
3778,
14601,
16,
203,
3639,
1731,
1578,
1365,
16,
203,
3639,
1731,
1578,
7839,
203,
565,
262,
2713,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
327,
... |
pragma solidity ^0.6.8;
import "https://github.com/kole-swapnil/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol";
abstract contract ERC20Interface {
function transferFrom(address from, address to, uint tokens) public virtual returns (bool success);
function balanceOf(address tokenOwner) public virtual... | check sell price > 0 | require(sellPrices[tokenId] > 0);
| 6,407,348 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
357,
80,
6205,
405,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
2583,
12,
87,
1165,
31862,
63,
2316,
548,
65,
405,
374,
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,... |
/*
Copyright 2021 Crosspoly ZOO.
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
import {IERC20} from "../../intf/IERC20.sol";
import {UniversalERC20} from "../../SmartRoute/lib/UniversalERC20.sol";
import {SafeMath} from "../../lib/SafeMath.sol";
import {Address... | index => Interval probability (Only For ProbMode)
| uint256[] public _PROB_INTERVAL_; | 12,711,988 | [
1,
4625,
348,
7953,
560,
30,
225,
770,
516,
10803,
11331,
261,
3386,
2457,
14610,
2309,
13,
21281,
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,
2254,
5034,
8526,
1071,
389,
3373,
38,
67,
16435,
67,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/42220/0x311779000e3342a16c333fbA0123502f8C72e86C/sources/src/diamond/libraries/BookingMapLib.sol | ========================================================== Years ========================================================== | function buildTimestamp(
YearsStore storage _years,
uint16 yearNum,
uint16 dayOfTheYear
) internal view returns (bool, uint256) {
(bool found, Year memory year) = get(_years, yearNum);
if (found && year.enabled) {
uint256 day;
if (year.leapYear) {... | 16,324,678 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
20775,
1432,
16666,
87,
422,
20775,
1432,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1361,
4921,
12,
203,
3639,
16666,
87,
2257,
2502,
389,
29391,
16,
203,
3639,
2254,
2313,
3286,
2578,
16,
203,
3639,
2254,
2313,
2548,
951,
1986,
5593,
203,
565,
262,
2713,
1476,
1135,
261,
6430,
16,
2254,
5034,
13,
288,... |
pragma solidity ^0.5.0;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABLE... | * @dev Set Authorized Contract Caller @param contractCaller is an Ethereum contract address When contract caller is authorized, then it will have access to designated methods/ | function authorizeCaller(address contractCaller)
external
requireIsOperational
requireContractOwner
{
authorizedContractCaller[contractCaller] = true;
emit CallingContractAuthorized(contractCaller);
}
| 12,944,916 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1000,
6712,
1235,
13456,
20646,
632,
891,
225,
6835,
11095,
353,
392,
512,
18664,
379,
6835,
1758,
5203,
6835,
4894,
353,
10799,
16,
1508,
518,
903,
1240,
2006,
358,
25264,
2590,
19,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12229,
11095,
12,
2867,
6835,
11095,
13,
203,
18701,
3903,
203,
18701,
2583,
2520,
2988,
287,
203,
18701,
2583,
8924,
5541,
203,
565,
288,
203,
3639,
10799,
8924,
11095,
63,
16351,
11095,
65,
273,
638,
31,
203,
3639,
3626... |
./full_match/1/0x2fB140574f02b3043a7B2342017f7E1A3a4f98Cb/sources/contracts/PoolPositionBaseSlim.sol | @inheritdoc IPoolPositionSlim | function getReserves() external view checkBin returns (uint256 reserveA, uint256 reserveB) {
(reserveA, reserveB) = _getReserves(tokenId);
}
| 3,849,601 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
2864,
2555,
3738,
381,
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,
31792,
264,
3324,
1435,
3903,
1476,
866,
9913,
1135,
261,
11890,
5034,
20501,
37,
16,
2254,
5034,
20501,
38,
13,
288,
203,
3639,
261,
455,
6527,
37,
16,
20501,
38,
13,
273,
389,
588,
607,
264,
3324,
12,
2316,
548,
176... |
./partial_match/1/0x947a216cdA4697369839A72b6AaeED481eCf3BaA/sources/mybad.sol | at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.when buywhen sell if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers Initialization/sniper penalty. on sell on buy | function _transfer(address from, address to, uint256 amount) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "amount must be greater than 0");
if(!trading... | 4,279,380 | [
1,
4625,
348,
7953,
560,
30,
225,
622,
8037,
309,
326,
7412,
4624,
353,
3696,
16,
3387,
326,
1203,
11267,
364,
5405,
343,
345,
414,
353,
444,
1493,
4982,
8037,
18,
13723,
30143,
13723,
357,
80,
309,
1281,
2236,
11081,
358,
389,
291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
2713,
3849,
288,
203,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
3639,
2583,
... |
./full_match/1/0x92785FfB89414a2eB0d9fE4f5F4431262fEEAD9a/sources/src/utils/TokenInfo.sol | * @dev Sets the terms of the token. @param termsURI_ URI of the token terms @param termsHash_ SHA-256 hash of the token terms/ | function _setTerms(string calldata termsURI_, bytes32 termsHash_)
internal
virtual
{
string memory oldTermsURI = termsURI;
bytes32 oldTermsHash = termsHash;
termsURI = termsURI_;
termsHash = termsHash_;
termsVersion++;
emit TermsSet(
te... | 2,939,738 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
6548,
434,
326,
1147,
18,
632,
891,
6548,
3098,
67,
3699,
434,
326,
1147,
6548,
632,
891,
6548,
2310,
67,
9777,
17,
5034,
1651,
434,
326,
1147,
6548,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
11673,
12,
1080,
745,
892,
6548,
3098,
67,
16,
1731,
1578,
6548,
2310,
67,
13,
203,
3639,
2713,
203,
3639,
5024,
203,
565,
288,
203,
3639,
533,
3778,
1592,
11673,
3098,
273,
6548,
3098,
31,
203,
3639,
1731,
... |
pragma solidity ^0.4.24;
/*
Реализация смарт контракта по типу 6 друзей
*/
contract SixFriends {
using SafeMath for uint;
address public ownerAddress; //Адресс владельца
uint private percentMarketing = 8; //Проценты на маркетинг
uint private percentAdministrator = 2; //Проценты админис... | Если ref не найдена то берется первое значение
| if (Nodes[tp].Hexagons[ref][0] == 0) ref = Nodes[tp].Addresses[ownerAddress][0]; | 12,810,726 | [
1,
4625,
348,
7953,
560,
30,
225,
145,
248,
146,
228,
145,
124,
145,
121,
1278,
225,
145,
126,
145,
118,
225,
145,
126,
145,
113,
145,
122,
145,
117,
145,
118,
145,
126,
145,
113,
225,
146,
229,
145,
127,
225,
145,
114,
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... | [
1,
3639,
309,
261,
3205,
63,
6834,
8009,
7037,
346,
7008,
63,
1734,
6362,
20,
65,
422,
374,
13,
1278,
273,
14037,
63,
6834,
8009,
7148,
63,
8443,
1887,
6362,
20,
15533,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | освоить на практике
| rus_verbs:освоить{}, | 5,484,761 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
127,
146,
228,
145,
115,
145,
127,
145,
121,
146,
229,
146,
239,
225,
145,
126,
145,
113,
225,
145,
128,
146,
227,
145,
113,
145,
123,
146,
229,
145,
121,
145,
123,
145,
118,
203,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
127,
146,
228,
145,
115,
145,
127,
145,
121,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2022-04-19
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library Strings {
bytes16 private constant alphabet = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(... | string public _baseTokenURI; | contract ChibiClubGame is ERC1155 {
string public name;
string public symbol;
uint public MAX_TOKEN = 4444;
bool public saleEnable = false;
uint256 private _totalSupply;
constructor (string memory name_, string memory symbol_, string memory uri_) {
name = name_;
symbol = symbol_;
... | 15,396,329 | [
1,
4625,
348,
7953,
560,
30,
533,
1071,
389,
1969,
1345,
3098,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1680,
495,
77,
2009,
373,
12496,
353,
4232,
39,
2499,
2539,
288,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
1071,
225,
4552,
67,
8412,
273,
1059,
6334,
24,
31,
203,
202,
6430,
1071,
272,... |
//Address: 0xA25D01d15fC0e3cDeDE1BEbEE4124394aaE0DB33
//Contract name: FollowCoin
//Balance: 0 Ether
//Verification Date: 10/27/2017
//Transacion Count: 1113
// CODE STARTS HERE
pragma solidity ^0.4.13;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
fu... | * Set allowance for other address Allows `_spender` to spend no more than `_value` tokens in your behalf @param _spender The address authorized to spend @param _value the max amount they can spend/ | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| 1,014,685 | [
1,
4625,
348,
7953,
560,
30,
380,
1000,
1699,
1359,
364,
1308,
1758,
25619,
1375,
67,
87,
1302,
264,
68,
358,
17571,
1158,
1898,
2353,
1375,
67,
1132,
68,
2430,
316,
3433,
12433,
6186,
632,
891,
389,
87,
1302,
264,
1021,
1758,
10799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
1071,
203,
3639,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
1699,
1359,
63,
3576,
18,
15330,
6362,
67,
87,
1302,
264,
65,
273,
389,
1132,
31,
2... |
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
import "../core/DaoConstants.sol";
import "../core/DaoRegistry.sol";
import "../guards/MemberGuard.sol";
import "../guards/AdapterGuard.sol";
import "./interfaces/IConfiguration.sol";
import "../adapters/interfaces/IVoting.sol";
/**
MIT License
Copyright (c) 2... | * @return The address of a given extension Id @param extensionId The ID to look up/ | function getExtensionAddress(bytes32 extensionId)
external
view
returns (address)
{
require(extensions[extensionId] != address(0), "extension not found");
return extensions[extensionId];
}
| 317,204 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
1021,
1758,
434,
279,
864,
2710,
3124,
632,
891,
2710,
548,
1021,
1599,
358,
2324,
731,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12374,
1887,
12,
3890,
1578,
2710,
548,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
2867,
13,
203,
565,
288,
203,
3639,
2583,
12,
9489,
63,
6447,
548,
65,
480,
1758,
12,
20,
3631,
315,
6447,
486,
1392,... |
pragma solidity ^0.4.11;
import "zeppelin-solidity/contracts/token/MintableToken.sol";
import "zeppelin-solidity/contracts/ownership/Ownable.sol";
/*
* Sonm Dummy Token for test
*
*/
contract SonmDummyToken is MintableToken {
string public name = "Sonm Dummy Token";
string public symbol = "SDT";
ui... | Constructor Initied ERC20 Standart token Add mint functions to readability test/ | function SonmDummyToken(address initialAccount) {
totalSupply = INITIAL_SUPPLY;
balances[initialAccount] = INITIAL_SUPPLY;
}
| 6,487,601 | [
1,
4625,
348,
7953,
560,
30,
225,
11417,
4378,
2092,
4232,
39,
3462,
934,
464,
485,
1147,
1436,
312,
474,
4186,
358,
855,
2967,
1842,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
348,
265,
81,
20094,
1345,
12,
2867,
2172,
3032,
13,
288,
203,
3639,
2078,
3088,
1283,
273,
28226,
67,
13272,
23893,
31,
203,
3639,
324,
26488,
63,
6769,
3032,
65,
273,
28226,
67,
13272,
23893,
31,
203,
565,
289,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";
import "./BattleRoyale.sol";
import "./AddressArray.sol";
import "./CustomAccessControl.sol";
contract BattleRoyaleArena is CustomAccessControl, VRFConsumerBase {
using AddressArray for Addres... | ======== Battle Royale Methods ======== */ | function transferContractOwnership(address payable newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
revokeAccessRole(payable(owner()));
grantSupportAccess(newOwner);
transferOwnership(newOwner);
}
| 1,008,633 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
894,
631,
605,
4558,
298,
534,
13372,
5349,
13063,
422,
894,
631,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
8924,
5460,
12565,
12,
2867,
8843,
429,
394,
5541,
13,
1071,
5024,
1338,
5541,
288,
203,
565,
2583,
12,
2704,
5541,
480,
1758,
12,
20,
3631,
315,
5460,
429,
30,
394,
3410,
353,
326,
3634,
1758,
8863,
203,
565,
1... |
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checke... | * @dev Mints and burns all tokens that are not redeemed after 1 year/ | function mintAndBurn() public {
require(
hasRole(SIGNER_ROLE, _msgSender()) ||
hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
"TLv1: must have admin or signer role"
);
require(
block.timestamp > _deployedAt + 365 days,
"TLv1: must ... | 27,482 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
28142,
471,
18305,
87,
777,
2430,
716,
854,
486,
283,
24903,
329,
1839,
404,
3286,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
1876,
38,
321,
1435,
1071,
288,
203,
3639,
2583,
12,
203,
5411,
28335,
12,
11260,
654,
67,
16256,
16,
389,
3576,
12021,
10756,
747,
203,
7734,
28335,
12,
5280,
67,
15468,
67,
16256,
16,
389,
3576,
12021,
1435,... |
./full_match/43114/0xaCF8272DF5d87185A585c07D787192Dd7AA69E82/sources/contracts/AVAX01.sol | ERROR: type should be string, got " https:uniswap.org/docs/v2/smart-contracts/pair/ https:github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2Pair.sol" | interface IUniswapV2Pair {
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (
uint112 reserve0,
uint112... | 4,586,014 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
318,
291,
91,
438,
18,
3341,
19,
8532,
19,
90,
22,
19,
26416,
17,
16351,
87,
19,
6017,
19,
2333,
30,
6662,
18,
832,
19,
984,
291,
91,
438,
19,
318,
291,
91,
438,
17,
90,
22,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
984,
291,
91,
438,
58,
22,
4154,
288,
203,
565,
445,
3272,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
565,
445,
1147,
20,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
565,
445,
1147,
21,
1435,
3903,
147... |
./partial_match/1/0xee69A77Ba787A894F7EEBe63c6F7a9247cC324e5/sources/XSHIB.sol | 1% from total supply maxTransactionAmountTxn
| maxTransactionAmount = 1690000000 * 1e18; | 2,679,348 | [
1,
4625,
348,
7953,
560,
30,
225,
404,
9,
628,
2078,
14467,
943,
3342,
6275,
13789,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3639,
943,
3342,
6275,
273,
2872,
29,
17877,
380,
404,
73,
2643,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity >=0.6.0;
pragma experimental ABIEncoderV2;
// This is just a simple example of a coin-like contract.
// It is not standards compatible and cannot be expected to talk to other
// coin/token contracts. If you want to create a standards-compliant
// token, see: https://github.com/ConsenSys/Tokens. Cheers!... | This is just a simple example of a coin-like contract. It is not standards compatible and cannot be expected to talk to other coin/token contracts. If you want to create a standards-compliant token, see: https:github.com/ConsenSys/Tokens. Cheers! | import "./safemath.sol";
| 12,652,390 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
2537,
279,
4143,
3454,
434,
279,
13170,
17,
5625,
6835,
18,
2597,
353,
486,
4529,
87,
7318,
471,
2780,
506,
2665,
358,
26591,
358,
1308,
13170,
19,
2316,
20092,
18,
971,
1846,
2545,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5666,
25165,
87,
1727,
351,
421,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x7079579D573aD7Ae52db05c73E04c17Ee684Af20/sources/contracts/auraToken.sol | * @dev See {IERC1155-isApprovedForAll}./ | function isApprovedForAll(address account, address operator)
public
view
virtual
override
returns (bool)
{
return _operatorApprovals[account][operator];
}
| 9,761,946 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
2499,
2539,
17,
291,
31639,
1290,
1595,
5496,
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... | [
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,
353,
31639,
1290,
1595,
12,
2867,
2236,
16,
1758,
3726,
13,
203,
565,
1071,
203,
565,
1476,
203,
565,
5024,
203,
565,
3849,
203,
565,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
389,
9497,
12053,
4524,
63,
463... |
./full_match/1/0x8E4097eCfcc60F25fF2D7EE4d472ECa4A28a8425/sources/src/Libraries/LibDiamond.sol | if function does not exist then do nothing and return | function removeFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {
if (_functionSelectors.length == 0) {
revert NoSelectorsInFace();
}
DiamondStorage storage ds = diamondStorage();
if (!LibUtil.isZeroAddress(_facetAddress)) {
revert... | 4,891,789 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
445,
1552,
486,
1005,
1508,
741,
5083,
471,
327,
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,
1206,
7503,
12,
2867,
389,
21568,
1887,
16,
1731,
24,
8526,
3778,
389,
915,
19277,
13,
2713,
288,
203,
3639,
309,
261,
67,
915,
19277,
18,
2469,
422,
374,
13,
288,
203,
5411,
15226,
2631,
19277,
382,
11824,
5621,
203,
... |
pragma solidity >=0.4.21;
// Kyama Access Control contract
import "../Kyama Access Control/AccessControl.sol";
// Kyama base contract
import "../Kyama Base/Base.sol";
//Kyama M-Bill
import "../Kyama Treasury/MBill.sol";
// OpenZeppelin's SafeMath library
import "../../node_modules/openzeppelin-solidity/contracts/math... | Decrement total M-Bill share capital | base.decrementMShareCap(debentureShareCap);
| 12,793,723 | [
1,
4625,
348,
7953,
560,
30,
225,
31073,
475,
2078,
490,
17,
38,
737,
7433,
12872,
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,
3639,
1026,
18,
323,
3702,
49,
9535,
4664,
12,
31888,
319,
594,
9535,
4664,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
/**
* @title NFT Smart Contract
* @author Stephan Fowler
* @notice ERC721 contract for stand-alone NFT collections with lazy-min... | * @title NFT Smart Contract @author Stephan Fowler @notice ERC721 contract for stand-alone NFT collections with lazy-minting @dev Enables lazy-minting by any user via precomputed signatures/ | contract NFTsurface is ERC721, EIP712 {
event IdFloorSet(uint256 idFloor);
event Receipt(uint256 value);
event Withdrawal(uint256 value);
event BaseMintPriceSet(uint256 baseMintPrice);
event PriceSet(uint256 id, uint256 price);
event Bought(uint256 id, address buyer);
address public immutab... | 7,277,388 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
2649,
423,
4464,
19656,
13456,
225,
632,
4161,
7780,
10499,
478,
543,
749,
225,
632,
20392,
4232,
39,
27,
5340,
6835,
364,
12842,
17,
12451,
423,
4464,
6980,
598,
7962,
17,
81,
474,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
423,
4464,
18266,
353,
4232,
39,
27,
5340,
16,
512,
2579,
27,
2138,
288,
203,
565,
871,
3124,
42,
5807,
694,
12,
11890,
5034,
612,
42,
5807,
1769,
203,
565,
871,
29787,
12,
11890,
5034,
460,
1769,
203,
565,
871,
3423,
94... |