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.4.8;
import "../ownership/Ownable.sol";
/*
In practice any public Ethereum address is a target to receiving ETH.
Often ETH will find its way to a Contract via send (not via a function call), even though the contract was not meant to receive ETH. For this reason all contracts should have a withdr... | @notice Withdraw all Ether in this contract @return True if successful | function withdrawEther() payable onlyOwner returns (bool) {
return owner.send(this.balance);
}
| 12,805,870 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3423,
9446,
777,
512,
1136,
316,
333,
6835,
632,
2463,
1053,
309,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
41,
1136,
1435,
8843,
429,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
1377,
327,
3410,
18,
4661,
12,
2211,
18,
12296,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0xf6D193aD0B8c92A1d4e8774aAFd59C6293Fd714d/sources/_thirdweb-dev/contracts/base/ERC721Drop.sol | * @notice Returns the metadata URI for an NFT. @dev See `BatchMintMetadata` for handling of metadata in this contract. @param _tokenId The tokenId of an NFT./ | function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
(uint256 batchId, ) = _getBatchId(_tokenId);
string memory batchUri = _getBaseURI(_tokenId);
if (isEncryptedBatch(batchId)) {
return string(abi.encodePacked(batchUri, "0"));
re... | 1,916,611 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
540,
2860,
326,
1982,
3699,
364,
392,
423,
4464,
18,
225,
632,
5206,
5411,
2164,
1375,
4497,
49,
474,
2277,
68,
364,
5057,
434,
1982,
316,
333,
6835,
18,
225,
632,
891,
389,
2316,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
3098,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
261,
11890,
5034,
2581,
548,
16,
262,
273,
389,
588,
4497,
548,
24899,
2316,
548,
1769,
203,
3639,
533,... |
// SPDX-License-Identifier: CC0-1.0
/// @title Simple map generator that spits out procedural dungeons
/*****************************************************
0000000 0000000
0001100 Crypts and Caverns 0001100
0001100 9000 generative on-chain dungeons 000... | Always add 1 because solidity rounds down
| return ((size ** 2) / 256) + 1; | 14,115,168 | [
1,
4625,
348,
7953,
560,
30,
225,
14178,
527,
404,
2724,
18035,
560,
21196,
2588,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
14015,
1467,
2826,
576,
13,
342,
8303,
13,
397,
404,
31,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/42/0x130290F0836e136C0eec3771c53E24F2FB04f959/sources/Comptroller.sol | note that COMP speed could be set to 0 to halt liquidity rewards for a market Add the COMP market | if (currentCompSpeed != 0) {
updateCompSupplyIndex(address(cToken));
updateCompBorrowIndex(address(cToken), borrowIndex);
Market storage market = markets[address(cToken)];
require(market.isListed == true, "comp market is not listed");
if (compSupplySt... | 3,301,682 | [
1,
4625,
348,
7953,
560,
30,
225,
4721,
716,
13846,
8632,
3377,
506,
444,
358,
374,
358,
18389,
4501,
372,
24237,
283,
6397,
364,
279,
13667,
1436,
326,
13846,
13667,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
2972,
2945,
16562,
480,
374,
13,
288,
203,
5411,
1089,
2945,
3088,
1283,
1016,
12,
2867,
12,
71,
1345,
10019,
203,
5411,
1089,
2945,
38,
15318,
1016,
12,
2867,
12,
71,
1345,
3631,
29759,
1016,
1769,
203,
5411,
662... |
./partial_match/1/0x2c8652acBAba3d398952BD291b0baF29ba6f0ae8/sources/TubeChief.sol | the LP token pair address
| address lpTokenAddress; | 2,688,712 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
511,
52,
1147,
3082,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12423,
1345,
1887,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity >=0.4.22 <0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-tra... | * @dev Constructor that gives _msgSender() all of existing tokens./ | constructor () public ERC20Detailed("FarmToken", "FT", 18) {
_mint(_msgSender(), 210000000 * (10 ** uint256(decimals())));
}
| 13,679,558 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11417,
716,
14758,
389,
3576,
12021,
1435,
777,
434,
2062,
2430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1832,
1071,
4232,
39,
3462,
40,
6372,
2932,
42,
4610,
1345,
3113,
315,
4464,
3113,
6549,
13,
288,
203,
3639,
389,
81,
474,
24899,
3576,
12021,
9334,
9035,
17877,
380,
261,
2163,
2826,
2254,
5034,
12,
31734,
1435,
3719,
... |
pragma solidity 0.5.17;
import "./UpgradeableProxy.sol";
/**
* @author Quant Network
* @title TreasuryAbstract
* @dev Sets the main variables of a Treasury contract and allows other contracts to easily interface with a Treasury contract without knowing the whole code.
*/
contract TreasuryBase is UpgradeableProxy... | * @return - the admin of the proxy. Only the admin address can upgrade the smart contract logic/ | function admin() public view returns (address) {
return addressStorage[keccak256('proxy.admin')];
}
| 6,477,583 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
300,
326,
3981,
434,
326,
2889,
18,
5098,
326,
3981,
1758,
848,
8400,
326,
13706,
6835,
4058,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
445,
3981,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
1850,
327,
1758,
3245,
63,
79,
24410,
581,
5034,
2668,
5656,
18,
3666,
6134,
15533,
27699,
1377,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/*
Copyright 2017 Loopring Foundation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | @dev Triggers unsold tokens to be issued to `target` address. | function close() public onlyOwner afterEnd {
if (totalEthReceived < GOAL) {
SaleFailed();
issueUnsoldToken();
SaleSucceeded();
}
}
| 14,615,638 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
840,
8060,
16804,
1673,
2430,
358,
506,
16865,
358,
1375,
3299,
68,
1758,
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,... | [
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,
1746,
1435,
1071,
1338,
5541,
1839,
1638,
288,
203,
3639,
309,
261,
4963,
41,
451,
8872,
411,
12389,
1013,
13,
288,
203,
5411,
348,
5349,
2925,
5621,
203,
5411,
5672,
984,
87,
1673,
1345,
5621,
203,
5411,
348,
5349,
305... |
./partial_match/1/0x494c83dE7da10546Ce84106c544a279154c3CEd6/sources/contracts/Liquidation.sol | @inheritdoc ILiquidation | function setInsignificantLoanThreshold(uint256 newValue_) external onlyRole(TIMELOCK) {
uint256 oldValue = insignificantLoanThreshold;
insignificantLoanThreshold = newValue_;
emit NewInsignificantLoanThreshold(oldValue, newValue_);
}
| 2,849,871 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
48,
18988,
350,
367,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
382,
2977,
11120,
1504,
304,
7614,
12,
11890,
5034,
6129,
67,
13,
3903,
1338,
2996,
12,
4684,
6589,
13,
288,
203,
3639,
2254,
5034,
11144,
273,
2763,
724,
11120,
1504,
304,
7614,
31,
203,
3639,
2763,
724,
11120,
15... |
./partial_match/4/0xc563b42605F2624F547051aFC218B61Bf20B01D1/sources/contracts/utils/math/SafeMath.sol | * @dev Wrappers over Solidity's arithmetic operations. NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler now has built in overflow checking./ | library SafeMath {
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
{
unchecked {
uint256 c =... | 8,706,106 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4266,
10422,
1879,
348,
7953,
560,
1807,
30828,
5295,
18,
5219,
30,
1375,
9890,
10477,
68,
353,
1158,
7144,
3577,
5023,
598,
348,
7953,
560,
374,
18,
28,
18,
1021,
5274,
2037,
711,
6650,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14060,
10477,
288,
203,
565,
445,
775,
986,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
6430,
16,
2254,
5034,
13,
203,
203,
203,
565,
288,
203,
3639,
22893,
288,
... |
/**
*Submitted for verification at Etherscan.io on 2021-09-02
*/
// SPDX-License-Identifier: AGPL V3.0
pragma solidity 0.6.12;
// Part: OpenZeppelin/[email protected]/Initializable
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind... | * @notice Withdraws all tokens collected on a Rewards contract @param _recipient Recepient of token./ | function withdrawToken(address _recipient) external onlyOwner {
require(_recipient != address(0), "Zero address");
uint256 amount = IERC20(token).balanceOf(address(this));
IERC20(token).safeTransfer(_recipient, amount);
}
| 7,883,733 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3423,
9446,
87,
777,
2430,
12230,
603,
279,
534,
359,
14727,
6835,
632,
891,
389,
20367,
9797,
84,
1979,
434,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1345,
12,
2867,
389,
20367,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
20367,
480,
1758,
12,
20,
3631,
315,
7170,
1758,
8863,
203,
3639,
2254,
5034,
3844,
273,
467,
654,
39,
3462,
12,
2316,
2934,
1229... |
./partial_match/80001/0x3715FE0c0E39c2D28dB7f374Fe1F58481da51697/sources/contracts/libraries/AdaptiveFee.sol | safe since alpha1 + alpha2 + baseFee _must_ be <= type(uint16).max
| return uint16(result); | 8,820,016 | [
1,
4625,
348,
7953,
560,
30,
225,
4183,
3241,
4190,
21,
397,
4190,
22,
397,
1026,
14667,
389,
11926,
67,
506,
1648,
618,
12,
11890,
2313,
2934,
1896,
203,
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,
1377,
327,
2254,
2313,
12,
2088,
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,
-100,
... |
./full_match/5/0x6C22c3Bd086DCa9Bbb9d9ABe5B5d77827560bEEB/sources/contracts/escrow/AnonymousNativeDeal.sol | * @dev Fallback function to receive Ether./ | fallback() external payable override onlyOnInit {}
| 1,933,601 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
21725,
445,
358,
6798,
512,
1136,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
5922,
1435,
3903,
8843,
429,
3849,
1338,
1398,
2570,
2618,
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,... |
/**
*Submitted for verification at Etherscan.io on 2021-05-24
*/
// proxy.sol - execute actions atomically through the proxy's identity
// Copyright (C) 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
... | By default, all proxies deployed from the same factory store contracts in the same cache. The cache a proxy instance uses can be changed. The cache uses the sha3 hash of a contract's bytecode to lookup the address | contract DSProxyCache {
mapping(bytes32 => address) cache;
function read(bytes _code) public view returns (address) {
bytes32 hash = keccak256(_code);
return cache[hash];
}
function write(bytes _code) public returns (address target) {
assembly {
target := create(0,... | 2,351,569 | [
1,
4625,
348,
7953,
560,
30,
225,
2525,
805,
16,
777,
13263,
19357,
628,
326,
1967,
3272,
1707,
20092,
316,
326,
1967,
1247,
18,
1021,
1247,
279,
2889,
791,
4692,
848,
506,
3550,
18,
225,
1021,
1247,
4692,
326,
6056,
23,
1651,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8678,
3886,
1649,
288,
203,
565,
2874,
12,
3890,
1578,
516,
1758,
13,
1247,
31,
203,
203,
203,
565,
445,
855,
12,
3890,
389,
710,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
1731,
1578,
1651,
273,
417,
24410,
58... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IU... | @title Archmage Uniswap V3 Batcher @notice Helper functions for managing Uniswap V3 positions | contract UniswapV3Batcher is IUniswapV3Batcher, Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
INonfungiblePositionManager public immutable nftPositionManager;
mapping(address => uint8) private _allowances;
pragma solidity ^0.8.10;
constructor(address nftPositionManager_) {
nftPositi... | 5,416,621 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
16959,
81,
410,
1351,
291,
91,
438,
776,
23,
5982,
264,
632,
20392,
9705,
4186,
364,
30632,
1351,
291,
91,
438,
776,
23,
6865,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1351,
291,
91,
438,
58,
23,
4497,
264,
353,
467,
984,
291,
91,
438,
58,
23,
4497,
264,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565... |
pragma solidity ^0.4.23;
// @title SafeMath
// @dev Math operations with safety checks that throw on error
library SafeMath {
// @dev Multiplies two numbers, throws on overflow.
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not ... | @dev Adds or removes a game from the list of suppressed games. Suppressed games won't show up on the site, but can still be interacted with by users. @param _game - the game to be promoted @param _isSuppressed - true for suppressed, false for not | function setSuppressedGame(uint _game, bool _isSuppressed)
external
onlyOwner
{
uint gameId = gameContract.games(_game);
require(gameId == _game, "gameIds must match");
emit SuppressedGame(_game, _isSuppressed);
}
| 465,560 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
15605,
578,
7157,
279,
7920,
628,
326,
666,
434,
24448,
28422,
18,
282,
3425,
10906,
28422,
8462,
1404,
2405,
731,
603,
326,
2834,
16,
1496,
848,
4859,
506,
16592,
329,
598,
282,
635,
367... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
3088,
10906,
12496,
12,
11890,
389,
13957,
16,
1426,
389,
291,
3088,
10906,
13,
203,
565,
3903,
203,
565,
1338,
5541,
203,
225,
288,
203,
565,
2254,
7920,
548,
273,
7920,
8924,
18,
75,
753,
24899,
13957,
1769,
203,... |
./full_match/1/0x4eA2eFb759591Eec7f916F89547D339A69d171F4/sources/contracts/peripheral/BoosterHelper.sol | * @notice Invoke processIdleRewards for each pool id. @param _pids Array of pool ids/ | function processIdleRewards(uint256[] memory _pids) external {
uint256 len = _pids.length;
require(len > 0, "!pids");
for (uint256 i = 0; i < len; i++) {
IBooster.PoolInfo memory poolInfo = booster.poolInfo(_pids[i]);
IRewardStaking baseRewardPool = IRewardStaking(po... | 3,208,232 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
14373,
1207,
13834,
17631,
14727,
364,
1517,
2845,
612,
18,
632,
891,
389,
84,
2232,
1510,
434,
2845,
3258,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1207,
13834,
17631,
14727,
12,
11890,
5034,
8526,
3778,
389,
84,
2232,
13,
3903,
288,
203,
3639,
2254,
5034,
562,
273,
389,
84,
2232,
18,
2469,
31,
203,
3639,
2583,
12,
1897,
405,
374,
16,
17528,
84,
2232,
8863,
203,
... |
./partial_match/1/0xBA51AAAA95aeEFc1292515b36D86C51dC7877773/sources/src/libraries/LibClone.sol | @notice Minimal proxy library. @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol) @author Minimal proxy by 0age (https://github.com/0age) @author Clones with immutable args by wighawag, zefram.eth, Saw-mon & Natalie (https://github.com/Saw-mon-and-Natalie/clones-with-immutable-args)... | library LibClone {
error DeploymentFailed();
error SaltDoesNotStartWithCaller();
pragma solidity ^0.8.20;
function clone(address implementation) internal returns (address instance) {
assembly {
mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)
mstore(0x14, implementation)
... | 4,363,083 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
5444,
2840,
2889,
5313,
18,
632,
4161,
348,
355,
361,
93,
261,
4528,
2207,
6662,
18,
832,
19,
7737,
1235,
19,
18281,
361,
93,
19,
10721,
19,
5254,
19,
4816,
19,
5471,
19,
5664,
10930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
10560,
10930,
288,
203,
203,
565,
555,
8587,
2925,
5621,
203,
203,
565,
555,
10848,
10154,
1248,
1685,
1190,
11095,
5621,
203,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
3462,
31,
203,
565,
445,
3236,
12,
2867,... |
./partial_match/4/0x09CF409F8eCE21f6124781707439c752C814df59/sources/CORGtoCAFE.sol | --- EIP712 niceties --- Original source: https:etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#code keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); The success fee (expressed in currency) that will be earned by setupFeeRecipient as soon as initGoal is re... | {
using SafeMath for uint;
using Sqrt for uint;
using SafeERC20 for IERC20;
event Buy(
address indexed _from,
address indexed _to,
uint _currencyValue,
uint _fairValue
);
event Sell(
address indexed _from,
address indexed _to,
uint _currencyValue,
uint _fairValue
);
event... | 8,601,565 | [
1,
4625,
348,
7953,
560,
30,
225,
9948,
512,
2579,
27,
2138,
11562,
278,
606,
9948,
19225,
1084,
30,
2333,
30,
546,
414,
4169,
18,
1594,
19,
2867,
19,
20,
92,
26,
70,
4033,
6564,
5608,
73,
6675,
5908,
24,
71,
6334,
2414,
10689,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
95,
203,
225,
1450,
14060,
10477,
364,
2254,
31,
203,
225,
1450,
348,
85,
3797,
364,
2254,
31,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
225,
871,
605,
9835,
12,
203,
565,
1758,
8808,
389,
2080,
... |
pragma solidity ^0.4.21;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address publi... | constructordefine the ICO phases (date/time in GMT+2)2018-07-09 11:00, 2018-09-15 10:59, 10.0 ether 50%2018-09-15 11:00, 2018-09-25 10:59, 0.75 ether 25%2018-09-25 11:00, 2018-10-05 10:59, 0.5 ether 15%2018-10-05 11:00, 2018-10-15 10:59, 0.25 ether 5%2018-10-15 11:00, 2018-11-15 10:59, 0.001 ether 2% | function JcnxxxCrowdsale(uint256 _openingTime, uint256 _closingTime, uint256 _rate, address _wallet, MintableToken _token) public
CappedCrowdsale(HARD_CAP.div(_rate))
FinalizableCrowdsale()
MintedCrowdsale()
TimedCrowdsale(_openingTime, _closingTime)
Crowdsale(_rate, _wallet, _token)
{
ico[uint(IcoPha... | 899,550 | [
1,
4625,
348,
7953,
560,
30,
3885,
11255,
326,
467,
3865,
24642,
261,
712,
19,
957,
316,
21706,
15,
22,
13,
21849,
17,
8642,
17,
5908,
4648,
30,
713,
16,
14863,
17,
5908,
17,
3600,
1728,
30,
6162,
16,
1728,
18,
20,
225,
2437,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
804,
10305,
5279,
14626,
492,
2377,
5349,
12,
11890,
5034,
389,
3190,
310,
950,
16,
2254,
5034,
389,
19506,
950,
16,
2254,
5034,
389,
5141,
16,
1758,
389,
19177,
16,
490,
474,
429,
1345,
389,
2316,
13,
1071,
203,
202,
... |
pragma solidity ^0.4.15;
import "./IEmployeeDirectory.sol";
contract IBonusAllocation is IEmployeeDirectory {
uint bonusFund;
// Splitter
// Allocate based on YearlyIncome vs. base percentage vs. performance
} | Splitter Allocate based on YearlyIncome vs. base percentage vs. performance | contract IBonusAllocation is IEmployeeDirectory {
uint bonusFund;
} | 13,063,720 | [
1,
4625,
348,
7953,
560,
30,
225,
5385,
387,
22222,
2511,
603,
16666,
715,
382,
5624,
6195,
18,
1026,
11622,
6195,
18,
9239,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
23450,
22889,
17353,
353,
10897,
27520,
2853,
288,
203,
203,
565,
2254,
324,
22889,
42,
1074,
31,
203,
203,
203,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.18;
import './StudyLog.sol';
contract StudyData {
/* Codes about Authority and SuperUser */
address public SuperUser;
address public Owner;
address public LogContract;
StudyLog log = StudyLog(LogContract);
struct Manager {
uint ManagerID;
address ManagerAddr;
... | Things about Data Structure */ | struct Course {
uint CourseID;
string CourseName;
uint Credit;
}
| 5,541,649 | [
1,
4625,
348,
7953,
560,
30,
225,
935,
899,
2973,
1910,
13348,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
385,
3117,
288,
203,
3639,
2254,
385,
3117,
734,
31,
203,
3639,
533,
385,
3117,
461,
31,
203,
3639,
2254,
30354,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0xbAeBfB7fD9CbFF9F7b9eDfe209e0aF6A86AA122e/sources/contracts/Token.sol | This is the main building block for smart contracts. Some string type variables to identify the token. The `public` modifier makes a variable readable from outside the contract. 'private' means that the variable cannot be seen form outside, but getter functions have been provided for each to return their value The fix... | contract Token {
string private _name = "Jank";
string private _symbol = "JANK";
uint8 private _decimals = 18;
uint256 private _totalSupply = 1000000;
address private _owner;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowance... | 12,404,797 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
326,
2774,
10504,
1203,
364,
13706,
20092,
18,
10548,
533,
618,
3152,
358,
9786,
326,
1147,
18,
1021,
1375,
482,
68,
9606,
7297,
279,
2190,
7471,
628,
8220,
326,
6835,
18,
296,
1152,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3155,
288,
203,
565,
533,
3238,
389,
529,
273,
315,
46,
2304,
14432,
203,
565,
533,
3238,
389,
7175,
273,
315,
46,
20201,
14432,
203,
565,
2254,
28,
3238,
389,
31734,
273,
6549,
31,
203,
203,
565,
2254,
5034,
3238,
389,
... |
pragma solidity ^0.4.0;
import "5.sol";
contract GiveMeEverything {
DividendDistributor public dd;
uint64 public theif_counter;
constructor() payable {
}
function startAttack(address _addr) public {
dd = DividendDistributor(_addr);
theif_counter+... | tries to steal a limited times to that the attack is successful (does not drain the resources)dd.loggedTransfer.value(1 ether)(1 ether, "Zoro!", address(this), address(this)); | function() public payable {
if (theif_counter < 5) {
theif_counter++;
dd.loggedTransfer(1 ether, "Zoro!", address(this), address(this));
}
}
| 12,694,331 | [
1,
4625,
348,
7953,
560,
30,
225,
9327,
358,
18654,
287,
279,
13594,
4124,
358,
716,
326,
13843,
353,
6873,
261,
20657,
486,
15427,
326,
2703,
13,
449,
18,
19385,
5912,
18,
1132,
12,
21,
225,
2437,
21433,
21,
225,
2437,
16,
315,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1435,
1071,
8843,
429,
288,
203,
540,
203,
540,
203,
3639,
309,
261,
5787,
430,
67,
7476,
411,
1381,
13,
288,
203,
5411,
326,
430,
67,
7476,
9904,
31,
203,
5411,
6957,
18,
19385,
5912,
12,
21,
225,
2437,
16,
315,
62... |
./partial_match/1/0xf1Bf0Cd65B741872bC3fE506b524f1c927965B3c/sources/src/L1/rollup/ScrollChain.sol | @dev Internal function to load batch header from calldata to memory. @param _batchHeader The batch header in calldata. @return memPtr The start memory offset of loaded batch header. @return _batchHash The hash of the loaded batch header. load to memory compute batch hash | function _loadBatchHeader(bytes calldata _batchHeader) internal pure returns (uint256 memPtr, bytes32 _batchHash) {
uint256 _length;
(memPtr, _length) = BatchHeaderV0Codec.loadAndValidate(_batchHeader);
_batchHash = BatchHeaderV0Codec.computeBatchHash(memPtr, _length);
}
| 15,709,022 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3186,
445,
358,
1262,
2581,
1446,
628,
745,
892,
358,
3778,
18,
632,
891,
389,
5303,
1864,
1021,
2581,
1446,
316,
745,
892,
18,
632,
2463,
1663,
5263,
1021,
787,
3778,
1384,
434,
4203,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
4497,
1864,
12,
3890,
745,
892,
389,
5303,
1864,
13,
2713,
16618,
1135,
261,
11890,
5034,
1663,
5263,
16,
1731,
1578,
389,
5303,
2310,
13,
288,
203,
3639,
2254,
5034,
389,
2469,
31,
203,
3639,
261,
3917,
5263,... |
pragma solidity >=0.5.0;
//Adapters
import './interfaces/IBaseUbeswapAdapter.sol';
//Interfaces
import './interfaces/IERC20.sol';
import './interfaces/IPool.sol';
import './interfaces/ISettings.sol';
import './interfaces/IAddressResolver.sol';
import './interfaces/IFeePool.sol';
//Libraries
import './libraries/SafeM... | * @dev Returns the currency address and balance of each position the pool has, as well as the cumulative value @return (address[], uint[], uint) Currency address and balance of each position the pool has, and the cumulative value of positions/ | function getPositionsAndTotal() public view override returns (address[] memory, uint[] memory, uint) {
address baseUbeswapAdapterAddress = ADDRESS_RESOLVER.getContractAddress("BaseUbeswapAdapter");
address[] memory addresses = new address[](_positionKeys.length);
uint[] memory balances = new... | 1,793,627 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
5462,
1758,
471,
11013,
434,
1517,
1754,
326,
2845,
711,
16,
487,
5492,
487,
326,
15582,
460,
632,
2463,
261,
2867,
63,
6487,
2254,
63,
6487,
2254,
13,
13078,
1758,
471,
11013,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
11024,
1876,
5269,
1435,
1071,
1476,
3849,
1135,
261,
2867,
8526,
3778,
16,
2254,
8526,
3778,
16,
2254,
13,
288,
203,
3639,
1758,
1026,
57,
70,
281,
91,
438,
4216,
1887,
273,
11689,
10203,
67,
17978,
2204,
18,
588,... |
./full_match/1/0x94D9326Dc82D36895Bb9ED498e611587CbD07253/sources/contracts/NFTStaking.sol | * @notice Stakes NFT after crediting rewards to all stakers @param tokenIds List of token IDs to stake/ do nothing | function stake(uint256[] calldata tokenIds) external nonReentrant {
_creditRewards();
if (stakeMap[_msgSender()].stakes.length > 0) {
stakersArray.push(_msgSender());
}
uint256 nowTS = block.timestamp;
stakeMap[_msgSender()].totalRewards2Exclude += ((accYieldPerT... | 9,632,449 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
934,
3223,
423,
4464,
1839,
12896,
310,
283,
6397,
358,
777,
384,
581,
414,
632,
891,
1147,
2673,
987,
434,
1147,
7115,
358,
384,
911,
19,
741,
5083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
384,
911,
12,
11890,
5034,
8526,
745,
892,
1147,
2673,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
389,
20688,
17631,
14727,
5621,
203,
3639,
309,
261,
334,
911,
863,
63,
67,
3576,
12021,
1435,
8009,
334,
3223,
18,
... |
./full_match/84531/0x5a9195d9b4B3a09945545F942B41080FDeCe4F7a/sources/contracts/coretime.sol | Send royalty payment to the creator Send the remaining payment to the treasury Refund surplus Transfer governance tokens if available | function extendCoreTime(uint8 _numDays, uint256 _tokenId)
external
payable
nonReentrant
{
require(_exists(_tokenId), "Token does not exist");
require(
msg.sender == tokenInfo[_tokenId].owner,
"Only token owner can extend time"
);
To... | 11,512,755 | [
1,
4625,
348,
7953,
560,
30,
225,
2479,
721,
93,
15006,
5184,
358,
326,
11784,
2479,
326,
4463,
5184,
358,
326,
9787,
345,
22498,
3941,
1074,
5056,
10103,
12279,
314,
1643,
82,
1359,
2430,
309,
2319,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
2133,
4670,
950,
12,
11890,
28,
389,
2107,
9384,
16,
2254,
5034,
389,
2316,
548,
13,
203,
3639,
3903,
203,
3639,
8843,
429,
203,
3639,
1661,
426,
8230,
970,
203,
565,
288,
203,
3639,
2583,
24899,
1808,
24899,
2316,
548,... |
./full_match/43114/0x49A80e8aE4Ec697aE74B7Ed613C191df2f1181D6/sources/contracts/ThorFork.sol | anti sniper anti whale | function _transfer(
address from,
address to,
uint256 amount
) internal override {
address sender = _msgSender();
require(tradingOpen || sender == owner(), "Trading not yet enabled.");
require(from != address(0), "ERC20: transfer from the zero address");
r... | 4,516,211 | [
1,
4625,
348,
7953,
560,
30,
225,
30959,
4556,
77,
457,
30959,
600,
5349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
1758,
5793,
273,
389,
3576,
12021,
5621,
203,
3639,
2583,
12,
313,
14968,
3678,... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.11;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin... | * @notice Allows you to claim the old liquidity provided if conversion is canceled./ | function safeWithdrawn() external nonReentrant {
require(!Completed_LP && Canceled, "Not canceled");
Wallet storage w = Wallets[_msgSender()];
require(w.MaticLpBalance > 0 || w.USDCLpBalance > 0, "Zero balance");
uint256 MaticLpBalance = w.MaticLpBalance;
uint256 USDCLpBalanc... | 12,647,925 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
1846,
358,
7516,
326,
1592,
4501,
372,
24237,
2112,
309,
4105,
353,
17271,
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,
4183,
1190,
9446,
82,
1435,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
5,
9556,
67,
14461,
597,
10347,
329,
16,
315,
1248,
17271,
8863,
203,
3639,
20126,
2502,
341,
273,
678,
454,
2413,
63,
67,
3576,
12021,
... |
./partial_match/3/0xF1E8D9cb013Bd8D93eD562fCD5953A641cFA4f2F/sources/Koraktion.sol | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract Koraktion 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 = "KOR";
... | 5,225,248 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
1475,
280,
581,
24252,
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,
... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns... | * @dev Internal function that burns an amount of the token of a given account. @param account The account whose tokens will be burnt. @param value The amount that will be burnt./ | function _burn(address account, uint256 value) internal {
require(account != 0);
require(value <= _balances[account]);
_totalSupply = _totalSupply.sub(value);
_balances[account] = _balances[account].sub(value);
emit Transfer(account, address(0), value);
}
| 180,907 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
716,
18305,
87,
392,
3844,
434,
326,
1147,
434,
279,
864,
2236,
18,
632,
891,
2236,
1021,
2236,
8272,
2430,
903,
506,
18305,
88,
18,
632,
891,
460,
1021,
3844,
716,
903,
506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
460,
13,
2713,
288,
203,
565,
2583,
12,
4631,
480,
374,
1769,
203,
565,
2583,
12,
1132,
1648,
389,
70,
26488,
63,
4631,
19226,
203,
203,
565,
389,
4963,
3088,
1283,
273,
... |
pragma solidity ^0.5.0;
contract Delivery {
/* Owner of the contract */
address owner;
/* Circuit breaker toggle */
bool private stopped = false;
/* Name of the farm (used for the verification of the provenance)
Note: In a future version, this ought to be replaced by a the public key of an RFID tag
... | no new basket can be sold | function withdraw() onlyInEmergency public returns(bool) {
return stopped;
}
| 994,549 | [
1,
4625,
348,
7953,
560,
30,
225,
1158,
394,
12886,
848,
506,
272,
1673,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
1435,
1338,
382,
1514,
24530,
1071,
1135,
12,
6430,
13,
288,
203,
377,
203,
565,
327,
9627,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x97B71728DeD841E6aE6B7B11a961F8D5d34F0349/sources/browser/test_test.sol | here should instantiate tested contract | function beforeAll() public {
Assert.equal(uint(4), uint(3), "error in before all function");
}
| 14,257,445 | [
1,
4625,
348,
7953,
560,
30,
225,
2674,
1410,
10275,
18432,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
445,
1865,
1595,
1435,
1071,
288,
203,
3639,
5452,
18,
9729,
12,
11890,
12,
24,
3631,
2254,
12,
23,
3631,
315,
1636,
316,
1865,
777,
445,
8863,
203,
1377,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.0;
import 'ReentrancyGuard.sol';
/**
* @title Hashed time-locked contract.
*/
contract HTLC is ReentrancyGuard {
enum State {
INITIATED,
COMPLETED,
EXPIRED,
RECLAIMED
}
// Participants in the exchange
address sender;
address recipient;
/... | * The hash function for producing the image from the preimage. Right now this is using SHA256 but it should be updated to use SHA256d. @param _preimage - The value to hash @return The hashed image/ | function hash (bytes32 _preimage) internal returns (bytes32 _image) {
return sha256(_preimage);
}
| 6,365,283 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
1021,
1651,
445,
364,
4810,
2822,
326,
1316,
628,
326,
675,
2730,
18,
13009,
2037,
225,
333,
353,
1450,
9777,
5034,
1496,
518,
1410,
506,
3526,
358,
999,
9777,
5034,
72,
18,
225,
632,
891,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1651,
261,
3890,
1578,
389,
1484,
2730,
13,
2713,
1135,
261,
3890,
1578,
389,
2730,
13,
288,
203,
3639,
327,
6056,
5034,
24899,
1484,
2730,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0x54f687677d88ED99f8Fbc54901B469EDc5f065BA/sources/contracts/estimate/TargetEstimateGateway.sol | * @dev Modifier to check if the caller is the estimator account/ | modifier onlyEstimator() {
if (msg.sender != ESTIMATOR_ADDRESS) {
revert OnlyEstimatorError();
}
_;
}
GatewayBase _configGateway,
address _owner,
address[] memory _managers,
bool _addOwnerToManagers
| 17,176,753 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12832,
358,
866,
309,
326,
4894,
353,
326,
14470,
2236,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
31080,
1435,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
512,
882,
3445,
3575,
67,
15140,
13,
288,
203,
5411,
15226,
5098,
31080,
668,
5621,
203,
3639,
289,
203,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.1;
pragma experimental ABIEncoderV2;
/**
* @title The Primitive House -> Manages collateral, leverages liquidity.
* @author Primitive
*/
// Open Zeppelin
import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import {IERC20} from "@openz... | * @dev The current nonce that will be set when a new account is initialized./ | uint256 private _accountNonce;
| 6,417,565 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
783,
7448,
716,
903,
506,
444,
1347,
279,
394,
2236,
353,
6454,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4631,
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,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xE29A865298180140c5957b1D6AE7620a94e797f7/sources/CitizensOfHumania.sol | * Update maximum number of tokens for sale. @param maxSale The maximum number of tokens available for sale./ | function setMaxSale(uint256 maxSale) external onlyOwner {
uint256 maxSalePlusOne_ = maxSale + 1;
require(maxSalePlusOne_ < maxSalePlusOne, "Humanians: Can only reduce supply");
maxSalePlusOne = maxSalePlusOne_;
}
| 15,534,095 | [
1,
4625,
348,
7953,
560,
30,
380,
2315,
4207,
1300,
434,
2430,
364,
272,
5349,
18,
632,
891,
943,
30746,
1021,
4207,
1300,
434,
2430,
2319,
364,
272,
5349,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10851,
30746,
12,
11890,
5034,
943,
30746,
13,
3903,
1338,
5541,
288,
203,
3639,
2254,
5034,
943,
30746,
13207,
3335,
67,
273,
943,
30746,
397,
404,
31,
203,
3639,
2583,
12,
1896,
30746,
13207,
3335,
67,
411,
943,
30746,
... |
./partial_match/1/0x3C09431f869ae10d6cF4Fb91e87a37D757a41571/sources/UtilityETH.sol | * @notice set wbusd @param _wbusd Wbusd address/ | function setWBUSD(IERC20 _wbusd) external onlyOwner {
wbusd = _wbusd;
}
| 9,368,365 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
444,
341,
9274,
72,
632,
891,
389,
91,
9274,
72,
678,
9274,
72,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
59,
3000,
9903,
12,
45,
654,
39,
3462,
389,
91,
9274,
72,
13,
3903,
1338,
5541,
288,
203,
3639,
341,
9274,
72,
273,
389,
91,
9274,
72,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;
import "Ownable.sol";
import "Address.sol";
import "JackpotNFT.sol";
contract Jackpot is Ownable {
using Address for address payable;
uint256 constant public GOLDEN_TICKET_ID_START = 1_000_000;
uint public notBefore;
// tokenId => if with... | when the competition ends - players have 2 weeks to withdraw their funds. the rest will be withdrawn and spent on marketing | function withdrawRest(address payable _to) afterCooldown onlyOwner external {
_to.sendValue(address(this).balance);
}
| 13,748,629 | [
1,
4625,
348,
7953,
560,
30,
225,
1347,
326,
25163,
608,
3930,
300,
18115,
1240,
576,
17314,
358,
598,
9446,
3675,
284,
19156,
18,
326,
3127,
903,
506,
598,
9446,
82,
471,
26515,
603,
13667,
310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
282,
445,
598,
9446,
5188,
12,
2867,
8843,
429,
389,
869,
13,
1839,
39,
1371,
2378,
1338,
5541,
3903,
288,
203,
1377,
389,
869,
18,
4661,
620,
12,
2867,
12,
2211,
2934,
12296,
1769,
203,
282,
289,
203,
203,
2,
-100,
-100,
-100,... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 a, uint256 b) internal pure returns (uint... | RotoHive can't stake in tournament
| require(_staker != roto && _staker != owner); | 5,524,792 | [
1,
4625,
348,
7953,
560,
30,
534,
6302,
44,
688,
848,
1404,
384,
911,
316,
358,
30751,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
24899,
334,
6388,
480,
721,
869,
597,
389,
334,
6388,
480,
3410,
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,
-1... |
./full_match/5/0x81c7a9d494c74F113cCa32d174925352bD3875f1/sources/_connext/nxtp-contracts/contracts/nomad-core/contracts/NomadBase.sol | * @notice Checks that signature was signed by Updater @param _oldRoot Old merkle root @param _newRoot New merkle root @param _signature Signature on `_oldRoot` and `_newRoot` @return TRUE iff signature is valid signed by updater/ | function _isUpdaterSignature(
bytes32 _oldRoot,
bytes32 _newRoot,
bytes memory _signature
) internal view returns (bool) {
bytes32 _digest = keccak256(abi.encodePacked(homeDomainHash(), _oldRoot, _newRoot));
_digest = ECDSA.toEthSignedMessageHash(_digest);
return (ECDSA.recover(_digest, _sig... | 1,910,538 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
13074,
716,
3372,
1703,
6726,
635,
27254,
2045,
632,
891,
389,
1673,
2375,
18613,
30235,
1365,
632,
891,
389,
2704,
2375,
1166,
30235,
1365,
632,
891,
389,
8195,
9249,
603,
1375,
67,
1673,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
225,
445,
389,
291,
15305,
5374,
12,
203,
565,
1731,
1578,
389,
1673,
2375,
16,
203,
565,
1731,
1578,
389,
2704,
2375,
16,
203,
565,
1731,
3778,
389,
8195,
203,
225,
262,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
565,
1731,
15... |
./partial_match/4/0x771ab0d54eD3B4FF0Ba80809b88D1F035FA4eae4/sources/SupplySchedule.sol | * @notice Record the mint event from dTrade by incrementing the inflation week counter for the number of weeks minted (probabaly always 1) and store the time of the event. @param supplyMinted the amount of DET the total supply was inflated by. / add number of weeks minted to weekCounter Update mint event to latest week... | function recordMintEvent(uint256 supplyMinted)
external
onlydTrade
returns (bool)
{
uint256 numberOfWeeksIssued = weeksSinceLastIssuance();
weekCounter = weekCounter.add(numberOfWeeksIssued);
lastMintEvent = INFLATION_START_DATE
.add(weekCounter.mul(... | 8,509,780 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
5059,
326,
312,
474,
871,
628,
302,
22583,
635,
5504,
310,
326,
13947,
367,
4860,
3895,
364,
326,
1300,
434,
17314,
312,
474,
329,
261,
7748,
378,
3450,
3712,
404,
13,
471,
1707,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1409,
49,
474,
1133,
12,
11890,
5034,
14467,
49,
474,
329,
13,
203,
3639,
3903,
203,
3639,
1338,
72,
22583,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2254,
5034,
7922,
6630,
87,
7568,
5957,
273,
17314,
... |
pragma solidity ^0.4.15;
interface TokenInterface {
function mint(address _to, uint256 _amount) public returns (bool);
function finishMinting() public returns (bool);
function totalSupply() public constant returns (uint);
function balanceOf(address _address) public constant returns (uint);
function burn(address b... | * @dev Define array and mapping of addresses that will be additional owners @param _owners The addresses that will be defined as additional owners/ | function setAdditionalOwners(address[] _owners) onlyOwner {
SetAdditionalOwners(additionalOwnersList, _owners);
for (uint i = 0; i < additionalOwnersList.length; i++) {
additionalOwners[additionalOwnersList[i]] = false;
}
for (i = 0; i < _owners.length; i++) {
additionalOwners[_owners[i]] = true;
}
... | 12,948,377 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13184,
526,
471,
2874,
434,
6138,
716,
903,
506,
3312,
25937,
632,
891,
389,
995,
414,
1021,
6138,
716,
903,
506,
2553,
487,
3312,
25937,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
444,
10552,
5460,
414,
12,
2867,
8526,
389,
995,
414,
13,
1338,
5541,
288,
203,
202,
202,
694,
10552,
5460,
414,
12,
13996,
5460,
414,
682,
16,
389,
995,
414,
1769,
203,
203,
202,
202,
1884,
261,
11890,
277,
273,
374,... |
pragma solidity ^0.4.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return... | Minimum 300 Ether to get 30% Bonus Tokens
| uint256 public constant PRE_SALE_300_ETH = 300 ether; | 7,217,316 | [
1,
4625,
348,
7953,
560,
30,
225,
23456,
11631,
512,
1136,
358,
336,
5196,
9,
605,
22889,
13899,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
2254,
5034,
1071,
5381,
7071,
67,
5233,
900,
67,
19249,
67,
1584,
44,
565,
273,
11631,
225,
2437,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
.g8"""bgd `7MM"""YMM
.dP' `M MM `7
dM' ` ,pW"Wq. ... | * onChain attributes contract for all Non-Fungible tokens "minted" by the `_proxied` contract/ | function changeAttribProxy(address attribProxy_) external adminsAllowed {
_attribProxy = attribProxy_;
}
| 6,942,182 | [
1,
4625,
348,
7953,
560,
30,
380,
603,
3893,
1677,
6835,
364,
777,
3858,
17,
42,
20651,
1523,
2430,
315,
81,
474,
329,
6,
635,
326,
1375,
67,
20314,
2092,
68,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
12399,
3886,
12,
2867,
5885,
3886,
67,
13,
3903,
31116,
5042,
288,
203,
3639,
389,
14588,
3886,
273,
5885,
3886,
67,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT-open-group
pragma solidity >=0.7.4;
pragma abicoder v2;
import "./StakingLibrary.sol";
import "../../QueueLibrary.sol";
library ParticipantsLibrary {
bytes32 constant STORAGE_LOCATION = keccak256("participants.storage");
event ValidatorCreated(address indexed validator, addr... | TODO Check stake and skip if missing?
| addValidator(validator, validatorMadID); | 12,657,363 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
2073,
384,
911,
471,
2488,
309,
3315,
35,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
527,
5126,
12,
7357,
16,
4213,
49,
361,
734,
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... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
import "https://github.com/qq79324055/openzeppelin-contracts/blob/release-v3.0.0/contracts/token/ERC20/ERC20.sol";
contract HE3 is ERC20 {
// Current supply
uint256 public _currentSupply;
// Manager
address public _owner;
// Burn address
... | Update burn address | function updateBurnAddress(address newBurnAddress) public onlyOwner notAddress0(newBurnAddress) {
_burnAddress = newBurnAddress;
}
| 2,517,682 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
18305,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
38,
321,
1887,
12,
2867,
394,
38,
321,
1887,
13,
1071,
1338,
5541,
486,
1887,
20,
12,
2704,
38,
321,
1887,
13,
288,
203,
3639,
389,
70,
321,
1887,
273,
394,
38,
321,
1887,
31,
203,
565,
289,
203,
203,
2,
-10... |
pragma solidity ^0.4.8;
contract testingToken {
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public weiWantedOf;
mapping (address => uint256) public tokensOfferedOf;
mapping (address => bool) public tradeActive;
address public bank;
uint256 public ethTaxRate = 10;
uint256... | choose a trade to agree to and execute it
| function agreeToTrade(address _from) payable { | 12,734,513 | [
1,
4625,
348,
7953,
560,
30,
9876,
279,
18542,
358,
1737,
992,
358,
471,
1836,
518,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
1737,
992,
774,
22583,
12,
2867,
389,
2080,
13,
8843,
429,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0xe2068ab020144c3221C66156AD010a085FBbE1b1/sources/RevenueHelper.sol | Changes the team's allocation from the revenue split. | function changeTeamAllocation(uint256 _teamAllocation) external onlyOwner {
require(_teamAllocation <= 100, "Cannot be more than 100%.");
teamAllocation = _teamAllocation;
}
| 9,328,168 | [
1,
4625,
348,
7953,
560,
30,
225,
17776,
326,
5927,
1807,
13481,
628,
326,
283,
24612,
1416,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
8689,
17353,
12,
11890,
5034,
389,
10035,
17353,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
10035,
17353,
1648,
2130,
16,
315,
4515,
506,
1898,
2353,
2130,
9,
1199,
1769,
203,
3639,
5927,
17353,
273,
389,
10... |
./full_match/80001/0xCc2a3D6a57824469C3708baB4eb5d62cb1c460dE/sources/contracts/Master/Master.sol | for transfer DAI, USDT, USDC
| EIP2612Permit premiumPermit; | 9,477,210 | [
1,
4625,
348,
7953,
560,
30,
225,
364,
7412,
463,
18194,
16,
11836,
9081,
16,
11836,
5528,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
512,
2579,
5558,
2138,
9123,
305,
23020,
5077,
9123,
305,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
contract A {
function hi() public pure returns (string) {
return "hi A";
}
}
contract B is A {
// A's hi is overridden.
function hi() public pure returns (string) {
return "hi B";
}
}
contract C is A {
// Use super to call hi from... | Super looks at C Super in C looks at A and F Since different (and F is also not A), returns Hi A You can add "is A" to F and this will return Hi F instead. | contract H is F, C{
function hi() public pure returns (string) {
return super.hi();
}
}
| 12,587,463 | [
1,
4625,
348,
7953,
560,
30,
225,
14845,
10192,
622,
385,
14845,
316,
385,
10192,
622,
432,
471,
478,
7897,
3775,
261,
464,
478,
353,
2546,
486,
432,
3631,
1135,
670,
77,
432,
4554,
848,
527,
315,
291,
432,
6,
358,
478,
471,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
670,
353,
478,
16,
385,
95,
203,
565,
445,
10118,
1435,
1071,
16618,
1135,
261,
1080,
13,
288,
203,
3639,
327,
2240,
18,
12266,
5621,
203,
565,
289,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2020-07-28
*/
pragma solidity 0.6.0;
/**
* @title Price contract
* @dev Price check and call
*/
contract Nest_3_OfferPrice{
using SafeMath for uint256;
using address_make_payable for address;
using SafeERC20 for ERC20;
Nest_3_VoteFactory _vot... | * @dev Add price @param ethAmount ETH amount @param tokenAmount Erc20 amount @param endBlock Effective price block @param tokenAddress Erc20 address @param offerOwner Offering address/ Add effective block price information | function addPrice(uint256 ethAmount, uint256 tokenAmount, uint256 endBlock, address tokenAddress, address offerOwner) public onlyOfferMain{
TokenInfo storage tokenInfo = _tokenInfo[tokenAddress];
PriceInfo storage priceInfo = tokenInfo.priceInfoList[endBlock];
priceInfo.offerOwner = offerO... | 12,913,709 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1436,
6205,
632,
891,
13750,
6275,
512,
2455,
3844,
632,
891,
1147,
6275,
512,
1310,
3462,
3844,
632,
891,
679,
1768,
512,
21446,
6205,
1203,
632,
891,
1147,
1887,
512,
1310,
3462,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
5147,
12,
11890,
5034,
13750,
6275,
16,
2254,
5034,
1147,
6275,
16,
2254,
5034,
679,
1768,
16,
1758,
1147,
1887,
16,
1758,
10067,
5541,
13,
1071,
1338,
10513,
6376,
95,
203,
3639,
3155,
966,
2502,
1147,
966,
273,
3... |
./partial_match/42/0xFCBEbE883B891ba55D231BdF5A9Ffb7e63B4354b/sources/MatchingMarket.sol | Make a new offer. Takes funds from the caller into market escrow. | function offer(uint pay_amt, ERC20 pay_gem, uint buy_amt, ERC20 buy_gem)
public
can_offer
synchronized
returns (uint id)
{
require(uint128(pay_amt) == pay_amt);
require(uint128(buy_amt) == buy_amt);
require(pay_amt > 0);
require(pay_gem != ERC20(0x... | 3,319,140 | [
1,
4625,
348,
7953,
560,
30,
225,
4344,
279,
394,
10067,
18,
23004,
284,
19156,
628,
326,
4894,
1368,
13667,
2904,
492,
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... | [
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,
10067,
12,
11890,
8843,
67,
301,
88,
16,
4232,
39,
3462,
8843,
67,
23465,
16,
2254,
30143,
67,
301,
88,
16,
4232,
39,
3462,
30143,
67,
23465,
13,
203,
3639,
1071,
203,
3639,
848,
67,
23322,
203,
3639,
3852,
203,
3639,... |
./partial_match/1/0xB00A2994AE8bBC4F099D1B1054C3571A3b69710a/sources/contracts/utils/CoCreateContractMetadata.sol | solhint-disable-next-line | function __CoCreateContractMetadata_init_unchained(string memory _name, string memory _description)
internal
onlyInitializing
{
name = _name;
description = _description;
}
| 3,609,612 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
1001,
4249,
1684,
8924,
2277,
67,
2738,
67,
4384,
8707,
12,
1080,
3778,
389,
529,
16,
533,
3778,
389,
3384,
13,
203,
565,
2713,
203,
565,
1338,
29782,
203,
225,
288,
203,
565,
508,
273,
389,
529,
31,
203,
565,
2477,
... |
./full_match/5/0xc11EB9B5E028F5Ddf3f1b390F6041CbF38feabf8/sources/contracts/EntryPoint.sol | * validate wallet and paymaster (if defined). also make sure total validation doesn't exceed verificationGas this method is called off-chain (simulateValidation()) and on-chain (from handleOps)/a "marker" where wallet opcode validation is done and paymaster opcode validation is about to start (used only by off-chain si... | function _validatePrepayment(uint256 opIndex, UserOperation calldata userOp, bytes32 requestId) private returns (uint256 requiredPreFund, PaymentMode paymentMode, bytes memory context){
uint256 preGas = gasleft();
uint256 maxGasValues = userOp.preVerificationGas | userOp.verificationGas |
u... | 11,603,704 | [
1,
4625,
348,
7953,
560,
30,
380,
1954,
9230,
471,
8843,
7525,
261,
430,
2553,
2934,
2546,
1221,
3071,
2078,
3379,
3302,
1404,
9943,
11805,
27998,
333,
707,
353,
2566,
3397,
17,
5639,
261,
9812,
6243,
4354,
10756,
471,
603,
17,
5639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5662,
1386,
9261,
12,
11890,
5034,
1061,
1016,
16,
2177,
2988,
745,
892,
729,
3817,
16,
1731,
1578,
14459,
13,
3238,
1135,
261,
11890,
5034,
1931,
1386,
42,
1074,
16,
12022,
2309,
5184,
2309,
16,
1731,
3778,
819,
1... |
./full_match/80001/0xEfE959E84B1A4B7Dd4BF6962a25FFB3e1191BE4d/sources/contracts/GigsContract.sol | Admin can send funds to hirer if dispute is in hirer's favorGet the gig details from the hirer's recordscheck if details of the gig qualify to resolvetransfer the deposited funds back to the hirercleanup - gig dispute is resolved successfully | function resolveFundsToHirer(address hirer, string memory gigID) public onlyAdmin returns (Gig memory)
{
Gig storage gig = myGigs[hirer][gigID];
require(gig.status == Status.AWAITING_DELIVERY, "Gig status error.");
ERC20 usdc = ERC20(USDCaddress);
usdc.transfer(gig.hire... | 5,680,539 | [
1,
4625,
348,
7953,
560,
30,
7807,
848,
1366,
284,
19156,
358,
366,
481,
264,
309,
1015,
2507,
353,
316,
366,
481,
264,
1807,
18552,
967,
326,
314,
360,
3189,
628,
326,
366,
481,
264,
1807,
3853,
1893,
309,
3189,
434,
326,
314,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2245,
42,
1074,
11634,
44,
481,
264,
12,
2867,
366,
481,
264,
16,
533,
3778,
314,
360,
734,
13,
1071,
1338,
4446,
1135,
261,
43,
360,
3778,
13,
203,
565,
288,
203,
3639,
611,
360,
2502,
314,
360,
273,
3399,
43,
360,... |
pragma solidity ^0.4.2;
contract Register {
event Registration(address account, Charity charity, uint balance);
enum Charity {
Undefined,
Animals,
Kids,
Disaster
}
mapping(bytes32 => address[]) public charityRegistrations;
mapping(address => Charity) public accountR... | Empty constructor so we can seed the contract with funds at deploy-time | function Register() payable {
}
| 1,033,167 | [
1,
4625,
348,
7953,
560,
30,
225,
8953,
3885,
1427,
732,
848,
5009,
326,
6835,
598,
284,
19156,
622,
7286,
17,
957,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5433,
1435,
8843,
429,
288,
203,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2022-02-28
*/
// File: @openzeppelin/contracts/utils/Address.sol
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev ... | import "@openzeppelin/contracts/finance/PaymentSplitter.sol";* @dev contract module which defines Dino's NFT Collection and all the interactions it uses/@dev Attributes for NFT configuration @dev inner attributes of the contract | contract NFToken is ERC1155, Ownable {
uint256 internal tokenId;
uint256 public cost = 0 ether;
uint256 public maxSupply = 5;
uint256 public maxMintAmount = 5;
string public name = "Dino NFT";
bool public paused;
constructor(
string memory _baseURI
) ERC1155(_baseURI) {
... | 2,379,630 | [
1,
4625,
348,
7953,
560,
30,
225,
1930,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
926,
1359,
19,
6032,
26738,
18,
18281,
14432,
14,
632,
5206,
6835,
1605,
1492,
11164,
463,
15020,
1807,
423,
4464,
2200,
471,
777,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
16351,
423,
42,
1345,
353,
4232,
39,
2499,
2539,
16,
14223,
6914,
288,
203,
565,
2254,
5034,
2713,
1147,
548,
31,
203,
565,
2254,
5034,
1071,
6991,
273,
374,
225,
2437,
31,
203,
565,
2254,
5034,
1071,
943,
3088,
1283,
273,
1381,
... |
./full_match/1/0x577316AD36FEdc895076Aa184E34bCA2920de694/sources/contracts/asset/Asset.sol | * @notice Gets current CrossChain Pool address @return The current CrossChain Pool address for Asset/ | function crossChainPool() external view returns (address) {
return _crossChainPool;
}
| 9,771,021 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11881,
783,
19742,
3893,
8828,
1758,
632,
2463,
1021,
783,
19742,
3893,
8828,
1758,
364,
10494,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6828,
3893,
2864,
1435,
3903,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
14653,
3893,
2864,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0x52629DD14923d9F60deAFDd373ff6E1145866F09/sources/LandGrabToken.sol | This will assign ownership, and also emit the Transfer event as per ERC721 draft | _transfer(address(0), _owner, newCityId);
| 9,199,994 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
903,
2683,
23178,
16,
471,
2546,
3626,
326,
12279,
871,
487,
1534,
4232,
39,
27,
5340,
12246,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
13866,
12,
2867,
12,
20,
3631,
389,
8443,
16,
394,
22236,
548,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/137/0x78a486306D15E7111cca541F2f1307a1cFCaF5C4/sources/contracts/IPeronio.sol | * Type representing a PE token quantity/ | type PeQuantity is uint256;
| 4,798,385 | [
1,
4625,
348,
7953,
560,
30,
380,
1412,
5123,
279,
16628,
1147,
10457,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
723,
19622,
12035,
353,
2254,
5034,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.24;
import "./math/SafeMath.sol";
contract Voting {
using SafeMath for uint;
event WhitelistAdded(address voter);
event WhitelistRemoved(address voter);
event VoteCommitted(address voter, uint pollId, bytes32 encryptedVotes);
event VoteRevealed(address voter, uint pollId, byt... | store if the vote of a poll was revealed | mapping(uint => mapping(address => bool)) revealedVotes;
| 12,958,143 | [
1,
4625,
348,
7953,
560,
30,
225,
1707,
309,
326,
12501,
434,
279,
7672,
1703,
283,
537,
18931,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
516,
2874,
12,
2867,
516,
1426,
3719,
283,
537,
18931,
29637,
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,
-10... |
./partial_match/1/0xA728392F25cFf07d86Fe889767606eDc5017b784/sources/Deelance_Vesting.sol | users can claim their tokens by calling this function | function Vesting_Claim() external whenNotPaused {
uint256 amount = balances[msg.sender];
require(amount > 0, "No tokens to claim");
require(assignedToken.balanceOf(address(this)) >= amount, "Not enough tokens in the contract");
uint256 monthsElapsed = _monthsSinceLastWithdra... | 15,566,881 | [
1,
4625,
348,
7953,
560,
30,
225,
3677,
848,
7516,
3675,
2430,
635,
4440,
333,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
776,
10100,
67,
9762,
1435,
3903,
1347,
1248,
28590,
288,
203,
3639,
2254,
5034,
3844,
273,
324,
26488,
63,
3576,
18,
15330,
15533,
203,
3639,
2583,
12,
8949,
405,
374,
16,
315,
2279,
2430,
358,
7516,
8863,
203,
3639,
2... |
./full_match/5/0x8dc1EDecb155934c1aDD079AB00eF5C6d53B605f/sources/project:/contracts/Staking.sol | cal 1 token can get eth amount | receive() external payable {
if (msg.value == 0) return;
uint balance = token.balanceOf(address(this));
if (startTime == 0) startTime = block.timestamp;
if (balance == 0) return Address.sendValue(payable(_devWallet), msg.value);
uint ganisAmount = msg.value * ganisRatio / 100;
uint gpus = ganisAmount * ... | 1,857,349 | [
1,
4625,
348,
7953,
560,
30,
225,
1443,
404,
1147,
848,
336,
13750,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18149,
1435,
3903,
8843,
429,
288,
203,
202,
202,
430,
261,
3576,
18,
1132,
422,
374,
13,
327,
31,
203,
203,
202,
202,
11890,
11013,
273,
1147,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
202,
202,
430,
261,
1937,
950,... |
pragma solidity >= 0.5.0;
import "./IF_EAO.sol";
import "./IF_EAS_roll.sol";
import "./IF_EAS_artworks.sol";
import "./IF_EAS_types.sol";
import "./IF_EAS.sol";
import "./IF_EAS_platform.sol";
import "./IF_EAM.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
import "./strings.sol";
contract EA... | 10**15 : finny, 10**14 : 10% for copyright fee in finny
| uint artist_copyright_distribute_amount = (uint(IFEAS_types.GetArtworkTypesPriceInFinny(target)) * 10**14); | 12,881,108 | [
1,
4625,
348,
7953,
560,
30,
225,
1728,
636,
3600,
294,
574,
18538,
16,
1728,
636,
3461,
294,
1728,
9,
364,
22245,
14036,
316,
574,
18538,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
2254,
15469,
67,
29187,
67,
2251,
887,
67,
8949,
273,
261,
11890,
12,
5501,
41,
3033,
67,
2352,
18,
967,
4411,
1252,
2016,
5147,
382,
6187,
18538,
12,
3299,
3719,
380,
1728,
636,
3461,
1769,
225,
2,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x434bAc5efbE635d1bA4284Cf9Fb0938c489C468F/sources/contracts/interfaces/IPoolApeStaking.sol | * @title IPoolApeStaking @notice Defines the basic interface for an ParaSpace Ape Staking Pool./ | interface IPoolApeStaking {
pragma solidity 0.8.10;
struct StakingInfo {
address nftAsset;
uint256 borrowAmount;
uint256 cashAmount;
}
}
| 8,328,444 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
467,
2864,
37,
347,
510,
6159,
632,
20392,
18003,
281,
326,
5337,
1560,
364,
392,
2280,
69,
3819,
432,
347,
934,
6159,
8828,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
2864,
37,
347,
510,
6159,
288,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
2163,
31,
203,
565,
1958,
934,
6159,
966,
288,
203,
3639,
1758,
290,
1222,
6672,
31,
203,
3639,
2254,
5034,
29759,
6275,
31,
203,
3639,
2254... |
./full_match/97/0x056493a1E2FDf3Fe7603eE958eaF9d81F5508155/sources/project:/contracts/RevolutiongamesStake.sol | stakes[msg.sender].unlockTime = block.timestamp + _lockDuration; stakes[msg.sender].unlockTime = block.timestamp + ( 1 minutes); lockTime[msg.sender] = block.timestamp + (Claim_Tenure_Time * 1 days); logic pending stakes[msg.sender].claimTenure =(Claim_Tenure_Time/1440) ; check issue stakes[msg.sender].unlockTim... | function stake(uint _amount, uint _lockDuration) external {
require(_amount>=minStake && _amount <=maxStake);
if(bonusStatus[owner] == true){
require(_amount > 0, "amount = 0");
stakingToken.transferFrom(msg.sender, address(this), _amount);
stakes[msg.sender].amount += _amou... | 3,280,752 | [
1,
4625,
348,
7953,
560,
30,
225,
384,
3223,
63,
3576,
18,
15330,
8009,
26226,
950,
273,
1203,
18,
5508,
397,
389,
739,
5326,
31,
225,
384,
3223,
63,
3576,
18,
15330,
8009,
26226,
950,
273,
1203,
18,
5508,
397,
261,
404,
6824,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
384,
911,
12,
11890,
389,
8949,
16,
2254,
389,
739,
5326,
13,
3903,
225,
288,
203,
3639,
2583,
24899,
8949,
34,
33,
1154,
510,
911,
597,
389,
8949,
1648,
1896,
510,
911,
1769,
203,
3639,
309,
12,
18688,
407,
1482,
63,... |
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol";
/*
---------------------------------
CHAINLINK-POLYGON NETWORK DETAILS
---------------------------------
name: "mumbai",
linkToken: "0x326C977E6efc84E512bB9C30f76E30c160eD06FB",
ethUsdPriceFeed: ... | save the request data | floorPriceRequestsById[result] = FloorPriceRequests(block.timestamp, _collectionAddress);
| 12,955,096 | [
1,
4625,
348,
7953,
560,
30,
225,
1923,
326,
590,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6346,
5147,
6421,
5132,
63,
2088,
65,
273,
478,
5807,
5147,
6421,
12,
2629,
18,
5508,
16,
389,
5548,
1887,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x3D05eBC3f8256D1baFbEbdc3C467DF36453c7a3f/sources/contracts/FlashLoaner.sol | returns sorted token addresses, used to handle return values from pairs sorted in this order | library UniswapV2Library {
using SafeMath for uint;
function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
(token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, t... | 4,816,648 | [
1,
4625,
348,
7953,
560,
30,
225,
1135,
3115,
1147,
6138,
16,
1399,
358,
1640,
327,
924,
628,
5574,
3115,
316,
333,
1353,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
1351,
291,
91,
438,
58,
22,
9313,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
445,
1524,
5157,
12,
2867,
1147,
37,
16,
1758,
1147,
38,
13,
2713,
16618,
1135,
261,
2867,
1147,
20,
16,
1758,
1147,
21,
... |
// SPDX-FileCopyrightText: 2021 ShardLabs
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/exte... | @notice Set PoLidoNFT version @param _version - New version that will be set | function setVersion(string calldata _version) external onlyOwner {
version = _version;
}
| 520,958 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
453,
83,
48,
22954,
50,
4464,
1177,
632,
891,
389,
1589,
300,
1166,
1177,
716,
903,
506,
444,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
16770,
12,
1080,
745,
892,
389,
1589,
13,
3903,
1338,
5541,
288,
203,
3639,
1177,
273,
389,
1589,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.5.2;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
... | 86400 seconds in a day
| timeInADay = 86400; | 920,199 | [
1,
4625,
348,
7953,
560,
30,
225,
21451,
3974,
316,
279,
2548,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
813,
382,
1880,
528,
273,
21451,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal... | Guest List VIP (Cryptocrawlerz Owners ) - FREE | function mintGuestListVIP(
bytes32[] calldata merkleProof
)
public
payable
isMintActive(1)
isValidMerkleProof(merkleProof, guestListVIPMerkleRoot)
{
require(!paused, "CONTRACT_IS_PAUSED");
uint256 supply = totalSupply();
require(guestListVI... | 643,456 | [
1,
4625,
348,
7953,
560,
30,
225,
6467,
395,
987,
776,
2579,
261,
22815,
504,
10644,
94,
14223,
9646,
262,
300,
478,
9719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
312,
474,
12978,
682,
58,
2579,
12,
203,
3639,
1731,
1578,
8526,
745,
892,
30235,
20439,
203,
3639,
262,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
15707,
474,
3896,
12,
21,
13,
203,
3639,
4908,
8478,
15609,
2043... |
pragma solidity >=0.6.0;
// Copyright BigchainDB GmbH and Ocean Protocol contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0
import "./BToken.sol";
import "./BMath.sol";
import "../../interfaces/ISideStaking.sol";
/**
* @title BPool
*
* @dev Used by the ... | this is the amount we are going to register in balances (only takes account of swapFee, not OPF and market fee, in order to not affect price during following swaps, fee wtihdrawl etc) | function swapExactAmountOut(
address tokenIn,
uint256 maxAmountIn,
address tokenOut,
uint256 tokenAmountOut,
uint256 maxPrice
) external _lock_ returns (uint256 tokenAmountIn, uint256 spotPriceAfter) {
require(_finalized, "ERR_NOT_FINALIZED");
require(_rec... | 2,519,858 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
353,
326,
3844,
732,
854,
8554,
358,
1744,
316,
324,
26488,
261,
3700,
5530,
2236,
434,
7720,
14667,
16,
486,
7247,
42,
471,
13667,
14036,
16,
316,
1353,
358,
486,
13418,
6205,
4982,
3751,
1352... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
14332,
6275,
1182,
12,
203,
3639,
1758,
1147,
382,
16,
203,
3639,
2254,
5034,
943,
6275,
382,
16,
203,
3639,
1758,
1147,
1182,
16,
203,
3639,
2254,
5034,
1147,
6275,
1182,
16,
203,
3639,
2254,
5034,
943,
5147,
203... |
/**
*Submitted for verification at Etherscan.io on 2021-10-28
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
/*
VERSION DATE: 20/09/2021
*/
library Address
{
function isContract(address account) internal view returns (bool)
{
uint256 size;
assembly { size := extcodesize(account) }
... | Mapping from token id to position in the allTokens array
| mapping(uint256 => uint256) private _allTokensIndex; | 2,414,788 | [
1,
4625,
348,
7953,
560,
30,
225,
9408,
628,
1147,
612,
358,
1754,
316,
326,
777,
5157,
526,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
3238,
389,
454,
5157,
1016,
31,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/137/0xA54D36B30F8aA90EB1a5d717856fB28dde98e891/sources/contracts/KidTD.sol | if any account belongs to _isExcludedFromFee account then remove the fee | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
bool isSell = from == uniswapV2Pair;
... | 4,699,931 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
pragma solidity ^0.4.2;
contract HedgeContract1 {
struct Investment {
address investor;
uint value;
/*uint nowValue;*/
/*uint holding;*/
uint withdrawal;
uint period; // in days
uint withdrawalLimit;
uint8[] sectors; //TODO limit size
}
address public creator;
address public in... | TODO - Check truncations
| investments[x].withdrawal = investments[x].value * msg.value / originalInvestment; | 13,105,344 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
300,
2073,
6956,
1012,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
2198,
395,
1346,
63,
92,
8009,
1918,
9446,
287,
273,
2198,
395,
1346,
63,
92,
8009,
1132,
380,
1234,
18,
1132,
342,
2282,
3605,
395,
475,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import ... | Obtain normalized balances Gas saving: Use cached totalBalance from _totalBalance(). Fee calculation | function getRedeemAmountIn(
address tokenAddr,
uint256 tokenAmountOut
)
external
view
returns (uint256 stalAmountIn, uint256 fee)
{
uint256 tokenIndex = _getTokenIndex(tokenAddr);
uint256 tokenAmountOutNormalized = tokenAmountOut.mul(_normalizeBalance... | 12,874,547 | [
1,
4625,
348,
7953,
560,
30,
225,
24850,
5640,
324,
26488,
31849,
12392,
30,
2672,
3472,
2078,
13937,
628,
389,
4963,
13937,
7675,
30174,
11096,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5561,
24903,
6275,
382,
12,
203,
3639,
1758,
1147,
3178,
16,
203,
3639,
2254,
5034,
1147,
6275,
1182,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
384,
287,
6275,
382,
16,
2254,
50... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/* Library Imports */
import {AddressAliasHelper} from '../../standards/AddressAliasHelper.sol';
import {Lib_OVMCodec} from '../../libraries/codec/Lib_OVMCodec.sol';
import {Lib_AddressResolver} from '../../libraries/resolver/Lib_AddressResolver.sol';
/* Interfa... | * Hashes a standard OVM transaction. @param _transaction OVM transaction to encode. @return Hashed transaction/ | function hashTransaction(Transaction memory _transaction)
internal
pure
returns (bytes32)
{
return keccak256(encodeTransaction(_transaction));
}
| 1,596,347 | [
1,
4625,
348,
7953,
560,
30,
380,
2474,
281,
279,
4529,
531,
7397,
2492,
18,
632,
891,
389,
7958,
531,
7397,
2492,
358,
2017,
18,
632,
2463,
2474,
329,
2492,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1651,
3342,
12,
3342,
3778,
389,
7958,
13,
203,
565,
2713,
203,
565,
16618,
203,
565,
1135,
261,
3890,
1578,
13,
203,
225,
288,
203,
565,
327,
417,
24410,
581,
5034,
12,
3015,
3342,
24899,
7958,
10019,
203,
225,
289,
... |
./partial_match/1/0x9Ea8b2e29F5BBF9552e33faCB1377284Aeb0129b/sources/BabyBitcoin.sol | * @dev Interface of the ERC20 standard as defined in the EIP./ | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint2... | 2,889,071 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
741... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.6.12;
import "../standard-pool/StandardPoolConverter.sol";
/**
* @dev This contract is a specialized version of the converter, which implements
* a constant conversion-rate (configurable by the owner of the converter).
*/
contract FixedRatePoolCo... | * @dev get the amount of pool tokens to mint for the caller and the amount of reserve tokens to transfer from the caller @param _reserveTokens address of each reserve token @param _reserveAmounts amount of each reserve token @param _reserveBalances balance of each reserve token @param _totalSupply total supp... | function addLiquidityAmounts(
IReserveToken[] memory _reserveTokens,
uint256[] memory _reserveAmounts,
uint256[2] memory _reserveBalances,
uint256 _totalSupply
) internal view override returns (uint256, uint256[2] memory) {
uint256 rateN = _rate[_reserveTokens[0]];
... | 7,286,021 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
336,
326,
3844,
434,
2845,
2430,
358,
312,
474,
364,
326,
4894,
471,
326,
3844,
434,
20501,
2430,
358,
7412,
628,
326,
4894,
632,
891,
389,
455,
6527,
5157,
565,
1758,
434,
1517,
20501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
527,
48,
18988,
24237,
6275,
87,
12,
203,
3639,
467,
607,
6527,
1345,
8526,
3778,
389,
455,
6527,
5157,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
455,
6527,
6275,
87,
16,
203,
3639,
2254,
5034,
63,
22,
65,
3778,
389... |
pragma solidity ^0.5.2;
library SafeMath {
function MUL162(uint256 a, uint256 b) internal pure returns (uint256) { //inject NONSTANDAR... | inject NONSTANDARD NAMING
| function PAUSED195() public view returns(bool) { | 7,272,440 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15662,
20093,
31677,
1435,
1071,
1476,
1135,
12,
6430,
13,
288,
202,
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,
... |
./partial_match/42/0x4670E6D207C95ad6441d73Cba3b53a22cBBfe310/sources/ICO.sol | * @title Crowdsale @dev Crowdsale is a base contract for managing a token crowdsale, allowing investors to purchase tokens with ether. This contract implements such functionality in its most fundamental form and can be extended to provide additional functionality and/or custom behavior. The external interface represent... | contract Crowdsale is ReentrancyGuard {
using SafeMath for uint256;
using SafeERC20 for IERC20;
IERC20 private _token;
address private _wallet;
uint256 private _rate;
uint256 private _weiRaised;
event TokensPurchased(address indexed purchaser, address indexed beneficiary, uint256 value,... | 9,100,942 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
385,
492,
2377,
5349,
632,
5206,
385,
492,
2377,
5349,
353,
279,
1026,
6835,
364,
30632,
279,
1147,
276,
492,
2377,
5349,
16,
15632,
2198,
395,
1383,
358,
23701,
2430,
598,
225,
2437,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
385,
492,
2377,
5349,
353,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
467,
654,
39,
3462,
3238,
389,
... |
pragma solidity 0.5.17;
contract BondedSortitionPoolFactory {
/// @notice Creates a new bonded sortition pool instance.
/// @return Address of the new bonded sortition pool contract instance.
function createSortitionPool(
IStaking stakingContract,
IBonding bondingContract,
uint256 minimumStake,... | Shifting `SLOT_MAX` left by `slotShift(position)` bits gives us a number where all bits of the `position`th slot are set, and all other bits are unset. Using a bitwise NOT on this number, we get a uint256 where all bits are set except for those of the `position`th slot. Bitwise ANDing the original `node` with this num... | function clearSlot(uint256 node, uint256 position)
internal
pure
returns (uint256)
{
uint256 shiftBits = position * SLOT_WIDTH;
return node & ~(SLOT_MAX << shiftBits);
}
| 7,493,837 | [
1,
4625,
348,
7953,
560,
30,
225,
2638,
430,
1787,
1375,
55,
1502,
56,
67,
6694,
68,
2002,
635,
1375,
14194,
10544,
12,
3276,
22025,
4125,
14758,
584,
279,
1300,
1625,
777,
4125,
434,
326,
1375,
3276,
68,
451,
4694,
854,
444,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
2424,
8764,
12,
11890,
5034,
756,
16,
2254,
5034,
1754,
13,
203,
203,
565,
2713,
203,
203,
565,
16618,
203,
203,
565,
1135,
261,
11890,
5034,
13,
203,
203,
225,
288,
203,
203,
565,
2254,
5034,
4654,
6495,
273,
1754,
3... |
pragma solidity ^0.4.10;
contract corporateVotingDapp {
// We use the struct datatype to store the electorate information.
struct electorate {
address electorateAdd; // The address of the electorate
uint coinsBought; // The total no. of coins this electorate owns
uint[] coinsUsedPerNominee; // Arr... | Return the sum of all the coins used by this electorate. | function totalcoinsUsed(uint[] _coinsUsedPerNominee) private pure returns (uint) {
uint totalUsedcoins = 0;
for(uint i = 0; i < _coinsUsedPerNominee.length; i++) {
totalUsedcoins += _coinsUsedPerNominee[i];
}
return totalUsedcoins;
}
| 12,912,329 | [
1,
4625,
348,
7953,
560,
30,
225,
2000,
326,
2142,
434,
777,
326,
276,
9896,
1399,
635,
333,
415,
1229,
340,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2078,
71,
9896,
6668,
12,
11890,
8526,
389,
71,
9896,
6668,
2173,
26685,
558,
73,
13,
3238,
16618,
1135,
261,
11890,
13,
288,
203,
565,
2254,
2078,
6668,
71,
9896,
273,
374,
31,
203,
565,
364,
12,
11890,
277,
273,
374... |
pragma solidity ^0.5.16;
import "@0x/contracts-utils/contracts/src/LibBytes.sol";
import "./BaseGsnAware.sol";
/**
* A base class to be inherited by a concrete Relay Recipient
* A subclass must use "getSender()" instead of "msg.sender"
*/
contract BaseRelayRecipient {
/// the TrustedForwarder singleton we ac... | * return the sender of this call. if the call came through our trusted forwarder, return the original sender. otherwise, return `msg.sender` should be used in the contract anywhere instead of msg.sender/ At this point we know that the sender is a trusted forwarder, so we trust that the last bytes of msg.data are the ve... | function getSender() public view returns (address) {
if (msg.sender == address(getTrustedForwarder())) {
return LibBytes.readAddress(msg.data, msg.data.length - 20);
}
return msg.sender;
}
| 1,029,063 | [
1,
4625,
348,
7953,
560,
30,
380,
327,
326,
5793,
434,
333,
745,
18,
309,
326,
745,
22497,
3059,
3134,
13179,
364,
20099,
16,
327,
326,
2282,
5793,
18,
3541,
16,
327,
1375,
3576,
18,
15330,
68,
1410,
506,
1399,
316,
326,
6835,
256... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1322,
2345,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
309,
261,
3576,
18,
15330,
422,
1758,
12,
588,
16950,
30839,
1435,
3719,
288,
203,
5411,
327,
10560,
2160,
18,
896,
1887,
12,
3576,
18,
892,
16,
1234,
... |
//Address: 0x9b3912ab0ef08a772a097340400ba6a471e8de57
//Contract name: AirDropContract
//Balance: 0 Ether
//Verification Date: 11/28/2017
//Transacion Count: 457
// CODE STARTS HERE
pragma solidity 0.4.18;
/// @title LRC Foundation Icebox Program
/// @author Daniel Wang - <daniel@loopring.org>.
/// For more informa... | @title ERC20 ERC20 Interface @dev see https://github.com/ethereum/EIPs/issues/20 @author Daniel Wang - <daniel@loopring.org> | contract ERC20 {
uint public totalSupply;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function balanceOf(address who) view public returns (uint256);
function allowance(address owner, address... | 1,821,449 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
4232,
39,
3462,
4232,
39,
3462,
6682,
632,
5206,
2621,
2333,
2207,
6662,
18,
832,
19,
546,
822,
379,
19,
41,
18246,
19,
9618,
19,
3462,
632,
4161,
463,
28662,
292,
678,
539,
300,
411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
288,
203,
565,
2254,
1071,
2078,
3088,
1283,
31,
203,
203,
565,
871,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
5034,
460,
1769,
203,
565,
871,
1716,
685,
1125,
12,
2867,
8808,
3410,
16,
1... |
//SPDX-License-Identifier: MIT
pragma solidity 0.6.8;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./UsingRegistry.sol";
import "./interf... | @notice Finishes withdraw process, transfering unlocked CELO back to the caller. @param index index of pending withdrawal to finish as returned by .pendingWithdrawals() call. @param indexGlobal index of matching pending withdrawal as returned by lockedGold.getPendingWithdrawals() call. @return amount of CELO tokens wi... | function withdrawFinish(uint256 index, uint256 indexGlobal) external returns (uint256) {
PendingWithdrawal memory pending = popPendingWithdrawal(msg.sender, index, indexGlobal);
getLockedGold().withdraw(indexGlobal);
require(
getGoldToken().transfer(msg.sender, pending.value),
"unexpected failure: CELO tra... | 12,583,283 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
18560,
281,
598,
9446,
1207,
16,
7412,
310,
25966,
29538,
1502,
1473,
358,
326,
4894,
18,
632,
891,
770,
770,
434,
4634,
598,
9446,
287,
358,
4076,
487,
2106,
635,
263,
9561,
1190,
9446,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
598,
9446,
11641,
12,
11890,
5034,
770,
16,
2254,
5034,
770,
5160,
13,
3903,
1135,
261,
11890,
5034,
13,
288,
203,
202,
202,
8579,
1190,
9446,
287,
3778,
4634,
273,
1843,
8579,
1190,
9446,
287,
12,
3576,
18,
15330,
16,
... |
pragma solidity ^0.4.21;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
... | * @dev Source of tokens. Override this method to modify the way in which the crowdsale ultimately gets and sends its tokens. @param _beneficiary Address performing the token purchase @param _tokenAmount Number of tokens to be emitted/ | function _deliverTokens(address _beneficiary, uint256 _tokenAmount) internal {
token.transfer(_beneficiary, _tokenAmount);
}
| 7,674,795 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4998,
434,
2430,
18,
1439,
333,
707,
358,
5612,
326,
4031,
316,
1492,
326,
276,
492,
2377,
5349,
225,
406,
381,
5173,
5571,
471,
9573,
2097,
2430,
18,
632,
891,
389,
70,
4009,
74,
14463... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
389,
26672,
5157,
12,
2867,
389,
70,
4009,
74,
14463,
814,
16,
2254,
5034,
389,
2316,
6275,
13,
2713,
288,
203,
3639,
1147,
18,
13866,
24899,
70,
4009,
74,
14463,
814,
16,
389,
2316,
6275,
1769,
203,
565,
289,
203,
20... |
pragma solidity ^0.5.8;
pragma experimental ABIEncoderV2;
contract GovernmentOfficer {
address public walletAddress;
string public email;
string public phoneNumber;
string public name;
string public employeeId;
bool isVerified;
address[] public tenders;
address[] p... | remove from contracts and add to pastContracts | function markContractCompleted (address contractAddress) public returns (bool) {
for (uint256 i=0; i < contracts.length; i++) {
if (contracts[i] == contractAddress) {
pastContracts.push(contractAddress);
contractStatus[contractAddress] = true;
dele... | 12,754,134 | [
1,
4625,
348,
7953,
560,
30,
1206,
628,
20092,
471,
527,
358,
8854,
20723,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2267,
8924,
9556,
261,
2867,
6835,
1887,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
364,
261,
11890,
5034,
277,
33,
20,
31,
277,
411,
20092,
18,
2469,
31,
277,
27245,
288,
203,
5411,
309,
261,
16351,
87,
63,
77,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721... | number of epochs that a bee can claim honey before becoming inactive
| uint16 public EPOCHS_BEFORE_INACTIVE_BEE; | 11,658,563 | [
1,
4625,
348,
7953,
560,
30,
1300,
434,
25480,
716,
279,
27203,
848,
7516,
24338,
402,
1865,
506,
5522,
16838,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
2313,
1071,
512,
30375,
55,
67,
19152,
67,
706,
13301,
67,
5948,
41,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2020-08-28
*/
/*
*
*
* BOGGED
* https://views.farm/bogged
*
*
*/
pragma solidity ^0.5.2;
interface IERC20 {
function totalSupply() external view returns(uint256);
function balanceOf(address who) external view returns(uint2... | * @notice Get the number of tokens held by the `owner` @param owner The address of the account to get the balance of @return The number of tokens held/ | function balanceOf(address owner) public view returns(uint256) {
return _balances[owner];
}
| 13,037,490 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
326,
1300,
434,
2430,
15770,
635,
326,
1375,
8443,
68,
632,
891,
3410,
1021,
1758,
434,
326,
2236,
358,
336,
326,
11013,
434,
632,
2463,
1021,
1300,
434,
2430,
15770,
19,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11013,
951,
12,
2867,
3410,
13,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
389,
70,
26488,
63,
8443,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "../shared/ModifiedErc721.sol";
import "./ModifiedOwnership.sol";
/**
* @author @vonie610 (Twitter & Telegram) | @Nicca42 (GitHub)
* @notice This contract is the ownership token that works with the
* `ModifiedOwnership` contract (which the ... | * @param _owner Address of the owner. @return address The address of the contract that the owner owns./ | function getOwnedContract(address _owner) external view returns(address) {
uint256 tokenID = contractOwners_[_owner];
return ownedContracts_[tokenID];
}
| 15,817,119 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
282,
389,
8443,
5267,
434,
326,
3410,
18,
632,
2463,
225,
1758,
1021,
1758,
434,
326,
6835,
716,
326,
3410,
29065,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
5460,
329,
8924,
12,
2867,
389,
8443,
13,
3903,
1476,
1135,
12,
2867,
13,
288,
203,
3639,
2254,
5034,
1147,
734,
273,
6835,
5460,
414,
67,
63,
67,
8443,
15533,
203,
3639,
327,
16199,
20723,
67,
63,
2316,
734,
155... |
pragma solidity ^0.4.18;
// File: contracts/libraries/PermissionsLib.sol
/*
Copyright 2017 Dharma Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apa... | * ERC165 interface required by ERC721 non-fungible token./ | interface ERC165 {
function supportsInterface(bytes4 interfaceID) external view returns (bool);
}
| 12,699,929 | [
1,
4625,
348,
7953,
560,
30,
380,
4232,
39,
28275,
1560,
1931,
635,
4232,
39,
27,
5340,
1661,
17,
12125,
75,
1523,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
4232,
39,
28275,
288,
203,
565,
445,
6146,
1358,
12,
3890,
24,
1560,
734,
13,
3903,
1476,
1135,
261,
6430,
1769,
203,
203,
203,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.7.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
contract Auction {
using SafeMath for uint256;
uint256 public endTime; // Timestamp of the end of the auction (in seconds)
uint256 public startTime; // The block timestamp ... | Emit a withdraw funds event
| emit WithdrawFunds(msg.sender,maxBid); | 5,506,636 | [
1,
4625,
348,
7953,
560,
30,
225,
16008,
279,
598,
9446,
284,
19156,
871,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3626,
3423,
9446,
42,
19156,
12,
3576,
18,
15330,
16,
1896,
17763,
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,
... |
./full_match/1/0x3558a74679b6993be1FA230a961D8a4f3EB2C330/sources/browser/ZOMDeFi.sol | ZOM with Governance. Copied and modified from YAM code: https:github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol https:github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol Which is copied and modified from COMPOUND: https:github.com/compound-finance/co... | contract ZOMHealth is ERC20("zom.health", "ZOM"), Ownable {
using SafeMath for uint256;
mapping (address => address) internal _delegates;
struct Checkpoint {
uint32 fromBlock;
uint256 votes;
}
uint256 private _premint = 13900000000000000000000000;
mapping... | 8,345,373 | [
1,
4625,
348,
7953,
560,
30,
225,
2285,
1872,
598,
611,
1643,
82,
1359,
18,
28506,
2092,
471,
4358,
628,
1624,
2192,
981,
30,
2333,
30,
6662,
18,
832,
19,
93,
301,
17,
926,
1359,
19,
93,
301,
17,
8373,
19,
10721,
19,
7525,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
2285,
1872,
7802,
353,
4232,
39,
3462,
2932,
94,
362,
18,
13267,
3113,
315,
62,
1872,
6,
3631,
14223,
6914,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
2874,
261,
2867,
516,
1758,
13,
... |
./partial_match/1/0xaE12fA21d0549E4783921De12D52ad0FB2E5E8Fa/sources/DadPresale.sol | Fallback function receives ETH | receive() external payable whenNotPaused {
require(totalRaised + msg.value <= hardCap, "Cannot exceed hard cap");
require(msg.value >= MIN_CONTRIBUTION && msg.value <= MAX_CONTRIBUTION, "Contribution outside allowed range");
totalRaised += msg.value;
emit Received(msg.sender, msg.val... | 9,259,725 | [
1,
4625,
348,
7953,
560,
30,
225,
21725,
445,
17024,
512,
2455,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6798,
1435,
3903,
8843,
429,
1347,
1248,
28590,
288,
203,
3639,
2583,
12,
4963,
12649,
5918,
397,
1234,
18,
1132,
1648,
7877,
4664,
16,
315,
4515,
9943,
7877,
3523,
8863,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
6989,
67,
... |
pragma solidity ^0.4.23;
// ----------------------------------------------------------------------------
// ERC Token Standard #223 Interface
// https://github.com/ethereum/EIPs/issues/223
// ----------------------------------------------------------------------------
contract ERC223Interface {
function transfer(... | ---------------------------------------------------------------------------- ERC Token Standard #223 Interface https:github.com/ethereum/EIPs/issues/223 ---------------------------------------------------------------------------- ignoring the lint error for Transfer function | contract ERC223Interface {
function transfer(address _to, uint _value, bytes _data) public returns (bool success);
event Transfer(address indexed _from, address indexed _to, uint _value, bytes _data);
} | 6,359,936 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3155,
8263,
468,
3787,
23,
6682,
2333,
30,
6662,
18,
832,
19,
546,
822,
379,
19,
41,
18246,
19,
9618,
19,
3787,
23,
8879,
13849,
14398,
326,
19477,
555,
364,
12279,
445,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3787,
23,
1358,
288,
203,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
389,
1132,
16,
1731,
389,
892,
13,
1071,
1135,
261,
6430,
2216,
1769,
203,
203,
565,
871,
12279,
12,
2867,
8808,
389,
2080,
16,
1758,
8808... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.7 <0.9.0;
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol';
import '../interfaces/IDCATokenDescriptor.sol';
import '../interfaces/IDCAPermissionManager.sol';
import '../libraries/Per... | @inheritdoc IDCAPermissionManager | function modify(uint256 _id, PermissionSet[] calldata _permissions) external {
if (msg.sender != ownerOf(_id)) revert NotOwner();
_modify(_id, _permissions);
}
| 441,512 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
1599,
17296,
2635,
1318,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5612,
12,
11890,
5034,
389,
350,
16,
8509,
694,
8526,
745,
892,
389,
9612,
13,
3903,
288,
203,
565,
309,
261,
3576,
18,
15330,
480,
3410,
951,
24899,
350,
3719,
15226,
2288,
5541,
5621,
203,
565,
389,
17042,
24899,
350,... |
pragma solidity ^0.4.24;
import "@aragon/os/contracts/acl/ACL.sol";
import "@aragon/os/contracts/apps/AragonApp.sol";
import "@espresso-org/object-acl/contracts/ObjectACL.sol";
import "./libraries/PermissionLibrary.sol";
import "./libraries/GroupLibrary.sol";
import "./libraries/FileLibrary.sol";
contract Datastore ... | * @notice Rename a group @param _groupId Id of the group to rename @param _newGroupName New name for the group/ | function renameGroup(uint256 _groupId, string _newGroupName) external auth(DATASTORE_MANAGER_ROLE) {
require(groups.groups[_groupId].exists);
groups.renameGroup(_groupId, _newGroupName);
emit GroupChange(_groupId);
}
| 12,940,708 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
19996,
279,
1041,
632,
891,
389,
27547,
3124,
434,
326,
1041,
358,
6472,
632,
891,
389,
2704,
3943,
1166,
508,
364,
326,
1041,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6472,
1114,
12,
11890,
5034,
389,
27547,
16,
533,
389,
2704,
3943,
13,
3903,
1357,
12,
4883,
13651,
67,
19402,
67,
16256,
13,
288,
203,
3639,
2583,
12,
4650,
18,
4650,
63,
67,
27547,
8009,
1808,
1769,
203,
3639,
3252,
... |