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 |
|---|---|---|---|---|---|---|
//pragma solidity ^0.3.6;
contract Token {
function balanceOf(address user) constant returns (uint256 balance);
function transfer(address receiver, uint amount) returns(bool);
}
// A Sub crowdfunding contract. Its only purpose is to redirect ether it receives to the
// main crowdfunding contract. This mecanism is u... | How much milli Nxc this sponsor earned by solding Nexiums for us
| uint earnedNexium; | 7,313,824 | [
1,
44,
543,
9816,
312,
16607,
423,
6511,
333,
272,
500,
2467,
425,
1303,
329,
635,
272,
1673,
310,
423,
338,
5077,
87,
364,
584,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
565,
2254,
425,
1303,
329,
50,
338,
5077,
31,
4766,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/42/0xE0Df94523C3CC81b8818ea97bcd326aA466A91dF/sources/GovernanceProxy.sol | * @author Balancer Labs @title Factor out the weight updates/ Type declarations | library SmartPoolManager {
pragma experimental ABIEncoderV2;
struct NewTokenParams {
address addr;
bool isCommitted;
uint commitBlock;
uint denorm;
uint balance;
}
struct GradualUpdateParams {
uint startBlock;
uint endBlock;
uint[] startWei... | 3,358,205 | [
1,
6444,
511,
5113,
225,
26400,
596,
326,
3119,
4533,
19,
1412,
12312,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
19656,
2864,
1318,
288,
203,
203,
203,
683,
9454,
23070,
10336,
45,
7204,
58,
22,
31,
203,
203,
565,
1958,
1166,
1345,
1370,
288,
203,
3639,
1758,
3091,
31,
203,
3639,
1426,
353,
27813,
31,
203,
3639,
2254,
3294,
1768,
31,... |
/**
* @title ByteSlice
*
* Slices are objects that allow you to work with arrays without copying them.
*
* @author Andreas Olofsson (androlo1980@gmail.com)
*/
library ByteSlice {
struct Slice {
uint _unsafe_memPtr; // Memory address of the first byte.
uint _unsafe_length; // Length.
}... | Memory address of the first byte.
| uint _unsafe_memPtr; | 954,823 | [
1,
6031,
1758,
434,
326,
1122,
1160,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
389,
318,
4626,
67,
3917,
5263,
31,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/42/0x99743a2dF45bE75832c083e0d0644BF2E9F0a0C1/sources/contracts/mimic/SocialTraderToken.sol | Assumes that the token was deployed from the social hub
| socialHub = msg.sender; | 9,595,150 | [
1,
2610,
6411,
716,
326,
1147,
1703,
19357,
628,
326,
16702,
11891,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16702,
8182,
273,
1234,
18,
15330,
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,
... |
./full_match/43114/0xd640671958EA3bad720CC356F2beEF15Dba58726/sources/Utils.sol | now calculate reward | uint256 reward = WAVAXPool.mul(multiplier).mul(currentBalance).div(100).div(totalSupply);
| 4,638,264 | [
1,
3338,
4604,
19890,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
19890,
273,
678,
5856,
2501,
2864,
18,
16411,
12,
20538,
2934,
16411,
12,
2972,
13937,
2934,
2892,
12,
6625,
2934,
2892,
12,
4963,
3088,
1283,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.1;
interface IMoonCatRescue {
function rescueOrder(uint256 tokenId) external view returns (bytes5);
function catOwners(bytes5 catId) external view returns (address);
}
interface IReverseResolver {
function claim(address owner) external returns (byt... | External Contracts */* @dev Wrap a chunk of SVG objects with a group that flips their appearance horizontally./ | function flip (bytes memory svgData) public pure returns (bytes memory) {
return abi.encodePacked("<g transform=\"scale(-1,1) translate(-128,0)\">", svgData, "</g>");
}
| 394,105 | [
1,
6841,
30131,
342,
225,
4266,
279,
2441,
434,
11281,
2184,
598,
279,
1041,
716,
284,
11693,
3675,
9788,
1359,
366,
6157,
1230,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9668,
261,
3890,
3778,
9804,
751,
13,
1071,
16618,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
327,
24126,
18,
3015,
4420,
329,
2932,
32,
75,
2510,
5189,
5864,
19236,
21,
16,
21,
13,
4204,
19236,
10392,
16,
20,
13,
211... |
./full_match/4/0xEACa2B16784f4048A37C220649409Ec0993f7Ee5/sources/contracts/BDCContract.sol | `_mint`'s second argument now takes in a `quantity`, not a `tokenId`. | function mint(address to, uint256 quantity)
external
payable
isCorrectPayment(PUBLIC_SALE_PRICE,quantity)
canMintBDCs(quantity)
{
_mint(to, quantity);
}
| 12,437,095 | [
1,
68,
67,
81,
474,
11294,
87,
2205,
1237,
2037,
5530,
316,
279,
1375,
16172,
9191,
486,
279,
1375,
2316,
548,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
312,
474,
12,
2867,
358,
16,
2254,
5034,
10457,
13,
7010,
3639,
3903,
7010,
3639,
8843,
429,
203,
3639,
353,
16147,
6032,
12,
14939,
67,
5233,
900,
67,
7698,
1441,
16,
16172,
13,
203,
3639,
848,
49,
474,
38,
5528,
87,... |
/**
* Copyright (c) 2017-present, Parsec Labs (parseclabs.org)
*
* This source code is licensed under the Mozilla Public License, version 2,
* found in the LICENSE file in the root directory of this source tree.
*/
pragma solidity ^0.4.22;
library TxLib {
uint constant internal WORD_SIZE = 32;
uint consta... | using value for length here
| value = uint16(value); | 12,854,050 | [
1,
9940,
460,
364,
769,
2674,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
460,
273,
2254,
2313,
12,
1132,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x97742240d6eBE32198B315d30C73c3D2FFC9cE21/sources/src/contracts/BaseParaSwapBuyAdapter.sol | * @title BaseParaSwapBuyAdapter @notice Implements the logic for buying tokens on ParaSwap/ | abstract contract BaseParaSwapBuyAdapter is BaseParaSwapAdapter {
using SafeERC20 for IERC20Detailed;
using PercentageMath for uint256;
IParaSwapAugustusRegistry public immutable AUGUSTUS_REGISTRY;
constructor(
IPoolAddressesProvider addressesProvider,
address pool,
IParaSwapAugustusRegistry augus... | 5,004,764 | [
1,
2171,
23529,
12521,
38,
9835,
4216,
225,
29704,
326,
4058,
364,
30143,
310,
2430,
603,
2280,
69,
12521,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
3360,
23529,
12521,
38,
9835,
4216,
353,
3360,
23529,
12521,
4216,
288,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
40,
6372,
31,
203,
225,
1450,
21198,
410,
10477,
364,
2254,
5034,
31,
203,
203,
2... |
/**
*Submitted for verification at Etherscan.io on 2021-07-18
*/
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "Bio Doge";
symbol = "BDOGE";
decimals = 18;
_totalSupply = 100000000000000000000000000000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 10,542,381 | [
1,
442,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
38,
1594,
463,
717,
73,
14432,
203,
3639,
3273,
273,
315,
38,
3191,
7113,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
2130,
12648,
12648,
12... |
/// base.sol -- basic ERC20 implementation
// Copyright (C) 2015, 2016, 2017 DappHub, LLC
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at ... | Check that minimum sell volume has been reached.
| require (proposal[id].side[1].total_dai_traded >= proposal[pa_proposal_id].next_minimum_sell_volume, "dai sold < minimum"); | 1,816,029 | [
1,
1564,
716,
5224,
357,
80,
3940,
711,
2118,
8675,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
6528,
261,
685,
8016,
63,
350,
8009,
5564,
63,
21,
8009,
4963,
67,
2414,
77,
67,
2033,
785,
1545,
14708,
63,
8774,
67,
685,
8016,
67,
350,
8009,
4285,
67,
15903,
67,
87,
1165,
67,
9491,
16,
315,
2414,
77,
272,
1673,... |
./full_match/1/0x864a1CBB53b9Dea3691a6974B456088C2771DcAd/sources/browser/Bar.sol | View function to see the number of blocks remaining until launch on the frontend | function blocksUntilLaunch() public view returns (uint256) {
if (block.number >= startBlock) return 0;
else return startBlock.sub(block.number);
}
| 4,927,171 | [
1,
1767,
445,
358,
2621,
326,
1300,
434,
4398,
4463,
3180,
8037,
603,
326,
15442,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4398,
9716,
9569,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
2629,
18,
2696,
1545,
787,
1768,
13,
327,
374,
31,
203,
3639,
469,
327,
787,
1768,
18,
1717,
12,
2629,
18,
2696,
1769,
203,
565... |
./partial_match/1/0x918F65dEF819b0720cf5C0a264603d451F522C2A/sources/ERC20.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Context, IERC20, Owned {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name = 'Everlasting Parallel Chain';
string private _sym... | 3,898,092 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
11748,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
565,
2... |
//Address: 0xfd26d4fedea09da1bb2c4e410c747dda72fdb506
//Contract name: VZTPresale
//Balance: 0 Ether
//Verification Date: 1/19/2018
//Transacion Count: 23
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/is... | total amount of Ether raised in wei
| uint256 public totalCollected = 0; | 939,828 | [
1,
4963,
3844,
434,
512,
1136,
11531,
316,
732,
77,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
2078,
10808,
329,
273,
374,
31,
4766,
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,
... |
./full_match/1313161554/0x51e20134b7c11D9e868E0EE227BAbc429CA1c2e8/sources/contracts/facets/bridges/cbridge/RangoCBridgeFacet.sol | @notice Emits when the cBridge address is updated @param oldAddress The previous address @param newAddress The new address | event RangoCBridgeMiddlewareAddressUpdated(address oldAddress, address newAddress);
| 13,230,116 | [
1,
1514,
1282,
1347,
326,
276,
13691,
1758,
353,
3526,
225,
1592,
1887,
1021,
2416,
1758,
225,
394,
1887,
1021,
394,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
534,
6399,
8876,
5404,
9410,
1887,
7381,
12,
2867,
1592,
1887,
16,
1758,
394,
1887,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: UNLICENSED
// Copyright (c) 2021 0xdev0 - All rights reserved
// https://twitter.com/0xdev0
pragma solidity 0.8.6;
interface IERC20 {
function totalSupply() external view returns (uint);
function balanceOf(address account) external view returns (uint);
function transfer(address reci... | Only large liquid tokens: ETH, DAI, USDC, WBTC, etc | contract FeeConverter is Ownable {
uint private constant MAX_INT = 2**256 - 1;
mapping (address => bool) public permittedTokens;
IUniswapRouter public uniswapRouter;
IERC20 public wildToken;
IController public controller;
address public stakingPool;
uint public callIncentive... | 5,879,426 | [
1,
3386,
7876,
4501,
26595,
2430,
30,
512,
2455,
16,
463,
18194,
16,
11836,
5528,
16,
678,
38,
15988,
16,
5527,
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,
30174,
5072,
353,
14223,
6914,
288,
203,
203,
225,
2254,
3238,
5381,
4552,
67,
3217,
273,
576,
636,
5034,
300,
404,
31,
203,
203,
225,
2874,
261,
2867,
516,
1426,
13,
1071,
15498,
5157,
31,
203,
203,
225,
467,
984,
291,
... |
./full_match/56/0xC33FfC542DF2fDefB04eF03c5f6b23EB39519531/sources/project_/contracts/ELFIN.sol | * @dev Destroys `amount` tokens from the caller. See {ERC20-_burn}./ | function burn(uint256 amount) public virtual onlyOwner{
_burn(_msgSender(), amount);
}
| 3,230,881 | [
1,
9378,
28599,
1375,
8949,
68,
2430,
628,
326,
4894,
18,
2164,
288,
654,
39,
3462,
17,
67,
70,
321,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18305,
12,
11890,
5034,
3844,
13,
1071,
5024,
1338,
5541,
95,
203,
3639,
389,
70,
321,
24899,
3576,
12021,
9334,
3844,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42/0x4e2874B02d97336ADf7e37a28795B8478E54c166/sources/experiments/AveragePrice.sol | overflow is desired
| uint32 timeElapsed = blockTimestampCurrent - blockTimestampLast; | 9,570,319 | [
1,
11512,
353,
6049,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1578,
813,
28827,
273,
1203,
4921,
3935,
300,
1203,
4921,
3024,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.15;
/**
* @title Holdme Token Sale
*
* Created by IaM <DEV> (Elky Bachtiar)
* https://www.iamdeveloper.io
*
*
*/
import './Holdme.sol';
import './TokenController.sol';
import '../installed_contracts/ERC23/contracts/Utils.sol/';
import '../installed_contracts/ERC23/installed_contracts/ze... | initial price in wei (denominator)
| uint256 public constant TOKEN_PRICE_D = 3030; | 14,068,608 | [
1,
6769,
6205,
316,
732,
77,
261,
13002,
26721,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5381,
14275,
67,
7698,
1441,
67,
40,
273,
890,
4630,
20,
31,
7734,
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 "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one... | throws on underflow | function _registerWithdrawal(
CrossMarginAccount storage account,
address withdrawToken,
uint256 withdrawAmount
) internal {
require(
block.number > account.lastDepositBlock + coolingOffPeriod,
"No withdrawal soon after deposit"
);
totalLo... | 563,811 | [
1,
15069,
603,
3613,
2426,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4861,
1190,
9446,
287,
12,
203,
3639,
19742,
9524,
3032,
2502,
2236,
16,
203,
3639,
1758,
598,
9446,
1345,
16,
203,
3639,
2254,
5034,
598,
9446,
6275,
203,
565,
262,
2713,
288,
203,
3639,
2583,
12,
203,
5411,
1203,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
cont... | not 100% sure about that one yet
| require(msg.sender == ownerOf(tokenId), "LockableToken: Only the Owner can unlock the Token"); | 5,880,521 | [
1,
902,
2130,
9,
3071,
2973,
716,
1245,
4671,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
951,
12,
2316,
548,
3631,
315,
2531,
429,
1345,
30,
5098,
326,
16837,
848,
7186,
326,
3155,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.5.0;
////////////////////////////////////////////////////////////////////////////////
// XXX: Do not use in production until this code has been audited.
////////////////////////////////////////////////////////////////////////////////
/** ********************************************************... | Pseudo-random number from inputs. Corresponds to vrf.go/scalarFromCurve. | public pure returns (uint256 s) {
bytes32 iHash = keccak256(abi.encodePacked(hash, pk, gamma, v, uWitness));
return zqHash(GROUP_ORDER, uint256(iHash));
}
| 12,662,703 | [
1,
26716,
17,
9188,
1300,
628,
4540,
18,
9557,
455,
12545,
358,
20466,
18,
3240,
19,
8748,
1265,
9423,
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,
... | [
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,
1071,
16618,
1135,
261,
11890,
5034,
272,
13,
288,
203,
1377,
1731,
1578,
277,
2310,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
12,
2816,
16,
2365,
16,
9601,
16,
331,
16,
582,
24007,
10019,
203,
1377,
327,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-28
*/
// SPDX-License-Identifier: Unlicensed
/*
Tax : 0%( 24% if sold within 24 hours after buying $YAUTJA)
Telegram : https://t.me/YautjaInuETH
*/
pragma solidity 0.8.13;
abstract contract Context
{
function _msgSender() internal view virtual returns... | Create a uniswap pair for this new token exclude from paying fees or having max transaction amount | constructor() ERC20("Yautja Inu", "YAUTJA") {
address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = _uniswapV2Pair;
_setAutomatedMarketMakerPair(_u... | 2,022,800 | [
1,
1684,
279,
640,
291,
91,
438,
3082,
364,
333,
394,
1147,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3885,
1435,
4232,
39,
3462,
2932,
61,
5854,
12333,
657,
89,
3113,
315,
61,
37,
1693,
46,
37,
7923,
288,
203,
203,
3639,
1758,
389,
318,
291,
91,
438,
58,
22,
4154,
273,
467,
984,
291,
91,
438,
58,
22,
1733,
24899,
318,
... |
./full_match/5/0xee8C904D2c17a02407fe92d2685E51a38ECe8e31/sources/contracts/token/TenderToken.sol | @inheritdoc ITenderToken | function mint(address _recipient, uint256 _amount) external override onlyOwner returns (bool) {
_mintShares(_recipient, _tokensToShares(_amount));
return true;
}
| 7,035,293 | [
1,
36,
10093,
24142,
2345,
1345,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
389,
20367,
16,
2254,
5034,
389,
8949,
13,
3903,
3849,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
3639,
389,
81,
474,
24051,
24899,
20367,
16,
389,
7860,
774,
24051,
24899,
8949,
10019,
203,
3639,
32... |
pragma solidity ^0.5.7;
contract SafeTransfer {
function _SAFETRANSFER911(ERC20Token _token, address _to, uint256 _value) internal returns (bool result) { //inject NONSTANDARD NAMING
_token.TRANSFER494(_to, _value);
assembly {
... | inject NONSTANDARD NAMING
| function GETOFFERIDS508(address _address) external view returns (uint256[] memory) { | 12,593,911 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4978,
8797,
654,
19516,
3361,
28,
12,
2867,
389,
2867,
13,
3903,
1476,
1135,
261,
11890,
5034,
8526,
3778,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity ^0.7.0;
import "./lib/ReEncryptionValidator.sol";
import "./lib/SignatureVerifier.sol";
import "./StakingEscrow.sol";
import "./proxy/Upgradeable.sol";
import "../zeppelin/math/SafeMath.sol";
import "../zeppelin/math/Math.sol";
/**
* @title Adjudicator
*... | * @notice Deserialize to CapsuleFrag/ | function toCapsuleFrag(bytes memory _cFragBytes)
internal pure returns (CapsuleFrag memory cFrag)
{
uint256 cFragBytesLength = _cFragBytes.length;
require(cFragBytesLength >= FULL_CAPSULE_FRAG_SIZE);
uint256 pointer = getPointer(_cFragBytes);
pointer = copyPoint(pointer,... | 1,393,027 | [
1,
20423,
358,
385,
6679,
725,
19509,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
358,
24193,
725,
19509,
12,
3890,
3778,
389,
71,
19509,
2160,
13,
203,
3639,
2713,
16618,
1135,
261,
24193,
725,
19509,
3778,
276,
19509,
13,
203,
565,
288,
203,
3639,
2254,
5034,
276,
19509,
2160,
1782,
273,
389,
71,
1... |
./full_match/1/0x9bC228711706db212ED2BC12d9dC1643cf304EEA/sources/lib/openzeppelin-contracts-upgradeable/contracts/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol | * @dev The storage `slot` is unsupported as a UUID./ | error ERC1967UnsupportedProxiableUUID(bytes32 slot);
| 8,424,111 | [
1,
1986,
2502,
1375,
14194,
68,
353,
13248,
487,
279,
5866,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
555,
4232,
39,
3657,
9599,
8544,
16155,
2214,
5562,
12,
3890,
1578,
4694,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/421613/0x620e20d91C9b0e11ecAE439E7b85138DA2a1003F/sources/contracts/impls/WitnetUpgradableBase.sol | Converts bytes32 into string. | function _toString(bytes32 _bytes32)
internal pure
returns (string memory)
{
bytes memory _bytes = new bytes(_toStringLength(_bytes32));
for (uint _i = 0; _i < _bytes.length;) {
_bytes[_i] = _bytes32[_i];
unchecked {
_i ++;
}
... | 16,825,509 | [
1,
5692,
1731,
1578,
1368,
533,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
10492,
12,
3890,
1578,
389,
3890,
1578,
13,
203,
3639,
2713,
16618,
203,
3639,
1135,
261,
1080,
3778,
13,
203,
565,
288,
203,
3639,
1731,
3778,
389,
3890,
273,
394,
1731,
24899,
10492,
1782,
24899,
3890,
1578,
10019,... |
./partial_match/1/0x642Aa4faB8A40260E61eAbb169447B39287A0ccE/sources/BlockBot.sol | set as marketing wallet
| marketingWallet = address(0xc3a9Fd7dBb4fE87b2e49F8eC21B00C0e362F07fE); | 16,179,139 | [
1,
542,
487,
13667,
310,
9230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
6511,
23,
69,
29,
27263,
27,
72,
38,
70,
24,
74,
41,
11035,
70,
22,
73,
7616,
42,
28,
73,
39,
5340,
38,
713,
39,
20,
73,
5718,
22,
42,
8642,
74,
41,
1769,
225,
2,
-100,
-100,
... |
pragma solidity ^0.5.0;
// Copyright 2018 OpenST Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | * Maps validator addresses to the highest target vote they have voted. All future votes must target a height greater than the last voted target height./ | mapping (address => uint256) public validatorTargetHeights;
| 5,394,781 | [
1,
8903,
4213,
6138,
358,
326,
9742,
1018,
12501,
2898,
1240,
331,
16474,
18,
4826,
3563,
19588,
1297,
1018,
279,
2072,
6802,
2353,
326,
1142,
331,
16474,
1018,
2072,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
1071,
4213,
2326,
2686,
87,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Snapshot.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/Uniswap.sol";
import "../interfaces/IPinkAntiBot.s... | * Returns the contract address Return contract address/ | function getContractAddress() public view returns (address){
return address(this);
}
| 12,722,684 | [
1,
1356,
326,
6835,
1758,
2000,
6835,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
8924,
1887,
1435,
1071,
1476,
1135,
261,
2867,
15329,
203,
3639,
327,
1758,
12,
2211,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-23
*/
// Sources flattened with hardhat v2.6.8 https://hardhat.org
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts-upgradeable/utils/[email protected]
pragma solidity ^0.7.0;
/**
* @dev Collection of functions related to the address type
... | @dev return the unlocked xALD amount from user bond. @param _user The address of user. be carefull when no checkpoint for _user | function unlockedBondXALD(address _user) external view returns (uint256) {
uint256 _lastBlock = checkpoint[_user].blockNumber;
uint256 unlockedAmount = _getRedeemableWithList(userDirectBondLocks[_user], _lastBlock);
return IWXALD(wxALD).wrappedXALDToXALD(unlockedAmount);
}
| 2,461,636 | [
1,
2463,
326,
25966,
619,
1013,
40,
3844,
628,
729,
8427,
18,
225,
389,
1355,
1021,
1758,
434,
729,
18,
506,
7671,
2854,
1347,
1158,
9776,
364,
389,
1355,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
25966,
9807,
60,
1013,
40,
12,
2867,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
389,
2722,
1768,
273,
9776,
63,
67,
1355,
8009,
2629,
1854,
31,
203,
203,
565,
2254,
5034,
25966,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | ткань выгорела на солнце
| rus_verbs:выгореть{}, | 5,485,024 | [
1,
146,
229,
145,
123,
145,
113,
145,
126,
146,
239,
225,
145,
115,
146,
238,
145,
116,
145,
127,
146,
227,
145,
118,
145,
124,
145,
113,
225,
145,
126,
145,
113,
225,
146,
228,
145,
127,
145,
124,
145,
126,
146,
233,
145,
118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8010,
67,
502,
2038,
30,
145,
115,
146,
238,
145,
116,
145,
127,
146,
227,
145,
118,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x508efB44A06a64Bd4020e8c5e8Ecf1A9236C75aE/sources/tokenWhitelist.sol | @notice keeping track of how many redeemable tokens are in the tokenWhitelist | uint256 private _redeemableCounter;
| 3,597,976 | [
1,
10102,
310,
3298,
434,
3661,
4906,
283,
24903,
429,
2430,
854,
316,
326,
1147,
18927,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
266,
24903,
429,
4789,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/4/0x2427F0f1B842665d9FB9f0d8Ca347E044Ef5F15a/sources/contracts/GardensTemplate.sol | 8 times within price period, once every 3 hours
| uint8 public constant UPDATE_FREQUENCY = 8; | 8,714,693 | [
1,
28,
4124,
3470,
6205,
3879,
16,
3647,
3614,
890,
7507,
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,
2254,
28,
1071,
5381,
11028,
67,
42,
862,
3500,
26325,
273,
1725,
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... |
pragma solidity ^0.4.23;/*
_ _____ ___ _ _ __
` __ ___ ___ _ _ ,'
`. __ ____ /__ ,'
`. __ __ / ,'
`.__ _ /_,'
`. _ /,'
`./'
,/`.
,'/ __`.
,'_/_ _ _`.
,'__/_ __... | trickleSum -= pocketETH; | trickleSum += trickle - pocketETH;
| 2,346,628 | [
1,
313,
1200,
298,
3495,
3947,
293,
1861,
1584,
44,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6862,
202,
313,
1200,
298,
3495,
1011,
28837,
298,
300,
293,
1861,
1584,
44,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
/*
* @dev Provides information about the current execution context.
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
... | @notice The EIP-712 typehash for the delegation struct used by the contract | bytes32 public constant delegation_typehash = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
| 163,164 | [
1,
1986,
512,
2579,
17,
27,
2138,
618,
2816,
364,
326,
23595,
1958,
1399,
635,
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,
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,
1731,
1578,
1071,
5381,
23595,
67,
723,
2816,
273,
417,
24410,
581,
5034,
2932,
26945,
12,
2867,
7152,
73,
16,
11890,
5034,
7448,
16,
11890,
5034,
10839,
2225,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//Address: 0x8a69a63fca907939e5c7d92a260d8875c8700383
//Contract name: BlobStore
//Balance: 0 Ether
//Verification Date: 10/31/2016
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity ^0.4.3;
/**
* @title AbstractBlobStore
* @author Jonathan Brown <jbrown@bluedroplet.com>
* @dev Contracts must be able to ... | * @dev Mapping of blobId to blob info./ | mapping (bytes20 => BlobInfo) blobInfo;
| 12,534,255 | [
1,
3233,
434,
4795,
548,
358,
4795,
1123,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
3890,
3462,
516,
12741,
966,
13,
4795,
966,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"... | * @dev Sets the compliance contract address to use during transfers. @param newComplianceAddress The address of the compliance contract./ | function setCompliance(address newComplianceAddress)
external
isUnlocked
onlyOwner {
compliance = Compliance(newComplianceAddress);
}
| 1,061,270 | [
1,
2785,
326,
29443,
6835,
1758,
358,
999,
4982,
29375,
18,
282,
394,
16687,
1887,
1021,
1758,
434,
326,
29443,
6835,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
16687,
12,
2867,
394,
16687,
1887,
13,
203,
565,
3903,
203,
565,
353,
7087,
329,
203,
565,
1338,
5541,
288,
203,
3639,
29443,
273,
1286,
10671,
12,
2704,
16687,
1887,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
... |
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// 'istake' 'istake' Smart Contract
//
// Symbol : istake
// Name : istake
// Total supply: 50,000
// Decimals : 18
//
//
//
//The MIT Licence.
// ----------------------------------------------------... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and a fixed supply ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Constructor -... | contract istake is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
constructor() public {
symbol = "i... | 1,671,457 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
279,
5499,
14467,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19165,
911,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
... |
pragma solidity >=0.5.0 <0.6.0;
import '../../libs/lifecycle/LockableDestroyable.sol';
import '../IRegistry.sol';
import './IBrokerDealerRegistry.sol';
/**
* @title BrokerDealer Registry
*
*/
contract BrokerDealerRegistry is IBrokerDealerRegistry, LockableDestroyable {
IRegistry public registry;
uint8 ... | * @title BrokerDealer Registry/ ------------------------------- Modifiers ------------------------------- | contract BrokerDealerRegistry is IBrokerDealerRegistry, LockableDestroyable {
IRegistry public registry;
modifier onlyCustodian() {
require(registry.accountKindExists(msg.sender, CUSTODIAN), "Custodian address required");
require(!registry.accountFrozen(msg.sender), "Custodian is frozen");
... | 12,916,134 | [
1,
11194,
10889,
5438,
19,
12146,
17908,
3431,
3383,
12146,
17908,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20438,
10889,
4243,
353,
467,
11194,
10889,
4243,
16,
3488,
429,
10740,
429,
288,
203,
565,
467,
4243,
1071,
4023,
31,
203,
203,
203,
565,
9606,
1338,
39,
641,
369,
2779,
1435,
288,
203,
3639,
2583,
12,
9893,
18,
4631,
567... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.7.0;
// File: contracts/external/Strings.sol
// OpenZeppelin Contracts v4.3.2 (utils/Strings.sol)
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to... | override Data format: - 4 bytes: collection ID - 16 bytes: base price - 12 bytes: id | function tokenURI(uint256 tokenId)
public
view
returns (string memory)
{
require(uint32((tokenId >> 224) & 0xFFFFFFFF) == collectionID, "inconsistent collection id");
uint basePrice = (tokenId >> 96) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
uint currentPrice = getP... | 6,072,867 | [
1,
10601,
1910,
740,
30,
300,
225,
1059,
1731,
30,
1849,
1599,
300,
2872,
1731,
30,
1026,
6205,
300,
2593,
1731,
30,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
1080,
3778,
13,
203,
565,
288,
203,
3639,
2583,
12,
11890,
1578,
12443,
2316,
548,
1671,
576,
3247,
13,
473,
374,
28949... |
pragma solidity ^0.5.0;
import "./Graph.sol";
import "./SafeMath.sol";
import "./Agreement.sol";
contract MainGraph {
using SafeMath for uint256;
int256 public constant MAX_INT = int256(~(uint256(1) << 255));
uint256 constant MAX_UINT = ~uint256(0);
address public netereumAddress;
address[] confirme... | constructor(address _netereumAddress) public { netereumAddress = _netereumAddress; } | contract MainGraph {
using SafeMath for uint256;
int256 public constant MAX_INT = int256(~(uint256(1) << 255));
uint256 constant MAX_UINT = ~uint256(0);
address public netereumAddress;
address[] confirmedCoordinators;
uint256 public numberOfCoordinators = 0;
function setNetereum(address addr... | 12,652,413 | [
1,
12316,
12,
2867,
389,
2758,
822,
379,
1887,
13,
1071,
565,
288,
3639,
2901,
822,
379,
1887,
273,
389,
2758,
822,
379,
1887,
31,
565,
289,
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,
16351,
12740,
4137,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
509,
5034,
1071,
5381,
4552,
67,
3217,
273,
509,
5034,
12,
98,
12,
11890,
5034,
12,
21,
13,
2296,
4561,
10019,
203,
565,
2254,
5034,
5381,
4552... |
./full_match/1/0x00000000000061aD8EE190710508A818aE5325C3/sources/src/dependencies.sol | * @dev Standard math utilities missing in the Solidity language./ | library Math {
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
... | 9,759,442 | [
1,
8336,
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,
0,
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,
12083,
2361,
288,
203,
565,
445,
613,
2163,
12,
11890,
5034,
460,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
563,
273,
374,
31,
203,
3639,
22893,
288,
203,
5411,
309,
261,
1132,
1545,
1728,
2826,
517... |
pragma solidity ^0.4.11;
import "./AccountId.sol";
import "./Lingotts_token.sol";
// Per country
contract AccountIdFactory {
struct Account {
string username;
address ownerAddress;
address id;
bool deleted;
}
address public owner;
modifier onlyOwner() {
if(msg.sender != owner)
reve... | Creates and registers a new ID if it's not already created | function create(string username)
returns(address accountAddress)
{
if(!existsAccount[sha3(username)]) {
accountAddress = new AccountId(username, msg.sender);
register(username, accountAddress);
accountList[accounts[sha3(username)]].deleted = false;
accountAddress = getAccount(userna... | 6,408,028 | [
1,
2729,
471,
10285,
279,
394,
1599,
309,
518,
1807,
486,
1818,
2522,
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,
225,
445,
752,
12,
1080,
2718,
13,
203,
225,
1135,
12,
2867,
2236,
1887,
13,
203,
225,
288,
203,
203,
565,
309,
12,
5,
1808,
3032,
63,
7819,
23,
12,
5053,
13,
5717,
288,
203,
1377,
2236,
1887,
273,
394,
6590,
548,
12,
5053,
... |
./full_match/80001/0xB44Ae12e3245A3FbdD9445c536ef568a702e77DF/sources/contracts/PhatRollupAnchor.sol | The handler to be called when a message is received from a Phat Contract Reverting in this function resulting the revert of the offchain rollup transaction. Returns the prefix of the queue related keys The queue is persisted in the rollup kv store with all its keys prefixed. This function returns the prefix. | function _onMessageReceived(bytes calldata action) internal virtual;
function queueGetPrefix() public pure returns (bytes memory) {
return QUEUE_PREFIX;
}
| 845,153 | [
1,
1986,
1838,
358,
506,
2566,
1347,
279,
883,
353,
5079,
628,
279,
4360,
270,
13456,
868,
1097,
310,
316,
333,
445,
8156,
326,
15226,
434,
326,
3397,
5639,
5824,
416,
2492,
18,
2860,
326,
1633,
434,
326,
2389,
3746,
1311,
1021,
238... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
265,
1079,
8872,
12,
3890,
745,
892,
1301,
13,
2713,
5024,
31,
203,
203,
565,
445,
2389,
967,
2244,
1435,
1071,
16618,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
327,
31600,
67,
6307,
31,
203,
565,
289,
203,
203,... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.... | File: contracts/CryptoKidneys.sol Amended by HashLips*/ | contract CryptoKidneys is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0 ether;
uint256 public maxSupply = 55... | 14,669,672 | [
1,
812,
30,
20092,
19,
18048,
47,
350,
82,
402,
87,
18,
18281,
3986,
3934,
635,
2474,
48,
7146,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
15629,
47,
350,
82,
402,
87,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
225,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
225,
9354,
87,
18,
4789,
3238,
144... |
pragma solidity >=0.6.2 <0.7.0;
pragma experimental ABIEncoderV2;
contract CharityToken {
string public name = "Charity Token"; // Sets the name for display purposes
string public symbol = "CHT"; // Sets the symbol for display purposes
uint256 public tota... | sends a certain `_value` of token to `_to` from `msg.sender` | function transfer(address _to, uint256 _value) public returns (bool success) {
require(balances[msg.sender] >= _value, "You have insufficient balance");
balances[msg.sender] -= _value;
balances[_to] += _value;
emit Transfer(msg.sender, _to, _value);
return true;
}
... | 6,387,357 | [
1,
4661,
87,
279,
8626,
1375,
67,
1132,
68,
434,
1147,
358,
1375,
67,
869,
68,
628,
1375,
3576,
18,
15330,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12,
70,
26488,
63,
3576,
18,
15330,
65,
1545,
389,
1132,
16,
315,
6225,
1240,
2763,
11339,
11013,
8863,
2... |
pragma solidity ^0.5.7;
library SafeMath {
int256 constant private in... | inject NONSTANDARD NAMING
| function BURNFROM948(address from, uint256 value) public WHENBURNABLEACTIVE644 { | 12,598,050 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
605,
8521,
11249,
29,
8875,
12,
2867,
628,
16,
2254,
5034,
460,
13,
1071,
29707,
38,
8521,
2782,
13301,
22087,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/43114/0xF5D5F849d057Bad242BabB034794889F3de7301c/sources/contracts/liquidation/FlashAMMStableLiquidation.sol | requested collateral value is the mean of total debt and the minimum necessary to restore minimum col ratio | function getBidAndRequest(uint256 trancheId)
internal
returns (
uint256,
uint256,
address
)
{
StableLending lending = stableLending();
address token = lending.trancheToken(trancheId);
uint256 extantCollateral = lending.viewTarg... | 16,385,371 | [
1,
19065,
4508,
2045,
287,
460,
353,
326,
3722,
434,
2078,
18202,
88,
471,
326,
5224,
4573,
358,
5217,
5224,
645,
7169,
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,
2882,
350,
1876,
691,
12,
11890,
5034,
13637,
18706,
548,
13,
203,
3639,
2713,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
16,
203,
5411,
2254,
5034,
16,
203,
5411,
1758,
203,
3639,
262,
203,
565,
288,
203,
3639,
934,
... |
pragma solidity 0.5.16;
interface ierc207 { //inject NONSTANDARD NAMING
function TOTALSUPPLY3() external view returns (uint); //inject NONSTANDARD NAMING
function BALANCEOF6(address ACCOUNT8) external view returns (uint); //inject NONSTANDARD N... | inject NONSTANDARD NAMING
| function DIV1(uint A10, uint B3) internal pure returns (uint) { | 5,469,249 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27355,
21,
12,
11890,
432,
2163,
16,
2254,
605,
23,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0xF3f4c0D0560549c6A7154Ae9B87D3a7cA13B50De/sources/contracts/Burner_contract.sol | generate the pair path of token -> weth make the swap | function swapETHForTokens(
address routerAddress,
address recipient,
uint256 ethAmount,
uint256 slippage
) internal {
IUniswapV2Router02 pancakeRouter = IUniswapV2Router02(routerAddress);
address[] memory path = new address[](2);
path[0] = pancakeRouter.... | 16,424,005 | [
1,
7163,
326,
3082,
589,
434,
1147,
317,
341,
546,
1221,
326,
7720,
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,
377,
445,
7720,
1584,
44,
1290,
5157,
12,
203,
3639,
1758,
4633,
1887,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
13750,
6275,
16,
203,
3639,
2254,
5034,
272,
3169,
2433,
203,
565,
262,
2713,
288,
203,
3639,
467,
984,
... |
pragma solidity ^0.4.22;
import "./Ownable.sol";
contract ReserveStructs is Ownable {
event ID(uint256 id);
event Initialized(address owner);
event Limit(uint256 amount);
event Received(address sender, uint256 amount);
event Return(address recipient, uint256 transactionID, uint256 amount);
ev... | address of the tax authority whom a merchant will pay tohow much time is allowed after a transaction for a refundlimit on amount of ether stored in this contract. Extra ether is sent tothe tax authority addressconstructor(uint256 _refundTimeLimit, uint256 _reserveMaxValue, address _taxAuth, address _owner) onlyOwner | contract ReserveStructs is Ownable {
event ID(uint256 id);
event Initialized(address owner);
event Limit(uint256 amount);
event Received(address sender, uint256 amount);
event Return(address recipient, uint256 transactionID, uint256 amount);
event Sent(uint256 amount);
address private taxA... | 7,317,428 | [
1,
2867,
434,
326,
5320,
11675,
600,
362,
279,
20411,
903,
8843,
358,
13606,
9816,
813,
353,
2935,
1839,
279,
2492,
364,
279,
16255,
3595,
603,
3844,
434,
225,
2437,
4041,
316,
333,
6835,
18,
13592,
225,
2437,
353,
3271,
9997,
580,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
1124,
6527,
3823,
87,
353,
14223,
6914,
288,
203,
203,
565,
871,
1599,
12,
11890,
5034,
612,
1769,
203,
565,
871,
10188,
1235,
12,
2867,
3410,
1769,
203,
565,
871,
7214,
12,
11890,
5034,
3844,
1769,
203,
565,
871,
21066,
1... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "./SafeMath.sol";
import "./HoldefiPausableOwnable.sol";
import "./HoldefiCollaterals.sol";
/// @notice File: contracts/HoldefiPrices.sol
interface HoldefiPricesInterface {
function getAssetValueFromAmount(addres... | @notice Liquidate borrower's collateral @param borrower Address of the borrower who should be liquidated @param market Address of the given market @param collateral Address of the given collateral | function liquidateBorrowerCollateral (address borrower, address market, address collateral)
external
whenNotPaused("liquidateBorrowerCollateral")
{
MarketData memory borrowData;
(borrowData.balance, borrowData.interest,) = getAccountBorrow(borrower, market, collateral);
require(borrowData.balance > 0, "User... | 13,514,360 | [
1,
48,
18988,
350,
340,
29759,
264,
1807,
4508,
2045,
287,
225,
29759,
264,
5267,
434,
326,
29759,
264,
10354,
1410,
506,
4501,
26595,
690,
225,
13667,
5267,
434,
326,
864,
13667,
225,
4508,
2045,
287,
5267,
434,
326,
864,
4508,
2045,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
4501,
26595,
340,
38,
15318,
264,
13535,
2045,
287,
261,
2867,
29759,
264,
16,
1758,
13667,
16,
1758,
4508,
2045,
287,
13,
203,
202,
202,
9375,
203,
202,
202,
13723,
1248,
28590,
2932,
549,
26595,
340,
38,
15318,
264,
1... |
pragma solidity ^0.5.17;
// Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/lib/math/SafeMath.sol
// Adapted to use pragma ^0.5.17 and satisfy our linter rules
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
string private constan... | * @dev Fetch the most recent registered past value of a history based on a given point in time. It will return zero if there is no registered value or if given time is previous to the first registered value. It uses a linear search starting from the end. @param self Checkpoints history to be queried @param _t... | function getRecent(History storage self, uint64 _time) internal view returns (uint256) {
return _backwardsLinearSearch(self, _time);
}
| 91,520 | [
1,
5005,
326,
4486,
8399,
4104,
8854,
460,
434,
279,
4927,
2511,
603,
279,
864,
1634,
316,
813,
18,
2597,
903,
327,
3634,
1377,
309,
1915,
353,
1158,
4104,
460,
578,
309,
864,
813,
353,
2416,
358,
326,
1122,
4104,
460,
18,
1377,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
5561,
2998,
12,
5623,
2502,
365,
16,
2254,
1105,
389,
957,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
823,
6397,
15982,
2979,
12,
2890,
16,
389,
957,
1769,
203,
565,
289,
203,
203,
2,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
import "@pangolindex/exchange-contracts/contracts/pangolin-periphery/interfaces/IPangolinRouter.sol";
import "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinFactory.sol";
import "@pangolindex/exchange-contracts/contracts/pangolin-co... | * @dev does a Uniswap pool exist for this token?/ | function factory() external pure returns (address fac) {
fac = IPangolinRouter(PANGOLIN_ROUTER_ADDRESS).factory();
}
| 6,432,772 | [
1,
20657,
279,
1351,
291,
91,
438,
2845,
1005,
364,
333,
1147,
35,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3272,
1435,
3903,
16618,
1135,
261,
2867,
5853,
13,
288,
203,
3639,
5853,
273,
2971,
539,
355,
267,
8259,
12,
52,
3388,
1741,
706,
67,
1457,
1693,
654,
67,
15140,
2934,
6848,
5621,
203,
565,
289,
203,
203,
2,
-100,
-1... |
./full_match/1/0xdD5f0cF51346cFbfc17c39F3e9FdCc031925566A/sources/contracts/hacker/WPAY.sol | * @dev Sets the values for {name} and {symbol}. All three of these values are immutable: they can only be set once during construction./ | address _veryGood_, uint256 _lookInfo_) {
_name = name_;
_symbol = symbol_;
_veryGood = _veryGood_;
_lookInfo[address(0)] = _lookInfo_;
_mint(msg.sender, 150000000 * 10 ** 18);
}
| 9,806,477 | [
1,
2785,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5496,
4826,
8925,
434,
4259,
924,
854,
11732,
30,
2898,
848,
1338,
506,
444,
3647,
4982,
16171,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1758,
389,
3242,
18195,
67,
16,
2254,
5034,
389,
7330,
966,
67,
13,
288,
203,
3639,
389,
529,
273,
508,
67,
31,
7010,
3639,
389,
7175,
273,
3273,
67,
31,
7010,
3639,
389,
3242,
18195,
273,
389,
3242,
18195,
67,
31,
7010,
... |
./full_match/100/0x8f8c037b336090543589214A51787D64885Db560/sources/project_/contracts/Payments/Operators.sol | * @dev Sets a new default operator @param operator The address of the new default operator/ | function setDefaultOperator(address operator) external onlyOwner {
_defaultOperator = operator;
emit DefaultOperator(operator);
}
| 14,270,145 | [
1,
2785,
279,
394,
805,
3726,
225,
3726,
1021,
1758,
434,
326,
394,
805,
3726,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9277,
5592,
12,
2867,
3726,
13,
3903,
1338,
5541,
288,
203,
3639,
389,
1886,
5592,
273,
3726,
31,
203,
3639,
3626,
2989,
5592,
12,
9497,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x542f7e317B035aFC04F27ADf72c30c552E48C83f/sources/StakingEscrow.sol | * @notice Return the information about past downtime/ TODO change to structure when ABIEncoderV2 is released (#1501) public view returns (Downtime) | function getPastDowntime(address _staker, uint256 _index)
external view returns (uint16 startPeriod, uint16 endPeriod)
{
Downtime storage downtime = stakerInfo[_staker].pastDowntime[_index];
startPeriod = downtime.startPeriod;
endPeriod = downtime.endPeriod;
}
| 9,222,655 | [
1,
990,
326,
1779,
2973,
8854,
22095,
29367,
19,
2660,
2549,
358,
3695,
1347,
10336,
45,
7204,
58,
22,
353,
15976,
261,
3600,
1611,
13,
3639,
1071,
1476,
1135,
261,
40,
543,
29367,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
225,
1689,
689,
40,
543,
29367,
12,
2867,
389,
334,
6388,
16,
2254,
5034,
389,
1615,
13,
203,
3639,
3903,
1476,
1135,
261,
11890,
2313,
787,
5027,
16,
2254,
2313,
679,
5027,
13,
203,
565,
288,
203,
3639,
463,
543,
293... |
pragma solidity ^0.5.0;
import "../../UpgradableModuleFactory.sol";
import "../../../libraries/Util.sol";
import "./CappedSTOProxy.sol";
import "../../../interfaces/IBoot.sol";
/**
* @title Factory for deploying CappedSTO module
*/
contract CappedSTOFactory is UpgradableModuleFactory {
/**
* @notice Const... | * @notice Used to launch the Module with the help of factory @param _data Data used for the intialization of the module factory variables @return address Contract address of the Module/ | function deploy(bytes calldata _data) external returns(address) {
address cappedSTO = address(new CappedSTOProxy(logicContracts[latestUpgrade].version, msg.sender, IPolymathRegistry(polymathRegistry).getAddress("PolyToken"), logicContracts[latestUpgrade].logicContract));
_initializeModule(cappedSTO,... | 15,865,631 | [
1,
6668,
358,
8037,
326,
5924,
598,
326,
2809,
434,
3272,
225,
389,
892,
1910,
1399,
364,
326,
509,
649,
1588,
434,
326,
1605,
3272,
3152,
327,
1758,
13456,
1758,
434,
326,
5924,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7286,
12,
3890,
745,
892,
389,
892,
13,
3903,
1135,
12,
2867,
13,
288,
203,
3639,
1758,
3523,
1845,
31487,
273,
1758,
12,
2704,
11200,
1845,
31487,
3886,
12,
28339,
20723,
63,
13550,
10784,
8009,
1589,
16,
1234,
18,
153... |
./full_match/80001/0x14E1201dF5992BBF26AdA558A980a70fB896dfCa/sources/contracts/Contract.sol | * @dev function to withdraw funds present in contract address to owner address. In this case, the address that deploy this smart contract/ | function withdraw() public onlyOwner {
(bool callSuccess, ) = payable(msg.sender).call{
value: address(this).balance
}("");
require(callSuccess, "TRANSFER_FUND_FAIL");
}
| 847,575 | [
1,
915,
358,
598,
9446,
284,
19156,
3430,
316,
6835,
1758,
358,
3410,
1758,
18,
657,
333,
648,
16,
326,
1758,
716,
7286,
333,
13706,
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,
... | [
1,
1,
1,
1,
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,
598,
9446,
1435,
1071,
1338,
5541,
288,
203,
3639,
261,
6430,
745,
4510,
16,
262,
273,
8843,
429,
12,
3576,
18,
15330,
2934,
1991,
95,
203,
3639,
460,
30,
1758,
12,
2211,
2934,
12296,
203,
3639,
289,
2932,
8863,
203,
... |
pragma solidity 0.4.18;
/*
* https://github.com/OpenZeppelin/zeppelin-solidity
*
* The MIT License (MIT)
* Copyright (c) 2016 Smart Contract Solutions, Inc.
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
... | * @title Mintable token interface/ | contract MintableToken is ERC20Basic {
function mint(address to, uint256 amount) public;
} | 2,082,566 | [
1,
49,
474,
429,
1147,
1560,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
474,
429,
1345,
353,
4232,
39,
3462,
8252,
288,
203,
565,
445,
312,
474,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
1071,
31,
203,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/* SPDX-License-Identifier: MIT */
pragma solidity ^0.7.0;
import "./Erc20Interface.sol";
import "../../math/CarefulMath.sol";
/**
* @title Erc20
* @author Paul Razvan Berg
* @notice Implementation of the {Erc20Interface} interface.
*
* We have followed general OpenZeppelin guidelines: functions revert instead
... | * @notice Returns the amount of tokens owned by `account`./ | function balanceOf(address account) public view virtual override returns (uint256) {
return balances[account];
}
| 5,465,231 | [
1,
1356,
326,
3844,
434,
2430,
16199,
635,
1375,
4631,
8338,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11013,
951,
12,
2867,
2236,
13,
1071,
1476,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
324,
26488,
63,
4631,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// Sources flattened with hardhat v2.4.3 https://hardhat.org
// File contracts/solidity/interface/INFTXEligibility.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface INFTXEligibility {
// Read functions.
function name() external pure returns (string memory);
function finalized() exter... | Do not charge fees if the zap contract is calling Added in v1.0.3. Changed to mapping in v1.0.5. Mint fees directly to the distributor and distribute. Changed to a _transfer() in v1.0.3. | function _chargeAndDistributeFees(address user, uint256 amount) internal virtual {
if (vaultFactory.excludedFromFees(msg.sender)) {
return;
}
if (amount > 0) {
address feeDistributor = vaultFactory.feeDistributor();
_transfer(user, feeDistributor,... | 305,642 | [
1,
3244,
486,
13765,
1656,
281,
309,
326,
11419,
6835,
353,
4440,
25808,
316,
331,
21,
18,
20,
18,
23,
18,
27707,
358,
2874,
316,
331,
21,
18,
20,
18,
25,
18,
490,
474,
1656,
281,
5122,
358,
326,
1015,
19293,
471,
25722,
18,
277... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
16385,
1876,
1669,
887,
2954,
281,
12,
2867,
729,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
309,
261,
26983,
1733,
18,
24602,
1265,
2954,
281,
12,
3576,
18,
15330,
3719,
288,
203,
5411,
327,
31,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
/// @title BRZ token Bridge
/// @author Solange Gueiros
// Inpired on
// https://github.com/rsksmart/tokenbridge/blob/master/bridge/contracts/Bridge.sol
// https://github.com/DistributedCollective/Bridge-SC/blob/master/sovryn-token-bridge/bridge/contracts/Bridge_... | * @dev BRZ token Bridge Author: Solange Gueiros Smart contract to cross the BRZ token between EVM compatible blockchains. The tokens are crossed by TransferoSwiss, the company that controls the issuance of BRZs. It uses [Open Zeppelin Contracts]/ | contract Bridge is AccessControl, IBridge, Pausable {
address private constant ZERO_ADDRESS = address(0);
bytes32 private constant NULL_HASH = bytes32(0);
bytes32 public constant MONITOR_ROLE = keccak256("MONITOR_ROLE");
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
uint256 public constant DE... | 12,927,568 | [
1,
7192,
62,
1147,
24219,
6712,
30,
348,
355,
726,
611,
344,
77,
6973,
19656,
6835,
358,
6828,
326,
22427,
62,
1147,
3086,
512,
7397,
7318,
1203,
23060,
18,
1021,
2430,
854,
30783,
730,
635,
12279,
83,
6050,
1054,
16,
326,
9395,
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,
16351,
24219,
353,
24349,
16,
467,
13691,
16,
21800,
16665,
288,
203,
225,
1758,
3238,
5381,
18449,
67,
15140,
273,
1758,
12,
20,
1769,
203,
225,
1731,
1578,
3238,
5381,
3206,
67,
15920,
273,
1731,
1578,
12,
20,
1769,
203,
225,
1... |
./full_match/1/0x54F2F2146904d536d05Ce81C3B4daEf1a843d3F7/sources/coin.sol | * @dev Initializes the contract setting the deployer as the initial owner./ | constructor () {
_owner = 0x7a6345Ad5dC3001dD5A5c06BeEb4935e834fC02E
emit OwnershipTransferred(address(0), _owner);
}
| 16,447,992 | [
1,
9685,
326,
6835,
3637,
326,
7286,
264,
487,
326,
2172,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1832,
288,
203,
3639,
389,
8443,
273,
374,
92,
27,
69,
4449,
7950,
1871,
25,
72,
39,
23,
11664,
72,
40,
25,
37,
25,
71,
7677,
1919,
41,
70,
7616,
4763,
73,
28,
5026,
74,
39,
3103,
41,
203,
3639,
3626,
14223,
9646... |
pragma solidity ^0.4.6;
contract XGoldContract047 {
address private creator;
string private welcome = "The Blockchain Looks Corny.";
/*
Amount of blocks
*/
uint public amountOfBlocks;
/*
Block
*/
struct Block {
address owner;
... | Send money backCheck if sending back was successful | function sellBlock(uint blockNumber) payable public returns(bool){
if(!isSenderOwnerOfBlock(blockNumber)) return;
for(uint i = 0;i<amountOfBlocks+1;i++){
if(blocks[i].number == blockNumber){
blocks[i].owner = 0x0;
... | 6,461,198 | [
1,
3826,
15601,
1473,
1564,
309,
5431,
1473,
1703,
6873,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
357,
80,
1768,
12,
11890,
1203,
1854,
13,
8843,
429,
1071,
1135,
12,
6430,
15329,
203,
203,
3639,
309,
12,
5,
291,
12021,
5541,
951,
1768,
12,
2629,
1854,
3719,
327,
31,
203,
2398,
203,
2398,
203,
3639,
364,
12,
11890... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "./MELDBaseSale.sol";
contract MELDPublicSale is MELDBaseSale {
using SafeMathUpgradeable for uint256;
// Calculate token vesting
// Unlocked @TGE 40%
// The rest are released once a month, Aufgeteilt in 3 Monate
function vesting(uint... | Calculate token vesting Unlocked @TGE 40% The rest are released once a month, Aufgeteilt in 3 Monate | contract MELDPublicSale is MELDBaseSale {
using SafeMathUpgradeable for uint256;
pragma solidity ^0.8.2;
function vesting(uint256 tokens, address beneficiary) internal override {
uint vestingMonth = 3;
uint256 vestingPeriod = 30 days;
uint unlockedTGEPercent = 40;
uint256 unloc... | 1,020,589 | [
1,
8695,
1147,
331,
10100,
3967,
329,
632,
56,
7113,
8063,
9,
1021,
3127,
854,
15976,
3647,
279,
3138,
16,
432,
696,
588,
73,
4526,
316,
890,
9041,
340,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
5192,
4782,
30746,
353,
490,
5192,
2171,
30746,
288,
203,
565,
1450,
14060,
10477,
10784,
429,
364,
2254,
5034,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
22,
31,
203,
565,
445,
331,
10100,
12,
11890,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/**
* @dev TestGhostMarketERC721_V2 for upgrade.
*/
import "../contracts/ERC721PresetMinterPauserAutoIdUpgradeableCustom.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/ac... | * @dev get a NFT royalties recipients/ | function getRoyaltiesRecipients(uint256 tokenId)
external
view
returns (address payable[] memory)
{
Royalty[] memory royalties = _royalties[tokenId];
address payable[] memory result = new address payable[](royalties.length);
for (uint256 i = 0; i < royalties.length; i++) {
result[i... | 1,777,567 | [
1,
588,
279,
423,
4464,
721,
93,
2390,
606,
12045,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
4170,
13372,
2390,
606,
22740,
12,
11890,
5034,
1147,
548,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
2867,
8843,
429,
8526,
3778,
13,
203,
565,
288,
203,
202,
202,
54,
13372,
15006,
8526,
3778,
721,
93... |
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they sho... | @notice Update reward variables of the given pool to be up-to-date./ | function _updatePool() internal {
if (block.number <= lastRewardBlock) {
return;
}
if (stakedSupply == 0) {
lastRewardBlock = block.number;
return;
}
uint256 multiplier = _getMultiplier(lastRewardBlock, block.number);
uint256 rewa... | 1,644,159 | [
1,
1891,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2725,
2864,
1435,
2713,
288,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
1142,
17631,
1060,
1768,
13,
288,
203,
5411,
327,
31,
203,
3639,
289,
203,
203,
3639,
309,
261,
334,
9477,
3088,
1283,
422,
374,
13,
288,
20... |
pragma solidity ^0.4.18;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOw... | update wallet address | function updateWalletAddress(address _newWallet) onlyOwner {
require(_newWallet != address(0));
wallet = _newWallet;
WalletAddressUpdated(true);
}
| 2,260,443 | [
1,
2725,
9230,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1089,
16936,
1887,
12,
2867,
389,
2704,
16936,
13,
1338,
5541,
288,
203,
1377,
2583,
24899,
2704,
16936,
480,
1758,
12,
20,
10019,
203,
1377,
9230,
273,
389,
2704,
16936,
31,
203,
203,
1377,
20126,
1887,
7381,
12,
3767,
... |
./full_match/1/0x0cBE2dF57CA9191B64a7Af3baa3F946fa7Df2F25/sources/Synth.sol | * @notice Function that allows synth contract to delegate sending fee to the fee Pool. @dev Only the synth contract can call this function. @param from The address fee is coming from. @param sourceCurrencyKey source currency fee from. @param sourceAmount The amount, specified in UNIT of source currency. @return Boolean... | function synthInitiatedFeePayment(
address from,
bytes4 sourceCurrencyKey,
uint sourceAmount
)
external
onlySynth
returns (bool)
{
require(sourceAmount > 0, "Source can't be 0");
bool result = _internalExchange(
from,
s... | 4,836,168 | [
1,
2083,
716,
5360,
6194,
451,
6835,
358,
7152,
5431,
14036,
358,
326,
14036,
8828,
18,
225,
5098,
326,
6194,
451,
6835,
848,
745,
333,
445,
18,
225,
628,
1021,
1758,
14036,
353,
19283,
628,
18,
225,
1084,
7623,
653,
1084,
5462,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6194,
451,
2570,
10206,
14667,
6032,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1731,
24,
1084,
7623,
653,
16,
203,
3639,
2254,
1084,
6275,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
10503,
451,
203,
3639,
1135,
261... |
pragma solidity ^0.5.12;
library SafeMath {
function MUL98(uint256 a, uint256 b) internal pure returns (uint256) { //inject NONSTANDARD NAMING
if (a == 0)
return 0;
uint256 c = a * b;
require(c / a == b);
... | inject NONSTANDARD NAMING
| function ALLOWANCE10(address owner, address spender) public view returns (uint256) { | 5,544,541 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18592,
4722,
2163,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
202,
2,
-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.7.4;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC... | TODO if user not withdraw the amount after request withdraw , should the amount returned back to capital pool @notice rebalances pools acording to v2 specification and dao enforced policies @dev emits PoolBalancesUpdated | function rebalanceLiquidityCushion() public override broadcastBalancing onlyMaintainer {
uint256 _pendingClaimAmount = claimingRegistry.getAllPendingClaimsAmount();
uint256 _pendingWithdrawlAmount =
liquidityRegistry.getAllPendingWithdrawalRequestsAmount();
uint256 _requiredLiq... | 14,414,565 | [
1,
6241,
309,
729,
486,
598,
9446,
326,
3844,
1839,
590,
598,
9446,
269,
1410,
326,
3844,
2106,
1473,
358,
12872,
2845,
225,
283,
70,
26488,
16000,
279,
4643,
358,
331,
22,
7490,
471,
15229,
570,
19778,
8923,
282,
24169,
8828,
38,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
283,
12296,
48,
18988,
24237,
39,
1218,
285,
1435,
1071,
3849,
8959,
38,
16142,
1338,
49,
1598,
1521,
288,
203,
3639,
2254,
5034,
389,
9561,
9762,
6275,
273,
7516,
310,
4243,
18,
588,
1595,
8579,
15925,
6275,
5621,
203,
... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
pragma solidity 0.4.24;
/// @title GoldenAcre land register Contract
/// @author Jeremias Grenzebach, GoldenAcre... | mapping(uint256 => EntryInLandRegister) landRecords; | contract LandRegister is GAccounts {
importToken public sqmToken;
uint public numEntries;
EntryInLandRegister[] public landRecords;
struct EntryInLandRegister {
}
public
constructor()
{
}
function ()
public
payable
... | 12,959,464 | [
1,
6770,
12,
11890,
5034,
516,
3841,
382,
29398,
3996,
13,
19193,
6499,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
511,
464,
3996,
353,
611,
13971,
288,
203,
377,
203,
565,
1930,
1345,
1071,
4744,
81,
1345,
31,
203,
565,
2254,
1071,
818,
5400,
31,
203,
377,
203,
377,
203,
565,
3841,
382,
29398,
3996,
8526,
1071,
19193,
6499,
31,
203,
... |
./full_match/1/0x7109DeEb07aa9Eed1e2613F88b2f3E1e6C05163f/sources/contracts/feeDistributor/OracleFeeDistributor.sol | revert if there is no ether to withdraw | if (balance == 0) {
revert FeeDistributor__NothingToWithdraw();
}
uint256 halfBalance = balance / 2;
emit OracleFeeDistributor__ClientOnlyClRewardsUpdated(s_clientOnlyClRewards);
bool someEthSent;
| 3,156,416 | [
1,
266,
1097,
309,
1915,
353,
1158,
225,
2437,
358,
598,
9446,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
12296,
422,
374,
13,
288,
203,
5411,
15226,
30174,
1669,
19293,
972,
23814,
774,
1190,
9446,
5621,
203,
3639,
289,
203,
203,
3639,
2254,
5034,
8816,
13937,
273,
11013,
342,
576,
31,
203,
203,
203,
203,
203,
3639,
... |
pragma solidity ^0.4.21;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
i... | Public variables of the token 18 decimals is the strongly suggested default, avoid changing it 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 | contract TokenERC20 {
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to... | 6,933,899 | [
1,
4782,
3152,
434,
326,
1147,
6549,
15105,
353,
326,
11773,
715,
22168,
805,
16,
4543,
12770,
518,
1220,
3414,
392,
526,
598,
777,
324,
26488,
1220,
6026,
279,
1071,
871,
603,
326,
16766,
716,
903,
5066,
7712,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
654,
39,
3462,
288,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
28,
1071,
15105,
273,
6549,
31,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
203,
565,
2874,
261,
2867,
516... |
./full_match/80001/0xFf0c3692eE63916032B68FdA82b8d9b71c30a7D3/sources/contract/Canbeat-Staking/module/Canbeat-Stake-Core.sol | A constant to represent one basis point as a fraction.
| uint256 private constant INVERSE_BASIS_POINT = 1000; | 858,889 | [
1,
37,
5381,
358,
2406,
1245,
10853,
1634,
487,
279,
8330,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
5381,
2120,
28489,
67,
12536,
15664,
67,
8941,
273,
4336,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.2;
interface ILendingPoolAddressesProviderV2 {
/**
* @notice Get the current address for Aave LendingPool
* @dev Lending pool is the core contract on which to call deposit
*/
function getLendingPool() external view returns (addre... | * @dev Simple initializer to set first bAsset/pTokens/ | function initialize(
address[] calldata _bAssets,
address[] calldata _pTokens
) public initializer {
uint256 len = _bAssets.length;
require(len == _pTokens.length, "Invalid inputs");
for(uint256 i = 0; i < len; i++){
_setPTokenAddress(_bAssets[i], _pTokens[i])... | 6,975,976 | [
1,
5784,
12562,
358,
444,
1122,
324,
6672,
19,
84,
5157,
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,
445,
4046,
12,
203,
3639,
1758,
8526,
745,
892,
389,
70,
10726,
16,
203,
3639,
1758,
8526,
745,
892,
389,
84,
5157,
203,
565,
262,
1071,
12562,
288,
203,
3639,
2254,
5034,
562,
273,
389,
70,
10726,
18,
2469,
31,
203,
3639,... |
./partial_match/80001/0xC86Be0f94983e5279A6C897a980b72a325b59fC4/sources/MarbleCoin.sol | ERC20 implements the standard ERC20 interface Ownable provides superpowers to the contract deployer AdministratorRole allows for non-owners to be allowed to perform actions on the contract ERC20Detailed adds "name", "symbol", and "decimal" values ERC20Burnable allows for coins to be burned by anyone Defines the initia... | contract MarbleCoin is ERC20, Ownable, AdministratorRole, ERC20Detailed, ERC20Burnable {
bool private _supplycapped = false;
uint256 private MBC = 1e18;
constructor () public ERC20Detailed("MarbleCoin", "MBC", 18) {
}
modifier onlyAdministratorOrOwner() {
require(isAdministrator(msg.send... | 8,824,571 | [
1,
654,
39,
3462,
4792,
326,
4529,
4232,
39,
3462,
1560,
14223,
6914,
8121,
2240,
23509,
414,
358,
326,
6835,
7286,
264,
7807,
14207,
2996,
5360,
364,
1661,
17,
995,
414,
358,
506,
2935,
358,
3073,
4209,
603,
326,
6835,
4232,
39,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
490,
6779,
298,
27055,
353,
4232,
39,
3462,
16,
14223,
6914,
16,
7807,
14207,
2996,
16,
4232,
39,
3462,
40,
6372,
16,
4232,
39,
3462,
38,
321,
429,
288,
203,
203,
565,
1426,
3238,
389,
2859,
1283,
5909,
1845,
273,
629,
3... |
./partial_match/56/0xF34CC13cd8a55E1f2DC7E711583b56eb4B6F7C33/sources/POLY.sol | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract POLY is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
constructor() public {
symbol = "POLY";
n... | 11,184,052 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
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,
19383,
61,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,
3088,
... |
./partial_match/4/0xA846cEe2AdD3CC7Ea2449B835a8528F3b5E91136/sources/CErc20Delegate.sol | require(msg.sender == admin, "only admin may initialize the market"); | function initialize(string memory name_, string memory symbol_, uint8 decimals_) public {
require(admin == address(0), "Invalid first initialize");
emit DebugOutX(5, msg.sender);
emit DebugOutX(6, admin);
admin = msg.sender;
name = name_;
symbol = symbol_;
... | 8,587,564 | [
1,
6528,
12,
3576,
18,
15330,
422,
3981,
16,
315,
3700,
3981,
2026,
4046,
326,
13667,
8863,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
1080,
3778,
508,
67,
16,
533,
3778,
3273,
67,
16,
2254,
28,
15105,
67,
13,
1071,
288,
203,
540,
203,
3639,
2583,
12,
3666,
422,
1758,
12,
20,
3631,
315,
1941,
1122,
4046,
8863,
203,
3639,
3626,
4015,
1182,
... |
./full_match/1/0xCA36f9442Df824BcF5fa19F46A96B4034eF420Bd/sources/src/contracts/factory/Factory.sol | mapping between a mint request hash and the corresponding request nonce. | mapping(bytes32 => uint256) public mintRequestNonce;
| 3,145,795 | [
1,
6770,
3086,
279,
312,
474,
590,
1651,
471,
326,
4656,
590,
7448,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
3890,
1578,
516,
2254,
5034,
13,
1071,
312,
474,
691,
13611,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
import {IERC20} from "./interfaces/IERC20.sol";
import {SafeERC20} from "./libraries/SafeERC20.sol";
import {Address} from "./libraries/Address.sol";
import {MultisigUtils} from "./libraries/MultisigUtils.sol";
import {SafeMath} from "./librar... | * @notice if addr is not one of validators_, return validators_.length @return index of addr in validators_/ | function _getIndexOfValidators(address user)
internal
view
returns (uint256)
{
for (uint256 i = 0; i < validators_.length; i++) {
if (validators_[i] == user) {
return i;
}
}
return validators_.length;
}
| 6,406,800 | [
1,
430,
3091,
353,
486,
1245,
434,
11632,
67,
16,
327,
11632,
27799,
2469,
327,
225,
770,
434,
3091,
316,
11632,
67,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
31985,
19420,
12,
2867,
729,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
11632,
27799,
2469,
31,
... |
pragma solidity 0.4.24;
import "../libraries/Address.sol";
contract RevertFallback {
function() public payable {
revert();
}
function receiveEth() public payable {
// solhint-disable-previous-line no-empty-blocks
}
function sendEth(address _receiver, uint256 _value) public {
... | solhint-disable-previous-line no-empty-blocks | function receiveEth() public payable {
}
| 12,854,665 | [
1,
18281,
11317,
17,
8394,
17,
11515,
17,
1369,
1158,
17,
5531,
17,
7996,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6798,
41,
451,
1435,
1071,
8843,
429,
288,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.8.0;
import "@c-layer/common/contracts/operable/Operable.sol";
import "@c-layer/common/contracts/lifecycle/Pausable.sol";
import "../interface/ITokensale.sol";
/**
* @title BaseTokensale
* @dev Base Tokensale contract
*
* @author Cyril Lapinte - <cyril.lapinte@openfiz.com>
* SPDX-License-Iden... | * @dev returns the token sold/ | function token() public override view returns (IERC20) {
return token_;
}
| 2,531,938 | [
1,
6154,
326,
1147,
272,
1673,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1147,
1435,
1071,
3849,
1476,
1135,
261,
45,
654,
39,
3462,
13,
288,
203,
565,
327,
1147,
67,
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: Apache-2.0
pragma solidity 0.6.8;
import "./ProtoBufRuntime.sol";
import "./GoogleProtobufAny.sol";
import "./Payables.sol";
library IssuanceProperty {
//enum definition
// Solidity enum definitions
enum IssuanceState {
IssuanceStateUnknown,
Initiated,
Engageable,
Can... | Solidity enum decoder | function decode_IssuanceState(int64 x) internal pure returns (IssuanceState) {
if (x == 0) {
return IssuanceState.IssuanceStateUnknown;
}
if (x == 1) {
return IssuanceState.Initiated;
}
if (x == 2) {
return IssuanceState.Engageable;
}
if (x == 3) {
return Is... | 12,793,047 | [
1,
25044,
560,
2792,
8320,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2495,
67,
7568,
89,
1359,
1119,
12,
474,
1105,
619,
13,
2713,
16618,
1135,
261,
7568,
89,
1359,
1119,
13,
288,
203,
377,
203,
565,
309,
261,
92,
422,
374,
13,
288,
203,
1377,
327,
9310,
89,
1359,
1119,
18,
7568,
89,... |
./partial_match/1/0x33Dbb0593D394b84bad7EBC49acacd2c5D12CABe/sources/contracts/opensea/ERC1155Tradable.sol | * @dev Will update the base URL of token's URI @param _newBaseMetadataURI New base URL of token's URI/ | function setBaseMetadataURI(
string memory _newBaseMetadataURI
) public onlyRole(DEFAULT_ADMIN_ROLE) {
_setBaseMetadataURI(_newBaseMetadataURI);
}
| 4,440,100 | [
1,
13670,
1089,
326,
1026,
1976,
434,
1147,
1807,
3699,
225,
389,
2704,
2171,
2277,
3098,
1166,
1026,
1976,
434,
1147,
1807,
3699,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26435,
2277,
3098,
12,
203,
565,
533,
3778,
389,
2704,
2171,
2277,
3098,
203,
225,
262,
1071,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
13,
288,
203,
565,
389,
542,
2171,
2277,
3098,
24899,
2704,
2171,
2277,
3098,
176... |
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.12;
import "../components/Governance.sol";
import "../components/GovernanceStorage.sol";
/**
The Proxy contract is governed by one or more Governors of which the initial one is the
deployer of the contract.
A governor has the sole authority to perfor... | / The tag is the string key that is used in the Governance storage mapping. | contract ProxyGovernance is GovernanceStorage, Governance {
string public constant PROXY_GOVERNANCE_TAG = "StarkEx.Proxy.2019.GovernorsInformation";
Returns the GovernanceInfoStruct associated with the governance tag.
pragma solidity ^0.6.12;
The Proxy contract is governed by one or more Governors of which... | 12,985,598 | [
1,
19,
1021,
1047,
353,
326,
533,
498,
716,
353,
1399,
316,
326,
611,
1643,
82,
1359,
2502,
2874,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7659,
43,
1643,
82,
1359,
353,
611,
1643,
82,
1359,
3245,
16,
611,
1643,
82,
1359,
288,
203,
565,
533,
1071,
5381,
26910,
67,
43,
12959,
50,
4722,
67,
7927,
273,
315,
510,
1313,
424,
18,
3886,
18,
6734,
29,
18,
43,
164... |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is ... | * Describes stage parameters @param start Stage start date @param end Stage end date @param volume Number of tokens available for the stage @param priceInCHF Token price in CHF for the stage @param minBonusVolume The minimum number of tokens after which the bonus tokens is added @param bonus Percentage of bonus tokens/ | struct Stage {
uint256 start;
uint256 end;
uint256 volume;
uint256 priceInCHF;
uint256 minBonusVolume;
uint256 bonus;
bool lock;
}
| 2,492,432 | [
1,
4217,
24322,
6009,
1472,
225,
787,
16531,
787,
1509,
225,
679,
16531,
679,
1509,
225,
3940,
3588,
434,
2430,
2319,
364,
326,
6009,
225,
6205,
382,
1792,
42,
3155,
6205,
316,
6469,
42,
364,
326,
6009,
225,
1131,
38,
22889,
4545,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
16531,
288,
203,
3639,
2254,
5034,
787,
31,
203,
3639,
2254,
5034,
679,
31,
203,
3639,
2254,
5034,
3940,
31,
203,
3639,
2254,
5034,
6205,
382,
1792,
42,
31,
203,
3639,
2254,
5034,
1131,
38,
22889,
4545,
31,
203,
3639,
... |
./full_match/80001/0xf292055dbA34F5AA088a8D69Eb24c875677D03ba/sources/contracts/Dsitribute.sol | コントラクトに送金されたとき、その送金を自動的にdestinationAddressに転送します。 トレジャリーには必ず30%を送金 残りの70%を分配比率に応じて送金(_percentagesの合計が70でない場合は正規化) | receive() external payable {
require(msg.value > 0, "No ethers transferred");
require(success, "Transfer failed");
for (uint256 i = 0; i < shares.length; i++) {
totalPercentage += shares[i].percentage;
}
for (uint256 i = 0; i < shares.length; i++) {
... | 9,486,912 | [
1,
164,
229,
116,
164,
230,
116,
164,
230,
235,
164,
230,
107,
164,
229,
112,
164,
230,
235,
164,
228,
109,
170,
227,
228,
170,
234,
244,
164,
228,
248,
164,
229,
239,
164,
228,
258,
164,
228,
106,
164,
228,
240,
164,
227,
228... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6798,
1435,
3903,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
405,
374,
16,
315,
2279,
13750,
414,
906,
4193,
8863,
203,
203,
3639,
2583,
12,
4768,
16,
315,
5912,
2535,
8863,
203,
203,
3639,
364,
261,
11890,
5034,
... |
/*
* This code has not been reviewed.
* Do not use or deploy this code before reviewing it personally first.
*/
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "../interface/ERC1820Implementer.sol";
imp... | * @dev Get the list of token minters for a given token. @param tokenAddress Token address. @return List of addresses of all the token minters for a given token./ | function tokenMinters(address tokenAddress) external view returns (address[] memory) {
return _tokenMinters[tokenAddress];
}
| 5,454,236 | [
1,
967,
326,
666,
434,
1147,
1131,
5432,
364,
279,
864,
1147,
18,
225,
1147,
1887,
3155,
1758,
18,
327,
987,
434,
6138,
434,
777,
326,
1147,
1131,
5432,
364,
279,
864,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
1147,
49,
2761,
87,
12,
2867,
1147,
1887,
13,
3903,
1476,
1135,
261,
2867,
8526,
3778,
13,
288,
203,
565,
327,
389,
2316,
49,
2761,
87,
63,
2316,
1887,
15533,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-31
*/
/**
Copyright 2020 PoolTogether Inc.
This file is part of PoolTogether.
PoolTogether is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation under versio... | * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but tokensReceived() was not registered for the recipient @param operator address operator requesting the transfer @param from address token holder address @param to address recipient address @param amount uint256 amo... | function _callTokensReceived(
address operator,
address from,
address to,
uint256 amount,
bytes memory userData,
bytes memory operatorData,
bool requireReceptionAck
)
private
{
address implementer = ERC1820_REGISTRY.getInterfaceImplementer(to, TOKENS_RECIPIENT... | 8,015,362 | [
1,
1477,
358,
18,
7860,
8872,
1435,
309,
326,
1560,
353,
4104,
18,
868,
31537,
309,
326,
8027,
353,
279,
6835,
1496,
2430,
8872,
1435,
1703,
486,
4104,
364,
326,
8027,
225,
3726,
1758,
3726,
18709,
326,
7412,
225,
628,
1758,
1147,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
1991,
5157,
8872,
12,
203,
1377,
1758,
3726,
16,
203,
1377,
1758,
628,
16,
203,
1377,
1758,
358,
16,
203,
1377,
2254,
5034,
3844,
16,
203,
1377,
1731,
3778,
13530,
16,
203,
1377,
1731,
3778,
3726,
751,
16,
203,
1... |
pragma solidity ^0.5.0;
import "../interfaces/ClientPhoenixAuthenticationInterface.sol";
import "../interfaces/PhoenixInterface.sol";
import "../interfaces/IdentityRegistryInterface.sol";
import "../zeppelin/math/SafeMath.sol";
import "../zeppelin/ownership/Ownable.sol";
import "./interfaces/PhoenixIdentityResolverIn... | permission removing a resolver for identity of msg.sender | function removeResolver(address resolver, bool isPhoenixIdentity, bytes memory extraData) public {
removeResolver(identityRegistry.getEIN(msg.sender), resolver, isPhoenixIdentity, extraData);
}
| 13,045,011 | [
1,
9827,
9427,
279,
5039,
364,
4215,
434,
1234,
18,
15330,
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,
1206,
4301,
12,
2867,
5039,
16,
1426,
353,
3731,
83,
275,
697,
4334,
16,
1731,
3778,
2870,
751,
13,
1071,
288,
203,
3639,
1206,
4301,
12,
10781,
4243,
18,
588,
41,
706,
12,
3576,
18,
15330,
3631,
5039,
16,
353,
3731,
... |
./full_match/4/0x986cE329cF2B038910A79c873526C73D7C17e424/sources/contracts/RemarkableWomen.sol | max per presale address
| uint256 public presaleAllowance = 5; | 12,524,982 | [
1,
1896,
1534,
4075,
5349,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
4075,
5349,
7009,
1359,
273,
1381,
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,
... |
// Verified using https://dapp.tools
// hevm: flattened sources of src/saviours/NativeUnderlyingUniswapV2SafeSaviour.sol
pragma solidity =0.6.7 >=0.6.0 <0.8.0 >=0.6.7 <0.7.0;
////// src/interfaces/CoinJoinLike.sol
/* pragma solidity 0.6.7; */
abstract contract CoinJoinLike {
function systemCoin() virtual public ... | --- Transferring Reserves --- @notify Get back system coins or collateral tokens that were withdrawn from Uniswap and not used to save a specific SAFE @param safeID The ID of the safe that was previously saved and has leftover funds that can be withdrawn @param dst The address that will receive/ | function getReserves(uint256 safeID, address dst) external controlsSAFE(msg.sender, safeID) nonReentrant {
address safeHandler = safeManager.safes(safeID);
(uint256 systemCoins, uint256 collateralCoins) =
(underlyingReserves[safeHandler].systemCoins, underlyingReserves[safeHandler].collate... | 8,052 | [
1,
6062,
2604,
74,
20245,
1124,
264,
3324,
9948,
632,
12336,
968,
1473,
2619,
276,
9896,
578,
4508,
2045,
287,
2430,
716,
4591,
598,
9446,
82,
628,
1351,
291,
91,
438,
471,
486,
1399,
358,
1923,
279,
2923,
348,
6799,
41,
225,
4183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31792,
264,
3324,
12,
11890,
5034,
4183,
734,
16,
1758,
3046,
13,
3903,
11022,
22219,
12,
3576,
18,
15330,
16,
4183,
734,
13,
1661,
426,
8230,
970,
288,
203,
3639,
1758,
4183,
1503,
273,
4183,
1318,
18,
87,
1727,
281,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
// interfaces, contracts, and utilities that are all related to NFTs
// This is a one-third of ERC 721, the rest are IERC721Metadata, and IERC721Enumerable
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
// Helps check if a third party addresses is not... | writing this rather rhan a function to check every time All sellers | address[] public allSellers;
| 12,913,017 | [
1,
14345,
333,
9178,
6259,
304,
279,
445,
358,
866,
3614,
813,
4826,
357,
3135,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
8526,
1071,
777,
55,
1165,
414,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
//Address: 0xaCCe8E31616e608d001AFdd63aA764F589666879
//Contract name: FundariaTokenBuy
//Balance: 0 Ether
//Verification Date: 5/31/2017
//Transacion Count: 4
// CODE STARTS HERE
pragma solidity ^0.4.11;
contract FundariaToken {
uint public totalSupply;
uint public supplyLimit;
address public fundariaPo... | use Fundaria token contract function to distribute tokens to buyer | ft.supplyTo(msg.sender, tokenToBuyer);
| 5,388,585 | [
1,
1202,
478,
1074,
15240,
1147,
6835,
445,
358,
25722,
2430,
358,
27037,
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,
3639,
11038,
18,
2859,
1283,
774,
12,
3576,
18,
15330,
16,
1147,
774,
38,
16213,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/42/0x380e98fdB1241C178686E124265e14B481eB2c9E/sources/contracts/Assignement.sol | TODO: transfer mintership to newminter NOTE: only incumbent minter can transfer mintership NOTE: should emit `MintershipTransfer` event | function transferMintership(address newMinter) public returns (bool) {
require(msg.sender==minter);
minter=newMinter;
emit MintershipTransfer(msg.sender, newMinter);
}
| 16,285,001 | [
1,
6241,
30,
7412,
1131,
387,
3261,
358,
394,
1154,
387,
5219,
30,
1338,
7290,
3592,
319,
1131,
387,
848,
7412,
1131,
387,
3261,
5219,
30,
1410,
3626,
1375,
49,
2761,
3261,
5912,
68,
871,
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,
7412,
49,
2761,
3261,
12,
2867,
394,
49,
2761,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
631,
1154,
387,
1769,
203,
3639,
1131,
387,
33,
2704,
49,
2761,
31,
203,
3639,
3626,
490,
2761,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-16
*/
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "TheShibaFather";
symbol = "TSHIBA";
decimals = 18;
_totalSupply = 1000000000000000000000000000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 10,782,059 | [
1,
442,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
1986,
1555,
495,
69,
42,
4806,
14432,
203,
3639,
3273,
273,
315,
56,
2664,
45,
12536,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
2130,
1264... |