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/0x86DAB835f4A9B948C6fF49BF8bb7653e6A183202/sources/COLOR.sol | * @dev Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers `whenNotPaused` and `whenPaused`, which can be applied to the functions of your contract. Note that they wil... | abstract contract Pausable is Context {
event Paused(address account);
event Unpaused(address account);
bool private _paused;
}
constructor () internal {
_paused = false;
}
function paused() public view returns (bool) {
return _paused;
}
modifier whenNotPaused() {
... | 16,612,558 | [
1,
8924,
1605,
1492,
5360,
2325,
358,
2348,
392,
801,
24530,
2132,
12860,
716,
848,
506,
10861,
635,
392,
10799,
2236,
18,
1220,
1605,
353,
1399,
3059,
16334,
18,
2597,
903,
1221,
2319,
326,
10429,
1375,
13723,
1248,
28590,
68,
471,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
21800,
16665,
353,
1772,
288,
203,
565,
871,
21800,
3668,
12,
2867,
2236,
1769,
203,
203,
565,
871,
1351,
8774,
3668,
12,
2867,
2236,
1769,
203,
203,
565,
1426,
3238,
389,
8774,
3668,
31,
203,
203,
97,
203,
203,
203,... |
/**
*Submitted for verification at Etherscan.io on 2020-09-24
*/
// File: contracts/token/DMCGovernanceStorage.sol
pragma solidity 0.5.17;
contract DMCGovernanceStorage {
/// @notice A record of each accounts delegate
mapping (address => address) internal _delegates;
/// @notice A checkpoint for markin... | * @dev Transfer tokens from one address to another. @param from The address you want to send tokens from. @param to The address you want to transfer to. @param value The amount of tokens to be transferred./ decrease allowance sub from from | function transferFrom(address from, address to, uint256 value)
external
validRecipient(to)
returns (bool)
{
emit Transfer(from, to, value);
_moveDelegates(_delegates[from], _delegates[to], value);
return true;
}
| 15,869,558 | [
1,
5912,
2430,
628,
1245,
1758,
358,
4042,
18,
225,
628,
1021,
1758,
1846,
2545,
358,
1366,
2430,
628,
18,
225,
358,
1021,
1758,
1846,
2545,
358,
7412,
358,
18,
225,
460,
1021,
3844,
434,
2430,
358,
506,
906,
4193,
18,
19,
20467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
460,
13,
203,
3639,
3903,
203,
3639,
923,
18241,
12,
869,
13,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
203,
203,
203,
203,
3639,
3626,
12279,
12,
... |
./partial_match/1/0xda9846665Bdb44b0d0CAFFd0d1D4A539932BeBdf/sources/VeBoostDelegationMultiRewards.sol | @notice Set the minimum duration for delegate boost @param _duration minimum boosting duration | function setMinBoostDuration(uint256 _duration) external onlyOwner {
minBoostDuration = _duration;
emit MinBoostDurationSet(_duration);
}
| 2,635,833 | [
1,
694,
326,
5224,
3734,
364,
7152,
14994,
225,
389,
8760,
5224,
14994,
310,
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,
... | [
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,
27724,
26653,
5326,
12,
11890,
5034,
389,
8760,
13,
3903,
1338,
5541,
288,
203,
3639,
1131,
26653,
5326,
273,
389,
8760,
31,
203,
3639,
3626,
5444,
26653,
5326,
694,
24899,
8760,
1769,
203,
565,
289,
203,
203,
2,
-100,
... |
./full_match/80001/0x809420EEE145CE61be213Bd4AE40885cE8b11E8e/sources/contracts/testnetGenerateV2.sol | * @title TestnetGenerate @dev A contract for NFTs with different minting phases and whitelist verification./ | contract TestnetGenerateV2 is ERC721, Ownable, Pausable {
using LibPRNG for LibPRNG.PRNG;
using LibString for uint256;
uint256 public remainingSupply;
uint256 private updatedRemainingSupply;
uint256 public mintPrice;
string public baseTokenURI;
Phases public currentPhase;
mapping(uint2... | 839,989 | [
1,
4709,
2758,
4625,
225,
432,
6835,
364,
423,
4464,
87,
598,
3775,
312,
474,
310,
24642,
471,
10734,
11805,
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,
... | [
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,
16351,
7766,
2758,
4625,
58,
22,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1450,
10560,
8025,
4960,
364,
10560,
8025,
4960,
18,
8025,
4960,
31,
203,
565,
1450,
10560,
780,
364,
2254,
5034,
31,
203... |
// SPDX-License-Identifier: UNLICENSED
pragma experimental ABIEncoderV2;
pragma solidity ^0.7.6;
import "../../common/OVLTokenTypes.sol";
import "../libs/SafeMath.sol";
import "../../interfaces/IDeltaToken.sol";
contract TeamShareTimelock {
using SafeMath for uint256;
IDeltaToken immutable public DELTA... | @dev first month is paid out at the start @dev 11 months since we advance the first month so it starts vesting after 30 days for 11 months. | constructor(address _deltaToken, address _to) {
DELTA_TOKEN = IDeltaToken(_deltaToken);
TO = _to;
}
| 13,071,478 | [
1,
3645,
3138,
353,
30591,
596,
622,
326,
787,
225,
4648,
8846,
3241,
732,
8312,
326,
1122,
3138,
1427,
518,
2542,
331,
10100,
1839,
5196,
4681,
364,
4648,
8846,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
389,
9878,
1345,
16,
1758,
389,
869,
13,
288,
203,
3639,
2030,
48,
9833,
67,
8412,
273,
1599,
8967,
1345,
24899,
9878,
1345,
1769,
203,
3639,
8493,
273,
389,
869,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,... |
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Mintable.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
// FantomD... | loop all registered debt tokens advance the total value by the current debt balance token value | function debtTotal() public view returns (uint256 value) {
for (uint i = 0; i < debtTokens.length; i++) {
value = value.add(tokenValue(debtTokens[i], debtTotalBalance[debtTokens[i]]));
}
}
| 12,765,223 | [
1,
6498,
777,
4104,
18202,
88,
2430,
8312,
326,
2078,
460,
635,
326,
783,
18202,
88,
11013,
1147,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18202,
88,
5269,
1435,
1071,
1476,
1135,
261,
11890,
5034,
460,
13,
288,
203,
3639,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
18202,
88,
5157,
18,
2469,
31,
277,
27245,
288,
203,
5411,
460,
273,
460,
18,
1289,
12,... |
//Address: 0x8103864de9cbbd6165b62c0ac8252d6d9f94bc32
//Contract name: GoCryptobotCore
//Balance: 0 Ether
//Verification Date: 5/12/2018
//Transacion Count: 259
// CODE STARTS HERE
pragma solidity ^0.4.18;
contract GoCryptobotAccessControl {
address public owner;
address public operator;
bool public pa... | NOTE: _getPartSkillColor is called up to 128 * 4 * 3 times. Explicit conversion to EventColor could be costful. | function _getPartSkillColor(bytes data, uint partOffset, uint skillIndex) internal pure returns(byte) {
return data[partOffset + PART_BASE_SIZE + (skillIndex * PART_SKILL_SIZE) + 0];
}
| 2,562,426 | [
1,
17857,
30,
389,
588,
1988,
9030,
2957,
353,
2566,
731,
358,
8038,
225,
1059,
225,
890,
4124,
18,
24321,
4105,
358,
2587,
2957,
3377,
506,
6991,
2706,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
1988,
9030,
2957,
12,
3890,
501,
16,
2254,
1087,
2335,
16,
2254,
15667,
1016,
13,
2713,
16618,
1135,
12,
7229,
13,
288,
203,
3639,
327,
501,
63,
2680,
2335,
397,
20814,
67,
8369,
67,
4574,
397,
261,
7771,
73... |
./partial_match/1/0xeF8A5A4105194271804033a6bd11E36A4acC6499/sources/standardToken.sol | * @title Pausable token @dev ERC20 with pausable transfers and allowances. Useful if you want to, e.g., stop trades until the end of a crowdsale, or have an emergency switch for freezing all token transfers in the event of a large bug./ | contract ERC20Pausable is Pausable, ERC20 {
function transfer(address to, uint256 value) public whenNotPaused returns (bool) {
return super.transfer(to, value);
}
function transferFrom(address from, address to, uint256 value) public whenNotPaused returns (bool) {
return super.transferFrom(f... | 9,281,197 | [
1,
16507,
16665,
1147,
225,
4232,
39,
3462,
598,
6790,
16665,
29375,
471,
1699,
6872,
18,
19256,
309,
1846,
2545,
358,
16,
425,
18,
75,
12990,
2132,
1284,
5489,
3180,
326,
679,
434,
279,
276,
492,
2377,
5349,
16,
578,
1240,
392,
801... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
16351,
4232,
39,
3462,
16507,
16665,
353,
21800,
16665,
16,
4232,
39,
3462,
288,
203,
565,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
460,
13,
1071,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
3639,
327,
2240,
18,
13866,
12,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
// Utilizes the useful mentions in the article below to address the pesky mint costs
// Credit where credit is due
// =============================================================================
// https://shiny.mirror.xyz/OUampBbIz9ebEicfGnQf5At_ReMHl... | Returns the given tokens URI address | {
require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory currentBaseURI = _baseURI();
return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : "";
if (revealed == false) { return hiddenMetadataUri; }
... | 1,830,775 | [
1,
1356,
326,
864,
2430,
3699,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
288,
203,
565,
2583,
24899,
1808,
24899,
2316,
548,
3631,
315,
654,
39,
27,
5340,
2277,
30,
3699,
843,
364,
1661,
19041,
1147,
8863,
203,
203,
203,
565,
533,
3778,
783,
2171,
3098,
273,
389,
1969,
3098,
5621,
203,
565,
327,
... |
/**
* @author Valentin Mueller <https://github.com/ValentinFFM>
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;
// Experimental function is necessary to allow mappings with structs.
pragma experimental ABIEncoderV2;
/**
The Smart Contract User is responsible for storing the information of a... | / Assigns the creator of the smart contract as verifying institution. | contract User {
address public verifying_institution;
pragma solidity >=0.4.21 <0.7.0;
pragma experimental ABIEncoderV2;
The Smart Contract User is responsible for storing the information of all users.
Furthermore it provides all necessary functions to interact with users.
constructor () public {
... | 12,904,784 | [
1,
19,
12093,
87,
326,
11784,
434,
326,
13706,
6835,
487,
3929,
310,
1804,
305,
1421,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
16351,
2177,
288,
203,
203,
565,
1758,
1071,
3929,
310,
67,
267,
14278,
31,
203,
203,
203,
683,
9454,
18035,
560,
1545,
20,
18,
24,
18,
5340,
411,
20,
18,
27,
18,
20,
31,
203,
683,
9454,
23070,
10336,
45,
7204,
58,
22,
31,
... |
./partial_match/1/0xb493E63f3b20323177ED08F64b080c282d58C04d/sources/ALIEN.sol | set as marketing wallet
| marketingWallet = address(0x6bA14B0090deb4c1133C2D8c5E9EF2E1EF399924); | 3,906,881 | [
1,
542,
487,
13667,
310,
9230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
92,
26,
70,
37,
3461,
38,
713,
9349,
31888,
24,
71,
2499,
3707,
39,
22,
40,
28,
71,
25,
41,
29,
26897,
22,
41,
21,
26897,
23,
11984,
3247,
1769,
225,
2,
-100,
-100,
-100,
-100,
-1... |
./partial_match/4/0x80429Fe7F4756Ad8C2A66cCC643F9B4940642183/sources/uni.sol | constructor(address _coaAddress, address _WETH) public { coaAddress = _coaAddress; WETH = _WETH; } | contract COA_TO_UNI {
address constant coaAddress = 0xB374E5a7481d73B589Be9e12afB42658704cD28b;
address constant WETH = 0xc778417E063141139Fce010982780140Aa0cD5Ab;
mapping (address => uint) balance;
event UniSwapResult(
uint256 amountCOA,
uint256 amountETH,
uint... | 8,508,825 | [
1,
12316,
12,
2867,
389,
2894,
69,
1887,
16,
1758,
389,
59,
1584,
44,
13,
1071,
225,
288,
5411,
1825,
69,
1887,
273,
389,
2894,
69,
1887,
31,
5411,
678,
1584,
44,
273,
389,
59,
1584,
44,
31,
377,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7910,
37,
67,
4296,
67,
10377,
225,
288,
203,
377,
203,
565,
1758,
5381,
1825,
69,
1887,
273,
374,
20029,
23,
5608,
41,
25,
69,
5608,
11861,
72,
9036,
38,
25,
6675,
1919,
29,
73,
2138,
1727,
38,
24,
5558,
8204,
27,
302... |
./full_match/100/0x13DEFA7de9e68818dbf01d2F532721748464a6Ba/sources/TokenCreation.sol | End of token creation, in Unix time Minimum fueling goal of the token creation, denominated in tokens to be created True if the DAO reached its minimum fueling goal, false otherwise For DAO splits - if privateCreation is 0, then it is a public token creation, otherwise only the address stored in privateCreation is all... | abstract contract TokenCreationInterface {
uint public closingTime;
uint public minTokensToCreate;
bool public isFueled;
address public privateCreation;
ManagedAccount public extraBalance;
mapping (address => uint256) weiGiven;
function createTokenProxy(address payable _tokenHolder) payab... | 14,266,928 | [
1,
1638,
434,
1147,
6710,
16,
316,
9480,
813,
23456,
284,
20317,
310,
17683,
434,
326,
1147,
6710,
16,
10716,
7458,
316,
2430,
358,
506,
2522,
1053,
309,
326,
463,
20463,
8675,
2097,
5224,
284,
20317,
310,
17683,
16,
629,
3541,
2457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
3155,
9906,
1358,
288,
203,
203,
565,
2254,
1071,
7647,
950,
31,
203,
565,
2254,
1071,
1131,
5157,
774,
1684,
31,
203,
565,
1426,
1071,
17646,
20317,
329,
31,
203,
565,
1758,
1071,
3238,
9906,
31,
203,
565,
10024,
30... |
./partial_match/3/0x3629bBa7574AF0289428237F008350724196ba69/sources/TransferRules.sol | * Realization a addresses whitelist/ | contract Whitelist is OwnableUpgradeable {
using SafeMathUpgradeable for uint256;
using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;
struct List {
address addr;
bool alsoGradual;
}
struct ListStruct {
EnumerableSetUpgradeable.AddressSet indexes;
... | 5,257,592 | [
1,
6955,
1588,
279,
6138,
10734,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3497,
7523,
353,
14223,
6914,
10784,
429,
288,
203,
565,
1450,
14060,
10477,
10784,
429,
364,
2254,
5034,
31,
203,
565,
1450,
6057,
25121,
694,
10784,
429,
364,
6057,
25121,
694,
10784,
429,
18,
1887,
694,
31,
203,
377,
203,... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
contract CryptoStar is ERC721, Ownable {
// https://ethereum.meta.stackexchange.com/questions/443/blog-simple-storage-patterns-in-solidity
// Using struct... | Way to check if the star data exists and is valid | function isStar(uint256 _tokenId) public view returns(bool isIndeed) {
return tokenIdToStarInfo[_tokenId].isStar;
}
| 12,613,070 | [
1,
21831,
358,
866,
309,
326,
10443,
501,
1704,
471,
353,
923,
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,
353,
18379,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
1135,
12,
6430,
8048,
323,
329,
13,
288,
203,
3639,
327,
1147,
28803,
18379,
966,
63,
67,
2316,
548,
8009,
291,
18379,
31,
203,
565,
289,
203,
203,
2,
-100,... |
./partial_match/56/0xa7C062cec3EbF04FFf15f94F11e917c2aAE57a06/sources/StrategyCafeLP.sol | * @dev Takes out 4.5% as system fees from the rewards. 0.5% -> Call Fee 0.5% -> Treasury fee 0.5% -> Strategist fee 3.0% -> BIFI Holders/ | function chargeFees() internal {
uint256 toWbnb = IERC20(brew).balanceOf(address(this)).mul(45).div(1000);
IUniswapRouterETH(unirouter).swapExactTokensForTokens(toWbnb, 0, brewToWbnbRoute, address(this), now.add(600));
uint256 wbnbBal = IERC20(wbnb).balanceOf(address(this));
uint25... | 11,060,579 | [
1,
11524,
596,
1059,
18,
25,
9,
487,
2619,
1656,
281,
628,
326,
283,
6397,
18,
374,
18,
25,
9,
317,
3049,
30174,
374,
18,
25,
9,
317,
399,
266,
345,
22498,
14036,
374,
18,
25,
9,
317,
3978,
1287,
376,
14036,
890,
18,
20,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13765,
2954,
281,
1435,
2713,
288,
203,
3639,
2254,
5034,
358,
59,
70,
6423,
273,
467,
654,
39,
3462,
12,
6073,
91,
2934,
12296,
951,
12,
2867,
12,
2211,
13,
2934,
16411,
12,
7950,
2934,
2892,
12,
18088,
1769,
203,
36... |
// SPDX-License-Identifier: BUSDL-1.1
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import {IDetailedERC20} from "contracts/common/Imports.sol";
import {SafeERC20} from "contracts/libraries/Imports.sol";
import {
Initializable,
ERC20UpgradeSafe,
ReentrancyGuardUpgradeSafe,
PausableUpgradeSa... | * @notice Get the immutable array of underlying `TokenData` @dev Should be implemented in child contracts with a hardcoded array @return The array of `TokenData`/* @notice Verifies that a `TokenData` array works with the `TvlManager` @dev Reverts when there is invalid `TokenData` @param tokens_ The array of `TokenData`... | function _getTokenData() internal pure virtual returns (TokenData[] memory);
function _validateTokens(TokenData[] memory tokens_) internal view virtual {
require(tokens_.length < type(uint8).max, "TOO_MANY_TOKENS");
for (uint256 i = 0; i < tokens_.length; i++) {
address token = toke... | 281,326 | [
1,
967,
326,
11732,
526,
434,
6808,
1375,
1345,
751,
68,
225,
9363,
506,
8249,
316,
1151,
20092,
598,
279,
7877,
24808,
526,
327,
1021,
526,
434,
1375,
1345,
751,
68,
19,
225,
6160,
5032,
716,
279,
1375,
1345,
751,
68,
526,
6330,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
1345,
751,
1435,
2713,
16618,
5024,
1135,
261,
1345,
751,
8526,
3778,
1769,
203,
203,
565,
445,
389,
5662,
5157,
12,
1345,
751,
8526,
3778,
2430,
67,
13,
2713,
1476,
5024,
288,
203,
3639,
2583,
12,
7860,
27799... |
// Sources flattened with hardhat v2.5.0 https://hardhat.org
// File @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol@v3.4.0
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @de... | @notice LockableToken struct for storing token lockable details | struct LockableTokens {
uint256 lockableDays;
bool optionableStatus;
}
event LockableTokenDetails(
address indexed tokenAddress,
uint256 lockableDys,
bool optionalbleStatus,
uint256 updatedTime
);
event WithdrawDetails(
address indexed tokenAddress,
uint256 withd... | 12,205,931 | [
1,
2531,
429,
1345,
1958,
364,
15729,
1147,
2176,
429,
3189,
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,
1958,
3488,
429,
5157,
288,
203,
565,
2254,
5034,
2176,
429,
9384,
31,
203,
565,
1426,
1456,
429,
1482,
31,
203,
225,
289,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
225,
871,
3488,
429,
1... |
// SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/cont... | max count sell offers of nftForAccrualRB on which Rb accrual
| uint8 public maxUserTokenOnSellToReward = 3; | 5,521,047 | [
1,
1896,
1056,
357,
80,
28641,
434,
290,
1222,
1290,
8973,
86,
1462,
19437,
603,
1492,
31800,
4078,
86,
1462,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
28,
1071,
943,
1299,
1345,
1398,
55,
1165,
774,
17631,
1060,
273,
890,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/3/0x65B29b471f69400244Ffee30914745c88883810d/sources/pool.sol | * @dev settle call option contract/ ignore 0 supply option ignore 0 strikePrice option | function _settleOption(Option option, uint etherPrice) internal override {
if (option.totalSupply() == 0) {
return;
}
if (option.strikePrice() == 0) {
return;
}
uint256 strikePrice = option.strikePrice();
.div(str... | 5,237,092 | [
1,
542,
5929,
745,
1456,
6835,
19,
2305,
374,
14467,
1456,
2305,
374,
609,
2547,
5147,
1456,
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,
389,
542,
5929,
1895,
12,
1895,
1456,
16,
2254,
225,
2437,
5147,
13,
2713,
3849,
288,
203,
3639,
309,
261,
3482,
18,
4963,
3088,
1283,
1435,
422,
374,
13,
288,
203,
5411,
327,
31,
203,
3639,
289,
203,
203,
3639,
309,
... |
./partial_match/8453/0xBcFF559E85791cEDcF2541d1f20c9471801D1f02/sources/contracts/EisenDiamond.sol | Find facet for function that is called and execute the function if a facet is found and return any value. solhint-disable-next-line no-complex-fallback get diamond storage solhint-disable-next-line no-inline-assembly Execute external function from facet using delegatecall and return any value. solhint-disable-next-lin... | fallback() external payable {
LibDiamond.DiamondStorage storage ds;
bytes32 position = LibDiamond.DIAMOND_STORAGE_POSITION;
assembly {
ds.slot := position
}
if (facet == address(0)) {
revert LibDiamond.DiamondError(LibDiamond.FUNCTION_DOES_NOT_EXIST... | 16,713,644 | [
1,
3125,
11082,
364,
445,
716,
353,
2566,
471,
1836,
326,
445,
309,
279,
11082,
353,
1392,
471,
327,
1281,
460,
18,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
14259,
17,
16471,
336,
4314,
301,
1434,
2502,
3704,
11317,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
5922,
1435,
3903,
8843,
429,
288,
203,
3639,
10560,
14521,
301,
1434,
18,
14521,
301,
1434,
3245,
2502,
3780,
31,
203,
3639,
1731,
1578,
1754,
273,
10560,
14521,
301,
1434,
18,
2565,
2192,
673,
40,
67,
19009,
67,
15258,
31,
... |
./partial_match/42/0x94D365E8E8c73Da739879D6F322A3921eb66CFb0/sources/FixedSwap.sol | * Modifier to make a function callable only when the contract has Atomic Swaps not available./ | modifier isSalePreStarted() {
require(isPreStart());
_;
}
| 3,465,391 | [
1,
9829,
358,
1221,
279,
445,
4140,
1338,
1347,
326,
6835,
711,
11553,
5434,
6679,
486,
2319,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
9606,
11604,
5349,
1386,
9217,
1435,
288,
203,
3639,
2583,
12,
291,
1386,
1685,
10663,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xdc888B8c76eF26852B6f6c0008D6E2f29A96Cb50/sources/contracts-verify/KIBTAggregator.sol | * @return Maximum absolute value change of the answer between two consecutive rounds./ | function getVolatilityThreshold() external view returns (uint256) {
return _volatilityThreshold;
}
| 9,350,623 | [
1,
2463,
18848,
4967,
460,
2549,
434,
326,
5803,
3086,
2795,
18221,
21196,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
11031,
355,
30139,
7614,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
15416,
30139,
7614,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.4.21 <0.7.0;
import "./DateTime.sol";
contract Vote {
string public voteName;
uint256 public voteEndDate;
address public voteDeployer; // deployer decide who can vote and stock of each Voter
uint public totalCandidateNumber = 0; // how many people are in the cadidate ma... | get the last voting info | Voter memory _voter = voters[msg.sender];
| 6,350,604 | [
1,
588,
326,
1142,
331,
17128,
1123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
776,
20005,
3778,
389,
90,
20005,
273,
331,
352,
414,
63,
3576,
18,
15330,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// 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_779(address spender, uint value) public returns (bool ok) {
_approvals[msg.sender][spender] = value;
emit Approval( msg.sender, spender, value );
return true;
}
| 6,454,492 | [
1,
6241,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6617,
537,
67,
4700,
29,
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... |
./partial_match/1/0x95790e3bec5640977A4f70f02ebC1d3E6013Fd5A/sources/xAAVEProxy.sol | * @dev Returns the timestamp that the proposed admin can be changed/confirmed/ | function proposedNewAdminTimestamp() public view returns (uint256 timestamp) {
timestamp = readIntAtPosition(PROPOSED_NEW_ADMIN_TIMESTAMP);
}
| 4,034,647 | [
1,
1356,
326,
2858,
716,
326,
20084,
3981,
848,
506,
3550,
19,
21606,
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,
445,
20084,
1908,
4446,
4921,
1435,
1071,
1476,
1135,
261,
11890,
5034,
2858,
13,
288,
203,
3639,
2858,
273,
13731,
861,
2555,
12,
3373,
2419,
18204,
67,
12917,
67,
15468,
67,
17201,
1769,
203,
565,
289,
203,
203,
2,
-100,
-... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
//import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Math} from "@openzeppelin/contracts/math/Math.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {Ad... | @dev Attempts to liquidate part of a CDP's collateral to pay back its debt. @param _amount the amount of collateral to attempt to liquidate. don't attempt to liquidate more than is possible | function liquidate(uint256 _amount) external nonReentrant noContractAllowed expectInitialized returns (uint256, uint256) {
CDP.Data storage _cdp = _cdps[msg.sender];
_cdp.update(_ctx);
if(_amount > _cdp.totalDebt){
_amount = _cdp.totalDebt;
}
(uint256 _withdrawnAmount, uint256 _decrease... | 1,456,274 | [
1,
10113,
358,
4501,
26595,
340,
1087,
434,
279,
385,
8640,
1807,
4508,
2045,
287,
358,
8843,
1473,
2097,
18202,
88,
18,
225,
389,
8949,
326,
3844,
434,
4508,
2045,
287,
358,
4395,
358,
4501,
26595,
340,
18,
2727,
1404,
4395,
358,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4501,
26595,
340,
12,
11890,
5034,
389,
8949,
13,
3903,
1661,
426,
8230,
970,
1158,
8924,
5042,
4489,
11459,
1135,
261,
11890,
5034,
16,
2254,
5034,
13,
288,
203,
565,
385,
8640,
18,
751,
2502,
389,
4315,
84,
273,
389,
... |
/** _ _
| )/ )
\\ |//,' __
(")(_)-"()))=
(\\ _ _
( | / )
\_o_/ \\ \|/,' __
) Crypto Wasps (")(_)-"()))=-
/\__ <\\
_____ \ ________________________________... | / SPDX-License-Identifier: MIT Game items database. Total Supply. | contract CryptoWasps is ERC20Logic {
using SafeMath for uint256;
string telegram;
string websiteGame;
uint256 playerRewardLimit;
mapping (address => bool) private playersDatabase;
event playerAddedToDatabase (address playerAddress, bool isAdded);
event playerRemovedFromDatabase (address pl... | 14,478,903 | [
1,
19,
11405,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
14121,
1516,
2063,
18,
10710,
3425,
1283,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
15629,
14992,
1121,
353,
4232,
39,
3462,
20556,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
7010,
565,
533,
268,
19938,
31,
203,
565,
533,
12504,
12496,
31,
203,
565,
2254,
5034,
7291,
17631,
1060,
3039,
31,... |
./full_match/137/0xEaeb128350c9167C42C110762040cE26e2520eCA/sources/contracts/Contract.sol | Store our two other contracts here (Edition Drop and Token) Constructor function to set the rewards token and the NFT collection addresses | contract Mining is ReentrancyGuard, ERC1155Holder {
DropERC1155 public immutable pickaxeNftCollection;
TokenERC20 public immutable rewardsToken;
constructor(
DropERC1155 pickaxeContractAddress,
TokenERC20 gemsContractAddress
pragma solidity ^0.8.11;
import "@thirdweb-dev/contracts/openzeppe... | 4,763,545 | [
1,
2257,
3134,
2795,
1308,
20092,
2674,
261,
41,
1460,
10895,
471,
3155,
13,
11417,
445,
358,
444,
326,
283,
6397,
1147,
471,
326,
423,
4464,
1849,
6138,
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,
16351,
5444,
310,
353,
868,
8230,
12514,
16709,
16,
4232,
39,
2499,
2539,
6064,
288,
203,
565,
10895,
654,
39,
2499,
2539,
1071,
11732,
6002,
651,
73,
50,
1222,
2532,
31,
203,
565,
3155,
654,
39,
3462,
1071,
11732,
283,
6397,
134... |
./full_match/5/0x551f08B4E4b1C9a4680715C1a468C998fA2C0d62/sources/C_/development/projects/quarkus-test/ContractPlattform/ContractPlattform/src/main/solidity/contract-platform.sol | overwrite the contract that should be removed with the last contract in array | function removeContract(uint indexOfContractToRemove) private {
if (indexOfContractToRemove != contractsOnPlatform.length-1) {
contractsOnPlatform[indexOfContractToRemove] = contractsOnPlatform[contractsOnPlatform.length-1];
}
}
The refund will cancel any offers. No commissi... | 1,895,684 | [
1,
19274,
326,
6835,
716,
1410,
506,
3723,
598,
326,
1142,
6835,
316,
526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
8924,
12,
11890,
3133,
8924,
12765,
13,
3238,
288,
203,
3639,
309,
261,
31806,
8924,
12765,
480,
20092,
1398,
8201,
18,
2469,
17,
21,
13,
288,
203,
5411,
20092,
1398,
8201,
63,
31806,
8924,
12765,
65,
273,
20092,
... |
/*
Copyright 2021 Set Labs Inc.
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... | * Throws if the sender is not a listed extension/ | modifier onlyExtension() {
require(isExtension[msg.sender], "Must be extension");
_;
}
| 280,431 | [
1,
21845,
309,
326,
5793,
353,
486,
279,
12889,
2710,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
3625,
1435,
288,
203,
3639,
2583,
12,
291,
3625,
63,
3576,
18,
15330,
6487,
315,
10136,
506,
2710,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.17;
contract Lottery {
address public manager;
address[] public players;
//constructor () public {
// manager=msg.sender;
//}
function Lottery() public {
manager=msg.sender;
}
modifier onlyManagerCanCall() {
require(msg.sender==manager);... | require(msg.sender==manager); | function refund() public onlyManagerCanCall {
for(uint i=0;i<players.length;i++) {
players[i].transfer(1 ether);
}
}
| 6,470,854 | [
1,
6528,
12,
3576,
18,
15330,
631,
4181,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
16255,
1435,
1071,
1338,
1318,
2568,
1477,
288,
203,
3639,
364,
12,
11890,
277,
33,
20,
31,
77,
32,
1601,
414,
18,
2469,
31,
77,
27245,
288,
203,
5411,
18115,
63,
77,
8009,
13866,
12,
21,
225,
2437,
1769,
203,
3639,
... |
./partial_match/80001/0xC06E18d4Ce6b1b0f20Bad77FBFF7C0F7BabbC01F/sources/GAME_NFT.sol | @notice You can link client account A to Crypto account Z even @notice call this with account(0) to un-link @param game_ - the # of the game which holds this account @param inGameAccount_ - the in-game account Id controlled by the game @param cryptoAccount_ - the Ethereum account Id of the user | function approveCryptoAccount(uint game_, bytes32 inGameAccount_, address cryptoAccount_)
external
operatorOrMinion(game_)
{
require(gameToCrypto[game_][inGameAccount_] == address(0), "client must not already be linked");
approvedCryptoAccounts[game_][inGameAccount_] = cryptoAccount_;
emit Accou... | 8,818,178 | [
1,
6225,
848,
1692,
1004,
2236,
432,
358,
15629,
2236,
2285,
5456,
225,
745,
333,
598,
2236,
12,
20,
13,
358,
640,
17,
1232,
225,
7920,
67,
300,
326,
225,
434,
326,
7920,
1492,
14798,
333,
2236,
225,
316,
12496,
3032,
67,
300,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
6617,
537,
18048,
3032,
12,
11890,
7920,
67,
16,
1731,
1578,
316,
12496,
3032,
67,
16,
1758,
8170,
3032,
67,
13,
203,
565,
3903,
203,
565,
3726,
1162,
2930,
285,
12,
13957,
67,
13,
203,
225,
288,
203,
565,
2583,
12,
... |
// SPDX-License-Identifier: MIT-open-group
pragma solidity ^0.8.11;
library ETHDKGErrorCodes {
// ETHDKG error codes
bytes32 public constant ETHDKG_ONLY_VALIDATORS_ALLOWED = "100"; //"ETHDKG: Only validators allowed!"
bytes32 public constant ETHDKG_VARIABLE_CANNOT_BE_SET_WHILE_RUNNING = "101"; //"ETHDKG: T... | "ETHDKG: Dispute Failed! Dishonest participant didn't submit his GPKJ for this round!"
| bytes32 public constant ETHDKG_ACCUSED_DID_NOT_SUBMIT_GPKJ_IN_ROUND = "122"; | 12,560,432 | [
1,
6,
1584,
44,
3398,
43,
30,
3035,
2507,
11175,
5,
463,
1468,
265,
395,
14188,
10242,
1404,
4879,
18423,
4948,
47,
46,
364,
333,
3643,
4442,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1731,
1578,
1071,
5381,
512,
2455,
3398,
43,
67,
31414,
20093,
67,
40,
734,
67,
4400,
67,
8362,
6068,
67,
43,
8784,
46,
67,
706,
67,
15092,
273,
315,
22266,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
* The Consumer Contract Wallet
* Copyright (C) 2018 The Contract Wallet Company Limited
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or... | indicated if the exponent is negative
| bool minus = false; | 990,948 | [
1,
728,
11780,
309,
326,
9100,
353,
6092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1426,
12647,
273,
629,
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,
... |
// SPDX-License-Identifier: MIT
// solhint-disable
/*
This is copied from OZ preset: https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v3.0.0/contracts/presets/ERC721PresetMinterPauserAutoId.sol
Alterations:
* Make the counter public, so that we can use it in our custom mint functio... | If no money left to apply, or don't need any changes, return the original amounts We don't have enough money to adjust share price to the desired level. So just use whatever amount is left | function applyToSharePrice(
uint256 amountRemaining,
uint256 currentSharePrice,
uint256 desiredAmount,
uint256 totalShares
) public pure returns (uint256, uint256) {
if (amountRemaining == 0 || desiredAmount == 0) {
return (amountRemaining, currentSharePrice);
}
if (amountRemaining... | 6,235,170 | [
1,
2047,
1158,
15601,
2002,
358,
2230,
16,
578,
2727,
1404,
1608,
1281,
3478,
16,
327,
326,
2282,
30980,
1660,
2727,
1404,
1240,
7304,
15601,
358,
5765,
7433,
6205,
358,
326,
6049,
1801,
18,
6155,
2537,
999,
15098,
3844,
353,
2002,
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,
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,
28681,
9535,
5147,
12,
203,
565,
2254,
5034,
3844,
11429,
16,
203,
565,
2254,
5034,
783,
9535,
5147,
16,
203,
565,
2254,
5034,
6049,
6275,
16,
203,
565,
2254,
5034,
2078,
24051,
203,
225,
262,
1071,
16618,
1135,
261,
11... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.8.0;
pragma experimental ABIEncoderV2;
import "./Erc721RaribleInterface.sol";
/**
* @title Cross Chain Transfer for an NFT.
* @dev 1. Sender apporves nft for the contract.
* @dev 2. Sender init tryCrossChainTransfer ->
* @dev oracle gets event and init nf... | * @title Cross Chain Transfer for an NFT. @dev 1. Sender apporves nft for the contract. @dev 2. Sender init tryCrossChainTransfer -> @dev oracle gets event and init nft creation @dev for the same owner in different ethereum friendly chain. @dev The NFT collection (i.e. erc721 contract) ought to exist in the desired net... | contract Erc721CrossChainTransfer {
event TryCrossChainTransfer(uint256 toChain, address indexed nftContract, uint256 nftToken,
address nftOwner, string nftURI, LibPart.Part[] raribleRoyalties);
pragma solidity >=0.6.2 <0.8.0;
function tryCrossChainTransfer(uint256 _toChainId, address _nftContract, ui... | 2,575,526 | [
1,
13941,
7824,
12279,
364,
392,
423,
4464,
18,
225,
404,
18,
15044,
595,
280,
3324,
290,
1222,
364,
326,
6835,
18,
225,
576,
18,
15044,
1208,
775,
13941,
3893,
5912,
317,
225,
20865,
5571,
871,
471,
1208,
290,
1222,
6710,
225,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
512,
1310,
27,
5340,
13941,
3893,
5912,
288,
203,
203,
565,
871,
6161,
13941,
3893,
5912,
12,
11890,
5034,
358,
3893,
16,
1758,
8808,
290,
1222,
8924,
16,
2254,
5034,
290,
1222,
1345,
16,
203,
3639,
1758,
290,
1222,
5541,
... |
./partial_match/1/0x449962b884D2F818edb5d197E8572b42b6De99Ef/sources/FRS.sol | Constant and pseudo constant valuesVariables related to the day indexOther mappingsTiming variablesExternal contracts | contract FRS is Ownable {
using SafeMath for uint256;
syncToken=Sync(token);
totalDailyRewards[currentDayIndex]=INITIAL_DAILY_REWARD;
maintainers[0]=0x464376466Ea0494Ff0bC90260c46f98c56c8c746;
maintainers[1]=0x2fFD215E32bF25366172a5470FCEA3182C6c718F;
maintainers[2]=0xaF35f3685C92b83E8e64880... | 9,319,565 | [
1,
6902,
471,
12454,
5381,
924,
6158,
3746,
358,
326,
2548,
770,
8290,
7990,
25377,
3152,
6841,
20092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
478,
13225,
353,
14223,
6914,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
203,
203,
203,
203,
565,
3792,
1345,
33,
4047,
12,
2316,
1769,
203,
565,
2078,
40,
12857,
17631,
14727,
63,
2972,
4245,
1... |
./partial_match/1/0x7512F36cE571Ba1C63326BEa9eE252e129092D4C/sources/HPBD.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("Happy Birthday Elon Musk", "HPBD") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
unis... | 3,596,214 | [
1,
10157,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
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,
3885,
1435,
4232,
39,
3462,
2932,
44,
438,
2074,
605,
10542,
2881,
512,
9379,
490,
407,
79,
3113,
315,
2500,
18096,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functio... | January 18, 8:59:59 am PST
| uint256 public endPresaleDate = 1642525199; | 14,332,590 | [
1,
46,
304,
24335,
6549,
16,
1725,
30,
6162,
30,
6162,
2125,
453,
882,
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,
565,
2254,
5034,
1071,
679,
12236,
5349,
1626,
273,
404,
1105,
2947,
2947,
19818,
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,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
import {IOracle} from "./gamma/interfaces/IOracle.sol";
import {IAddressBook} from "./gamma/interfaces/IAddressBook.sol";
import {OtokenInterface} from "./gamma/interfaces/OtokenInterface.sol";
import {ISwap, Types} from "./airswap/interfaces/ISwap.sol";
i... | @notice Address of the underlying asset to trade | address public asset;
| 5,507,657 | [
1,
1887,
434,
326,
6808,
3310,
358,
18542,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
1071,
3310,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
Copyright 2021 IndexCooperative
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... | * @title BaseAdapter @author Set Protocol Abstract class that houses common adapter-related state and functions./ | abstract contract BaseAdapter {
using AddressArrayUtils for address[];
event CallerStatusUpdated(address indexed _caller, bool _status);
event AnyoneCallableUpdated(bool indexed _status);
Copyright 2021 Set Labs Inc.
import { AddressArrayUtils } from "../lib/AddressArrayUtils.sol";
import { IBaseMa... | 474,019 | [
1,
2171,
4216,
225,
1000,
4547,
4115,
667,
716,
366,
1481,
281,
2975,
4516,
17,
9243,
919,
471,
4186,
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,
... | [
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,
17801,
6835,
3360,
4216,
288,
203,
565,
1450,
5267,
1076,
1989,
364,
1758,
8526,
31,
203,
203,
203,
565,
871,
20646,
1482,
7381,
12,
2867,
8808,
389,
16140,
16,
1426,
389,
2327,
1769,
203,
565,
871,
5502,
476,
11452,
7381,
12,
64... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount o... | These methods must be implemented by the inheriting strategy* @notice Withdraw collateral to payback excess debt in pool. @param _excessDebt Excess debt of strategy in collateral token @return _payback amount in collateral token. Usually it is equal to excess debt./* @notice Calculate earning and withdraw/convert it i... | abstract contract CompoundMakerStrategy is MakerStrategy {
using SafeERC20 for IERC20;
address internal constant COMP = 0xc00e94Cb662C3520282E6f5717214004A7f26888;
CToken internal immutable cToken;
Comptroller internal constant COMPTROLLER = Comptroller(0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B);
... | 11,996,521 | [
1,
29690,
2590,
1297,
506,
8249,
635,
326,
6811,
310,
6252,
225,
3423,
9446,
4508,
2045,
287,
358,
8843,
823,
23183,
18202,
88,
316,
2845,
18,
225,
389,
338,
614,
758,
23602,
1312,
614,
18202,
88,
434,
6252,
316,
4508,
2045,
287,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
21327,
12373,
4525,
353,
490,
6388,
4525,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
1758,
2713,
5381,
13846,
273,
374,
6511,
713,
73,
11290,
15237,
6028,
22,
39,
4763,
182... |
// Sources flattened with hardhat v2.6.1 https://hardhat.org
// File @openzeppelin/contracts/utils/Context.sol@v4.3.2
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these ar... | * Reads an RLP address value into a address. @param _in RLP address value. @return Decoded address./ | function readAddress(RLPItem memory _in) internal pure returns (address) {
if (_in.length == 1) {
return address(0);
}
require(_in.length == 21, "Invalid RLP address value.");
return address(uint160(readUint256(_in)));
}
| 366,087 | [
1,
7483,
392,
534,
14461,
1758,
460,
1368,
279,
1758,
18,
225,
389,
267,
534,
14461,
1758,
460,
18,
327,
6209,
72,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
855,
1887,
12,
54,
48,
1102,
874,
3778,
389,
267,
13,
2713,
16618,
1135,
261,
2867,
13,
288,
203,
3639,
309,
261,
67,
267,
18,
2469,
422,
404,
13,
288,
203,
5411,
327,
1758,
12,
20,
1769,
203,
3639,
289,
203,
203,
... |
./full_match/1/0xd068C7C941FbbD2300cB2f1841858c2643722DC7/sources/contracts/BaseERC20Token.sol | * @dev Moves `amount` of tokens from `from` to `to`. This internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `from` must have a ... | function _transfer(
address from,
address to,
uint256 amount
) internal {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
uint256 fromBalance = _balances[from];
requir... | 4,934,691 | [
1,
19297,
1375,
8949,
68,
434,
2430,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
1220,
2713,
445,
353,
7680,
358,
288,
13866,
5779,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
2348,
5859,
1147,
1656,
281,
16,
9026,
310,
1791,
28757,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
... |
pragma solidity 0.6.12;
interface IERC1820Registry {
/**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
*
* By default, each account is its own manager. Passing a value of `0x0` in
* `newManager` will res... | bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant TRANSFER_WITH_AUTHORIZATION_TYPEHASH = keccak256("TransferWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 valid... | contract HEZ is IERC20 {
using SafeMath for uint256;
uint8 public constant decimals = 18;
string public constant symbol = "HEZ";
string public constant name = "Hermez Network Token";
uint256 public constant initialBalance = 100_000_000 * (1e18);
bytes32 public constant PERMIT_TYP... | 7,387,811 | [
1,
3890,
1578,
1071,
5381,
10950,
6068,
67,
2399,
15920,
273,
1377,
417,
24410,
581,
5034,
2932,
9123,
305,
12,
2867,
3410,
16,
2867,
17571,
264,
16,
11890,
5034,
460,
16,
11890,
5034,
7448,
16,
11890,
5034,
14096,
2225,
1769,
1731,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4194,
62,
353,
467,
654,
39,
3462,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
203,
565,
2254,
28,
1071,
5381,
15105,
273,
6549,
31,
377,
203,
203,
565,
533,
1071,
5381,
3273,
273,
315,
39... |
./partial_match/3/0xE746315C199D8cdCD04abb0b2976D71b906a0E86/sources/LockLiquidity.sol | We check for new earnings by seeing if the price the user last extracted his earnings is the same or not to determine whether he can extract new earnings or not The amountLocked price minus the last price extracted | function extractEarnings() public {
require(lastPriceEarningsExtracted[msg.sender] != ytxFeePrice, 'LockLiquidity: You have already extracted your earnings');
uint256 myPrice = ytxFeePrice.sub(lastPriceEarningsExtracted[msg.sender]);
uint256 earnings = amountLocked[msg.sender].mul(myPrice).d... | 5,088,300 | [
1,
3218,
866,
364,
394,
425,
1303,
899,
635,
2621,
310,
309,
326,
6205,
326,
729,
1142,
9438,
18423,
425,
1303,
899,
353,
326,
1967,
578,
486,
358,
4199,
2856,
3904,
848,
2608,
394,
425,
1303,
899,
578,
486,
1021,
3844,
8966,
6205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2608,
41,
1303,
899,
1435,
1071,
288,
203,
3639,
2583,
12,
2722,
5147,
41,
1303,
899,
4976,
329,
63,
3576,
18,
15330,
65,
480,
677,
978,
14667,
5147,
16,
296,
2531,
48,
18988,
24237,
30,
4554,
1240,
1818,
9438,
3433,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-02
*/
/* __ __ __
| \ | \ | \
_______ ______ ______ _______ __ __ | $$ ... | Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract Speculation is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address private marketingWallet;
address private devWallet;
uint256 public maxTransactionAmount;
... | 10,779,871 | [
1,
14925,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
4352,
749,
1635,
22467,
1098,
1635,
1203,
1300,
434,
10191,
1284,
7459,
4433,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
557... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4185,
6234,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
7010,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
31,
203,... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.10;
/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/... | @notice Emitted when a Safe is gibbed. @param user The user who gibbed the Safe. @param to The recipient of the impounded collateral. @param assetAmount The amount of underling tokens impounded. | event SafeGibbed(address indexed user, address indexed to, uint256 assetAmount);
| 1,253,719 | [
1,
1514,
11541,
1347,
279,
14060,
353,
314,
495,
2992,
18,
225,
729,
1021,
729,
10354,
314,
495,
2992,
326,
14060,
18,
225,
358,
1021,
8027,
434,
326,
1646,
12002,
4508,
2045,
287,
18,
225,
3310,
6275,
1021,
3844,
434,
3613,
2456,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
14060,
43,
495,
2992,
12,
2867,
8808,
729,
16,
1758,
8808,
358,
16,
2254,
5034,
3310,
6275,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/**
* Originally from https://github.com/TokenMarketNet/ico
* Modified by https://www.coinfabrik.com/
*/
pragma solidity ^0.4.24;
/**
* Originally from https://github.com/TokenMarketNet/ico
* Modified by https://www.coinfabrik.com/
*/
pragma solidity ^0.4.24;
/**
* Originally from h... | * @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;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
require(newOwner != address(0));
owner = newOwner;
}
}
| 1,243,499 | [
1,
5460,
429,
225,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
225,
1758,
1071,
3410,
31,
203,
203,
203,
203,
225,
3885,
1435,
1071,
288,
203,
565,
3410,
273,
1234,
18,
15330,
31,
203,
225,
289,
203,
203,
203,
225,
9606,
1338,
5541,
1435,
288,
203,
565,
2583,
... |
pragma solidity 0.6.6;
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./interfaces/ITetherswapFactory.sol";
import "./interfaces/ITetherswapPriceOracle.sol";
import "./libraries/SafeMathTetherswap.sol";
import "./libraries/TransferHelper.sol";
import "./TetherswapPair.sol";
contract TetherswapFac... | babylonian method (https:en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) | function sqrt(uint256 y) internal pure returns (uint256 z) {
if (y > 3) {
z = y;
uint256 x = y / 2 + 1;
while (x < z) {
z = x;
x = (y / x + x) / 2;
}
z = 1;
}
| 12,045,100 | [
1,
70,
24383,
9379,
2779,
707,
261,
4528,
30,
275,
18,
11999,
13744,
18,
3341,
19,
13044,
19,
4712,
67,
792,
67,
13406,
310,
67,
19719,
67,
22078,
38,
24383,
9379,
2779,
67,
2039,
13,
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,
1,
0,
0,
0,
0,
0,
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,
5700,
12,
11890,
5034,
677,
13,
2713,
16618,
1135,
261,
11890,
5034,
998,
13,
288,
203,
3639,
309,
261,
93,
405,
890,
13,
288,
203,
5411,
998,
273,
677,
31,
203,
5411,
2254,
5034,
619,
273,
677,
342,
576,
397,
404,
... |
pragma solidity ^0.5.12;
import "./InterchainAccount.sol";
contract InterchainAccountRouter {
event InterchainAccountCreated(address);
struct InterchainAccountTx {
address from;
address to;
uint256 value;
bytes data;
}
mapping (address => bool) interchainAccounts;
// If RegisterIBCAccount... | Mockup for receiving run tx packet. | function receiveRunTxPacket(bytes memory txBytes) public {
InterchainAccountTx memory interchainAccountTx = deserializeTx(txBytes);
authenticateTx(interchainAccountTx);
require(runTx(interchainAccountTx));
}
| 12,557,651 | [
1,
9865,
416,
364,
15847,
1086,
2229,
4414,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6798,
1997,
4188,
6667,
12,
3890,
3778,
2229,
2160,
13,
1071,
288,
203,
565,
5294,
5639,
3032,
4188,
3778,
1554,
5639,
3032,
4188,
273,
7673,
4188,
12,
978,
2160,
1769,
203,
565,
8929,
4188,
12,
2761,
5639,
3032,
4188,
... |
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
library PlasmaData {
struct Account {
address owner;
uint pubKeyX;
uint pubKeyY;
}
struct Request {
uint accumulatedHash;
uint timestamp;
}
struct Withdrawal {
uint accountId;
... | This is the prime number that is used for the alt_bn128 elliptic curve, see EIP-196. | function SNARK_SCALAR_FIELD() internal pure returns (uint) {
return 21888242871839275222246405745257275088548364400416034343698204186575808495617;
}
| 5,386,010 | [
1,
2503,
353,
326,
17014,
1300,
716,
353,
1399,
364,
326,
3770,
67,
13392,
10392,
415,
549,
21507,
8882,
16,
2621,
512,
2579,
17,
28644,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
14204,
9584,
67,
2312,
1013,
985,
67,
6776,
1435,
2713,
16618,
1135,
261,
11890,
13,
288,
203,
3639,
327,
576,
2643,
5482,
3247,
6030,
27,
2643,
5520,
5324,
25,
3787,
23622,
1105,
6260,
5608,
25,
2947,
27,
5324,
3361,
5... |
./partial_match/1/0xfF13851Aa596359c9ab50E34AAd3e98E8590e8ec/sources/Contract.sol | ===== Whitelisting ===== | function isAddressWhitelisted(bytes32[] memory proof, address _address) internal view returns (bool) {
return proof.verify(presaleMerkleRoot, keccak256(abi.encodePacked(_address)));
}
| 15,946,060 | [
1,
894,
33,
3497,
7523,
310,
422,
12275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
1887,
18927,
329,
12,
3890,
1578,
8526,
3778,
14601,
16,
1758,
389,
2867,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
14601,
18,
8705,
12,
12202,
5349,
8478,
15609,
2375,
16,
417,
24410,
581,
5034,
12... |
// Dependency file: @openzeppelin/contracts/token/ERC20/SafeERC20.sol
// pragma solidity ^0.6.0;
// import "./IERC20.sol";
// import "../../math/SafeMath.sol";
// import "../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract ret... | * Checks if issue is valid @param _setToken Instance of the SetToken @param _reserveAsset Address of the reserve asset @param _reserveAssetQuantity Quantity of the reserve asset to issue with @return bool Returns true if issue is valid/ | function isIssueValid(
ISetToken _setToken,
address _reserveAsset,
uint256 _reserveAssetQuantity
)
external
view
returns (bool)
{
uint256 setTotalSupply = _setToken.totalSupply();
if (
_reserveAssetQuantity == 0
|| !isR... | 6,802,807 | [
1,
4081,
309,
5672,
353,
923,
225,
389,
542,
1345,
5397,
5180,
434,
326,
1000,
1345,
225,
389,
455,
6527,
6672,
1171,
5267,
434,
326,
20501,
3310,
225,
389,
455,
6527,
6672,
12035,
540,
18189,
434,
326,
20501,
3310,
358,
5672,
598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
12956,
1556,
12,
203,
3639,
467,
694,
1345,
389,
542,
1345,
16,
203,
3639,
1758,
389,
455,
6527,
6672,
16,
203,
3639,
2254,
5034,
389,
455,
6527,
6672,
12035,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1476,
203,
... |
./full_match/3/0x49D4127D3E113C3CD8F15DdA959f36de8b66E2B9/sources/contracts/v2/TokenIssueV2.sol | * @dev Collection of functions related to the address type/ | library Address {
}
function isContract(address account) internal view returns (bool) {
uint256 size;
return size > 0;
}
assembly { size := extcodesize(account) }
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amou... | 14,225,070 | [
1,
2532,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5267,
288,
203,
97,
203,
203,
565,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
203,
3639,
2254,
5034,
963,
31,
203,
3639,
327,
963,
405,
374,
31,
203,
565,
289,
203,
203,
3639,
19931,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7 <0.9.0;
//import "../../utils/Context.sol";
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be acces... | ----------------------- RAT-PTHR--------------------------------------------------------------------- 定数-------------------------------------------------------------------------------------------- 管理データ---------------------------------------------- IPFSの修復 キャンペーン---------------------------------------------- ユーザー管理----... | contract Token is Ownable, ERC721 {
uint256 constant private TOKEN_ID_OFFSET = 1;
uint256 constant private TOKEN_MAX = 10296;
uint256 constant private MINT_MAX = 20;
address constant private OWNER_ADDRESS = 0xa15161F087854750e09a7571bbf43361d95Ed099;
address constant private LYNX_ADDRESS = 0x45ac1E4... | 10,122,795 | [
1,
1271,
17082,
534,
789,
17,
1856,
15024,
5802,
13465,
225,
166,
111,
253,
167,
248,
113,
28253,
7620,
225,
168,
111,
99,
168,
243,
233,
164,
230,
234,
164,
230,
125,
164,
229,
128,
2443,
17908,
2971,
4931,
164,
228,
111,
165,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3155,
353,
14223,
6914,
16,
4232,
39,
27,
5340,
288,
203,
565,
2254,
5034,
5381,
3238,
14275,
67,
734,
67,
11271,
273,
404,
31,
203,
565,
2254,
5034,
5381,
3238,
14275,
67,
6694,
273,
1728,
5540,
26,
31,
203,
565,
2254,
... |
//Address: 0xd1670c55f5e68fede5fddd8ace64a3329f778b89
//Contract name: ATSTokenReservation
//Balance: 215.853806028 Ether
//Verification Date: 5/30/2018
//Transacion Count: 81
// CODE STARTS HERE
pragma solidity ^0.4.23;
/*
* Contract accepting reservations for ATS tokens.
* The actual tokens are not yet created ... | not (yet) accepted deposits (received from non-whitelisted accounts) | uint256 public cumAlienDeposits = 0;
| 1,041,342 | [
1,
902,
261,
24404,
13,
8494,
443,
917,
1282,
261,
15213,
628,
1661,
17,
20409,
329,
9484,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
14471,
37,
549,
275,
758,
917,
1282,
273,
374,
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,... |
pragma experimental ABIEncoderV2;
pragma solidity ^0.8.4;
//SPDX-License-Identifier: MIT
import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppeli... | 0 laVieImage uint64 vestingID = vesting.getVestID(player, depositID); console.log("vesting ID: %s",vestingID); addressToMph[player].vestID = vestingID; addressToMph[player].vestID, | function supplyDAITo88MPH(
address player,
uint256 amount,
uint256 timeInDays,
uint8 stakeType
) private {
require(!(addressToMph[player].isStaking), "La Vie: Already staking!");
uint64 maturationTimestamp = uint64(
block.timestamp + (timeInDays * 1 d... | 921,499 | [
1,
20,
7125,
58,
1385,
2040,
225,
2254,
1105,
331,
10100,
734,
273,
331,
10100,
18,
588,
58,
395,
734,
12,
14872,
16,
443,
1724,
734,
1769,
225,
2983,
18,
1330,
2932,
90,
10100,
1599,
30,
738,
87,
3113,
90,
10100,
734,
1769,
1758,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14467,
9793,
45,
774,
5482,
4566,
44,
12,
203,
3639,
1758,
7291,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
813,
382,
9384,
16,
203,
3639,
2254,
28,
384,
911,
559,
203,
565,
262,
3238,
288,
203,
3639,... |
/**
*Submitted for verification at Etherscan.io on 2022-05-02
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by... | Upgrade of both treasuries' implementation We use a common implementation for both ecosystem's reserves We initialise the implementation, for security Transfer of the upfront payment, 40% of the total Creation of the streams | function balanceOf(uint256 streamId, address who)
external
view
returns (uint256 balance);
function getStream(uint256 streamId)
external
view
returns (
address sender,
address recipient,
uint256 deposit,
address tok... | 15,035,499 | [
1,
10784,
434,
3937,
9787,
345,
295,
606,
11,
4471,
1660,
999,
279,
2975,
4471,
364,
3937,
6557,
538,
1108,
1807,
400,
264,
3324,
1660,
21301,
326,
4471,
16,
364,
4373,
12279,
434,
326,
731,
10211,
5184,
16,
8063,
9,
434,
326,
2078,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11013,
951,
12,
11890,
5034,
21035,
16,
1758,
10354,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
11013,
1769,
203,
203,
565,
445,
13741,
12,
11890,
5034,
21035,
13,
203,
3639,
3903,
203,
3639,... |
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they sho... | * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. Requirements: - `tokenId` must exist./ | function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
| 1,481,593 | [
1,
2785,
1375,
67,
2316,
3098,
68,
487,
326,
1147,
3098,
434,
1375,
2316,
548,
8338,
29076,
30,
300,
1375,
2316,
548,
68,
1297,
1005,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
1345,
3098,
12,
11890,
5034,
1147,
548,
16,
533,
3778,
389,
2316,
3098,
13,
2713,
5024,
288,
203,
3639,
2583,
24899,
1808,
12,
2316,
548,
3631,
315,
654,
39,
27,
5340,
2277,
30,
3699,
444,
434,
1661,
19041,
... |
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
import "hardhat/console.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMat... | @title TokenRecover @author jaxcoder @dev Allow to recover any ERC20 sent into the contract for error | contract TokenRecover is Ownable {
function recoverERC20(address tokenAddress, uint256 tokenAmount) public onlyOwner {
IERC20(tokenAddress).transfer(owner(), tokenAmount);
}
}
| 12,677,855 | [
1,
1345,
27622,
225,
20516,
3396,
225,
7852,
358,
5910,
1281,
4232,
39,
3462,
3271,
1368,
326,
6835,
364,
555,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
27622,
353,
14223,
6914,
288,
203,
565,
445,
5910,
654,
39,
3462,
12,
2867,
1147,
1887,
16,
2254,
5034,
1147,
6275,
13,
1071,
1338,
5541,
288,
203,
3639,
467,
654,
39,
3462,
12,
2316,
1887,
2934,
13866,
12,
8443,
933... |
/*
Copyright 2019-2021 StarkWare Industries Ltd.
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
https://www.starkware.co/open-source-license/
Unless required by applicable law or agre... | Logs the new state following a state update. Logs a stateTransitionFact that was used to update the state. Random storage slot tags. | {
using StarknetState for StarknetState.State;
event LogStateUpdate(uint256 globalRoot, int256 sequenceNumber);
event LogStateTransitionFact(bytes32 stateTransitionFact);
string internal constant PROGRAM_HASH_TAG = "STARKNET_1.0_INIT_PROGRAM_HASH_UINT";
string internal constant VERIFIER_ADDRESS_T... | 5,363,404 | [
1,
7777,
326,
394,
919,
3751,
279,
919,
1089,
18,
20238,
279,
919,
8850,
9766,
716,
1703,
1399,
358,
1089,
326,
919,
18,
8072,
2502,
4694,
2342,
18,
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,
95,
203,
565,
1450,
934,
1313,
2758,
1119,
364,
934,
1313,
2758,
1119,
18,
1119,
31,
203,
203,
565,
871,
1827,
1119,
1891,
12,
11890,
5034,
2552,
2375,
16,
509,
5034,
3102,
1854,
1769,
203,
203,
565,
871,
1827,
1119,
8850,
9766,
... |
// Copyright (C) 2021 BITFISH LIMITED
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distribu... | Packed into a single slot | contract StakefishServicesContract is IStakefishServicesContract {
using Address for address payable;
uint256 private constant HOUR = 3600;
uint256 private constant DAY = 24 * HOUR;
uint256 private constant WEEK = 7 * DAY;
uint256 private constant YEAR = 365 * DAY;
uint256 private constant MAX_... | 1,754,721 | [
1,
4420,
329,
1368,
279,
2202,
4694,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
934,
911,
22905,
5676,
8924,
353,
467,
510,
911,
22905,
5676,
8924,
288,
203,
565,
1450,
5267,
364,
1758,
8843,
429,
31,
203,
203,
565,
2254,
5034,
3238,
5381,
17001,
273,
12396,
31,
203,
565,
2254,
5034,
3238,
5381,
11579,
... |
./partial_match/42/0xc95dDf6B704f30258Dd252B8dB551889a34075E2/sources/SortedMarket.sol | delete an order from the sorted list no prev entry exists. this was the first; so now next entry is first prev entry exists. fix it up. this was the last; so now prev entry is the last no next entry exists. this was the last; so now prev entry is last next entry exists. fix it up. this was the first; so now next entry... | function deleteOrder(uint256 _id) internal {
OpenOrder storage _openOrder = openOrders[_id];
uint256 _prevEntryIdx = _openOrder.prevSortedOrder;
uint256 _nextEntryIdx = _openOrder.nextSortedOrder;
uint256 _contractMemoId = _openOrder.contractMemo;
if (_prevEntryIdx == 0) {
if (_openOrder.isB... | 3,492,605 | [
1,
3733,
392,
1353,
628,
326,
3115,
666,
1158,
2807,
1241,
1704,
18,
333,
1703,
326,
1122,
31,
1427,
2037,
1024,
1241,
353,
1122,
2807,
1241,
1704,
18,
2917,
518,
731,
18,
333,
1703,
326,
1142,
31,
1427,
2037,
2807,
1241,
353,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1430,
2448,
12,
11890,
5034,
389,
350,
13,
2713,
288,
203,
565,
3502,
2448,
2502,
389,
3190,
2448,
273,
1696,
16528,
63,
67,
350,
15533,
203,
565,
2254,
5034,
389,
10001,
1622,
4223,
273,
389,
3190,
2448,
18,
10001,
117... |
pragma solidity ^0.5.1;
import "./Client.sol";
import "../../platform/dispatch/DispatchInterface.sol";
import "../../platform/bondage/BondageInterface.sol";
import "../../platform/registry/RegistryInterface.sol";
import "./OnChainProvider.sol";
import "../ERC20.sol";
import "hardhat/console.sol";
contract Off... | do something with result | function Callback(uint256 id, string calldata response1) external onlyOracle() {
string memory _response1 = response1;
emit Result1(id, _response1);
}
| 12,946,605 | [
1,
2896,
5943,
598,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8444,
12,
11890,
5034,
612,
16,
533,
745,
892,
766,
21,
13,
3903,
225,
1338,
23601,
1435,
288,
203,
3639,
533,
3778,
389,
2740,
21,
273,
766,
21,
31,
203,
3639,
3626,
3438,
21,
12,
350,
16,
389,
2740,
21,
1769,
203,... |
./full_match/1/0x024d23Dc6c813a7C26ad3Cbb102cB0c1a98DdDa9/sources/contracts/ZhouVillage.sol | * @dev Interface of ERC721 token receiver./ | interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
pragma solidity ^0.8.13;
}
| 3,850,081 | [
1,
1358,
434,
4232,
39,
27,
5340,
1147,
5971,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
4232,
39,
27,
5340,
37,
972,
45,
654,
39,
27,
5340,
12952,
288,
203,
565,
445,
603,
654,
39,
27,
5340,
8872,
12,
203,
3639,
1758,
3726,
16,
203,
3639,
1758,
628,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1731... |
/******************************************************************************\
file: Withdrawable.sol
ver: 0.4.3
updated:16-Aug-2018
author: Darryl Morris (o0ragman0o)
email: o0ragman0o AT gmail.com
A contract interface presenting an API for withdrawal functionality of ether
balances and inter-contract pull a... | Return an ether balance of an address | function etherBalanceOf(address _addr)
public
view
returns (uint)
{
return _addr == owner ? address(this).balance : 0;
}
| 12,604,909 | [
1,
990,
392,
225,
2437,
11013,
434,
392,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
225,
2437,
13937,
951,
12,
2867,
389,
4793,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
13,
203,
565,
288,
203,
3639,
327,
389,
4793,
422,
3410,
692,
1758,
12,
2211,
2934,
12296,
294,
374,
31,
3... |
./full_match/3/0xeBf0aE046759d5933bEAFc3c8E131e44Ab2f45DC/sources/mynft.sol | @custom:security-contact security@ For counter Constants Tokens per wallet declaration Token Status declarations | contract MyNFT is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
Counters.Counter private _tokenIdCounter;
uint public constant MAXSUPPLY = 4444;
bytes32 private constant ADMIN_HASH = 0xdaec29ff84edd77b324b629f448bac09b7a34ae35c644a78775db... | 14,129,814 | [
1,
36,
3662,
30,
7462,
17,
8994,
4373,
36,
2457,
3895,
5245,
13899,
1534,
9230,
8266,
3155,
2685,
12312,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8005,
50,
4464,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
4232,
39,
27,
5340,
3098,
3245,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
203,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
... |
pragma solidity ^0.4.25;
/*
* Creator: CCVT (CrytoCoinVillage)
*/
/*
* Abstract Token Smart Contract
*
*/
/*
* Safe Math Smart Contract.
* https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
*/
contract SafeMath {
function mul(uint256 a, uint256 b) internal pure ... | * Abstract Token Smart Contract that could be used as a base contract for ERC-20 token contracts./ | contract AbstractToken is Token, SafeMath {
constructor () public {
}
function balanceOf(address _owner) public constant returns (uint256 balance) {
return accounts [_owner];
}
function transfer(address _to, uint256 _value) public returns (bool success) {
require(_to != address(0));
if (accoun... | 520,162 | [
1,
7469,
3155,
19656,
13456,
716,
3377,
506,
1399,
487,
279,
1026,
6835,
364,
4232,
39,
17,
3462,
1147,
20092,
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,
... | [
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,
16351,
4115,
1345,
353,
3155,
16,
14060,
10477,
288,
203,
225,
3885,
1832,
1071,
288,
203,
225,
289,
203,
21281,
225,
445,
11013,
951,
12,
2867,
389,
8443,
13,
1071,
5381,
1135,
261,
11890,
5034,
11013,
13,
288,
203,
565,
327,
94... |
./full_match/1/0xe9165147830379b5Fcf5Ac84de67d179E44D9a51/sources/contracts/utils/GetRoyalties.sol | * @notice check for interface support @dev Implementation of the {IERC165} interface./ | function supportsInterface(bytes4 interfaceId)
public
view
virtual
override
returns (bool)
{
return
interfaceId == type(IGetRoyalties).interfaceId ||
interfaceId == type(IERC165).interfaceId;
}
| 9,670,438 | [
1,
1893,
364,
1560,
2865,
225,
25379,
434,
326,
288,
45,
654,
39,
28275,
97,
1560,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
3849,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
203,
5411,
1560,
548,
422,
618,
12,
45,
967,
... |
/**
* @title ArbitrableDeposit
* @author Luke Hartman - <lhartman3@zagmail.gonzaga.edu>
* Bug Bounties: This code hasn't undertaken a bug bounty program yet.
*/
pragma solidity ^0.4.15;
import "./Arbitrable.sol";
/** @title Arbitrable Deposit
* This is a a contract which allow for an owner deposit. Anyone ... | * @title Arbitrable Deposit This is a a contract which allow for an owner deposit. Anyone besides the owner can seek arbitration/file a claim as a claimant. To develop a contract inheriting from this one, you need to: - Redefine RULING_OPTIONS to explain the consequences of the possible rulings. - Redefine executeRu... | contract ArbitrableDeposit is Arbitrable {
address public owner;
address public claimant;
uint public disputeID;
Status public status;
uint8 constant AMOUNT_OF_CHOICES = 2;
uint8 constant OWNER_WINS = 1;
uint8 constant CLAIMANT_WINS = 2;
event HasToPayFee(Party _party);
enum S... | 13,093,186 | [
1,
686,
3682,
354,
7119,
4019,
538,
305,
225,
1220,
353,
279,
279,
6835,
1492,
1699,
364,
392,
3410,
443,
1724,
18,
5502,
476,
324,
281,
4369,
326,
3410,
848,
6520,
10056,
7034,
19,
768,
279,
7516,
487,
279,
7516,
970,
18,
2974,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
3682,
354,
7119,
758,
1724,
353,
1201,
3682,
354,
7119,
288,
203,
565,
1758,
1071,
3410,
31,
203,
565,
1758,
1071,
7516,
970,
31,
203,
565,
2254,
1071,
1015,
2507,
734,
31,
203,
203,
565,
2685,
1071,
1267,
31,
203,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity >=0.7.6;
pragma abicoder v2;
import '@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@uniswap/v3-core/contracts/libraries/TickMath.sol';
import '@uniswap/v3-core/contracts/libraries/FullMath.sol';
import '@uniswap/v3-periphery/contracts/interfaces... | Refund tokens from uniswap Refund tokens from uniswap | function _refundFromUniswap() private {
if (_isWETH(token0)) {
uniswapV3PositionsNFT.refundETH();
uniswapV3PositionsNFT.unwrapWETH9(0, address(this));
uniswapV3PositionsNFT.sweepToken(token0, 0, address(this));
}
if (_isWETH(token1)) {
uniswapV3PositionsNFT.refundETH();
unis... | 115,319 | [
1,
21537,
2430,
628,
640,
291,
91,
438,
3941,
1074,
2430,
628,
640,
291,
91,
438,
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,
225,
445,
389,
1734,
1074,
1265,
984,
291,
91,
438,
1435,
3238,
288,
203,
565,
309,
261,
67,
291,
59,
1584,
44,
12,
2316,
20,
3719,
288,
203,
1377,
640,
291,
91,
438,
58,
23,
11024,
50,
4464,
18,
1734,
1074,
1584,
44,
5621,
... |
./full_match/42/0x497C661fA4CBCB325342a99eA39e838f1DBFF324/sources/contracts/SideContract.sol | File: @openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721URIStorage.sol)* @dev ERC721 token with storage based token URI management./ Optional mapping for token URIs | abstract contract ERC721URIStorage is ERC721 {
using Strings for uint256;
mapping(uint256 => string) private _tokenURIs;
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
function _beforeTokenTransfer(
address from,
... | 9,584,972 | [
1,
812,
30,
632,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
27,
5340,
19,
9489,
19,
654,
39,
27,
5340,
3098,
3245,
18,
18281,
3502,
62,
881,
84,
292,
267,
30131,
331,
24,
18,
24,
18,
20,
261,
2316,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
27,
5340,
3098,
3245,
353,
4232,
39,
27,
5340,
288,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
2874,
12,
11890,
5034,
516,
533,
13,
3238,
389,
2316,
1099,
2520,
31,
203,
203,
565,
445,
1147... |
./full_match/1/0xec3567ae258639a0FF5A02F7eAF4E4aE4416C5fe/sources/contracts/0.4.24/nos/NodeOperatorsRegistry.sol | * @notice Returns total number of node operators/ | function getNodeOperatorsCount() public view returns (uint256) {
return TOTAL_OPERATORS_COUNT_POSITION.getStorageUint256();
}
| 17,070,872 | [
1,
1356,
2078,
1300,
434,
756,
12213,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5973,
24473,
1380,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
399,
19851,
67,
26110,
55,
67,
7240,
67,
15258,
18,
588,
3245,
5487,
5034,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x6e1781678ffE6CDc109fd3bC0833c47BD0F23de1/sources/contracts/libraries/Constants.sol | * @notice An address that identifies that current submission round is a public round./ | address internal constant VALIDATOR_PUBLIC_ROUND_ADDRESS = address(type(uint160).max);
| 16,157,894 | [
1,
979,
1758,
716,
25283,
716,
783,
8515,
3643,
353,
279,
1071,
3643,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1758,
2713,
5381,
15093,
3575,
67,
14939,
67,
15092,
67,
15140,
273,
1758,
12,
723,
12,
11890,
16874,
2934,
1896,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/42220/0x1905eC0769775179A9b2e042Ce0FD59E27fD407c/sources/contracts/token/bases/staking/StakedToken.sol | * @dev Internal ERC20 _transfer of the tokenized staked tokens @param from Address to transfer from @param to Address to transfer to @param amount Amount to transfer/ Sender Recipient if cooldown was set and whole balance of sender was transferred - clear cooldown | function _transfer(
address from,
address to,
uint256 amount
) internal override {
uint256 balanceOfFrom = balanceOf(from);
_updateCurrentUnclaimedRewards(from, balanceOfFrom, true);
if (from != to) {
uint256 balanceOfTo = balanceOf(to);
_... | 16,341,067 | [
1,
3061,
4232,
39,
3462,
389,
13866,
434,
326,
26073,
384,
9477,
2430,
225,
628,
5267,
358,
7412,
628,
225,
358,
5267,
358,
7412,
358,
225,
3844,
16811,
358,
7412,
19,
15044,
23550,
309,
27367,
2378,
1703,
444,
471,
7339,
11013,
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,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2254,
5034,
11013,
951,
1265,
273,
11013,
951,
12,
2080,
1769,
203,
3639,
389,
... |
./full_match/1/0x95f808db51579f9c7AC13e0B73075DB86016d0C6/sources/contracts/UnicusNft.sol | * @dev Returns balance of the ETH held by the contract. The amount of ETH that are held of finished auctions Calling conditions: - Only the owner of the smart contract i.e Unicus platform can invoke this @return the amount of ETH held/ | function ethBalance() public onlyOwner view returns(uint256) {
return address(this).balance - _getOngoingAuctionsBalances(false);
}
| 3,154,440 | [
1,
1356,
11013,
434,
326,
512,
2455,
15770,
635,
326,
6835,
18,
1021,
3844,
434,
512,
2455,
716,
854,
15770,
434,
6708,
279,
4062,
87,
21020,
4636,
30,
300,
5098,
326,
3410,
434,
326,
13706,
6835,
277,
18,
73,
1351,
335,
407,
4072,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13750,
13937,
1435,
1071,
1338,
5541,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
1758,
12,
2211,
2934,
12296,
300,
389,
588,
1398,
8162,
37,
4062,
87,
38,
26488,
12,
5743,
1769,
203,
565,
289,
203,
203,
2,
... |
./full_match/4/0xC2d0Ee71f7bd1406ef07B10C77c0A35FdB4B3Ee1/sources/localhost/CleverProtocol.sol | flush the escrow account with the corresponding percentage for this cycle and update payment flag | _cleverEscrow.withdrawWithGas(address(uint160(address(this))), cycle);
| 12,488,332 | [
1,
11330,
326,
2904,
492,
2236,
598,
326,
4656,
11622,
364,
333,
8589,
471,
1089,
5184,
2982,
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,
3639,
389,
2131,
502,
6412,
492,
18,
1918,
9446,
1190,
27998,
12,
2867,
12,
11890,
16874,
12,
2867,
12,
2211,
3719,
3631,
8589,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x17C714Bfb6C65bB88A223d4BF9e52aD4DF862F2f/sources/ETFUSDCAndCompound.sol | Contract(Fund) Status 0: not initialized 1: initialized 2: not enough fund came in in time 3: fundStarted 4: running 5: stoppped 6: closed | uint256 public fundStatus;
| 15,475,366 | [
1,
8924,
12,
42,
1074,
13,
2685,
374,
30,
486,
6454,
404,
30,
6454,
576,
30,
486,
7304,
284,
1074,
22497,
316,
316,
813,
890,
30,
284,
1074,
9217,
1059,
30,
3549,
1381,
30,
2132,
84,
1845,
1666,
30,
4375,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
284,
1074,
1482,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.5.9;
import "../contracts_common/Libraries/SigUtil.sol";
import "../contracts_common/Libraries/PriceUtil.sol";
import "../Sand.sol";
import "../Asset.sol";
import "../contracts_common/Interfaces/ERC20.sol";
import "../TheSandbox712.sol";
import "../contracts_common/BaseWithStorage/MetaTransactionRece... | @notice claim offer using Basic Signature @param buyer address paying for the offer @param seller address of the seller @param token token used for payment @param purchase buyAmount, maxTokenAmount @param auctionData offerId, startingPrice, endingPrice, startedAt, duration, packs @param ids ids of the Assets being sol... | function claimSellerOfferUsingBasicSig(
address buyer,
address payable seller,
address token,
uint256[] calldata auctionData,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata signature
) external payable {
_verifyParameters(
... | 918,034 | [
1,
14784,
10067,
1450,
7651,
9249,
225,
27037,
1758,
8843,
310,
364,
326,
10067,
225,
29804,
1758,
434,
326,
29804,
225,
1147,
1147,
1399,
364,
5184,
225,
23701,
30143,
6275,
16,
943,
1345,
6275,
225,
279,
4062,
751,
10067,
548,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7516,
22050,
10513,
7736,
8252,
8267,
12,
203,
3639,
1758,
27037,
16,
203,
3639,
1758,
8843,
429,
29804,
16,
203,
3639,
1758,
1147,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
279,
4062,
751,
16,
203,
3639,
2254,
5034,
8... |
/**
*Submitted for verification at Etherscan.io on 2022-01-26
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes call... | * @dev Implementation of the basic standard multi-token. _Available since v3.1._/ Mapping from token ID to account balances Mapping from account to operator approvals Used as the URI for all token types by relying on ID substitution, e.g. https:token-cdn-domain/{id}.json | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using Address for address;
mapping(uint256 => mapping(address => uint256)) private _balances;
mapping(address => mapping(address => bool)) private _operatorApprovals;
string private _uri;
}
constructor() {
}
... | 2,035,965 | [
1,
13621,
434,
326,
5337,
4529,
3309,
17,
2316,
18,
389,
5268,
3241,
331,
23,
18,
21,
6315,
19,
9408,
628,
1147,
1599,
358,
2236,
324,
26488,
9408,
628,
2236,
358,
3726,
6617,
4524,
10286,
487,
326,
3699,
364,
777,
1147,
1953,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
2499,
2539,
353,
1772,
16,
4232,
39,
28275,
16,
467,
654,
39,
2499,
2539,
16,
467,
654,
39,
2499,
2539,
2277,
3098,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
12,
11890,
5034,
516,
2874,
12,... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they sho... | Returns the license for tokens | function tokenLicense(uint _id) public view returns(string memory) {
require(_id < totalSupply(), "CHOOSE A PIXMON WITHIN RANGE");
return LICENSE_TEXT;
}
| 13,638,841 | [
1,
1356,
326,
8630,
364,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
13211,
12,
11890,
389,
350,
13,
1071,
1476,
1135,
12,
1080,
3778,
13,
288,
203,
3639,
2583,
24899,
350,
411,
2078,
3088,
1283,
9334,
315,
22213,
51,
1090,
432,
7024,
60,
17667,
13601,
706,
534,
8357,
8863,
203,
36... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./utils/AccessControlled.sol";
import "./items/Commodity.sol";
import "./interfaces/IGalacticTransitAuthority.sol";
/**
* @title Galactic Transit Authority (G... | * @notice Creates a spaceship and assigns ownership to sender @dev Spaceship ownership is a prerequisite for owning commodities @param _name What to name your spaceship/ | function buySpaceship(string _name) external payable {
require(msg.value == costOfSpaceship, "You need to provide the correct amount of ether");
require(balanceOf(msg.sender) == 0, "Accounts can only own one spaceship (for now)");
numSpaceships = numSpaceships.add(1);
uint _tokenId = numSpaceships;
... | 1,027,716 | [
1,
2729,
279,
7292,
5310,
471,
22698,
23178,
358,
5793,
225,
348,
4996,
5310,
23178,
353,
279,
30328,
16608,
1137,
364,
25022,
1543,
369,
1961,
225,
389,
529,
18734,
358,
508,
3433,
7292,
5310,
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,
0,
0,
0,
0,
0,
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,
30143,
12077,
5310,
12,
1080,
389,
529,
13,
3903,
8843,
429,
288,
203,
565,
2583,
12,
3576,
18,
1132,
422,
6991,
951,
12077,
5310,
16,
315,
6225,
1608,
358,
5615,
326,
3434,
3844,
434,
225,
2437,
8863,
203,
565,
2583,
... |
./partial_match/3/0xB404C889889Ab5e8186BFCD6A7C1DA05a68EEEe2/sources/FlamingFarm.sol | FlamingFarm with Governance. | contract FlamingFarm is ERC20("Flaming Farm", "FFARM"), Ownable {
uint256 private _totalLock;
mapping (address => bool) public minters;
uint256 private _cap = 500000000e18;
uint256 public _totalSupply;
uint256 public lockFromBlock;
uint256 public lockToBlock;
mapping(address => uint25... | 5,066,887 | [
1,
2340,
7772,
42,
4610,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3857,
7772,
42,
4610,
353,
4232,
39,
3462,
2932,
2340,
7772,
478,
4610,
3113,
315,
2246,
26120,
6,
3631,
14223,
6914,
288,
203,
565,
2254,
5034,
3238,
389,
4963,
2531,
31,
203,
565,
2874,
261,
2867,
516,
1426,
13,
1071,
11... |
pragma solidity ^0.4.0;
// interfaces in solodity
interface Regulator
{
// check if we have enough founds
function checkValue(uint amount) returns (bool);
}
// a contract in this case is a class
// in solidity classes does not exists anymore
// instead we have contracts
// Back is inherit from Regulator inte... | this comsumes all the gas | function testThrow()
{
}
| 7,234,442 | [
1,
2211,
532,
1364,
281,
777,
326,
16189,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
8282,
1435,
203,
565,
288,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity >=0.4.0 <0.7.0;
import "@chainlink/contracts/src/v0.4/ChainlinkClient.sol";
import "@chainlink/contracts/src/v0.4/vendor/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
contract JagerGitClient is ChainlinkClient, Ownable {
uint256 constant private ORACLE_PAYMENT = 1 * L... | * @dev list of all supported tokens for transfer @param string token symbol @param address contract address of token/ | mapping(bytes32 => address) public tokens;
| 999,045 | [
1,
1098,
434,
777,
3260,
2430,
364,
7412,
225,
533,
1147,
3273,
225,
1758,
6835,
1758,
434,
1147,
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,
225,
2874,
12,
3890,
1578,
516,
1758,
13,
1071,
2430,
31,
7010,
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,
-1... |
./partial_match/1/0xA55d9ef16Af921b70Fed1421C1D298Ca5A3a18F1/sources/StdReferenceBasic.sol | BandChain request identifier for this data.
| uint64 requestID; | 2,872,853 | [
1,
14231,
3893,
590,
2756,
364,
333,
501,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1105,
590,
734,
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/5/0xF549C95Cd7aE153bb194e9dE250E4D7963e1aCDc/sources/DigitalaxLPStaking.sol | @notice Unstake without caring about rewards. EMERGENCY ONLY. | function emergencyUnstake()
public
{
lpToken.safeTransfer(address(msg.sender), stakers[msg.sender].balance);
emit EmergencyUnstake(msg.sender, stakers[msg.sender].balance);
stakers[msg.sender].balance = 0;
stakers[msg.sender].rewardsEarned = 0;
}
| 16,849,137 | [
1,
984,
334,
911,
2887,
5926,
310,
2973,
283,
6397,
18,
7141,
654,
16652,
16068,
20747,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
801,
24530,
984,
334,
911,
1435,
7010,
3639,
1071,
203,
565,
288,
203,
3639,
12423,
1345,
18,
4626,
5912,
12,
2867,
12,
3576,
18,
15330,
3631,
384,
581,
414,
63,
3576,
18,
15330,
8009,
12296,
1769,
203,
3639,
3626,
512,... |
pragma solidity ^0.5.0;
contract CryptoTycoonsVIPLib{
address payable public owner;
// Accumulated jackpot fund.
uint128 public jackpotSize;
uint128 public rankingRewardSize;
mapping (address => uint) userExpPool;
mapping (address => bool) public callerMap;
event RankingRewa... | assembly 1111 constant 11 11 | function getWinRate(uint betMask) public pure returns (uint rate) {
uint ODD_EVEN_RATE = 50000;
uint LEFT_RIGHT_RATE = 45833;
uint MIX_ODD_RATE = 25000;
uint MIX_EVEN_RATE = 20833;
uint EQUAL_RATE = 8333;
assembly {
switch betMask
}
}
| 897,334 | [
1,
28050,
16344,
21,
5381,
4648,
4648,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13876,
267,
4727,
12,
11890,
2701,
5796,
13,
1071,
16618,
1135,
261,
11890,
4993,
13,
288,
203,
3639,
2254,
531,
5698,
67,
24427,
1157,
67,
24062,
273,
1381,
2787,
31,
203,
3639,
2254,
9686,
67,
11847,
67,
24062,
273,
1... |
./full_match/1/0xBcaDbCaBB69CCe22D134079969Eb08D3f644C2ce/sources/contracts/ThunderBot.sol | * @dev Sets the revenue share wallet address. Can only be called by the owner. @param _address Wallet address/ | function setRevShareWallet(address _address) public onlyOwner {
revShareWallet = _address;
}
| 4,862,011 | [
1,
2785,
326,
283,
24612,
7433,
9230,
1758,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
225,
389,
2867,
20126,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
10070,
9535,
16936,
12,
2867,
389,
2867,
13,
1071,
1338,
5541,
288,
203,
3639,
5588,
9535,
16936,
273,
389,
2867,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2021-09-23
*/
// File: contracts/Dependencies/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction an... | * @dev External function to set order by anyone. @param tokenAddress address Address of ERC1155 token contract @param id uint Id of ERC1155 token to sell @param amount uint Amount of target ERC1155 token to sell @param payTokenAddress address ERC20 address of token for payment @param fixedPrice uint Fixed price of tota... | function ask(
address tokenAddress,
uint id,
uint amount,
address payTokenAddress,
uint fixedPrice
)
external
nonReentrant
onlyPaymentWhitelist(payTokenAddress)
{
_checkOrderParams(msg.sender, tokenAddress, id, amount, fixedPrice);
Order m... | 15,272,385 | [
1,
6841,
445,
358,
444,
1353,
635,
1281,
476,
18,
225,
1147,
1887,
1758,
5267,
434,
4232,
39,
2499,
2539,
1147,
6835,
225,
612,
2254,
3124,
434,
4232,
39,
2499,
2539,
1147,
358,
357,
80,
225,
3844,
2254,
16811,
434,
1018,
4232,
39,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6827,
12,
203,
3639,
1758,
1147,
1887,
16,
203,
3639,
2254,
612,
16,
203,
3639,
2254,
3844,
16,
203,
3639,
1758,
8843,
1345,
1887,
16,
203,
3639,
2254,
5499,
5147,
203,
565,
262,
203,
565,
3903,
203,
565,
1661,
426,
8... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.3;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since whe... | * @dev Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role./ | function revokeRole(bytes32 role, address account) public virtual override {
require(
hasRole(getRoleAdmin(role), _msgSender()),
"AccessControl: sender must be an admin to revoke"
);
_revokeRole(role, account);
}
| 1,554,247 | [
1,
10070,
601,
281,
1375,
4615,
68,
628,
1375,
4631,
8338,
971,
1375,
4631,
68,
9323,
2118,
17578,
1375,
4615,
9191,
24169,
279,
288,
2996,
10070,
14276,
97,
871,
18,
29076,
30,
300,
326,
4894,
1297,
1240,
12176,
4615,
10335,
11,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
18007,
2996,
12,
3890,
1578,
2478,
16,
1758,
2236,
13,
1071,
5024,
3849,
288,
203,
565,
2583,
12,
203,
1377,
28335,
12,
588,
2996,
4446,
12,
4615,
3631,
389,
3576,
12021,
1435,
3631,
203,
1377,
315,
16541,
30,
5793,
129... |
// File: node_modules\@openzeppelin\contracts\introspection\IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then... | * @dev Returns the name of the given token id @param objectId the id of the token whose name you want to know/ | function name(uint256 objectId)
public
virtual
override
view
returns (string memory)
{
return asERC20(objectId).name();
}
| 320,515 | [
1,
1356,
326,
508,
434,
326,
864,
1147,
612,
225,
18010,
326,
612,
434,
326,
1147,
8272,
508,
1846,
2545,
358,
5055,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
508,
12,
11890,
5034,
18010,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
3849,
203,
3639,
1476,
203,
3639,
1135,
261,
1080,
3778,
13,
203,
565,
288,
203,
3639,
327,
487,
654,
39,
3462,
12,
1612,
548,
2934,
529,
5... |
pragma solidity ^0.4.25;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return ... | Assign Current time
| uint CurrentTime = now; | 12,716,860 | [
1,
4910,
6562,
813,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
6562,
950,
273,
2037,
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/1/0x312d25CAFdd6822C7B5dcdC8C7434E72f6E39C19/sources/FixedSupplyToken.sol | ------------------------------------------------------------------------ Transfer the balance from token owner's account to `to` account - Owner's account must have sufficient balance to transfer - 0 value transfers are allowed ------------------------------------------------------------------------ | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| 9,212,066 | [
1,
29461,
12279,
326,
11013,
628,
1147,
3410,
1807,
2236,
358,
1375,
869,
68,
2236,
300,
16837,
1807,
2236,
1297,
1240,
18662,
11013,
358,
7412,
300,
374,
460,
29375,
854,
2935,
8879,
17082,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
358,
16,
2254,
2430,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
324,
26488,
63,
3576,
18,
15330,
65,
273,
324,
26488,
63,
3576,
18,
15330,
8009,
1717,
12,
7860,
1769,
203,
3639,
324,
26488,
6... |
./full_match/1/0x6fA5E1c43b5a466CBD1CAe7993B67C982400d481/sources/contracts/COIN.sol | exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract COINBOT is ERC20 {
using SafeMath for uint256;
bool private swapping;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public revShareAddress;
address public teamAddress;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmoun... | 3,061,941 | [
1,
10157,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
358,
4259,
6138,
3377,
506,
3221,
358,
279,
4207,
7412,
3844,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
385,
6266,
38,
1974,
353,
4232,
39,
3462,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
1426,
3238,
7720,
1382,
31,
203,
225,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91... |
pragma solidity ^0.5.16;
import "./ERC721/ERC721Token.sol";
/**
* @title Repository of ERC721 Deeds
* This contract contains the list of deeds registered by users.
* This is a demo to show how tokens (deeds) can be minted and added
* to the repository.
*/
contract DeedRepository is ERC721Token {
/**
* ... | * @title Repository of ERC721 Deeds This contract contains the list of deeds registered by users. This is a demo to show how tokens (deeds) can be minted and added to the repository./ | contract DeedRepository is ERC721Token {
constructor(string memory _name, string memory _symbol)
public ERC721Token(_name, _symbol) {}
function registerDeed(uint256 _tokenId, string memory _uri) public {
_mint(msg.sender, _tokenId);
addDeedMetadata(_tokenId, _uri);
emit D... | 14,093,555 | [
1,
3305,
434,
4232,
39,
27,
5340,
1505,
9765,
1220,
6835,
1914,
326,
666,
434,
443,
9765,
4104,
635,
3677,
18,
1220,
353,
279,
21477,
358,
2405,
3661,
2430,
261,
323,
9765,
13,
848,
506,
312,
474,
329,
471,
3096,
358,
326,
3352,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1505,
329,
3305,
353,
4232,
39,
27,
5340,
1345,
288,
203,
203,
203,
565,
3885,
12,
1080,
3778,
389,
529,
16,
533,
3778,
389,
7175,
13,
7010,
377,
203,
3639,
1071,
4232,
39,
27,
5340,
1345,
24899,
529,
16,
389,
7175,
13,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract HappyNftFriendz is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
stri... | * Function to REMOVE address from promoters list/ | function removePromoter (address _user) internal {
for(uint256 i = 0; i < promoterzAddresses.length; i++) {
if(promoterzAddresses[i] == _user) {
delete promoterzAddresses[i];
}
}
}
| 12,803,864 | [
1,
2083,
358,
26056,
1758,
628,
3012,
352,
414,
666,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1206,
13224,
20005,
261,
2867,
389,
1355,
13,
2713,
288,
203,
1377,
364,
12,
11890,
5034,
277,
273,
374,
31,
277,
411,
3012,
20005,
94,
7148,
18,
2469,
31,
277,
27245,
288,
203,
1850,
309,
12,
17401,
20005,
94,
7148,
... |
./full_match/43113/0xf0f8d1C714Df54CD71336fB9db024f71a5214e0D/sources/project_/contracts/Pmm.sol | setFirstAddressInternal(user); set first address ????? tis(referral); | function join(address referral) public payable nonReentrant {
require(referrerOfUser[referral] != address(0), "referral not join");
address user = msg.sender;
uint256 _amount = msg.value;
require(identityOfUser[user] == 0, "had joined");
require(_amount == allAmount, "amount ... | 7,137,866 | [
1,
542,
3759,
1887,
3061,
12,
1355,
1769,
444,
1122,
1758,
225,
5317,
14646,
35,
268,
291,
12,
1734,
29084,
1769,
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,
1233,
12,
2867,
1278,
29084,
13,
1071,
8843,
429,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
1734,
11110,
951,
1299,
63,
1734,
29084,
65,
480,
1758,
12,
20,
3631,
315,
1734,
29084,
486,
1233,
8863,
203,
3639,
1758,... |