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 |
|---|---|---|---|---|---|---|
./partial_match/3/0xa470C4f13aDAdFd9F87340b3a1E1C1841F88E6D6/sources/TESTV2Token.sol | lock team tokens for 8 months
| uint256 teamReleaseTime = 1627408800; | 16,621,497 | [
1,
4625,
348,
7953,
560,
30,
225,
2176,
5927,
2430,
364,
1725,
8846,
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,
3639,
2254,
5034,
5927,
7391,
950,
273,
2872,
5324,
7132,
5482,
713,
31,
4766,
5411,
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/1/0x62BF548B95e48ff169C1bAcC59B9BC99B014e273/sources/contracts/BridgeUpgradeable.sol | require(_noOfTokens <= totalLiquidity[_tokenTicker], "AMOUNT_OVERFLOW"); totalLiquidity[_tokenTicker] -= _noOfTokens; | function safeWithdrawLiquidity(
string calldata _tokenTicker,
uint256 _noOfTokens
) external onlyOwner {
TokenUpgradeable token = getToken(_tokenTicker);
token.transfer(owner(), _noOfTokens);
}
| 2,932,490 | [
1,
4625,
348,
7953,
560,
30,
225,
2583,
24899,
2135,
951,
5157,
1648,
2078,
48,
18988,
24237,
63,
67,
2316,
18008,
6487,
315,
2192,
51,
5321,
67,
12959,
17430,
8863,
2078,
48,
18988,
24237,
63,
67,
2316,
18008,
65,
3947,
389,
2135,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
1190,
9446,
48,
18988,
24237,
12,
203,
3639,
533,
745,
892,
389,
2316,
18008,
16,
203,
3639,
2254,
5034,
389,
2135,
951,
5157,
203,
565,
262,
3903,
1338,
5541,
288,
203,
203,
3639,
3155,
10784,
429,
1147,
273,
916... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarvest;
uint256 maxDebtPerHarvest;
uint256 lastReport;
uin... | only set this to true when we want to trigger our keepers to harvest for us
| bool internal forceHarvestTriggerOnce; | 236,428 | [
1,
4625,
348,
7953,
560,
30,
225,
1338,
444,
333,
358,
638,
1347,
732,
2545,
358,
3080,
3134,
3455,
414,
358,
17895,
26923,
364,
584,
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,
1426,
2713,
2944,
44,
297,
26923,
6518,
12212,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
// ============ Imports ============
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMa... | @notice Return the current maximum number of minted Founding Citizen NFTs | function inquireAboutHistory() external view returns (uint256) {
return mintedFoundingCitizensCounter;
}
| 1,764,123 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2000,
326,
783,
4207,
1300,
434,
225,
312,
474,
329,
10750,
310,
385,
305,
452,
275,
423,
4464,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
316,
1039,
24813,
5623,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
312,
474,
329,
2043,
310,
39,
305,
452,
773,
4789,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
/*
..:---========--::..
.-=======================-:.
:===============================-:
.=======================-=============-.
:===========-:. :======: .:-=... | Black with 30% rarity.
| output = 0; | 11,942,743 | [
1,
4625,
348,
7953,
560,
30,
22467,
598,
5196,
9,
436,
20498,
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,
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,
7734,
876,
273,
374,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x235b25f9f56B39eFD8293C0d2A9Ee70719E25B85/sources/src/ButtonswapPair.sol | * @dev Prevents certain operations from being executed if the price volatility induced timelock has yet to conclude./ | modifier singleSidedTimelock() {
if (block.timestamp < singleSidedTimelockDeadline) {
revert SingleSidedTimelock();
}
_;
}
| 4,108,299 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
19412,
87,
8626,
5295,
628,
3832,
7120,
309,
326,
6205,
6626,
30139,
1547,
26372,
1658,
292,
975,
711,
4671,
358,
356,
1571,
18,
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,
565,
9606,
2202,
55,
13898,
10178,
292,
975,
1435,
288,
203,
3639,
309,
261,
2629,
18,
5508,
411,
2202,
55,
13898,
10178,
292,
975,
15839,
13,
288,
203,
5411,
15226,
10326,
55,
13898,
10178,
292,
975,
5621,
203,
3639,
289,
203,
3... |
./partial_match/4/0x84E2A08Ca86f3fC7eBD81f3AD87f07a45FDC3230/sources/maci-contracts/sol/MACI.sol | Increment the batch # | currentQvtBatchNum ++;
| 8,754,550 | [
1,
4625,
348,
7953,
560,
30,
225,
17883,
326,
2581,
468,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
783,
53,
11734,
4497,
2578,
965,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/11155111/0xFCc8a75ab4e55E1E9c3d8d1A8d833CB7BF45F5B7/sources/_ganache/console.log/console.sol | * Prints to `stdout` with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution ```solidity uint256 count = 5; console.log('count: %d', count); console.log('count:', count); ``` See `util.format()` for more information./ | function log(string memory value1, string memory value2, uint256 value3, bool value4) internal view {
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", value1, value2, value3, value4));
}
| 3,821,434 | [
1,
4625,
348,
7953,
560,
30,
380,
3038,
87,
358,
1375,
10283,
68,
598,
9472,
18,
13531,
1775,
848,
506,
2275,
16,
598,
326,
1122,
1399,
487,
326,
3354,
883,
471,
777,
3312,
1399,
487,
12785,
31621,
30205,
560,
2254,
5034,
1056,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
613,
12,
1080,
3778,
460,
21,
16,
533,
3778,
460,
22,
16,
2254,
5034,
460,
23,
16,
1426,
460,
24,
13,
2713,
1476,
288,
203,
3639,
389,
4661,
1343,
6110,
12,
21457,
18,
3015,
1190,
5374,
2932,
1330,
12,
1080,
16,
108... |
pragma solidity ^0.4.0;
/**
* @title RLP
* @dev Library for RLP decoding.
* Based off of https://github.com/androlo/standard-contracts/blob/master/contracts/src/codec/RLP.sol.
*/
library RLP {
/*
* Storage
*/
uint internal constant DATA_SHORT_START = 0x80;
uint internal constant DATA_LONG_S... | * @title RLP @dev Library for RLP decoding./ | library RLP {
uint internal constant DATA_SHORT_START = 0x80;
uint internal constant DATA_LONG_START = 0xB8;
uint internal constant LIST_SHORT_START = 0xC0;
uint internal constant LIST_LONG_START = 0xF8;
uint internal constant DATA_LONG_OFFSET = 0xB7;
uint internal constant LIST_LONG_OFFSET = ... | 5,463,708 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
534,
14461,
632,
5206,
18694,
364,
534,
14461,
13547,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
534,
14461,
288,
203,
203,
565,
2254,
2713,
5381,
8730,
67,
15993,
67,
7570,
273,
374,
92,
3672,
31,
203,
565,
2254,
2713,
5381,
8730,
67,
14639,
67,
7570,
273,
374,
20029,
28,
31,
203,
565,
2254,
2713,
5381,
15130,
67,
... |
// 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 can only be incremented, decremented or reset. This can be used e.g. to... | * @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 {
pragma solidity ^0.8.0;
struct Counter {
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
f... | 14,325,939 | [
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,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
565,
1958,
9354,
288,
203,
565,
289,
203,
565,
445,
783,
12,
4789,
2502,
3895,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
3... |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than... | * @title SafeMath @dev Math operations with safety checks that revert on error/ | library SafeMath {
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
if (_a == 0) {
return 0;
}
uint256 c = _a * _b;
require(c / _a == _b);
return c;
}
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
if (_a == 0) {
return 0;
}... | 2,573 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14060,
10477,
632,
5206,
2361,
5295,
598,
24179,
4271,
716,
15226,
603,
555,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14060,
10477,
288,
203,
203,
225,
445,
14064,
12,
11890,
5034,
389,
69,
16,
2254,
5034,
389,
70,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
309,
261,
67,
69,
422,
374,
13,
288,
203,
1377,
327,
374,
31,
... |
pragma solidity ^0.4.24;
import "../openzeppelin-solidity/contracts/ownership/HasNoEther.sol";
import "../openzeppelin-solidity/contracts/ownership/HasNoTokens.sol";
import "../openzeppelin-solidity/contracts/ownership/Claimable.sol";
import "../openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./TrueVND.sol... | Swap out TrueVND's address lists | function setLists(AddressList _canReceiveMintWhiteList, AddressList _canBurnWhiteList, AddressList _blackList, AddressList _noFeesList) onlyOwner public {
trueVND.setLists(_canReceiveMintWhiteList, _canBurnWhiteList, _blackList, _noFeesList);
}
| 12,685,448 | [
1,
4625,
348,
7953,
560,
30,
225,
12738,
596,
1053,
58,
2908,
1807,
1758,
6035,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
7432,
12,
1887,
682,
389,
4169,
11323,
49,
474,
13407,
682,
16,
5267,
682,
389,
4169,
38,
321,
13407,
682,
16,
5267,
682,
389,
11223,
682,
16,
5267,
682,
389,
2135,
2954,
281,
682,
13,
1338,
5541,
1071,
288,
203,... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | грустить в одиночестве
| rus_verbs:грустить{}, | 5,481,156 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
116,
146,
227,
146,
230,
146,
228,
146,
229,
145,
121,
146,
229,
146,
239,
225,
145,
115,
225,
145,
127,
145,
117,
145,
121,
145,
126,
145,
127,
146,
234,
145,
118,
146,
228,
146,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
116,
146,
227,
146,
230,
146,
228,
146,
229,
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... |
/*
Telegram Link: https://t.me/pronitz
Website Link: https://pronitz.com
pragma solidity ^0.8.07;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) ext... | The following line avoids exploiting previous lock/unlock to regain ownership | function renounceOwnership() external virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
_previousOwner = address(0);
}
| 306,977 | [
1,
4625,
348,
7953,
560,
30,
1021,
3751,
980,
24192,
15233,
305,
310,
2416,
2176,
19,
26226,
358,
960,
530,
23178,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1654,
8386,
5460,
12565,
1435,
3903,
5024,
1338,
5541,
288,
203,
3639,
3626,
14223,
9646,
5310,
1429,
4193,
24899,
8443,
16,
1758,
12,
20,
10019,
203,
3639,
389,
8443,
273,
1758,
12,
20,
1769,
203,
3639,
389,
11515,
5541,... |
pragma experimental ABIEncoderV2;
pragma solidity 0.6.4;
// SPDX-License-Identifier: MIT
library EthAddressLib {
/**
* @dev returns the address used within the protocol to identify ETH
* @return the address assigned to ETH
*/
function ethAddress() internal pure returns (address) {
retur... | 0.5 * 1e18, 表返还0.5ETH价值的FOR1.5 * 1e18, 表返还1.5倍ETH价值的FOR | function calcRewardAmountByFactor(
uint256 gasSpend,
uint256 gasPrice,
address _for,
uint256 factor
) public view returns (uint256) {
return calcRewardAmount(gasSpend, gasPrice, _for).mul(factor).div(1e18);
}
| 1,234,736 | [
1,
4625,
348,
7953,
560,
30,
374,
18,
25,
380,
404,
73,
2643,
16,
225,
169,
99,
106,
169,
128,
247,
169,
128,
251,
20,
18,
25,
1584,
44,
165,
124,
120,
166,
227,
125,
168,
253,
231,
7473,
21,
18,
25,
380,
404,
73,
2643,
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,
565,
445,
7029,
17631,
1060,
6275,
858,
6837,
12,
203,
3639,
2254,
5034,
16189,
27223,
16,
203,
3639,
2254,
5034,
16189,
5147,
16,
203,
3639,
1758,
389,
1884,
16,
203,
3639,
2254,
5034,
5578,
203,
565,
262,
1071,
1476,
1135,
261,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract VintageShop is ERC721URIStorage, Ownable {
using SafeMath fo... | a user can be verified as a seller by the admin
| bool isSellerVerified; | 12,592,661 | [
1,
4625,
348,
7953,
560,
30,
279,
729,
848,
506,
13808,
487,
279,
29804,
635,
326,
3981,
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... | [
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,
1426,
353,
22050,
24369,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.6.0;
// ----------------------------------------------------------------------------
// 'YFIs' Staking smart contract
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// SafeMath library
/... | ------------------------------------------------------------------------ Get the number of tokens staked by a staker @param _staker the address of the staker ------------------------------------------------------------------------ | function yourStakedYFIs(address staker) external view returns(uint256 stakedYFis){
return stakers[staker].stakedTokens;
}
| 10,717,953 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
968,
326,
1300,
434,
2430,
384,
9477,
635,
279,
384,
6388,
632,
891,
389,
334,
6388,
326,
1758,
434,
326,
384,
6388,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3433,
510,
9477,
61,
1653,
87,
12,
2867,
384,
6388,
13,
3903,
1476,
1135,
12,
11890,
5034,
384,
9477,
61,
42,
291,
15329,
203,
3639,
327,
384,
581,
414,
63,
334,
6388,
8009,
334,
9477,
5157,
31,
203,
565,
289,
203,
... |
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 owner;
event OwnershipTransferred(address indexed previousOwn... | initialize cell add player to the cell - only we know for sure that we can do that integrity check - player coordinate should match integrity check - player should be present in the list in the proper place now we should trim the last elements if they are zero addresses PlayerCellTrimmed(_coord, cells[_coord].players.... | function _initCell(uint32 _coord, address _team) private {
cells[_coord] = Cell({
coin: _team,
players: new address[](0),
num: 0
}
function _removeCellPlayer(uint32 _coord, address _player) private {
require(players[_player].coord == _coord);
requ... | 12,756,329 | [
1,
4625,
348,
7953,
560,
30,
225,
4046,
2484,
527,
7291,
358,
326,
2484,
300,
1338,
732,
5055,
364,
3071,
716,
732,
848,
741,
716,
24425,
866,
300,
7291,
7799,
1410,
845,
24425,
866,
300,
7291,
1410,
506,
3430,
316,
326,
666,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
4020,
12,
11890,
1578,
389,
5732,
16,
1758,
389,
10035,
13,
3238,
288,
203,
3639,
5983,
63,
67,
5732,
65,
273,
8614,
12590,
203,
5411,
13170,
30,
389,
10035,
16,
203,
5411,
18115,
30,
394,
1758,
8526,
12,
2... |
./full_match/43113/0x6b9c8c5ac8161a932FF63308D0dF500a76c069AF/sources/src/Comptroller/IronControllerV2.sol | * @notice Validates seize and reverts on rejection. May emit logs. @param rTokenCollateral Asset which was used as collateral and will be seized @param rTokenBorrowed Asset which was borrowed by the borrower @param liquidator The address repaying the borrow and seizing the collateral @param borrower The address of the ... | function seizeVerify(
address rTokenCollateral,
address rTokenBorrowed,
address liquidator,
address borrower,
uint seizeTokens) external {
rTokenCollateral;
rTokenBorrowed;
liquidator;
borrower;
seizeTokens;
if (false) {
... | 7,113,046 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2364,
815,
695,
554,
471,
15226,
87,
603,
283,
3710,
18,
16734,
3626,
5963,
18,
632,
891,
436,
1345,
13535,
2045,
287,
10494,
1492,
1703,
1399,
487,
4508,
2045,
287,
471,
903,
506,
695,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
695,
554,
8097,
12,
203,
3639,
1758,
436,
1345,
13535,
2045,
287,
16,
203,
3639,
1758,
436,
1345,
38,
15318,
329,
16,
203,
3639,
1758,
4501,
26595,
639,
16,
203,
3639,
1758,
29759,
264,
16,
203,
3639,
2254,
695,
554,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.7;
import "./strategy-base.sol";
import "../../interfaces/beethovenx.sol";
import "../../lib/balancer-vault.sol";
abstract contract StrategyBeethovenxFarmBase is StrategyBase {
// Token addresses
address public constant beets = 0xF24Bcf4d1e507740041C9cFd2Dd... | Token addresses How much BEETS tokens to keep? Pool tokens | abstract contract StrategyBeethovenxFarmBase is StrategyBase {
address public constant beets = 0xF24Bcf4d1e507740041C9cFd2DddB29585aDCe1e;
address public constant vault = 0x20dd72Ed959b6147912C2e529F0a0C651c33c9ce;
address public constant masterchef = 0x8166994d9ebBe5829EC86Bd81258149B87faCfd3;
bytes32 ... | 1,063,965 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
6138,
9017,
9816,
9722,
1584,
55,
2430,
358,
3455,
35,
8828,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
17801,
6835,
19736,
1919,
546,
1527,
275,
16275,
4610,
2171,
353,
19736,
2171,
288,
203,
565,
1758,
1071,
5381,
506,
2413,
273,
374,
16275,
3247,
38,
8522,
24,
72,
21,
73,
3361,
4700,
16010,
9803,
39,
29,
71,
27263,
22,
40,
449,
... |
./full_match/5/0xC0dd0Bfa8Cc2bb7d91fCF55692e92913004aa760/sources/contracts/CrowdHelp.sol | iterate through all addresses of contrdibutors
| for(uint idx=0; idx<noOfContributors; idx++){ | 1,923,612 | [
1,
4625,
348,
7953,
560,
30,
225,
7401,
3059,
777,
6138,
434,
16252,
72,
495,
13595,
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,
364,
12,
11890,
2067,
33,
20,
31,
2067,
32,
2135,
951,
442,
665,
13595,
31,
2067,
27245,
95,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/10/0xC3A17DC6b70cD58f8aE49Fb969CCA5A57cf84A73/sources/project_/contracts/curve/CurveMaster.sol | @notice special function that does not calculate interest, used for deployment et al | function forceSetCurve(address token_address, address curve_address) external override onlyOwner {
_curves[token_address] = curve_address;
}
| 3,532,983 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4582,
445,
716,
1552,
486,
4604,
16513,
16,
1399,
364,
6314,
3393,
524,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2944,
694,
9423,
12,
2867,
1147,
67,
2867,
16,
1758,
8882,
67,
2867,
13,
3903,
3849,
1338,
5541,
288,
203,
565,
389,
1397,
3324,
63,
2316,
67,
2867,
65,
273,
8882,
67,
2867,
31,
203,
225,
289,
203,
2,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "hardhat/console.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable... | the maximum amount that the vault is willing to lend to the vehicle
| uint256 lendCap; | 276,820 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
4207,
3844,
716,
326,
9229,
353,
903,
310,
358,
328,
409,
358,
326,
24815,
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... | [
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,
3639,
2254,
5034,
328,
409,
4664,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1313161554/0xa03f8c6A2fa7661Bc4E3d188919F8719D36e1315/sources/AuroraClusterAdapterV2.sol | Calculate neccessary amount of ETH | function sendExtraETH() external payable override {
Request storage request = userRequest[_msgSender()];
require(
request.status == requestStatus.PENDING_ASSEMBLE || request.status == requestStatus.ASSEMBLE_IN_PROCESS,
"No pending assemble for user"
);
addre... | 16,914,273 | [
1,
4625,
348,
7953,
560,
30,
225,
9029,
290,
557,
614,
814,
3844,
434,
512,
2455,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1366,
7800,
1584,
44,
1435,
3903,
8843,
429,
3849,
288,
203,
3639,
1567,
2502,
590,
273,
729,
691,
63,
67,
3576,
12021,
1435,
15533,
203,
203,
3639,
2583,
12,
203,
5411,
590,
18,
2327,
422,
590,
1482,
18,
25691,
67,
3... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.4;
import "@openzeppelin/contracts-upgradeable/utils/EnumerableSetUpgradeable.sol";
/**
* @notice Perpetual state:
* - INVALID: Uninitialized or not non-existent perpetual;
* - INITIALIZING: Only when LiquidityPoolStorage.isRunning ==... | * @notice Perpetual state: - INVALID: Uninitialized or not non-existent perpetual; - INITIALIZING: Only when LiquidityPoolStorage.isRunning == false. Traders cannot perform operations; - NORMAL: Full functional state. Traders is able to perform all operations; - EMERGENCY... | enum PerpetualState {
INVALID,
INITIALIZING,
NORMAL,
EMERGENCY,
CLEARED
pragma solidity 0.7.4;
}
| 13,087,553 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
225,
5722,
6951,
1462,
919,
30,
1850,
300,
10071,
30,
1377,
1351,
13227,
578,
486,
1661,
17,
19041,
1534,
6951,
1462,
31,
1850,
300,
12584,
15154,
1360,
30,
5098,
1347,
511,
18988,
24237,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
7924,
5722,
6951,
1462,
1119,
288,
203,
565,
10071,
16,
203,
565,
12584,
15154,
1360,
16,
203,
565,
16362,
16,
203,
565,
7141,
654,
16652,
16068,
16,
203,
565,
385,
900,
37,
5879,
203,
683,
9454,
18035,
560,
374,
18,
27,
18,
24... |
pragma solidity ^0.5.0;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimiz... | In case tokens already exist, decrease held balance
| if(executableHold.sender != address(0)) { | 1,722,069 | [
1,
4625,
348,
7953,
560,
30,
225,
657,
648,
2430,
1818,
1005,
16,
20467,
15770,
11013,
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,
... | [
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,
309,
12,
17751,
20586,
18,
15330,
480,
1758,
12,
20,
3719,
288,
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... |
./partial_match/4/0x33D20eBf540383DEb8Cf4A14bd5226baBE695ae5/sources/RewardEscrow.sol | * @notice Add a new vesting entry at a given time and quantity to an account's schedule. @dev A call to this should accompany a previous successful call to dtrade.transfer(rewardEscrow, amount), to ensure that when the funds are withdrawn, there is enough balance. Note; although this function could technically be used ... | function appendVestingEntry(address account, uint256 quantity)
external
onlyFeePool
{
_appendVestingEntry(account, quantity);
}
| 8,594,870 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1436,
279,
394,
331,
10100,
1241,
622,
279,
864,
813,
471,
10457,
358,
392,
2236,
1807,
4788,
18,
632,
5206,
432,
745,
358,
333,
1410,
1721,
16840,
279,
2416,
6873,
745,
358,
302,
20077,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
714,
58,
10100,
1622,
12,
2867,
2236,
16,
2254,
5034,
10457,
13,
203,
3639,
3903,
203,
3639,
1338,
14667,
2864,
203,
565,
288,
203,
3639,
389,
6923,
58,
10100,
1622,
12,
4631,
16,
10457,
1769,
203,
565,
289,
203,
203,
... |
// File: contracts/interfaces/Aragon.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
// https://github.com/aragon/minime/blob/master/contracts/MiniMeToken.sol
interface IMiniMeToken {
function balanceOfAt(address, uint) external view returns (uint);
}
// https://github.com/aragon/aragon-apps/blob/mas... | for debugging purpose | function parseVote(uint256 _voteId) public view returns (bool, uint64, uint64, uint256, uint256) {
(/*bool open*/,
bool executed,
uint64 startDate,
uint64 snapshotBlock,
uint256 yea,
uint256 nay,
return (executed, startDate, snapshotBlock, yea, nay);
| 498,995 | [
1,
4625,
348,
7953,
560,
30,
225,
364,
10450,
13115,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1109,
19338,
12,
11890,
5034,
389,
25911,
548,
13,
1071,
1476,
1135,
261,
6430,
16,
2254,
1105,
16,
2254,
1105,
16,
2254,
5034,
16,
2254,
5034,
13,
288,
203,
3639,
261,
20308,
6430,
1696,
5549,
16,
203,
540,
1426,
7120,... |
pragma solidity ^0.4.24;
//Swap Deployer functions - descriptions can be found in Deployer.sol
interface Deployer_Interface {
function newContract(address _party, address user_contract, uint _start_date) external payable returns (address);
}
//Slightly modified SafeMath library - includes a min function
library Saf... | *@dev Gets the index by specifying the swap and owner addresses@param _owner specifed address@param _swap specified swap address@return the index associated with the _owner address in a particular swap/ | function getIndexByAddress(TokenStorage storage self, address _owner, address _swap) public constant returns (uint) {
return self.swap_balances_index[_swap][_owner];
}
| 2,080,638 | [
1,
4625,
348,
7953,
560,
30,
380,
36,
5206,
11881,
326,
770,
635,
13664,
326,
7720,
471,
3410,
6138,
36,
891,
389,
8443,
857,
430,
329,
1758,
36,
891,
389,
22270,
225,
1269,
7720,
1758,
36,
2463,
326,
770,
3627,
598,
326,
389,
844... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8088,
858,
1887,
12,
1345,
3245,
2502,
365,
16,
1758,
389,
8443,
16,
1758,
389,
22270,
13,
1071,
5381,
1135,
261,
11890,
13,
288,
203,
3639,
327,
365,
18,
22270,
67,
70,
26488,
67,
1615,
63,
67,
22270,
6362,
67,
8443,... |
//pragma solidity >=0.4.21 <0.6.0;
pragma experimental ABIEncoderV2;
import "./Registry.sol";
contract Market is Registry{
////////////////////////////////
// AUCTION CONFIG & FUNCTIONS //
////////////////////////////////
uint public biddingEnd = 0;
struct OrderStruct {
u... | settlement can only be started by the Administrator authority The settlement starts only after the Trading Phase is completed (state 1: which is the Settlement Phase) | function settlement (uint256 period) public /*onlyAuthorities*/ returns (bool){
updateState(1);
emit Settlement(true);
return true;
}
| 5,445,725 | [
1,
4625,
348,
7953,
560,
30,
225,
26319,
806,
848,
1338,
506,
5746,
635,
326,
7807,
14207,
11675,
1021,
26319,
806,
2542,
1338,
1839,
326,
2197,
7459,
19459,
353,
5951,
261,
2019,
404,
30,
1492,
353,
326,
1000,
88,
806,
19459,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
26319,
806,
261,
11890,
5034,
3879,
13,
1071,
1748,
3700,
3594,
1961,
5549,
1135,
261,
6430,
15329,
203,
377,
1089,
1119,
12,
21,
1769,
203,
377,
3626,
1000,
88,
806,
12,
3767,
1769,
203,
377,
327,
638,
31,
203,
289,
... |
/*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | / @title Transferable Multisignature Contract @author Daniel Wang - <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e387828d8a868fa38f8c8c93918a8d84cd8c9184">[email protected]</a>>. Note that address recovered from signatures must be strictly increasing. Note that address recovered from s... | contract TransferableMultsig {
function execute(
uint8[] sigV,
bytes32[] sigR,
bytes32[] sigS,
address destination,
uint value,
bytes data
)
external;
function transferOwnership(
uint8[] sigV,
bytes32[] sigR,
... | 10,529,811 | [
1,
4625,
348,
7953,
560,
30,
342,
632,
2649,
12279,
429,
7778,
291,
724,
1231,
13456,
632,
4161,
463,
28662,
292,
678,
539,
300,
2296,
69,
3897,
1546,
19,
20902,
17,
19062,
19,
80,
19,
3652,
17,
685,
9694,
6,
667,
1546,
972,
8522,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12279,
429,
5049,
7340,
288,
203,
565,
445,
1836,
12,
203,
3639,
2254,
28,
8526,
282,
3553,
58,
16,
203,
3639,
1731,
1578,
8526,
3553,
54,
16,
203,
3639,
1731,
1578,
8526,
3553,
55,
16,
203,
3639,
1758,
282,
2929,
16,
20... |
pragma solidity ^0.5.5;
/**
* @dev Interface of the TRC165 standard.
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({TRC165Checker}).
*
* For an implementation, see {TRC165}.
*/
interface ITRC165 {
/**
* @dev Returns true if this contract implements ... | * @dev Gets current Tpunk Price/ | function getNFTPrice() public view returns (uint256) {
require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended");
return _price;
}
| 5,786,923 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
783,
28738,
1683,
20137,
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,
... | [
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,
11069,
4464,
5147,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
4963,
3088,
1283,
1435,
411,
4552,
67,
50,
4464,
67,
13272,
23893,
16,
315,
30746,
711,
1818,
16926,
8863,
203,
3639,
327,
389,
... |
./partial_match/42/0xccA027d0909a16C15756C4B5CA56D7b2642ba69F/sources/TippingJar.sol | * @title Tipping Jar @dev A contract that stores account balances. The owner can reassign balances./ | contract TippingJar is Owned {
using SafeMath for uint;
mapping (address => mapping (address => uint)) public balances;
event MoveTokens(address _token, address indexed _from, address indexed _to, uint amount);
function moveTokens(address tokenAddress, address origin, addres... | 3,490,469 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
399,
6771,
15644,
632,
5206,
432,
6835,
716,
9064,
2236,
324,
26488,
18,
225,
1021,
3410,
848,
283,
6145,
324,
26488,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
399,
6771,
10813,
353,
14223,
11748,
288,
203,
377,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
377,
203,
565,
2874,
261,
2867,
516,
2874,
261,
2867,
516,
2254,
3719,
1071,
324,
26488,
31,
21281,
1377,
203,
1377,
203,
... |
pragma solidity ^0.5.0;
import "./ERCStaking.sol";
import "./Checkpointing.sol";
import "./res/Autopetrified.sol";
import "./res/IsContract.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "openzeppelin-solidity/contracts/tok... | Initialize claim values to zero, disabling claim prior to initial funding Default min stake amount is 100 AUD tokens Default max stake amount is 100 million AUD tokens | function initialize(address _stakingToken, address _treasuryAddress) external onlyInit {
require(isContract(_stakingToken), ERROR_TOKEN_NOT_CONTRACT);
initialized();
stakingToken = ERC20(_stakingToken);
treasuryAddress = _treasuryAddress;
currentClaimBlock = 0;
curren... | 1,067,046 | [
1,
4625,
348,
7953,
560,
30,
225,
9190,
7516,
924,
358,
3634,
16,
1015,
17912,
7516,
6432,
358,
2172,
22058,
2989,
1131,
384,
911,
3844,
353,
2130,
432,
12587,
2430,
2989,
943,
384,
911,
3844,
353,
2130,
312,
737,
285,
432,
12587,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
2867,
389,
334,
6159,
1345,
16,
1758,
389,
27427,
345,
22498,
1887,
13,
3903,
1338,
2570,
288,
203,
3639,
2583,
12,
291,
8924,
24899,
334,
6159,
1345,
3631,
5475,
67,
8412,
67,
4400,
67,
6067,
2849,
1268,
1769... |
./full_match/1/0xd315a9C38eC871068FEC378E4Ce78AF528C76293/sources/@balancer-labs/v2-solidity-utils/contracts/helpers/ExtraCalldataEOASignaturesValidator.sol | * @dev Returns the EIP712 type hash for the current entry point function, which can be identified by its function selector (available as `msg.sig`). The type hash must conform to the following format: <name>(bytes calldata, address sender, uint256 nonce, uint256 deadline) If 0x00, all signatures will be considered inv... | function _entrypointTypeHash() internal view virtual returns (bytes32);
function _deadline() internal pure returns (uint256) {
return uint256(_decodeExtraCalldataWord(0));
}
| 8,330,311 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
512,
2579,
27,
2138,
618,
1651,
364,
326,
783,
1241,
1634,
445,
16,
1492,
848,
506,
9283,
635,
2097,
445,
3451,
261,
5699,
487,
1375,
3576,
18,
7340,
68,
2934,
1021,
618,
165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4099,
1153,
559,
2310,
1435,
2713,
1476,
5024,
1135,
261,
3890,
1578,
1769,
203,
203,
565,
445,
389,
22097,
1369,
1435,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2254,
5034,
24899,
3922,
7800,
147... |
./full_match/5/0xCae5e615455196bF3de826FE8f7fBA8efAf19574/sources/contracts/Relayer.sol | @notice Recover tokens sent by mistake to this contract @dev Ether recovery is not implemented as contract is not payable @param withdrawToken token to recover @param target destination for the funds | function recoverFunds(IERC20 withdrawToken, address target)
public
onlyOwner
{
withdrawToken.transfer(target, withdrawToken.balanceOf(address(this)));
}
| 1,860,439 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
868,
3165,
2430,
3271,
635,
27228,
911,
358,
333,
6835,
632,
5206,
512,
1136,
11044,
353,
486,
8249,
487,
6835,
353,
486,
8843,
429,
632,
891,
598,
9446,
1345,
1147,
358,
5910,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5910,
42,
19156,
12,
45,
654,
39,
3462,
598,
9446,
1345,
16,
1758,
1018,
13,
203,
3639,
1071,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
598,
9446,
1345,
18,
13866,
12,
3299,
16,
598,
9446,
1345,
18,
12296,
951,... |
pragma solidity ^0.4.18;
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public;
}
contract ERC20 {
string public name;
string public symbol;
uint8 public decimals = 2;
uint256 public totalSupply;
mapping (address => u... | Initializes contract with initial supply tokens to the creator of the contract */ | function TestRushCoin() ERC20(5000000000, "Test Rush Coin", "TRUSH") public {}
| 2,319,147 | [
1,
4625,
348,
7953,
560,
30,
225,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
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,
... | [
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,
445,
7766,
54,
1218,
27055,
1435,
4232,
39,
3462,
12,
25,
2787,
11706,
16,
315,
4709,
534,
1218,
28932,
3113,
315,
4349,
57,
2664,
7923,
1071,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.5.11;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure r... | * @dev Deposit asset into Compound @param _asset Address of asset to deposit @param _amount Amount of asset to deposit @return amountDeposited Amount of asset that was deposited/ | function deposit(address _asset, uint256 _amount)
external
onlyVault
returns (uint256 amountDeposited)
{
require(_amount > 0, "Must deposit something");
ICERC20 cToken = _getCTokenFor(_asset);
require(cToken.mint(_amount) == 0, "cToken mint failed");
amo... | 2,121,729 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4019,
538,
305,
3310,
1368,
21327,
632,
891,
389,
9406,
5267,
434,
3310,
358,
443,
1724,
632,
891,
389,
8949,
16811,
434,
3310,
358,
443,
1724,
632,
2463,
3844,
758,
1724,
329,
16811,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
12,
2867,
389,
9406,
16,
2254,
5034,
389,
8949,
13,
203,
3639,
3903,
203,
3639,
1338,
12003,
203,
3639,
1135,
261,
11890,
5034,
3844,
758,
1724,
329,
13,
203,
565,
288,
203,
3639,
2583,
24899,
8949,
405,
374,... |
./full_match/5/0x88E6A8bA858c86D4c395ed44797fA6Abf3a99fa7/sources/src/TwoSlots.sol | @notice Calculates the total refund amount and burns the refunded options. @param _contestID ID of contest to refund. @param _quantityOfUp Quantity of Up options to refund. @param _quantityOfDown Quantity of Down options to refund. | function _askRefund(uint256 _contestID, uint256 _quantityOfUp, uint256 _quantityOfDown)
internal
isUserNeedRefund(_contestID, _quantityOfUp, _quantityOfDown)
{
uint256 amountToRefund = (_quantityOfUp + _quantityOfDown) * OPTION_PRICE;
if (_quantityOfUp > 0) {
ITwoSlot... | 11,622,875 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
26128,
326,
2078,
16255,
3844,
471,
18305,
87,
326,
1278,
12254,
702,
18,
632,
891,
389,
1213,
395,
734,
1599,
434,
466,
395,
358,
16255,
18,
632,
891,
389,
16172,
951,
1211,
18189,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
389,
835,
21537,
12,
11890,
5034,
389,
1213,
395,
734,
16,
2254,
5034,
389,
16172,
951,
1211,
16,
2254,
5034,
389,
16172,
951,
4164,
13,
203,
3639,
2713,
203,
3639,
29302,
14112,
21537,
24899,
1213,
395,
734,
16,
389,
1... |
./full_match/5/0x35075614448919d038e37A43BC9F884b4f30f31c/sources/browser/port.sol | if within 24 hours, throw.
| require (now >= holdUntil); | 1,855,981 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
3470,
4248,
7507,
16,
604,
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,
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,
261,
3338,
1545,
6887,
9716,
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,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.0;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./../IAuditToken.sol";
import "./MemberHelpers.sol";
/**
* @title Nod... | ** @dev called by the Validations contract to increase pool operator stake reward amount @param validator - validator for whom values are increased/ | function increaseStakeRewards(address validator) public isController("increaseStakeRewards") {
uint256 amount = memberHelpers.returnDepositAmount(validator).div(stakeRatio);
nodeOpStruct[validator].stakeAmount = nodeOpStruct[validator].stakeAmount.add(amount);
emit LogStakeRewardsIncreased(v... | 1,752,861 | [
1,
4625,
348,
7953,
560,
30,
2826,
632,
5206,
2566,
635,
326,
2364,
1012,
6835,
358,
10929,
2845,
3726,
384,
911,
19890,
3844,
632,
891,
4213,
300,
4213,
364,
600,
362,
924,
854,
31383,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10929,
510,
911,
17631,
14727,
12,
2867,
4213,
13,
1071,
353,
2933,
2932,
267,
11908,
510,
911,
17631,
14727,
7923,
288,
203,
3639,
2254,
5034,
3844,
273,
3140,
13375,
18,
2463,
758,
1724,
6275,
12,
7357,
2934,
2892,
12,
... |
pragma solidity >=0.5.0 <0.6.0;
/* MIT Licence:
Copyright (c) 2018-2020 ECDF, TU Berlin https://www.bbblockchain.de
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includin... | Search for use case | function getUsecase(uint _type) public view returns (address) {
for(uint i = 0; i < usecasesSize; i++) {
if(usecases[i].getType() == _type) {
return address(usecases[i]);
}
}
return address(0);
}
| 12,875,329 | [
1,
4625,
348,
7953,
560,
30,
225,
5167,
364,
999,
648,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
23037,
3321,
448,
12,
11890,
389,
723,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
364,
12,
11890,
277,
273,
374,
31,
277,
411,
999,
22186,
1225,
31,
277,
27245,
288,
203,
5411,
309,
12,
1202,
22186,
63,
77,
... |
// to test issue with nodes breaking with large clients over WS
// fixed in web3 with fragmentationThreshold: 8192
pragma solidity ^0.4.17;
contract BigFreakingContract {
event Transfer(address indexed from, address indexed to, uint value);
event Approval( address indexed owner, address indexed spender, uint valu... | TODO: should increase instead | function approve_542(address spender, uint value) public returns (bool ok) {
_approvals[msg.sender][spender] = value;
emit Approval( msg.sender, spender, value );
return true;
}
| 6,454,255 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
1410,
10929,
3560,
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,
225,
445,
6617,
537,
67,
6564,
22,
12,
2867,
17571,
264,
16,
2254,
460,
13,
1071,
1135,
261,
6430,
1529,
13,
288,
203,
565,
389,
12908,
4524,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
65,
273,
460,
31,
203,
565,
3626,
1716,
6... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;
// Sources flattened with hardhat v2.8.3 https://hardhat.org
// File contracts/Math/Math.sol
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
... | Release locked stakes in case of emergency
| bool public stakesUnlocked; | 193,387 | [
1,
4625,
348,
7953,
560,
30,
225,
10819,
8586,
384,
3223,
316,
648,
434,
801,
24530,
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,
565,
1426,
1071,
384,
3223,
7087,
329,
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.4.18;
/**
* @title Owned
* @dev The Owned contract has an owner address, and provides basic authorization control
*/
contract Owned {
address public owner;
/*Set owner of the contract*/
function Owned() public {
owner = msg.sender;
}
/*only owner ca... | @dev send the rest of the tokens after the crowdsale end and send to contributors address | function finaliseICO() public onlyOwner whenNotPaused {
require(tokenSaleActive == true);
uint256 tokensLeft = icoTotalAmount.sub(totalSoldToken);
tokenSaleActive = false;
require(tokensLeft > 0);
balanceOf[contributorsAddress] = balanceOf[contributorsAddress].add(tok... | 1,770,874 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1366,
326,
3127,
434,
326,
2430,
1839,
326,
276,
492,
2377,
5349,
679,
471,
1366,
358,
13608,
13595,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
727,
784,
2871,
51,
1435,
1071,
1338,
5541,
1347,
1248,
28590,
288,
203,
3639,
2583,
12,
2316,
30746,
3896,
422,
638,
1769,
540,
203,
3639,
2254,
5034,
2430,
3910,
273,
277,
2894,
5269,
6275,
18,
1717,
12,
4963,
55,
167... |
./partial_match/42/0x24a19eE5A5C8757ACDEBe542a9436D9C796d1c9E/sources/_0xBitcoinToken.sol | a little numbera big number is easier ; just find a solution that is smalleruint public _MAXIMUM_TARGET = 2**224; bitcoin uses 224 ------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------ | contract _0xBitcoinToken is ERC20Interface, Owned {
using SafeMath for uint;
using ExtendedMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public latestDifficultyPeriodStarted;
uint public _BLOCKS_PER_READJUST... | 8,887,829 | [
1,
4625,
348,
7953,
560,
30,
279,
12720,
1300,
69,
5446,
1300,
353,
15857,
274,
2537,
1104,
279,
6959,
716,
353,
10648,
11890,
1071,
225,
389,
6694,
18605,
67,
16374,
273,
576,
636,
23622,
31,
225,
25851,
4692,
576,
3247,
8879,
17082,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
389,
20,
92,
5775,
12645,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
1450,
14094,
10477,
364,
2254,
31,
203,
203,
203,
565,
533,
1071,
3273,
31,
203,... |
pragma solidity ^0.4.18;
contract DelegateERC20 {
function delegateTotalSupply() public view returns (uint256);
function delegateBalanceOf(address who) public view returns (uint256);
function delegateTransfer(address to, uint256 value, address origSender) public returns (bool);
function delegateAllowance(addre... | * @title Cash311 @dev The main contract of the project./* @title Cash311/ Connecting SafeMath for safe calculations. Подключает библиотеку безопасных вычислений к контракту. A variable for address of the owner; Переменная для хранения адреса владельца контракта; A variable for address of the ERC20 token; Переменная для... | contract Cash311 {
using NewSafeMath for uint;
address owner;
TrueUSD public token = TrueUSD(0x8dd5fbce2f6a956c3022ba3663759011dd51e73e);
uint private decimals = 10**16;
mapping (address => uint) deposit;
uint deposits;
mapping (address => uint) withdrawn... | 10,588,701 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
385,
961,
23,
2499,
632,
5206,
1021,
2774,
6835,
434,
326,
1984,
18,
20308,
632,
2649,
385,
961,
23,
2499,
19,
8289,
310,
14060,
10477,
364,
4183,
20882,
18,
225,
145,
258,
145,
127,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
385,
961,
23,
2499,
288,
203,
3639,
1450,
1166,
9890,
10477,
364,
2254,
31,
203,
203,
3639,
1758,
3410,
31,
203,
203,
3639,
1053,
3378,
40,
1071,
1147,
273,
1053,
3378,
40,
12,
20,
92,
28,
449,
25,
19192,
311,
22,
... |
./full_match/8453/0xb8b0e1EBD2266A0dFf7Da4EbEE8DAaaa6810508f/sources/contracts/Dividends.sol | * @dev Checks if token exists/ | modifier validateDistributedToken(address token) {
require(
_distributedTokens.contains(token),
"validateDistributedTokens: token does not exists"
);
_;
}
| 11,546,786 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13074,
309,
1147,
1704,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1954,
1669,
11050,
1345,
12,
2867,
1147,
13,
288,
203,
3639,
2583,
12,
203,
5411,
389,
2251,
11050,
5157,
18,
12298,
12,
2316,
3631,
203,
5411,
315,
5662,
1669,
11050,
5157,
30,
1147,
1552,
486,
1704,
6,
203,
3639,
112... |
./partial_match/1/0x34A542aCD8A717B5933228Ae3C554B1328F36e14/sources/ERC20ByMetadrop.sol | The LZ payload is invalid
| error InvalidPayload(); | 2,631,381 | [
1,
4625,
348,
7953,
560,
30,
4766,
1021,
511,
62,
2385,
353,
2057,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
555,
1962,
6110,
5621,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
... | Time when the machine stopped
| uint private stopTime; | 7,030,814 | [
1,
4625,
348,
7953,
560,
30,
2647,
1347,
326,
5228,
9627,
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,
565,
2254,
3238,
2132,
950,
31,
4202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
... | Nanocore Vault distributes fees equally amongst staked pools Have fun reading it. Hopefully it's bug-free. God bless. Info of each user. | contract NanocoreVault is OwnableUpgradeSafe {
using SafeMath for uint256;
using SafeERC20 for IERC20;
struct UserInfo {
}
struct PoolInfo {
mapping(address => mapping(address => uint256)) allowance;
}
uint256 public contractStartBlock;
uint256 public epochCalculationStar... | 7,988,054 | [
1,
4625,
348,
7953,
560,
30,
225,
23294,
504,
479,
17329,
1015,
1141,
1656,
281,
1298,
1230,
17200,
334,
384,
9477,
16000,
21940,
9831,
6453,
518,
18,
670,
1306,
4095,
518,
1807,
7934,
17,
9156,
18,
611,
369,
324,
2656,
18,
3807,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23294,
504,
479,
12003,
353,
14223,
6914,
10784,
9890,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
1958,
25003,
288,
203,
203,
5... |
pragma solidity >=0.5.4 <0.6.0;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; }
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies ... | * @dev Constructor function @param _settingTAOId The TAO ID that controls the setting @param _aoSettingAddress The address of AOSetting @param _nameFactoryAddress The address of NameFactory @param _nameTAOPositionAddress The address of NameTAOPosition/ | constructor(address _settingTAOId, address _aoSettingAddress, address _nameFactoryAddress, address _nameTAOPositionAddress) public {
setSettingTAOId(_settingTAOId);
setAOSettingAddress(_aoSettingAddress);
setNameFactoryAddress(_nameFactoryAddress);
setNameTAOPositionAddress(_nameTAOPositionAddress);
}
| 12,664,026 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11417,
445,
632,
891,
389,
8920,
9833,
51,
548,
1021,
399,
20463,
1599,
716,
11022,
326,
3637,
632,
891,
389,
6033,
5568,
1887,
1021,
1758,
434,
432,
51,
5568,
632,
891,
389,
529,
1733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
12316,
12,
2867,
389,
8920,
9833,
51,
548,
16,
1758,
389,
6033,
5568,
1887,
16,
1758,
389,
529,
1733,
1887,
16,
1758,
389,
529,
9833,
51,
2555,
1887,
13,
1071,
288,
203,
202,
202,
542,
5568,
9833,
51,
548,
24899,
8920,
983... |
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers ov... | Address which receives fee
| address private feeAddress; | 1,692,260 | [
1,
4625,
348,
7953,
560,
30,
5267,
1492,
17024,
14036,
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,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1758,
3238,
14036,
1887,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x480E6993dA410D5026D7bD3652F53D99845B6fc3/sources/DotoliStaking.sol | This is the reward token per second Which will be multiplied by the tokens the user staked divided by the total This ensures a steady reward rate of the platform So the more users stake, the less for everyone who is staking. | contract DotoliStaking is ReentrancyGuard {
uint256 public constant maxReward = 10000000 * 1e18;
uint256 public totalClaimedReward = 0;
IERC20 public s_rewardsToken;
IERC20 public s_stakingToken;
uint256 public constant REWARD_RATE = 1000;
uint256 public s_lastUpdateTime;
uint256 public s... | 4,149,942 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
326,
19890,
1147,
1534,
2205,
21918,
903,
506,
27789,
635,
326,
2430,
326,
729,
384,
9477,
26057,
635,
326,
2078,
1220,
11932,
279,
384,
684,
93,
19890,
4993,
434,
326,
4072,
6155,
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,
0,
0,
0,
0,
0,
0... | [
1,
16351,
17502,
355,
77,
510,
6159,
353,
868,
8230,
12514,
16709,
288,
203,
203,
565,
2254,
5034,
1071,
5381,
943,
17631,
1060,
273,
2130,
11706,
380,
404,
73,
2643,
31,
203,
565,
2254,
5034,
1071,
2078,
9762,
329,
17631,
1060,
273,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 < 0.9.0;
interface IMinteable {
function mint(address _winner) external;
}
/// @title Representacion de un torneo usada por los NFTS
contract Tournament {
/// @notice Manager es el cargado de administrar el torneo, agregar equipo y determinar el ganador
... | * @dev Finaliza el torneo, y mintea el premiop/ | function endTournament(address _winner) external {
require(manager == msg.sender, 'Only manager can end tournament');
require(isOpen, 'Tournament is not started');
require(isEnd == false, 'Tournament has ended');
require(teamId[_winner] > 0, 'Team is not registered');
winner = _winner;
isEnd ... | 1,040,215 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16269,
452,
69,
415,
8934,
82,
4361,
16,
677,
312,
474,
24852,
415,
675,
9197,
556,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
679,
774,
30751,
12,
2867,
389,
91,
7872,
13,
3903,
288,
203,
565,
2583,
12,
4181,
422,
1234,
18,
15330,
16,
296,
3386,
3301,
848,
679,
358,
30751,
8284,
203,
565,
2583,
12,
291,
3678,
16,
296,
774,
30751,
353,
486,
... |
pragma solidity 0.7.4;
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
*... | Look for revert reason and bubble it up if present The easiest way to bubble the revert reason is using memory via assembly solhint-disable-next-line no-inline-assembly | function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns (bytes memory) {
if (success) {
return returndata;
if (returndata.length > 0) {
assembly {
let returndata_size :... | 7,579,284 | [
1,
4625,
348,
7953,
560,
30,
225,
10176,
364,
15226,
3971,
471,
21577,
518,
731,
309,
3430,
1021,
7264,
77,
395,
4031,
358,
21577,
326,
15226,
3971,
353,
1450,
3778,
3970,
19931,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
8705,
1477,
1253,
12,
6430,
2216,
16,
1731,
3778,
327,
892,
16,
533,
3778,
9324,
13,
3238,
16618,
1135,
261,
3890,
3778,
13,
288,
203,
203,
203,
3639,
309,
261,
4768,
13,
288,
203,
203,
203,
5411,
327,
327,
892,
... |
./partial_match/3/0xA46557cC573794bAFB7Ea19C275A26a80185995D/sources/TestToken.sol | * @title Basic token @dev Basic version of StandardToken, with no allowances./ | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) public balances;
uint256 totalSupply_;
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != a... | 5,221,528 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
7651,
1147,
632,
5206,
7651,
1177,
434,
8263,
1345,
16,
598,
1158,
1699,
6872,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7651,
1345,
353,
4232,
39,
3462,
8252,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
324,
26488,
31,
203,
203,
225,
2254,
5034,
2078,
3088,
1283,
67,
31,
... |
./full_match/97/0x20610C85207106d89e43335Cf8DDd7C58D6a3b4c/sources/contracts/StrategyRouterLib.sol | used in rebalance function, UNIFORM_DECIMALS, so 1e17 == 0.1 | library StrategyRouterLib {
error CycleNotClosed();
uint8 private constant UNIFORM_DECIMALS = 18;
uint256 private constant PRECISION = 1e18;
uint256 private constant REBALANCE_SWAP_THRESHOLD = 1e17;
function getStrategiesValue(IUsdOracle oracle, StrategyRouter.StrategyInfo[] storage strategies)
... | 3,273,968 | [
1,
4625,
348,
7953,
560,
30,
225,
1399,
316,
283,
12296,
445,
16,
19462,
4983,
67,
23816,
55,
16,
1427,
404,
73,
4033,
422,
374,
18,
21,
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,
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,
12083,
19736,
8259,
5664,
288,
203,
565,
555,
385,
3409,
1248,
7395,
5621,
203,
203,
565,
2254,
28,
3238,
5381,
19462,
4983,
67,
23816,
55,
273,
6549,
31,
203,
565,
2254,
5034,
3238,
5381,
7071,
26913,
273,
404,
73,
2643,
31,
203... |
./partial_match/42161/0x6852024A3051DE1513129CeD4DdB74B3454bef30/sources/contracts/CamelotPair.sol | reserve0 * reserve1, as of immediately after the most recent liquidity event
| uint public kLast; | 3,493,200 | [
1,
4625,
348,
7953,
560,
30,
225,
20501,
20,
380,
20501,
21,
16,
487,
434,
7636,
1839,
326,
4486,
8399,
4501,
372,
24237,
871,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
1071,
417,
3024,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.24;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
... | * @title Crowdsale @dev Crowdsale is a base contract for managing a token crowdsale, allowing investors to purchase tokens with ether. This contract implements such functionality in its most fundamental form and can be extended to provide additional functionality and/or custom behavior. The external interface represent... | contract Crowdsale {
using SafeMath for uint256;
ERC20 public token;
address public wallet;
uint256 public rate;
uint256 public weiRaised;
event TokenPurchase(address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount);
function Crowdsale(uint256 _rate, address _wallet, ERC20 _t... | 2,065,526 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
385,
492,
2377,
5349,
632,
5206,
385,
492,
2377,
5349,
353,
279,
1026,
6835,
364,
30632,
279,
1147,
276,
492,
2377,
5349,
16,
15632,
2198,
395,
1383,
358,
23701,
2430,
598,
225,
2437,
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,
16351,
385,
492,
2377,
5349,
288,
203,
202,
9940,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
202,
654,
39,
3462,
1071,
1147,
31,
203,
203,
202,
2867,
1071,
9230,
31,
203,
203,
202,
11890,
5034,
1071,
4993,
31,
203,
203,
202,
... |
./partial_match/42220/0xCdE5039e3AcB3483aEebEBd59Cf6936056c455D4/sources/Users/pahor/repo/4/celo-monorepo/packages/protocol/contracts/governance/Election.sol | * @notice Updates the minimum and maximum number of validators that can be elected. @param min The minimum number of validators that can be elected. @param max The maximum number of validators that can be elected. @return True upon success./ | function setElectableValidators(uint256 min, uint256 max) public onlyOwner returns (bool) {
require(0 < min, "Minimum electable validators cannot be zero");
require(min <= max, "Maximum electable validators cannot be smaller than minimum");
require(
min != electableValidators.min || max != electable... | 3,496,769 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15419,
326,
5224,
471,
4207,
1300,
434,
11632,
716,
848,
506,
415,
828,
18,
632,
891,
1131,
1021,
5224,
1300,
434,
11632,
716,
848,
506,
415,
828,
18,
632,
891,
943,
1021,
4207,
1300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
445,
444,
17817,
429,
19420,
12,
11890,
5034,
1131,
16,
2254,
5034,
943,
13,
1071,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
565,
2583,
12,
20,
411,
1131,
16,
315,
13042,
17375,
429,
11632,
2780,
506,
3634,
8863,
203,
565,
... |
pragma solidity ^0.4.24;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
}
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, byt... | * Internal transfer, only can be called by this contract/ Prevent transfer to 0x0 address. Use burn() instead Check if the sender has enough Check for overflows Check if sender is frozen Check if recipient is frozen Save this for an assertion in the future Subtract from the sender Add the same to the recipient Asserts ... | function _transfer(address _from, address _to, uint _value) canTransfer internal {
require(_to != 0x0);
require(balanceOf[_from] >= _value);
require(balanceOf[_to] + _value > balanceOf[_to]);
require(!frozenAccount[_from]);
require(!frozenAccount[_to]);
uint previousB... | 368,671 | [
1,
4625,
348,
7953,
560,
30,
380,
3186,
7412,
16,
1338,
848,
506,
2566,
635,
333,
6835,
19,
19412,
7412,
358,
374,
92,
20,
1758,
18,
2672,
18305,
1435,
3560,
2073,
309,
326,
5793,
711,
7304,
2073,
364,
9391,
87,
2073,
309,
5793,
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,
389,
13866,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
389,
1132,
13,
848,
5912,
2713,
288,
203,
3639,
2583,
24899,
869,
480,
374,
92,
20,
1769,
203,
3639,
2583,
12,
12296,
951,
63,
67,
2080,
65,
1545,
389,
... |
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./utils/ReentrancyGuard.sol";
import "./libs/LibUnitConverter.sol";
import "./libs/Li... | rewrite in memory only
| order.matcherFee = uint64(uint256(order.matcherFee)*filledAmount/order.amount); | 13,685,832 | [
1,
4625,
348,
7953,
560,
30,
10738,
316,
3778,
1338,
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,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
1353,
18,
22761,
14667,
273,
2254,
1105,
12,
11890,
5034,
12,
1019,
18,
22761,
14667,
17653,
13968,
6275,
19,
1019,
18,
8949,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/* pragma solidity ^0.4.24;
import "./eip721/EIP721.sol";
import "./utils/SafeMath.sol";
import "./IUSDETHOracle.sol";
Old Patronage Badges.
Does not contain a tokenURI refactor.
And does not contain Badge Number refactor.
Deprecated on 22 Aug 2018.
DO NOT USE THIS.
contract OldUjoPatronageBadges is EIP721 {
usin... | URI is the CID solhint-disable-next-line func-param-name-mixedcase | function setTokenURI(uint256 _tokenID, string URI) public tokenExists(_tokenID) {
require(msg.sender == admin);
tokenURIs[_tokenID] = URI;
}
| 12,991,603 | [
1,
4625,
348,
7953,
560,
30,
225,
3699,
353,
326,
385,
734,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1326,
17,
891,
17,
529,
17,
19562,
3593,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22629,
3098,
12,
11890,
5034,
389,
2316,
734,
16,
533,
3699,
13,
1071,
1147,
4002,
24899,
2316,
734,
13,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3981,
1769,
203,
3639,
1147,
1099,
2520,
63,
67,
2316,
734,
65,
... |
./full_match/5/0x2eFDbEbfE29e00B0dE1EE8C80F36F6506c1809f9/sources/contracts/asset.sol | @dev Add a new asset to the asset manager. | function addAsset(address token, bytes32 assetId) public onlyOwner {
require(tokenToAssetIdMap[token] == 0x0);
require(assetIdToTokenMap[assetId] == address(0));
tokenToAssetIdMap[token] = assetId;
assetIdToTokenMap[assetId] = token;
}
| 7,035,460 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1436,
279,
394,
3310,
358,
326,
3310,
3301,
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,
527,
6672,
12,
2867,
1147,
16,
1731,
1578,
3310,
548,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
2316,
774,
6672,
548,
863,
63,
2316,
65,
422,
374,
92,
20,
1769,
203,
3639,
2583,
12,
9406,
28803,
1345,
863,
63,
... |
pragma solidity 0.4.26;
import "./ESOPTypes.sol";
import "../../../Math.sol";
contract OptionsCalculator is
ESOPTypes
{
////////////////////////
// Constants
////////////////////////
uint256 internal constant DECIMAL_POWER = 10**18;
////////////////////////
// Immutable state
//////... | fadeout duration equals to employment duration | uint32 employmentPeriod = terminatedAt - issueDate;
| 13,070,274 | [
1,
4625,
348,
7953,
560,
30,
225,
24444,
659,
3734,
1606,
358,
801,
4120,
3734,
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,
2254,
1578,
801,
4120,
5027,
273,
14127,
861,
300,
5672,
1626,
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,
... |
./full_match/42220/0x4C201305204b5719b542Eb6341C016a398e8738f/sources/contracts/ACFI/strategies/common/StratManager.sol | * @dev Updates address of the strat harvester. @param _harvester new harvester address./ | function setHarvester(address _harvester) external onlyManager {
harvester = _harvester;
}
| 16,315,346 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
15419,
1758,
434,
326,
609,
270,
17895,
3324,
387,
18,
632,
891,
389,
30250,
3324,
387,
394,
17895,
3324,
387,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
44,
297,
3324,
387,
12,
2867,
389,
30250,
3324,
387,
13,
3903,
1338,
1318,
288,
203,
565,
17895,
3324,
387,
273,
389,
30250,
3324,
387,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/3/0xE688E37D99212BF09D56d23Cb77F0dE42C567Ce7/sources/phil.sol | replace payout wallets
| address payable private marketing = payable(0x2cb473fDdEBDe10c66BC2312b6b6109F594ef56d); | 8,191,027 | [
1,
4625,
348,
7953,
560,
30,
225,
1453,
293,
2012,
17662,
2413,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1758,
8843,
429,
3238,
13667,
310,
273,
8843,
429,
12,
20,
92,
22,
7358,
24,
9036,
74,
40,
72,
29258,
758,
2163,
71,
6028,
16283,
4366,
2138,
70,
26,
70,
26,
22267,
42,
6162,
24,
10241,
4313,
72,
1769,
225,
2,
-100,
-100... |
./full_match/3/0x4A13d1CE3683734193F284d1E65F978060AD05d6/sources/localhost/contracts/UtilityToken.sol | * @dev overall tokens(token2) balance of this contract/ | function _receivedToken2(uint256 token2Amount) private {
_mintedOwnTokens(token2Amount);
}
| 8,144,460 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13914,
2430,
12,
2316,
22,
13,
11013,
434,
333,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
15213,
1345,
22,
12,
11890,
5034,
1147,
22,
6275,
13,
3238,
288,
203,
3639,
389,
81,
474,
329,
5460,
5157,
12,
2316,
22,
6275,
1769,
203,
565,
289,
21281,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.4.24;
// File: node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pu... | * @dev Grant tokens to a specified address. @param _to address The holder address. @param _value uint256 The amount of tokens to be granted. @param _revocable bool Whether the grant is revocable or not./ Don't allow holder to be this contract. Require that every holder can be granted tokens only once. Assign a new gran... | function granting(address _to, uint256 _value, bool _revocable)
external onlyOwner
{
require(_to != address(0));
require(_to != address(this));
require(_value > 0);
require(grants[_to].value == 0);
grants[_to] = Grant({
... | 1,117,294 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
19689,
2430,
358,
279,
1269,
1758,
18,
632,
891,
389,
869,
1758,
1021,
10438,
1758,
18,
632,
891,
389,
1132,
2254,
5034,
1021,
3844,
434,
2430,
358,
506,
17578,
18,
632,
891,
389,
9083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7936,
310,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
16,
1426,
389,
9083,
504,
429,
13,
203,
565,
3903,
1338,
5541,
7010,
565,
288,
377,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
540,
203,
3639,... |
pragma solidity 0.4.23;
/**
* @title SafeMath by OpenZepelin
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
... | minimum valid staking time
| uint256 public stakeMinAge; | 2,114,527 | [
1,
4625,
348,
7953,
560,
30,
5224,
923,
384,
6159,
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,
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,
2254,
5034,
1071,
384,
911,
2930,
9692,
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,
... |
pragma solidity ^0.5.8;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol";
import "solidity-bytes-utils/contracts/BytesLib.sol";
import "./UsingLockedGold.sol";
import "./interf... | * @notice Returns validator group information. @param account The account that registered the validator group. @return The unpacked validator group struct./ | function getValidatorGroup(
address account
)
external
view
returns (string memory, string memory, string memory, address[] memory)
{
require(isValidatorGroup(account));
ValidatorGroup storage group = groups[account];
return (group.identifier, group.name, group.url, group.members.getKe... | 5,467,119 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
4213,
1041,
1779,
18,
632,
891,
2236,
1021,
2236,
716,
4104,
326,
4213,
1041,
18,
632,
2463,
1021,
24195,
4213,
1041,
1958,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
27368,
1114,
12,
203,
565,
1758,
2236,
203,
225,
262,
203,
565,
3903,
203,
565,
1476,
203,
565,
1135,
261,
1080,
3778,
16,
533,
3778,
16,
533,
3778,
16,
1758,
8526,
3778,
13,
203,
225,
288,
203,
565,
2583,
12,
291,
... |
./full_match/97/0x6c7468e4fD8129a2af404da9d7c9047AA316a9D7/sources/project_/contracts/PresaleStorage.sol | set by owner, turns off/on swap process
| bool public swapOn = false; | 5,033,094 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
635,
3410,
16,
20748,
3397,
19,
265,
7720,
1207,
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,... | [
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,
3639,
1426,
1071,
7720,
1398,
273,
629,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.25;
// It's important to avoid vulnerabilities due to numeric overflow bugs
// OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs
// More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmetic/
impo... | Allows sender to see how much ether he has available/ | function getBalance()
public view
returns(uint)
{
return dataContract.getBalance(msg.sender);
}
| 13,118,113 | [
1,
4625,
348,
7953,
560,
30,
225,
25619,
5793,
358,
2621,
3661,
9816,
225,
2437,
3904,
711,
2319,
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,
565,
445,
2882,
6112,
1435,
203,
7734,
1071,
1476,
203,
7734,
1135,
12,
11890,
13,
203,
565,
288,
203,
3639,
327,
501,
8924,
18,
588,
13937,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/4/0x381ec53f4e74DA2E090d042368060376463592AE/sources/contracts/nftFolder.sol | tokenId to file hash | mapping(uint256 => TokenData) _tokenData;
| 752,042 | [
1,
4625,
348,
7953,
560,
30,
225,
1147,
548,
358,
585,
1651,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
6770,
12,
11890,
5034,
516,
3155,
751,
13,
389,
2316,
751,
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,... |
// SPDX-License-Identifier: MIT
// Etalon Token https://www.etalontoken.org was created by the World's Engineers https://www.worldsengineers.org
// Etalon is a wealth accumulating token, your personal free pocket bank.
pragma solidity >=0.4.22 <=0.8.7;
//import "hardhat/console.sol";
//import "./Pricing.sol";
impo... | the maximum of totalSupply that could be held on one account (100%=1e18) | function GetMaxOneAccountPercent() public pure returns (uint256) {
return MAX_ONE_ACCOUNT_AMMOUNT_PERCENT;
}
| 2,522,804 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
4207,
434,
2078,
3088,
1283,
716,
3377,
506,
15770,
603,
1245,
2236,
261,
6625,
9,
33,
21,
73,
2643,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
968,
2747,
3335,
3032,
8410,
1435,
1071,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
4552,
67,
5998,
67,
21690,
67,
2192,
5980,
5321,
67,
3194,
19666,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import { IHashes } from "./IHashes.sol";
import { LibDeactivateToken } from "./LibDeactivateToken.sol";
import { LibEIP712 } from "./LibEIP712.sol";
import { LibSignature } from "./LibSignature.sol";
import { SafeMath } from "@openzeppelin/contracts/utils/math/Saf... | @notice Emitted when governance class tokens are deactivated. | event Deactivated(address indexed owner, uint256 indexed tokenId, uint256 proposalId);
| 5,820,622 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
512,
7948,
1347,
314,
1643,
82,
1359,
667,
2430,
854,
443,
18836,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
1505,
18836,
12,
2867,
8808,
3410,
16,
2254,
5034,
8808,
1147,
548,
16,
2254,
5034,
14708,
548,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: Apache-2.0
/*
Modifications Copyright 2022 Element.Market
Copyright 2021 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.or... | @dev Transfers an ERC1155 asset from `owner` to `to`. @param token The address of the ERC1155 token contract. @param owner The owner of the asset. @param to The recipient of the asset. @param tokenId The token ID of the asset to transfer. @param amount The amount of the asset to transfer. selector for safeTransferFrom... | {
uint256 success;
assembly {
mstore(ptr, 0xf242432a00000000000000000000000000000000000000000000000000000000)
mstore(add(ptr, 0x04), and(owner, ADDRESS_MASK))
mstore(add(ptr, 0x24), and(to, ADDRESS_MASK))
mstore(add(ptr, 0x44), tokenId)
ms... | 1,499,069 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2604,
18881,
392,
4232,
39,
2499,
2539,
3310,
628,
1375,
8443,
68,
358,
1375,
869,
8338,
632,
891,
1147,
1021,
1758,
434,
326,
4232,
39,
2499,
2539,
1147,
6835,
18,
632,
891,
3410,
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,
288,
203,
3639,
2254,
5034,
2216,
31,
203,
3639,
19931,
288,
203,
203,
5411,
312,
2233,
12,
6723,
16,
374,
5841,
3247,
3247,
1578,
69,
12648,
12648,
12648,
12648,
12648,
12648,
12648,
13,
203,
5411,
312,
2233,
12,
1289,
12,
... |
./full_match/97/0x9e58c0753F93d13D7d0a7257a47C30FfcaDd230F/sources/project_/contracts/Barnaje.sol | Function for genesis | function completeGenesis() public onlyOwner {
Genesis genesis = new Genesis();
StepData[] memory stepsData = genesis.generateSteps();
for (uint256 i = 0; i < stepsData.length; i++) {
steps.push(stepsData[i]);
}
}
| 3,268,526 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
364,
21906,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3912,
7642,
16786,
1435,
1071,
1338,
5541,
288,
203,
3639,
31637,
21906,
273,
394,
31637,
5621,
203,
3639,
8693,
751,
8526,
3778,
6075,
751,
273,
21906,
18,
7163,
11811,
5621,
203,
3639,
364,
261,
11890,
5034,
277,
273,
3... |
./full_match/7700/0x9B2a63F27661A468E2da22226b64A4914144f195/sources/contracts/libraries/PriceGrid.sol | @notice Calculated the liquidity threshold for price improvement, assuming that the order is eligible. / | function improvableThresh (ImproveSettings memory set,
uint16 tickSize, int24 bidTick, int24 askTick)
private pure returns (uint128) {
uint24 unitClip = clipInside(tickSize, bidTick, askTick);
if (unitClip > 0) {
return liqForClip(set, unitClip, bid... | 4,651,546 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
15994,
690,
326,
4501,
372,
24237,
5573,
364,
6205,
13069,
22627,
16,
15144,
716,
565,
326,
1353,
353,
21351,
18,
342,
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,
13069,
16845,
1315,
1955,
261,
1170,
685,
537,
2628,
3778,
444,
16,
203,
1171,
9079,
2254,
2313,
4024,
1225,
16,
509,
3247,
9949,
6264,
16,
509,
3247,
6827,
6264,
13,
203,
3639,
3238,
16618,
1135,
261,
11890,
10392,
13,
... |
/*
Copyright 2020 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | @dev Encode a feature version as a `uint256`. @param major The major version number of the feature. @param minor The minor version number of the feature. @param revision The revision number of the feature. @return encodedVersion The encoded version number. | function _encodeVersion(uint32 major, uint32 minor, uint32 revision)
internal
pure
returns (uint256 encodedVersion)
{
return (major << 64) | (minor << 32) | revision;
}
| 5,368,667 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6240,
279,
2572,
1177,
487,
279,
1375,
11890,
5034,
8338,
632,
891,
7888,
1021,
7888,
1177,
1300,
434,
326,
2572,
18,
632,
891,
8439,
1021,
8439,
1177,
1300,
434,
326,
2572,
18,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
389,
3015,
1444,
12,
11890,
1578,
7888,
16,
2254,
1578,
8439,
16,
2254,
1578,
6350,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
3749,
1444,
13,
203,
565,
288,
203,
3639,
327,
261,
14019,
22... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
contract HunkyHeroes is ERC721Enumerable, E... | * @notice airdrop heroes for prizes and community perks @param to is the destination address @param num is the number of heroes to airdrop/ | function airdropHeroes(address to, uint256 num) public onlyTeam {
require(num > 0 && num <= MINT_MAX);
_mintHeroes(to, num);
}
| 14,601,523 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
279,
6909,
1764,
366,
2439,
281,
364,
846,
3128,
471,
19833,
1534,
7904,
632,
891,
358,
353,
326,
2929,
1758,
632,
891,
818,
353,
326,
1300,
434,
366,
2439,
281,
358,
279,
6909,
1764,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
279,
6909,
1764,
44,
2439,
281,
12,
2867,
358,
16,
2254,
5034,
818,
13,
1071,
1338,
8689,
288,
203,
3639,
2583,
12,
2107,
405,
374,
597,
818,
1648,
490,
3217,
67,
6694,
1769,
203,
3639,
389,
81,
474,
44,
2439,
281,
... |
./partial_match/42/0x157767bc46D0C38AF3cB33f2B02bF95456C964f4/sources/RemineScheduler.sol | @notify Cancel a scheduled campaign and get unused protocol tokens back @param campaignId The id of the campaign to be cancelled/ | function cancelCampaignAndGetTokensFromDistributor(uint256 campaignId) public isAuthorized {
cancelCampaign(campaignId);
getTokensFromDistributor();
}
| 8,998,987 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
12336,
10347,
279,
9755,
8965,
471,
336,
10197,
1771,
2430,
1473,
632,
891,
8965,
548,
1021,
612,
434,
326,
8965,
358,
506,
13927,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3755,
13432,
14042,
5157,
1265,
1669,
19293,
12,
11890,
5034,
8965,
548,
13,
1071,
353,
15341,
288,
203,
3639,
3755,
13432,
12,
14608,
548,
1769,
203,
3639,
18349,
1265,
1669,
19293,
5621,
203,
565,
289,
203,
2,
-100,
-10... |
./partial_match/1/0xa9Ad658D3890222a59c9BE3882F8F2B3FbcF6d38/sources/Moloch.sol | transfer shares to loot | function processGuildKickProposal(uint256 proposalIndex) external {
_validateProposalForProcessing(proposalIndex);
uint256 proposalId = proposalQueue[proposalIndex];
Proposal storage proposal = proposals[proposalId];
require(proposal.flags[5] == 1, "not kick proposal");
b... | 16,127,214 | [
1,
4625,
348,
7953,
560,
30,
225,
7412,
24123,
358,
437,
352,
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,
1207,
43,
680,
47,
1200,
14592,
12,
11890,
5034,
14708,
1016,
13,
3903,
288,
203,
3639,
389,
5662,
14592,
1290,
7798,
12,
685,
8016,
1016,
1769,
203,
203,
3639,
2254,
5034,
14708,
548,
273,
14708,
3183,
63,
685,
8016,
1... |
// File: contracts/interfaces/IPowerswapFactory.sol
pragma solidity ^0.7.4;
interface IPowerswapFactory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
fu... | R = r*(2**16-1) = r*65535; r = R/(2**16-1); rounding error
| uint16 private R; | 581,436 | [
1,
4625,
348,
7953,
560,
30,
225,
534,
273,
436,
21556,
22,
636,
2313,
17,
21,
13,
273,
436,
14,
26,
2539,
4763,
31,
436,
273,
534,
19,
12,
22,
636,
2313,
17,
21,
1769,
13885,
555,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
2313,
225,
3238,
225,
534,
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,
-... |
// File: contracts/interfaces/IERC1155Metadata.sol
pragma solidity 0.7.4;
interface IERC1155Metadata {
event URI(string _uri, uint256 indexed _id);
/****************************************|
| Functions |
|_______________________________________*/
/**
* @notice A distinc... | * @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 private _owner_;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
}
constructor () {
_owner_ = msg.sender;
emit OwnershipTransferred(address(0), _owner_);
}
modifier onlyOwner() {
require(msg.sender == _owner_, "Ownable#onlyOwner: ... | 13,723,234 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14223,
6914,
632,
5206,
1021,
14223,
6914,
6835,
711,
392,
3410,
1758,
16,
471,
8121,
5337,
6093,
3325,
4186,
16,
333,
9330,
5032,
326,
4471,
434,
315,
1355,
4371,
9654,
19,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
225,
1758,
3238,
389,
8443,
67,
31,
203,
203,
225,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
97,
203,
203,
225,
3885,
1832,
288,
203,
... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {IAaveGoverna... | @dev emitted on user reward accrue | event AssetReward(IERC20 indexed asset, uint256 totalAmountAccrued, uint256 timestamp);
| 6,395,278 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
17826,
603,
729,
19890,
4078,
86,
344,
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,
871,
10494,
17631,
1060,
12,
45,
654,
39,
3462,
8808,
3310,
16,
2254,
5034,
2078,
6275,
8973,
86,
5957,
16,
2254,
5034,
2858,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: MIT
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721)
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/interfaces/... | removed constant and added set function
| uint256 public MAX_NFTs_PER_WALLET = 10; | 1,028,788 | [
1,
4625,
348,
7953,
560,
30,
3723,
5381,
471,
3096,
444,
445,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
4552,
67,
50,
4464,
87,
67,
3194,
67,
59,
1013,
15146,
273,
1728,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0xeacAbd7339202DED487Bb67a088CF47c6Ed00aa2/sources/src/Mythics/MythicsV1.sol | * @notice Encodes an open choice that the stored user can submit for a given purchase ID. @dev A zero-address as `chooser` indicates that this choice is no longer available. @param chooser the address of the user that is eligible to submit the choice. @param numChoices the number of choices./ | struct OpenChoice {
address chooser;
uint8 numChoices;
}
| 9,146,384 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1374,
7000,
392,
1696,
6023,
716,
326,
4041,
729,
848,
4879,
364,
279,
864,
23701,
1599,
18,
632,
5206,
432,
3634,
17,
2867,
487,
1375,
2599,
13164,
68,
8527,
716,
333,
6023,
353,
1158,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
3502,
10538,
288,
203,
3639,
1758,
5011,
13164,
31,
203,
3639,
2254,
28,
818,
17442,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/84531/0xE87F8BeEb04bb303D2D6B4785bc800DdBF7bbD83/sources/contracts/src/utils/StringSet.sol | * @dev Removes a value from a set. O(1). Returns true if the value was removed from the set, that is if it was present./ We read and store the value's index to prevent multiple reads from the same storage slot Equivalent to contains(set, value) To delete an element from the _values array in O(1), we swap the element to... | function _remove(
Set storage set,
string memory value
) private returns (bool) {
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
string... | 16,682,731 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20284,
279,
460,
628,
279,
444,
18,
531,
12,
21,
2934,
2860,
638,
309,
326,
460,
1703,
3723,
628,
326,
444,
16,
716,
353,
309,
518,
1703,
3430,
18,
19,
1660,
855,
471,
1707,
326,
460,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
4479,
12,
203,
565,
1000,
2502,
444,
16,
203,
565,
533,
3778,
460,
203,
225,
262,
3238,
1135,
261,
6430,
13,
288,
203,
565,
2254,
5034,
460,
1016,
273,
444,
6315,
11265,
63,
1132,
15533,
203,
203,
565,
309,
261,
... |
./full_match/44787/0x91Fe60b5A375feF35F076F16565f6B24229EB0dD/sources/contracts/nftbond/ERC20NFTBond.sol | * @dev Transfers to the owner of the bond the amount of the bond when the contract has liquidity, if not will send the correspondent amount of collateral/ | function _afterBondRedeemed(
uint256 tokenId,
uint256 amount,
address beneficiary
)
internal override {
super._afterBondRedeemed(tokenId, amount, beneficiary);
if (principalToken.balanceOf(address(this)) < amount) {
uint256 amountOfCollateral = (amount - p... | 13,253,501 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
358,
326,
3410,
434,
326,
8427,
326,
3844,
434,
326,
8427,
1347,
326,
6835,
711,
4501,
372,
24237,
16,
309,
486,
903,
1366,
326,
4325,
319,
3844,
434,
4508,
2045,
287,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5205,
9807,
426,
24903,
329,
12,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1758,
27641,
74,
14463,
814,
203,
565,
262,
203,
565,
2713,
3849,
288,
203,
3639,
2240,
6315,
5205,... |
./partial_match/1/0x74b57883f8ce9F2BD330286E884CfD8BB24AC4ED/sources/contracts/agreements/ConstantFlowAgreementV1.sol | call the before callback | function _changeFlowToApp(
address appToCallback,
ISuperfluidToken token,
FlowParams memory flowParams,
FlowData memory oldFlowData,
bytes memory ctx,
ISuperfluid.Context memory currentContext,
FlowChangeType optype
)
private
returns (bytes... | 2,601,304 | [
1,
4625,
348,
7953,
560,
30,
225,
745,
326,
1865,
1348,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
3427,
5249,
774,
3371,
12,
203,
3639,
1758,
595,
774,
2428,
16,
203,
3639,
467,
8051,
2242,
1911,
1345,
1147,
16,
203,
3639,
9473,
1370,
3778,
4693,
1370,
16,
203,
3639,
9473,
751,
3778,
1592,
5249,
751,
16,
203,
... |
./full_match/4/0xCd6cecFea445946FDb61320616e897b47059B56f/sources/clubsig.sol | cannot realistically overflow on human timescales | function multicall(bytes[] calldata data) public payable virtual returns (bytes[] memory results) {
results = new bytes[](data.length);
unchecked {
for (uint256 i = 0; i < data.length; i++) {
(bool success, bytes memory result) = address(this).delegatecall(data[i... | 703,245 | [
1,
4625,
348,
7953,
560,
30,
225,
2780,
2863,
5846,
1230,
9391,
603,
8672,
1658,
742,
5408,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1778,
335,
454,
12,
3890,
8526,
745,
892,
501,
13,
1071,
8843,
429,
5024,
1135,
261,
3890,
8526,
3778,
1686,
13,
288,
203,
3639,
1686,
273,
394,
1731,
8526,
12,
892,
18,
2469,
1769,
203,
540,
203,
3639,
22893,
288,
20... |
pragma solidity 0.5.13;
import "openzeppelin-solidity/contracts/cryptography/ECDSA.sol";
import "./GenesisProtocolLogic.sol";
/**
* @title GenesisProtocol implementation -an organization's voting machine scheme.
*/
contract GenesisProtocol is IntVoteInterface, GenesisProtocolLogic {
using ECDSA for bytes32;
... | * @dev voteStake return the amount stakes for a given proposal and vote @param _proposalId the ID of the proposal @param _vote vote number @return uint256 stake amount/ | function voteStake(bytes32 _proposalId, uint256 _vote) external view returns(uint256) {
return proposals[_proposalId].stakes[_vote];
}
| 1,018,045 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12501,
510,
911,
327,
326,
3844,
384,
3223,
364,
279,
864,
14708,
471,
12501,
632,
891,
389,
685,
8016,
548,
326,
1599,
434,
326,
14708,
632,
891,
389,
25911,
12501,
1300,
632,
2463,
2254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12501,
510,
911,
12,
3890,
1578,
389,
685,
8016,
548,
16,
2254,
5034,
389,
25911,
13,
3903,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
450,
22536,
63,
67,
685,
8016,
548,
8009,
334,
3223,
63,
67,
25911,
155... |
// SPDX-License-Identifier: MIT
// Unagi Contracts v1.0.0 (VestingWalletMultiLinear.sol)
pragma solidity 0.8.12;
import "@openzeppelin/contracts/finance/VestingWallet.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableMap.sol";
import "@openzeppelin/contracts/token/ERC777/IERC777Recipient.sol";
import "@ope... | * @dev Lock schedule edition for a duration. Requirements: - Caller must have role DEFAULT_ADMIN_ROLE./ | function lock(uint256 lockDuration) external onlyRole(DEFAULT_ADMIN_ROLE) {
_lock(lockDuration);
}
| 1,287,962 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3488,
4788,
28432,
364,
279,
3734,
18,
29076,
30,
300,
20646,
1297,
1240,
2478,
3331,
67,
15468,
67,
16256,
18,
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,
2176,
12,
11890,
5034,
2176,
5326,
13,
3903,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
13,
288,
203,
3639,
389,
739,
12,
739,
5326,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity >=0.4.21 <0.7.0;
contract Election{
//Model a candidate
struct Candidate{
uint id;
string name;
uint voteCount;
}
// voted event //same
event votedEvent (
uint indexed _candidateId
);
//Store a candidate
mapping(address => bool) public voters;// if a voter voted!//bonus v... | data layer of block chain.....
| mapping(uint => Candidate) public candidates; | 7,326,745 | [
1,
4625,
348,
7953,
560,
30,
225,
501,
3018,
434,
1203,
2687,
838,
2777,
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,
6770,
12,
11890,
516,
385,
8824,
13,
1071,
7965,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer... | @notice Verifies that two orders match when considering the tokens, price, volumes / minimum volumes and settlement IDs. verifyMatchDetails is used my the DarknodeSlasher to verify challenges. Settlement layers may also use this function. @dev When verifying two orders for settlement, you should also: 1) verify the ... | function verifyMatchDetails(OrderDetails memory _buy, OrderDetails memory _sell) internal pure returns (bool) {
if (!verifyTokens(_buy.tokens, _sell.tokens)) {
return false;
}
if (_buy.price < _sell.price) {
return false;
}
if (_buy.volume < _sell.m... | 1,044,504 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
6160,
5032,
716,
2795,
11077,
845,
1347,
24453,
326,
2430,
16,
6205,
16,
11364,
342,
5224,
11364,
471,
26319,
806,
7115,
18,
3929,
2060,
3790,
353,
1399,
3399,
326,
463,
1313,
2159,
11033,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
2060,
3790,
12,
2448,
3790,
3778,
389,
70,
9835,
16,
4347,
3790,
3778,
389,
87,
1165,
13,
2713,
16618,
1135,
261,
6430,
13,
288,
203,
203,
3639,
309,
16051,
8705,
5157,
24899,
70,
9835,
18,
7860,
16,
389,
87,
11... |
pragma solidity ^0.5.0;
import "./Meme.sol";
import "./User.sol";
import "./PepeCoin.sol";
import "../node_modules/@openzeppelin/contracts/math/SafeMath.sol";
contract MemeketPlace {
using SafeMath for uint256;
Meme memeContract;
User userContract;
PepeCoin pepeCoinContract;
uint256 likeMemeRewa... | This meme has already been liked before, so when they like again, it will unlike.This meme was intially dislike, so when they like, dislike should subtractThis meme was already liked or disliked beforeuint by default is 0, will mint pepecoins for first like | function likeMeme(uint256 _memeId) public {
require(
memeContract.getMemeOwner(_memeId) != msg.sender,
"You cannot like your own meme"
);
if (likes[_memeId][msg.sender] == likeVal) {
memeContract.setMemeLikes(
_memeId,
memeC... | 5,393,640 | [
1,
4625,
348,
7953,
560,
30,
1220,
1663,
73,
711,
1818,
2118,
7906,
329,
1865,
16,
1427,
1347,
2898,
3007,
3382,
16,
518,
903,
640,
5625,
18,
2503,
1663,
73,
1703,
509,
6261,
1015,
5625,
16,
1427,
1347,
2898,
3007,
16,
1015,
5625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3007,
3545,
73,
12,
11890,
5034,
389,
3917,
73,
548,
13,
1071,
288,
203,
3639,
2583,
12,
203,
5411,
1663,
73,
8924,
18,
588,
3545,
73,
5541,
24899,
3917,
73,
548,
13,
480,
1234,
18,
15330,
16,
203,
5411,
315,
6225,
... |
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c =... | * @dev Advisors tokens accrual. @param _address Recepient address. @param _amount Accrued amount./ | function accrueAdvisorsTokens(address _address, uint256 _amount) public onlyOwner returns (bool) {
require(_amount > 0);
require(_amount <= advisorsTokens);
require(_address != address(0));
advisorsTokens = advisorsTokens.sub(_amount);
lockedTokens_6[_address] = lockedTokens_6[_address].add(_amoun... | 5,729,264 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
225,
4052,
3516,
1383,
2430,
4078,
86,
1462,
18,
632,
891,
389,
2867,
9797,
84,
1979,
1758,
18,
632,
891,
389,
8949,
15980,
86,
5957,
3844,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4078,
86,
344,
1871,
3516,
1383,
5157,
12,
2867,
389,
2867,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
565,
2583,
24899,
8949,
405,
374,
1769,
203,
565,
2583,
24899,
8949,
1648,
1261... |
./full_match/1/0x85Ff72ef23C559881589Daa5C8Ed9698124eDE72/sources/lib/seaport-types/src/helpers/PointerLibraries.sol | @dev Reads the uint200 at `rdPtr` in returndata. | function readUint200(
ReturndataPointer rdPtr
) internal pure returns (uint200 value) {
assembly ("memory-safe") {
returndatacopy(0, rdPtr, _OneWord)
value := mload(0)
}
}
| 8,451,916 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
29185,
326,
2254,
6976,
622,
1375,
13623,
5263,
68,
316,
327,
892,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
855,
5487,
6976,
12,
203,
3639,
2000,
892,
4926,
9437,
5263,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
6976,
460,
13,
288,
203,
3639,
19931,
7566,
7858,
17,
4626,
7923,
288,
203,
5411,
327,
892,
3530,
12,
20,
16,
... |