file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/8453/0x25f8fA4917180FF308883e37Ea27CEaEB68c1f19/sources/contracts/bridge/router/SynapseAdapter.sol | @dev Wraps ETH into WETH. Deposit in order to have WETH in this contract | function _wrapETH(address weth, uint256 amount) internal {
require(msg.value == amount, "!msg.value");
}
| 11,554,510 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
678,
7506,
512,
2455,
1368,
678,
1584,
44,
18,
4019,
538,
305,
316,
1353,
358,
1240,
678,
1584,
44,
316,
333,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4113,
1584,
44,
12,
2867,
341,
546,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
422,
3844,
16,
17528,
3576,
18,
1132,
8863,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x6194905c3ac98FED625E1D15997Dda9eD4D4FFFD/sources/CRYPTOCARTEL.sol | set as marketing wallet
| marketingWallet = address(0x65d42dCe687cbA9eDc040f6D0689053701d92De3); | 9,288,635 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
13667,
310,
9230,
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,
13667,
310,
16936,
273,
1758,
12,
20,
92,
9222,
72,
9452,
72,
39,
73,
9470,
27,
7358,
37,
29,
73,
40,
71,
3028,
20,
74,
26,
40,
7677,
6675,
6260,
6418,
1611,
72,
9975,
758,
23,
1769,
225,
2,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import "./library/SafeDecimalMath.sol";
import "./librar... | Internal function to remove account from liquidations Does not check collateral ratio is fixed | function removeAccountInLiquidation(address account)
external
onlySynthesizer
{
LiquidationEntry memory liquidation = _getLiquidationEntryForAccount(
account
);
if (liquidation.deadline > 0) {
_removeLiquidationEntry(account);
}
}
| 15,865,391 | [
1,
4625,
348,
7953,
560,
30,
225,
3186,
445,
358,
1206,
2236,
628,
4501,
26595,
1012,
9637,
486,
866,
4508,
2045,
287,
7169,
353,
5499,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1206,
3032,
382,
48,
18988,
350,
367,
12,
2867,
2236,
13,
203,
3639,
3903,
203,
3639,
1338,
10503,
7915,
1824,
203,
565,
288,
203,
3639,
511,
18988,
350,
367,
1622,
3778,
4501,
26595,
367,
273,
389,
588,
48,
18988,
350,... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >= 0.6.12;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/math/SignedSafeMath.sol";
interface Helper {
function TuringTx(string memory, bytes memory) external returns (bytes memory);
}
contract StableSwap {
... | * @dev Square root function @param a number to find the square root of (rounded down?)/ | function sqrt(uint a)
public returns (uint b) {
require(a >= 0);
if (a == 0) return 0;
else if (a <= 3) return 1;
uint c = (a.add(1)).div(2);
b = a;
while (c < b)
{
b = c;
c = (a.div(c).add(c)).div(2);
}
... | 12,683,905 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
22029,
1365,
445,
632,
891,
279,
1300,
358,
1104,
326,
8576,
1365,
434,
261,
27561,
2588,
8535,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5700,
12,
11890,
279,
13,
7010,
3639,
1071,
225,
1135,
261,
11890,
324,
13,
288,
203,
540,
203,
3639,
2583,
12,
69,
1545,
374,
1769,
203,
3639,
309,
261,
69,
422,
374,
13,
327,
374,
31,
203,
3639,
469,
309,
261,
69,... |
./partial_match/1/0xA96D47c621a8316d4F9539E3B38180C7067e84CA/sources/AWP.sol | * @notice Fired when a new role is added./* @notice Fired when a new role is added./* @dev The role is granted to the deployer./ | constructor () internal {
_addBurner(msg.sender);
}
| 3,571,838 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
478,
2921,
1347,
279,
394,
2478,
353,
3096,
18,
20308,
632,
20392,
478,
2921,
1347,
279,
394,
2478,
353,
3096,
18,
20308,
632,
5206,
1021,
2478,
353,
17578,
358,
326,
7286,
264,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1832,
2713,
288,
203,
3639,
389,
1289,
38,
321,
264,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.4;
import {IBNFT} from "../interfaces/IBNFT.sol";
import {IFlashLoanReceiver} from "../interfaces/IFlashLoanReceiver.sol";
import {StringsUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import {AddressUpgradeable} from "@op... | * @dev See {IERC721Metadata-tokenURI}./ | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
return IERC721MetadataUpgradeable(_underlyingAsset).tokenURI(tokenId);
}
| 357,738 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
2277,
17,
2316,
3098,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
565,
327,
467,
654,
39,
27,
5340,
2277,
10784,
429,
24899,
9341,
6291,
6672,
2934,
2316,
3098,
12,
2316,
548,
1769... |
pragma solidity ^0.4.24;
/**
* @title Roles
*
* @dev Library for managing addresses assigned to a Role, using an internal linked list structure instead of a mapping.
*/
library Roles {
/** Struct representing a node in the linked list. */
struct Node {
// Reference to the previous linked node in th... | * The role struct is essentially the linked list, holding a reference to the head and a mapping of all nodes. */ | struct Role {
mapping (address => Node) bearer;
address head;
}
| 1,052,879 | [
1,
4625,
348,
7953,
560,
30,
380,
1021,
2478,
1958,
353,
18518,
11220,
326,
8459,
666,
16,
19918,
279,
2114,
358,
326,
910,
471,
279,
2874,
434,
777,
2199,
18,
1195,
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,
1958,
6204,
288,
203,
3639,
2874,
261,
2867,
516,
2029,
13,
28802,
31,
203,
3639,
1758,
910,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
* UserRegistry.sol
* Mt Pelerin user registry.
* The unflattened code is available through this github tag:
* https://github.com/MtPelerin/MtPelerin-protocol/tree/etherscan-verify-batch-1
* @notice Copyright © 2016 - 2018 Mt Pelerin Group SA - All Rights Reserved
* @notice All matters regarding th... | * @dev the userId associated to the provided address/ | function addressConfirmed(address _address) public view returns (bool) {
return walletOwners[_address].confirmed;
}
| 15,813,825 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
326,
6249,
3627,
358,
326,
2112,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
3976,
11222,
12,
2867,
389,
2867,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
565,
327,
9230,
5460,
414,
63,
67,
2867,
8009,
21606,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol";
import "./Strings.sol";
import "./Permissions.sol";
contract ReputationBook is ERC721Token, Owna... | Mapping from hashed avatar id to token id | mapping (bytes32 => uint256) public hashedAvatarIdToNumericId;
| 12,849,167 | [
1,
4625,
348,
7953,
560,
30,
225,
9408,
628,
14242,
16910,
612,
358,
1147,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
3890,
1578,
516,
2254,
5034,
13,
1071,
14242,
23999,
28803,
9902,
548,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.9 <0.9.0;
import "./IGrailsRevenues.sol";
import "./GrailsRevenues.sol";
import "@divergencetech/ethier/contracts/erc721/ERC721Common.sol";
import "@divergencetech/ethier/contracts/erc721/ERC721Redeemer.sol";
import "@divergencetech/ethier/contracts/utils/Monotonic... | / If allowed > 1 we can save on expensive operations like checking ownership / remaining allowance by batching equal tokenIds. The algorithm assumes that equal IDs are adjacent in the array. | function redeem(
Claims storage claims,
uint256 maxAllowance,
address redeemer,
IERC721 token,
uint256[] calldata tokenIds
) internal returns (uint256) {
if (maxAllowance == 0 || tokenIds.length == 0) {
return 0;
}
for (
u... | 493,226 | [
1,
4625,
348,
7953,
560,
30,
342,
971,
2935,
405,
404,
732,
848,
1923,
603,
19326,
5295,
3007,
6728,
23178,
342,
4463,
1699,
1359,
635,
2581,
310,
3959,
1147,
2673,
18,
1021,
4886,
13041,
716,
3959,
7115,
854,
16335,
316,
326,
526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
283,
24903,
12,
203,
3639,
28895,
2502,
11955,
16,
203,
3639,
2254,
5034,
943,
7009,
1359,
16,
203,
3639,
1758,
283,
24903,
264,
16,
203,
3639,
467,
654,
39,
27,
5340,
1147,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
... |
./full_match/80001/0x024311f50CE2A2995e350B8A6da9cB2be243E67e/sources/contracts/Contract.sol | Product with ID 1 and price 200 tokens
| products.push(Product(1, 200)); | 5,687,097 | [
1,
4625,
348,
7953,
560,
30,
225,
8094,
598,
1599,
404,
471,
6205,
4044,
2430,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10406,
18,
6206,
12,
4133,
12,
21,
16,
4044,
10019,
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,
-10... |
pragma solidity 0.5.16;
import "./AuthereumEnsResolver.sol";
import "../base/Owned.sol";
import "../utils/strings.sol";
/**
* @title AuthereumEnsManager
* @author Authereum Labs, Inc.
* @dev Used to manage all subdomains.
* @dev This is also known as the Authereum registrar.
* @dev The public ENS registry is use... | @dev Lets the owner change the address of the Authereum ENS resolver contract @param _authereumEnsResolver The address of the Authereun ENS resolver contract | function changeAuthereumEnsResolver(address _authereumEnsResolver) external onlyOwner {
require(_authereumEnsResolver != address(0), "AEM: Address must not be null");
authereumEnsResolver = _authereumEnsResolver;
emit AuthereumEnsResolverChanged(_authereumEnsResolver);
}
| 6,437,318 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
511,
2413,
326,
3410,
2549,
326,
1758,
434,
326,
3123,
822,
379,
512,
3156,
5039,
6835,
632,
891,
389,
1944,
822,
379,
664,
87,
4301,
1021,
1758,
434,
326,
3123,
822,
318,
512,
3156,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
1730,
822,
379,
664,
87,
4301,
12,
2867,
389,
1944,
822,
379,
664,
87,
4301,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
1944,
822,
379,
664,
87,
4301,
480,
1758,
12,
20,
3631,
315,
37,
3375,
30,
5267,
... |
/**
*Submitted for verification at Etherscan.io on 2021-10-12
*/
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap ... | [WETH, BUSD, VAI] or [VAI, BUSD, WETH] [VAI, BUSD] or [BUSD, VAI] [VAI, DAI] or [VAI, USDC] routePairAddresses[xToken] = xRoute [VAI, BUSD, WETH, xRoute, xToken] [VAI, BUSD, WETH, BUNNY] [BUNNY, WETH, BUSD, VAI] [WETH, BUNNY] or [BUNNY, WETH] [USDT, BUNNY] or [BUNNY, USDT] | function _swap(address _from, uint amount, address _to) private returns (uint) {
address intermediate = routePairAddresses[_from];
if (intermediate == address(0)) {
intermediate = routePairAddresses[_to];
}
address[] memory path;
if (intermediate != address(0) &&... | 10,668,711 | [
1,
4625,
348,
7953,
560,
30,
225,
306,
59,
1584,
44,
16,
605,
3378,
40,
16,
776,
18194,
65,
578,
306,
58,
18194,
16,
605,
3378,
40,
16,
678,
1584,
44,
65,
306,
58,
18194,
16,
605,
3378,
40,
65,
578,
306,
3000,
9903,
16,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22270,
12,
2867,
389,
2080,
16,
2254,
3844,
16,
1758,
389,
869,
13,
3238,
1135,
261,
11890,
13,
288,
203,
3639,
1758,
12110,
273,
1946,
4154,
7148,
63,
67,
2080,
15533,
203,
3639,
309,
261,
2761,
6785,
422,
1758,
... |
./partial_match/1/0x4d74c068129C1DB1216FaB1b28b9C050908C577B/sources/contracts/AvocadoMultisig/AvocadoMultisigStructs.sol | @notice common params for both `cast()` and `castAuthorized()` | struct CastParams {
Action[] actions;
uint256 id;
int256 avoNonce;
bytes32 salt;
address source;
bytes metadata;
| 15,730,512 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2975,
859,
364,
3937,
1375,
4155,
20338,
471,
1375,
4155,
15341,
20338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
19782,
1370,
288,
203,
3639,
4382,
8526,
4209,
31,
203,
3639,
2254,
5034,
612,
31,
203,
3639,
509,
5034,
1712,
83,
13611,
31,
203,
3639,
1731,
1578,
4286,
31,
203,
3639,
1758,
1084,
31,
203,
3639,
1731,
1982,
31,
203,
... |
./full_match/1/0x181C94a45ED257baF2211D4ff7E1F49A5964134A/sources/contracts/metashib.sol | buy sellTo limit big dumps by the contract before the sells | function _transfer(address from, address to, uint256 amount) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
if(from !=... | 3,054,870 | [
1,
4625,
348,
7953,
560,
30,
225,
30143,
357,
80,
774,
1800,
5446,
6711,
635,
326,
6835,
1865,
326,
357,
3251,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
3238,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
3639,
2583,
12,
869,
... |
/**
*Submitted for verification at Etherscan.io on 2021-02-06
*/
// SPDX-License-Identifier: GPL
pragma solidity 0.6.12;
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() ex... | require(minorTokenAmt > 0, "GraSwapBuyback: NO_MINOR_TOKENS"); | if (minorTokenAmt == 0) { return; }
| 2,039,309 | [
1,
4625,
348,
7953,
560,
30,
225,
2583,
12,
17364,
1345,
31787,
405,
374,
16,
315,
14571,
12521,
38,
9835,
823,
30,
3741,
67,
6236,
916,
67,
8412,
55,
8863,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
17364,
1345,
31787,
422,
374,
13,
288,
327,
31,
289,
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... |
/**
* SourceUnit: /home/jgcarv/Dev/NFT/Orcs/etherOrcs-contracts/src/mainnet/EtherOrcs.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: Unlicense
pragma solidity 0.8.7;
interface OrcishLike {
function pull(address owner, uint256[] calldata ids) external;
function manuallyAdjustOrc... | @notice Modern and gas efficient ERC-721 + ERC-20/EIP-2612-like implementation, including the MetaData, and partially, Enumerable extensions. | contract ERC721 {
EVENTS
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, address indexed spender, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed op... | 9,847,434 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3431,
8865,
471,
16189,
14382,
4232,
39,
17,
27,
5340,
397,
4232,
39,
17,
3462,
19,
41,
2579,
17,
5558,
2138,
17,
5625,
4471,
16,
6508,
326,
27512,
16,
471,
19976,
16,
6057,
25121,
441... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
27,
5340,
288,
203,
21394,
9964,
55,
203,
377,
203,
565,
871,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
5034,
8808,
1147,
548,
1769,
203,
377,
203,
565,
871,
1716,
685,
1125,
12,
2867,
8808,
34... |
./full_match/1/0xC29e08FCbbb442Eafe9Ce57c57B9BD6758197852/sources/contracts/LaborDayToken.sol | if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buyburn the fees | 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");
require(!blacklisted[from], "Sender blacklist... | 17,041,239 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
1338,
4862,
1656,
281,
603,
25666,
1900,
19,
87,
1165,
87,
16,
741,
486,
4862,
603,
9230,
29375,
603,
357,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
./partial_match/3/0x482D235cb159e4CcAaA4eBdb9E00Ae7e5C0DA397/sources/Dice.sol | * @dev Play Dice Game, only Owner can call this function/ Check Game Players Balance Initialize the balance of players Emit events of this game | function playDiceGame(
address[] memory playerList,
uint256[] memory playerScoreList,
uint256 playAmount,
uint256 gameLength
) public payable onlyGovernance returns (bool) {
for (uint256 i = 0; i < gameLength; i++) {
require(
_playerETHBalance[... | 5,063,080 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
19592,
463,
1812,
14121,
16,
1338,
16837,
848,
745,
333,
445,
19,
2073,
14121,
3008,
3907,
30918,
9190,
326,
11013,
434,
18115,
16008,
2641,
434,
333,
7920,
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,
6599,
40,
1812,
12496,
12,
203,
3639,
1758,
8526,
3778,
7291,
682,
16,
203,
3639,
2254,
5034,
8526,
3778,
7291,
7295,
682,
16,
203,
3639,
2254,
5034,
6599,
6275,
16,
203,
3639,
2254,
5034,
7920,
1782,
203,
565,
262,
107... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
//
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since wh... | * @dev Returns the bep token owner./ | function getOwner() public override view returns (address) {
return owner();
}
| 1,492,197 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
506,
84,
1147,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13782,
1435,
1071,
3849,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
3410,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.3;
import "@openzeppelin/contracts/token/ERC20/ERC20Snapshot.sol";
import "@openzeppelin/contracts/utils/Arrays.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./Humanity.sol";
/**
* @title Vote
* A proxy contract for ProofOfHumanity that impl... | * @dev Changes the address of the the related ProofOfHumanity contract. @param _proofOfHumanity The address of the new contract./ | function changeProofOfHumanity(IProofOfHumanity _proofOfHumanity) external onlyDeployer {
proofOfHumanity = _proofOfHumanity;
}
| 969,189 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17776,
326,
1758,
434,
326,
326,
3746,
1186,
792,
951,
28201,
560,
6835,
18,
225,
632,
891,
389,
24207,
951,
28201,
560,
1021,
1758,
434,
326,
394,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
20439,
951,
28201,
560,
12,
45,
20439,
951,
28201,
560,
389,
24207,
951,
28201,
560,
13,
3903,
1338,
10015,
264,
288,
203,
3639,
14601,
951,
28201,
560,
273,
389,
24207,
951,
28201,
560,
31,
203,
565,
289,
203,
20... |
pragma solidity 0.5.11; // optimization runs: 200, evm version: petersburg
interface DharmaUpgradeBeaconControllerManagerInterface {
// Fire an event whenever the Adharma Contingency is activated or exited.
event AdharmaContingencyActivated();
event AdharmaContingencyExited();
// Store timestamp and last imp... | * @notice Internal view function to determine if the deadman's switch has expired and to get the time at which it is set to expire (i.e. 90 days from the last heartbeat). @return A boolean signifying whether the upgrade beacon controller is in an expired state, as well as the expiration time./ | function _heartbeatStatus() internal view returns (
bool expired, uint256 expirationTime
) {
expirationTime = _lastHeartbeat + 90 days;
expired = now > expirationTime;
}
| 1,759,429 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3186,
1476,
445,
358,
4199,
309,
326,
8363,
4728,
1807,
1620,
711,
7708,
471,
358,
336,
326,
813,
622,
1492,
518,
353,
444,
358,
6930,
261,
77,
18,
73,
18,
8566,
4681,
628,
326,
1142,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
25445,
1482,
1435,
2713,
1476,
1135,
261,
203,
565,
1426,
7708,
16,
2254,
5034,
7686,
950,
203,
225,
262,
288,
203,
565,
7686,
950,
273,
389,
2722,
15894,
397,
8566,
4681,
31,
203,
565,
7708,
273,
2037,
405,
7686,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ ... | Collateral ratio will adjust according to the $1 price target at genesis
| price_target = 1000000; | 220,997 | [
1,
4625,
348,
7953,
560,
30,
225,
17596,
2045,
287,
7169,
903,
5765,
4888,
358,
326,
271,
21,
6205,
1018,
622,
21906,
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,... | [
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,
3639,
6205,
67,
3299,
273,
15088,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/proxy/Clones.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./ERC20.sol";
import "../wallet/ShardedWallet.sol";
import "../governance/IGovernance.sol";
import "../interface/IERC1363Receiver.sol";
import "../inte... | update balances transfer | function withdrawSuppliedShards(uint256 amount) external returns (uint256, uint256) {
require(amount > 0);
uint256 shardLPTokenSupply = shardLPToken.totalSupply();
uint256 balance = ShardedWallet(payable(wallet)).balanceOf(address(this)) - _shardLPExtra.feeToNiftex - _shardLPExtra.feeToArt... | 4,353 | [
1,
4625,
348,
7953,
560,
30,
225,
1089,
324,
26488,
7412,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
3088,
3110,
15966,
12,
11890,
5034,
3844,
13,
3903,
1135,
261,
11890,
5034,
16,
2254,
5034,
13,
288,
203,
3639,
2583,
12,
8949,
405,
374,
1769,
203,
203,
3639,
2254,
5034,
5820,
14461,
1345,
3088,
1283,
273,
... |
/*
* Kryptium Oracle Smart Contract v.1.0.0
* Copyright © 2018 Kryptium Team <info@kryptium.io>
* Author: Giannis Zarifis <jzarifis@kryptium.io>
*
* The Oracle smart contract is used by the House smart contract (and, in turn,
* the betting app) as a “trusted source of truth” for upcoming events and their ... | * Get event outcome is Set/ | function getEventOutcomeIsSet(uint eventId, uint outputId) public view returns(bool isSet) {
return (eventOutputs[eventId][outputId].isSet);
}
| 15,809,426 | [
1,
4625,
348,
7953,
560,
30,
380,
968,
871,
12884,
353,
1000,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9832,
19758,
15737,
12,
11890,
26004,
16,
2254,
876,
548,
13,
1071,
1476,
1135,
12,
6430,
13532,
13,
288,
203,
3639,
327,
261,
2575,
13856,
63,
2575,
548,
6362,
2844,
548,
8009,
291,
694,
1769,
203,
565,
289,
203,
203,
... |
./partial_match/1/0xFbE7616bc63EC3F46d453fAAA7A02fa581a2BB9d/sources/TokenERC20.sol | 用mapping保存每个地址对应的余额 存储对账号的控制 事件,用来通知客户端交易发生 事件,用来通知客户端代币被消费 | contract TokenERC20 {
string public name;
string public symbol;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to, uint256 value);
event ... | 9,272,435 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
168,
247,
106,
6770,
165,
128,
256,
166,
260,
251,
167,
112,
242,
165,
121,
108,
166,
255,
113,
166,
256,
227,
166,
112,
122,
166,
123,
247,
168,
253,
231,
165,
126,
252,
170,
100,
256,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3155,
654,
39,
3462,
288,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
7010,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
1071,
11013,
951,
31,
203,
56... |
./full_match/80001/0x5DBd381F22f8DF1571304475DE865BBec2F3071d/sources/contracts/oasis-dev/OasisFeatures.sol | @notice Address of the OasisToken contract. | address public immutable oasisToken;
| 839,738 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
5267,
434,
326,
531,
17247,
1345,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
1071,
11732,
320,
17247,
1345,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity =0.5.16;
pragma experimental ABIEncoderV2;
/**
* ______ ____ __ ______
* / ____/____ _ ____ ___ ___ / __ \ ___ ____ _ ____/ /___ _____ / ____/____ _____
* / / __ / __ `// __ `__ \ / _ \ / /_/ // _ \ / __ `// __ // _ \... | * @dev Returns previous accounts, of player `account`./ uint256 shareholderIssued | function _playerPreviousAccounts(address account)
private
view
returns (
uint256[SM_PAGE] memory serials,
address[SM_PAGE] memory accounts
)
{
uint256 previousPlayerSerial;
uint8 i = 0;
if (account == address(0))
{
... | 12,693,150 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
2416,
9484,
16,
434,
7291,
1375,
4631,
8338,
19,
2254,
5034,
7433,
4505,
7568,
5957,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
14872,
8351,
13971,
12,
2867,
2236,
13,
203,
3639,
3238,
203,
3639,
1476,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
63,
7303,
67,
11219,
65,
3778,
2734,
87,
16,
203,
5411,
1758,
63,
7303,
67,
11219,
65,
3778,
... |
/**
* @authors: [@unknownunknown1, @fnanni-0]
* @reviewers: [@ferittuncer, @epiqueras, @nix1g]
* @auditors: []
* @bounties: []
*/
pragma solidity >=0.7.1;
pragma experimental ABIEncoderV2;
import "@kleros/erc-792/contracts/IArbitrable.sol";
import "@kleros/erc-792/contracts/IArbitrator.sol";
import "@kleros/... | The transaction ID. #pcar: 240? to save 2 bytes? u256 is cast as u240()in raiseDispute
| uint240 transactionID; | 12,996,592 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
2492,
1599,
18,
468,
2436,
297,
30,
27610,
35,
358,
1923,
576,
1731,
35,
582,
5034,
353,
4812,
487,
582,
28784,
1435,
267,
1002,
1669,
2507,
203,
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,
3639,
2254,
28784,
2492,
734,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/*
https://charizard.farm
Telegram group: t.me/charizardfarm
Twitter: @CharizardFarm
Inspired from MNNF, ROT and SUSHI
."-,.__
`. `. ,
.--' .._,'"-' `.
. .' `'
`. / ,'
` '--. ,-"'
`"... | Withdraw LP tokens from Trainer. | function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "withdraw: amount is exceeds yours");
updatePool(_pid);
uint256 pending = user.amount.mul(pool.acc... | 1,241,386 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
511,
52,
2430,
628,
2197,
14522,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
565,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
3576,
... |
./partial_match/1/0x4b4a9706c9D275067f84c1521EFe37D1545cA913/sources/IStakefishTransactionFeePool.sol | The part of contract balance that belong to stakefish as commissions. The part of contract balance that belong to delegators, but not yet earmarked for specific users. The part of contract balance that are earmarked for distribution to specific users but not yet collected. | struct ComputationCache {
uint256 lastCacheUpdateTime;
uint256 totalValidatorUptime;
uint256 totalUncollectedCommission;
uint256 totalUncollectedUserBalance;
uint256 totalUnsentUserRewards;
}
event ValidatorJoined(bytes indexed validatorPubkey, address indexed depos... | 2,718,779 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
1087,
434,
6835,
11013,
716,
10957,
358,
384,
911,
22905,
487,
1543,
1054,
1115,
18,
1021,
1087,
434,
6835,
11013,
716,
10957,
358,
11158,
3062,
16,
1496,
486,
4671,
6897,
3355,
329,
364,
2923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
14169,
367,
1649,
288,
203,
3639,
2254,
5034,
1142,
1649,
1891,
950,
31,
203,
3639,
2254,
5034,
2078,
5126,
57,
10650,
31,
203,
203,
3639,
2254,
5034,
2078,
984,
14676,
329,
799,
3951,
31,
203,
3639,
2254,
5034,
2078,
... |
pragma solidity ^0.4.13;
import './math/SafeMath.sol';
import './time/Clock.sol';
import './FiatBase.sol';
import './ownership/Ownable.sol';
import './LibSort.sol';
contract OpenBids is Ownable {
using SafeMath for uint256;
// beware: constant is not enforced
uint constant uintMAX = 2**256-1;
struct Bid {... | beware: constant is not enforced | contract OpenBids is Ownable {
using SafeMath for uint256;
uint constant uintMAX = 2**256-1;
struct Bid {
address bidder;
bool isWinner;
}
struct DoublyLinkedList {
uint head;
uint tail;
}
struct BidderAllowance {
uint fiat;
uint eth;
}
mapping(address => uint[]) public bids... | 12,619,546 | [
1,
4625,
348,
7953,
560,
30,
225,
324,
359,
834,
30,
5381,
353,
486,
570,
19778,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
3502,
38,
2232,
353,
14223,
6914,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
2254,
5381,
2254,
6694,
273,
576,
636,
5034,
17,
21,
31,
203,
203,
225,
1958,
605,
350,
288,
203,
565,
1758,
9949,
... |
./partial_match/1/0x7afB02E4D9dd32Ce012dDffE867e0Deb8381a69e/sources/Perpbot.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("Perpbot", "PB") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswa... | 4,355,913 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
2173,
84,
4819,
3113,
315,
20724,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,... |
pragma solidity ^0.5.16;
interface IERC20 {
function TOTALSUPPLY529() external view returns (uint); //inject NONSTANDARD NAMING
function BALANCEOF13(address account) external vi... | inject NONSTANDARD NAMING
| function ISCONTRACT572(address account) internal view returns (bool) { | 1,780,091 | [
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,
4437,
6067,
2849,
1268,
25,
9060,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
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,
... |
pragma solidity >=0.4.24;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./AbstractOwnable.sol";
abstract contract Withdrawable is AbstractOwnable {
using SafeERC20 for IERC20;
address constant ETHER = address(0);
event LogWithdrawTo... | * @dev Withdraw asset. @param asset Asset to be withdrawn./ | function adminWithdraw(address asset) public onlyOwner {
uint tokenBalance = adminWithdrawAllowed(asset);
require(tokenBalance > 0, "admin witdraw not allowed");
_withdraw(asset, tokenBalance);
}
| 989,743 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3423,
9446,
3310,
18,
632,
891,
3310,
10494,
358,
506,
598,
9446,
82,
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,
225,
445,
3981,
1190,
9446,
12,
2867,
3310,
13,
1071,
1338,
5541,
288,
203,
565,
2254,
1147,
13937,
273,
3981,
1190,
9446,
5042,
12,
9406,
1769,
203,
565,
2583,
12,
2316,
13937,
405,
374,
16,
315,
3666,
31039,
9446,
486,
2935,
88... |
pragma solidity ^0.4.17;
// Lottesy 10 ETH lottery
// Copyright (c) 2017 Lottesy
// ----------------------------------------------------
// Send any amount multiple of 0.01 ETH to the address
// shown at http://lottesy.com
// Win 10 ETH today!
// ----------------------------------------------------
// We use Oraclize... | theWinner = LottesyAddress; who is the winner?theWinner.transfer (0.001 ether); send prize to the winner | if (oraclize_randomDS_proofVerify__returnCode(_queryId, _result, _proof) != 0) {
proofVerifyFailed = true;
throw;
maxRange = 2**(8*2);
randomNumber = uint(sha3(_result)) % maxRange;
winningChance = uint(((((randomNumber+60)*10000)/65535)*1100)/10000);
theWinne... | 7,772,664 | [
1,
4625,
348,
7953,
560,
30,
326,
59,
7872,
273,
511,
352,
1078,
93,
1887,
31,
10354,
353,
326,
5657,
1224,
35,
5787,
59,
7872,
18,
13866,
261,
20,
18,
11664,
225,
2437,
1769,
1366,
846,
554,
358,
326,
5657,
1224,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
280,
10150,
554,
67,
9188,
3948,
67,
24207,
8097,
972,
2463,
1085,
24899,
2271,
548,
16,
389,
2088,
16,
389,
24207,
13,
480,
374,
13,
288,
203,
1850,
14601,
8097,
2925,
273,
638,
31,
203,
1850,
604,
31,
203,
363... |
./partial_match/56/0x41b98Df01000BD7EBb6d91c333C73c68e6CeBFC9/sources/src/automation/Job.sol | solhint-disable-line not-rely-on-time
| lastWorkTime = block.timestamp; | 11,039,883 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
1369,
486,
17,
266,
715,
17,
265,
17,
957,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1142,
2421,
950,
273,
1203,
18,
5508,
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,
-... |
/**
*Submitted for verification at Etherscan.io on 2021-11-01
*/
// SPDX-License-Identifier: UNLICENSED
// File: @openzeppelin/contracts/utils/Counters.sol
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset.... | Track if they have claimed their presale tokens yet or not.
| mapping(address => bool) presaleClaimed; | 7,614,141 | [
1,
4625,
348,
7953,
560,
30,
225,
11065,
309,
2898,
1240,
7516,
329,
3675,
4075,
5349,
2430,
4671,
578,
486,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2874,
12,
2867,
516,
1426,
13,
4075,
5349,
9762,
329,
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... |
./full_match/42220/0xdE281a72cb3cA3C64258316AE102B9E06A3d0a3c/sources/project_/contracts/CarbonCreditRakeback.sol | @notice Set a fee divisor for a token @dev A fee divisor is the reciprocal of the actual fee, e.g. 100 is 1% because 1/100 = 0.01 @param token_ - the token for which we set the fee divisor @param feeDivisor_ - the fee divisor | function setFeeDivisor(CarbonCreditToken token_, uint256 feeDivisor_) onlyOwner public {
require(bundle.feeDivisor() < feeDivisor_, "feeDivisor must exceed base fee");
require(_feeDivisors[token_] != feeDivisor_, "feeDivisor must change");
_tokensWithFeeDivisorOverrides.add(address(token_))... | 16,327,279 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
279,
14036,
15013,
364,
279,
1147,
632,
5206,
432,
14036,
15013,
353,
326,
5863,
30101,
434,
326,
3214,
14036,
16,
425,
18,
75,
18,
2130,
353,
404,
9,
2724,
404,
19,
6625,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
444,
14667,
7244,
12385,
12,
39,
11801,
16520,
1345,
1147,
67,
16,
2254,
5034,
14036,
7244,
12385,
67,
13,
1338,
5541,
1071,
288,
203,
3639,
2583,
12,
9991,
18,
21386,
7244,
12385,
1435,
411,
14036,
7244,
12385,
67,
16,
... |
pragma solidity 0.4.24;
import "../lib/ens/AbstractENS.sol";
import "../lib/ens/IPublicResolver.sol";
import "./IFIFSResolvingRegistrar.sol";
/**
* A registrar that allocates subdomains and sets resolvers to the first person to claim them.
*
* Adapted from ENS' FIFSRegistrar:
* https://github.com/ethereum/ens/... | * A registrar that allocates subdomains and sets resolvers to the first person to claim them. Adapted from ENS' FIFSRegistrar:/ | contract FIFSResolvingRegistrar is IFIFSResolvingRegistrar {
bytes32 public rootNode;
AbstractENS internal ens;
IPublicResolver internal defaultResolver;
bytes4 private constant ADDR_INTERFACE_ID = 0x3b3b57de;
event ClaimSubdomain(bytes32 indexed subnode, address indexed owner, address indexed res... | 6,487,874 | [
1,
4625,
348,
7953,
560,
30,
380,
432,
17450,
297,
716,
4767,
815,
720,
14180,
471,
1678,
24170,
358,
326,
1122,
6175,
358,
7516,
2182,
18,
22792,
329,
628,
512,
3156,
11,
4011,
4931,
30855,
27824,
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,
16351,
4011,
4931,
2903,
6282,
30855,
353,
467,
1653,
4931,
2903,
6282,
30855,
288,
203,
565,
1731,
1578,
1071,
10181,
31,
203,
565,
4115,
21951,
2713,
19670,
31,
203,
565,
2971,
447,
4301,
2713,
805,
4301,
31,
203,
203,
565,
1731,... |
./partial_match/1/0x2510Bf8b85126E8B90A9357bF72103ea0B5C16ef/sources/ORANGE.sol | set as charity wallet
| charityWallet = address(0x6666cfc35A766730ae7671b95E3060E197D8677D); | 9,160,232 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
1149,
560,
9230,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
3001,
560,
16936,
273,
1758,
12,
20,
92,
31684,
71,
7142,
4763,
37,
27,
6028,
27,
5082,
8906,
6669,
11212,
70,
8778,
41,
5082,
4848,
41,
31728,
40,
5292,
4700,
40,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/11155111/0x7d62694BbB96eE116c5e0B9e70062D49d49B3bBe/sources/contracts/Campaign.sol | Check if the unique contributors' approvals exceed the required threshold | function makePayment(uint _campaignId, uint _requestId) public {
Campaign storage campaign = campaigns[_campaignId];
Request storage request = campaign.requests[_requestId];
require(request.complete == false, "The request has already been processed.");
require(request.approvalCount > (campaign.contr... | 3,825,628 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
326,
3089,
13608,
13595,
11,
6617,
4524,
9943,
326,
1931,
5573,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1221,
6032,
12,
11890,
389,
14608,
548,
16,
2254,
389,
2293,
548,
13,
1071,
288,
203,
565,
17820,
2502,
8965,
273,
8965,
87,
63,
67,
14608,
548,
15533,
203,
565,
1567,
2502,
590,
273,
8965,
18,
11420,
63,
67,
2293,
54... |
// Lowest version pragma solidity 0.4.16 compiled with 0.4.19
pragma solidity ^0.4.16;
// copyright contact@EtherMon.io
contract SafeMath {
/* function assert(bool assertion) internal { */
/* if (!assertion) { */
/* throw; */
/* } */
/* } // assert no longer needed once solidity is o... | Move an existing element into the vacated key slot. | function removeSellingItem(uint _itemId) onlyModerators external {
SellingItem storage item = sellingDict[_itemId];
if (item.index == 0)
return;
if (item.index <= sellingList.length) {
sellingDict[sellingList[sellingList.length-1]].index = item.index;
... | 1,083,841 | [
1,
4625,
348,
7953,
560,
30,
225,
9933,
392,
2062,
930,
1368,
326,
30602,
690,
498,
4694,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
55,
1165,
310,
1180,
12,
11890,
389,
1726,
548,
13,
1338,
1739,
264,
3062,
3903,
288,
203,
3639,
348,
1165,
310,
1180,
2502,
761,
273,
357,
2456,
5014,
63,
67,
1726,
548,
15533,
203,
3639,
309,
261,
1726,
18,
16... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal... | * @title Restricted Exposes onlyMonetha modifier/MonethaAddress set event | contract Restricted is Ownable {
event MonethaAddressSet(
address _address,
bool _isMonethaAddress
);
mapping (address => bool) public isMonethaAddress;
}
modifier onlyMonetha() {
require(isMonethaAddress[msg.sender]);
_;
}
function setMonethaAddress(address ... | 1,015,199 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
29814,
225,
1312,
10522,
1338,
11415,
546,
69,
9606,
19,
11415,
546,
69,
1887,
444,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
29814,
353,
14223,
6914,
288,
203,
203,
565,
871,
9041,
546,
69,
1887,
694,
12,
203,
3639,
1758,
389,
2867,
16,
203,
3639,
1426,
389,
291,
11415,
546,
69,
1887,
203,
565,
11272,
203,
203,
565,
2874,
261,
2867,
516,
1426,
... |
./full_match/44787/0xa6616Fc321E5Dc0ab8C79324Ca052E33617AD310/sources/contracts/donationMiner/DonationMinerImplementation.sol | * @notice Updates reward period default params @param _newRewardPeriodSize value of new rewardPeriodSize @param _newDecayNumerator value of new decayNumerator @param _newDecayDenominator value of new decayDenominator/ | function updateRewardPeriodParams(
uint256 _newRewardPeriodSize,
uint256 _newDecayNumerator,
uint256 _newDecayDenominator
) external override onlyOwner {
initializeRewardPeriods();
uint256 _oldRewardPeriodSize = rewardPeriodSize;
uint256 _oldDecayNumerator = deca... | 13,251,896 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15419,
19890,
3879,
805,
859,
632,
891,
389,
2704,
17631,
1060,
5027,
1225,
460,
434,
394,
19890,
5027,
1225,
632,
891,
389,
2704,
1799,
528,
2578,
7385,
460,
434,
394,
22286,
2578,
7385,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
17631,
1060,
5027,
1370,
12,
203,
3639,
2254,
5034,
389,
2704,
17631,
1060,
5027,
1225,
16,
203,
3639,
2254,
5034,
389,
2704,
1799,
528,
2578,
7385,
16,
203,
3639,
2254,
5034,
389,
2704,
1799,
528,
8517,
26721,
203,... |
// File: openzeppelin-solidity/contracts/cryptography/ECDSA.sol
pragma solidity ^0.5.0;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
/**
... | @title ERC-173 Contract Ownership Standard @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-173.md Note: the ERC-165 identifier for this interface is 0x7f5828d0 | interface IERC173 /* is ERC165 */ {
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function owner() external view returns (address);
function transferOwnership(address _newOwner) external;
}
| 11,762,029 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
4232,
39,
17,
31331,
13456,
14223,
9646,
5310,
8263,
632,
5206,
2164,
2333,
2207,
6662,
18,
832,
19,
546,
822,
379,
19,
41,
18246,
19,
10721,
19,
7525,
19,
41,
2579,
55,
19,
73,
625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
654,
39,
31331,
1748,
353,
4232,
39,
28275,
1195,
288,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
565,
445,
3410,
1435,
3903,
1476,
1135,
261,
2... |
pragma solidity ^0.4.16;
contract ERC20Token{
//ERC20 base standard
uint256 public totalSupply;
function balanceOf(address _owner) public view returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(addr... | Adapted from zeppelin-solidity's BasicToken, StandardToken and BurnableToken contracts https:github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/token/ERC20/BasicToken.sol https:github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/token/ERC20/StandardToken.sol https:github.com/OpenZeppelin/zeppe... | contract insChainToken is Safe, ERC20Token {
uint256 public constant INITIAL_SUPPLY = 1e9 * 10**uint256(decimals);
uint256 public totalSupply;
string public version = '2';
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
mapping (address => uint25... | 13,126,390 | [
1,
4625,
348,
7953,
560,
30,
225,
22792,
329,
628,
998,
881,
84,
292,
267,
17,
30205,
560,
1807,
7651,
1345,
16,
8263,
1345,
471,
605,
321,
429,
1345,
20092,
2333,
30,
6662,
18,
832,
19,
3678,
62,
881,
84,
292,
267,
19,
94,
881,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2763,
3893,
1345,
353,
14060,
16,
4232,
39,
3462,
1345,
288,
203,
565,
2254,
5034,
1071,
5381,
28226,
67,
13272,
23893,
273,
404,
73,
29,
380,
1728,
636,
11890,
5034,
12,
31734,
1769,
203,
565,
2254,
5034,
1071,
2078,
3088,
... |
./partial_match/1/0x7663360539Da73DcD96ae07f2CE44283Aa02A7B0/sources/contracts/TokenVesting.sol | * @return the cliff time of the token vesting./ | function getCliff() external view returns (uint256) {
return _cliff;
}
| 9,324,101 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
326,
927,
3048,
813,
434,
326,
1147,
331,
10100,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13674,
3048,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
830,
3048,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | * @notice Calculates the relative price between two assets in a pool @param pool address of a pool contract that implements ISwap @param inputIndex index of the input token in the pool @param outputIndex index of the output token in the pool @return price relative price of output tokens per one input token/ | function relativePrice(
address pool,
uint256 inputIndex,
uint256 outputIndex
) external view returns (uint256 price) {
uint256[] memory decimalsArr = storedDecimals[pool];
require(decimalsArr.length > 0, "Must call addPool() first");
uint256[] memory balances = ... | 1,120,059 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
26128,
326,
3632,
6205,
3086,
2795,
7176,
316,
279,
2845,
632,
891,
2845,
1758,
434,
279,
2845,
6835,
716,
4792,
4437,
91,
438,
632,
891,
810,
1016,
770,
434,
326,
810,
1147,
316,
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,
3632,
5147,
12,
203,
3639,
1758,
2845,
16,
203,
3639,
2254,
5034,
810,
1016,
16,
203,
3639,
2254,
5034,
876,
1016,
203,
565,
262,
3903,
1476,
1135,
261,
11890,
5034,
6205,
13,
288,
203,
3639,
2254,
5034,
8526,
3778,
151... |
pragma solidity ^0.5.16;
import "./KToken.sol";
import "./KMCD.sol";
import "./ErrorReporter.sol";
import "./Exponential.sol";
import "./KineControllerInterface.sol";
import "./ControllerStorage.sol";
import "./Unitroller.sol";
import "./KineOracleInterface.sol";
import "./KineSafeMath.sol";
/**
Copyright 2020 Compou... | * @notice Checks if the account should be allowed to borrow the underlying asset of the given market @param kToken The market to verify the borrow against @param borrower The account which would borrow the asset @param borrowAmount The amount of underlying the account would borrow @return false and reason if borrow not... | function borrowAllowed(address kToken, address borrower, uint borrowAmount) external returns (bool allowed, string memory reason) {
if (borrowGuardianPaused[kToken]) {
allowed = false;
reason = BORROW_PAUSED;
return (allowed, reason);
}
if (!markets[kToke... | 14,779,120 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
13074,
309,
326,
2236,
1410,
506,
2935,
358,
29759,
326,
6808,
3310,
434,
326,
864,
13667,
632,
891,
417,
1345,
1021,
13667,
358,
3929,
326,
29759,
5314,
632,
891,
29759,
264,
1021,
2236,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29759,
5042,
12,
2867,
417,
1345,
16,
1758,
29759,
264,
16,
2254,
29759,
6275,
13,
3903,
1135,
261,
6430,
2935,
16,
533,
3778,
3971,
13,
288,
203,
3639,
309,
261,
70,
15318,
16709,
2779,
28590,
63,
79,
1345,
5717,
288,
... |
./full_match/4/0x33CC0d896932F63eB11C4bEBB6D76278c4AE78c8/sources/contracts/NekoDaruma.sol | Function to return the total supply | function totalSupply() public view returns (uint256) {
return _nextTokenId.current() - 1;
}
| 652,267 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
358,
327,
326,
2078,
14467,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2078,
3088,
1283,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
1377,
327,
389,
4285,
1345,
548,
18,
2972,
1435,
300,
404,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//! The Secret Store server key generation service contract.
//!
//! Copyright 2017 Svyatoslav Nikolsky, Parity Technologies Ltd.
//!
//! Licensed under the Apache License, Version 2.0 (the "License");
//! you may not use this file except in compliance with the License.
//! You may obtain a copy of the License at
//!
/... | === Internal methods === Clear server key generation request traces. | function clearServerKeyGenerationRequest(bytes32 serverKeyId, ServerKeyGenerationRequest storage request) private {
clearResponses(request.responses);
delete serverKeyGenerationRequests[serverKeyId];
removeRequestKey(serverKeyGenerationRequestsKeys, serverKeyId);
}
| 12,851,624 | [
1,
4625,
348,
7953,
560,
30,
225,
757,
3186,
2590,
757,
10121,
1438,
498,
9377,
590,
19649,
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,
202,
915,
2424,
2081,
653,
13842,
691,
12,
3890,
1578,
1438,
14140,
16,
3224,
653,
13842,
691,
2502,
590,
13,
3238,
288,
203,
202,
202,
8507,
12222,
12,
2293,
18,
11822,
1769,
203,
202,
202,
3733,
1438,
653,
13842,
6421,
63,
3567... |
pragma solidity >=0.4.24 <0.6.0;
import {Ownable} from "openzeppelin-solidity/contracts/ownership/Ownable.sol";
// WARNING!! This is a tool for dev & demo only. Time Travel is theoretically possible but not
// WARNING!! been proven yet and can certainly not be done on-chain.
/** @title Time Machine
* @author Adn... | * @dev Moves time backwards by hours relative to 'time_now' @param _hours The hours into the past @return The new 'now' time/ | function backHours(uint _hours)
public
onlyOwner
returns (uint the_time_now)
{
time_now = time_now - _hours * secs_in_hour;
return time_now;
}
| 13,007,544 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
10829,
813,
12727,
635,
7507,
3632,
358,
296,
957,
67,
3338,
11,
632,
891,
389,
16814,
1021,
7507,
1368,
326,
8854,
632,
2463,
1021,
394,
296,
3338,
11,
813,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1473,
14910,
12,
11890,
389,
16814,
13,
7010,
3639,
1071,
7010,
3639,
1338,
5541,
203,
3639,
1135,
261,
11890,
326,
67,
957,
67,
3338,
13,
203,
565,
288,
203,
3639,
813,
67,
3338,
273,
813,
67,
3338,
300,
389,
16814,
... |
./partial_match/1/0x21AF9DBa45989512468B08d13978e9040cc0cEF6/sources/FraxUnifiedFarm_ERC20_KyberSwapElasticV2.sol | COMMENTED OUT SO COMPILER DOESNT COMPLAIN. UNCOMMENT WHEN DEPLOYING | {
stakingToken = IKyberSwapFarmingToken(_stakingToken);
seed_token_id = _seed_token_id;
KSE_ComboOracleV2 = ComboOracle_KyberSwapElasticV2(_kse_combo_oracle);
}
| 3,675,223 | [
1,
4625,
348,
7953,
560,
30,
225,
5423,
16196,
6404,
8210,
7460,
5423,
1102,
14668,
5467,
3991,
1784,
5423,
26549,
18,
5019,
12200,
29707,
2030,
22971,
1360,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
384,
6159,
1345,
273,
467,
47,
93,
744,
12521,
42,
4610,
310,
1345,
24899,
334,
6159,
1345,
1769,
203,
203,
3639,
5009,
67,
2316,
67,
350,
273,
389,
12407,
67,
2316,
67,
350,
31,
203,
3639,
1475,
1090,
67,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.2;
pragma experimental ABIEncoderV2;
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import '@openzeppelin/contracts/utils/ReentrancyGuard.sol';
import { SafeMath } from '@openzeppelin/contracts/math/Safe... | * @dev set the percentage that should be reserved in vault for withdraw/ | function setWithdrawReserve(uint256 _reserve) external onlyOwner {
require(_reserve < 5000, "O16");
withdrawReserve = _reserve;
}
| 1,583,014 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
444,
326,
11622,
716,
1410,
506,
8735,
316,
9229,
364,
598,
9446,
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,... | [
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,
444,
1190,
9446,
607,
6527,
12,
11890,
5034,
389,
455,
6527,
13,
3903,
1338,
5541,
288,
203,
565,
2583,
24899,
455,
6527,
411,
20190,
16,
315,
51,
2313,
8863,
203,
565,
598,
9446,
607,
6527,
273,
389,
455,
6527,
31,
2... |
pragma solidity ^0.4.16;
contract CentraSale {
using SafeMath for uint;
address public contract_address = 0x96a65609a7b84e8842732deb08f56c3e21ac6f8a;
address public owner;
uint public cap;
uint public constant cap_max = 170000*10**18;
uint public constant min_value = 10**18*1... | get total metal cards | function cards_metal_total() constant returns (uint) {
return cards_metal.length;
}
| 2,136,318 | [
1,
4625,
348,
7953,
560,
30,
336,
2078,
5100,
287,
18122,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18122,
67,
10578,
287,
67,
4963,
1435,
5381,
1135,
261,
11890,
13,
288,
7010,
1377,
327,
18122,
67,
10578,
287,
18,
2469,
31,
203,
565,
289,
540,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/42/0x92FC06968Bbe5310dc5745CD51201bd8d1448b2a/sources/contracts/Swap.sol | For the scope of these swap examples, we will detail the design considerations when using `exactInput`, `exactInputSingle`, `exactOutput`, and `exactOutputSingle`. It should be noted that for the sake of these examples, we purposefully pass in the swap router instead of inherit the swap router for simplicity. More ad... | contract SwapExamples {
ISwapRouter public immutable swapRouter;
address public constant DAI = 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984;
address public constant WETH9 = 0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa;
uint24 public constant poolFee = 3000;
pragma solidity ^0.8.0;
constructor(ISwa... | 16,271,550 | [
1,
4625,
348,
7953,
560,
30,
225,
2457,
326,
2146,
434,
4259,
7720,
10991,
16,
732,
903,
7664,
326,
8281,
5260,
1012,
1347,
1450,
1375,
17165,
1210,
9191,
1375,
17165,
1210,
5281,
9191,
1375,
17165,
1447,
9191,
471,
225,
1375,
17165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12738,
23905,
288,
203,
203,
203,
565,
4437,
91,
438,
8259,
1071,
11732,
7720,
8259,
31,
203,
203,
203,
565,
1758,
1071,
5381,
463,
18194,
273,
374,
92,
21,
74,
29,
28585,
69,
7140,
72,
25,
69,
42,
25,
17156,
21,
40,
4... |
./full_match/5/0xFBBf2509B24b2Db1e85bCAcf242c0442429e0EB0/sources/project_/contracts/core.sol | * @dev deposits The underlying asset into the reserve. @param _pool the address of the pool @param _amount the amount to be deposited/ | function lend(address _pool, int _amount) external onlyAmountNotZero(_amount) nonReentrant returns(uint mintedTokens) {
(address _token0, address _token1) = getPoolTokens(_pool);
require(_token0 != address(0), 'UnilendV2: POOL NOT FOUND');
uint _nftID = IUnilendV2Position(positionsAddress).... | 11,591,716 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
443,
917,
1282,
1021,
6808,
3310,
1368,
326,
20501,
18,
632,
891,
389,
6011,
326,
1758,
434,
326,
2845,
632,
891,
389,
8949,
326,
3844,
358,
506,
443,
1724,
329,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
328,
409,
12,
2867,
389,
6011,
16,
509,
389,
8949,
13,
3903,
1338,
6275,
1248,
7170,
24899,
8949,
13,
1661,
426,
8230,
970,
1135,
12,
11890,
312,
474,
329,
5157,
13,
288,
203,
3639,
261,
2867,
389,
2316,
20,
16,
1758,... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.4.21 <0.9.0;
import "./DappToken.sol";
import "./DaiToken.sol";
contract TokenFarm {
string public name = "Dapp Token Farm";
address public owner;
DappToken public dappToken;
DaiToken public daiToken;
address[] public stakers;
... | unstaking tokens (withdraw) | function unstakeTokens() public {
uint balance = stakingBalance[msg.sender];
require(balance > 0, 'staking balance cannot be 0');
daiToken.transfer(msg.sender, balance);
stakingBalance[msg.sender] = 0;
isStaking[msg.sender] = false;
}
| 12,882,042 | [
1,
4625,
348,
7953,
560,
30,
640,
334,
6159,
2430,
261,
1918,
9446,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
640,
334,
911,
5157,
1435,
1071,
288,
203,
3639,
2254,
11013,
273,
384,
6159,
13937,
63,
3576,
18,
15330,
15533,
203,
203,
3639,
2583,
12,
12296,
405,
374,
16,
296,
334,
6159,
11013,
2780,
506,
374,
8284,
203,
203,
3639... |
./partial_match/1/0xE5fEB62FB34aDbA661B7c8256887a8B9a21C2278/sources/contracts/core/utils/ArweaveURILib.sol | * @dev Equivalent to `store(uri, value, false)`. @param uri The URI storage reference. @param value The string representation of the URI./ | function initialize(URI storage uri, string memory value) internal {
store(uri, value, false);
}
| 3,644,525 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
31208,
358,
1375,
2233,
12,
1650,
16,
460,
16,
629,
13,
8338,
632,
891,
2003,
1377,
1021,
3699,
2502,
2114,
18,
632,
891,
460,
565,
1021,
533,
4335,
434,
326,
3699,
18,
19,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
3098,
2502,
2003,
16,
533,
3778,
460,
13,
2713,
288,
203,
3639,
1707,
12,
1650,
16,
460,
16,
629,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/41/0xfD268c29b7c99D61A89651EacdBF0853B107Dd36/sources/SK-NFTAuction.sol | function closeAuction check if a bid was accepted | function closeAuction(uint256 tokenId) external {
require(
idToMarketItem[tokenId].active == true,
'This NFT is not for auction.'
);
require(
idToMarketItem[tokenId].endTime <= block.timestamp,
'This auction has not ended yet.'
);
... | 16,377,581 | [
1,
4625,
348,
7953,
560,
30,
377,
445,
1746,
37,
4062,
866,
309,
279,
9949,
1703,
8494,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1746,
37,
4062,
12,
11890,
5034,
1147,
548,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
612,
774,
3882,
278,
1180,
63,
2316,
548,
8009,
3535,
422,
638,
16,
203,
5411,
296,
2503,
423,
4464,
353,
486,
364,
279,
4062,... |
pragma solidity >=0.5.0 <0.6.0;
/// @title ERC165Interface
/// @dev https://eips.ethereum.org/EIPS/eip-165
interface ERC165Interface {
/// @notice Query if a contract implements an interface
/// @param interfaceId The interface identifier, as specified in ERC-165
/// @dev Interface identification is speci... | @dev Brings a tired Wizard back to fightin' strength. Can only be used during the revival phase. The buy-back can be to any power level between the Blue Wall power (at the low end) and the previous max power achived by this Wizard in this tournament. This does mean a revival can bring a Wizard back abov... | function revive(uint256 wizardId) external payable exists(wizardId) duringRevivalPhase onlyGateKeeper {
BattleWizard storage wizard = wizards[wizardId];
uint88 maxPower = wizard.maxPower;
uint88 revivalPower = uint88(msg.value / powerScale);
require((revivalPower > _blueMoldPower()... | 12,784,551 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
605,
86,
899,
279,
268,
2921,
678,
13412,
1473,
358,
284,
750,
267,
11,
21638,
18,
4480,
1338,
506,
1399,
4982,
326,
5588,
5162,
1377,
6855,
18,
1021,
30143,
17,
823,
848,
506,
358,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5588,
688,
12,
11890,
5034,
24204,
548,
13,
3903,
8843,
429,
1704,
12,
31837,
548,
13,
4982,
10070,
5162,
11406,
1338,
13215,
17891,
288,
203,
3639,
605,
4558,
298,
27130,
2502,
24204,
273,
24204,
87,
63,
31837,
548,
1553... |
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 pu... | get the last winner's address | address lwAddr = _winnerPurchaseListForAddr[_currentWinnerIndex];
| 1,031,992 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
326,
1142,
5657,
1224,
1807,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
9506,
202,
2867,
14589,
3178,
273,
389,
91,
7872,
23164,
682,
1290,
3178,
63,
67,
2972,
59,
7872,
1016,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0x5bC92B2150aE18D596826f3cC4fF179e50eDf67c/sources/contracts/ERC721.sol | * @notice Transfer token from an address to another address @dev Anyone can call this function Name Meaning @param _to Recipient address @param _tokenId Token ID Emit event {Transfer(from, to, tokenId)}/ | function transfer(address _to, uint256 _tokenId) external {
require(_msgSender() != _to, "Transfer to yourself");
require(_exists(_tokenId), "Nonexistent token.");
require(typeOf[_tokenId] == TokenType.Normal, "Can not transfer token");
safeTransferFrom(_msgSender(), _to, _tokenId);
}
| 9,459,705 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
12279,
1147,
628,
392,
1758,
358,
4042,
1758,
225,
632,
5206,
565,
5502,
476,
848,
745,
333,
445,
1850,
1770,
5411,
21979,
310,
225,
632,
891,
225,
389,
869,
2398,
23550,
1758,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
2316,
548,
13,
3903,
288,
203,
202,
202,
6528,
24899,
3576,
12021,
1435,
480,
389,
869,
16,
315,
5912,
358,
3433,
2890,
8863,
203,
202,
202,
6528,
24899,
1808,
24899,
2316,... |
// SPDX-License-Identifier: MIT
/**
∩~~~~∩
ξ ・×・ ξ
ξ ~ ξ
ξ ξ
ξ “~~~~〇
ξ ξ
ξ ξ ξ~~~ξ ξ ξ
ξ_ξξ_ξ ξ_ξξ_ξ
Alpaca Fin Corporation
*/
pragma solidity 0.6.12;
import "../utils/SafeToken.sol";
import "../interfaces/IPriceModel.sol";
contract FixedPriceModel is IPriceModel {
/// @dev states... | @dev Get current price per token | function price() external view override returns (uint256) {
return fixPrice;
}
| 15,783,194 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
968,
783,
6205,
1534,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6205,
1435,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
2917,
5147,
31,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xcb6Ea7fddFdf2AFc2Bc6Bf715185A33F8E27B96b/sources/@pendle/core-v2/contracts/core/YieldContracts/PendleYieldToken.sol | @notice updates and returns the reward indexes | function rewardIndexesCurrent() external override nonReentrant returns (uint256[] memory) {
return IStandardizedYield(SY).rewardIndexesCurrent();
}
| 3,061,760 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4533,
471,
1135,
326,
19890,
5596,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
19890,
8639,
3935,
1435,
3903,
3849,
1661,
426,
8230,
970,
1135,
261,
11890,
5034,
8526,
3778,
13,
288,
203,
3639,
327,
467,
8336,
1235,
16348,
12,
7474,
2934,
266,
2913,
8639,
3935,
5621,
203,
565,
289,
203,
203,
2,
-1... |
./full_match/100/0x022C2009D21A4317f8cf1AEf498e0738183BAD2b/sources/contracts/MyTimeLock.sol | recalculate how many shares per each wallet.now that a new wallet is being added, tokenShareEachWallet will have decreased. | uint256 tokenShareEachWallet = getCurrentTokenShareForEachWallet();
| 14,290,476 | [
1,
4625,
348,
7953,
560,
30,
26657,
3661,
4906,
24123,
1534,
1517,
9230,
18,
3338,
716,
279,
394,
9230,
353,
3832,
3096,
16,
1147,
9535,
3442,
16936,
903,
1240,
23850,
8905,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
1147,
9535,
3442,
16936,
273,
5175,
1345,
9535,
1290,
3442,
16936,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.8;
// ----------------------------------------------------------------------------------------------
// BokkyPooBah's Autonomous Refundathon Facility Token Contract
//
// A system to incentivise The DAO token holders to withdraw their refunds
//
// Based on Vlad's Safe Token Sale Mechanism Contrac... | ------ Owner Withdrawal ------ | function amountOfEthersOwnerCanWithdraw() constant returns (uint256) {
uint256 etherBalance = this.balance;
uint256 ethersSupportingTokens = _totalSupply * sellPrice() / 1 ether;
if (etherBalance > ethersSupportingTokens) {
return etherBalance - ethersSupportingTokens;
... | 1,046,097 | [
1,
4625,
348,
7953,
560,
30,
225,
31913,
16837,
3423,
9446,
287,
31913,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3844,
951,
41,
29540,
5541,
2568,
1190,
9446,
1435,
5381,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
225,
2437,
13937,
273,
333,
18,
12296,
31,
203,
3639,
2254,
5034,
13750,
414,
6289,
310,
5157,
273,
389,
... |
pragma solidity ^0.4.24;
import "./Publisher.sol";
contract AdvertiserFactory {
address[] deployedAdvertisers;
mapping(address => address) advertisers; //owner to advertiser
mapping(address => bool) owners;
function isAdvertiserRegistered() public view returns(bool) {
return owners[msg.sender... | owner to advertiser
| mapping(address => address) advertisers; | 1,030,036 | [
1,
4625,
348,
7953,
560,
30,
3410,
358,
16738,
15914,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
1758,
13,
16738,
291,
414,
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... |
./full_match/5/0x98b20C8FedB906BfCe5c7C15538EF1ad465aF3FD/sources/contracts/MysticRealms.sol | @dev internal function to end the battle @param battleEnder winner address @param _battle battle; taken from attackOrDefend function | function _endBattle(address battleEnder, Battle memory _battle) internal returns (bool) {
IERC20 token = IERC20(_battle.token);
require(token.transferFrom(address(this), battleEnder, _battle.betReward), "Token transfer failed");
_battle.battleStatus = BattleStatus.ENDED;
_battle.wi... | 1,944,365 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2713,
445,
358,
679,
326,
324,
4558,
298,
632,
891,
324,
4558,
298,
664,
765,
5657,
1224,
1758,
632,
891,
389,
70,
4558,
298,
324,
4558,
298,
31,
9830,
628,
13843,
1162,
3262,
409,
445,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
409,
38,
4558,
298,
12,
2867,
324,
4558,
298,
664,
765,
16,
605,
4558,
298,
3778,
389,
70,
4558,
298,
13,
2713,
1135,
261,
6430,
13,
288,
203,
203,
3639,
467,
654,
39,
3462,
1147,
273,
467,
654,
39,
3462,
24899... |
//Address: 0x86d108d1EeF9AD9F71D1b7080B172085d871CBC4
//Contract name: NeuroSale
//Balance: 0 Ether
//Verification Date: 1/7/2018
//Transacion Count: 3226
// CODE STARTS HERE
pragma solidity ^0.4.18;
contract Token {
function transfer(address _to, uint _value) public returns(bool);
function burn(uint _value... | Overflow is possible because value is specified in the input. | function buyWithCustomerId(address _beneficiary, uint _value, uint _amount, uint128 _customerId, uint _date, bool _autobonus) onlyContractOwner() public returns(bool) {
uint totalTokensToTransfer;
uint volumeBonus;
if (_autobonus) {
uint tokensToBuy = _value.mul(MULTIPLIER).div(... | 6,381,817 | [
1,
4625,
348,
7953,
560,
30,
225,
10752,
2426,
353,
3323,
2724,
460,
353,
1269,
316,
326,
810,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
1190,
8883,
548,
12,
2867,
389,
70,
4009,
74,
14463,
814,
16,
2254,
389,
1132,
16,
2254,
389,
8949,
16,
2254,
10392,
389,
10061,
548,
16,
2254,
389,
712,
16,
1426,
389,
5854,
947,
22889,
13,
1338,
8924,
5541,
1... |
./full_match/1/0x42AF47d643cb45D9a482AeD39c0973208f0CFAFF/sources/contracts/protocol/modules/v1/WrapModuleV2.sol | * Validates the wrap operation is valid. In particular, the following checks are made: - The position is Default - The position has sufficient units given the transact quantity - The transact quantity > 0 It is expected that the adapter will check if wrappedToken/underlyingToken are a valid pair for the given integrati... | function _validateInputs(
IJasperVault _jasperVault,
address _transactPosition,
uint256 _transactPositionUnits
)
internal
view
{
require(_transactPositionUnits > 0, "Target position units must be > 0");
require(_jasperVault.hasDefaultPosition(_transact... | 4,962,863 | [
1,
4625,
348,
7953,
560,
30,
380,
2364,
815,
326,
2193,
1674,
353,
923,
18,
657,
6826,
16,
326,
3751,
4271,
854,
7165,
30,
300,
1021,
1754,
353,
2989,
300,
1021,
1754,
711,
18662,
4971,
864,
326,
906,
621,
10457,
300,
1021,
906,
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,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
5662,
10059,
12,
203,
3639,
467,
46,
345,
457,
12003,
389,
78,
345,
457,
12003,
16,
203,
3639,
1758,
389,
2338,
621,
2555,
16,
203,
3639,
2254,
5034,
389,
2338,
621,
2555,
7537,
203,
565,
262,
203,
3639,
2713,
20... |
/**
*Submitted for verification at Etherscan.io on 2022-04-01
*/
// 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";
... | returns all tokens that account owns | function walletOfOwner(address _owner) public view returns (uint256[] memory) {
uint256 ownerTokenCount = balanceOf(_owner);
uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
uint256 currentTokenId = 1;
uint256 ownedTokenIndex = 0;
while (ownedTokenIndex < own... | 6,555,458 | [
1,
4625,
348,
7953,
560,
30,
1135,
777,
2430,
716,
2236,
29065,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9230,
951,
5541,
12,
2867,
389,
8443,
13,
1071,
1476,
1135,
261,
11890,
5034,
8526,
3778,
13,
288,
203,
3639,
2254,
5034,
3410,
1345,
1380,
273,
11013,
951,
24899,
8443,
1769,
203,
3639,
2254,
5034,
8526,
3778,
16199,
134... |
/**
*Submitted for verification at Etherscan.io on 2020-11-16
*/
pragma solidity ^0.7.4;
interface tokenRecipient {function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;}
contract ERC20 {
mapping (address => uint256) public balanceOf;
mapping (address => m... | minimum 1 LPtoken require
| require(rma > 1 * 10 ** uint256(decimals)); | 2,034,502 | [
1,
4625,
348,
7953,
560,
30,
5224,
404,
511,
52,
2316,
2583,
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,
2583,
12,
86,
2540,
405,
404,
380,
1728,
2826,
2254,
5034,
12,
31734,
10019,
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... |
/**
*Submitted for verification at Etherscan.io on 2022-04-17
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual re... | delay for admin change
| uint256 public constant delay = 172_800; | 6,799,284 | [
1,
4625,
348,
7953,
560,
30,
225,
4624,
364,
3981,
2549,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4624,
273,
8043,
22,
67,
17374,
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,
-1... |
pragma solidity ^0.4.21;
/**
* @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) {
if (a == 0) {
return 0;
... | Split out fees + seller profit | uint256 txFee = computeTxFee(price);
| 1,806,171 | [
1,
4625,
348,
7953,
560,
30,
225,
5385,
596,
1656,
281,
397,
29804,
450,
7216,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
2229,
14667,
273,
3671,
4188,
14667,
12,
8694,
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,
-100,
-100,... |
./full_match/1/0x395f21B52d0F8e6C127BA2Eb4eA209416b3F4730/sources/browser/SimpleToken.sol | * @title SimpleToken @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator. Note they can later distribute these tokens as they wish using `transfer` and other `ERC20` functions./ | contract SimpleToken is Context, ERC20 {
constructor () public ERC20("WorldLuxCoin", "WLC") {
_mint(msg.sender, 500000000 * (10 ** uint256(decimals())));
}
} | 17,167,410 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4477,
1345,
632,
5206,
776,
627,
4143,
4232,
39,
3462,
3155,
3454,
16,
1625,
777,
2430,
854,
675,
17,
15938,
358,
326,
11784,
18,
3609,
2898,
848,
5137,
25722,
4259,
2430,
487,
2898,
1430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
4477,
1345,
353,
1772,
16,
4232,
39,
3462,
288,
203,
203,
565,
3885,
1832,
1071,
4232,
39,
3462,
2932,
18071,
48,
2616,
27055,
3113,
315,
59,
13394,
7923,
288,
203,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
1381,
12648,... |
./full_match/137/0x42cDBd78CA881cdbf44DE584bFb8688D9185C9bC/sources/contracts/imports/aelig/Lendable.sol | lent frame can be updated by receiver account
| mapping (uint256 => bool) private idToCanBeUpdated; | 4,706,587 | [
1,
4625,
348,
7953,
560,
30,
225,
328,
319,
2623,
848,
506,
3526,
635,
5971,
2236,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
11890,
5034,
516,
1426,
13,
3238,
612,
774,
2568,
1919,
7381,
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,
-10... |
./partial_match/1/0xE5fEB62FB34aDbA661B7c8256887a8B9a21C2278/sources/contracts/core/SoundEditionV1_1.sol | * @inheritdoc ISoundEditionV1_1/ Prevent double initialization. We can "cheat" here and avoid the initializer modifer to save a SSTORE, since the `_nextTokenId()` is defined to always return 1. | ) external onlyValidRoyaltyBPS(royaltyBPS_) {
if (_nextTokenId() != 0) revert Unauthorized();
if (fundingRecipient_ == address(0)) revert InvalidFundingRecipient();
if (editionMaxMintableLower_ > editionMaxMintableUpper_) revert InvalidEditionMaxMintableRange();
_initializeNameAnd... | 3,644,429 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
10093,
4437,
772,
41,
1460,
58,
21,
67,
21,
19,
19412,
1645,
10313,
18,
1660,
848,
315,
18706,
270,
6,
2674,
471,
4543,
326,
12562,
681,
21549,
358,
1923,
279,
348,
13651,
16,
3241,
326,
1375... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
3903,
1338,
1556,
54,
13372,
15006,
38,
5857,
12,
3800,
15006,
38,
5857,
67,
13,
288,
203,
3639,
309,
261,
67,
4285,
1345,
548,
1435,
480,
374,
13,
15226,
15799,
5621,
203,
203,
3639,
309,
261,
74,
14351,
18241,
67,
4... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC20} from '@openzeppelin/contracts/contracts/token/ERC20/IERC20.sol';
import {IVault} from '../../interfaces/IVault.sol';
import {SafeMath} from '@openzeppelin/contracts/contracts/math/SafeMath.sol';
import {ContractGuard} from '../../utils/ContractGu... | The vault which has state of the stakes. | contract VaultBoardroom is ContractGuard, BaseBoardroom {
using SafeMath for uint256;
IVault public vault;
uint256 public currentEpoch = 1;
mapping(address => mapping(uint256 => BondingSnapshot))
public bondingHistory;
mapping(address => mapping(uint256 => uint256)) directorBalanceForEpoc... | 10,108,523 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
9229,
1492,
711,
919,
434,
326,
384,
3223,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
17329,
22233,
13924,
353,
13456,
16709,
16,
3360,
22233,
13924,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
12003,
1071,
9229,
31,
203,
565,
2254,
5034,
1071,
783,
14638,
273,
404,
31,
203,
20... |
./full_match/80001/0xAD0Ff82Beb1Efd260561124f98a59Ac4A5ed9df9/sources/contracts/core/NFTLottery.sol | Set the state of the lottery to Open | function openLottery(uint256 lotteryId) external virtual override onlyLotteryOwner(lotteryId) whenLotteryPending(lotteryId) {
lotteries[lotteryId].state = LotteryState.Open;
emit LotteryOpened(lotteryId, lotteries[lotteryId]);
}
| 861,755 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
919,
434,
326,
17417,
387,
93,
358,
3502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1696,
48,
352,
387,
93,
12,
11890,
5034,
17417,
387,
93,
548,
13,
3903,
5024,
3849,
1338,
48,
352,
387,
93,
5541,
12,
23372,
387,
93,
548,
13,
1347,
48,
352,
387,
93,
8579,
12,
23372,
387,
93,
548,
13,
288,
203,
3... |
./partial_match/5/0xc72110A80a122aC14441Fdb18bC8Aee6BF728A5F/sources/StorageNFT.sol | * @title Collectable Asset Collectable Asset - A contract for easily creating custom assets for your collection./ | contract StorageNFT is TradeableERC721Token, ReentrancyGuard {
string private _baseTokenURI;
constructor(
string memory _name,
string memory _symbol,
uint256 _supply,
address _proxyRegistryAddress,
string memory baseURI
) TradeableERC721Token(_name, _symbol, _supply, _proxyRegistryAddress) p... | 16,873,191 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
9302,
429,
10494,
9302,
429,
10494,
300,
432,
6835,
364,
17997,
4979,
1679,
7176,
364,
3433,
1849,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
5235,
50,
4464,
353,
2197,
323,
429,
654,
39,
27,
5340,
1345,
16,
868,
8230,
12514,
16709,
288,
203,
225,
533,
3238,
389,
1969,
1345,
3098,
31,
203,
203,
225,
3885,
12,
203,
565,
533,
3778,
389,
529,
16,
203,
565,
533,
... |
import './_Exponential.sol';
import './_DSValue.sol';
pragma solidity ^0.5.10;
contract _PriceOracle is _Exponential {
/**
* @dev flag for whether or not contract is paused
*
*/
bool public paused;
uint public constant numBlocksPerPeriod = 240; // approximately 1 hour: 60 seconds/minut... | * @dev emitted when pendingAnchorAdmin is accepted, which means anchor admin is updated/ | event NewAnchorAdmin(address oldAnchorAdmin, address newAnchorAdmin);
| 1,836,771 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17826,
1347,
4634,
11605,
4446,
353,
8494,
16,
1492,
4696,
6984,
3981,
353,
3526,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
1166,
11605,
4446,
12,
2867,
1592,
11605,
4446,
16,
1758,
394,
11605,
4446,
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,
... |
/** SmartKey-Chainlink POC **/
pragma solidity ^0.6.7;
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
//import "https://github.com/smartcontractkit/chainlink/blob/develop/evm-contracts/src/v0.6/ChainlinkClient.sol";
//import "https://github.com/smartcon... | * @title SmartKeyConsumer is a contract that obtains wind speed weather data, and updates the state of smart devices based on the returned result @dev This contract is designed to work on public networks such as Kovan or Mainnet/ | contract SmartKeyConsumer is ChainlinkClient, Ownable {
string constant WORLD_WEATHER_ONLINE_PATH = "data.current_condition.0.windspeedKmph";
bytes32 constant CHECK_WEATHER_JOB_ID="4f84d171027f400bab24578ae6dfc5c4";
address constant CHECK_WEATHER_ORACLE=0x24f1c861582F03DaceF9Edb616FA43868F00470D;
bytes32 c... | 5,471,250 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
19656,
653,
5869,
353,
279,
6835,
716,
3768,
16598,
17064,
8632,
21534,
501,
16,
471,
4533,
326,
919,
434,
13706,
7166,
2511,
603,
326,
2106,
563,
632,
5206,
1220,
6835,
353,
26584,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19656,
653,
5869,
353,
7824,
1232,
1227,
16,
14223,
6914,
288,
203,
21281,
225,
533,
5381,
11671,
12069,
67,
6950,
3275,
654,
67,
673,
5997,
67,
4211,
273,
315,
892,
18,
2972,
67,
4175,
18,
20,
18,
10094,
13871,
47,
81,
... |
./full_match/10/0xd7F1Dd5D49206349CaE8b585fcB0Ce3D96f1696F/sources/contracts/router/Router.sol | * @inheritdoc IRouter/ | function execute(
Input calldata input,
AbsoluteTokenAmount calldata output,
SwapDescription calldata swapDescription,
AccountSignature calldata accountSignature,
ProtocolFeeSignature calldata protocolFeeSignature
)
external payable override nonReentrant
r... | 3,782,866 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
10093,
467,
8259,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1836,
12,
203,
3639,
2741,
745,
892,
810,
16,
203,
3639,
25014,
1345,
6275,
745,
892,
876,
16,
203,
3639,
12738,
3291,
745,
892,
7720,
3291,
16,
203,
3639,
6590,
5374,
745,
892,
2236,
5374,
16,
203,
3639,
4547,
14667,
... |
./partial_match/56/0x0dF93c7757B93Fd5C02f516ab18C1BD4A4Bc9a92/sources/A.sol | Random number generator | function _rand(
uint256 max,
uint256 seed,
uint256 seed2
) internal returns (uint256) {
uint256 seed3 =
uint256(
keccak256(
abi.encodePacked(
block.timestamp +
block.difficulty +
... | 11,218,718 | [
1,
4625,
348,
7953,
560,
30,
225,
8072,
1300,
4456,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
7884,
12,
203,
3639,
2254,
5034,
943,
16,
203,
3639,
2254,
5034,
5009,
16,
203,
3639,
2254,
5034,
5009,
22,
203,
565,
262,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
5009,
23,
273,
203,
5411,
2... |
./full_match/1/0x72426BA137DEC62657306b12B1E869d43FeC6eC7/sources/contracts/governance/Governor.sol | @notice Unique id for looking up a proposal @notice Creator of the proposal @notice The timestamp that the proposal will be available for execution, set once the vote succeeds @notice the ordered list of target addresses for calls to be made @notice The ordered list of function signatures to be called @notice The orde... | struct Proposal {
uint256 id;
address proposer;
uint256 eta;
address[] targets;
string[] signatures;
bytes[] calldatas;
bool executed;
}
uint256 id,
address proposer,
address[] targets,
string[] signatures,
bytes[]... | 3,175,380 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
14584,
612,
364,
7849,
731,
279,
14708,
632,
20392,
29525,
434,
326,
14708,
632,
20392,
1021,
2858,
716,
326,
14708,
903,
506,
2319,
364,
4588,
16,
444,
3647,
326,
12501,
21933,
632,
20392... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
19945,
288,
203,
3639,
2254,
5034,
612,
31,
203,
3639,
1758,
450,
5607,
31,
203,
3639,
2254,
5034,
14251,
31,
203,
3639,
1758,
8526,
5774,
31,
203,
3639,
533,
8526,
14862,
31,
203,
3639,
1731,
8526,
745,
13178,
31,
203... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "@openzeppelin/contracts/utils/math/Math.sol";
import "./interfaces/IOverlayV1Factory.sol";
import "./interfaces/IOverlayV1Market.sol";
import "./interfaces/IOverlayV1Token.sol";
import "./interfaces/feeds/IOverlayV1Feed.sol";
import "./libraries/FixedPo... | @notice Sets the governance per-market risk parameter | function setRiskParam(Risk.Parameters name, uint256 value) external onlyFactory {
_checkRiskParam(name, value);
_cacheRiskCalc(name, value);
params.set(name, value);
}
| 14,060,262 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11511,
326,
314,
1643,
82,
1359,
1534,
17,
27151,
18404,
1569,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
54,
10175,
786,
12,
54,
10175,
18,
2402,
508,
16,
2254,
5034,
460,
13,
3903,
1338,
1733,
288,
203,
3639,
389,
1893,
54,
10175,
786,
12,
529,
16,
460,
1769,
203,
3639,
389,
2493,
54,
10175,
25779,
12,
529,
16,
4... |
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividin... | returns always > 0 value
| returns (uint256) { | 12,862,530 | [
1,
4625,
348,
7953,
560,
30,
1135,
3712,
405,
374,
460,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1135,
261,
11890,
5034,
13,
288,
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,
... |
./full_match/80001/0x47dF6CecAB93B0B4DEEB173537bdDe7857ED629A/sources/contracts/Lottery.sol | Reset lottery data for the next round | prizeamount = 0;
| 865,418 | [
1,
4625,
348,
7953,
560,
30,
225,
7151,
17417,
387,
93,
501,
364,
326,
1024,
3643,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
846,
554,
8949,
273,
374,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1285/0x5148A559cFaaEC1A915ae41e00A8Dd2Fa17ba64f/sources/contracts/project.eth.sol | Number used for guessable pseudo-random generated number.
| uint256 private nonce = 0; | 833,651 | [
1,
4625,
348,
7953,
560,
30,
225,
3588,
1399,
364,
7274,
429,
12454,
17,
9188,
4374,
1300,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3238,
7448,
273,
374,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {AccessControlEnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/Ac... | @notice Allows a user to bond `bondAmount` of BNPL to the pool (user must first approve) - PRIVILEGES REQUIRED: Admins with the role "NODE_REWARDS_MANAGER_ROLE" @param bondAmount The bond amount of BNPL | function bondTokens(uint256 bondAmount) external override nonReentrant onlyRole(NODE_REWARDS_MANAGER_ROLE) {
require(bondAmount != 0, "bondAmount cannot be 0");
_processBondTokens(msg.sender, bondAmount);
}
| 13,104,787 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
25619,
279,
729,
358,
8427,
1375,
26425,
6275,
68,
434,
605,
50,
6253,
358,
326,
2845,
261,
1355,
1297,
1122,
6617,
537,
13,
300,
10365,
4136,
19384,
3991,
15810,
30,
377,
7807,
87,
598,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
8427,
5157,
12,
11890,
5034,
8427,
6275,
13,
3903,
3849,
1661,
426,
8230,
970,
1338,
2996,
12,
8744,
67,
862,
16777,
3948,
67,
19402,
67,
16256,
13,
288,
203,
3639,
2583,
12,
26425,
6275,
480,
374,
16,
315,
26425,
6275,... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.6.12;
import "../utility/ContractRegistryClient.sol";
import "./interfaces/IConverterRegistryData.sol";
/**
* @dev The ConverterRegistryData contract is an integral part of the converter registry
* as it serves as the database contract tha... | * @dev returns the number of convertible tokens @return number of convertible tokens/ | function getConvertibleTokenCount() external view override returns (uint256) {
return convertibleTokens.array.length;
}
| 2,531,839 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1135,
326,
1300,
434,
1765,
1523,
2430,
632,
2463,
1300,
434,
1765,
1523,
2430,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2723,
1523,
1345,
1380,
1435,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
1765,
1523,
5157,
18,
1126,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/42/0xc435582C19fC6e120b72ebb7fdebe51e4207440A/sources/PiggyDistribution.sol | updateWpcSupplyIndex(pToken); distributeSupplierWpc(pToken, minter, distributeAll); | function distributeMintWpc(address pToken, address minter, bool distributeAll) public override(IPiggyDistribution) {
require(msg.sender == address(comptroller) || msg.sender == owner(), "only comptroller or owner");
}
| 3,350,600 | [
1,
4625,
348,
7953,
560,
30,
540,
1089,
59,
2436,
3088,
1283,
1016,
12,
84,
1345,
1769,
3639,
25722,
13254,
59,
2436,
12,
84,
1345,
16,
1131,
387,
16,
25722,
1595,
1769,
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,
25722,
49,
474,
59,
2436,
12,
2867,
293,
1345,
16,
1758,
1131,
387,
16,
1426,
25722,
1595,
13,
1071,
3849,
12,
2579,
360,
7797,
9003,
13,
288,
203,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1758,
12,
832,
337,
1539,
... |
pragma solidity ^0.4.25;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a / b;
return c;
}
... | totalDistributed = totalDistributed.add(_amount); | balances[owner] = balances[owner].sub(_amount);
| 1,002,943 | [
1,
4625,
348,
7953,
560,
30,
540,
2078,
1669,
11050,
273,
2078,
1669,
11050,
18,
1289,
24899,
8949,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
3639,
324,
26488,
63,
8443,
65,
273,
324,
26488,
63,
8443,
8009,
1717,
24899,
8949,
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,
-... |
./full_match/3/0x8029fAE2dC8C491D7496b1Fb78fB365C4eE90A55/sources/contracts/usd.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract USD is Context, IERC20,AccessControl {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => uint256) public replayNonce;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _... | 8,278,993 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
587,
9903,
353,
1772,
16,
467,
654,
39,
3462,
16,
16541,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
565,
2874,
261,
28... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "hardhat/console.sol";
import "./base64.sol";
interface IGas is IERC721 {
fun... | @title Base64 @author Brecht Devos - <[email protected]> @notice Provides a function for encoding some bytes in base64 | library Base64 {
string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
function encode(bytes memory data) internal pure returns (string memory) {
if (data.length == 0) return '';
string memory table = TABLE;
uint256 encodedLen = 4 * ((da... | 496,358 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
3360,
1105,
632,
4161,
605,
266,
343,
88,
9562,
538,
300,
411,
63,
3652,
131,
259,
1117,
65,
34,
632,
20392,
28805,
279,
445,
364,
2688,
2690,
1731,
316,
1026,
1105,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3360,
1105,
288,
203,
565,
533,
2713,
5381,
7567,
273,
296,
26904,
12904,
16715,
45,
19474,
17063,
3417,
28386,
10637,
20147,
59,
23479,
28953,
17680,
8302,
16391,
13607,
556,
85,
16114,
30900,
17177,
26684,
23447,
31,
203,
203,... |
pragma solidity ^0.5.16;
contract Function {
// cannot use map for inputs
// function mapInput(mapping(uint => uint) memory map) public {
// }
// can use multi dimensional fixed size array for input
function multiDimFixedSizeArrayInput(uint[9][9] memory _arr) public {
}
// cannot use mult... | Use destructing assignment when calling another function that returns multiple values. Values can be left out. | function destructingAssigments() public pure returns (uint, bool, uint, uint, uint) {
(uint i, bool b, uint j) = returnMultipleVals();
(uint x, , uint y) = (4, 5, 6);
return (i, b, j, x, y);
}
| 12,880,252 | [
1,
4625,
348,
7953,
560,
30,
225,
2672,
23819,
310,
6661,
1347,
4440,
4042,
445,
716,
1135,
3229,
924,
18,
6876,
848,
506,
2002,
596,
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... | [
1,
1,
1,
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,
23819,
310,
2610,
360,
1346,
1435,
1071,
16618,
1135,
261,
11890,
16,
1426,
16,
2254,
16,
2254,
16,
2254,
13,
288,
203,
3639,
261,
11890,
277,
16,
1426,
324,
16,
2254,
525,
13,
273,
225,
327,
8438,
13169,
5621,
203,
2... |
./partial_match/1/0xf1b1EDf5076D702B9fb2d15370a1fC2fE154f468/sources/NOPECAT.sol | * @dev Sets the value of the `decimals`. This value is immutable, it can only be set once during construction./ | constructor () ERC20('NOPECAT', unicode"NOPE", _msgSender()) {
_mint(_msgSender(), _totalSupply);
}
| 15,517,577 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
460,
434,
326,
1375,
31734,
8338,
1220,
460,
353,
11732,
16,
518,
848,
1338,
506,
444,
3647,
4982,
16171,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3885,
1832,
4232,
39,
3462,
2668,
3417,
10106,
789,
2187,
5252,
6,
3417,
1423,
3113,
389,
3576,
12021,
10756,
288,
203,
3639,
389,
81,
474,
24899,
3576,
12021,
9334,
389,
4963,
3088,
1283,
1769,
203,
565,
289,
203,
203,
2,
-... |
./full_match/44787/0x3B9EDfC6eB4B29341ca232350EcC65BC070f8574/sources/Contracts/Dcolab.sol | ? EVENTS! STATES! ENUMS & STRUCTS | contract Dcolab {
event projectCreated(address indexed _adminAddress, string _projectName);
event addedTeamMember(address[] _teamMembers);
event assignedProjectBudget(string _projectName, uint256 _amountAssigned);
event updatedProjectState(State _state);
event pollCreated(
string _title,
... | 13,284,701 | [
1,
4625,
348,
7953,
560,
30,
692,
9964,
55,
5,
7442,
55,
5,
24776,
55,
473,
7128,
9749,
55,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
463,
1293,
378,
288,
203,
565,
871,
1984,
6119,
12,
2867,
8808,
389,
3666,
1887,
16,
533,
389,
4406,
461,
1769,
203,
565,
871,
3096,
8689,
4419,
12,
2867,
8526,
389,
10035,
6918,
1769,
203,
565,
871,
6958,
4109,
16124,
12,... |