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 |
|---|---|---|---|---|---|---|
/**
*Submitted for verification at Etherscan.io on 2020-02-20
*/
/**
*Submitted for verification at Etherscan.io on 2020-02-17
*/
pragma solidity ^0.5.2;
/**
* Copyright (c) 2018-present, Leap DAO (leapdao.org)
*
* This source code is licensed under the Mozilla Public License, version 2,
* found in the LICENSE... | solium-disable-line arg-overflow
| dest = ecrecover(getSigHash(txData), v, r, s); | 5,413,535 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
5077,
17,
8394,
17,
1369,
1501,
17,
11512,
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,
1570,
273,
425,
1793,
3165,
12,
588,
8267,
2310,
12,
978,
751,
3631,
331,
16,
436,
16,
272,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | @dev Decode ERC20Bridge asset data from the format described in the AssetProxy contract specification. @param assetData AssetProxy-compliant asset data describing an ERC20Bridge asset @return assetProxyId The ERC20BridgeProxy identifier. @return tokenAddress The address of the ERC20 token to transfer. @return bridgeAd... | function decodeERC20BridgeAssetData(bytes memory assetData)
public
pure
returns (
bytes4 assetProxyId,
address tokenAddress,
address bridgeAddress,
bytes memory bridgeData
)
{
return LibAssetData.decodeERC20BridgeAssetData(a... | 6,362,897 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6209,
4232,
39,
3462,
13691,
3310,
501,
628,
326,
740,
11893,
316,
326,
10494,
3886,
6835,
7490,
18,
632,
891,
3310,
751,
10494,
3886,
17,
832,
18515,
3310,
501,
16868,
392,
4232,
39,
346... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2495,
654,
39,
3462,
13691,
6672,
751,
12,
3890,
3778,
3310,
751,
13,
203,
3639,
1071,
203,
3639,
16618,
203,
3639,
1135,
261,
203,
5411,
1731,
24,
3310,
3886,
548,
16,
203,
5411,
1758,
1147,
1887,
16,
203,
5411,
1758,
... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity ^0.8.6;
uint256 constant MAX_VAL = type(uint256).max;
// reverts on overflow
function safeAdd(uint256 x, uint256 y) pure returns (uint256) {
return x + y;
}
// does not revert on overflow
function unsafeAdd(uint256 x, uint256 y) pure returns (uin... | * @dev Compute the inverse of `d` modulo `2 ^ 256`, where `d` is congruent to `1` modulo `2`/ approximate the root of `f(x) = 1 / x - d` using the newton–raphson convergence method | function inv256(uint256 d) public pure returns (uint256) {
unchecked {
uint256 x = 1;
for (uint256 i = 0; i < 8; ++i)
return x;
}
}
| 1,053,912 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8155,
326,
8322,
434,
1375,
72,
68,
26109,
1375,
22,
3602,
8303,
9191,
1625,
1375,
72,
68,
353,
356,
3197,
10744,
358,
1375,
21,
68,
26109,
1375,
22,
68,
19,
21204,
326,
1365,
434,
1375... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2198,
5034,
12,
11890,
5034,
302,
13,
1071,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
22893,
288,
203,
5411,
2254,
5034,
619,
273,
404,
31,
203,
5411,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
1725,
... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'DYF Token' Smart Contract
//
// OwnerAddress :
// Symbol :
// Name :
// Total Supply :
// Decimals : 18
// Copyrights of 'DYFToken' With 'DYF' Symbol October 25, 2020.
// The MIT Licence.
//... | ------------------------------------------------------------------------ Token owner can approve for `spender` to transferFrom(...) `tokens` from the token owner's account ------------------------------------------------------------------------ | function approve(address spender, uint tokens) public returns (bool success) {
require(spender != address(0));
require(tokens > 0);
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| 1,245,685 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
3155,
3410,
848,
6617,
537,
364,
1375,
87,
1302,
264,
68,
358,
7412,
1265,
5825,
13,
1375,
7860,
68,
628,
326,
1147,
3410,
1807,
2236,
8879,
17082,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
2430,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
6528,
12,
87,
1302,
264,
480,
1758,
12,
20,
10019,
203,
6528,
12,
7860,
405,
374,
1769,
203,
203,
8151,
63,
3576,
18,
15330,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity 0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./interfaces/IN.sol";
/**
* @title TheGaussianProtoco... | * @title TheGaussianProtocol @author Designed by @syntroNFT/ | contract TheGaussianProtocol is ERC721Enumerable, ReentrancyGuard, Ownable {
using Strings for uint256;
uint256 public constant MAX_TOKEN_ID = 8888;
IN public immutable n;
bool public publicSaleActive = false;
string private _imageUriPrefix;
string private _uriPrefix;
mapping(uint256 => s... | 9,824,541 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1021,
43,
12086,
5752,
632,
4161,
29703,
329,
635,
632,
9009,
496,
303,
50,
4464,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1021,
43,
12086,
5752,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
868,
8230,
12514,
16709,
16,
14223,
6914,
288,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
1071,
5381,
4552,
67,
8412,
67,
734,
273... |
./full_match/80001/0x33A79362E55E571f541C418AC2614dc656c22522/sources/contracts/GetPayment.sol | * @dev place an order that pays for native tokens @param orderId id of order @param amountUSD price in usd. amountUSD must be an integer, 1 amountUSD = 1 USD/ | function placeOrderNative(bytes32 orderId, uint256 amountUSD) external {
require(isNativeTokenValidPaymentMethod, NATIVE_TOKEN_ERROR);
require(!(isOrderPresented(orderId)), ORDER_EXISTS_ERROR);
require(nativePriceOracleAddress != address(0), NATIVE_ADDRESS_ERROR);
require(nativeToken... | 5,675,219 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3166,
392,
1353,
716,
293,
8271,
364,
6448,
2430,
632,
891,
20944,
612,
434,
1353,
632,
891,
3844,
3378,
40,
6205,
316,
584,
72,
18,
3844,
3378,
40,
225,
1297,
506,
392,
3571,
16,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3166,
2448,
9220,
12,
3890,
1578,
20944,
16,
2254,
5034,
3844,
3378,
40,
13,
3903,
288,
203,
3639,
2583,
12,
291,
9220,
1345,
1556,
20776,
16,
423,
12992,
67,
8412,
67,
3589,
1769,
203,
3639,
2583,
12,
5,
12,
291,
244... |
./partial_match/1/0x5f7b07c0553BD77FDE8699Aa3B85F8f7B112fF8e/sources/PACT.sol | * Constrctor function/ | constructor() public {
_name = "P2PB2B community token";
_symbol = "PACT";
_decimals = 18;
_totalSupply = 1000000000000000000000000000;
balances[address(0)] = _totalSupply;
}
| 9,155,122 | [
1,
4625,
348,
7953,
560,
30,
380,
735,
701,
30206,
445,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
225,
288,
203,
3639,
389,
529,
273,
315,
52,
22,
20724,
22,
38,
19833,
1147,
14432,
203,
3639,
389,
7175,
273,
315,
4066,
1268,
14432,
203,
3639,
389,
31734,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,... |
./full_match/80001/0x3F2b72B9D52651B4dcdB99d1AB1736aC889e6e38/sources/contracts/mixins/MixinKeys.sol | * @notice Public function for setting the manager for a given key @param _tokenId The id of the key to assign rights for @param _keyManager the address with the manager's rights for the given key. Setting _keyManager to address(0) means the keyOwner is also the keyManager/ is already key manager is lock manager | function setKeyManagerOf(
uint _tokenId,
address _keyManager
) public
{
_isKey(_tokenId);
if(
!_isKeyManager(_tokenId, msg.sender)
&& !isLockManager(msg.sender)
) {
revert UNAUTHORIZED_KEY_MANAGER_UPDATE();
}
_setKeyManagerOf(_tokenId, _keyManager);
}
| 9,486,846 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7224,
445,
364,
3637,
326,
3301,
364,
279,
864,
498,
632,
891,
389,
2316,
548,
1021,
612,
434,
326,
498,
358,
2683,
14989,
364,
632,
891,
389,
856,
1318,
326,
1758,
598,
326,
3301,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
16696,
1318,
951,
12,
203,
565,
2254,
389,
2316,
548,
16,
203,
565,
1758,
389,
856,
1318,
203,
225,
262,
1071,
203,
225,
288,
203,
565,
389,
291,
653,
24899,
2316,
548,
1769,
203,
565,
309,
12,
203,
1377,
401,
67,
2... |
./full_match/1/0xCD3c2aB95cF91665D590751CdD3d7959C41951f4/sources/contracts/dependencies/openzeppelin/contracts/Math.sol | * @dev Standard math utilities missing in the Solidity language./ | library Math {
pragma solidity ^0.8.0;
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
function average(uint256 a, uint256 b) internal pure returns (uint256) {
... | 17,093,986 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8263,
4233,
22538,
3315,
316,
326,
348,
7953,
560,
2653,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
2361,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
225,
445,
943,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
279,
1545,
324,
692,
... |
/*
I heard a rumor..... that this token will absolutely moon.
TELEGRAM : https://t.me/DogKageNation
WEBSITE : http://www.DogKage.net
TWITTER : http://www.twitter.com/DogKage
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
abstract contract Context {
function _msgSender() internal view return... | Ownership moved to in-contract for customizability. UNI ROUTER | contract DAKE is Context, IERC20 {
address private _owner;
mapping (address => uint256) private _tOwned;
mapping (address => bool) lpPairs;
uint256 private timeSinceLastPair = 0;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _isExcluded... | 283,595 | [
1,
4625,
348,
7953,
560,
30,
225,
14223,
9646,
5310,
10456,
358,
316,
17,
16351,
364,
1679,
452,
2967,
18,
19462,
534,
5069,
654,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
463,
37,
6859,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
88,
5460,
329,
31,
203,
565,
2874,
261,
2867,
516,
1426,
13,
12423,
... |
./full_match/44787/0xFBf4Fa7119Ebd69c8786E628acD76FE21C3F0903/sources/contracts/ERC721/MarketV2.sol | @dev Get number of minted unique token Ids | function getGroupIdAmountMinted(uint256 groupId)
public
view
returns (uint256)
{
return _groupTokenInfoList[groupId].amountMinted;
}
| 13,258,708 | [
1,
4625,
348,
7953,
560,
30,
632,
5206,
968,
1300,
434,
312,
474,
329,
3089,
1147,
29085,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
27968,
6275,
49,
474,
329,
12,
11890,
5034,
6612,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
389,
1655,
1345,
17914,
63,
27547,
8009,
8949,
49,
474,
329,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../libraries/SortitionSumTreeFactory.sol";... | * @dev add chances to win for participant may only call by vault. @param participant address participant. @param _chances number of chances to win./ | function addChances(address participant, uint256 _chances)
external
onlyVault
{
require(_chances > 0, "PrizePool: Chances cannot be less than zero");
_totalChances = _totalChances.add(_chances);
if (entries[participant].chances > 0) {
entries[participant].last... | 13,075,313 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
527,
3861,
764,
358,
5657,
364,
14188,
2026,
1338,
745,
635,
9229,
18,
632,
891,
14188,
1758,
14188,
18,
632,
891,
389,
343,
6872,
1300,
434,
3861,
764,
358,
5657,
18,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
6255,
764,
12,
2867,
14188,
16,
2254,
5034,
389,
343,
6872,
13,
203,
3639,
3903,
203,
3639,
1338,
12003,
203,
565,
288,
203,
3639,
2583,
24899,
343,
6872,
405,
374,
16,
315,
2050,
554,
2864,
30,
1680,
6872,
2780,
... |
// SPDX-License-Identifier: MIT
// Sources flattened with hardhat v2.0.11 https://hardhat.org
// File @boringcrypto/boring-solidity/contracts/libraries/BoringMath.sol@v1.0.4
pragma solidity 0.6.12;
// a library for performing overflow-safe math, updated with awesomeness from of DappHub (https://github.com/dapphub/ds-... | @notice Deposit LP tokens to MCV2 for SUWP allocation. @param pid The index of the pool. See `poolInfo`. @param amount LP token amount to deposit. @param to The receiver of `amount` deposit benefit. Effects Interactions | function deposit(uint256 pid, uint256 amount, address to) public {
PoolInfo memory pool = updatePool(pid);
UserInfo storage user = userInfo[pid][to];
user.amount = user.amount.add(amount);
user.rewardDebt = user.rewardDebt.add(int256(amount.mul(pool.accSuwpPerShare) / ACC_SUWP_PRECI... | 11,659,807 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4019,
538,
305,
511,
52,
2430,
358,
490,
22007,
22,
364,
11726,
20265,
13481,
18,
632,
891,
4231,
1021,
770,
434,
326,
2845,
18,
2164,
1375,
6011,
966,
8338,
632,
891,
3844,
511,
52,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
12,
11890,
5034,
4231,
16,
2254,
5034,
3844,
16,
1758,
358,
13,
1071,
288,
203,
3639,
8828,
966,
3778,
2845,
273,
1089,
2864,
12,
6610,
1769,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
6610,
6362,
869,
1553... |
/**
*Submitted for verification at Etherscan.io on 2021-05-26
*/
/**
*Submitted for verification at Etherscan.io on 2021-05-26
*/
/**
*Submitted for verification at Etherscan.io on 2021-05-25
*/
/**
*Submitted for verification at Etherscan.io on 2021-05-25
*/
/**
*Submitted for verification at Etherscan.io on ... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "Hugo Troll";
symbol = "MyHugo";
decimals = 18;
_totalSupply = 1234568907777777 * (uint256(10) ** decimals);
balances[msg.sender] = _totalSupply;
emit Transfer(address(1111111111111111111111111111111111111111), msg.sender, _tota... | 7,999,427 | [
1,
4625,
348,
7953,
560,
30,
380,
735,
701,
30206,
445,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
44,
637,
83,
399,
2693,
14432,
203,
3639,
3273,
273,
315,
12062,
44,
637,
83,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
30011,
4313,
6675,... |
pragma solidity ^0.4.4;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balan... | Set the symbol for display purposes
| symbol = "RITV"; | 10,338,143 | [
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,
54,
1285,
58,
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,
... |
./partial_match/1/0x61e42A3d56687C94DBc216E534eF5d162Fd59f69/sources/DeFiBot.sol | this will be used for MEV bots who offer nothing to the community | function isBlacklistedAddress(address account) public view returns (bool) {
return blacklistedAddresses[account];
}
| 15,491,894 | [
1,
4625,
348,
7953,
560,
30,
333,
903,
506,
1399,
364,
7733,
58,
2512,
87,
10354,
10067,
5083,
358,
326,
19833,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
13155,
18647,
1887,
12,
2867,
2236,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
25350,
7148,
63,
4631,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/42/0x3dA2ca46Af2Ab9Ae5265862fe37a71Cd9F630b70/sources/contracts/Comptroller.sol | * @notice Transfer COMP to the recipient @dev Note: If there is not enough COMP, we do not perform the transfer all. @param recipient The address of the recipient to transfer COMP to @param amount The amount of COMP to (possibly) transfer @return The amount of COMP which was NOT transferred to the recipient/ | function _grantComp(address recipient, uint amount) public returns (uint) {
require(adminOrInitializing(), "only admin can grant comp");
uint amountLeft = grantCompInternal(recipient, amount);
require(amountLeft == 0, "insufficient comp for grant");
emit CompGranted(recipient, amount... | 3,465,947 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12279,
13846,
358,
326,
8027,
632,
5206,
3609,
30,
971,
1915,
353,
486,
7304,
13846,
16,
732,
741,
486,
3073,
326,
7412,
777,
18,
632,
891,
8027,
1021,
1758,
434,
326,
8027,
358,
7412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16243,
2945,
12,
2867,
8027,
16,
2254,
3844,
13,
1071,
1135,
261,
11890,
13,
288,
203,
3639,
2583,
12,
3666,
1162,
29782,
9334,
315,
3700,
3981,
848,
7936,
1161,
8863,
203,
3639,
2254,
3844,
3910,
273,
7936,
2945,
... |
./partial_match/3/0x579a23c6F229e5862DF602531586DD894e98FBA5/sources/ERC721Token.sol | * @dev Internal function to set the token URI for a given token @dev Reverts if the token ID does not exist @param _tokenId uint256 ID of the token to set its URI @param _uri string URI to assign/ | function _setTokenURI(uint256 _tokenId, string _uri) internal {
require(exists(_tokenId));
tokenURIs[_tokenId] = _uri;
}
| 5,197,119 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
444,
326,
1147,
3699,
364,
279,
864,
1147,
632,
5206,
868,
31537,
309,
326,
1147,
1599,
1552,
486,
1005,
632,
891,
389,
2316,
548,
2254,
5034,
1599,
434,
326,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
542,
1345,
3098,
12,
11890,
5034,
389,
2316,
548,
16,
533,
389,
1650,
13,
2713,
288,
203,
565,
2583,
12,
1808,
24899,
2316,
548,
10019,
203,
565,
1147,
1099,
2520,
63,
67,
2316,
548,
65,
273,
389,
1650,
31,
203,
... |
./full_match/8453/0xb8b0e1EBD2266A0dFf7Da4EbEE8DAaaa6810508f/sources/contracts/Dividends.sol | * @dev Transfers the given amount of token from caller to pendingAmount Must only be called by a trustable address/ handle tokens with transfer tax | function addDividendsToPending(
address token,
uint256 amount
) external override nonReentrant {
uint256 prevTokenBalance = IERC20(token).balanceOf(address(this));
DividendsInfo storage dividendsInfo_ = dividendsInfo[token];
IERC20(token).safeTransferFrom(msg.sender, add... | 11,546,809 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
326,
864,
3844,
434,
1147,
628,
4894,
358,
4634,
6275,
6753,
1338,
506,
2566,
635,
279,
10267,
429,
1758,
19,
1640,
2430,
598,
7412,
5320,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
7244,
350,
5839,
774,
8579,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3903,
3849,
1661,
426,
8230,
970,
288,
203,
3639,
2254,
5034,
2807,
1345,
13937,
273,
467,
654,
39,
3462,
12,
... |
pragma solidity ^0.4.15;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
if (a != 0 && c / a != b) revert();
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
// asse... | * @dev Contract constructor/ Issue pre crowdsale tokens Issue crowdsale tokens 500 millions tokens overall | function IRBToken() {
balances[preCrowdsaleTokensWallet] = balanceOf(preCrowdsaleTokensWallet).add(preCrowdsaleTokens);
Transfer(address(0), preCrowdsaleTokensWallet, preCrowdsaleTokens);
balances[crowdsaleTokensWallet] = balanceOf(crowdsaleTokensWallet).add(crowdsaleTokens);
Transf... | 6,387,840 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
3885,
19,
11820,
675,
276,
492,
2377,
5349,
2430,
11820,
276,
492,
2377,
5349,
2430,
6604,
312,
737,
1115,
2430,
13914,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15908,
38,
1345,
1435,
288,
203,
3639,
324,
26488,
63,
1484,
39,
492,
2377,
5349,
5157,
16936,
65,
273,
11013,
951,
12,
1484,
39,
492,
2377,
5349,
5157,
16936,
2934,
1289,
12,
1484,
39,
492,
2377,
5349,
5157,
1769,
203,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
//
/*
* @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 w... | UnFederalReserveToken with Governance. | contract UnFederalReserveToken is ERC20("UnFederalReserveToken", "eRSDL"), Ownable {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
mapping (address => address) internal _delegates;
struct Che... | 7,647,036 | [
1,
4625,
348,
7953,
560,
30,
225,
1351,
21503,
11612,
607,
6527,
1345,
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,... | [
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,
1351,
21503,
11612,
607,
6527,
1345,
353,
4232,
39,
3462,
2932,
984,
21503,
11612,
607,
6527,
1345,
3113,
315,
73,
13225,
8914,
6,
3631,
14223,
6914,
288,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8... |
./partial_match/1/0x919B5e2714FEaE5C366ADa120EA566F79106cB67/sources/StandardPoolConverter.sol | * @dev syncs all stored reserve balances, excluding a given amount of ether from the ether reserve balance (if relevant) @param _value amount of ether to exclude from the ether reserve balance (if relevant)/ | function syncReserveBalances(uint256 _value) internal {
IERC20Token _reserveToken0 = __reserveTokens[0];
IERC20Token _reserveToken1 = __reserveTokens[1];
uint256 balance0 = _reserveToken0 == ETH_RESERVE_ADDRESS
? address(this).balance - _value
: _reserveToken0.balance... | 9,357,585 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3792,
87,
777,
4041,
20501,
324,
26488,
16,
19560,
279,
864,
3844,
434,
225,
2437,
628,
326,
225,
2437,
20501,
11013,
261,
430,
9368,
13,
632,
891,
389,
1132,
282,
3844,
434,
225,
2437,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
3792,
607,
6527,
38,
26488,
12,
11890,
5034,
389,
1132,
13,
2713,
288,
203,
3639,
467,
654,
39,
3462,
1345,
389,
455,
6527,
1345,
20,
273,
1001,
455,
6527,
5157,
63,
20,
15533,
203,
3639,
467,
654,
39,
3462,
1345,
389... |
/*
____ __ __ __ _
/ __/__ __ ___ / /_ / / ___ / /_ (_)__ __
_\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
/___/
* Synthetix: Issuer.sol
*
* Latest source (may be newer): https://github.com/Synthetixio/synthetix/blob/master/contracts/Iss... | Get the timestamp of the last issue this account made | function _lastIssueEvent(address account) internal view returns (uint) {
return flexibleStorage().getUIntValue(CONTRACT_NAME, keccak256(abi.encodePacked(LAST_ISSUE_EVENT, account)));
}
| 540,874 | [
1,
4625,
348,
7953,
560,
30,
282,
968,
326,
2858,
434,
326,
1142,
5672,
333,
2236,
7165,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2722,
12956,
1133,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
16600,
1523,
3245,
7675,
588,
14342,
620,
12,
6067,
2849,
1268,
67,
1985,
16,
417,
24410,
581,
5034,
12,
21457,
18,
3015... |
// SPDX-License-Identifier: MIT
// COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following con... | Copied and modified from SushiToken with Governance https:github.com/sushiswap/sushiswap/blob/master/contracts/SushiToken.sol | contract TomatoToken is ERC20("Tomato Token", "TOMATO"), Ownable {
address public constant scaleAddress = 0x000000000000000000000000000000000005cA1e;
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
... | 6,893,631 | [
1,
4625,
348,
7953,
560,
30,
225,
28506,
2092,
471,
4358,
628,
348,
1218,
77,
1345,
598,
611,
1643,
82,
1359,
2333,
30,
6662,
18,
832,
19,
87,
1218,
291,
91,
438,
19,
87,
1218,
291,
91,
438,
19,
10721,
19,
7525,
19,
16351,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
399,
362,
31093,
1345,
353,
4232,
39,
3462,
2932,
56,
362,
31093,
3155,
3113,
315,
56,
1872,
789,
51,
6,
3631,
14223,
6914,
288,
203,
565,
1758,
1071,
5381,
3159,
1887,
273,
374,
92,
12648,
12648,
12648,
12648,
3784,
25,
7... |
pragma solidity ^0.4.24;
import "./UnibrightContract.sol";
contract MultiPartyApproval is UnibrightContract {
// the status of the whole approval process
Status public approvalStatus;
// holds the timestamp of the last update
uint public lastUpdate;
// states the contract and the feedbacks of t... | the status of the approval
| Status status; | 7,235,661 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
1267,
434,
326,
23556,
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,
2685,
1267,
31,
6647,
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... |
// File: localhost/SetExchange/common/StaticCaller.sol
pragma solidity ^0.8.3;
/**
* @title StaticCaller
* @author Wyvern Protocol Developers
*/
contract StaticCaller {
function staticCall(address target, bytes memory data) internal view returns (bool result)
{
assembly {
result := st... | * @title StaticCaller @author Wyvern Protocol Developers/ | contract StaticCaller {
function staticCall(address target, bytes memory data) internal view returns (bool result)
{
assembly {
result := staticcall(gas(), target, add(data, 0x20), mload(data), mload(0x40), 0)
}
return result;
}
{
assembly {
res... | 1,212,375 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
10901,
11095,
632,
4161,
29271,
502,
82,
4547,
1505,
8250,
414,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
10901,
11095,
288,
203,
203,
565,
445,
760,
1477,
12,
2867,
1018,
16,
1731,
3778,
501,
13,
2713,
1476,
1135,
261,
6430,
563,
13,
203,
203,
565,
288,
203,
3639,
19931,
288,
203,
5411,
563,
519,
760,
1991,
12,
31604,
9334,
... |
./full_match/1/0xCd000DF47446cfd7D660aDEb4021B710AA41DeD9/sources/src/GreyMarket.sol | * @notice View function to get the amount of admin fees by a specific token @dev Retrieves the amount of admin fees by a specific token address, either ETH or ERC20 @param token Token address @return uint256 Amount of fees in wei/ | function getAdminFeeAmount(address token) public view returns (uint256) {
return adminFees[token];
}
| 16,609,989 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4441,
445,
358,
336,
326,
3844,
434,
3981,
1656,
281,
635,
279,
2923,
1147,
632,
5206,
20507,
326,
3844,
434,
3981,
1656,
281,
635,
279,
2923,
1147,
1758,
16,
3344,
512,
2455,
578,
4232,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
22501,
14667,
6275,
12,
2867,
1147,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
3981,
2954,
281,
63,
2316,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) { return 0; }
c = a * b;
assert(c / a == b);
retu... | mitigates the ERC20 spend/approval race condition | function approve(
address _spender,
uint256 _value
)
public
whenNotPaused
returns (bool success)
{
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| 13,045,385 | [
1,
4625,
348,
7953,
560,
30,
225,
20310,
360,
815,
326,
4232,
39,
3462,
17571,
19,
12908,
1125,
17996,
2269,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
203,
3639,
1758,
389,
87,
1302,
264,
16,
7010,
3639,
2254,
5034,
389,
1132,
203,
565,
262,
7010,
3639,
1071,
7010,
3639,
1347,
1248,
28590,
7010,
3639,
1135,
261,
6430,
2216,
13,
7010,
565,
288,
203,
3639... |
./full_match/1/0x17c68F5Bc9a07D4B8611cF7981E4c45b0a9609BB/sources/contracts/TaxToken.sol | take tokens from the user | function openTrading() public payable {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(addres... | 3,026,748 | [
1,
4625,
348,
7953,
560,
30,
225,
4862,
2430,
628,
326,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1696,
1609,
7459,
1435,
1071,
8843,
429,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
12,
203,
5411,
374,
92,
2... |
./full_match/80001/0xf2F9Dc580289FC127D88f6A6FeF19b0e3c99BBCd/sources/contracts/ClearingHouse.sol | @inheritdoc IUniswapV3MintCallback @dev namings here follow Uniswap's convention input requirement checks: amount0Owed: here amount1Owed: here data: X For caller validation purposes it would be more efficient and more reliable to use "msg.sender" instead of "_msgSender()" as contracts never call each other throu... | function uniswapV3MintCallback(
uint256 amount0Owed,
uint256 amount1Owed,
bytes calldata data
) external override {
require(msg.sender == _orderBook, "CH_NOB");
IOrderBook.MintCallbackData memory callbackData = abi.decode(data, (IOrderBook.MintCallbackData));
i... | 9,453,997 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
984,
291,
91,
438,
58,
23,
49,
474,
2428,
632,
5206,
15135,
899,
2674,
2805,
1351,
291,
91,
438,
1807,
15797,
810,
12405,
4271,
30,
282,
3844,
20,
3494,
329,
30,
2674,
282,
3844,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
291,
91,
438,
58,
23,
49,
474,
2428,
12,
203,
3639,
2254,
5034,
3844,
20,
3494,
329,
16,
203,
3639,
2254,
5034,
3844,
21,
3494,
329,
16,
203,
3639,
1731,
745,
892,
501,
203,
565,
262,
3903,
3849,
288,
203,
203,... |
//Address: 0x1e1e933ca258e41d15061c39f70358f009605282
//Contract name: ProgressiveToken
//Balance: 0 Ether
//Verification Date: 6/4/2018
//Transacion Count: 4
// CODE STARTS HERE
pragma solidity 0.4.21;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraDa... | Calculate current Reward.
| reward=getReward(now); | 958,358 | [
1,
4625,
348,
7953,
560,
30,
9029,
783,
534,
359,
1060,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
202,
266,
2913,
33,
588,
17631,
1060,
12,
3338,
1769,
4766,
9079,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/5/0x70Bc53cd405868f7Bf6f79ee37EE977703698AA1/sources/project:/contracts/ProtoToken.sol | Inheritance in Solidity is done with: "is" To call the parent's constructor, simply call the function with the same name: ERC20(args) | contract ProtoToken is ERC20{
constructor() ERC20("ProtoTokenOz", "PROTZ"){
_mint(msg.sender, 21000000 * 10 ** decimals());
}
}
| 11,585,693 | [
1,
4625,
348,
7953,
560,
30,
225,
25953,
1359,
316,
348,
7953,
560,
353,
2731,
598,
30,
315,
291,
6,
2974,
745,
326,
982,
1807,
3885,
16,
8616,
745,
326,
445,
598,
326,
1967,
508,
30,
4232,
39,
3462,
12,
1968,
13,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7440,
1345,
353,
4232,
39,
3462,
95,
203,
203,
203,
565,
3885,
1435,
4232,
39,
3462,
2932,
6262,
1345,
51,
94,
3113,
315,
3373,
21647,
7923,
95,
203,
203,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
9035,
9449,
380,
172... |
pragma solidity ^0.4.21;
import "./StandardSuspendableToken.sol";
/**
* @title Nexty Foundation Token
*/
contract NTFToken is StandardSuspendableToken {
string public constant symbol = "NTF";
string public constant name = "Nexty Foundation Token";
uint8 public constant decimals = 18;
uint256 public constan... | * Transfer from sender to another account @param _to Destination address @param _value Amount of NTF token to send/ | function transfer(address _to, uint256 _value) public validDestination(_to) returns (bool) {
return super.transfer(_to, _value);
}
| 5,405,838 | [
1,
4625,
348,
7953,
560,
30,
380,
12279,
628,
5793,
358,
4042,
2236,
632,
891,
389,
869,
10691,
1758,
632,
891,
389,
1132,
16811,
434,
423,
17963,
1147,
358,
1366,
19,
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,
225,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
923,
5683,
24899,
869,
13,
1135,
261,
6430,
13,
288,
203,
565,
327,
2240,
18,
13866,
24899,
869,
16,
389,
1132,
1769,
203,
225,
289,
203,
21281,
2,
-100,
... |
// SPDX-License-Identifier: MIT
/*
Coded for MakerDAO and The Keep3r Network with ♥ by
██████╗░███████╗███████╗██╗ ░██╗░░░░░░░██╗░█████╗░███╗░░██╗██████╗░███████╗██████╗░██╗░░░░░░█████╗░███╗░░██╗██████╗░
██╔══██╗██╔════╝██╔════╝██║ ░██║░░██╗░░██║██╔══██╗████╗░██║██╔══██╗██╔════╝██╔══██╗██║░░░░░██╔══██╗████╗░... | @notice Emitted when Keep3rKeeperFundable#withdraw is called @param _keeper The caller of Keep3rKeeperFundable#withdraw function @param _bond The asset to withdraw from the bonding pool @param _amount The amount of funds withdrawn | event Withdrawal(address indexed _keeper, address indexed _bond, uint256 _amount);
| 947,413 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
512,
7948,
1347,
10498,
23,
86,
17891,
42,
1074,
429,
7,
1918,
9446,
353,
2566,
632,
891,
389,
79,
9868,
1021,
4894,
434,
10498,
23,
86,
17891,
42,
1074,
429,
7,
1918,
9446,
445,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
871,
3423,
9446,
287,
12,
2867,
8808,
389,
79,
9868,
16,
1758,
8808,
389,
26425,
16,
2254,
5034,
389,
8949,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x9B5C2Aead1ad7582c7dDf1f0eb9876B0666568E1/sources/Lottery.sol | Transfer the ticket amount to the contract owner (or a designated wallet) You can add more logic here, e.g., using an escrow service For simplicity, we are directly sending the payment to the owner. Add the ticket buyer's address to the list of ticket holders | function buyTicket() external payable ticketAvailable ticketNotPurchased {
require(msg.value >= ticketPrice, "Insufficient payment for a ticket");
address payable contractOwner = payable(owner);
contractOwner.transfer(ticketPrice);
ticketHolders[msg.sender] = true;
ticketsS... | 1,865,464 | [
1,
4625,
348,
7953,
560,
30,
225,
12279,
326,
9322,
3844,
358,
326,
6835,
3410,
261,
280,
279,
25264,
9230,
13,
4554,
848,
527,
1898,
4058,
2674,
16,
425,
18,
75,
12990,
1450,
392,
2904,
492,
1156,
2457,
3142,
20458,
16,
732,
854,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13614,
1435,
3903,
8843,
429,
9322,
5268,
9322,
1248,
10262,
343,
8905,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
9322,
5147,
16,
315,
5048,
11339,
5184,
364,
279,
9322,
8863,
203,
203,
3639,
1758,
8843,
429,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | @notice Initializes a fund with its core config @param _denominationAsset The asset in which the fund's value should be denominated @param _sharesActionTimelock The minimum number of seconds between any two "shares actions" (buying or selling shares) by the same user @dev Pseudo-constructor per proxy. No need to asser... | function init(address _denominationAsset, uint256 _sharesActionTimelock) external override {
require(getDenominationAsset() == address(0), "init: Already initialized");
require(
IValueInterpreter(getValueInterpreter()).isSupportedPrimitiveAsset(_denominationAsset),
"init: Bad... | 122,342 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10188,
3128,
279,
284,
1074,
598,
2097,
2922,
642,
632,
891,
389,
13002,
362,
1735,
6672,
1021,
3310,
316,
1492,
326,
284,
1074,
1807,
460,
1410,
506,
10716,
7458,
632,
891,
389,
30720,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
2867,
389,
13002,
362,
1735,
6672,
16,
2254,
5034,
389,
30720,
1803,
10178,
292,
975,
13,
3903,
3849,
288,
203,
3639,
2583,
12,
588,
8517,
362,
1735,
6672,
1435,
422,
1758,
12,
20,
3631,
315,
2738,
30,
17009,
... |
pragma solidity ^0.4.18;
/**
* Math operations with safety checks
*/
contract SafeMath {
function safeMul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeDiv(uint256 a, uint256 b) internal returns (uint256) {
assert(b... | This creates an array with all balances */ This generates a public event on the blockchain that will notify clients */ This notifies clients about the amount burnt */ This notifies clients about the amount frozen */ This notifies clients about the amount unfrozen */ Initializes contract with initial supply tokens to t... | function ElectronicMusic() {
owner = msg.sender;
}
| 511,425 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
3414,
392,
526,
598,
777,
324,
26488,
1195,
1220,
6026,
279,
1071,
871,
603,
326,
16766,
716,
903,
5066,
7712,
1195,
1220,
19527,
7712,
2973,
326,
3844,
18305,
88,
1195,
1220,
19527,
7712,
2973,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
512,
1582,
1949,
335,
49,
14894,
1435,
288,
203,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0xCE8804a07bDB0e909e315c87a6879a00b1405d5C/sources/contracts/Configurator.sol | * Set replicator token uri's/ | function setTokenURIs(TokenURI[] calldata configs) public onlyOwner {
for (uint256 i = 0; i < configs.length; i++) {
}
}
| 4,873,646 | [
1,
4625,
348,
7953,
560,
30,
380,
1000,
14447,
639,
1147,
2003,
1807,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22629,
1099,
2520,
12,
1345,
3098,
8526,
745,
892,
6784,
13,
1071,
1338,
5541,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
6784,
18,
2469,
31,
277,
27245,
288,
203,
3639,
289,
203,
565,
289,
20... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.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 d... | If your hiIQ is unlocked | uint256 eligible_time_fraction = PRICE_PRECISION;
| 458,327 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
3433,
10118,
45,
53,
353,
25966,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
21351,
67,
957,
67,
16744,
273,
10365,
1441,
67,
3670,
26913,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import... | * @dev Returns a random available token to be minted Code used as reference:/ | function _getTokenToBeMinted(uint16 _totalMintedTokens)
private
returns (uint16)
{
uint16 maxIndex = totalTokens - _totalMintedTokens;
uint16 random = _getRandomNumber(maxIndex, _totalMintedTokens);
uint16 tokenId = tokenMatrix[random];
if (tokenMatrix[random] ==... | 383,024 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
279,
2744,
2319,
1147,
358,
506,
312,
474,
329,
3356,
1399,
487,
2114,
27824,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
1345,
15360,
49,
474,
329,
12,
11890,
2313,
389,
4963,
49,
474,
329,
5157,
13,
203,
3639,
3238,
203,
3639,
1135,
261,
11890,
2313,
13,
203,
565,
288,
203,
3639,
2254,
2313,
30764,
273,
2078,
5157,
300,
389,
... |
./full_match/3/0x5574fad6681a66f990823B1113ddde0111498AaB/sources/browser/cappedToken_2.sol | * @dev See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`./decrease the balance of token sender accountincrease the balance of token recipient account | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
address sender = msg.sender;
require(sender != address(0), "BCC1: transfer from the zero address");
require(recipient != address(0), "BCC1: transfer to the zero address");
require(_balances... | 8,176,078 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
3462,
17,
13866,
5496,
29076,
30,
300,
1375,
20367,
68,
2780,
506,
326,
3634,
1758,
18,
300,
326,
4894,
1297,
1240,
279,
11013,
434,
622,
4520,
1375,
8949,
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,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
8027,
16,
2254,
5034,
3844,
13,
1071,
5024,
225,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
1758,
5793,
273,
1234,
18,
15330,
31,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
38,
6743,
21,... |
// SPDX-License-Identifier: MIXED
// File @violinio/defi-interfaces/contracts/IPancakeSwapMC.sol@v0.0.8
// License-Identifier: MIT
pragma solidity ^0.8.0;
interface IPancakeSwapMC {
function BONUS_MULTIPLIER() external view returns (uint256);
function deposit(uint256 _pid, uint256 _amount) external;
fu... | @notice Gets the length (number) of strategies of a project listing. | function getStrategiesLength() external view returns (uint256) {
return strategies.length();
}
| 993,941 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11881,
326,
769,
261,
2696,
13,
434,
20417,
434,
279,
1984,
11591,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24017,
15127,
1782,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
20417,
18,
2469,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/5/0x112AC3aBAF729b4a7C478D61FF117dBcCdE76353/sources/contracts/ERC721A.sol | * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token./ | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId), baseExtension))... | 1,849,075 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
1351,
6854,
2591,
10333,
261,
3098,
13,
364,
1375,
2316,
548,
68,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
309,
16051,
67,
1808,
12,
2316,
548,
3719,
15226,
3699,
1138,
1290,
3989,
19041,
1345,
5621,
203,
203,
3639,
... |
./full_match/1/0x84fE05f541cee93d0B02e03cD4319c29BA0030A2/sources/src/rollup/RollupCore.sol | * @notice Get the address of the staker at the given index @param stakerNum Index of the staker @return Address of the staker/ | function getStakerAddress(uint64 stakerNum) external view override returns (address) {
return _stakerList[stakerNum];
}
| 3,877,358 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
326,
1758,
434,
326,
384,
6388,
622,
326,
864,
770,
632,
891,
384,
6388,
2578,
3340,
434,
326,
384,
6388,
632,
2463,
5267,
434,
326,
384,
6388,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
21491,
6388,
1887,
12,
11890,
1105,
384,
6388,
2578,
13,
3903,
1476,
3849,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
334,
6388,
682,
63,
334,
6388,
2578,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
./full_match/421613/0x23Fbf1b93B3CEDaf1A05B76BA434A87B6597369C/sources/contracts/TokenVesting.sol | @notice Simple single owner authorization mixin. @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol) | contract Owned {
EVENTS
event OwnershipTransferred(address indexed user, address indexed newOwner);
OWNERSHIP STORAGE
address public owner;
modifier onlyOwner() virtual {
require(msg.sender == owner, "UNAUTHORIZED");
_;
}
... | 11,573,380 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4477,
2202,
3410,
6093,
11682,
18,
632,
4161,
348,
355,
81,
340,
261,
4528,
2207,
6662,
18,
832,
19,
2338,
7300,
2499,
19,
18281,
81,
340,
19,
10721,
19,
5254,
19,
4816,
19,
1944,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
11748,
288,
203,
4766,
9964,
55,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
729,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
18701,
531,
22527,
20101,
2347,
15553,
203,
203,
565,
1758,
1071,
341... |
pragma solidity ^0.4.13;
interface FundInterface {
// EVENTS
event PortfolioContent(address[] assets, uint[] holdings, uint[] prices);
event RequestUpdated(uint id);
event Redeemed(address indexed ofParticipant, uint atTimestamp, uint shareQuantity);
event FeesConverted(uint atTimestamp, uint sha... | Version contract address
| address public COMPETITION_VERSION; | 196,225 | [
1,
4625,
348,
7953,
560,
30,
225,
4049,
6835,
1758,
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,
1758,
1071,
5423,
1423,
56,
7022,
67,
5757,
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,
-1... |
./partial_match/1/0x7B9a3a9F8cdE5582b7639eeE88225d4D59476e45/sources/XCEO.sol | * @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `... | function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20Standard: transfer from the zero address");
require(recipient != address(0), "ERC20Standard: transfer to the zero address");
_beforeTok... | 2,630,497 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
10829,
2430,
1375,
8949,
68,
628,
1375,
15330,
68,
358,
1375,
20367,
8338,
1220,
353,
2713,
445,
353,
7680,
358,
288,
13866,
5779,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
2348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
8336,
30,
741... |
./partial_match/1/0x0FfAA8eEb2eE18C9174E4C5D6af6cE48199c6879/sources/Sargasso.sol | View function to see BUCC per individualbuccc per sharetotal supplyused to calculate the in-between value of each block based on the multiplier | function pendingBucc(uint256 _pid) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
uint256 accBuccMultiplierEarned = pool.accBuccMultiplierEarned;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
... | 2,663,079 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
10937,
6743,
1534,
7327,
70,
89,
952,
71,
1534,
7433,
4963,
14467,
3668,
358,
4604,
326,
316,
17,
15019,
460,
434,
1517,
1203,
2511,
603,
326,
15027,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
4634,
38,
89,
952,
12,
11890,
5034,
389,
6610,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6... |
// Sources flattened with hardhat v2.8.2 https://hardhat.org
// File contracts/solidity/proxy/IBeacon.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeacon {
/**
* @dev Must return an address that can be... | @dev Internal function that transfer tokens from one address to another. Update magnifiedRewardCorrections to keep dividends unchanged. @param from The address to transfer from. @param to The address to transfer to. @param value The amount to be transferred. | function _transfer(address from, address to, uint256 value) internal override {
require(block.timestamp > timelock[from], "User locked");
super._transfer(from, to, value);
int256 _magCorrection = magnifiedRewardPerShare.mul(value).toInt256();
magnifiedRewardCorrections[from] = magnifiedRewardCorrecti... | 1,435,934 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3186,
445,
716,
7412,
2430,
628,
1245,
1758,
358,
4042,
18,
2315,
28160,
939,
17631,
1060,
20884,
87,
358,
3455,
3739,
350,
5839,
14827,
18,
632,
891,
628,
1021,
1758,
358,
7412,
628,
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,
0... | [
1,
225,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
460,
13,
2713,
3849,
288,
203,
565,
2583,
12,
2629,
18,
5508,
405,
1658,
292,
975,
63,
2080,
6487,
315,
1299,
8586,
8863,
203,
565,
2240,
6315,
13866,
12,
2080... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2020, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | * @notice Allows a user to redirect their right to claim a withdrawal to a liquidityProvider, in exchange for a fee. @dev This method expects the liquidityProvider to verify the liquidityProof, but it ensures the withdrawer's balance is appropriately updated. It is otherwise agnostic to the details of IExitLiquidityPro... | function fastWithdrawalFromL2(
address liquidityProvider,
bytes memory liquidityProof,
address initialDestination,
address erc20,
uint256 amount,
uint256 exitNum,
uint256 maxFee
) external override {
require(
initialDestination == msg.s... | 5,495,586 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
279,
729,
358,
3136,
3675,
2145,
358,
7516,
279,
598,
9446,
287,
358,
279,
4501,
372,
24237,
2249,
16,
316,
7829,
364,
279,
14036,
18,
632,
5206,
1220,
707,
10999,
326,
4501,
372,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4797,
1190,
9446,
287,
1265,
48,
22,
12,
203,
3639,
1758,
4501,
372,
24237,
2249,
16,
203,
3639,
1731,
3778,
4501,
372,
24237,
20439,
16,
203,
3639,
1758,
2172,
5683,
16,
203,
3639,
1758,
6445,
71,
3462,
16,
203,
3639,
... |
pragma solidity ^0.4.13;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
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(uint25... | Constants/ Types/ | struct EarlyPurchase {
address purchaser;
}
EarlyPurchase[] public earlyPurchases;
uint256 public earlyPurchaseClosedAt;
| 12,901,577 | [
1,
4625,
348,
7953,
560,
30,
282,
5245,
19,
225,
7658,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
512,
20279,
23164,
288,
203,
3639,
1758,
5405,
343,
14558,
31,
203,
565,
289,
203,
203,
203,
565,
512,
20279,
23164,
8526,
1071,
11646,
10262,
343,
3304,
31,
203,
565,
2254,
5034,
1071,
11646,
23164,
7395,
861,
31,
203,
... |
pragma solidity ^0.4.10;
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
library SafeMath... | 01.01.2018-14.01.2018 15%
| }else if (now <= startTimestamp + 60 days) | 7,214,498 | [
1,
4625,
348,
7953,
560,
30,
8743,
18,
1611,
18,
21849,
17,
3461,
18,
1611,
18,
21849,
4711,
9,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
289,
12107,
309,
261,
3338,
1648,
787,
4921,
397,
4752,
4681,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./CTokenInterface.sol";
import "./InterestRateModel.sol";
import "./Comptroller.sol";
import "hardhat/console.sol";
abstract contract CToken is ERC20, CTokenInterface {
InterestRateModel ... | @notice Explain to an end user what this does @param borrower a parameter just like in doxygen (must be followed by parameter name) @return Documents the return variables of a contract’s function state variable | function borrowBalanceStored(address borrower) public view returns (uint) {
return borrowBalanceInternal(borrower);
}
| 14,113,927 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1312,
7446,
358,
392,
679,
729,
4121,
333,
1552,
632,
891,
29759,
264,
279,
1569,
2537,
3007,
316,
741,
1698,
4507,
261,
11926,
506,
10860,
635,
1569,
508,
13,
632,
2463,
4319,
87,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
29759,
13937,
18005,
12,
2867,
29759,
264,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
29759,
13937,
3061,
12,
70,
15318,
264,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity >= 0.6.0 < 0.8.0;
import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
contract JonathanCoinPulv is ERC20 {
/* Creation de l'admin et de la whitelist (mapping des allowed user)
*/
mapping(address => uint8) public Whitelist;
address internal founder;
/*Creation du ... | Creation de l'admin et de la whitelist (mapping des allowed user)/Creation du token ERC20/ | constructor() ERC20(name_,symbol_) public {
founder = msg.sender;
_mint(msg.sender, i_supply);
}
get token via Whitelist[msg.sender] == 0)
| 15,830,580 | [
1,
4625,
348,
7953,
560,
30,
225,
18199,
443,
328,
11,
3666,
3393,
443,
7125,
10734,
261,
6770,
2832,
2935,
729,
13176,
9906,
9978,
1147,
4232,
39,
3462,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
12,
529,
67,
16,
7175,
67,
13,
1071,
288,
203,
3639,
284,
465,
765,
273,
1234,
18,
15330,
31,
203,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
277,
67,
2859,
1283,
1769,
203,
565,
289,
203,
... |
//Address: 0xf3e014fe81267870624132ef3a646b8e83853a96
//Contract name: VinToken
//Balance: 0 Ether
//Verification Date: 11/23/2017
//Transacion Count: 9590
// CODE STARTS HERE
pragma solidity 0.4.15;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
funct... | * @dev transfer token for a specified address @param _to The address to transfer to. @param _value The amount to be transferred./ | function transfer(address _to, uint _value) external isLockTimeEnded(msg.sender) whenActivated returns (bool) {
require(_to != 0x0);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
ret... | 6,434,490 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7412,
1147,
364,
279,
1269,
1758,
632,
891,
389,
869,
1021,
1758,
358,
7412,
358,
18,
632,
891,
389,
1132,
1021,
3844,
358,
506,
906,
4193,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
389,
1132,
13,
3903,
353,
2531,
950,
28362,
12,
3576,
18,
15330,
13,
1347,
28724,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
869,
480,
374,
92,
20,
1769,
203,
377,
203,
3639,... |
./partial_match/56/0xCfc50C98e98e44C00A3867cC21fCC1809b9e8aa2/sources/LANToken.sol | * @dev Function to check the amount of tokens that an owner allowed to a spender. @param _owner address The address which owns the funds. @param _spender address The address which will spend the funds. @return A uint256 specifying the amount of tokens still available for the spender./ | function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| 11,086,691 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
866,
326,
3844,
434,
2430,
716,
392,
3410,
2935,
358,
279,
17571,
264,
18,
632,
891,
389,
8443,
1758,
1021,
1758,
1492,
29065,
326,
284,
19156,
18,
632,
891,
389,
87,
1302,
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,
225,
445,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
1071,
1476,
1135,
261,
11890,
5034,
4463,
13,
288,
203,
565,
327,
2935,
63,
67,
8443,
6362,
67,
87,
1302,
264,
15533,
203,
225,
289,
203,
21281,
2,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "github.com/gitdevstar/solidity_lib/Context.sol";
import "github.com/gitdevstar/solidity_lib/IBEP20.sol";
// import "github.com/gitdevstar/solidity_lib/Ownable.sol";
import "github.com/gitdevstar/solidity_lib/Address.sol";
import "github.com/gitde... | * Switches to next lsc participants set./ | function nextlscParticipantSet() private returns (uint8) {
currentlscParticipantSetIndex = getNextlscParticipantSet(
currentlscParticipantSetIndex
);
return currentlscParticipantSetIndex;
}
| 1,017,298 | [
1,
4625,
348,
7953,
560,
30,
380,
13967,
281,
358,
1024,
328,
1017,
22346,
444,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1024,
80,
1017,
22540,
694,
1435,
3238,
1135,
261,
11890,
28,
13,
288,
203,
3639,
783,
80,
1017,
22540,
694,
1016,
273,
6927,
80,
1017,
22540,
694,
12,
203,
5411,
783,
80,
1017,
22540,
694,
1016,
203,
3639,
11272,
203,
... |
//***********************************EthVentures v4****************************************************************************
//
// TIRED OF POINTLESS PONZI SCHEMES? Then join EthVentures the first decentralized company!
//
//
// EthVentures is the first decentralized ethereum based company, with shareholder function... | if smaller than incremented, goes into loop
| for(uint k=0; k<investors.length;k++) | 13,011,416 | [
1,
4625,
348,
7953,
560,
30,
309,
10648,
2353,
28859,
16,
13998,
1368,
2798,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1884,
12,
11890,
417,
33,
20,
31,
417,
32,
5768,
395,
1383,
18,
2469,
31,
79,
27245,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/56/0xebF636A35E687682351961756a404623859A5038/sources/DoubleWintoken.sol | * @title DoubleWin token contract @notice Implements DoubleWin token contract @author DoubleWin Finance Lab/ | contract DoubleWintoken is ERC20("DoubleWintoken", "DBL"), Ownable {
function getOwner() public view returns (address) {
return owner();
}
function mint(uint256 _value) public onlyOwner {
_mint(msg.sender, _value);
}
function burn(uint256 _value) public onlyOwner {
_burn(m... | 11,317,695 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
3698,
18049,
1147,
6835,
632,
20392,
29704,
3698,
18049,
1147,
6835,
632,
4161,
3698,
18049,
9458,
1359,
511,
378,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3698,
59,
474,
969,
353,
4232,
39,
3462,
2932,
5265,
59,
474,
969,
3113,
315,
2290,
48,
6,
3631,
14223,
6914,
288,
203,
203,
565,
445,
13782,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
3410,
5621,
203,
5... |
./full_match/3/0xaA1c56496ffEfA4ef4c4f89E41d673ea429b1922/sources/contracts/ViralataSwapToken.sol | 2 billion tokens is maximum supply
| uint256 private _cap = 2000000000 * 10**decimals(); | 8,115,879 | [
1,
4625,
348,
7953,
560,
30,
225,
576,
20714,
285,
2430,
353,
4207,
14467,
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,
2254,
5034,
3238,
389,
5909,
273,
576,
2787,
11706,
380,
1728,
636,
31734,
5621,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
import "contracts/Storage.sol";
/**
* @title ControllerContract
* @dev A contract for managing the blacklist and verified list and burning and minting of the tokens.
*/
contract ControllerContract is Pausable, Administratable, UserContract {
using SafeMath for uint256;
Balance internal... | * @dev add addresses to the verifiedlist @param addrs addresses @return true if at least one address was added to the verifiedlist, false if all addresses were already in the verifiedlist/ | function verifyAddresses(address[] addrs) onlyAdmin onlyNotBlacklistedAddrs(addrs) whenNotPaused public returns (bool success) {
success = true;
for (uint256 i = 0; i < addrs.length; i++) {
if (!_verifyAddress(addrs[i])) {
success = false;
}
}
}
| 1,825,245 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
527,
6138,
358,
326,
13808,
1098,
632,
891,
11755,
6138,
632,
2463,
638,
309,
622,
4520,
1245,
1758,
1703,
3096,
358,
326,
13808,
1098,
16,
629,
309,
777,
6138,
4591,
1818,
316,
326,
1380... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
7148,
12,
2867,
8526,
11755,
13,
1338,
4446,
1338,
1248,
13155,
18647,
13811,
12,
23305,
13,
1347,
1248,
28590,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
565,
2216,
273,
638,
31,
203,
565,
364,
261,
11890,
5034,
... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | * @dev Modifier that requires maximum 4 airlines registered/ | modifier requireFourOrLessAirlines(){
require(counterAirline <= 4,"There are more that 4 airlines registered");
_;
}
| 6,342,707 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12832,
716,
4991,
4207,
1059,
23350,
3548,
4104,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
42,
477,
1162,
15313,
29752,
3548,
1435,
95,
203,
3639,
2583,
12,
7476,
29752,
1369,
1648,
1059,
10837,
9828,
854,
1898,
716,
1059,
23350,
3548,
4104,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
2,
-100,
-100,
... |
./partial_match/1/0xC711BbD509De5aDF87EE5aF6D1ee08006cb7868A/sources/DCC.sol | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
| 2,605,178 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
1772,
288,
203,
97,
203,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0x1F270224b176AA1dCCAe424325BE949440138F5b/sources/MinmiToken.sol | split the liquidity balance into halves capture the contract's current ETH balance. this is so that we can capture exactly the amount of ETH that the swap creates, and not make the liquidity event include any ETH that has been manually sent to the contract swap tokens for ETH how much ETH did we just swap into? add li... | function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
uint256 tokensForLiquidity = contractTokenBalance.mul(_liquidityFee).div(_liquidityFee.add(_marketingFee));
uint256 half = tokensForLiquidity.div(2);
uint256 otherHalf = tokensForLiquidity.sub(half);
uint256... | 9,706,175 | [
1,
4625,
348,
7953,
560,
30,
225,
1416,
326,
4501,
372,
24237,
11013,
1368,
19514,
3324,
7477,
326,
6835,
1807,
783,
512,
2455,
11013,
18,
333,
353,
1427,
716,
732,
848,
7477,
8950,
326,
3844,
434,
512,
2455,
716,
326,
7720,
3414,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1876,
48,
18988,
1164,
12,
11890,
5034,
6835,
1345,
13937,
13,
3238,
2176,
1986,
12521,
288,
203,
3639,
2254,
5034,
2430,
1290,
48,
18988,
24237,
273,
6835,
1345,
13937,
18,
16411,
24899,
549,
372,
24237,
14667,
2934,... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'Bull Token' token contract
//
// Deployed to : 0xdFdC8d107C2f6d9ab087f66F563a6397bAB1D2FB
// Symbol : BLL
// Name : Bull Token
// Total supply: 50000000000
// Decimals : 18
//
// (c) by Marco De ... | restituisce la quantità dei token che spender può spendere per conto dell'owner | function checkGivenAllowance(address spender) public view returns (uint256){
return allowed[_msgSender()][spender];
}
| 9,971,584 | [
1,
4625,
348,
7953,
560,
30,
225,
3127,
305,
89,
291,
311,
7125,
10251,
305,
132,
259,
443,
77,
1147,
19315,
17571,
264,
16284,
132,
115,
17571,
822,
1534,
466,
83,
302,
1165,
11,
8443,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
6083,
7009,
1359,
12,
2867,
17571,
264,
13,
1071,
1476,
1135,
261,
11890,
5034,
15329,
203,
3639,
327,
2935,
63,
67,
3576,
12021,
1435,
6362,
87,
1302,
264,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100... |
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./ERC20MintableDetailed.sol";
import "../math/DecimalMath.sol";
/**
* @title ERC20DividendableEth
* @dev Implements an ERC20MintableDetailed token with a dividend distribution procedure for etehreum received
* @notice This contrac... | * @notice Send ether to this function in orther to disburse dividends/ | function releaseDividends() external virtual payable {
_releaseDividends(msg.value);
}
| 7,302,514 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2479,
225,
2437,
358,
333,
445,
316,
578,
1136,
358,
1015,
70,
295,
307,
3739,
350,
5839,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3992,
7244,
350,
5839,
1435,
3903,
5024,
8843,
429,
288,
203,
3639,
389,
9340,
7244,
350,
5839,
12,
3576,
18,
1132,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2021-05-13
*/
/*
---
-========-
... | // end constructor vars etc. updateFee(_feeDecimals, _feePercentage); | {
_rOwned[_msgSender()] = _rTotal;
emit Transfer(address(0), _msgSender(), _tTotal);
uniswapV2Router = _uniswapV2Router;
updateMinTokensBeforeSwap(minTokensBeforeSwap);
updateSwapAndLiquifyEnabled(swapAndLiquifyEnabled);
}
| 269,611 | [
1,
4625,
348,
7953,
560,
30,
225,
368,
679,
3885,
4153,
5527,
18,
1089,
14667,
24899,
21386,
31809,
16,
389,
21386,
16397,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
288,
203,
3639,
389,
86,
5460,
329,
63,
67,
3576,
12021,
1435,
65,
273,
389,
86,
5269,
31,
203,
203,
3639,
3626,
12279,
12,
2867,
12,
20,
3631,
389,
3576,
12021,
9334,
389,
88,
5269,
1769,
203,
203,
3639,
640,
291,
91,
4... |
pragma solidity ^0.4.13;
contract Crowdsale {
using SafeMath for uint256;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei.
// The rate is the conversion between wei and the smallest and indivisible tok... | Constants/ Storage/ Events/ Modifiers/ | modifier whenNotFinalized () {
require(!isFinalized);
_;
}
| 14,484,591 | [
1,
4625,
348,
7953,
560,
30,
282,
5245,
19,
225,
5235,
19,
225,
9043,
19,
225,
3431,
3383,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
1347,
1248,
7951,
1235,
1832,
288,
203,
565,
2583,
12,
5,
291,
7951,
1235,
1769,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadCreator is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = not op... | 34% at second vesting (2 months later)
| _secondVestingAmount[msg.sender] = _toClaim.sub(amount.mul(2)); | 6,926,144 | [
1,
4625,
348,
7953,
560,
30,
225,
13438,
9,
622,
2205,
331,
10100,
261,
22,
8846,
5137,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
389,
8538,
58,
10100,
6275,
63,
3576,
18,
15330,
65,
273,
389,
869,
9762,
18,
1717,
12,
8949,
18,
16411,
12,
22,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ ... | Frax system starts off fully collateralized (6 decimals of precision)
| global_collateral_ratio = 1000000; | 220,995 | [
1,
4625,
348,
7953,
560,
30,
225,
478,
354,
92,
2619,
2542,
3397,
7418,
4508,
2045,
287,
1235,
261,
26,
15105,
434,
6039,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2552,
67,
12910,
2045,
287,
67,
9847,
273,
15088,
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,
-... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
contract Swapper {
IUniswapV2Router02 uniswapRouter =
IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F24... | refund leftover ETH | function swapDai(uint256 _amount) public payable returns (uint256) {
address multiDaiKovan = 0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa;
uint256 deadline = block.timestamp + 15;
_amount,
getPathForETHToToken(multiDaiKovan),
address(this),
deadline
... | 1,830,946 | [
1,
4625,
348,
7953,
560,
30,
225,
16255,
29709,
512,
2455,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
40,
10658,
12,
11890,
5034,
389,
8949,
13,
1071,
8843,
429,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
1758,
3309,
40,
10658,
47,
1527,
304,
273,
374,
92,
24,
42,
10525,
2954,
23,
70,
27,
37,
26,
39,
74,
1058... |
./full_match/5/0x13970A970f999Ed920B12aBf4F4aF53b046a9B2d/sources/external/integrations/nouns/VRF.sol | ((qy-py)/(qx-px))^2-px-qx
| (sx, dx) = projectiveSub(sx, dx, qx, z2); | 11,589,971 | [
1,
4625,
348,
7953,
560,
30,
225,
14015,
85,
93,
17,
2074,
13176,
12,
85,
92,
17,
4430,
3719,
66,
22,
17,
4430,
17,
85,
92,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
261,
30319,
16,
6633,
13,
273,
1984,
688,
1676,
12,
30319,
16,
6633,
16,
1043,
92,
16,
998,
22,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma ton-solidity >=0.47.0;
pragma AbiHeader expire;
pragma AbiHeader time;
pragma AbiHeader pubkey;
// import required DeBot interfaces and basic DeBot contract.
import "https://raw.githubusercontent.com/tonlabs/debots/main/Debot.sol";
import "https://raw.githubusercontent.com/tonlabs/DeBot-IS-consortium/main/UserIn... | import required DeBot interfaces and basic DeBot contract. | import "Upgradable.sol";
| 6,440,789 | [
1,
4625,
348,
7953,
560,
30,
225,
1930,
1931,
1505,
6522,
7349,
471,
5337,
1505,
6522,
6835,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5666,
315,
1211,
9974,
429,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0xCc2a3D6a57824469C3708baB4eb5d62cb1c460dE/sources/contracts/Master/Master.sol | for transfer DAI, USDT, USDC
| EIP2612Permit fundingPermit; | 9,477,213 | [
1,
4625,
348,
7953,
560,
30,
225,
364,
7412,
463,
18194,
16,
11836,
9081,
16,
11836,
5528,
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,
3639,
512,
2579,
5558,
2138,
9123,
305,
22058,
9123,
305,
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,
... |
pragma solidity >=0.4.21 <0.7.0;
pragma experimental ABIEncoderV2;
contract DBlogger {
// Defines a new type with two fields.
enum Role {Admin, Editor, Author, Subscriber}
struct User {
bool isValue;
address id;
string name;
string bio;
Role role;
string a... | campaignID is return variable
| postID = newPostCounter++; | 1,773,486 | [
1,
4625,
348,
7953,
560,
30,
225,
8965,
734,
353,
327,
2190,
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,
1603,
734,
273,
394,
3349,
4789,
9904,
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,
... |
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.12;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openz... | * @notice Get a list of token id owned @param _owner the address of the token owner @return array of token id/ | function tokensOfOwner(address _owner)
external
view
returns (uint256[] memory)
{
uint256 tokenCount = balanceOf(_owner);
uint256[] memory tokenIds = new uint256[](tokenCount);
for (uint256 i = 0; i < tokenCount; i++) {
tokenIds[i] = tokenOfOwnerByInde... | 14,559,189 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
279,
666,
434,
1147,
612,
16199,
632,
891,
389,
8443,
326,
1758,
434,
326,
1147,
3410,
632,
2463,
526,
434,
1147,
612,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2430,
951,
5541,
12,
2867,
389,
8443,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
8526,
3778,
13,
203,
565,
288,
203,
3639,
2254,
5034,
1147,
1380,
273,
11013,
951,
24899,
8443,
1769,
203,
3... |
pragma solidity 0.5.7;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../token/ITokenContract.sol";
/**
* @title OpenBazaar Escrow
* @author OB1
* @notice Holds ETH and ERC20 tokens for moderated trades on the OpenBazaar
* platform. See the specification here:
* https://github.com/OpenBazaar/sma... | number of times funds have been released
| uint256 noOfReleases; | 13,071,767 | [
1,
4625,
348,
7953,
560,
30,
1300,
434,
4124,
284,
19156,
1240,
2118,
15976,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
1158,
951,
26217,
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,... |
// SPDX-License-Identifier: MIT
/**
* Author: Lambdalf the White
*/
pragma solidity 0.8.10;
import "../../interfaces/IERC721.sol";
import "../../interfaces/IERC721Receiver.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extensio... | * @dev Safely transfers `tokenId_` token from `from_` to `to_`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. `data_` is additional data, it has no specified format and it is sent in call to `to_`. This internal function is equivalent to {safeTrans... | function _safeTransfer( address from_, address to_, uint256 tokenId_, bytes memory data_ ) internal virtual {
_tokenApprovals[ tokenId_ ] = address( 0 );
_owners[ tokenId_ ] = to_;
require ( _checkOnERC721Received( from_, to_, tokenId_, data_ ), 'IERC721_NON_ERC721_RECEIVER' );
emit Transfer( from_, to_, token... | 5,385,790 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
348,
1727,
2357,
29375,
1375,
2316,
548,
67,
68,
1147,
628,
1375,
2080,
67,
68,
358,
1375,
869,
67,
9191,
6728,
1122,
716,
6835,
12045,
854,
18999,
434,
326,
4232,
39,
27,
5340,
1771,
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,
202,
915,
389,
4626,
5912,
12,
1758,
628,
67,
16,
1758,
358,
67,
16,
2254,
5034,
1147,
548,
67,
16,
1731,
3778,
501,
67,
262,
2713,
5024,
288,
203,
202,
202,
67,
2316,
12053,
4524,
63,
1147,
548,
67,
308,
273,
1758,
12,
374,
... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "../core/Core.sol";
import "../token/Fei.sol";
contract MockSettableCore is Core {
// anyone can set any role
function isGovernor(address _address) public view override returns (bool) {
return true;
}
}
| anyone can set any role | contract MockSettableCore is Core {
function isGovernor(address _address) public view override returns (bool) {
return true;
}
}
| 13,132,033 | [
1,
4625,
348,
7953,
560,
30,
225,
1281,
476,
848,
444,
1281,
2478,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7867,
694,
2121,
4670,
353,
4586,
288,
203,
203,
202,
915,
353,
43,
1643,
29561,
12,
2867,
389,
2867,
13,
1071,
1476,
3849,
1135,
261,
6430,
13,
288,
203,
202,
202,
2463,
638,
31,
203,
202,
97,
203,
97,
203,
2,
-100,
-... |
./partial_match/4/0x83aa9bFAA9e6436ED877Ec0FBfA788bD51a9cB81/sources/Box.sol | Emitted when the stored value changes Stores a new value in the contract | contract Box {
uint256 private value;
event ValueChanged(uint256 newValue);
pragma solidity ^0.6.0;
function store(uint256 newValue) public {
value = newValue;
emit ValueChanged(newValue);
}
function retrieve() public view returns (uint256) {
return value;
}
} | 8,508,113 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
7948,
1347,
326,
4041,
460,
3478,
20296,
455,
279,
394,
460,
316,
326,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8549,
288,
203,
565,
2254,
5034,
3238,
460,
31,
203,
203,
565,
871,
1445,
5033,
12,
11890,
5034,
6129,
1769,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
26,
18,
20,
31,
203,
565,
445,
1707,
12,
11890,
5034,
6129,
13,
... |
./full_match/80001/0xc2CEE70bce48B86D07b4032ceb2CFfC1CBD779fD/sources/project_/contracts/NX7NFT.sol | @notice default fallback should revert | fallback() external payable {
revert("NX7NFT: Please use Mint or Admin calls");
}
| 872,616 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
805,
5922,
1410,
15226,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5922,
1435,
3903,
8843,
429,
288,
203,
3639,
15226,
2932,
17106,
27,
50,
4464,
30,
7801,
999,
490,
474,
578,
7807,
4097,
8863,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.8.7;
import "../nftx/interface/INFTXVault.sol";
import "../nftx/interface/INFTXLPStaking.sol";
import "../nftx/interface/IUniswapV2Router01.sol";
import "../nftx/interface/IVaultTokenUpgradeable.sol";
import "../nftx/interface/IRewardDistributionToken.sol";
import {IWETH} from "../nftx/interfa... | * Locks/unlocks RT reward withdraw @param _locked the value of the lock (boolean)/ | function setLock(bool _locked) external onlyOwner {
lockRTRewards = _locked;
}
| 884,290 | [
1,
4625,
348,
7953,
560,
30,
380,
3488,
87,
19,
318,
23581,
13060,
19890,
598,
9446,
632,
891,
389,
15091,
326,
460,
434,
326,
2176,
261,
6494,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
2531,
12,
6430,
389,
15091,
13,
3903,
1338,
5541,
288,
203,
3639,
2176,
54,
4349,
359,
14727,
273,
389,
15091,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/43113/0x0a920EF452a7CBee5FD60d261CF3E4d1c92E582b/sources/contracts/LPTokenOracle.sol | @dev Return the value of the given input as ETH per unit, multiplied by 2**112. @param pair The Uniswap pair to check the value. fair token0 amt: sqrtK * sqrt(px1/px0) fair token1 amt: sqrtK * sqrt(px0/px1) fair lp price = 2 * sqrt(px0 * px1) split into 2 sqrts multiplication to prevent uint overflow (note the 2**112) | function getPrice(address pair) external view override returns (uint) {
address token0 = IUniswapV2Pair(pair).token0();
address token1 = IUniswapV2Pair(pair).token1();
uint totalSupply = IUniswapV2Pair(pair).totalSupply();
(uint r0, uint r1, ) = IUniswapV2Pair(pair).getReserves();
return sqrtK.mul... | 7,186,087 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2000,
326,
460,
434,
326,
864,
810,
487,
512,
2455,
1534,
2836,
16,
27789,
635,
576,
636,
17666,
18,
632,
891,
3082,
1021,
1351,
291,
91,
438,
3082,
358,
866,
326,
460,
18,
284,
1826,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
25930,
12,
2867,
3082,
13,
3903,
1476,
3849,
1135,
261,
11890,
13,
288,
203,
565,
1758,
1147,
20,
273,
467,
984,
291,
91,
438,
58,
22,
4154,
12,
6017,
2934,
2316,
20,
5621,
203,
565,
1758,
1147,
21,
273,
467,
984,
2... |
./full_match/137/0xddC11E9755426Dcc21cA8F60eE2544c41624bd95/sources/_xaya/democrit-evm/contracts/LimitBuying.sol | * @dev Cancels an existing trading pool, refunding all remaining asset in the vault to the operator. This will of course invalidate all open buy orders based on this pool./ | function cancelPool (uint vaultId) public
{
CompletePool memory data = getPool (vaultId);
require (data.vaultId == vaultId, "trading pool does not exist");
require (vm.hasAccountPermission (_msgSender (), data.operator),
"no permission to act on behalf of the operator account");
vm.sen... | 3,767,986 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10347,
87,
392,
2062,
1284,
7459,
2845,
16,
1278,
14351,
777,
4463,
3310,
316,
326,
9229,
358,
326,
3726,
18,
225,
1220,
903,
434,
4362,
11587,
777,
1696,
30143,
11077,
2511,
603,
333,
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,
3755,
2864,
261,
11890,
9229,
548,
13,
1071,
203,
225,
288,
203,
565,
14575,
2864,
3778,
501,
273,
28575,
261,
26983,
548,
1769,
203,
565,
2583,
261,
892,
18,
26983,
548,
422,
9229,
548,
16,
315,
313,
14968,
2845,
1552,... |
./full_match/1/0xE60a57cc57b51C4e801Ee8a0E6Df675F94abC0af/sources/contracts/helpers/ERC2981ContractWideRoyalties.sol | @dev This is a contract used to add ERC2981 support to ERC721 and 1155 @dev This implementation has the same royalties for each and every tokens | abstract contract ERC2981ContractWideRoyalties is ERC2981Base {
RoyaltyInfo private _royalties;
pragma solidity ^0.8.0;
function _setRoyalties(address recipient, uint256 value) internal {
require(value <= 10000, 'ERC2981Royalties: Too high');
_royalties = RoyaltyInfo(recipient, uint24(value));
... | 4,887,322 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1220,
353,
279,
6835,
1399,
358,
527,
4232,
39,
5540,
11861,
2865,
358,
4232,
39,
27,
5340,
471,
4648,
2539,
632,
5206,
1220,
4471,
711,
326,
1967,
721,
93,
2390,
606,
364,
1517,
471,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
5540,
11861,
8924,
11075,
54,
13372,
2390,
606,
353,
4232,
39,
5540,
11861,
2171,
288,
203,
565,
534,
13372,
15006,
966,
3238,
389,
3800,
2390,
606,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18... |
pragma solidity 0.6.2;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/Math.sol";
import "../interfaces/IBalance.sol";
import "../interfaces/IEnv.sol";
import "../interfaces/IOrderbase.sol";
import "../interfaces/IAsset.sol";
import ".... | 累计所有冻结仓位的抵押物总量 SUM(swap.reserve) | function frozenreserves(address token, address[] memory frozens)
public
view
returns (uint256)
{
address[] memory _frozens = refreshfrozens(token, frozens);
uint256 reserves = 0;
for (uint256 i = 0; i < _frozens.length; ++i) {
reserves = reserves.add(
... | 887,309 | [
1,
4625,
348,
7953,
560,
30,
225,
168,
117,
112,
169,
111,
99,
167,
236,
227,
167,
255,
236,
166,
233,
124,
168,
124,
246,
165,
124,
246,
165,
126,
240,
168,
253,
231,
167,
237,
118,
167,
237,
125,
168,
236,
107,
167,
227,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12810,
455,
264,
3324,
12,
2867,
1147,
16,
1758,
8526,
3778,
284,
303,
94,
773,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
1758,
8526,
3778,
389,
74,
303,
94... |
./full_match/100/0x41CDbF9bf562C5964F06C7E4D356607f18f97af7/sources/project_/contracts/gov/SuperfluidGovernanceBase.sol | fallback to default config | function getConfigAsAddress(
ISuperfluid host,
ISuperfluidToken superToken,
bytes32 key
)
public view override
returns(address value)
{
Value storage v = _configs[address(host)][address(superToken)][key];
if (!v.set) {
v = _configs[address... | 14,275,981 | [
1,
4625,
348,
7953,
560,
30,
225,
5922,
358,
805,
642,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4367,
1463,
1887,
12,
203,
3639,
467,
8051,
2242,
1911,
1479,
16,
203,
3639,
467,
8051,
2242,
1911,
1345,
2240,
1345,
16,
203,
3639,
1731,
1578,
498,
203,
565,
262,
203,
3639,
1071,
1476,
3849,
203,
3639,
1135,
12,
2867... |
pragma solidity ^0.5.2;
pragma experimental ABIEncoderV2;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
// input /Users/yurivisser/Dev/gener8tive/contracts/Gener8tiveKBlocksERC721.sol
// flattened : Saturday, 27-Apr-19 00:28:41 UTC... | ======================================================= ADMIN ======================================================= | function changeCauseBeneficiary(address payable newCauseBeneficiary)
public
onlyOwner
{
causeBeneficiary = newCauseBeneficiary;
emit CauseBeneficiaryChanged(causeBeneficiary);
}
| 6,426,835 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
20775,
894,
33,
25969,
422,
20775,
894,
33,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
10683,
38,
4009,
74,
14463,
814,
12,
2867,
8843,
429,
394,
10683,
38,
4009,
74,
14463,
814,
13,
203,
3639,
1071,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
4620,
38,
4009,
74,
14463,
814,
273,
394,
10683,
... |
// Verified using https://dapp.tools
// hevm: flattened sources of ./contracts/2021/Proposal20.sol
pragma solidity =0.5.15 >=0.5.15 <0.6.0;
pragma experimental ABIEncoderV2;
////// lib/yamV3/contracts/lib/IERC20.sol
/* pragma solidity ^0.5.15; */
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
... | Rescue tokens transfer to | function rescueTokens(
address token,
address to,
uint256 amount
)
external
onlyGov
returns (bool)
{
SafeERC20_2.safeTransfer(IERC20_2(token), to, amount);
return true;
}
| 129,262 | [
1,
4625,
348,
7953,
560,
30,
225,
534,
742,
344,
2430,
7412,
358,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8223,
5157,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
43,
1527,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
14... |
./partial_match/1/0xCF9A1A3A30d859aB8964E6dB596A8D2Edd449C0b/sources/TimeLockedController.sol | after a day, admin finalizes the insurance fee change | function finalizeChangeInsuranceFees() public onlyAdminOrOwner {
require(changeInsuranceFeesOperation.admin == admin);
require(changeInsuranceFeesOperation.deferBlock <= block.number);
uint80 _transferFeeNumerator = changeInsuranceFeesOperation._transferFeeNumerator;
uint80 _transfer... | 15,462,947 | [
1,
4625,
348,
7953,
560,
30,
225,
1839,
279,
2548,
16,
3981,
727,
3128,
326,
2763,
295,
1359,
14036,
2549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12409,
3043,
5048,
295,
1359,
2954,
281,
1435,
1071,
1338,
4446,
1162,
5541,
288,
203,
3639,
2583,
12,
3427,
5048,
295,
1359,
2954,
281,
2988,
18,
3666,
422,
3981,
1769,
203,
3639,
2583,
12,
3427,
5048,
295,
1359,
2954,
... |
//SPDX-License-Identifier: UNLICENSED
// Solidity files have to start with this pragma.
// It will be used by the Solidity compiler to validate its version.
pragma solidity ^0.8.0;
import "./Admin.sol";
// We import this library to be able to use console.log
// import "hardhat/console.sol";
// This is the main buil... | (oneTicketPriceByWei * soldTicketsCount);
| return soldTicketsValue; | 12,890,004 | [
1,
4625,
348,
7953,
560,
30,
225,
261,
476,
13614,
5147,
858,
3218,
77,
380,
272,
1673,
6264,
2413,
1380,
1769,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
327,
272,
1673,
6264,
2413,
620,
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,
... |
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.6.11;
// ============ Internal Imports ============
import {BridgeRouter} from "./BridgeRouter.sol";
import {IWeth} from "../../interfaces/bridge/IWeth.sol";
// ============ External Imports ============
import {TypeCasts} from "@celo-org/optics-sol/con... | * @notice Return the null view. @return bytes29 - The null view/ | function nullView() internal pure returns (bytes29) {
return NULL;
}
| 1,209,338 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1377,
2000,
326,
446,
1476,
18,
632,
2463,
1377,
1731,
5540,
300,
1021,
446,
1476,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
446,
1767,
1435,
2713,
16618,
1135,
261,
3890,
5540,
13,
288,
203,
3639,
327,
3206,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0xb8d379c83A10b073565bD486Ea87147E7117B025/sources/contracts/callManagers/LendingManager/LendingLogicCompound.sol | zero out approval to be sure Set approval Deposit into Compound | function lend(address _underlying, uint256 _amount) external view override returns(address[] memory targets, bytes[] memory data) {
IERC20 underlying = IERC20(_underlying);
targets = new address[](3);
data = new bytes[](3);
address cToken = lendingRegistry.underlyingToProtocolWrap... | 17,123,441 | [
1,
4625,
348,
7953,
560,
30,
225,
3634,
596,
23556,
358,
506,
3071,
1000,
23556,
4019,
538,
305,
1368,
21327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
328,
409,
12,
2867,
389,
9341,
6291,
16,
2254,
5034,
389,
8949,
13,
3903,
1476,
3849,
1135,
12,
2867,
8526,
3778,
5774,
16,
1731,
8526,
3778,
501,
13,
288,
203,
3639,
467,
654,
39,
3462,
6808,
273,
467,
654,
39,
3462,... |
/**
* Crowdfunding.sol v1.0.0
*
* Bilal Arif - https://twitter.com/furusiyya_
* Notary Platform
*/
pragma solidity ^0.4.16;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
ret... | * @param _newAddress is address of NTRY token contract @return true for case of success/ | function updateTokenContractAddr(address _newAddress) external onlyOwner returns(bool){
require(_newAddress != 0x00);
TokenContractAddress(token,_newAddress);
token = NotaryPlatformToken(_newAddress);
return true;
}
| 933,825 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
389,
2704,
1887,
353,
1758,
434,
423,
17805,
1147,
6835,
632,
2463,
638,
364,
648,
434,
2216,
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,
1377,
445,
1089,
1345,
8924,
3178,
12,
2867,
389,
2704,
1887,
13,
3903,
1338,
5541,
1135,
12,
6430,
15329,
203,
1850,
2583,
24899,
2704,
1887,
480,
374,
92,
713,
1769,
203,
1850,
3155,
8924,
1887,
12,
2316,
16,
67,
2704,
1887,
17... |
pragma solidity 0.5.11;
interface DharmaSmartWalletImplementationV7Interface {
// Fires when a new user signing key is set on the smart wallet.
event NewUserSigningKey(address userSigningKey);
// Fires when an error occurs as part of an attempted action.
event ExternalError(address indexed source, string rev... | Fires when a new user signing key is set on the smart wallet. Fires when an error occurs as part of an attempted action. The smart wallet recognizes DAI, USDC, ETH, and SAI as supported assets. | interface DharmaSmartWalletImplementationV7Interface {
event NewUserSigningKey(address userSigningKey);
event ExternalError(address indexed source, string revertReason);
enum AssetType {
DAI,
USDC,
ETH,
SAI
}
enum ActionType {
Cancel,
SetUserSigningKey,
Generic,
GenericAtomi... | 1,757,192 | [
1,
4625,
348,
7953,
560,
30,
225,
478,
2814,
1347,
279,
394,
729,
10611,
498,
353,
444,
603,
326,
13706,
9230,
18,
478,
2814,
1347,
392,
555,
9938,
487,
1087,
434,
392,
18121,
1301,
18,
1021,
13706,
9230,
14603,
3128,
463,
18194,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
463,
30250,
2540,
23824,
16936,
13621,
58,
27,
1358,
288,
203,
225,
871,
1166,
1299,
12322,
653,
12,
2867,
729,
12322,
653,
1769,
203,
203,
225,
871,
11352,
668,
12,
2867,
8808,
1084,
16,
533,
15226,
8385,
1769,
203,
203,
2... |
./full_match/1/0x79EbABbF5afA3763B6259Cb0a7d7f72ab59A2c47/sources/contracts/globals/LibGlobals.sol | Valid keys in `IGlobals`. Append-only. | library LibGlobals {
uint256 internal constant GLOBAL_PARTY_IMPL = 1;
uint256 internal constant GLOBAL_PROPOSAL_ENGINE_IMPL = 2;
uint256 internal constant GLOBAL_PARTY_FACTORY = 3;
uint256 internal constant GLOBAL_GOVERNANCE_NFT_RENDER_IMPL = 4;
uint256 internal constant GLOBAL_CF_NFT_RENDER_IMPL = ... | 9,727,352 | [
1,
4625,
348,
7953,
560,
30,
225,
2364,
1311,
316,
1375,
3047,
1295,
1031,
8338,
6181,
17,
3700,
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,... | [
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,
12083,
10560,
19834,
288,
203,
565,
2254,
5034,
2713,
5381,
7779,
67,
2778,
5538,
67,
3445,
6253,
273,
404,
31,
203,
565,
2254,
5034,
2713,
5381,
7779,
67,
3373,
7057,
1013,
67,
28980,
67,
3445,
6253,
273,
576,
31,
203,
565,
2254... |
./partial_match/1/0xaE7ae99dC58CEB4b3179B21D8a647677fbA93971/sources/FlappyBirbs.sol | This contract was generated by https://nft-generator.art/ | contract FlappyBirbs is ERC721ContractWrapper {
constructor(
string memory _name,
string memory _symbol,
uint256 _totalSupply,
uint256 _commission
) ERC721ContractWrapper(_name,_symbol,_totalSupply,_commission) {}
} | 16,012,289 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
6835,
1703,
4374,
635,
2333,
2207,
82,
1222,
17,
8812,
18,
485,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
478,
3762,
2074,
38,
481,
2038,
353,
4232,
39,
27,
5340,
8924,
3611,
288,
203,
225,
3885,
12,
203,
565,
533,
3778,
389,
529,
16,
203,
565,
533,
3778,
389,
7175,
16,
203,
565,
2254,
5034,
389,
4963,
3088,
1283,
16,
203,
... |
./full_match/1/0xD9F65f0d2135BeE238db9c49558632Eb6030CAa7/sources/contracts/operators/ERC20SwapOperator.sol | Set the immutable globals. Set the initial allowed targets. | constructor(IGlobals globals, address[] memory allowedTargets) {
_GLOBALS = globals;
for (uint256 i = 0; i < allowedTargets.length; i++) {
isTargetAllowed[allowedTargets[i]] = true;
}
}
| 2,943,776 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
11732,
10941,
18,
1000,
326,
2172,
2935,
5774,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3047,
1295,
1031,
10941,
16,
1758,
8526,
3778,
2935,
9432,
13,
288,
203,
3639,
389,
20402,
55,
273,
10941,
31,
203,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
2935,
9432,
18,
2469,
31,
277,
27... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0 <0.9.0;
contract ERC20Interface{
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function transfer(address to, uint tokens) public returns (bool success);
fun... | invest only in running hardCap not reached | function invest() payable public returns(bool){
icoState = getCurrentState();
require(icoState == State.running);
require(msg.value >= minInvestment && msg.value <= maxInvestment);
uint tokens = msg.value / tokenPrice;
require(raisedAmount + msg.value <= hardCap);
... | 6,350,203 | [
1,
4625,
348,
7953,
560,
30,
225,
2198,
395,
1338,
316,
3549,
7877,
4664,
486,
8675,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2198,
395,
1435,
8843,
429,
1071,
1135,
12,
6430,
15329,
203,
3639,
277,
2894,
1119,
273,
5175,
1119,
5621,
203,
3639,
2583,
12,
10764,
1119,
422,
3287,
18,
8704,
1769,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
1131,
3... |
pragma solidity ^0.4.18;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
... | * @dev weiLimits keeps track of amount of wei that can be contibuted by an address./* @dev weiContributions keeps track of amount of wei that are contibuted by an address./* @dev whitelistingAgents keeps track of who is allowed to call the setLimit method/* @dev minimumContribution keeps track of what should be the min... | {
require(_beneficiaries.length == _beneficiaryAmounts.length);
beneficiaries = _beneficiaries;
beneficiaryAmounts = _beneficiaryAmounts;
mintingFinished = false;
minimumContribution = _minimumContribution;
}
| 1,326,280 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
732,
77,
12768,
20948,
3298,
434,
3844,
434,
732,
77,
716,
848,
506,
466,
495,
4817,
635,
392,
1758,
18,
20308,
632,
5206,
732,
77,
442,
15326,
20948,
3298,
434,
3844,
434,
732,
77,
716... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
288,
203,
565,
2583,
24899,
70,
4009,
74,
14463,
5646,
18,
2469,
422,
389,
70,
4009,
74,
14463,
814,
6275,
87,
18,
2469,
1769,
203,
565,
27641,
74,
14463,
5646,
273,
389,
70,
4009,
74,
14463,
5646,
31,
203,
565,
27641,
74,... |