file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/42/0xdAa3FE53131B717E32ED0962694F4fB5D9525528/sources/contracts/MockHoprToken.sol | * @dev Creates `amount` new tokens for `to`. See {ERC20-_mint}. Requirements: - the caller must have the `MINTER_ROLE`./ require(hasRole(MINTER_ROLE, msg.sender), "HoprToken: caller does not have minter role"); | function mint(
address account,
uint256 amount,
bytes memory userData,
bytes memory operatorData
) public {
_mint(account, amount, userData, operatorData);
}
| 16,263,403 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
394,
2430,
364,
1375,
869,
8338,
2164,
288,
654,
39,
3462,
17,
67,
81,
474,
5496,
29076,
30,
300,
326,
4894,
1297,
1240,
326,
1375,
6236,
2560,
67,
16256,
8338,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
12,
203,
3639,
1758,
2236,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
3778,
13530,
16,
203,
3639,
1731,
3778,
3726,
751,
203,
565,
262,
1071,
288,
203,
3639,
389,
81,
474,
12,
4631,
16,
3844,
16,
... |
//Address: 0xf1f4886c8fdf3ee1fc5aced99dd11b0b593ee88c
//Contract name: SharderToken
//Balance: 0 Ether
//Verification Date: 2/22/2018
//Transacion Count: 1
// CODE STARTS HERE
/*
Copyright 2017 Sharder Foundation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except... | @dev Set admin account. | function setAdmin(address _address) public onlyOwner {
admin=_address;
}
| 12,690,086 | [
1,
4625,
348,
7953,
560,
30,
632,
5206,
1000,
3981,
2236,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4446,
12,
2867,
389,
2867,
13,
1071,
1338,
5541,
288,
203,
4202,
3981,
33,
67,
2867,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/84531/0x4Af7A52200C3CA3a417b1a7c93aCd32F1FD20421/sources/browser/MiraqleFinance.sol | BitberrySwap with Governance. | contract MiraqleDefi is ERC20("Miraqle Defi", "QFI"), Ownable {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
}
}
| 14,317,537 | [
1,
4625,
348,
7953,
560,
30,
225,
6539,
70,
21938,
12521,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
490,
11547,
85,
298,
3262,
77,
353,
4232,
39,
3462,
2932,
49,
11547,
85,
298,
10922,
77,
3113,
315,
53,
1653,
6,
3631,
14223,
6914,
288,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
... |
./full_match/11155111/0xA7C6228734D7636B42bA28a97703dD2f91671f4E/sources/contracts/Crowdfunding.sol | what we will be getting from the frontend
| uint256 amount = msg.value; | 3,800,957 | [
1,
4625,
348,
7953,
560,
30,
225,
4121,
732,
903,
506,
8742,
628,
326,
15442,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
2254,
5034,
3844,
273,
1234,
18,
1132,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-10
*/
// Verified using https://dapp.tools
// hevm: flattened sources of src/Relief.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;
////// lib/openzeppelin-contracts/contracts/utils/Context.sol
/... | 0.645% maxTransactionAmountTxn
| maxTransactionAmount = (totalSupply * 645) / 100000; | 10,959,835 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
18,
1105,
25,
9,
943,
3342,
6275,
13789,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
943,
3342,
6275,
273,
261,
4963,
3088,
1283,
380,
5178,
25,
13,
342,
25259,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.6.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 should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions... | * @dev Implementation of the {IERC165} interface. Contracts may inherit from this and call {_registerInterface} to declare their support of an interface./ | contract ERC165 is IERC165 {
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
mapping(bytes4 => bool) private _supportedInterfaces;
}
constructor () internal {
_registerInterface(_INTERFACE_ID_ERC165);
}
function supportsInterface(bytes4 interfaceId) external view override retur... | 1,102,537 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
28275,
97,
1560,
18,
30131,
2026,
6811,
628,
333,
471,
745,
288,
67,
4861,
1358,
97,
358,
14196,
3675,
2865,
434,
392,
1560,
18,
19,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
28275,
353,
467,
654,
39,
28275,
288,
203,
565,
1731,
24,
3238,
5381,
389,
18865,
67,
734,
67,
654,
39,
28275,
273,
374,
92,
1611,
1403,
71,
29,
69,
27,
31,
203,
203,
565,
2874,
12,
3890,
24,
516,
1426,
13,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.9; // code below expects that integer overflows will revert
import "./AreaNFT.sol";
import "./RandomDropVending.sol";
import "./Utilities/PlusCodes.sol";
import "./Vendor/openzeppelin-contracts-3dadd40034961d5ca75fa209a4188b01d7129501/access/Ownable.sol";
///... | This stores element values and cannot represent an underlying value of zero. A zero value at index i represents an element of (i+1). Any other value stored in the array represents an element of that value. We employ this technique because all storage in Solidity starts at zero. e.g. the array [0, 135, 243, 0, 500] rep... | struct Self {
mapping(uint256 => uint256) elements;
uint256 length;
}
| 1,464,449 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
9064,
930,
924,
471,
2780,
2406,
392,
6808,
460,
434,
3634,
18,
432,
3634,
460,
622,
770,
277,
8686,
392,
930,
434,
261,
77,
15,
21,
2934,
5502,
1308,
460,
4041,
316,
326,
526,
8686,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
18954,
288,
203,
3639,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
2186,
31,
203,
203,
3639,
2254,
5034,
769,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity 0.4.24;
/// @title A contract for enforcing a treasure hunt
/// @author John Fitzpatrick
/// @author Sam Pullman
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets th... | @notice Submit a location key XOR'd with a password for later verification @notice The message value must be greater than `cost` @param encryptKey A location key encrypted with a user password @param locationNumber The index of the location | function submitLocation(uint encryptKey, uint8 locationNumber) public payable {
require(encryptKey != 0);
require(locationNumber < locations.length);
if (!grace) {
require(msg.value >= cost);
ownersBalance += cost - contribution;
pot += contribution;
... | 7,896,885 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
17320,
279,
2117,
498,
28086,
18642,
5520,
31,
72,
598,
279,
2201,
364,
5137,
11805,
632,
20392,
1021,
883,
460,
1297,
506,
6802,
2353,
1375,
12398,
68,
632,
891,
7347,
653,
432,
2117,
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,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4879,
2735,
12,
11890,
7347,
653,
16,
2254,
28,
2117,
1854,
13,
1071,
8843,
429,
288,
203,
203,
3639,
2583,
12,
15890,
653,
480,
374,
1769,
203,
3639,
2583,
12,
3562,
1854,
411,
7838,
18,
2469,
1769,
203,
203,
3639,
3... |
./full_match/42/0x5b86932eA205A9A5a4BFC8370A3cE42919Da7812/sources/contracts/MockToken.sol | 100 million tokens
| tokenTotalSupply = 100000000000000000000000000; | 16,235,562 | [
1,
4625,
348,
7953,
560,
30,
225,
2130,
312,
737,
285,
2430,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
5269,
3088,
1283,
273,
2130,
12648,
12648,
12648,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/4/0x6Dd5e48aD73Cb793d1c1Fb7787351ADc16D04738/sources/FECORE.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint256 public _min... | 8,675,569 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
6835,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
3639,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
3639,
1450,
5267,
364,
1758,
31,
203,
203,
3639,
2874,
12,
2867,
516,
2254,
5034,
13,
... |
./full_match/80001/0xF0C96e4697A33DC34eAe7dc7eA69f893029458d9/sources/contracts/dnssec-oracle/DNSSECImpl.sol | @dev An oracle contract that verifies and stores DNSSEC-validated DNS records. TODO: Support for NSEC3 records/ | contract DNSSECImpl is DNSSEC, Owned {
using Buffer for Buffer.buffer;
using BytesUtils for bytes;
using RRUtils for *;
uint16 constant DNSCLASS_IN = 1;
uint16 constant DNSTYPE_NS = 2;
uint16 constant DNSTYPE_SOA = 6;
uint16 constant DNSTYPE_DNAME = 39;
uint16 constant DNSTYPE_DS = 43;... | 5,566,411 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1922,
20865,
6835,
716,
20761,
471,
9064,
8858,
11944,
17,
877,
690,
8858,
3853,
18,
2660,
30,
13619,
364,
423,
11944,
23,
3853,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8858,
11944,
2828,
353,
8858,
11944,
16,
14223,
11748,
288,
203,
565,
1450,
3525,
364,
3525,
18,
4106,
31,
203,
565,
1450,
5985,
1989,
364,
1731,
31,
203,
565,
1450,
21618,
1989,
364,
380,
31,
203,
203,
565,
2254,
2313,
53... |
// File: openzeppelin-solidity-2.3.0/contracts/ownership/Ownable.sol
pragma solidity ^0.5.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance... | @dev Execute worker strategy. Take LP tokens + ETH. Return LP tokens + ETH. @param user User address to withdraw liquidity. @param debt Debt amount in WAD of the user. @param data Extra calldata information passed along to this strategy. 1. Find out what farming token we are dealing with. 2. Remove all liquidity back ... | function execute(address user, uint256 debt, bytes calldata data) external payable nonReentrant {
(address fToken, uint256 minFToken) = abi.decode(data, (address, uint256));
IUniswapV2Pair lpToken = IUniswapV2Pair(factory.getPair(fToken, weth));
lpToken.approve(address(router), uint256(-1));... | 1,150,587 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
7903,
4322,
6252,
18,
17129,
511,
52,
2430,
397,
512,
2455,
18,
2000,
511,
52,
2430,
397,
512,
2455,
18,
632,
891,
729,
2177,
1758,
358,
598,
9446,
4501,
372,
24237,
18,
632,
891,
18202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1836,
12,
2867,
729,
16,
2254,
5034,
18202,
88,
16,
1731,
745,
892,
501,
13,
3903,
8843,
429,
1661,
426,
8230,
970,
288,
203,
3639,
261,
2867,
284,
1345,
16,
2254,
5034,
1131,
42,
1345,
13,
273,
24126,
18,
3922,
12,
... |
./partial_match/42/0xd488a6Ce267DDa71C8bfA3Edf78BB135002Bc22f/sources/SecondContract.sol | require(value>100000,address(this)); require(usdt.approve(address(this), value) == true, "Approve has failed"); require(usdt.approve(address(this), value) == false, "Approve has failed"); usdt.transfer(address(this), value); usdt.approve(address(this), value); | function swapUSDT(uint256 value) public {
usdt.transferFrom(msg.sender, address(this), value);
}
| 8,869,923 | [
1,
4625,
348,
7953,
560,
30,
225,
2583,
12,
1132,
34,
21,
11706,
16,
2867,
12,
2211,
10019,
2583,
12,
407,
7510,
18,
12908,
537,
12,
2867,
12,
2211,
3631,
460,
13,
422,
638,
16,
315,
12053,
537,
711,
2535,
8863,
2583,
12,
407,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7720,
3378,
9081,
12,
11890,
5034,
460,
13,
1071,
288,
203,
3639,
584,
7510,
18,
13866,
1265,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3631,
460,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "./GovVotes.sol";
/**
* @dev Extension of {Governor} for voting weight extraction from an {ERC20... | * @dev Extension of {Governor} for voting weight extraction from an {ERC20Votes} token and a quorum expressed as a fraction of the total supply. _Available since v4.3._/ | abstract contract GovVotesQuorumFraction is Initializable, GovVotes {
using SafeMathUpgradeable for uint256;
uint256 private _quorumNumerator;
event QuorumNumeratorUpdated(uint256 oldQuorumNumerator, uint256 newQuorumNumerator);
function __GovVotesQuorumFraction_init(uint256 quorumNumeratorValue) in... | 12,558,709 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10021,
434,
288,
43,
1643,
29561,
97,
364,
331,
17128,
3119,
18752,
628,
392,
288,
654,
39,
3462,
29637,
97,
1147,
471,
279,
31854,
26863,
487,
279,
8330,
434,
326,
2078,
14467,
18,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
611,
1527,
29637,
31488,
13724,
353,
10188,
6934,
16,
611,
1527,
29637,
288,
203,
565,
1450,
14060,
10477,
10784,
429,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
3238,
389,
372,
16105,
2578,
7385,
31,
203,
203,
56... |
pragma solidity ^0.4.13;
library SafeMath {
function sub(uint a, uint b) internal returns (uint) {
assert(b <= a);
return a - b;
}
function add(uint a, uint b) internal returns (uint) {
uint c = a + b;
assert(c >= a);
return c;
}
}
contract ERC20Basic {
uint public totalSupply;
address... | lottery is open even before swap space (hashes) is ready, but player must collect results within 256 blocks after run
| if(hashFirst>0){ | 2,111,737 | [
1,
4625,
348,
7953,
560,
30,
225,
17417,
387,
93,
353,
1696,
5456,
1865,
7720,
3476,
261,
17612,
13,
353,
5695,
16,
1496,
7291,
1297,
3274,
1686,
3470,
8303,
4398,
1839,
1086,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
309,
12,
2816,
3759,
34,
20,
15329,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/77/0x8C09e7c5b158e724e9bDC1D07232E6f6950ba043/sources/contracts/registries/LineRegistry.sol | @inheritdoc ILineRegistry | function hope(bytes32 line, bytes32 which) external auth {
gatekeeper[line][which] = 1;
}
| 5,046,751 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
1670,
4243,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27370,
12,
3890,
1578,
980,
16,
1731,
1578,
1492,
13,
3903,
1357,
288,
203,
3639,
12611,
79,
9868,
63,
1369,
6362,
12784,
65,
273,
404,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/84531/0x66060aCe714aF665044c75b54e4e039182757a44/sources/contracts/relayer/SiloWrapping.sol | * @title SiloWrapping @notice Allows users to wrap and unwrap Silo shareTokens @dev All functions must be payable so they can be called from a multicall involving ETH/ | abstract contract SiloWrapping is IBaseRelayerLibrary {
function wrapShareToken(
IShareToken wrappedToken,
address sender,
address recipient,
uint256 amount,
uint256 outputReference
) external payable {
IERC20 underlyingToken = IERC20(wrappedToken.asset());
... | 14,308,968 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
348,
31703,
30888,
632,
20392,
25619,
3677,
358,
2193,
471,
11014,
348,
31703,
7433,
5157,
632,
5206,
4826,
4186,
1297,
506,
8843,
429,
1427,
2898,
848,
506,
2566,
628,
279,
1778,
335,
454,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17801,
6835,
348,
31703,
30888,
353,
467,
2171,
1971,
1773,
9313,
288,
203,
565,
445,
2193,
9535,
1345,
12,
203,
3639,
467,
9535,
1345,
5805,
1345,
16,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
... |
./partial_match/1/0x8d0FcB0251081873ee725e184d6e0618107db196/sources/Baby$DIE.sol | allows Team to change token name and symbol. | function updateTokenDetails(string memory newName, string memory newSymbol)
external
authorized
{
_name = newName;
_symbol = newSymbol;
}
| 15,938,017 | [
1,
4625,
348,
7953,
560,
30,
5360,
10434,
358,
2549,
1147,
508,
471,
3273,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
1345,
3790,
12,
1080,
3778,
13253,
16,
533,
3778,
394,
5335,
13,
203,
3639,
3903,
203,
3639,
10799,
203,
565,
288,
203,
3639,
389,
529,
273,
13253,
31,
203,
3639,
389,
7175,
273,
394,
5335,
31,
203,
565,
289,
20... |
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal... | The max number of NFT supply The max number of mintable per mint The number of NFT that the owner has. Token Base URI Co-prime numbers to generate random numbers formula: ((A * x) + B) mod N, where x is the index and N is the Max number. Current sale status true: Open for everyone false: closed. Only open for the whit... | contract CogecoinNFT is ERC721Enumerable, Ownable, Pausable {
using SafeMath for uint256;
uint public constant MAX_SUPPLY = 5000;
uint public constant MAX_PER_MINT = 10;
uint public constant OWNER_RESERVED = 10;
string public baseTokenURI;
uint private constant _A_RANDOM = 997;
uint p... | 11,978,707 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
943,
1300,
434,
423,
4464,
14467,
1021,
943,
1300,
434,
312,
474,
429,
1534,
312,
474,
1021,
1300,
434,
423,
4464,
716,
326,
3410,
711,
18,
3155,
3360,
3699,
7695,
17,
16382,
5600,
358,
2103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
385,
717,
557,
885,
50,
4464,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
377,
203,
565,
2254,
1071,
5381,
4552,
67,
13272,
23893,
2... |
/**
*Submitted for verification at Etherscan.io on 2020-02-11
*/
// File: @aragon/os/contracts/common/EtherTokenConstant.sol
/*
* SPDX-License-Identitifer: MIT
*/
pragma solidity ^0.4.24;
// aragonOS and aragon-apps rely on address(0) to denote native ETH, in
// contracts where both tokens and ETH are accept... | * @notice Contribute to the presale up to `@tokenAmount(self.contributionToken(): address, _value)` @param _value The amount of contribution token to be spent/ | function contribute(uint256 _value) external payable auth(CONTRIBUTE_ROLE) {
presale.contribute.value(msg.value)(msg.sender, _value);
}
| 451,706 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
735,
887,
358,
326,
4075,
5349,
731,
358,
1375,
36,
2316,
6275,
12,
2890,
18,
591,
4027,
1345,
13332,
1758,
16,
389,
1132,
22025,
632,
891,
389,
1132,
1021,
3844,
434,
24880,
1147,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
356,
887,
12,
11890,
5034,
389,
1132,
13,
3903,
8843,
429,
1357,
12,
6067,
2259,
8885,
67,
16256,
13,
288,
203,
3639,
4075,
5349,
18,
591,
887,
18,
1132,
12,
3576,
18,
1132,
21433,
3576,
18,
15330,
16,
389,
1132,
1769... |
./full_match/1/0x4ce9975a510D9b02ECCa7541bc94C5530C1B1929/sources/contracts/Token.sol | * @notice Update the pair path used for checking the minimum buy condition. @param _path Path that will be used over router./ | function updatePairPath(address[] memory _path) external onlyOwner {
require(_path.length > 1, "Pair should contains at least 2 addresses");
pairPath = _path;
emit UpdatePairPath(_path);
}
| 2,926,906 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2315,
326,
3082,
589,
1399,
364,
6728,
326,
5224,
30143,
2269,
18,
632,
891,
389,
803,
2666,
716,
903,
506,
1399,
1879,
4633,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
4154,
743,
12,
2867,
8526,
3778,
389,
803,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
803,
18,
2469,
405,
404,
16,
315,
4154,
1410,
1914,
622,
4520,
576,
6138,
8863,
203,
3639,
3082,
743,
273,
389,
803,
... |
./full_match/80001/0xf09c3eceCDbc802Ec52AA160E4c699B966b19a8d/sources/contracts/ZoraAsks.sol | @notice Creates the ask for a given NFT using Zora V3 Module (Asks V1.1) | function createAsk() public {
IAsksV1_1(zoraAsksV1_1).createAsk(
address(this),
1,
1,
address(0),
sellerFundsRecipient,
1000
);
}
| 5,570,509 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10210,
326,
6827,
364,
279,
864,
423,
4464,
1450,
2285,
10610,
776,
23,
5924,
261,
1463,
7904,
776,
21,
18,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
23663,
1435,
1071,
288,
203,
3639,
467,
1463,
7904,
58,
21,
67,
21,
12,
94,
10610,
1463,
7904,
58,
21,
67,
21,
2934,
2640,
23663,
12,
203,
5411,
1758,
12,
2211,
3631,
203,
5411,
404,
16,
203,
5411,
404,
16,
203... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.2;
pragma experimental ABIEncoderV2;
import { SafeMath } from '@openzeppelin/contracts/math/SafeMath.sol';
import { IERC20 } from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import { SafeERC20 } from '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
impor... | * @dev funtion to add some custom logic to check the next otoken is valid to this strategy this hook is triggered while action owner calls "commitNextOption" so accessing otoken will give u the current otoken./ Can override or replace this. | function _customOTokenCheck(address _nextOToken) internal override view {
IOToken nextToken = IOToken(_nextOToken);
require(_isValidStrike(nextToken.strikePrice(), nextToken.underlyingAsset()), 'S8');
require (_isValidExpiry(nextToken.expiryTimestamp()), 'S9');
| 1,583,981 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9831,
24252,
358,
527,
2690,
1679,
4058,
358,
866,
326,
1024,
320,
2316,
353,
923,
358,
333,
6252,
333,
3953,
353,
10861,
1323,
1301,
3410,
4097,
315,
7371,
2134,
1895,
6,
1427,
19531,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
445,
389,
3662,
51,
1345,
1564,
12,
2867,
389,
4285,
51,
1345,
13,
2713,
3849,
1476,
288,
203,
565,
1665,
1345,
9617,
273,
1665,
1345,
24899,
4285,
51,
1345,
1769,
203,
377,
2583,
24899,
26810,
1585,
2547,
12,
4285,
1345,
18... |
/**
*Submitted for verification at Etherscan.io on 2021-04-16
*/
// File: contracts/interfaces/IBridgeValidators.sol
pragma solidity 0.4.24;
interface IBridgeValidators {
function isValidator(address _validator) external view returns (bool);
function requiredSignatures() external view returns (uint256);
... | * @dev Validates provided signatures and relays a given message. Allows to override the gas limit of the passed message. Usually it makes sense to provide a higher amount of gas for the execution. The message is not allowed to fail. The whole tx will be revered if message fails. @param _data bytes to be relayed @param ... | function safeExecuteSignaturesWithGasLimit(bytes _data, bytes _signatures, uint32 _gas) public {
_allowMessageExecution(_data, _signatures);
bytes32 msgId;
address sender;
address executor;
uint8 dataType;
uint256[2] memory chainIds;
bytes memory data;
... | 2,188,962 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2364,
815,
2112,
14862,
471,
1279,
8271,
279,
864,
883,
18,
25619,
358,
3849,
326,
16189,
1800,
434,
326,
2275,
883,
18,
29785,
518,
7297,
12764,
358,
5615,
279,
10478,
3844,
434,
16189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4183,
5289,
23918,
1190,
27998,
3039,
12,
3890,
389,
892,
16,
1731,
389,
30730,
16,
2254,
1578,
389,
31604,
13,
1071,
288,
203,
3639,
389,
5965,
1079,
3210,
24899,
892,
16,
389,
30730,
1769,
203,
203,
3639,
1731,
1578,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract WMASSAirdrop is Ownable... | Update reward variables of the given pool to be up-to-date. | function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfos[_pid];
uint256 number = block.number > endBlock ? endBlock : block.number;
if (number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply;
if (pool.lpToken == wmass) {
... | 14,116,450 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
7655,
63,
67,
6610,
15533,
203,
3639,
2254,
5034,
1300,
273,
1203,
18,
2696,
405,
679,
1768,
692,
679,
1768,
294,
1203,... |
pragma solidity ^0.4.18;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract Token {
/// total amount of tokens
uint256 public totalSupply;
/// @param _owner The address from which the balance will be retrieved
/// ... | Prevent transfer to 0x0 address. Check if the sender has enough Check for overflows Asserts are used to use static analysis to find bugs in your code. They should never fail | (This implements ONLY the standard functions and NOTHING else.
If you deploy this, you won't have anything useful.)
.*/
function transfer(address _to, uint256 _value) public returns (bool success) {
require(_to != 0x0);
require(balances[msg.sender] >= _value);
require(balances[_to] + _valu... | 1,238,826 | [
1,
4625,
348,
7953,
560,
30,
225,
19412,
7412,
358,
374,
92,
20,
1758,
18,
2073,
309,
326,
5793,
711,
7304,
2073,
364,
9391,
87,
5452,
87,
854,
1399,
358,
999,
760,
6285,
358,
1104,
22398,
316,
3433,
981,
18,
16448,
1410,
5903,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12,
2503,
4792,
20747,
326,
4529,
4186,
471,
4269,
44,
1360,
469,
18,
203,
2047,
1846,
7286,
333,
16,
1846,
8462,
1404,
1240,
6967,
5301,
12998,
203,
203,
4509,
19,
203,
203,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
... |
pragma solidity 0.4.25;
pragma experimental ABIEncoderV2;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function allowanc... | @notice Perform a sell order at the exchange @dev Uses the `onlyTotle` modifier with public visibility as this function should only be called from functions which are inherited from the ExchangeHandler base contract Uses `whenNotPaused` modifier to revert transactions when contract is "paused". @param data OrderData s... | function performSellOrder(
OrderData data,
uint256 amountToSpend
)
public
whenNotPaused
onlyTotle
returns (uint256 amountSpentOnOrder, uint256 amountReceivedFromOrder)
{
uint256 maxPayGem;
address payGem;
uint256 maxBuyGem;
address buyG... | 14,077,479 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11217,
279,
357,
80,
1353,
622,
326,
7829,
632,
5206,
14854,
326,
1375,
3700,
18801,
298,
68,
9606,
598,
1071,
9478,
487,
333,
445,
1410,
1338,
506,
2566,
628,
4186,
1492,
854,
12078,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3073,
55,
1165,
2448,
12,
203,
3639,
4347,
751,
501,
16,
203,
3639,
2254,
5034,
3844,
774,
27223,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1347,
1248,
28590,
203,
3639,
1338,
18801,
298,
203,
3639,
1135,
261,
11890,
5... |
./partial_match/56/0x9C387964D1650af1F6fE28CcE0EA5483208F87C2/sources/BSCstarterPresale.sol | min fee amount going to dev AND BSCS hodlers
| uint256 private minDevFeeInWei = 5 ether; | 11,036,106 | [
1,
4625,
348,
7953,
560,
30,
225,
1131,
14036,
3844,
8554,
358,
4461,
4116,
605,
2312,
55,
366,
369,
3135,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
1131,
8870,
14667,
382,
3218,
77,
273,
1381,
225,
2437,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
import {SushiswapV2Library} from "@mochifi/library/contracts/SushiswapV2Library.sol";
import {UQ112x112} from "@mochifi/library/contracts/UQ112x112.sol";
import {BlockVerifier} from "@mochifi/library/contracts/BlockVerifier.sol";
import {Merk... | Get the full length of an Item. | function _itemLength(uint memPtr) private pure returns (uint len) {
uint b0;
assembly {
b0 := byte(0, mload(memPtr))
}
if (b0 < DATA_SHORT_START)
len = 1;
else if (b0 < DATA_LONG_START)
len = b0 - DATA_SHORT_START + 1;
else if (b0 <... | 10,288,734 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
326,
1983,
769,
434,
392,
4342,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1726,
1782,
12,
11890,
1663,
5263,
13,
3238,
16618,
1135,
261,
11890,
562,
13,
288,
203,
3639,
2254,
324,
20,
31,
203,
3639,
19931,
288,
203,
5411,
324,
20,
519,
1160,
12,
20,
16,
312,
945,
12,
3917,
5263,
3719,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import "./interfaces/IDiamondCut.sol";
import "./interfaces/IDiamondLoupe.sol";
import "./libraries/LibDiamond.sol";
import "./libraries/LibOwnership.sol";
import "./libraries/LibDiamondStorage.sol";
import "./interfaces/IE... | Diamond Loupe Functions struct Facet { address facetAddress; bytes4[] functionSelectors; } | contract DiamondLoupeFacet is IDiamondLoupe, IERC165 {
pragma solidity 0.7.6;
function facets() external override view returns (Facet[] memory facets_) {
LibDiamondStorage.DiamondStorage storage ds = LibDiamondStorage.diamondStorage();
uint256 selectorCount = ds.selectors.length;
facets_ = ... | 607,713 | [
1,
4625,
348,
7953,
560,
30,
225,
12508,
301,
1434,
511,
1395,
347,
15486,
1958,
31872,
288,
377,
1758,
11082,
1887,
31,
377,
1731,
24,
8526,
445,
19277,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
12508,
301,
1434,
48,
1395,
347,
11137,
353,
1599,
29401,
1434,
48,
1395,
347,
16,
467,
654,
39,
28275,
288,
203,
683,
9454,
18035,
560,
374,
18,
27,
18,
26,
31,
203,
565,
445,
21681,
1435,
3903,
3849,
1476,
1135,
261,
1... |
pragma solidity ^0.5.12;
import "./IERC721.sol";
import "./IRC721Receiver.sol";
import "./PandaStorage.sol";
contract PandaToken is IERC721, Ownable, PandaStorage, Initializable{
function initialize(string memory _tName, string memory _tSymbol) public initializer{
_TokenName= _tName;
_TokenSymbo... | _from address is the token owner
| require(_from == _PandaOwner[_tokenId],"_isApprovedOrOwner: Not the owner of the Token"); | 958,837 | [
1,
4625,
348,
7953,
560,
30,
389,
2080,
1758,
353,
326,
1147,
3410,
3639,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
24899,
2080,
422,
389,
52,
464,
69,
5541,
63,
67,
2316,
548,
6487,
6,
67,
291,
31639,
1162,
5541,
30,
2288,
326,
3410,
434,
326,
3155,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | в этом районе кишмя кишели разбойники и драконы. (КИШЕТЬ)
| rus_verbs:КИШЕТЬ{}, | 5,480,907 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
115,
225,
146,
240,
146,
229,
145,
127,
145,
125,
225,
146,
227,
145,
113,
145,
122,
145,
127,
145,
126,
145,
118,
225,
145,
123,
145,
121,
146,
235,
145,
125,
146,
242,
225,
145,
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,
436,
407,
67,
502,
2038,
30,
145,
253,
145,
251,
145,
106,
145,
248,
145,
100,
145,
110,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// ERC1155.sol - Bloom Finance
// MIT License
// Copyright (c) 2020 Rob Secord <robsecord.eth>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without lim... | * @notice Gets the Approved Operator of a specific Token @param _tokenId The ID of the Token @return The address of the approved operator/ | function getApproved(uint256 _tokenId) public view returns (address) {
address owner = ownerOf(_tokenId);
require(owner != address(0x0), "ERC1155: INVALID_TOKEN_ID");
return tokenApprovals[_tokenId];
}
| 5,512,960 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11881,
326,
1716,
685,
2155,
11097,
434,
279,
2923,
3155,
632,
891,
389,
2316,
548,
225,
1021,
1599,
434,
326,
3155,
632,
2463,
225,
1021,
1758,
434,
326,
20412,
3726,
19,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
31639,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
1758,
3410,
273,
3410,
951,
24899,
2316,
548,
1769,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
92,
20,
3631,
315,
65... |
./full_match/432204/0xDD23b1253020B8C66DB630fc091D1cC3E984A878/sources/contracts/OrderBooks.sol | version orderbook structure defining one sell or buy book | contract OrderBooks is Initializable, AccessControlEnumerableUpgradeable {
using RBTLibrary for RBTLibrary.Tree;
using Bytes32LinkedListLibrary for Bytes32LinkedListLibrary.LinkedList;
bytes32 public constant VERSION = bytes32("2.2.1");
struct OrderBook {
mapping(uint256 => Bytes32LinkedList... | 16,381,067 | [
1,
4625,
348,
7953,
560,
30,
225,
1177,
1353,
3618,
3695,
9364,
1245,
357,
80,
578,
30143,
6978,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4347,
9084,
87,
353,
10188,
6934,
16,
24349,
3572,
25121,
10784,
429,
288,
203,
565,
1450,
534,
38,
56,
9313,
364,
534,
38,
56,
9313,
18,
2471,
31,
203,
565,
1450,
5985,
1578,
13174,
682,
9313,
364,
5985,
1578,
13174,
682,... |
./partial_match/1/0xE756d53da344d2e9EE76D1107E97246E724F47cD/sources/RavenFundNFTChecker.sol | Unregister the old userid if the address is already registered | function registerUser(string memory data, address user) external onlyOwner {
require(!userIdRegistered[data], "Userid already registered");
address sender = user;
if (addressRegistered[sender]) {
string memory oldData = registryReverse[sender];
delete registr... | 2,693,282 | [
1,
4625,
348,
7953,
560,
30,
225,
1351,
4861,
326,
1592,
6709,
309,
326,
1758,
353,
1818,
4104,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1744,
1299,
12,
1080,
3778,
501,
16,
1758,
729,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
5,
18991,
10868,
63,
892,
6487,
315,
1299,
350,
1818,
4104,
8863,
203,
3639,
1758,
5793,
273,
729,
31,
203,
540,
203,
363... |
// File: spookies.sol
// File: .deps/github/OpenZeppelin/openzeppelin-contracts/contracts/utils/structs/EnumerableSet.sol
// OpenZeppelin Contracts v4.3.2 (utils/structs/EnumerableSet.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of pr... | * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value./ | function _mint(
address to,
uint256 id,
uint256 amount,
bytes memory data
) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, address(0), to, _asSingletonArr... | 11,968,886 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
434,
1147,
618,
1375,
350,
9191,
471,
22698,
2182,
358,
1375,
869,
8338,
7377,
1282,
279,
288,
5912,
5281,
97,
871,
18,
29076,
30,
300,
1375,
869,
68,
2780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
81,
474,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
3... |
./partial_match/1/0x79304E4121ED45c17a906Bd2945Fcb3DEC4fD380/sources/shitcoin2.sol | Anti-bot and anti-whale mappings and variables | contract shitcoin2 is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public shitwallet;
address public devWallet... | 9,290,255 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
699,
305,
12645,
22,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
... |
./full_match/42/0x6ED04ADC503b274193F7c3B5A54F5270fCfB6A03/sources/browser/DODO/UniswapArbitrageur1.sol | transfer token0 into uniswap transfer token1 into uniswap | function _arbitrage(
bool isDODOBuy,
uint256 baseAmount,
uint256 quoteAmount
) internal {
(uint112 _reserve0, uint112 _reserve1, ) = IUniswapV2Pair(_UNISWAP_).getReserves();
uint256 token0Balance = uint256(_reserve0);
uint256 token1Balance = uint256(_reserve1);
... | 16,204,000 | [
1,
4625,
348,
7953,
560,
30,
225,
7412,
1147,
20,
1368,
640,
291,
91,
438,
7412,
1147,
21,
1368,
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,
... | [
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,
389,
297,
3682,
86,
410,
12,
203,
3639,
1426,
353,
40,
2311,
38,
9835,
16,
203,
3639,
2254,
5034,
1026,
6275,
16,
203,
3639,
2254,
5034,
3862,
6275,
203,
565,
262,
2713,
288,
203,
3639,
261,
11890,
17666,
389,
455,
65... |
/*
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNDOOOOOOOOOOO... | * @dev Internal function to update funds for jackpot and dividends @param weiAmount eth amount in wei/ | function _addWeiAmount(uint256 weiAmount)
internal
returns (bool) {
uint256 weiEMFPart = weiAmount.sub(weiDividendPart).sub(weiJackpotPart).sub(weiMCPart);
address(spaceshipInstance).transfer(weiDividendPart);
MCAddress.transfer(weiMCPart);
address(owner).transfer(w... | 14,022,866 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
1089,
284,
19156,
364,
525,
484,
13130,
471,
3739,
350,
5839,
632,
891,
732,
77,
6275,
13750,
3844,
316,
732,
77,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1289,
3218,
77,
6275,
12,
11890,
5034,
732,
77,
6275,
13,
203,
3639,
2713,
203,
3639,
1135,
261,
6430,
13,
288,
203,
203,
3639,
2254,
5034,
732,
77,
3375,
42,
1988,
273,
732,
77,
6275,
18,
1717,
12,
1814,
77,
7... |
./full_match/100/0x239B3373508A879Ba1fbddd64e3054323fe0b1F7/sources/xdai-test-feed/feedtest.sol | * Network: xDai Aggregator: ETH/USD Address: 0xa767f745331D267c7751297D982b050c93985627/ | constructor() {
priceFeed = AggregatorV3Interface(0xa767f745331D267c7751297D982b050c93985627);
}
| 14,283,991 | [
1,
4625,
348,
7953,
560,
30,
380,
5128,
30,
619,
40,
10658,
10594,
639,
30,
512,
2455,
19,
3378,
40,
5267,
30,
374,
6995,
6669,
27,
74,
5608,
25,
3707,
21,
40,
5558,
27,
71,
4700,
13757,
10580,
40,
10689,
22,
70,
20,
3361,
71,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
288,
203,
3639,
6205,
8141,
273,
10594,
639,
58,
23,
1358,
12,
20,
6995,
6669,
27,
74,
5608,
25,
3707,
21,
40,
5558,
27,
71,
4700,
13757,
10580,
40,
10689,
22,
70,
20,
3361,
71,
29,
5520,
28,
4313,
5324,
1769... |
./full_match/43113/0xbDdC67cb751d64cb5DD39e53d2fA74817B997C52/sources/liquidityPool/LiquidityPool.sol | @title Liquidity Pool with Flash Loans @author EverestLabs - https://github.com/Everest-Labs @notice This contract is used to create a liquidity Pool for the respective token. @dev Flash loans can only be execute by this contract. | contract LiquidityPool is ILiquidityPoolCore, ERC20, ReentrancyGuard {
using SafeMath for uint256;
IERC20 public poolToken;
uint256 internal ONE = 1e18;
uint256 internal totalDividendPoints;
uint256 internal unclaimedDividends;
uint256 internal dust;
address public protocolF... | 13,156,442 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
511,
18988,
24237,
8828,
598,
15014,
3176,
634,
632,
4161,
512,
502,
395,
48,
5113,
300,
2333,
2207,
6662,
18,
832,
19,
41,
502,
395,
17,
48,
5113,
632,
20392,
1220,
6835,
353,
1399,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
511,
18988,
24237,
2864,
353,
467,
48,
18988,
24237,
2864,
4670,
16,
4232,
39,
3462,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
540,
203,
565,
467,
654,
39,
3462,
1071,
2845,
... |
./full_match/3/0x81C116D592d1b8a029C126b044814ec1d5654dcD/sources/TokenTimelock_flat.sol | * @dev A token holder contract that will allow a beneficiary to extract the tokens after a given release time. Useful for simple vesting schedules like "advisors get all of their tokens after 1 year"./ ERC20 basic token contract being held beneficiary of tokens after they are released timestamp when token release is en... | contract TokenTimelock {
using SafeERC20 for IERC20;
IERC20 private immutable _token;
address private immutable _beneficiary;
uint256 private immutable _releaseTime;
constructor(
IERC20 token_,
address beneficiary_,
uint256 releaseTime_
) {
require(releaseTime... | 14,166,835 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
432,
1147,
10438,
6835,
716,
903,
1699,
279,
27641,
74,
14463,
814,
358,
2608,
326,
2430,
1839,
279,
864,
3992,
813,
18,
19256,
364,
4143,
331,
10100,
26720,
3007,
315,
361,
3516,
1383,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3155,
10178,
292,
975,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
467,
654,
39,
3462,
3238,
11732,
389,
2316,
31,
203,
203,
565,
1758,
3238,
11732,
389,
70,
4009,
74,
14463,
81... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title: MinteVipTicket
/// @authors: manifold.xyz & Collector
import "./ERC721Creator.sol";
contract MVIP is ERC721Creator {
uint256 public price = 40000000000000000; //0.04 ETH
bool public saleIsActive = true;
uint private rand;
const... | Delete token origin extension tracking | delete _tokensExtension[tokenId];
| 6,316 | [
1,
4625,
348,
7953,
560,
30,
225,
2504,
1147,
4026,
2710,
11093,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1430,
389,
7860,
3625,
63,
2316,
548,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0xb48FF454269c5475826EebFe9483150c6db8dAc4/sources/browser/1CoinMLM-new.sol | OneCoinToken has been deployed at address XYZ
| OneCoinToken tokenInstance; | 8,232,862 | [
1,
4625,
348,
7953,
560,
30,
225,
6942,
27055,
1345,
711,
2118,
19357,
622,
1758,
30742,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
6942,
27055,
1345,
1147,
1442,
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,... |
pragma solidity ^0.5.12;
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "../../interfaces/access/IAccessModule.sol";
import "../../interfaces/curve/ICurveModule.sol";
import "../../interfaces/curv... | * @notice Calculates how many liquid tokens should be removed from pool when decreasing liquidity @param pAmount Amount of pToken which should be taken from sender @return Amount of liquid tokens which will be removed from the pool: total, part for sender, part for pool/ | function calculatePoolExitInverse(uint256 pAmount) internal view returns(uint256, uint256, uint256) {
return fundsModule().calculatePoolExitInverse(pAmount);
}
| 12,651,142 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
26128,
3661,
4906,
4501,
26595,
2430,
1410,
506,
3723,
628,
2845,
1347,
23850,
11730,
4501,
372,
24237,
632,
891,
293,
6275,
16811,
434,
293,
1345,
1492,
1410,
506,
9830,
628,
5793,
632,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4604,
2864,
6767,
16376,
12,
11890,
5034,
293,
6275,
13,
2713,
1476,
1135,
12,
11890,
5034,
16,
2254,
5034,
16,
2254,
5034,
13,
288,
203,
3639,
327,
284,
19156,
3120,
7675,
11162,
2864,
6767,
16376,
12,
84,
6275,
1769,
... |
./full_match/1/0xd25b9369D3Ba04e8960BE679028a21f145f0FE8C/sources/contracts/OathRings.sol | ============ PUBLIC FUNCTIONS FOR MINTING ============* @dev mintCouncilOathRings @notice mint council token @param quantity_ quantity per mint/ | function mintCouncilOathRings(uint256 quantity_) public onlyMinter {
require(councilCount.current() + quantity_ - COUNT_OFFSET <= councilQuantity, 'quantity exceeds max supply');
for (uint256 i; i < quantity_; i++) {
_safeMint(msg.sender, councilCount.current());
councilCount... | 8,337,592 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
631,
17187,
13690,
55,
12108,
490,
3217,
1360,
422,
1432,
631,
14,
632,
5206,
312,
474,
39,
465,
71,
330,
51,
421,
54,
899,
632,
20392,
312,
474,
276,
465,
71,
330,
1147,
632,
891,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
39,
465,
71,
330,
51,
421,
54,
899,
12,
11890,
5034,
10457,
67,
13,
1071,
1338,
49,
2761,
288,
203,
3639,
2583,
12,
71,
465,
71,
330,
1380,
18,
2972,
1435,
397,
10457,
67,
300,
12666,
67,
11271,
1648,
276,... |
pragma solidity ^0.4.10;
contract WishCoin
{
string public name;
string public symbol;
uint8 public decimals;
address public owner;
uint256 public supply;
uint256 public cryptaurus;
uint256 public wishes;
bool public ICO;
mapping (address => uint256) balance... | Some magic you won't understand*/ | function UseWish(string _words) returns (bool success)
{
uint256 length = bytes(_words).length;
bool sufficientFunds = balances[msg.sender] >= 100000000;
if(sufficientFunds)
{
balances[msg.sender] -= 100000000;
supply -= 100000000;
wishes += 1... | 12,950,768 | [
1,
4625,
348,
7953,
560,
30,
10548,
8146,
1846,
8462,
1404,
22413,
5549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2672,
15691,
12,
1080,
389,
3753,
13,
1135,
261,
6430,
2216,
13,
7010,
565,
288,
203,
3639,
2254,
5034,
769,
273,
1731,
24899,
3753,
2934,
2469,
31,
203,
3639,
1426,
18662,
42,
19156,
273,
324,
26488,
63,
3576,
18,
1533... |
// File: @openzeppelin\contracts\token\ERC20\IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
functio... | * Buys and locks an IdeaToken in the IdeaTokenVault @param ideaToken The IdeaToken to buy @param amount The amount of IdeaTokens to buy @param cost The cost in Dai for the purchase of `amount` IdeaTokens @param recipient The recipient of the locked IdeaTokens/ | function buyAndLockInternal(address ideaToken, uint amount, uint cost, uint lockDuration, address recipient) internal {
IIdeaTokenVault vault = _ideaTokenVault;
buyInternal(ideaToken, amount, cost, address(this));
require(IERC20(ideaToken).approve(address(vault), amount), "approve");
... | 410,162 | [
1,
4625,
348,
7953,
560,
30,
380,
605,
89,
1900,
471,
13046,
392,
23062,
69,
1345,
316,
326,
23062,
69,
1345,
12003,
632,
891,
21463,
1345,
1021,
23062,
69,
1345,
358,
30143,
632,
891,
3844,
1021,
3844,
434,
23062,
69,
5157,
358,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
30143,
1876,
2531,
3061,
12,
2867,
21463,
1345,
16,
2254,
3844,
16,
2254,
6991,
16,
2254,
2176,
5326,
16,
1758,
8027,
13,
2713,
288,
203,
203,
3639,
23076,
323,
69,
1345,
12003,
9229,
273,
389,
831,
69,
1345,
12003,
31,... |
./full_match/1/0xa8Fde334151917EF815F98f4d33F2996f683beCB/sources/localhost/BitbaseToken.sol | * @dev Transfer tokens to a specified address. @param to The address to transfer to. @param value The amount to be transferred. @return True on success, false otherwise./Transfer to recepient_cloudYield 1% of the transaction | function transfer(address to, uint256 value)
public
override(ERC20UpgradeSafe, ERC677)
validRecipient(to)
returns (bool)
{
require(bannedUsers[msg.sender] == false, "you are banned");
require(!transfersPaused || transferPauseExemptList[msg.sender], "paused");
... | 3,056,275 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12279,
2430,
358,
279,
1269,
1758,
18,
632,
891,
358,
1021,
1758,
358,
7412,
358,
18,
632,
891,
460,
1021,
3844,
358,
506,
906,
4193,
18,
632,
2463,
1053,
603,
2216,
16,
629,
3541,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
460,
13,
203,
3639,
1071,
203,
3639,
3849,
12,
654,
39,
3462,
10784,
9890,
16,
4232,
39,
26,
4700,
13,
203,
3639,
923,
18241,
12,
869,
13,
203,
3639,
1135,
261,
6430,
13,
203,
56... |
pragma solidity 0.7.5;
//SPDX-License-Identifier: UNLICENSED
import "./Ownable.sol";
//\\ -- DESTROYABLE -- //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
contract Destroyable is Ownable {
// DESTROY - //////////////////////////////////
function destroy() public onlyOwner {
// - requires a pay... | - requires a payable address - automatically transfers remaining contract balance to an address selfdestruct(owner); < this works too? | function destroy() public onlyOwner {
address payable receiver = msg.sender;
selfdestruct(receiver);
}
| 5,430,395 | [
1,
4625,
348,
7953,
560,
30,
225,
300,
4991,
279,
8843,
429,
1758,
300,
6635,
29375,
4463,
6835,
11013,
358,
392,
1758,
365,
5489,
8813,
12,
8443,
1769,
225,
411,
333,
6330,
4885,
35,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5546,
1435,
1071,
1338,
5541,
288,
203,
3639,
1758,
8843,
429,
5971,
273,
1234,
18,
15330,
31,
203,
3639,
365,
5489,
8813,
12,
24454,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0xC462d8ee54953E7d7bF276612b75387Ea114c3bf/sources/contracts/distribution/BACyCRVPool.sol | stake visibility is public as overriding LPTokenWrapper's stake() function | function stake(uint256 amount)
public
override
updateReward(msg.sender)
checkStart
{
require(amount > 0, 'BACyCRVPool: Cannot stake 0');
uint256 newDeposit = deposits[msg.sender].add(amount);
require(
newDeposit <= 20000e18,
'BACyCR... | 3,551,897 | [
1,
4625,
348,
7953,
560,
30,
225,
384,
911,
9478,
353,
1071,
487,
19488,
511,
52,
1345,
3611,
1807,
384,
911,
1435,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
384,
911,
12,
11890,
5034,
3844,
13,
203,
3639,
1071,
203,
3639,
3849,
203,
3639,
1089,
17631,
1060,
12,
3576,
18,
15330,
13,
203,
3639,
866,
1685,
203,
565,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
296,
38,
2226... |
./full_match/43114/0x7cb2151825cd3D3571043e9715E85d6f8Ca91811/sources/WAVAXorgV3Staker.sol | @param factory The address of the Uniswap V3 Factory used in computing the pool address @param nonfungiblePositionManager The address of the nonfungible position manager to query @param tokenId The unique identifier of an Uniswap V3 LP token @return pool The address of the Uniswap V3 pool @return tickLower The lower t... | function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1);
function burn(uint256 tokenId) external payable;
}
pragma solidity >=0.5.0;
}
pragma solidity >=0.5.0;
}
pragma solidity >=0.5.0;
}
pragma solidity >=0.5.0;
}
pragma solidity >=0.5.0;... | 4,584,996 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
891,
3272,
1021,
1758,
434,
326,
1351,
291,
91,
438,
776,
23,
7822,
1399,
316,
20303,
326,
2845,
1758,
632,
891,
1661,
12125,
75,
1523,
2555,
1318,
1021,
1758,
434,
326,
1661,
12125,
75,
1523,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3274,
12,
10808,
1370,
745,
892,
859,
13,
3903,
8843,
429,
1135,
261,
11890,
5034,
3844,
20,
16,
2254,
5034,
3844,
21,
1769,
203,
203,
565,
445,
18305,
12,
11890,
5034,
1147,
548,
13,
3903,
8843,
429,
31,
203,
97,
203... |
./full_match/100/0x010dA9cb0468e86E8b68E34cAb180BD9c8953800/sources/github/ice09/circles-contracts/contracts/Hub.sol | the inflation rate expressed as 1 + percentage inflation, aka 7% inflation is 107
| uint256 public immutable inflation; | 14,278,513 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
13947,
367,
4993,
26863,
487,
404,
397,
11622,
13947,
367,
16,
28105,
2371,
9,
13947,
367,
353,
1728,
27,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
11732,
13947,
367,
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,... |
./partial_match/1/0x00000000000006c7676171937C444f6BDe3D6282/sources/contracts/helpers/PointerLibraries.sol | @dev Reads the bytes32 at `cdPtr` in calldata. | function readBytes32(
CalldataPointer cdPtr
) internal pure returns (bytes32 value) {
assembly {
value := calldataload(cdPtr)
}
}
| 4,300,210 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
29185,
326,
1731,
1578,
622,
1375,
4315,
5263,
68,
316,
745,
892,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25825,
1578,
12,
203,
3639,
3049,
892,
4926,
7976,
5263,
203,
565,
262,
2713,
16618,
1135,
261,
3890,
1578,
460,
13,
288,
203,
3639,
19931,
288,
203,
5411,
460,
519,
745,
72,
3145,
6189,
12,
4315,
5263,
13,
203,
3639,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
import "../openzeppelin/access/AccessControl.sol";
import "../openzeppelin/utils/math/SafeMath.sol";
import "../openzeppelin/token/ERC20/SafeERC20.sol";
import "../openzeppelin/token/ERC20/IERC20.sol";
import "../sablierh... | Storage of set values Position of the value in the `values` array, plus 1 because index 0 means a value is not in the set. | function addToken(
address _token,
address[3] calldata _beneficiaries,
uint256[3] calldata _proportions,
uint256 _vestingPeriodInDays
) external;
function release(address _token, address _beneficiary) external;
function releaseableAmount(address _token) external view returns (uint256);
function releasea... | 12,569,791 | [
1,
4625,
348,
7953,
560,
30,
225,
5235,
434,
444,
924,
11010,
434,
326,
460,
316,
326,
1375,
2372,
68,
526,
16,
8737,
404,
2724,
770,
374,
4696,
279,
460,
353,
486,
316,
326,
444,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
527,
1345,
12,
203,
202,
202,
2867,
389,
2316,
16,
203,
202,
202,
2867,
63,
23,
65,
745,
892,
389,
70,
4009,
74,
14463,
5646,
16,
203,
202,
202,
11890,
5034,
63,
23,
65,
745,
892,
389,
685,
655,
1115,
16,
203,
202... |
./full_match/1/0x9627d673f747900795Db88fF6D2Cc368e69C9A26/sources/Posttech.sol | change the minimum amount of tokens to sell from fees | {
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Swap amount cannot be higher than 0.5% total supply."
);
swapTok... | 9,799,496 | [
1,
4625,
348,
7953,
560,
30,
225,
2549,
326,
5224,
3844,
434,
2430,
358,
357,
80,
628,
1656,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
203,
3639,
2583,
12,
203,
5411,
394,
6275,
1545,
261,
4963,
3088,
1283,
1435,
380,
404,
13,
342,
25259,
16,
203,
5411,
315,
12521,
3844,
2780,
506,
2612,
2353,
374,
18,
11664,
9,
2078,
14467,
1199,
203,
3639,
11272,
203... |
/**
888 d88888888888b. 8888888b.Y88b d88P888b d888888 888 .d8888b. 888 d8P
888 d88888888 Y88b888 Y88bY88b d88P 8888b d8888888 888d88P Y88b888 d8P
888 d88P888888 888888 888 Y88o88P 88888b.d88888888 888Y88b. 888 d8P
888 d88P 888888 ... | 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488DBalances tracker | contract LARRYMUSK is Context,IERC20, Ownable{
using Address for address;
string private _name = "LARRYMUSK";
string private _symbol = "LARRY";
uint8 private _decimals = 18;
uint256 totalFeeFortx = 0;
uint256 maxWalletTreshold = 2;
uint256 maxTxTreshold = 2;
uint256 private swapTreshold... | 5,891,819 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
92,
27,
69,
26520,
72,
4313,
5082,
38,
24,
71,
42,
25,
5520,
27,
5520,
72,
42,
22,
39,
25,
72,
37,
7358,
24,
71,
26,
6162,
42,
3247,
5482,
2290,
26488,
9745,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
511,
985,
9590,
49,
3378,
47,
353,
1772,
16,
45,
654,
39,
3462,
16,
14223,
6914,
95,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
533,
3238,
389,
529,
273,
315,
48,
985,
9590,
49,
3378,
47,
14432,
203,
565,
533,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "hardhat/console.sol";
import "./ExampleExternalContract.sol";
contract Staker {
ExampleExternalContract public exampleExternalContract;
constructor(address exampleExternalContractAddress) public {
exampleExternalContract = ExampleExternalContr... | Add a `timeLeft()` view function that returns the time left before the deadline for the frontend | function timeLeft() public view returns (uint256) {
return block.timestamp >= deadline ? 0 : (deadline - block.timestamp);
}
| 5,475,339 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
279,
1375,
957,
3910,
20338,
1476,
445,
716,
1135,
326,
813,
2002,
1865,
326,
14096,
364,
326,
15442,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
813,
3910,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
1203,
18,
5508,
1545,
14096,
692,
374,
294,
261,
22097,
1369,
300,
1203,
18,
5508,
1769,
203,
225,
289,
203,
203,
203,
203,
2,
-100,
-100,
-... |
./full_match/1/0xd8a0135142C7cC203E0b8C060bba69559FF36821/sources/contracts/hacker/SPC.sol | * @dev Sets the values for {name} and {symbol}. All three of these values are immutable: they can only be set once during construction./ | constructor(string memory name_, string memory symbol_, address spc_) {
require(spc_ != address(0));
_name = name_; _symbol = symbol_;
_spc = spc_; _mint(msg.sender, 40000000 ether);
}
| 4,995,062 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5496,
4826,
8925,
434,
4259,
924,
854,
11732,
30,
2898,
848,
1338,
506,
444,
3647,
4982,
16171,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1080,
3778,
508,
67,
16,
533,
3778,
3273,
67,
16,
1758,
1694,
71,
67,
13,
288,
203,
3639,
2583,
12,
1752,
71,
67,
480,
1758,
12,
20,
10019,
203,
3639,
389,
529,
273,
508,
67,
31,
389,
7175,
273,
3273,
67,
31,... |
pragma solidity 0.4.25;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./SafeDecimalMath.sol";
import "./SelfDestructible.sol";
// AggregatorInterface from Chainlink represents a decentralized pricing network for a single currency key
import "chainlink/contracts/interfaces/AggregatorInterface.sol... | * @notice Check if any rate is frozen (cannot be exchanged into)/ | function rateIsFrozen(bytes32 currencyKey) external view returns (bool) {
return inversePricing[currencyKey].frozen;
}
| 914,262 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2073,
309,
1281,
4993,
353,
12810,
261,
12892,
506,
431,
6703,
1368,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4993,
2520,
42,
9808,
12,
3890,
1578,
5462,
653,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
8322,
52,
1512,
310,
63,
7095,
653,
8009,
28138,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x0B55C21e66e0d9D4E792f5B1324d387F7829Ae28/sources/contracts/LiquidatePool.sol | * @dev to set the stbt curve pool @param _curvePool the address of curve pool/ | function setCurvePool(address _curvePool) external onlyAdmin {
require(_curvePool != address(0), "!_curvePool");
curvePool = ICurve(_curvePool);
emit CurvePoolChanged(_curvePool);
}
| 16,558,444 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
358,
444,
326,
384,
23602,
8882,
2845,
632,
891,
389,
16683,
2864,
326,
1758,
434,
8882,
2845,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
444,
9423,
2864,
12,
2867,
389,
16683,
2864,
13,
3903,
1338,
4446,
288,
203,
202,
202,
6528,
24899,
16683,
2864,
480,
1758,
12,
20,
3631,
17528,
67,
16683,
2864,
8863,
203,
202,
202,
16683,
2864,
273,
467,
9423,
24899,
... |
pragma solidity ^ 0.5.17;
import "./SafeMath.sol";
import "./Iupgradable.sol";
contract ClaimsData is Iupgradable {
using SafeMath for uint;
struct Claim {
uint coverId;
uint dateUpd;
}
struct Vote {
address voter;
uint tokens;
uint claimId;
int8 verdi... | * @dev Stores the id of the member vote given to a claim. Maintains record of all votes given by all the Members to a claim. @param _claimId Claim Id to which vote has been given by the Member. @param _voteid Vote Id./ | function addClaimVotemember(uint _claimId, uint _voteid) external onlyInternal {
claimVoteMember[_claimId].push(_voteid);
}
| 5,407,107 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20296,
455,
326,
612,
434,
326,
3140,
12501,
864,
358,
279,
7516,
18,
490,
1598,
4167,
1409,
434,
777,
19588,
864,
635,
777,
326,
17524,
358,
279,
7516,
18,
632,
891,
389,
14784,
548,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
9762,
58,
352,
351,
2558,
12,
11890,
389,
14784,
548,
16,
2254,
389,
25911,
350,
13,
3903,
1338,
3061,
288,
203,
3639,
7516,
19338,
4419,
63,
67,
14784,
548,
8009,
6206,
24899,
25911,
350,
1769,
203,
565,
289,
203,... |
./full_match/8453/0x47c6D2fe1F7D05F4510FD615310757eF2a049D6A/sources/contracts/referral/DefusionAiPlayerBook.sol | add name to player profile, registry, and name book | _plyrNames[pID][name] = true;
| 11,563,960 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
508,
358,
7291,
3042,
16,
4023,
16,
471,
508,
6978,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
1283,
86,
1557,
63,
84,
734,
6362,
529,
65,
273,
638,
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,
-1... |
./full_match/5/0x99ac1ACd392038241e9D92Dfd5F2eb6644d432B0/sources/contracts/periphery/ERC721Drop.sol | @dev See {ERC721-_safeTransferFrom}. | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public override(ERC721A) onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId);
}
| 1,868,423 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2164,
288,
654,
39,
27,
5340,
17,
67,
4626,
5912,
1265,
5496,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4183,
5912,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
1071,
3849,
12,
654,
39,
27,
5340,
37,
13,
1338,
5042,
5592,
12,
2080,
13,
288,
203,
3639,
2... |
pragma solidity ^0.4.0;
import "./Token.sol";
library NettingChannelLibrary {
struct Lock
{
uint64 expiration;
uint amount;
bytes32 hashlock;
}
struct Participant
{
address node_address;
uint256 balance;
uint256 netted;
uint256 transferred_a... | @notice Unlock a locked transfer @dev Unlock a locked transfer @param locked_encoded The lock @param merkle_proof The merkle proof @param secret The secret | function unlock(
Data storage self,
address caller_address,
bytes locked_encoded,
bytes merkle_proof,
bytes32 secret)
notSettledButClosed(self)
{
uint amount;
uint partner_id;
uint64 expiration;
bytes32 el;
bytes32 h;
... | 12,641,506 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3967,
279,
8586,
7412,
632,
5206,
3967,
279,
8586,
7412,
632,
891,
8586,
67,
10787,
1021,
2176,
632,
891,
30235,
67,
24207,
1021,
30235,
14601,
632,
891,
4001,
1021,
4001,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
7186,
12,
203,
3639,
1910,
2502,
365,
16,
203,
3639,
1758,
4894,
67,
2867,
16,
203,
3639,
1731,
8586,
67,
10787,
16,
203,
3639,
1731,
30235,
67,
24207,
16,
203,
3639,
1731,
1578,
4001,
13,
203,
3639,
486,
694,
88,
125... |
pragma solidity ^0.5.16;
import "./CToken.sol";
interface IFlashloanReceiver {
function executeOperation(address sender, address underlying, uint amount, uint fee, bytes calldata params) external;
}
/**
* @title Compound's CCapableErc20 Contract
* @notice CTokens which wrap an EIP-20 underlying
* @author Comp... | * @notice Get a snapshot of the account's balances, and the cached exchange rate @dev This is used by comptroller to more efficiently perform liquidity checks. @param account Address of the account to snapshot @return (possible error, token balance, borrow balance, exchange rate mantissa)/ | function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint) {
uint cTokenBalance = accountTokens[account];
uint borrowBalance = borrowBalanceStoredInternal(account);
uint exchangeRateMantissa = exchangeRateStoredInternal();
return (uint(Error.NO_ERROR... | 529,940 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
279,
4439,
434,
326,
2236,
1807,
324,
26488,
16,
471,
326,
3472,
7829,
4993,
632,
5206,
1220,
353,
1399,
635,
532,
337,
1539,
358,
1898,
14382,
715,
3073,
4501,
372,
24237,
4271,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
23393,
4568,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
16,
2254,
16,
2254,
16,
2254,
13,
288,
203,
3639,
2254,
276,
1345,
13937,
273,
2236,
5157,
63,
4631,
15533,
203,
3639,
2254,
29759,
13937,
273,
29759,
13937,
... |
./partial_match/3/0x468E31B867ED3c7B5fC74f57Db3fe2D938FfDFd3/sources/ERC20Token.sol | Set the symbol for display purposes
| symbol = "ALX"; | 5,165,963 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
3273,
364,
2562,
13694,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3273,
273,
315,
1013,
60,
14432,
27573,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.23;
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (... | * @dev compute if the number of approvals is enough for a given mint amount/ | function hasEnoughApproval(uint256 _numberOfApproval, uint256 _value) public view returns (bool) {
if (_value <= ratifiedMintPool && _value <= ratifiedMintThreshold) {
if (_numberOfApproval >= RATIFY_MINT_SIGS){
return true;
}
}
if (_value <= multiSigM... | 4,801,867 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3671,
309,
326,
1300,
434,
6617,
4524,
353,
7304,
364,
279,
864,
312,
474,
3844,
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,
711,
664,
4966,
23461,
12,
11890,
5034,
389,
2696,
951,
23461,
16,
2254,
5034,
389,
1132,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
67,
1132,
1648,
15183,
939,
49,
474,
2864,
597,
389,
1132,
1648,
... |
// LC->05.11.2015
// наречия, которые моргут употребляться внутри аналитической конструкции
// страдательного залога для простого времени:
// Grachtengordel had not yet been established.
// ^^^
wordentry_set PassiveInnerAdverb0=
{
eng_adverb:yet{}, // Grachtengordel had not yet been establish... | The magazine was glossily printed.
| eng_adverb:glossily{}, | 12,917,388 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
4447,
1561,
558,
1703,
314,
7873,
3220,
14099,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
24691,
67,
361,
16629,
30,
75,
7873,
3220,
2916,
16,
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,
-1... |
./partial_match/4/0x2B50248F70bfad9E2b50113dE48eFaae18048F32/sources/MirrorWriteToken.sol | * @title MirrorWriteToken @author MirrorXYZ An ERC20 that grants access to the ENS namespace through a burn-and-register model./ ============ Immutable ERC20 Attributes ============ ============ Immutable Registration Configuration ============ ============ Mutable Ownership Configuration ============ ============ Mu... | contract MirrorWriteToken is IMirrorWriteToken {
using SafeMath for uint256;
string public constant override symbol = "WRITE";
string public constant override name = "Mirror Write Token";
uint8 public constant override decimals = 18;
uint256 internal constant REGISTRATION_COST = 1e18;
addr... | 8,537,486 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
490,
8299,
3067,
1345,
632,
4161,
490,
8299,
23479,
225,
1922,
4232,
39,
3462,
716,
25638,
2006,
358,
326,
512,
3156,
1981,
3059,
279,
225,
18305,
17,
464,
17,
4861,
938,
18,
19,
422,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
490,
8299,
3067,
1345,
353,
6246,
8299,
3067,
1345,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
533,
1071,
5381,
3849,
3273,
273,
315,
11677,
14432,
203,
565,
533,
1071,
5381,
3849,
508,
273,
... |
// NFT Contract that generate collectible with random image between predefined set.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
contract AdvancedCollectible is ERC72... | VRFConsumerBase variables Init type to collectible uri mapping | ) ERC721(_name, _symbol) VRFConsumerBase(_vrfCoordinator, _linkToken) {
m_Fee = _fee;
m_Keyhash = _keyhash;
m_TypeToURI[
CollectibleType.FROLIAN
m_TypeToURI[
CollectibleType.POTATO
m_TypeToURI[
CollectibleType.ALDERIATE
}
| 5,541,888 | [
1,
4625,
348,
7953,
560,
30,
225,
776,
12918,
5869,
2171,
3152,
4378,
618,
358,
3274,
1523,
2003,
2874,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
262,
4232,
39,
27,
5340,
24899,
529,
16,
389,
7175,
13,
776,
12918,
5869,
2171,
24899,
16825,
25307,
16,
389,
1232,
1345,
13,
288,
203,
3639,
312,
67,
14667,
273,
389,
21386,
31,
203,
3639,
312,
67,
653,
2816,
273,
389,
85... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
import "./interfaces/ILandType.sol";
import "./libraries/SafeMath.sol";
import "./Pausable.sol";
contract LandType is ILandType, Pausable {
using SafeMath for uint256;
address internal _creator;
mapping(address =... | array of tokenId of a owner
| mapping(address => mapping(string => LandInfo[])) internal _ownerTokens; | 12,779,427 | [
1,
4625,
348,
7953,
560,
30,
225,
526,
434,
1147,
548,
434,
279,
3410,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2874,
12,
1080,
516,
511,
464,
966,
8526,
3719,
2713,
389,
8443,
5157,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import "../VotePo... | depend on: accRewardPerCfx and lastUserShot | function _updateUserInterest(address _user) private {
UserShot memory uShot = lastUserShots[_user];
if (uShot.available == 0) return;
uint256 latestInterest = accRewardPerCfx.sub(uShot.accRewardPerCfx).mul(uShot.available.mul(CFX_COUNT_OF_ONE_VOTE));
uint256 _userInterest = _calUserShare(latestInteres... | 12,963,302 | [
1,
4625,
348,
7953,
560,
30,
225,
2447,
603,
30,
4078,
17631,
1060,
2173,
39,
19595,
471,
1142,
1299,
1555,
352,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
2725,
1299,
29281,
12,
2867,
389,
1355,
13,
3238,
288,
203,
565,
2177,
1555,
352,
3778,
582,
1555,
352,
273,
1142,
1299,
1555,
6968,
63,
67,
1355,
15533,
203,
565,
309,
261,
89,
1555,
352,
18,
5699,
422,
374,
13,... |
pragma solidity ^0.4.8;
//import "./ConvertLib.sol";
contract CryptoStars {
address owner;
string public standard = "STRZ";
string public name;
string public symbol;
uint8 public decimals; //Zero for this type of token
uint256 public totalSu... | star not actually for sale
| if (!offer.isForSale) throw; | 6,631,055 | [
1,
4625,
348,
7953,
560,
30,
225,
10443,
486,
6013,
364,
272,
5349,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
16051,
23322,
18,
291,
1290,
30746,
13,
604,
31,
4766,
2398,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.6.12;
import "./Dragonbattle.sol";
contract DragonTokenERC721 is DragonBattle {
string private _name = "DragonToken";
string private _symbol = "DRGN";
mapping (uint256 => address) private _tokenApprovals;
event Transfer(address indexed _from, address indexed _to, uint256 indexed _... | @dev Returns name of token | function nameDragon() external view returns (string memory) {
return _name;
}
| 927,067 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
508,
434,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11728,
265,
1435,
3903,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
389,
529,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma ton-solidity ^0.38.0;
interface IClient {
function onProposalPassed(ProposalInfo proposalInfo) external;
}
struct ProposalInfo {
uint32 id; // Proposal ID
uint32 start; // Start of the voting
uint32 end; // Timestamp of the voting end
... | Proposal specific data
| TvmCell specific; | 1,045,599 | [
1,
4625,
348,
7953,
560,
30,
225,
19945,
2923,
501,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
399,
3489,
4020,
2923,
31,
5411,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0x956c643eC220eC99653Cb3666F5970941c427c05/sources/Octopus.sol | Collateral = Strike * Notional (in ETH, not WEI)Collateral in ETH | function calculateCollateral(address _optionAddress, uint256 _notionalInWei) public view returns (uint256, uint256) {
require(options[_optionAddress], "Invalid option");
uint256 collateralInUSD = IERC20(_optionAddress).getStrike().mul(_notionalInWei);
uint256 usdPriceOfEth ... | 5,267,662 | [
1,
4625,
348,
7953,
560,
30,
17596,
2045,
287,
273,
3978,
2547,
380,
2288,
285,
287,
261,
267,
512,
2455,
16,
486,
13880,
45,
13,
13535,
2045,
287,
316,
512,
2455,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4604,
13535,
2045,
287,
12,
2867,
389,
3482,
1887,
16,
2254,
5034,
389,
902,
285,
287,
382,
3218,
77,
13,
1071,
1476,
1135,
261,
11890,
5034,
16,
2254,
5034,
13,
288,
203,
3639,
2583,
12,
2116,
63,
67,
3482,
1887,
648... |
./full_match/3/0x9b4193d28579104f60c871248CeB3c6632C1919A/sources/browser/contracts/smartContractAccount/extendFunction.sol | it should bind to block.timestamp | function transferETH(address to,uint256 amount) external {
address payable toP = payable(to);
mapping(address => uint256) storage ds1 = getRuleEveryTime();
require(ds1[to] >= amount,"EXTEND:over ");
toP.transfer(amount);
}
| 8,135,343 | [
1,
4625,
348,
7953,
560,
30,
518,
1410,
1993,
358,
1203,
18,
5508,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1584,
44,
12,
2867,
358,
16,
11890,
5034,
3844,
13,
3903,
288,
203,
3639,
1758,
8843,
429,
358,
52,
273,
8843,
429,
12,
869,
1769,
203,
3639,
2874,
12,
2867,
516,
2254,
5034,
13,
2502,
3780,
21,
273,
19048,
2146... |
/* Copyright (C) 2021 Soteria.fund
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 distributed... | minIACurr exchange
| pd.getInvestmentAssetAddress(minIACurr))); | 12,897,748 | [
1,
4625,
348,
7953,
560,
30,
225,
1131,
45,
2226,
295,
86,
7829,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
10792,
4863,
18,
588,
3605,
395,
475,
6672,
1887,
12,
1154,
45,
2226,
295,
86,
3719,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import './interfaces/IUniswapV2Pair.sol';
import './UniswapV2ERC20.sol';
import './libraries/Math.sol';
import './libraries/UQ112x112.sol';
import './interfaces/IERC20.sol';
import './interfaces/IUniswapV2Factory.sol';
contract UniswapV2Pair is IUniswapV2Pair, Un... | if (feeOn) kLast = uint(reserve0).mul(reserve1); reserve0 and reserve1 are up-to-date | emit Mint(msg.sender, amount0, amount1);
| 565,669 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
261,
21386,
1398,
13,
417,
3024,
273,
2254,
12,
455,
6527,
20,
2934,
16411,
12,
455,
6527,
21,
1769,
225,
20501,
20,
471,
20501,
21,
854,
731,
17,
869,
17,
712,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
3626,
490,
474,
12,
3576,
18,
15330,
16,
3844,
20,
16,
3844,
21,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0x62cd41f25bfd75c7dfd991915dcb93bed34dfd85
//Contract name: SmartzTokenLifecycleManager
//Balance: 0 Ether
//Verification Date: 1/26/2018
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity ^0.4.13;
contract ArgumentsChecker {
/// @dev check which prevents short address attack
modifier pay... | * @notice State machine of the contract. State transitions are straightforward: MINTING2PUBLIC_SALES -> MINTING2POOLS -> CIRCULATING_TOKEN./ minting tokens during public sales minting tokens to token pools further minting is not possible | enum State {
MINTING2PUBLIC_SALES,
MINTING2POOLS,
CIRCULATING_TOKEN
}
event StateChanged(State _state);
| 13,030,352 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3287,
5228,
434,
326,
6835,
18,
3287,
13136,
854,
21251,
11565,
30,
490,
3217,
1360,
22,
14939,
67,
5233,
11386,
317,
490,
3217,
1360,
22,
20339,
55,
317,
385,
30240,
1506,
28054,
67,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2792,
3287,
288,
203,
3639,
490,
3217,
1360,
22,
14939,
67,
5233,
11386,
16,
203,
3639,
490,
3217,
1360,
22,
20339,
55,
16,
203,
3639,
385,
30240,
1506,
28054,
67,
8412,
203,
565,
289,
203,
203,
203,
565,
871,
3287,
5033,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Raffle is VRFConsumerBaseV2, Ownable {
VRFCoordinatorV2... | In the event that VRF encounters an out of gas error during the callback to this contract, the gas limit can be adjusted here in order to fix that. | function updateVrfGasLimit(uint32 _callbackGasLimit) external onlyOwner {
require(raffleState == RAFFLE_STATE.CALCULATING_WINNER, "Invalid state");
callbackGasLimit = _callbackGasLimit;
raffleState = RAFFLE_STATE.OPEN;
}
| 9,841,628 | [
1,
4625,
348,
7953,
560,
30,
225,
657,
326,
871,
716,
776,
12918,
27516,
392,
596,
434,
16189,
555,
4982,
326,
1348,
358,
333,
6835,
16,
326,
16189,
1800,
848,
506,
13940,
2674,
316,
1353,
358,
2917,
716,
18,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1089,
58,
5809,
27998,
3039,
12,
11890,
1578,
389,
3394,
27998,
3039,
13,
3903,
1338,
5541,
288,
203,
565,
2583,
12,
354,
1403,
298,
1119,
422,
26880,
2246,
900,
67,
7998,
18,
7913,
39,
1506,
28054,
67,
24572,
12196,
16... |
./partial_match/1/0xd353fB1c33202441373524d3Cc5d94cd74113e25/sources/KaliFactory.sol | If member or extension is making proposal, include sponsorship. Proposal count cannot realistically overflow on human timescales. | function propose(
Call[] calldata calls,
ProposalType setting,
string calldata details
) public payable virtual returns (uint256 proposal, uint40 creationTime) {
if (setting != ProposalType.MINT)
if (setting != ProposalType.BURN)
if (setting != Proposa... | 2,821,452 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
3140,
578,
2710,
353,
10480,
14708,
16,
2341,
272,
500,
2467,
3261,
18,
19945,
1056,
2780,
2863,
5846,
1230,
9391,
603,
8672,
1658,
742,
5408,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
450,
4150,
12,
203,
3639,
3049,
8526,
745,
892,
4097,
16,
203,
3639,
19945,
559,
3637,
16,
203,
3639,
533,
745,
892,
3189,
203,
565,
262,
1071,
8843,
429,
5024,
1135,
261,
11890,
5034,
14708,
16,
2254,
7132,
6710,
950,
... |
./partial_match/1/0x1da8E62726A18d3a563AF8c10fC44416A89E9BAc/sources/PaymentProcessor.sol | * Allows withdrawal of funds to beneficiary address/ | function doWithdrawal(address beneficiary, uint amount) private {
require(beneficiary != 0x0);
beneficiary.transfer(amount);
}
| 3,724,644 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
25619,
598,
9446,
287,
434,
284,
19156,
358,
27641,
74,
14463,
814,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
741,
1190,
9446,
287,
12,
2867,
27641,
74,
14463,
814,
16,
2254,
3844,
13,
3238,
288,
203,
3639,
2583,
12,
70,
4009,
74,
14463,
814,
480,
374,
92,
20,
1769,
203,
3639,
27641,
74,
14463,
814,
18,
13866,
12,
8949,
1769,... |
pragma solidity 0.6.12;
import "./Address.sol";
import "./EternalStorage.sol";
import "./ISettings.sol";
import "./IACL.sol";
import "./IAccessControl.sol";
import "./IACLConstants.sol";
/**
* @dev Base contract for interacting with the ACL.
*/
contract AccessControl is EternalStorage, IAccessControl, IACLConstants... | * @dev Check if given address has a role in the given role group in the current context. @param _addr Address to check. @param _roleGroup Rolegroup to check against. @return true if so/ | function inRoleGroup (address _addr, bytes32 _roleGroup) public view override returns (bool) {
return inRoleGroupWithContext(aclContext(), _addr, _roleGroup);
}
| 13,090,051 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2073,
309,
864,
1758,
711,
279,
2478,
316,
326,
864,
2478,
1041,
316,
326,
783,
819,
18,
632,
891,
389,
4793,
5267,
358,
866,
18,
632,
891,
389,
4615,
1114,
6204,
1655,
358,
866,
5314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
316,
2996,
1114,
261,
2867,
389,
4793,
16,
1731,
1578,
389,
4615,
1114,
13,
1071,
1476,
3849,
1135,
261,
6430,
13,
288,
203,
565,
327,
316,
2996,
1114,
4772,
12,
10150,
1042,
9334,
389,
4793,
16,
389,
4615,
1114,
1769,
... |
./full_match/97/0xE7bE05433Fbd1b59d58cEEE3037D0D0baa358898/sources/contracts/EscrowStack.sol | mint and store the meme in the contract validations mint the token with an autoincrement id set the price of the memecreateMeme | function createMeme(uint256 _id, bool _is_nft, uint256 _sale_price) public {
require(token_to_pay.balanceOf(msg.sender) >= minimumtokensForPost, "minimum tokens is required");
require(memes[_id].nft_id == 0, "this meme is already registered");
require(hasActiveStakes(msg.sender), "You need t... | 3,289,867 | [
1,
4625,
348,
7953,
560,
30,
225,
312,
474,
471,
1707,
326,
1663,
73,
316,
326,
6835,
20808,
312,
474,
326,
1147,
598,
392,
2059,
30033,
612,
444,
326,
6205,
434,
326,
1663,
557,
602,
3545,
73,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
3545,
73,
12,
11890,
5034,
389,
350,
16,
1426,
389,
291,
67,
82,
1222,
16,
2254,
5034,
389,
87,
5349,
67,
8694,
13,
1071,
288,
203,
3639,
2583,
12,
2316,
67,
869,
67,
10239,
18,
12296,
951,
12,
3576,
18,
15330,... |
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
/**
* @title SushiSwap Double Incentive.
* @dev Decentralized Exchange.
*/
import {TokenInterface} from "../../common/interfaces.sol";
import {Helpers} from "./helpers.sol";
import {Events} from "./events.sol";
abstract contract SushipswapIncentiveResolver... | * @dev harvest from masterChef @notice harvest from masterChef @param token1 token1 deposited of LP token @param token2 token2 deposited LP token @param setId ID stores Pool ID/ | function harvest(
address token1,
address token2,
uint256 setId
)
external
payable
returns (string memory _eventName, bytes memory _eventParam)
{
token1 = changeEthAddrToWethAddr(token1);
token2 = changeEthAddrToWethAddr(token2);
(uint2... | 5,404,845 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17895,
26923,
628,
4171,
39,
580,
74,
632,
20392,
17895,
26923,
628,
4171,
39,
580,
74,
632,
891,
1147,
21,
1147,
21,
443,
1724,
329,
434,
511,
52,
1147,
632,
891,
1147,
22,
1147,
22,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
445,
17895,
26923,
12,
203,
3639,
1758,
1147,
21,
16,
203,
3639,
1758,
1147,
22,
16,
203,
3639,
2254,
5034,
10446,
203,
565,
262,
203,
3639,
3903,
203,
3639,
8843,
429,
203,
3639,
1135,
261,
1080,
3778,
389,
2575,
461,
16,
... |
contract Games {
uint public minVoters;
uint public minConfirmTime;
GameProposal[] public gameProposals;
uint public numProposals;
event ProposalAdded(uint proposalId, address proposer);
event Voted(uint proposalId, bool inSupport, address voter);
struct GameProposal {
string away... | Create game contract | function executeGameProposal(uint proposalId, bytes transactionBytecode) returns (int result) {
GameProposal p = gameProposals[proposalId];
if (now < p.minVotingTime /* has the voting deadline arrived? */
|| !p.openToVote /* has it been already executed? */
|| p.prop... | 12,748,017 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
7920,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1836,
12496,
14592,
12,
11890,
14708,
548,
16,
1731,
2492,
858,
16651,
13,
1135,
261,
474,
563,
13,
288,
203,
3639,
14121,
14592,
293,
273,
7920,
626,
22536,
63,
685,
8016,
548,
15533,
203,
3639,
309,
261,
3338,
411,
29... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
//Experimental Weather Insurance contract
contract WxContract {
address oracle; //This is the address that will provide the measured temperature
address payable public insured;
address payable public insurer;
uint coverage;
uint tem... | This is the address that will provide the measured temperature
| address oracle; | 12,938,999 | [
1,
4625,
348,
7953,
560,
30,
1220,
353,
326,
1758,
716,
903,
5615,
326,
22221,
12843,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
20865,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of... | TOTAL_FRAGMENTS is a multiple of INITIAL_TOKEN_SUPPLY so that _fragmentsPerToken is an integer. Use the highest value that fits in a uint256 for max granularity. ** added: new variable _adjustTime | {
using SafeMath for uint256;
address private _owner;
string private constant NAME = "Savix";
string private constant SYMBOL = "SVX";
uint private constant DECIMALS = 9;
uint private _constGradient = 0;
bool private _stakingActive = false;
uint256 private _stakingSince = 0;
uint25... | 6,068,284 | [
1,
4625,
348,
7953,
560,
30,
225,
399,
19851,
67,
9981,
26903,
55,
353,
279,
3229,
434,
28226,
67,
8412,
67,
13272,
23893,
1427,
716,
389,
29528,
2173,
1345,
353,
392,
3571,
18,
2672,
326,
9742,
460,
716,
13351,
316,
279,
2254,
5034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
95,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
1758,
3238,
389,
8443,
31,
203,
565,
533,
3238,
5381,
6048,
273,
315,
55,
69,
522,
92,
14432,
203,
565,
533,
3238,
5381,
26059,
273,
315,
23927,
60,
14432,
2... |
pragma solidity >=0.4.21 <0.7.0;
contract User{
struct account{
//address user_address;
string nickname;
string intro;
string[] created_project;
string[] sended_project;
uint[] sended_money;
}
account[] internal users;
mapping(address=>uint) internal user_exist;
mapping(address=>uint) int... | _a.user_address = msg.sender; | function add_user(string memory _nickname, string memory _intro) public {
if(user_exist[msg.sender]==0){
account memory _a;
_a.nickname = _nickname;
_a.intro = _intro;
users.push(_a);
address_to_account_index[msg.sender] = users.length-1;
user_exist[msg.sender] = 1;
}
else{
users[address_to_... | 12,770,717 | [
1,
4625,
348,
7953,
560,
30,
389,
69,
18,
1355,
67,
2867,
273,
1234,
18,
15330,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
527,
67,
1355,
12,
1080,
3778,
389,
17091,
529,
16,
533,
3778,
389,
23342,
13,
1071,
288,
203,
202,
202,
430,
12,
1355,
67,
7398,
63,
3576,
18,
15330,
65,
631,
20,
15329,
203,
1082,
202,
4631,
3778,
389,
69,
31,
203... |
pragma solidity 0.4.24;
import './SharedStorage.sol';
import '../ownership/NotInitedOwnable.sol';
/**
* @title OwnableUpgradeableImplementation
* @dev Assembling contract of the ownable upgradeable funcionality.
* @notice Inspired by https://medium.com/limechain/smart-contract-upgradeability-ee3d43dde96c
*/
cont... | * @dev Allows the current owner to upgrade the implementation to which the `Forwardable` contract delegates calls. @param _newImplementation The address of the new implementation./ | function upgradeImplementation(address _newImplementation) public onlyOwner {
require(_newImplementation != address(0), '_newImplementation can not be 0');
emit LogUpgradedContract(_newImplementation);
contractImplementation = _newImplementation;
}
| 12,975,047 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
326,
783,
3410,
358,
8400,
326,
4471,
358,
1492,
326,
1375,
8514,
429,
68,
6835,
22310,
4097,
18,
632,
891,
389,
2704,
13621,
1021,
1758,
434,
326,
394,
4471,
18,
19,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
8400,
13621,
12,
2867,
389,
2704,
13621,
13,
1071,
1338,
5541,
288,
203,
202,
202,
6528,
24899,
2704,
13621,
480,
1758,
12,
20,
3631,
2070,
2704,
13621,
848,
486,
506,
374,
8284,
203,
202,
202,
18356,
1827,
1211,
19305,
... |
//Address: 0x20f7a3ddf244dc9299975b4da1c39f8d5d75f05a
//Contract name: SapienToken
//Balance: 0 Ether
//Verification Date: 4/3/2018
//Transacion Count: 4104
// CODE STARTS HERE
pragma solidity ^0.4.18;
// File: contracts/zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable co... | If a controller is present, ask it about the transfer. | modifier controllerCallback(address _from, address _to, uint256 _value, bytes _purpose) {
if(address(controller) != address(0)) {
bool _allow = controller.allowTransfer(msg.sender, _from, _to, _value, _purpose);
if(!_allow) {
}
}
}
| 13,030,207 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
279,
2596,
353,
3430,
16,
6827,
518,
2973,
326,
7412,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2596,
2428,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
16,
1731,
389,
22987,
13,
288,
203,
3639,
309,
12,
2867,
12,
5723,
13,
480,
1758,
12,
20,
3719,
288,
203,
5411,
1426,
389,
5965,
273,
... |
pragma solidity ^0.4.23;
import "./DateTime.sol";
contract GuesserStorage is DateTime{
// Data structures
struct GuessStruct {
string title;
string description;
bytes32 topic;
address creator;
/* The voters and the option the voted
* It will store an array which hasguessesByAddress
*... | * @dev Function that returns the option asked for @param _index uint256 The guess your are asking about @return uint256 the option you are asking for/ | function getGuessOptionValidationTotal (uint256 _index) isOwner external view returns (uint128) {
return guesses[_index].option1Validation + guesses[_index].option2Validation;
}
| 2,561,111 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
716,
1135,
326,
1456,
19279,
364,
632,
891,
389,
1615,
2254,
5034,
1021,
7274,
3433,
854,
29288,
2973,
632,
2463,
2254,
5034,
326,
1456,
1846,
854,
29288,
364,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
336,
15977,
1895,
4354,
5269,
261,
11890,
5034,
389,
1615,
13,
353,
5541,
3903,
1476,
1135,
261,
11890,
10392,
13,
288,
203,
565,
327,
7274,
281,
63,
67,
1615,
8009,
3482,
21,
4354,
397,
7274,
281,
63,
67,
1615,
8009,
... |
./full_match/4/0x80C64d713063682D33e6D3ECbAbbd00a479A823F/sources/DaiGunToken_1_.sol | using SafeMath for uint256; string public name = 'DAI Token'; string public symbol = 'DAI'; 当作DAI的测试币 | abstract contract ERC20 is Context, IERC20 {
function decimals() external view override returns (uint8) {
return _decimals;
}
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply = 0;
funct... | 661,515 | [
1,
4625,
348,
7953,
560,
30,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
533,
1071,
508,
273,
296,
9793,
45,
3155,
13506,
533,
1071,
3273,
273,
296,
9793,
45,
13506,
9079,
225,
166,
126,
246,
165,
126,
255,
9793,
45,
168,
253,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
203,
203,
565,
445,
15105,
1435,
3903,
1476,
3849,
1135,
261,
11890,
28,
13,
288,
203,
3639,
327,
389,
31734,
31,
203,
565,
289,
203,
203,
565,
2874,
261... |
./full_match/1/0x6928b8F5DC33A53C7001Aed4fA13e52Be284D331/sources/contracts/Database.sol | @notice Details of audited contract @param auditor Address of auditor @param developer Address of developer @param status Status of audit @param auditDescription Description of audit results @param feedback Bool if feedback has been given to auditor | struct AuditedContract {
address auditor;
address developer;
STATUS status;
string auditDescription;
bool feedback;
}
| 8,466,759 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
5375,
21897,
434,
8215,
329,
6835,
632,
891,
20232,
1811,
6647,
5267,
434,
20232,
1811,
632,
891,
8751,
540,
5267,
434,
8751,
632,
891,
1267,
5411,
2685,
434,
8215,
632,
891,
8215,
3291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
1958,
12975,
329,
8924,
288,
203,
3639,
1758,
20232,
1811,
31,
203,
3639,
1758,
8751,
31,
203,
3639,
7136,
1267,
31,
203,
3639,
533,
8215,
3291,
31,
203,
3639,
1426,
10762,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
./partial_match/42/0xF1eA75D155650BCCbf9F9712278F45377dc3C3B8/sources/CFDVault.sol | EVENTSchangeType shows the liquidity changed by what key by exchange address record lp liquidity for every exchange********************************************************** Can not change the order of above state variables **********************************************************◥◤◥◤◥◤◥◤◥◤◥◤◥◤◥◤ add state var... | contract CFDVault is OwnableUpgradeable {
using Decimal for Decimal.decimal;
using SignedDecimal for SignedDecimal.signedDecimal;
using MixedDecimal for SignedDecimal.signedDecimal;
using SafeERC20Upgradeable for IERC20Upgradeable;
event LiquidityAdd(address indexed exchange, address indexed accoun... | 9,060,665 | [
1,
4625,
348,
7953,
560,
30,
225,
9964,
55,
3427,
559,
17975,
326,
4501,
372,
24237,
3550,
635,
4121,
498,
635,
7829,
1758,
1409,
12423,
4501,
372,
24237,
364,
3614,
7829,
5021,
19482,
636,
565,
4480,
486,
2549,
326,
1353,
434,
5721,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6123,
40,
12003,
353,
14223,
6914,
10784,
429,
288,
203,
565,
1450,
11322,
364,
11322,
18,
12586,
31,
203,
565,
1450,
16724,
5749,
364,
16724,
5749,
18,
5679,
5749,
31,
203,
565,
1450,
24725,
5749,
364,
16724,
5749,
18,
5679... |
pragma solidity ^0.4.20;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
// assert(b > 0); // Solidity automatically t... | please import oraclizeAPI_pre0.4.sol when solidity < 0.4.0
| pragma solidity ^0.4.11; | 1,131,137 | [
1,
4625,
348,
7953,
560,
30,
9582,
1930,
578,
10150,
554,
2557,
67,
1484,
20,
18,
24,
18,
18281,
1347,
18035,
560,
411,
374,
18,
24,
18,
20,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
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,
683,
9454,
18035,
560,
3602,
20,
18,
24,
18,
2499,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/*
███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗
██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝
█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗
██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝
██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝... | * gets the alpha score for a Fox @param tokenId the ID of the Fox to get the alpha score for @return the alpha score of the Fox (5-8)/ | function _getAdvantagePoints(uint16 tokenId) internal view returns (uint8) {
}
| 12,238,763 | [
1,
4625,
348,
7953,
560,
30,
380,
5571,
326,
4190,
4462,
364,
279,
478,
2409,
632,
891,
1147,
548,
326,
1599,
434,
326,
478,
2409,
358,
336,
326,
4190,
4462,
364,
632,
2463,
326,
4190,
4462,
434,
326,
478,
2409,
261,
25,
17,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
389,
588,
1871,
7445,
410,
5636,
12,
11890,
2313,
1147,
548,
13,
2713,
1476,
1135,
261,
11890,
28,
13,
288,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2021-09-24
*/
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
library console {
address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);
function _sendLogPayload(bytes memory payload) private view {
uint256 payloadLength ... | SPDX-License-Identifier: MIT | library console {
address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);
function _sendLogPayload(bytes memory payload) private view {
uint256 payloadLength = payload.length;
address consoleAddress = CONSOLE_ADDRESS;
assembly {
let payloadStart := add(payload, 32)
let r ... | 15,037,959 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
2983,
288,
203,
202,
2867,
5381,
3492,
3584,
900,
67,
15140,
273,
1758,
12,
20,
92,
12648,
2787,
9449,
4449,
26,
42,
26,
73,
27,
5718,
42,
26,
71,
9222,
22,
73,
26,
71,
26,
74,
9599,
1769,
203,
203,
203,
202,
915,
38... |