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 |
|---|---|---|---|---|---|---|
./partial_match/42/0xC39e0D2665179Ec8A2ED99DE4353EEf0d2E7c07c/sources/AlpacaCore.sol | * Grants permission to another account to sire with one of your alpacas. @param _addr The address that will be able to use sire for breeding. @param _sireId a alpaca _addr will be able to use for breeding as sire./ | function grandPermissionToBreed(address _addr, uint256 _sireId)
external
override
{
require(
isOwnerOf(msg.sender, _sireId),
"CryptoAlpaca: You do not own sire alpaca"
);
alpacaAllowedToAddress.set(_sireId, _addr);
emit GrantedToBreed(_si... | 3,385,052 | [
1,
4625,
348,
7953,
560,
30,
380,
611,
86,
4388,
4132,
358,
4042,
2236,
358,
272,
577,
598,
1245,
434,
3433,
524,
84,
1077,
345,
18,
632,
891,
389,
4793,
1021,
1758,
716,
903,
506,
7752,
358,
999,
272,
577,
364,
324,
15656,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16225,
5041,
774,
38,
15656,
12,
2867,
389,
4793,
16,
2254,
5034,
389,
87,
577,
548,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
353,
5541,
951,
12,
3576,
18,
15330,
16,
389,
... |
/**
*Submitted for verification at Etherscan.io on 2021-04-29
*/
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "TetherUS";
symbol = "USDT";
decimals = 18;
_totalSupply = 1000000000000000000000000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 15,225,936 | [
1,
4625,
348,
7953,
560,
30,
380,
735,
701,
30206,
445,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
56,
2437,
3378,
14432,
203,
3639,
3273,
273,
315,
3378,
9081,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
2130,
12648,
12648,
2787,
11706,
31,... |
./partial_match/1/0x87996ED64a3Adf073452727de9324b6138a811e4/sources/contracts/ParrotRewards.sol | date conversion algorithm from http:aa.usno.navy.mil/faq/docs/JD_Formula.php | function _daysToDate(uint256 _days)
internal
pure
returns (
uint256,
uint256,
uint256
)
{
int256 __days = int256(_days);
int256 L = __days + 68569 + OFFSET19700101;
int256 N = (4 * L) / 146097;
L = L - (146097 * N + 3) / 4;
int256 _year = (4000 * (L + 1)) / 146... | 9,366,730 | [
1,
4625,
348,
7953,
560,
30,
225,
1509,
4105,
4886,
628,
1062,
30,
7598,
18,
407,
2135,
18,
11589,
93,
18,
81,
330,
19,
507,
85,
19,
8532,
19,
46,
40,
67,
14972,
18,
2684,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
9810,
31264,
12,
11890,
5034,
389,
9810,
13,
203,
565,
2713,
203,
565,
16618,
203,
565,
1135,
261,
203,
1377,
2254,
5034,
16,
203,
1377,
2254,
5034,
16,
203,
1377,
2254,
5034,
203,
565,
262,
203,
225,
288,
203,
5... |
pragma solidity ^0.6.0;
interface OneInchInterace {
function SWAP825( //inject NONSTANDARD NAMING
TokenInterface fromToken,
TokenInterface toToken,
uint256 fromTokenAmount,
uint256 minReturnAmount,
uint256 gu... | inject NONSTANDARD NAMING
| function WDIV159(uint x, uint y) internal pure returns (uint z) { | 13,006,928 | [
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,
678,
31901,
24872,
12,
11890,
619,
16,
2254,
677,
13,
2713,
16618,
1135,
261,
11890,
998,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/11155111/0x9B36F148D92494F144d8F70F60cCadC4b726194e/sources/nft/chainTransferAble/Tripster721ACreateFeeTransferChainSender.sol | Public mint function if (!IpfsCollections[collectionIndex].public_released) revert TokensNotReleased(); if (currentTokenMinted.add(amount) > IpfsCollections[collectionIndex].maxSupply) revert MaxSupplyReached(); | function bulkPublicMint(uint256 amount) public payable {
uint256 collectionIndex = currentCollectionIndex.current();
require(
IpfsCollections[collectionIndex].public_released,
"TokensNotReleased"
);
uint256 totalTotalMinted = IpfsCollections[collectionIndex]... | 3,534,156 | [
1,
4625,
348,
7953,
560,
30,
225,
7224,
312,
474,
445,
309,
16051,
5273,
2556,
15150,
63,
5548,
1016,
8009,
482,
67,
9340,
72,
13,
15226,
13899,
1248,
26363,
5621,
309,
261,
2972,
1345,
49,
474,
329,
18,
1289,
12,
8949,
13,
405,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
8280,
4782,
49,
474,
12,
11890,
5034,
3844,
13,
1071,
8843,
429,
288,
203,
3639,
2254,
5034,
1849,
1016,
273,
783,
2532,
1016,
18,
2972,
5621,
203,
203,
3639,
2583,
12,
203,
5411,
14709,
2556,
15150,
63,
5548,
1016,
800... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import { L2OutputOracle_Initializer } from "./CommonTest.t.sol";
import { L2OutputOracle } from "../L1/L2OutputOracle.sol";
import { Proxy } from "../universal/Proxy.sol";
contract L2OutputOracleTest is L2OutputOracle_Initializer {
bytes32 appendedOutput1 = k... | Advance the evm's time to meet the L2OutputOracle's requirements for appendL2Output | function warpToAppendTime(uint256 _nextBlockNumber) public {
vm.warp(oracle.computeL2Timestamp(_nextBlockNumber) + 1);
}
| 13,031,719 | [
1,
4625,
348,
7953,
560,
30,
225,
4052,
5882,
326,
2113,
81,
1807,
813,
358,
18721,
326,
511,
22,
1447,
23601,
1807,
8433,
364,
714,
48,
22,
1447,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
341,
11441,
774,
5736,
950,
12,
11890,
5034,
389,
4285,
1768,
1854,
13,
1071,
288,
203,
3639,
4268,
18,
905,
84,
12,
280,
16066,
18,
9200,
48,
22,
4921,
24899,
4285,
1768,
1854,
13,
397,
404,
1769,
203,
565,
289,
203,... |
./full_match/43114/0x7f45cb159561F8f139C5971a75a0a4210F751Adc/sources/project:/contracts/Comptroller.sol | * @notice Sets the closeFactor used when liquidating borrows @dev Admin function to set closeFactor @param newCloseFactorMantissa New close factor, scaled by 1e18 @return uint 0=success, otherwise a failure/ Check caller is admin | function _setCloseFactor(
uint newCloseFactorMantissa
) external returns (uint) {
require(msg.sender == admin, "only admin can set close factor");
uint oldCloseFactorMantissa = closeFactorMantissa;
closeFactorMantissa = newCloseFactorMantissa;
emit NewCloseFactor(oldClos... | 4,522,661 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
326,
1746,
6837,
1399,
1347,
4501,
26595,
1776,
324,
280,
3870,
632,
5206,
7807,
445,
358,
444,
1746,
6837,
632,
891,
394,
4605,
6837,
49,
970,
21269,
1166,
1746,
5578,
16,
12304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
389,
542,
4605,
6837,
12,
203,
3639,
2254,
394,
4605,
6837,
49,
970,
21269,
203,
565,
262,
3903,
1135,
261,
11890,
13,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3981,
16,
315,
3700,
3981,
848,
444,
1746,
5578,
8... |
./full_match/80001/0x5Eecc55860089f0F19DAa85Ed71dAa1743849D34/sources/contracts/Masterchef.sol | Deposit LP tokens to MasterChef for Storm allocation. | function deposit(uint256 _pid, uint256 _amount, address _referrer) public nonReentrant {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (_amount > 0 && address(referral) != address(0) && _referrer != address(0) && _ref... | 5,575,723 | [
1,
4625,
348,
7953,
560,
30,
225,
4019,
538,
305,
511,
52,
2430,
358,
13453,
39,
580,
74,
364,
934,
535,
13481,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
443,
1724,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
16,
1758,
389,
1734,
11110,
13,
1071,
1661,
426,
8230,
970,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,... |
pragma solidity >=0.4.22 <0.7.0;
pragma experimental ABIEncoderV2;
contract AccountsManager {
// A User
struct User {
string username;
address payable addr;
uint balance;
bool valid; // valid or existed user
uint[] myRecords; // his/her own transfer records
... | the first transfer record ID within one day
| uint firstRecordID; | 5,471,994 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
1122,
7412,
1409,
1599,
3470,
1245,
2548,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1122,
2115,
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,
... |
// Copyright 2019 Cartesi Pte. Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
// Unless required by ... | Raise the highest priority interrupt | Interrupts.raiseInterruptIfAny(mi);
| 12,786,501 | [
1,
4625,
348,
7953,
560,
30,
20539,
326,
9742,
4394,
13123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
3094,
30209,
1092,
18,
11628,
14126,
2047,
2961,
12,
9197,
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... |
pragma solidity ^0.5.0;
import "../NamedContract.sol";
import "./SwipeCardsStorage.sol";
import "./SwipeCardsEvent.sol";
/// @title Swipe Cards Contract: Configurations of Swipe Network
contract SwipeCards is NamedContract, SwipeCardsStorage, SwipeCardsEvent {
/// @notice Card constructor
constructor() public... | @notice Set Fee Split Percentage Percentage @dev Set Fee Split Percentage configuration value | function setCardFeeSplitPercentage(uint256 cardId, string calldata newFeeSplitPercentage) external {
require(
_cardCount >= cardId && cardId > 0,
"Invalid card id"
);
require(
bytes(newFeeSplitPercentage).length > 0,
"Card fee split percentage ... | 926,606 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
30174,
5385,
21198,
410,
21198,
410,
632,
5206,
1000,
30174,
5385,
21198,
410,
1664,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
6415,
14667,
5521,
16397,
12,
11890,
5034,
5270,
548,
16,
533,
745,
892,
394,
14667,
5521,
16397,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
389,
3327,
1380,
1545,
5270,
548,
597,
5270,
548,
405,
374,
16,
203,
... |
./partial_match/1/0xF36399Bf8CB0f47e6e79B1F615385e3A94C8473a/sources/contracts/modules/credit/LineOfCredit.sol | index of first undrawn line found
| nextQSpot = i; | 4,128,854 | [
1,
4625,
348,
7953,
560,
30,
225,
770,
434,
1122,
640,
9446,
82,
980,
1392,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
1024,
53,
17292,
273,
277,
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,
... |
./partial_match/56/0x77987517187E93D92C82A6fdfdb2830e0FC21A55/sources/ReflectedPunksMarket3.sol | You can use this hash to verify the image file containing all the Rpunksmapping (address => uint) public addressToPunkIndex; | contract ReflectedPunksMarket3 {
string public imageHash = "1e2b82bb40cf215a42187ce5639e310a76db1fd8788121934ad282052cf95aca";
address public owner;
string public standard = 'ReflectedPunks';
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
... | 11,305,039 | [
1,
4625,
348,
7953,
560,
30,
225,
4554,
848,
999,
333,
1651,
358,
3929,
326,
1316,
585,
4191,
777,
326,
534,
84,
1683,
87,
6770,
261,
2867,
516,
2254,
13,
1071,
1758,
774,
52,
1683,
1016,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
17906,
329,
52,
1683,
87,
3882,
278,
23,
288,
203,
203,
565,
533,
1071,
1316,
2310,
273,
315,
21,
73,
22,
70,
11149,
9897,
7132,
8522,
22,
3600,
69,
9452,
2643,
27,
311,
4313,
5520,
73,
23,
2163,
69,
6669,
1966,
21,
83... |
./full_match/3/0xD7043C5daeD8653FD890EAB5e80B047a96E39165/sources/browser/Bank.sol | Ensure we do not pay out too much
| if (total_used.add(pay) > _amount) { | 8,184,933 | [
1,
4625,
348,
7953,
560,
30,
7693,
732,
741,
486,
8843,
596,
4885,
9816,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
4963,
67,
3668,
18,
1289,
12,
10239,
13,
405,
389,
8949,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.23;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 bala... | CHANGE THIS. Update the contract name.
| contract WavesPay is StandardToken { | 1,462,662 | [
1,
4625,
348,
7953,
560,
30,
225,
26267,
20676,
18,
2315,
326,
6835,
508,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
678,
6606,
9148,
353,
8263,
1345,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/u... | get this contract balance to withdraw throw error if it requests more that in the contract balance | function payERC20(address erc20) internal {
IERC20 erc20c = IERC20(erc20);
uint balance = erc20c.balanceOf(address(this));
require(balance > 0, "Balance is Empty");
uint half = balance / 2;
emit RoyaltyPaidERC20( erc20, nifty, half);
erc20c.safeTransfer(ni... | 9,868,108 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
333,
6835,
11013,
358,
598,
9446,
604,
555,
309,
518,
3285,
1898,
716,
316,
326,
6835,
11013,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
654,
39,
3462,
12,
2867,
6445,
71,
3462,
13,
2713,
288,
203,
540,
203,
3639,
467,
654,
39,
3462,
6445,
71,
3462,
71,
273,
467,
654,
39,
3462,
12,
12610,
3462,
1769,
203,
203,
3639,
2254,
11013,
273,
6445,
71,
... |
./full_match/5/0xdF3D542D51dA747b305cabC8b2515015BeE290c1/sources/contracts/RaiseFundContract.sol | Check that the campaign index is valid | require(campaignIndex < numberOfCampaigns, "Invalid campaign ID");
| 1,863,527 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
716,
326,
8965,
770,
353,
923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
14608,
1016,
411,
7922,
13432,
87,
16,
315,
1941,
8965,
1599,
8863,
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,
-... |
pragma solidity ^0.5.12;
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "../../interfaces/access/IAccessModule.sol";
import "../../interfaces/curve/ICurveModule.sol";
import "../../interfaces/curv... | "<=" is used to handle tiny difference between lAmount and maxLPledgeAmount
| assert(pAmount <= pAmountOld); | 12,651,118 | [
1,
4625,
348,
7953,
560,
30,
225,
3532,
1546,
353,
1399,
358,
1640,
24405,
7114,
3086,
328,
6275,
471,
943,
14461,
19998,
6275,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
1815,
12,
84,
6275,
1648,
293,
6275,
7617,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x3cF8f446865F3b27D40D6d1D919b3F6f4F784054/sources/browser/libraries/ERC20.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
... | 8,104,156 | [
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,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
2713,
389,
70,
26488,
31,
203,
203,
565,
2874,
261,
2867,
51... |
./full_match/1/0xE9E75d51ffFd8A66D76314C6a5c02F93c1dA61B1/sources/browser/Untitled.sol | Alternative way to do it: Perform the purchase. | function hesitate(uint amount) public payable {
if (amount > msg.value / 2 ether)
revert("Not producer provided.");
require(
amount <= msg.value / 2 ether,
"Not producer Ether provided."
);
}
| 2,923,849 | [
1,
4625,
348,
7953,
560,
30,
225,
21498,
1535,
4031,
358,
741,
518,
30,
11217,
326,
23701,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
366,
281,
305,
340,
12,
11890,
3844,
13,
1071,
8843,
429,
288,
203,
3639,
309,
261,
8949,
405,
1234,
18,
1132,
342,
576,
225,
2437,
13,
203,
5411,
15226,
2932,
1248,
12608,
2112,
1199,
1769,
203,
3639,
2583,
12,
203,
... |
/**
* Source Code first verified at https://etherscan.io on Thursday, May 9, 2019
(UTC) */
pragma solidity >=0.4.21 < 0.6.0;
/**
* ███████╗ ██████╗ ██████╗ █████╗ ███╗ ███╗
* ██╔════╝██╔════╝ ██╔══██╗██╔══██╗████╗ ████║
* █████╗ ██║ ███╗██████╔╝███████║██╔████╔██║
* ██╔══╝ ██║ ██║██╔══██╗██╔══██║██║╚██╔╝... | * @title Asset @dev Initial supply creation/ | contract AsseteGram is ERC20Token {
function unhandledsend_unchk38(address callee) public {
callee.send(5 ether);
}
string public name = 'Electronic Gram';
function cash_unchk46(uint roundIndex, uint subpotIndex, address winner_unchk46) public{
uint64 subpot_unchk46 = 3 ether;
subpot_unchk... | 5,423,582 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
10494,
632,
5206,
10188,
14467,
6710,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10494,
73,
43,
1940,
353,
4232,
39,
3462,
1345,
288,
203,
225,
445,
27868,
4661,
67,
4384,
79,
7414,
12,
2867,
225,
14425,
13,
1071,
288,
203,
565,
14425,
18,
4661,
12,
25,
225,
2437,
1769,
203,
225,
289,
203,
225,
533,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./ERC721.sol";
/**
* @title MasterchefMasatoshi
* NFT + DAO = NEW META
... | * @dev See {IERC721-setApprovalForAll}./ | function setApprovalForAll(address operator, bool approved) public override {
require(operator != _msgSender(), "a");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| 410,046 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
17,
542,
23461,
1290,
1595,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
23461,
1290,
1595,
12,
2867,
3726,
16,
1426,
20412,
13,
1071,
3849,
288,
203,
3639,
2583,
12,
9497,
480,
389,
3576,
12021,
9334,
315,
69,
8863,
203,
203,
3639,
389,
9497,
12053,
4524,
63,
67,
3576,
12021,
1435,
636... |
pragma solidity ^0.8.4;
pragma experimental ABIEncoderV2;
import "../dnssec-oracle/BytesUtils.sol";
import "../dnssec-oracle/DNSSEC.sol";
import "../registry/ENSRegistry.sol";
import "../root/Root.sol";
import "./DNSClaimChecker.sol";
import "./PublicSuffixList.sol";
/**
* @dev An ENS registrar that allows the owner... | * @dev An ENS registrar that allows the owner of a DNS name to claim the corresponding name in ENS./ | contract DNSRegistrar {
using BytesUtils for bytes;
DNSSEC public oracle;
ENS public ens;
PublicSuffixList public suffixes;
bytes4 constant private INTERFACE_META_ID = bytes4(keccak256("supportsInterface(bytes4)"));
bytes4 constant private DNSSEC_CLAIM_ID = bytes4(
keccak256("claim(byt... | 12,893,202 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1922,
512,
3156,
17450,
297,
716,
5360,
326,
3410,
434,
279,
8858,
508,
358,
7516,
326,
1377,
4656,
508,
316,
512,
3156,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8858,
30855,
288,
203,
565,
1450,
5985,
1989,
364,
1731,
31,
203,
203,
565,
8858,
11944,
1071,
20865,
31,
203,
565,
512,
3156,
1071,
19670,
31,
203,
565,
7224,
5791,
682,
1071,
18333,
31,
203,
203,
565,
1731,
24,
5381,
323... |
./partial_match/56/0x2216d47494E516d8206B70FCa8585820eD3C4946/sources/Waifus.sol | * @title Waifus contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ Public variables This is the provenance record of all Waifus artwork in existence Time after which waifus are randomized and allotted Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` which can ... | contract Waifus is Context, Ownable, ERC165, IWaifus, IERC721Metadata {
using SafeMath for uint256;
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
string public constant WAIFUS_PROVENA... | 11,158,714 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
678,
69,
430,
407,
6835,
632,
5206,
6419,
5839,
4232,
39,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
5337,
4471,
19,
7224,
3152,
1220,
353,
326,
24185,
1409,
434,
777,
678,
69,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
678,
69,
430,
407,
353,
1772,
16,
14223,
6914,
16,
4232,
39,
28275,
16,
467,
59,
69,
430,
407,
16,
467,
654,
39,
27,
5340,
2277,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
... |
pragma solidity ^0.4.11;
import './SafeMath.sol';
import './Halt.sol';
import './WBTC.sol';
contract WBTCManager is Halt {
using SafeMath for uint;
/************************************************************
**
** VARIABLES
**
************************************************************/
/// WBT... | * CONSTRUCTOR @notice Initialize the HTLCWBTCAddr address @param HTLCAddr The HTLCWBTC address @param smgAdminAddr smg address/ | function WBTCManager(address HTLCAddr,address smgAdminAddr)
public
{
require(HTLCAddr != address(0));
require(smgAdminAddr != address(0));
HTLCWBTC = HTLCAddr;
storemanGroupAdmin = smgAdminAddr;
WBTCToken = new WBTC(this);
}
| 5,345,607 | [
1,
4625,
348,
7953,
560,
30,
380,
3492,
13915,
916,
632,
20392,
9190,
326,
25052,
12844,
38,
15988,
3178,
1758,
632,
891,
27095,
3178,
1021,
25052,
12844,
38,
15988,
1758,
632,
891,
3029,
75,
4446,
3178,
3029,
75,
1758,
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,
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,
678,
38,
15988,
1318,
12,
2867,
27095,
3178,
16,
2867,
3029,
75,
4446,
3178,
13,
203,
565,
1071,
203,
225,
288,
203,
1377,
2583,
12,
31908,
3178,
480,
1758,
12,
20,
10019,
203,
1377,
2583,
12,
4808,
75,
4446,
3178,
48... |
./full_match/1/0x25A103A1D6AeC5967c1A4fe2039cdc514886b97e/sources/contracts/RWAHub.sol | * @notice Modifier to check restrictions status of an account @param account The account to check/ | modifier checkRestrictions(address account) {
_checkRestrictions(account);
_;
}
| 3,021,993 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12832,
358,
866,
17499,
1267,
434,
392,
2236,
632,
891,
2236,
1021,
2236,
358,
866,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
866,
26175,
12,
2867,
2236,
13,
288,
203,
565,
389,
1893,
26175,
12,
4631,
1769,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./GovernorCharlieInterfaces.sol";
import "../math/FractionalExponents.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
/**
* @title GovernorCharlieDelegate
*
* References
*
* - https://github.com/compound-finance/compound-protocol... | * @notice Finalize active state for pqv round/ | function finalize(uint proposalId) external {
require(
state(proposalId) == ProposalState.Unfinalized,
"GovernorCharlie::finalize: voting is already finalized"
);
Proposal storage proposal = proposals[proposalId];
require(
flagedRandoms[proposal.ba... | 13,084,662 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
30740,
2695,
919,
364,
14619,
90,
3643,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12409,
12,
11890,
14708,
548,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
919,
12,
685,
8016,
548,
13,
422,
19945,
1119,
18,
984,
6385,
1235,
16,
203,
5411,
315,
43,
1643,
29561,
2156,
549,
73,
2866,
30343,
30,
331... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
... | exclude from paying fees or having max transaction amount | constructor() ERC20("Tasty Works", "TASTY") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(... | 9,870,537 | [
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,
56,
689,
93,
4147,
87,
3113,
315,
56,
9053,
61,
7923,
288,
203,
540,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91... |
/**
*Submitted for verification at Etherscan.io on 2022-03-07
*/
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uin... | variable constant for time period managemnt
| uint256 constant public PERIOD_GOLD = 180; | 2,348,586 | [
1,
4625,
348,
7953,
560,
30,
225,
2190,
5381,
364,
813,
3879,
20754,
351,
496,
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,
225,
2254,
5034,
5381,
1071,
10950,
21054,
67,
43,
11846,
2868,
273,
9259,
31,
2398,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x695264D984A5E45C2d89f261C8668d6C1F7D214c/sources/IporProtocolRouter.sol | @notice Struct representing amounts related to Swap that is presently being opened. @dev all values represented in 18 decimals | struct OpenSwapAmount {
uint256 totalAmount;
uint256 collateral;
uint256 notional;
uint256 openingFeeLPAmount;
uint256 openingFeeTreasuryAmount;
uint256 iporPublicationFee;
uint256 liquidationDepositAmount;
| 16,153,477 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
7362,
5123,
30980,
3746,
358,
12738,
716,
353,
3430,
715,
3832,
10191,
18,
632,
5206,
777,
924,
10584,
316,
6549,
15105,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
3502,
12521,
6275,
288,
203,
3639,
2254,
5034,
2078,
6275,
31,
203,
3639,
2254,
5034,
4508,
2045,
287,
31,
203,
3639,
2254,
5034,
486,
285,
287,
31,
203,
3639,
2254,
5034,
10890,
14667,
48,
4066,
4778,
31,
203,
3639,
2... |
pragma solidity 0.6.6;
pragma experimental ABIEncoderV2;
contract DSAuthEvents {
event LogSetAuthority(address indexed authority);
event LogSetOwner(address indexed owner);
}
contract DSAuth is DSAuthEvents {
DSAuthority public authority;
address public owner;
constructor() public {
... | payback debt draw coll | function close(
address _cCollAddr,
address _cBorrowAddr,
uint _collAmount,
uint _debtAmount
) public {
address collAddr = getUnderlyingAddr(_cCollAddr);
paybackDebt(_debtAmount, _cBorrowAddr, getUnderlyingAddr(_cBorrowAddr), tx.origin);
if (... | 7,336,001 | [
1,
4625,
348,
7953,
560,
30,
225,
8843,
823,
18202,
88,
3724,
4508,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1746,
12,
203,
203,
3639,
1758,
389,
71,
13535,
3178,
16,
203,
203,
3639,
1758,
389,
71,
38,
15318,
3178,
16,
203,
203,
3639,
2254,
389,
12910,
6275,
16,
203,
203,
3639,
2254,
389,
323,
23602,
6275,
203,
203,
565,
262... |
/**
*Submitted for verification at Etherscan.io on 2021-12-11
*/
// After ShibaDoge, we finally have ShibaFloki!
// tg: ShibaFlokiETH
// tw: ShibaFlokiETH
// web: shibaflokieth.com
// ~ 1 billion marketcap ~
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.7;
interface IERC20 {
function totalSu... | capture the contract's current eth balance. this is so that we can capture exactly the amount of eth that the swap creates, and not make the liquidity event include any eth that has been manually sent to the contract swap tokens for eth Total eth that has been swapped The remaining eth balance is to be Transferred to ... | function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
uint256 marketingTokenBalance = contractTokenBalance;
uint256 initialBalance = address(this).balance;
swapTokensForEth(marketingTokenBalance);
uint256 ethSwapped = address(this).balance.sub(initia... | 1,127,405 | [
1,
4625,
348,
7953,
560,
30,
225,
7477,
326,
6835,
1807,
783,
13750,
11013,
18,
333,
353,
1427,
716,
732,
848,
7477,
8950,
326,
3844,
434,
13750,
716,
326,
7720,
3414,
16,
471,
486,
1221,
326,
4501,
372,
24237,
871,
2341,
1281,
1375... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7720,
1876,
48,
18988,
1164,
12,
11890,
5034,
6835,
1345,
13937,
13,
3238,
2176,
1986,
12521,
288,
203,
540,
203,
3639,
2254,
5034,
13667,
310,
1345,
13937,
273,
6835,
1345,
13937,
31,
203,
203,
3639,
2254,
5034,
2172,
13... |
pragma solidity ^0.4.15;
/*
Utilities & Common Modifiers
*/
contract Utils {
/**
constructor
*/
function Utils() {
}
// validates an address - currently only checks that it isn't null
modifier validAddress(address _address) {
require(_address != 0x0);
_... | Company3 CLRS tokens
| balanceOf[COMPANY_STAKE_3] = COMPANY_3; | 12,811,658 | [
1,
4625,
348,
7953,
560,
30,
225,
26782,
23,
14934,
13225,
2430,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1850,
11013,
951,
63,
10057,
15409,
67,
882,
37,
6859,
67,
23,
65,
273,
13846,
15409,
67,
23,
31,
225,
2,
-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.0;
// Copyright 2018 OpenST Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | * @notice Deactivate Gateway contract. Can be set only by the organization address @return success_ `true` if value is set/ | function deactivateGateway()
external
onlyOrganization
returns (bool success_)
{
require(
activated == true,
"Gateway is already deactivated"
);
activated = false;
success_ = true;
}
| 6,447,275 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1505,
10014,
11381,
6835,
18,
4480,
506,
444,
1338,
635,
326,
540,
6758,
1758,
632,
2463,
2216,
67,
225,
1375,
3767,
68,
309,
460,
353,
444,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18790,
5197,
1435,
203,
3639,
3903,
203,
3639,
1338,
8113,
203,
3639,
1135,
261,
6430,
2216,
67,
13,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
14892,
422,
638,
16,
203,
5411,
315,
5197,
353,
1818,
443,
18836,
6,
... |
// SPDX-License-Identifier: MIT
// Version: 1
// Author: Satoshi Nakamoto <satoshi@vistomail.com>
pragma solidity >=0.4.22 <0.7.0;
interface IERC20 {
function balanceOf(address owner) external view returns (uint);
function approve(address, uint) external returns (bool);
function deposit() external payable;... | fully decentralized. no owner. non-stoppable. | constructor() public {
}
event Created();
event Aborted();
event Accepted();
event Confirmed();
| 1,029,454 | [
1,
4625,
348,
7953,
560,
30,
225,
7418,
2109,
12839,
1235,
18,
1158,
3410,
18,
1661,
17,
5681,
19586,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
565,
289,
203,
203,
565,
871,
12953,
5621,
203,
565,
871,
14263,
329,
5621,
203,
565,
871,
8662,
329,
5621,
203,
565,
871,
9675,
11222,
5621,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/4/0xDeA9bbE138FA291E70f2c3De153F8110df2bE5ad/sources/Tron3.sol | * @dev Destroys `amount` tokens from `account`, reducing the total supply. Emits a {Transfer} event with `to` set to the zero address. Requirements: - `account` cannot be the zero address. - `account` must have at least `amount` tokens./ | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "BEP20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "BEP20: burn am... | 13,330,754 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
869,
68,
444,
358,
326,
3634,
1758,
18,
29076,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
5024,
225,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
5948,
52,
3462,
30,
18305,
628,
326,
3634,
1758,
8863,
203,
203,
3639,
389,
5771,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-23
*/
/*
* @title Origin Dollar Governance ERC20 token (OGV)
* @author Origin Protocol Labs
*
* Origin Protocol
* https://originprotocol.com
* https://ousd.com
*
* Released under the MIT license
* https://github.com/OriginProtocol/origin-dollar
* ht... | * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since proxied contracts do not make use of a constructor, it\'s common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessa... | abstract contract Initializable {
bool private _initialized;
bool private _initializing;
}
modifier initializer() {
require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCa... | 2,440,940 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1220,
353,
279,
1026,
6835,
358,
20702,
316,
7410,
8400,
429,
20092,
16,
578,
1281,
3846,
434,
6835,
716,
903,
506,
19357,
21478,
279,
2889,
18,
7897,
21875,
20092,
741,
486,
1221,
999,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
10188,
6934,
288,
203,
565,
1426,
3238,
389,
13227,
31,
203,
203,
565,
1426,
3238,
389,
6769,
6894,
31,
203,
203,
97,
203,
203,
203,
565,
9606,
12562,
1435,
288,
203,
3639,
2583,
24899,
6769,
6894,
692,
389,
291,
629... |
./full_match/42/0x1c3633676E7e843A80886EBeA23176cB8a40068e/sources/browser/ACOPoolStrategy.sol | * @dev Internal function to set the minimum percentage for the option price calculation. @param _minOptionPricePercentage Value of the new minimum percentage for the option price calculation./ | function _setMinOptionPricePercentage(uint256 _minOptionPricePercentage) internal {
require(_minOptionPricePercentage > 0 && _minOptionPricePercentage < PERCENTAGE_PRECISION, "ACOPoolStrategy:: Invalid min option price percentage");
emit SetMinOptionPricePercentage(minOptionPricePercentage, _minOptionPricePe... | 9,592,511 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
444,
326,
5224,
11622,
364,
326,
1456,
6205,
11096,
18,
632,
891,
389,
1154,
1895,
5147,
16397,
1445,
434,
326,
394,
225,
5224,
11622,
364,
326,
1456,
6205,
11096,
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,
202,
915,
389,
542,
2930,
1895,
5147,
16397,
12,
11890,
5034,
389,
1154,
1895,
5147,
16397,
13,
2713,
288,
203,
202,
202,
6528,
24899,
1154,
1895,
5147,
16397,
405,
374,
597,
389,
1154,
1895,
5147,
16397,
411,
10950,
19666,
2833,
6... |
./full_match/5/0xa9b445699d1fFa5A39B36fC34C01bCaa29e54456/sources/contracts/RandomNumberConsumerV2.sol | * @title The RandomNumberConsumerV2 contract @notice A contract that gets random values from Chainlink VRF V2/ Your subscription ID. The gas lane to use, which specifies the maximum gas price to bump to. For a list of available gas lanes on each network, see https:docs.chain.link/docs/vrf-contracts/#configurations Depe... | contract RandomNumberConsumerV2 is VRFConsumerBaseV2 {
VRFCoordinatorV2Interface immutable COORDINATOR;
uint64 immutable i_subscriptionId;
bytes32 immutable i_keyHash;
uint32 constant CALLBACK_GAS_LIMIT = 100000;
uint16 constant REQUEST_CONFIRMATIONS = 3;
uint32 public constant NUM_WORDS = ... | 7,073,238 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1021,
8072,
1854,
5869,
58,
22,
6835,
632,
20392,
432,
6835,
716,
5571,
2744,
924,
628,
7824,
1232,
776,
12918,
776,
22,
19,
20471,
4915,
1599,
18,
1021,
16189,
328,
8806,
358,
999,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
8072,
1854,
5869,
58,
22,
353,
776,
12918,
5869,
2171,
58,
22,
288,
203,
565,
776,
12918,
25307,
58,
22,
1358,
11732,
7910,
916,
21329,
3575,
31,
203,
203,
565,
2254,
1105,
11732,
277,
67,
25218,
31,
203,
203,
565,
1731,
... |
./partial_match/42/0x4A6624110C50a2F9Cd92ACeFEd4DfB5ccF3576B0/sources/RIS3Farm.sol | * @notice A simple method that calculates the rewards for each stakeholder. @param _stakeholder The stakeholder to calculate rewards for./ | function calculateReward(address _stakeholder)
public
view
returns(uint256)
{
uint256 _totalStakes = totalStakes();
uint256 _totalRewards = totalRewards();
return _totalRewards * stakes[_stakeholder] / _totalStakes ;
}
| 3,336,372 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
432,
4143,
707,
716,
17264,
326,
283,
6397,
364,
1517,
384,
911,
4505,
18,
632,
891,
389,
334,
911,
4505,
1021,
384,
911,
4505,
358,
4604,
283,
6397,
364,
18,
19,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
17631,
1060,
12,
2867,
389,
334,
911,
4505,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
12,
11890,
5034,
13,
203,
565,
288,
203,
203,
3639,
2254,
5034,
389,
4963,
510,
3223,
273,
2078,
510,
3223,
5621,
... |
./full_match/71401/0x1281b4CD5d8C0Ec5Ce282E28b00F668D8AC13b2B/sources/contracts/configuration/ParametersProvider.sol | @dev returns protocol fee percentage. @return The PROTOCOL_FEE | function getProtocolFee() external pure returns (uint256) {
return PROTOCOL_FEE;
}
| 7,100,203 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1135,
1771,
14036,
11622,
18,
632,
2463,
1021,
24245,
67,
8090,
41,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
18648,
14667,
1435,
3903,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
24245,
67,
8090,
41,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(... | * @title TeCTokenStandard @dev the interface of TeCTokenStandard/ | contract TeCTokenStandard {
uint256 public stakeStartTime;
uint256 public stakeMinAge;
uint256 public stakeMaxAge;
function mint() returns (bool);
function coinAge() constant returns (uint256);
function annualInterest() constant returns (uint256);
event Mint(address indexed _address, uint _r... | 7,925,477 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
28602,
1268,
969,
8336,
632,
5206,
326,
1560,
434,
28602,
1268,
969,
8336,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
28602,
1268,
969,
8336,
288,
203,
565,
2254,
5034,
1071,
384,
911,
13649,
31,
203,
565,
2254,
5034,
1071,
384,
911,
2930,
9692,
31,
203,
565,
2254,
5034,
1071,
384,
911,
2747,
9692,
31,
203,
565,
445,
312,
474,
1435,
1135,... |
pragma solidity ^0.4.23;
pragma experimental "v0.5.0";
/*
This file is part of The Colony Network.
The Colony Network is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | @notice Allows a grant recipient to claim their vested tokens. Errors if no tokens have vested It is advised recipients check they are entitled to claim via `calculateGrantClaim` before calling this | function claimVestedTokens() public {
uint16 monthsVested;
uint128 amountVested;
(monthsVested, amountVested) = calculateGrantClaim(msg.sender);
require(amountVested > 0);
Grant storage tokenGrant = tokenGrants[msg.sender];
tokenGrant.monthsClaimed = uint16(add(tokenGrant.monthsClaimed, month... | 2,330,647 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
25619,
279,
7936,
8027,
358,
7516,
3675,
331,
3149,
2430,
18,
9372,
309,
1158,
2430,
1240,
331,
3149,
2597,
353,
1261,
26779,
12045,
866,
2898,
854,
3281,
305,
1259,
358,
7516,
3970,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7516,
58,
3149,
5157,
1435,
1071,
288,
203,
565,
2254,
2313,
8846,
58,
3149,
31,
203,
565,
2254,
10392,
3844,
58,
3149,
31,
203,
565,
261,
27584,
58,
3149,
16,
3844,
58,
3149,
13,
273,
4604,
9021,
9762,
12,
3576,
18,
... |
pragma solidity 0.5.17;
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20Detailed.sol";
/// @notice A test ERC20 token with 12 decimals.
contract ImpreciseToken is ERC20, ERC20Detailed {
string private co... | solium-disable-line uppercase
| string private constant _symbol = "IPT"; | 1,848,297 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
5077,
17,
8394,
17,
1369,
18966,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
3238,
5381,
389,
7175,
273,
315,
45,
1856,
14432,
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,
-... |
//File: node_modules/zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function ... | 6% during next 9 hours
| uint256 public constant BONUS_TIER2 = 106; | 1,317,329 | [
1,
4625,
348,
7953,
560,
30,
225,
1666,
9,
4982,
1024,
2468,
7507,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5381,
605,
673,
3378,
67,
23240,
654,
22,
273,
1728,
26,
31,
18701,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.25;
contract FOMOEvents {
// fired whenever a player registers a name
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affilia... | stores timestamp of the last increase/decrease so the next decay can by calculated - note that for non-linear decay, the timestamp only changes to the next minute or multiple of minutes that have passed
| uint256 public multLastChange = now; | 12,594,783 | [
1,
4625,
348,
7953,
560,
30,
225,
9064,
2858,
434,
326,
1142,
10929,
19,
323,
11908,
1427,
326,
1024,
22286,
848,
635,
8894,
300,
4721,
716,
364,
1661,
17,
12379,
22286,
16,
326,
2858,
1338,
3478,
358,
326,
1024,
8044,
578,
3229,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
11890,
5034,
1071,
1778,
3024,
3043,
273,
2037,
31,
4202,
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,... |
pragma solidity 0.4.24;
// File: node_modules/zeppelin-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) in... | total invested wei regardless of verification state
| uint totalWeiInvested; | 7,310,396 | [
1,
4625,
348,
7953,
560,
30,
225,
2078,
2198,
3149,
732,
77,
15255,
434,
11805,
919,
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,
3639,
2254,
2078,
3218,
77,
3605,
3149,
31,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xf0C763E8876FE82dE1398570E686e0a6a035d7e7/sources/src/iPadmateDoodle.sol | * @notice Set the merkle root for the allow list mint/ | function setMerkleRoot(
bytes32 _merkleRoot,
TicketID ticket
) external onlyRole(DEFAULT_ADMIN_ROLE) {
merkleRoot[ticket] = _merkleRoot;
}
| 2,599,183 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1000,
326,
30235,
1365,
364,
326,
1699,
666,
312,
474,
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,
444,
8478,
15609,
2375,
12,
203,
3639,
1731,
1578,
389,
6592,
15609,
2375,
16,
203,
3639,
22023,
734,
9322,
203,
565,
262,
3903,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
13,
288,
203,
3639,
30235,
2375,
63,
16282,
65... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
contract RandomNumberConsumer is VRFConsumerBase {
bytes32 internal keyHash;
uint256 internal fee;
uint256 internal randomNumber;
constructor()
VRFC... | @title ERC20 (Gems.sol) mintGems() and balanceOf() functions | interface Gem {
function mintGems(address _player, uint amount) external;
function balanceOf(address account) external view returns (uint256);
}
| 1,785,730 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
4232,
39,
3462,
261,
43,
7424,
18,
18281,
13,
312,
474,
43,
7424,
1435,
471,
11013,
951,
1435,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
611,
351,
288,
203,
565,
445,
312,
474,
43,
7424,
12,
2867,
389,
14872,
16,
2254,
3844,
13,
3903,
31,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
97,
203,
2,
-100,
-100,
... |
./partial_match/1/0xa76EA705783b595b420bb36F196540a2Ed629673/sources/MatchingMarket.sol | Add proportional amount of last offer to buy accumulator | fill_amt = add(fill_amt, rmul(pay_amt * 10 ** 9, rdiv(offers[offerId].pay_amt, offers[offerId].buy_amt)) / 10 ** 9);
| 3,575,040 | [
1,
4625,
348,
7953,
560,
30,
1436,
23279,
287,
3844,
434,
1142,
10067,
358,
30143,
13514,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3636,
67,
301,
88,
273,
527,
12,
5935,
67,
301,
88,
16,
6692,
332,
12,
10239,
67,
301,
88,
380,
1728,
2826,
2468,
16,
436,
2892,
12,
3674,
414,
63,
23322,
548,
8009,
10239,
67,
301,
88,
16,
28641,
63,
23322,
548,
8009,
... |
// File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties... | unchecked: add to set | function addLockupPeriods(uint16[] memory inDays, uint256[] memory emissions) external onlyOwner {
for(uint256 i = 0; i < inDays.length; i++) {
validLockupPeriodsDays[inDays[i]] = emissions[i];
}
}
| 6,174,869 | [
1,
4625,
348,
7953,
560,
30,
22893,
30,
527,
358,
444,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
2531,
416,
30807,
12,
11890,
2313,
8526,
3778,
316,
9384,
16,
2254,
5034,
8526,
3778,
801,
1054,
1115,
13,
3903,
1338,
5541,
288,
203,
3639,
364,
12,
11890,
5034,
277,
273,
374,
31,
277,
411,
316,
9384,
18,
2469,
... |
./full_match/11155111/0x9cEdc0546C8516D7429c1E90004f877EC790b2d1/sources/project_/contracts/MasterMultiSig.sol | @dev Returns total number of transactions after filers are applied. @param pending Include pending transactions. @param executed Include executed transactions. @return count Total number of transactions after filters are applied. | function getTransactionCount(bool pending, bool executed)
external
view
returns (uint256 count)
{
for (uint256 i = 0; i < transactionCount; i++)
if (
(pending && !transactions[i].executed) ||
(executed && transactions[i].executed)
... | 3,802,581 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
2078,
1300,
434,
8938,
1839,
661,
414,
854,
6754,
18,
632,
891,
4634,
12672,
4634,
8938,
18,
632,
891,
7120,
12672,
7120,
8938,
18,
632,
2463,
1056,
10710,
1300,
434,
8938,
1839,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15674,
1380,
12,
6430,
4634,
16,
1426,
7120,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
1056,
13,
203,
565,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
2492,
1380,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-03
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which i... | first 32 bytes, after the length prefix second 32 bytes final byte (first byte of the next 32 bytes) | function splitSignature(bytes memory sig)
private
pure
returns (
bytes32 r,
bytes32 s,
uint8 v
)
{
require(sig.length == 65, "invalid signature length");
assembly {
First 32 bytes stores the length of the signature
... | 6,666,751 | [
1,
4625,
348,
7953,
560,
30,
225,
1122,
3847,
1731,
16,
1839,
326,
769,
1633,
2205,
3847,
1731,
727,
1160,
261,
3645,
1160,
434,
326,
1024,
3847,
1731,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1416,
5374,
12,
3890,
3778,
3553,
13,
203,
3639,
3238,
203,
3639,
16618,
203,
3639,
1135,
261,
203,
5411,
1731,
1578,
436,
16,
203,
5411,
1731,
1578,
272,
16,
203,
5411,
2254,
28,
331,
203,
3639,
262,
203,
565,
288,
2... |
./full_match/56/0x02762ec5CD245d922BE81BcfC6Cc4424eF85166f/sources/project_/contracts/libs/token/BEP20/BEP20Extended.sol | * @dev Returns the transfer burn rate./ | function transferBurnRate() public view returns (uint256) {
return _transferBurnRate;
}
| 3,226,396 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
7412,
18305,
4993,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
38,
321,
4727,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
13866,
38,
321,
4727,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.20;
/*
* Proof of Crypto Yoda
* ====================================*
____
_.' : `._
.-.'`. ; .'`.-.
__ / : ___\ ; /___ ; \ __
,'_ ""--.:__;".-.";: :".-.":__;.--"" _`,
:' `.t""--.. '<@.`;_ ',@>` ... | ensures that the first tokens in the contract will be equally distributed meaning, no divine dump will be ever possible result: healthy longevity. are we still in the vulnerable phase? if so, enact anti early whale protocol is the customer in the ambassador list? does the customer purchase exceed the max ambassador qu... | modifier antiEarlyWhale(uint256 _amountOfEthereum){
address _customerAddress = msg.sender;
if( onlyAmbassadors && ((totalEthereumBalance() - _amountOfEthereum) <= ambassadorQuota_ )){
require(
ambassadors_[_customerAddress] == true &&
(ambassadorAccumu... | 15,277,437 | [
1,
4625,
348,
7953,
560,
30,
225,
11932,
716,
326,
1122,
2430,
316,
326,
6835,
903,
506,
1298,
1230,
16859,
12256,
16,
1158,
3739,
558,
4657,
903,
506,
14103,
3323,
563,
30,
28819,
4281,
908,
16438,
18,
854,
732,
4859,
316,
326,
331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9606,
30959,
41,
20279,
2888,
5349,
12,
11890,
5034,
389,
8949,
951,
41,
18664,
379,
15329,
203,
3639,
1758,
389,
10061,
1887,
273,
1234,
18,
15330,
31,
203,
7010,
3639,
309,
12,
1338,
30706,
428,
361,
1383,
597,
14015,
4963,
... |
pragma solidity 0.4.24;
/**
* @title IMarket
* @author Veil
*
* Simplified Augur Market interface
*/
contract IMarket {
function getNumTicks() public view returns (uint256);
function getShareToken(uint256 _outcome) public view returns (address);
function getDenominationToken() public view returns (address)... | * @title IMarket @author Veil Simplified Augur Market interface/ | contract IMarket {
function getNumTicks() public view returns (uint256);
function getShareToken(uint256 _outcome) public view returns (address);
function getDenominationToken() public view returns (address);
}
| 1,771,536 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
467,
3882,
278,
632,
4161,
776,
73,
330,
9587,
412,
939,
432,
637,
295,
6622,
278,
1560,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
467,
3882,
278,
288,
203,
225,
445,
11187,
16610,
1435,
1071,
1476,
1135,
261,
11890,
5034,
1769,
203,
225,
445,
7932,
834,
1345,
12,
11890,
5034,
389,
21672,
13,
1071,
1476,
1135,
261,
2867,
1769,
203,
225,
445,
2343,
275,
... |
./partial_match/1/0xE4dD566b410Fe45db55BD9F5f928269290B0a674/sources/SecurityToken.sol | * @notice Queries totalSupply as of a defined checkpoint @param _checkpointId Checkpoint ID to query @return uint256/ | function totalSupplyAt(uint256 _checkpointId) external view returns(uint256) {
require(_checkpointId <= currentCheckpointId);
return TokenLib.getValueAt(checkpointTotalSupply, _checkpointId, totalSupply());
}
| 4,335,630 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
30189,
2078,
3088,
1283,
487,
434,
279,
2553,
9776,
632,
891,
389,
25414,
548,
25569,
1599,
358,
843,
632,
2463,
2254,
5034,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2078,
3088,
1283,
861,
12,
11890,
5034,
389,
25414,
548,
13,
3903,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
2583,
24899,
25414,
548,
1648,
783,
14431,
548,
1769,
203,
3639,
327,
3155,
5664,
18,
24805,
861,
12,
2... |
./full_match/56/0x41b296076F4432cF56cDc5598Ea29203f3a9B17a/sources/project_/contracts/acg.sol | To keep track of the block number of the last transfer for each user
| uint256 lastTransferBlock; | 3,257,057 | [
1,
4625,
348,
7953,
560,
30,
225,
2974,
3455,
3298,
434,
326,
1203,
1300,
434,
326,
1142,
7412,
364,
1517,
729,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
1142,
5912,
1768,
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,... |
./partial_match/1/0x0C363C7c42Cc80Ac93A664AF5b82C71B0Cd9296d/sources/Whitelist.sol | * @notice whitelist which manages KYC approvals, token lockup, and transfer restrictions for a DAT token./ uint8 status codes as suggested by the ERC-1404 spec | contract Whitelist is IWhitelist, Ownable, OperatorRole {
using SafeMath for uint;
uint8 private constant STATUS_SUCCESS = 0;
uint8 private constant STATUS_ERROR_JURISDICTION_FLOW = 1;
uint8 private constant STATUS_ERROR_LOCKUP = 2;
uint8 private constant STATUS_ERROR_USER_UNKNOWN = 3;
uint8 private consta... | 16,141,699 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10734,
1492,
20754,
281,
1475,
61,
39,
6617,
4524,
16,
1147,
2176,
416,
16,
471,
7412,
17499,
364,
279,
12364,
1147,
18,
19,
2254,
28,
1267,
6198,
487,
22168,
635,
326,
4232,
39,
17,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3497,
7523,
353,
467,
18927,
16,
14223,
6914,
16,
11097,
2996,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
225,
2254,
28,
3238,
5381,
7136,
67,
12778,
273,
374,
31,
203,
225,
2254,
28,
3238,
5381,
7136,
67,... |
pragma solidity ^0.4.24;
import "../ownership/ClaimableProxy.sol";
// Storage contracts holds all state.
// Do not change the order of the fields, аdd new fields to the end of the contract!
contract Storage is ClaimableProxy
{
/***************************************************************************
*** S... | * Allows owner to remove fact provider from whitelist./ | function removeFactProviderFromWhitelist(address _address) onlyOwner external {
delete factProviderWhitelist[_address];
emit WhitelistFactProviderRemoved(_address);
}
| 7,233,451 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
25619,
3410,
358,
1206,
5410,
2893,
628,
10734,
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,
... | [
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,
9766,
2249,
1265,
18927,
12,
2867,
389,
2867,
13,
1338,
5541,
3903,
288,
203,
3639,
1430,
5410,
2249,
18927,
63,
67,
2867,
15533,
203,
3639,
3626,
3497,
7523,
9766,
2249,
10026,
24899,
2867,
1769,
203,
565,
289,
203... |
pragma solidity ^0.5.16;
import "./CToken.sol";
import "./ComptrollerStorage.sol";
/**
* @title Cream's Comptroller interface extension
*/
interface ComptrollerInterfaceExtension {
function checkMembership(address account, CToken cToken) external view returns (bool);
function updateCTokenVersion(address cT... | * @notice Transfer `tokens` tokens from `src` to `dst` by `spender` @dev Called by both `transfer` and `transferFrom` internally @param spender The address of the account performing the transfer @param src The address of the source account @param dst The address of the destination account @param tokens The number of to... | function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint) {
initializeAccountCollateralTokens(src);
initializeAccountCollateralTokens(dst);
uint bufferTokens = sub_(accountTokens[src], accountCollateralTokens[src]);
uint collateralTokens... | 1,264,808 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12279,
1375,
7860,
68,
2430,
628,
1375,
4816,
68,
358,
1375,
11057,
68,
635,
1375,
87,
1302,
264,
68,
632,
5206,
11782,
635,
3937,
1375,
13866,
68,
471,
1375,
13866,
1265,
68,
12963,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
5157,
12,
2867,
17571,
264,
16,
1758,
1705,
16,
1758,
3046,
16,
2254,
2430,
13,
2713,
1135,
261,
11890,
13,
288,
203,
3639,
4046,
3032,
13535,
2045,
287,
5157,
12,
4816,
1769,
203,
3639,
4046,
3032,
13535,
2045,
2... |
./partial_match/1/0x15bBeB47e642828778937b90fdA1926b744b0733/sources/Bank.sol | * checks if a token is a Cowboy @param tokenId the ID of the token to check @return Mutant - whether or not a token is a Cowboy/ | function isMutant(uint256 tokenId) public view returns (bool Mutant) {
(,Mutant, , , , , ,) = game.tokenTraits(tokenId);
}
| 4,336,646 | [
1,
4625,
348,
7953,
560,
30,
380,
4271,
309,
279,
1147,
353,
279,
385,
543,
1075,
93,
632,
891,
1147,
548,
326,
1599,
434,
326,
1147,
358,
866,
632,
2463,
14138,
970,
300,
2856,
578,
486,
279,
1147,
353,
279,
385,
543,
1075,
93,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
7420,
970,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
1135,
261,
6430,
14138,
970,
13,
288,
203,
3639,
261,
16,
7420,
970,
16,
269,
269,
269,
269,
269,
13,
273,
7920,
18,
2316,
30370,
12,
2316,
548,
1769,
203,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | Он завернул к нам по пути к месту службы. (ЗАВЕРНУТЬ К)
| rus_verbs:ЗАВЕРНУТЬ{}, | 5,487,876 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
257,
145,
126,
225,
145,
120,
145,
113,
145,
115,
145,
118,
146,
227,
145,
126,
146,
230,
145,
124,
225,
145,
123,
225,
145,
126,
145,
113,
145,
125,
225,
145,
128,
145,
127,
225,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
436,
407,
67,
502,
2038,
30,
145,
250,
145,
243,
145,
245,
145,
248,
145,
259,
145,
256,
145,
101,
145,
100,
145,
110,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0xe7142edb1F51750A0b1d817c3AbB95979beA9aA0
//Contract name: EtchReward
//Balance: 0 Ether
//Verification Date: 6/28/2017
//Transacion Count: 43
// CODE STARTS HERE
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
*... | * @dev We use a single lock for the whole contract./* @dev Prevents a contract from calling itself, directly or indirectly. @notice If you mark a function `nonReentrant`, you should also mark it `external`. Calling one nonReentrant function from another is not supported. Instead, you can implement a `private` function ... | modifier nonReentrant() {
if(rentrancy_lock == false) {
rentrancy_lock = true;
_;
rentrancy_lock = false;
throw;
}
}
| 2,555,431 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1660,
999,
279,
2202,
2176,
364,
326,
7339,
6835,
18,
20308,
632,
5206,
19412,
87,
279,
6835,
628,
4440,
6174,
16,
5122,
578,
16807,
715,
18,
632,
20392,
971,
1846,
2267,
279,
445,
1375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
9606,
1661,
426,
8230,
970,
1435,
288,
203,
565,
309,
12,
1187,
313,
12514,
67,
739,
422,
629,
13,
288,
203,
1377,
1654,
313,
12514,
67,
739,
273,
638,
31,
203,
1377,
389,
31,
203,
1377,
1654,
313,
12514,
67,
739,
273,
6... |
./full_match/1/0xC0aBdCd8B34C0B28258791726656B390BE7113cA/sources/contracts/marketplace/v2/CentMarketPlace.sol | @notice Restricted method used to withdraw the funds from the marketplace. @dev Restricted to Admin Role. @dev Emits the event { Withdraw }. | function withdraw() external onlyRole(ADMIN_ROLE) {
(bool success, ) = payable(_msgSender()).call{
value: address(this).balance
}("");
if (!success) revert ErrorMessage("Withdraw Failed");
emit Withdraw();
}
| 16,508,381 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
29814,
707,
1399,
358,
598,
9446,
326,
284,
19156,
628,
326,
29917,
18,
632,
5206,
29814,
358,
7807,
6204,
18,
632,
5206,
7377,
1282,
326,
871,
288,
3423,
9446,
289,
18,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1435,
3903,
1338,
2996,
12,
15468,
67,
16256,
13,
288,
203,
3639,
261,
6430,
2216,
16,
262,
273,
8843,
429,
24899,
3576,
12021,
1435,
2934,
1991,
95,
203,
5411,
460,
30,
1758,
12,
2211,
2934,
12296,
203,
3639... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
import "./auxiliary/interfaces/v0.8.2/IApi3Token.sol";
import "./interfaces/IStateUtils.sol";
/// @title Contract that keeps state variables
contract StateUtils is IStateUtils {
struct Checkpoint {
uint256 fromBlock;
uint256 value;
}
s... | @notice Called by the owner of the proposal to publish the specs URL @dev Since the owner of a proposal is known, users publishing specs for a proposal that is not their own is not a concern @param proposalIndex Proposal index @param specsUrl URL that hosts the specs of the transaction that will be made if the proposa... | function publishSpecsUrl(
address votingApp,
uint256 proposalIndex,
string calldata specsUrl
)
external
override
{
userAddressToVotingAppToProposalIndexToSpecsUrl[msg.sender][votingApp][proposalIndex] = specsUrl;
emit PublishedSpecsUrl(
... | 5,433,404 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11782,
635,
326,
3410,
434,
326,
14708,
358,
3808,
326,
10607,
1976,
632,
5206,
7897,
326,
3410,
434,
279,
14708,
353,
4846,
16,
3677,
23636,
10607,
364,
279,
14708,
716,
353,
486,
3675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3808,
15999,
1489,
12,
203,
3639,
1758,
331,
17128,
3371,
16,
203,
3639,
2254,
5034,
14708,
1016,
16,
203,
3639,
533,
745,
892,
10607,
1489,
203,
3639,
262,
203,
3639,
3903,
203,
3639,
3849,
203,
565,
288,
203,
3639,
72... |
./partial_match/1/0x1Cb6Aa652b68984eD3f74263630Cc7c3bE2601E1/sources/ForkRC.sol | * @title CrowdGenerator @dev Contract to generate a lot of RC/ | contract CrowdGenerator is TokenRecover {
using SafeMath for uint256;
uint256[] public bonusRanges;
uint256[] public bonusValues;
uint256 public endTime;
uint256 public rate;
address public wallet;
uint256 public tokenCap;
address public token;
address public contributions;
uint256 public minimum... | 4,457,445 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
385,
492,
72,
3908,
632,
5206,
13456,
358,
2103,
279,
17417,
434,
24206,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
385,
492,
72,
3908,
353,
3155,
27622,
288,
203,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
2254,
5034,
8526,
1071,
324,
22889,
9932,
31,
203,
225,
2254,
5034,
8526,
1071,
324,
22889,
1972,
31,
203,
2... |
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal... | * @dev Public sale mint @param quantity Number of tokens to mint - Degenerates Club members cost 0.04 per mint. - 10 can be minted per transaction. Gas fees are real small, if you want more just send another transaction. - The contract is constructed to optimize gas./ | function mint(uint256 quantity) external payable {
require(saleIsActive == 1, 'Sale is not active');
require(quantity <= 10, 'Cant mint more than 10');
require(totalSupply() + quantity <= maxSupply);
require(msg.value >= (pricePer*quantity), 'Not enough Eth sent');
_safeMint(msg.sender, quantity);... | 13,702,481 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7224,
272,
5349,
312,
474,
632,
891,
10457,
3588,
434,
2430,
358,
312,
474,
300,
463,
1332,
708,
815,
3905,
373,
4833,
6991,
374,
18,
3028,
1534,
312,
474,
18,
300,
1728,
848,
506,
312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
12,
11890,
5034,
10457,
13,
3903,
8843,
429,
288,
203,
565,
2583,
12,
87,
5349,
2520,
3896,
422,
404,
16,
296,
30746,
353,
486,
2695,
8284,
203,
565,
2583,
12,
16172,
1648,
1728,
16,
296,
39,
970,
312,
474,
... |
./full_match/1/0x55729476265Ab24C2e9cdfb6A7267eED15E6e789/sources/contracts/ERC20Locker.sol | check feed address interface check feed address interface | function configureDepositWithPrice(
address _token,
uint256 _lockForDays,
address _priceFeed,
int256 _minExpectedPrice,
int256 _pricePrecision
) public {
require(_minExpectedPrice >= 0, "Invalid minExpectedPrice value.");
require(_lockForDays > 0, "Invalid... | 9,809,179 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
4746,
1758,
1560,
866,
4746,
1758,
1560,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5068,
758,
1724,
1190,
5147,
12,
203,
3639,
1758,
389,
2316,
16,
203,
3639,
2254,
5034,
389,
739,
1290,
9384,
16,
203,
3639,
1758,
389,
8694,
8141,
16,
203,
3639,
509,
5034,
389,
1154,
6861,
5147,
16,
203,
3639,
509,
... |
./partial_match/1/0x79f21C5611F4788708FE80f1154AbF99d3d98451/sources/AA.sol | * @dev Sets wallets for taxes./ | function setTaxWallets(address dev) public onlyOwner {
taxWallets["dev"] = dev;
}
| 2,653,538 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
17662,
2413,
364,
5320,
281,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
7731,
26558,
2413,
12,
2867,
4461,
13,
1071,
1338,
5541,
288,
203,
3639,
5320,
26558,
2413,
9614,
5206,
11929,
273,
4461,
31,
203,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.24;
import "../../open-zeppelin/contracts/math/SafeMath.sol";
import "./OwnerStandardERC20.sol";
import "./ERC20Exchangable.sol";
import "./Operationable.sol";
/**
* @title Operation holder utility smart contract
* @author Biglabs Pte. Ltd.
* @dev Operation wallets
*/
contract OperationHold... | * @dev Only operation wallet/ | modifier onlyOperation() {
require(operation.isOperationWallet(msg.sender));
_;
}
| 2,529,518 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
5098,
1674,
9230,
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,
9606,
1338,
2988,
1435,
288,
203,
3639,
2583,
12,
7624,
18,
291,
2988,
16936,
12,
3576,
18,
15330,
10019,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity 0.4.25;
import "./SafeMath.sol";
import "./Roles.sol";
/**
* @title TRC20 interface
*/
interface TRC20Interface {
function balanceOf(address tokenOwner) external view returns (uint256 balance);
function allowance(address tokenOwner, address spender) external view returns (uint256 remaining)... | * @dev transfer token for a specified address @param to The address to transfer to. @param tokens The amount to be transferred./ | function transfer(address to, uint256 tokens) public returns (bool) {
require(to != address(0));
require(tokens <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(msg.sender, to, tokens);
... | 12,758,011 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7412,
1147,
364,
279,
1269,
1758,
632,
891,
358,
1021,
1758,
358,
7412,
358,
18,
632,
891,
2430,
1021,
3844,
358,
506,
906,
4193,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
2430,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
12,
7860,
1648,
324,
26488,
63,
3576,
18,
15330,
19226,
203,
203,
363... |
/**
*Submitted for verification at Etherscan.io on 2021-10-25
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
// NOTICE: Contract begins line 345
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint... | token value => pool token value | function value( uint amount ) public view returns ( uint ) {
return amount.mul( 1e18 ).div( redemptionValue() );
}
| 2,328,888 | [
1,
4625,
348,
7953,
560,
30,
225,
1147,
460,
516,
2845,
1147,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
460,
12,
2254,
3844,
262,
1071,
1476,
1135,
261,
2254,
262,
288,
203,
3639,
327,
3844,
18,
16411,
12,
404,
73,
2643,
262,
18,
2892,
12,
283,
19117,
375,
620,
1435,
11272,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
// Part: OpenZeppelin/openzeppelin-contracts@4.2.0/Context
/*
* @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 sh... | File: SimbaCoin.sol Welcome to the Serengeti 100 million coins maximum supply | contract SimbaCoin is ERC20, Ownable {
uint256 constant public maxTotalSupply = (10**8)*(10**18);
constructor() ERC20("Simba Coin", "SIMBA"){}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
ad... | 14,357,160 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
9587,
12124,
27055,
18,
18281,
678,
16312,
358,
326,
1275,
275,
588,
77,
2130,
312,
737,
285,
276,
9896,
4207,
14467,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
9587,
12124,
27055,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
203,
565,
2254,
5034,
5381,
1071,
943,
5269,
3088,
1283,
273,
261,
2163,
636,
28,
17653,
12,
2163,
636,
2643,
1769,
203,
203,
565,
3885,
1435,
4232,
39,
3... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
requi... | Prevent transfer to 0x0 address. Use burn() instead
| if (to == 0x0) revert(); | 1,595,340 | [
1,
4625,
348,
7953,
560,
30,
225,
19412,
7412,
358,
374,
92,
20,
1758,
18,
2672,
18305,
1435,
3560,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
869,
422,
374,
92,
20,
13,
15226,
5621,
4766,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.21;
contract OraclizeI {
address public cbAddress;
function query(uint _timestamp, string _datasource, string _arg) external payable returns (bytes32 _id);
function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) external payable returns (bytes32 _i... | now update the total supply of tokens and bankroll amount | totalSupply = SafeMath.add(currentSupplyOfTokens, creditedTokens);
| 450,551 | [
1,
4625,
348,
7953,
560,
30,
225,
2037,
1089,
326,
2078,
14467,
434,
2430,
471,
11218,
2693,
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,
202,
202,
4963,
3088,
1283,
273,
14060,
10477,
18,
1289,
12,
2972,
3088,
1283,
951,
5157,
16,
12896,
329,
5157,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.5.16;
interface IERC20 {
function TOTALSUPPLY886() external view returns (uint); //inject NONSTANDARD NAMING
function BALANCEOF698(address account) external view returns (uint); //inject NONSTANDARD NAMING
function TRANSF... | inject NONSTANDARD NAMING
| function ALLOWANCE343(address owner, address spender) public view returns (uint) { | 7,321,024 | [
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,
18592,
4722,
5026,
23,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0x8eb965ee9ccfbce76c0a06264492c0afefc2826d
//Contract name: ToorToken
//Balance: 0 Ether
//Verification Date: 6/13/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* f... | Calculate the pending non-cliff installments to pay based on current time | uint256 installments = ((currInterval * tokenGenInterval) - cliff) / vestingPeriod;
| 1,005,536 | [
1,
4625,
348,
7953,
560,
30,
225,
9029,
326,
4634,
1661,
17,
830,
3048,
3799,
1346,
358,
8843,
2511,
603,
783,
813,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
3799,
1346,
273,
14015,
17016,
4006,
380,
1147,
7642,
4006,
13,
300,
927,
3048,
13,
342,
331,
10100,
5027,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0xf5D8015D625be6F59b8073C8189BD51bA28792e1/sources/OFTV2.sol | * @dev See {IERC165-supportsInterface}./ | function _debitFrom(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount) internal virtual returns (uint);
function _creditTo(uint16 _srcChainId, address _toAddress, uint _amount) internal virtual returns (uint);
function _transferFrom(address _from, address _to, uint _amount) internal virt... | 3,577,284 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
28275,
17,
28064,
1358,
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,
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,
389,
323,
3682,
1265,
12,
2867,
389,
2080,
16,
2254,
2313,
389,
11057,
3893,
548,
16,
1731,
1578,
389,
869,
1887,
16,
2254,
389,
8949,
13,
2713,
5024,
1135,
261,
11890,
1769,
203,
203,
565,
445,
389,
20688,
774,
12,
1... |
pragma solidity ^0.4.18;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, ad... | * @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./ | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() public {owner = msg.sender; }
modifier onlyOwner() {require(msg.sender == owner); _; }
}
| 6,030,213 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14223,
6914,
632,
5206,
1021,
14223,
6914,
6835,
711,
392,
3410,
1758,
16,
471,
8121,
5337,
6093,
3325,
4186,
16,
333,
9330,
5032,
326,
4471,
434,
315,
1355,
4371,
9654,
19,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
225,
1758,
1071,
3410,
31,
203,
225,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
225,
3885,
1435,
1071,
288,
8443,
273,
1234,
18,
15330,
31,
... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'Crypto Will' CROWDSALE token contract
//
// Deployed to : 0x93eEF2f7aF419fDD079042420Bb3b0eBD935228F
// Symbol : WIL
// Name : Crypto Will Token
// Total supply: Gazillion
// Decimals : 18
//
// ... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract cryptoWillToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(address => mapping(... | 13,864,600 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8170,
13670,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,... |
/*
|| THE LEXDAO REGISTRY (TLDR) || version 0.2
DEAR MSG.SENDER(S):
/ TLDR is a project in beta.
// Please audit and use at your own risk.
/// Entry into TLDR shall not create an attorney/client relationship.
//// Likewise, TLDR should not be construed as legal advice or replacement for professional counsel.
///// S... | releases escrowed ddrToken deliverableRate amount to provider (0x) address / lexFee for attached lexID lexAddress
| function payDDR(uint256 ddrNumber) public { | 2,555,235 | [
1,
4625,
348,
7953,
560,
30,
225,
14824,
2904,
492,
329,
302,
3069,
1345,
11795,
429,
4727,
3844,
358,
2893,
261,
20,
92,
13,
1758,
342,
5275,
14667,
364,
7495,
5275,
734,
5275,
1887,
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,
565,
445,
8843,
5698,
54,
12,
11890,
5034,
302,
3069,
1854,
13,
1071,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* SEED Platform Generator ATDeployer
*/
pragma solidity ^0.5.2;
/**
* @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
*... | * @dev Transfers control of the contract to a newOwner. @param newOwner The address to transfer ownership to./ | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0),"Address 0 could not be owner");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| 895,997 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
3325,
434,
326,
6835,
358,
279,
394,
5541,
18,
632,
891,
394,
5541,
1021,
1758,
358,
7412,
23178,
358,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
5460,
12565,
12,
2867,
394,
5541,
13,
2713,
288,
203,
3639,
2583,
12,
2704,
5541,
480,
1758,
12,
20,
3631,
6,
1887,
374,
3377,
486,
506,
3410,
8863,
203,
3639,
3626,
14223,
9646,
5310,
1429,
4193,
24899,
844... |
./full_match/1/0x322C1A01Bcb1A1AaA4C4061AB0A8147420aF31fA/sources/contracts/LidoStaking.sol | Allows the owner to set the gov contract address | function setGov(address _gov) external onlyOwner {
gov = _gov;
emit GovChanged(gov);
}
| 17,067,968 | [
1,
4625,
348,
7953,
560,
30,
225,
25619,
326,
3410,
358,
444,
326,
31841,
6835,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26770,
1527,
12,
2867,
389,
75,
1527,
13,
3903,
1338,
5541,
288,
203,
3639,
31841,
273,
389,
75,
1527,
31,
203,
3639,
3626,
611,
1527,
5033,
12,
75,
1527,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0x401c8680Da9C39C3f284b29B4518A6DaC4ef5A53/sources/contracts/relayer/libraries/LibDiamond.sol | add new facet address if it does not exist | function addFunctions(
address _facetAddress,
bytes4[] memory _functionSelectors
) internal {
if (_functionSelectors.length == 0) {
revert NoSelectorsInFace();
}
DiamondStorage storage ds = diamondStorage();
if (LibUtil.isZeroAddress(_facetAddress)) {
... | 851,330 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
394,
11082,
1758,
309,
518,
1552,
486,
1005,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
7503,
12,
203,
3639,
1758,
389,
21568,
1887,
16,
203,
3639,
1731,
24,
8526,
3778,
389,
915,
19277,
203,
565,
262,
2713,
288,
203,
3639,
309,
261,
67,
915,
19277,
18,
2469,
422,
374,
13,
288,
203,
5411,
15226,
263... |
pragma solidity ^0.8.0;
// Copyright 2020 Keyko GmbH.
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0
import '@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol'... | * @dev isContract detect whether the address is is a contract address or externally owned account @return true if it is a contract address/ solhint-disable-next-line | function isContract(address addr)
public
view
returns (bool)
{
uint size;
return size > 0;
}
| 13,052,951 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
353,
8924,
5966,
2856,
326,
1758,
353,
1850,
353,
279,
6835,
1758,
578,
18885,
1230,
16199,
2236,
632,
2463,
638,
309,
518,
353,
279,
6835,
1758,
19,
3704,
11317,
17,
8394,
17,
4285,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
8924,
12,
2867,
3091,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2254,
963,
31,
203,
3639,
327,
963,
405,
374,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-1... |
./full_match/5/0x6ea4Fc5aaCE662fc5A0b0aBD59e75115A2B82a7D/sources/contracts/prebuilts/game/core/Game.sol | @dev Returns whether address is player. | function isPlayer(address player) public view returns (bool) {
return gs.players[player];
}
| 7,068,998 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
2856,
1758,
353,
7291,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
12148,
12,
2867,
7291,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
10763,
18,
1601,
414,
63,
14872,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/4/0x24b7a73889de40dd417FABEbcd6A32e451A4d52f/sources/Users/patrick/Documents/TRON/VENTI/venti/contracts/stake/Stake.sol | * @dev PUBLIC FACING: Closes a stake. The order of the stake list can change so a stake id is used to reject stale indexes. @param stakeIndex Index of stake within stake list @param stakeIdParam The stake's id/ require() is more informative than the default assert() */ Get stake copy */ Check if log data needs to be up... | function stakeEnd(uint256 stakeIndex, uint40 stakeIdParam)
external
{
GlobalsCache memory g;
GlobalsCache memory gSnapshot;
_globalsLoad(g, gSnapshot);
StakeStore[] storage stakeListRef = stakeLists[msg.sender];
require(stakeListRef.length != 0, "VENTI: Empty stake ... | 703,363 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17187,
478,
2226,
1360,
30,
22442,
2420,
279,
384,
911,
18,
1021,
1353,
434,
326,
384,
911,
666,
848,
2549,
1427,
279,
384,
911,
612,
353,
1399,
358,
4925,
14067,
5596,
18,
632,
891,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
384,
911,
1638,
12,
11890,
5034,
384,
911,
1016,
16,
2254,
7132,
384,
911,
548,
786,
13,
203,
565,
3903,
203,
565,
288,
203,
3639,
18901,
1031,
1649,
3778,
314,
31,
203,
3639,
18901,
1031,
1649,
3778,
314,
4568,
31,
2... |
pragma solidity ^0.5.2;
import "./Authorization.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
contract Payments is Authorization {
// library to provide arithmetic with integer overflow / underflow checking
using SafeMath for uint256;
event FundsTransferred(
address indexed ... | library to provide arithmetic with integer overflow / underflow checking track users' balances | contract Payments is Authorization {
using SafeMath for uint256;
event FundsTransferred(
address indexed sender,
address indexed recipient,
uint amount
);
event FundsAdded(
address indexed recipient,
address indexed minter,
uint amount
);
event... | 984,210 | [
1,
4625,
348,
7953,
560,
30,
225,
5313,
358,
5615,
30828,
598,
3571,
9391,
342,
3613,
2426,
6728,
3298,
3677,
11,
324,
26488,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
13838,
1346,
353,
10234,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
478,
19156,
1429,
4193,
12,
203,
3639,
1758,
8808,
5793,
16,
203,
3639,
1758,
8808,
8027,
16,
203,
3639,
2254,
3844,
... |
./partial_match/1/0x3C01af36cCd6bAe6f5CDaf99b7d54D3585AeE475/sources/contracts/ERC721.sol | * @dev Transfers `tokenId` from `from` to `to`. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./ Clear approvals from the previous owner | function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenI... | 3,556,112 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
1375,
2316,
548,
68,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
225,
2970,
1061,
7423,
358,
288,
13866,
1265,
5779,
333,
709,
10522,
1158,
17499,
603,
1234,
18,
15330,
18,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
8443,
951,
12,
2316,
548,
13,
422,
628,
16,
315,
654,
39,
27... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title Auction
*
* @dev This handles creating auctions for sale and siring of kitties.
*/
contract Auction is Breeding {
/**
* @dev Only CEO can sets the reference to the sale auction — for gen0 and p2p sale.
*
* @par... | * @dev Increase the count for promo gorilla and create the gorilla./ | promoCreatedCount++;
| 5,540,084 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
657,
11908,
326,
1056,
364,
3012,
83,
10330,
10745,
471,
752,
326,
10330,
10745,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3012,
83,
6119,
1380,
9904,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
// Inheritance
import "./BaseSynthetixBridge.sol";
import "./interfaces/ISynthetixBridgeToBase.sol";
import "@eth-optimism/contracts/iOVM/bridge/tokens/iOVM_L2DepositedToken.sol";
// Internal references
import "@eth-optimism/contracts/iOVM/bridge/tokens/iOVM_... | invoked by user on L2 | function withdraw(uint amount) external requireInitiationActive {
_initiateWithdraw(msg.sender, amount);
}
| 12,986,888 | [
1,
4625,
348,
7953,
560,
30,
225,
8187,
635,
729,
603,
511,
22,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
12,
11890,
3844,
13,
3903,
2583,
2570,
7072,
3896,
288,
203,
3639,
389,
2738,
3840,
1190,
9446,
12,
3576,
18,
15330,
16,
3844,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.5.17;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./lib/AddressHelper.sol";
import "./lib/XNum.sol";
import "./interfaces/IERC20.sol";
contract XHalfLife is ReentrancyGuard {
using SafeMath for uint256;
using Addres... | can be cancelled or not
| bool cancelable; | 2,508,990 | [
1,
4625,
348,
7953,
560,
30,
225,
848,
506,
13927,
578,
486,
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,
1426,
3755,
429,
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,
-100,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Allows a contract to interact with different Yield sources.
* supported sources are, at the moment, Compound and Aave.
*/
interface IYieldSourceInteractor {
event SuppliedToAave(
address indexed token,
address indexed aaveLendingPool,
... | * @dev Allows a contract to interact with different Yield sources. supported sources are, at the moment, Compound and Aave./ | interface IYieldSourceInteractor {
event SuppliedToAave(
address indexed token,
address indexed aaveLendingPool,
uint256 amount
);
event RedeemedUnderlyingFromAave(
address indexed token,
address indexed aaveLendingPool,
uint256 tokenAmount
);
function _supplyToCompound(
address _... | 12,647,547 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
279,
6835,
358,
16592,
598,
3775,
31666,
5550,
18,
3260,
5550,
854,
16,
622,
326,
10382,
16,
21327,
471,
432,
836,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
16348,
1830,
2465,
3362,
288,
203,
225,
871,
3425,
3110,
774,
37,
836,
12,
203,
565,
1758,
8808,
1147,
16,
203,
565,
1758,
8808,
279,
836,
48,
2846,
2864,
16,
203,
565,
2254,
5034,
3844,
203,
225,
11272,
203,
225,
87... |
./full_match/40/0xfeF48D524b140B945acf87c0612Fd5feb86156Fc/sources/TeleportToken.sol | ------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------ | constructor() public {
symbol = "FORT";
name = "Fortis Coin";
decimals = 4;
_totalSupply = 1000000000 * 10**uint(decimals);
balances[address(0)] = _totalSupply;
threshold = 3;
thisChainId = 1;
}
| 9,543,990 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
3273,
273,
315,
42,
3871,
14432,
203,
3639,
508,
273,
315,
42,
499,
291,
28932,
14432,
203,
3639,
15105,
273,
1059,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
15088,
3784,
380,
1728,
636,
11... |
pragma solidity ^0.5.0;
// Copyright 2018 OpenST Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | * @notice Get the active kernel hash. @return kernelHash_ Active kernel hash./ | function getActiveKernelHash()
external
view
returns (bytes32 kernelHash_)
{
kernelHash_ = activeKernelHash;
}
| 5,379,464 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
326,
2695,
5536,
1651,
18,
632,
2463,
5536,
2310,
67,
8857,
5536,
1651,
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,
... | [
1,
1,
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,
11960,
11286,
2310,
1435,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
3890,
1578,
5536,
2310,
67,
13,
203,
565,
288,
203,
3639,
5536,
2310,
67,
273,
2695,
11286,
2310,
31,
203,
565,
289,
203,
203,
2,
-100,
... |
./partial_match/1/0xF2d93df6fB89e51756d915004211a0a29755BB2b/sources/Include.sol | _beforeTokenTransfer($, account, address(0), amount); | function burn(ERC20Stru storage $, address account, uint256 amount) internal {
require(account != address(0), "ERC20: burn from the zero address");
$.balances[account] = $.balances[account].sub(amount, "ERC20: burn amount exceeds balance");
$.totalSupply = $.totalSupply.sub(amount);
... | 10,999,741 | [
1,
4625,
348,
7953,
560,
30,
389,
5771,
1345,
5912,
4372,
16,
2236,
16,
1758,
12,
20,
3631,
3844,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
654,
39,
3462,
1585,
89,
2502,
271,
16,
1758,
2236,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
18305,
628,
326,
3634,
1758,
8863,
203,
... |
./partial_match/1/0x31286579de3256696E8732706A0eab97bce02efA/sources/SHIBU.sol | * @dev Interface of the ERC20 standard as defined in the EIP. Does not include the optional functions; to access them see `ERC20Detailed`./ | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint2... | 2,681,060 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
18,
9637,
486,
2341,
326,
3129,
4186,
31,
358,
2006,
2182,
2621,
1375,
654,
39,
3462,
40,
6372,
8338,
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,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
741... |
./full_match/80001/0x71ac01342909DFb970E536EB8bB0DDA41C65F345/sources/src/YAGMIController.sol | If we are at threshold date and mint is still open, change status | function performUpkeep(bytes calldata /* performData */) external override {
uint256 today = block.timestamp / TIMEFRAME;
uint256 len = unmetThreshold[today].length;
if (len > 0) {
YAGMIProps memory nftProps;
for (uint256 i = 0; i < len; i++) {
uint256... | 853,438 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
732,
854,
622,
5573,
1509,
471,
312,
474,
353,
4859,
1696,
16,
2549,
1267,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3073,
1211,
10102,
12,
3890,
745,
892,
1748,
3073,
751,
1195,
13,
3903,
3849,
288,
203,
3639,
2254,
5034,
10074,
273,
1203,
18,
5508,
342,
8721,
15072,
31,
203,
3639,
2254,
5034,
562,
273,
640,
10578,
7614,
63,
30064,
8... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Base.sol";
contract ERC721Orderinbox is ERC721Base {
/// @dev true if collection is private, false if public
bool isPrivate;
event CreateERC721Orderinbox(address owner, string name, string symbol);
event CreateERC721OrderinboxPr... | setting default approver for transferProxy | function __ERC721Orderinbox_init_unchained(string memory _name, string memory _symbol, string memory baseURI, string memory contractURI, address[] memory defaultOperators) internal onlyInitializing {
_setBaseURI(baseURI);
__ERC721Mint_init_unchained();
__RoyaltiesUpgradeable_init_unchained()... | 13,486,603 | [
1,
4625,
348,
7953,
560,
30,
3637,
805,
6617,
502,
364,
7412,
3886,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
654,
39,
27,
5340,
2448,
267,
2147,
67,
2738,
67,
4384,
8707,
12,
1080,
3778,
389,
529,
16,
533,
3778,
389,
7175,
16,
533,
3778,
1026,
3098,
16,
533,
3778,
6835,
3098,
16,
1758,
8526,
3778,
805,
24473,
13,
2713,... |