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 |
|---|---|---|---|---|---|---|
//Address: 0xd88577ed936819807612c0d4a17ade05adcdf1d3
//Contract name: ZTRTokenSale
//Balance: 0.5 Ether
//Verification Date: 2/1/2018
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity ^0.4.11;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal returns ... | The max amount that can be raised
| fundingMax = 30000 ether; | 6,406,769 | [
1,
4625,
348,
7953,
560,
30,
1021,
943,
3844,
716,
848,
506,
11531,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
22058,
2747,
273,
890,
2787,
225,
2437,
31,
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.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount o... | * @dev Submit a loan for rating Cannot submit the same loan twice @param id Loan ID/ | function submit(address id) external override onlyAllowedSubmitters onlyNotExistingLoans(id) {
require(!submissionPauseStatus, "TrueRatingAgencyV2: New submissions are paused");
require(ILoanToken2(id).borrower() == msg.sender, "TrueRatingAgencyV2: Sender is not borrower");
require(factory.i... | 13,431,914 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17320,
279,
28183,
364,
13953,
14143,
4879,
326,
1967,
28183,
13605,
632,
891,
612,
3176,
304,
1599,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4879,
12,
2867,
612,
13,
3903,
3849,
1338,
5042,
11620,
5432,
1338,
8418,
310,
1504,
634,
12,
350,
13,
288,
203,
3639,
2583,
12,
5,
12684,
19205,
1482,
16,
315,
5510,
20388,
2577,
2075,
58,
22,
30,
1166,
22071,
854,
1... |
pragma solidity ^0.5.1;
contract PrecompiledContracts {
function usePrecompiledContracts(bytes32 hash, uint8 v, bytes32 r, bytes32 s) pure public returns (bytes20) {
// there is no function alias for Identity contract and we cannot get the return data using low-level call:
// https://solidity.readthedocs.io... | there is no function alias for Identity contract and we cannot get the return data using low-level call: https:solidity.readthedocs.io/en/latest/types.html#address | function usePrecompiledContracts(bytes32 hash, uint8 v, bytes32 r, bytes32 s) pure public returns (bytes20) {
address ecRecovered = ecrecover(hash, v, r, s);
bytes32 hashed = sha256(abi.encodePacked(ecRecovered));
bytes20 result = ripemd160(abi.encodePacked(hashed));
return result;
}
| 7,294,549 | [
1,
4625,
348,
7953,
560,
30,
225,
1915,
353,
1158,
445,
2308,
364,
7808,
6835,
471,
732,
2780,
336,
326,
327,
501,
1450,
4587,
17,
2815,
745,
30,
2333,
30,
30205,
560,
18,
25254,
329,
22280,
18,
1594,
19,
275,
19,
13550,
19,
2352,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
999,
1386,
19397,
20723,
12,
3890,
1578,
1651,
16,
2254,
28,
331,
16,
1731,
1578,
436,
16,
1731,
1578,
272,
13,
16618,
1071,
1135,
261,
3890,
3462,
13,
288,
203,
203,
565,
1758,
6557,
426,
16810,
273,
425,
1793,
3165,
... |
pragma solidity ^0.4.20;
/*
* CryptoDevTeam.Net Presents
* ====================================*
*
* Built by trusted community members
* IronHandsCoin is a Phil approved Pyramid
*
* ====================================*
* -> What?
* The original autonomous pyramid, improved:
* [x] More stable... | 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 &&
... | 7,918,282 | [
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,
540,
203,
3639,
309,
12,
1338,
30706,
428,
361,
1383,
597,
14015,
... |
./partial_match/1/0x3D9916144d70fdd753296442578f5451E2F64d27/sources/DecentralandVesting.sol | beneficiary of tokens after they are released | contract TokenVesting is Ownable {
using SafeMath for uint256;
using SafeERC20 for ERC20;
event Released(uint256 amount);
event Revoked();
address public beneficiary;
uint256 public cliff;
uint256 public start;
uint256 public duration;
bool public revocable;
bool public revoked;
uint256 publi... | 4,305,372 | [
1,
4625,
348,
7953,
560,
30,
225,
27641,
74,
14463,
814,
434,
2430,
1839,
2898,
854,
15976,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
58,
10100,
353,
14223,
6914,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
225,
1450,
14060,
654,
39,
3462,
364,
4232,
39,
3462,
31,
203,
203,
225,
871,
10819,
72,
12,
11890,
5034,
3844,
1769,
203,
225... |
./full_match/56/0x43a0C5EB1763A211Aa3c05849A617f2eE0452767/sources/project_/contracts/pokedx-token.sol | * Sender's and Recipient's reflected balances must be always updated regardless of whether they are excluded from rewards or not./ | _reflectedBalances[sender] = _reflectedBalances[sender] - rAmount;
| 3,235,616 | [
1,
4625,
348,
7953,
560,
30,
380,
15044,
1807,
471,
23550,
1807,
21591,
324,
26488,
1297,
506,
3712,
3526,
15255,
434,
2856,
2898,
854,
8845,
628,
283,
6397,
578,
486,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
1734,
1582,
329,
38,
26488,
63,
15330,
65,
273,
389,
1734,
1582,
329,
38,
26488,
63,
15330,
65,
300,
436,
6275,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x313819736457910aC1Dd21a712a37f3d7595645A/sources/contracts/BridgeableTokens.sol | @dev Validates that passed l2Token_ is supported by the bridge | modifier onlySupportedL2Token(address l2Token_) {
if (l2Token_ != l2Token) {
revert ErrorUnsupportedL2Token();
}
_;
}
| 16,410,233 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2364,
815,
716,
2275,
328,
22,
1345,
67,
353,
3260,
635,
326,
10105,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9606,
1338,
7223,
48,
22,
1345,
12,
2867,
328,
22,
1345,
67,
13,
288,
203,
3639,
309,
261,
80,
22,
1345,
67,
480,
328,
22,
1345,
13,
288,
203,
5411,
15226,
1068,
8544,
48,
22,
1345,
5621,
203,
3639,
289,
203,
3639,
389,
... |
pragma solidity ^0.5.0; // Solidity Version 0.5.0
// Inherit Escrow from another local contract
import "contracts/Escrow.sol";
// Create Contract
contract EcommerceStore {
// Contract to list an Item and buy in a Marketplace.
// Create ennumerated type with two members for product condition
enum ProductC... | Create Contract Contract to list an Item and buy in a Marketplace. Create ennumerated type with two members for product condition ProductIndex is used to identify products Product structure. | contract EcommerceStore {
uint public ProductIndex;
address public arbiter;
import "contracts/Escrow.sol";
enum ProductCondition { New, Old }
struct Product {
uint id;
string name;
string category;
uint price;
ProductCondition condition;
address buyer;
... | 15,783,148 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
13456,
13456,
358,
666,
392,
4342,
471,
30143,
316,
279,
6622,
24577,
18,
1788,
570,
2107,
19007,
618,
598,
2795,
4833,
364,
3017,
2269,
8094,
1016,
353,
1399,
358,
9786,
10406,
8094,
3695,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
512,
15205,
2257,
288,
203,
203,
203,
565,
2254,
1071,
8094,
1016,
31,
203,
203,
565,
1758,
1071,
419,
70,
2165,
31,
203,
5666,
315,
16351,
87,
19,
6412,
492,
18,
18281,
14432,
203,
565,
2792,
8094,
3418,
288,
1166,
16,
... |
./full_match/4/0x8bfb1b650Ddaa39fc51580F8B56383FF4C83FB5c/sources/browser/EthereumClaimsRegistry.sol | @dev Allows to remove a claims from the registry. This can only be done by the issuer or the subject of the claim. @param issuer The address of the issuer of the claim @param subject The address to which the claim was issued to @param key The key used to identify the claim | function removeClaim(address issuer, address subject, bytes32 key) public {
require(msg.sender == issuer || msg.sender == subject);
require(registry[issuer][subject][key] != 0);
delete registry[issuer][subject][key];
emit ClaimRemoved(msg.sender, subject, key, now);
}
| 787,406 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
25619,
358,
1206,
279,
11955,
628,
326,
4023,
18,
1377,
1220,
848,
1338,
506,
2731,
635,
326,
9715,
578,
326,
3221,
434,
326,
7516,
18,
632,
891,
9715,
1021,
1758,
434,
326,
9715,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1206,
9762,
12,
2867,
9715,
16,
1758,
3221,
16,
1731,
1578,
498,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
9715,
747,
1234,
18,
15330,
422,
3221,
1769,
203,
3639,
2583,
12,
9893,
63,
17567,
6362,
7857,
... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "contracts/token/ContractReceiver.sol";
import "contracts/token/CustomToken.sol";
import "contracts/interface/ICouncil.sol";
import "contracts/interface/IContent.sol";
import "contracts/interface/IContentsManager.sol"... | * @dev 작품의 이미지 조회 @notice comics, publish 등의 메뉴에서 작품의 이미지 조회 @param _comicAddress 작품 주소 @param _index episode index @return cuts_ Json type의 이미지 주소/ | function getCuts(
address _comicAddress,
uint256 _index
)
external
view
returns (string cuts_)
{
if(isPurchasedEpisode(_comicAddress, _index, msg.sender)) {
cuts_ = IContent(_comicAddress).getEpisodeCuts(_index, msg.sender);
}
}
| 12,735,704 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
225,
173,
257,
244,
174,
245,
235,
173,
256,
251,
225,
173,
256,
117,
172,
112,
121,
173,
105,
227,
225,
173,
99,
113,
174,
253,
239,
632,
20392,
532,
2102,
16,
3808,
225,
172,
246,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1927,
12940,
12,
203,
3639,
1758,
389,
832,
335,
1887,
16,
203,
3639,
2254,
5034,
389,
1615,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
1080,
6391,
87,
67,
13,
203,
565,
288,
203,
3639,
309... |
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2020 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... | @dev Calls `sellTokenForToken` on the given `provider` contract to trigger a trade. @param provider The address of the on-chain liquidity provider. @param inputToken The token being sold. @param outputToken The token being bought. @param recipient The recipient of the bought tokens. @param minBuyAmount The minimu... | function executeSellTokenForToken(
ILiquidityProvider provider,
IERC20TokenV06 inputToken,
IERC20TokenV06 outputToken,
address recipient,
uint256 minBuyAmount,
bytes calldata auxiliaryData
)
external
onlyOwner
override
{
provide... | 5,499,233 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
23665,
1375,
87,
1165,
1345,
1290,
1345,
68,
603,
326,
864,
1375,
6778,
68,
6835,
358,
1377,
3080,
279,
18542,
18,
632,
891,
2893,
1021,
1758,
434,
326,
603,
17,
5639,
4501,
372,
24237,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
55,
1165,
1345,
1290,
1345,
12,
203,
3639,
467,
48,
18988,
24237,
2249,
2893,
16,
203,
3639,
467,
654,
39,
3462,
1345,
58,
7677,
810,
1345,
16,
203,
3639,
467,
654,
39,
3462,
1345,
58,
7677,
876,
1345,
16,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppel... | use assembly to decrease the size for null data (by null, it means AssignState.DEFAULT) the first 'if' above makes the following code safe | for (i = cbsIndex; i < ln; i++)
| 15,811,865 | [
1,
4625,
348,
7953,
560,
30,
225,
999,
19931,
358,
20467,
326,
963,
364,
446,
501,
261,
1637,
446,
16,
518,
4696,
12093,
1119,
18,
5280,
13,
326,
1122,
296,
430,
11,
5721,
7297,
326,
3751,
981,
4183,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
364,
261,
77,
273,
276,
2038,
1016,
31,
277,
411,
7211,
31,
277,
27245,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.1;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./facades/IERC20.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol";
import "@uniswap/v2-core/contracts/interfa... | pops latest LP if older than period | function claimLP() public {
uint next = queueCounter[msg.sender];
require(
next < lockedLP[msg.sender].length,
"HodlerVault: nothing to claim."
);
LPbatch storage batch = lockedLP[msg.sender][next];
require(
block.timestamp - batch.timestam... | 1,482,388 | [
1,
4625,
348,
7953,
560,
30,
28518,
4891,
511,
52,
309,
12156,
2353,
3879,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7516,
14461,
1435,
1071,
288,
203,
3639,
2254,
1024,
273,
2389,
4789,
63,
3576,
18,
15330,
15533,
203,
3639,
2583,
12,
203,
5411,
1024,
411,
8586,
14461,
63,
3576,
18,
15330,
8009,
2469,
16,
203,
5411,
315,
44,
369,
749... |
./partial_match/1/0x6a505c8605e507aeD779261F3a202AdF7525F98C/sources/CoolCats.sol | withdraw addresses Cool Cats are so cool they dont need a lots of complicated code :) 9999 cats in total, cos cats have 9 lives | contract CoolCats is ERC721Enumerable, Ownable {
using Strings for uint256;
string _baseTokenURI;
uint256 private _reserved = 100;
uint256 private _price = 0.06 ether;
bool public _paused = true;
address t1 = 0xfc86A64a8DE22CF25410F7601AcBd8d6630Da93D;
address t2 = 0x4265de963cdd60629d03F... | 4,190,325 | [
1,
4625,
348,
7953,
560,
30,
225,
598,
9446,
6138,
385,
1371,
385,
2323,
854,
1427,
27367,
2898,
14046,
1608,
279,
328,
6968,
434,
31312,
981,
294,
13,
30082,
27525,
316,
2078,
16,
4987,
27525,
1240,
2468,
328,
3606,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
1371,
39,
2323,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
288,
203,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
533,
389,
1969,
1345,
3098,
31,
203,
565,
2254,
5034,
3238,
389,
18898,
273,
... |
./partial_match/1/0xf4263f7a8Bad3A8B6680128ea397a70295fb0Aa5/sources/LockToken.sol | cant overflow because referrerCut must be < MAX_PERCENTAGE -> referrerFee < takenFee | uint256 trustswapPart = takenFee - referrerFee;
| 16,027,601 | [
1,
4625,
348,
7953,
560,
30,
225,
848,
88,
9391,
2724,
14502,
15812,
1297,
506,
411,
4552,
67,
3194,
19666,
2833,
317,
14502,
14667,
411,
9830,
14667,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10267,
22270,
1988,
273,
9830,
14667,
300,
14502,
14667,
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,
-1... |
./partial_match/80001/0x74051B8501C673f7e38ccc9B0cb9c8361f9f34f6/sources/contracts/base/PeripheryPayments.sol | @inheritdoc IPeripheryPayments | function refundNativeToken() external payable override {
if (address(this).balance > 0) TransferHelper.safeTransferNative(msg.sender, address(this).balance);
}
| 8,797,423 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
2173,
16045,
627,
23725,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16255,
9220,
1345,
1435,
3903,
8843,
429,
3849,
288,
203,
3639,
309,
261,
2867,
12,
2211,
2934,
12296,
405,
374,
13,
12279,
2276,
18,
4626,
5912,
9220,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
2934,
12296,
1769,
203,
56... |
pragma solidity 0.5.9;
/*
* @author Cryptonomica Ltd.(cryptonomica.net), 2019
* @version 2019-06-10
* Github: https://github.com/Cryptonomica/
* Contract address: https://etherscan.io/address/0x2ddd25a959ca2b11d1d9ea81069e50b271d56ae3
* Deployed on block: 7930206
*
* @section LEGAL:
* aim of this contract is to create... | /contract BillsOfExchangeFactory is ManagedContractWithPaidService, ManagedContractUsingCryptonomicaServices { using SafeMath for uint256; string public forkClause = ""; | contract BillsOfExchangeFactory is ManagedContractWithPaidService {
string public description = "Every token (ERC20) in this smart contract is a bill of exchange in blank - payable to bearer (bearer is the owner of the Ethereum address witch holds the tokens, or the person he/she represents), but not to order - t... | 12,781,925 | [
1,
4625,
348,
7953,
560,
30,
342,
16351,
605,
737,
87,
951,
11688,
1733,
353,
10024,
8924,
1190,
16507,
350,
1179,
16,
10024,
8924,
7736,
22815,
4708,
26433,
5676,
288,
1450,
14060,
10477,
364,
2254,
5034,
31,
533,
1071,
12515,
7044,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
605,
737,
87,
951,
11688,
1733,
353,
10024,
8924,
1190,
16507,
350,
1179,
288,
203,
203,
203,
565,
533,
1071,
2477,
273,
315,
21465,
1147,
261,
654,
39,
3462,
13,
316,
333,
13706,
6835,
353,
279,
20714,
434,
7829,
316,
705... |
/*
Gambler Shiba
https://t.me/gshiba_official
Improved fork of EverShare
More info:
* Instead of giving equal weights to all users... | you can't trade this yet until trading enabled, be patientperform all cooldown checksthey just bought so add 1 block cooldown - fuck you frontrunners exclude owner and uniswap dont apply cooldown to other excluded addresses Do not calculate on adding liquiditycheck if we need to do dev lottery (time has passed) note - ... | function _transfer(address sender, address recipient, uint256 amount) private {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
... | 6,208,067 | [
1,
4625,
348,
7953,
560,
30,
1846,
848,
1404,
18542,
333,
4671,
3180,
1284,
7459,
3696,
16,
506,
18608,
16092,
777,
27367,
2378,
866,
20244,
402,
2537,
800,
9540,
1427,
527,
404,
1203,
27367,
2378,
300,
284,
9031,
1846,
284,
1949,
313... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
3238,
288,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
3639,
2583,
12,
2036... |
./full_match/1/0x40C1c7Bd620ae59215913F819c45AF75F1b7aFcE/sources/contracts/WardenMultiBuy.sol | If we want to clear expired Boosts, loop over the Delegate's Boosts to find the expired one that could be canceled to free part of the balance for a new Boost | vars.currentBoostsNumber = delegationBoost.total_minted(vars.delegator);
| 4,988,737 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
732,
2545,
358,
2424,
7708,
17980,
669,
87,
16,
2798,
1879,
326,
27687,
1807,
17980,
669,
87,
358,
1104,
326,
7708,
1245,
716,
3377,
506,
17271,
358,
4843,
1087,
434,
326,
11013,
364,
279,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3639,
4153,
18,
2972,
26653,
87,
1854,
273,
23595,
26653,
18,
4963,
67,
81,
474,
329,
12,
4699,
18,
3771,
1332,
639,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
//
IMPORTANT: Developer should update the ISecurityTokenRegistry.sol (Interface) if there is any change in
function signature or addition/removal of the functions from SecurityTokenRegistry & STRGetter contract.
//
*/
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/math/S... | * @notice Transfers the ownership of the ticker @param _newOwner is the address of the new owner of the ticker @param _ticker is the ticker symbol/ | function transferTickerOwnership(address _newOwner, string memory _ticker) public whenNotPausedOrOwner {
string memory ticker = Util.upper(_ticker);
require(_newOwner != address(0), "Bad address");
bytes32 ownerKey = Encoder.getKey("registeredTickers_owner", ticker);
require(getAddre... | 12,533,489 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2604,
18881,
326,
23178,
434,
326,
14063,
632,
891,
389,
2704,
5541,
353,
326,
1758,
434,
326,
394,
3410,
434,
326,
14063,
632,
891,
389,
88,
5448,
353,
326,
14063,
3273,
19,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
18008,
5460,
12565,
12,
2867,
389,
2704,
5541,
16,
533,
3778,
389,
88,
5448,
13,
1071,
1347,
1248,
28590,
1162,
5541,
288,
203,
3639,
533,
3778,
14063,
273,
3564,
18,
5797,
24899,
88,
5448,
1769,
203,
3639,
2583,
... |
./full_match/3/0x6a42dfdD170cFC8DfBC2605F226437AA6Bc16Ca5/sources/browser/HYPER.sol | * @dev Increase number of tokens locked for a specified reason @param _reason The reason to lock tokens @param _amount Number of tokens to be increased/ | function increaseLockAmount(bytes32 _reason, uint256 _amount) public override returns (bool) {
require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender));
require(tokensLocked(msg.sender, _reason) > 0);
transfer(address(this), _amount);
locked[msg.sender][_reason].amount = locked[msg.sender][_reason].amoun... | 14,210,362 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
657,
11908,
1300,
434,
2430,
8586,
364,
279,
1269,
3971,
632,
891,
389,
10579,
1021,
3971,
358,
2176,
2430,
632,
891,
389,
8949,
3588,
434,
2430,
358,
506,
31383,
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,
0,
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,
10929,
2531,
6275,
12,
3890,
1578,
389,
10579,
16,
2254,
5034,
389,
8949,
13,
1071,
3849,
1135,
261,
6430,
13,
288,
203,
565,
2583,
12,
5332,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
1234,
18,
15330,
10019,
203,
565,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "./interfaces/IERC20.sol";
import "./interfaces/IWrappedPosition.sol";
import "./interfaces/ITranche.sol";
import "./interfaces/ITrancheFactory.sol";
import "./interfaces/IInterestToken.sol";
import "./libraries/ERC20Permit.sol";
import "./librarie... | @notice Initializes the erc20 contract @param name_ the value 'name' will be set to @param symbol_ the value 'symbol' will be set to @dev decimals default to 18 and must be reset by an inheriting contract for non standard decimal values Set the state variables By setting these addresses to 0 attempting to execute... | constructor(string memory name_, string memory symbol_) {
name = name_;
symbol = symbol_;
decimals = 18;
balanceOf[address(0)] = type(uint256).max;
balanceOf[address(this)] = type(uint256).max;
_extraConstruction();
DOMAIN_SEPARATOR = keccak256(
... | 44,247 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10188,
3128,
326,
6445,
71,
3462,
6835,
632,
891,
508,
67,
326,
460,
296,
529,
11,
903,
506,
444,
358,
632,
891,
3273,
67,
326,
460,
296,
7175,
11,
903,
506,
444,
358,
632,
5206,
151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3885,
12,
1080,
3778,
508,
67,
16,
533,
3778,
3273,
67,
13,
288,
203,
3639,
508,
273,
508,
67,
31,
203,
3639,
3273,
273,
3273,
67,
31,
203,
3639,
15105,
273,
6549,
31,
203,
203,
3639,
11013,
951,
63,
2867,
12,
20,
25887,... |
./full_match/288/0x268a8B6596ca2c0756dAF5ba6eb8969A1aC32A7D/sources/src/contracts/ERC721ExchangeUpgradeable.sol | ,-. `-' /|\ | ,-------------------------. ,--------------------. / \ |ERC721ExchangeUpgradeable| |OrderBookUpgradeable| Caller `------------+------------' ... | function cancelSellOrder(address _tokenContractAddress, uint256 _tokenId) public payable override whenNotPaused {
_cancelSellOrder(_msgSender(), _tokenContractAddress, _tokenId);
}
| 7,106,972 | [
1,
4625,
348,
7953,
560,
30,
540,
269,
17,
18,
3639,
1375,
6627,
3639,
342,
8960,
540,
571,
2398,
269,
1271,
8567,
18,
4766,
5411,
269,
1271,
553,
18,
3639,
342,
521,
5411,
571,
654,
39,
27,
5340,
11688,
10784,
429,
96,
4766,
5411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
3755,
55,
1165,
2448,
12,
2867,
389,
2316,
8924,
1887,
16,
2254,
5034,
389,
2316,
548,
13,
1071,
8843,
429,
3849,
1347,
1248,
28590,
288,
203,
202,
202,
67,
10996,
55,
1165,
2448,
24899,
3576,
12021,
9334,
389,
2316,
89... |
pragma solidity ^0.4.18;
/************************************************** */
/* WhenHub Token Smart Contract */
/* Author: Nik Kalyani nik@whenhub.com */
/* Copyright (c) 2018 CalendarTree, Inc. */
/* https://interface.whenhub.com */
/******************... | * @dev Checks if an account is the PlatformManager @param account Account to check/ | function isPlatformManager
(
address account
)
public
view
returns(bool)
{
return account == platformManager;
}
| 1,334,568 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13074,
309,
392,
2236,
353,
326,
11810,
1318,
632,
891,
2236,
6590,
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,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
8201,
1318,
203,
18701,
261,
203,
27573,
1758,
2236,
203,
18701,
262,
7010,
18701,
1071,
203,
18701,
1476,
7010,
18701,
1135,
12,
6430,
13,
7010,
565,
288,
203,
3639,
327,
2236,
422,
4072,
1318,
31,
203,
565,
289,
... |
pragma solidity 0.4.25;
contract SafeMath {
uint256 constant public MAX_UINT256 =
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
/*
* Adds two numbers, throws on overflow.
*/
function safeAdd(uint256 x, uint256 y) pure internal returns (uint256 z) {
if (x > MAX_UIN... | The token holds to the message | contract WCG is SafeMath{
address owner;
struct userToken{
address buyer;
uint currentPrice;
uint _token;
uint totalToKenPrice;
uint charge;
uint totalBuyPrice;
}
userToken[] _userTokenInfo;
mapping(address => userToken[]) private userTokenInfos;
m... | 11,836,945 | [
1,
4625,
348,
7953,
560,
30,
1021,
1147,
14798,
358,
326,
883,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
678,
20585,
353,
14060,
10477,
95,
203,
565,
1758,
3410,
31,
203,
282,
1958,
729,
1345,
95,
203,
3639,
1758,
27037,
31,
203,
3639,
2254,
783,
5147,
31,
203,
3639,
2254,
389,
2316,
31,
203,
3639,
2254,
2078,
774,
47,
275,
... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view retu... | 1000 = 1%, can be modified by governance up to 5% with timelock
| uint256 public nonStableFee = 1000; | 6,301,148 | [
1,
4625,
348,
7953,
560,
30,
225,
4336,
273,
404,
9,
16,
848,
506,
4358,
635,
314,
1643,
82,
1359,
731,
358,
1381,
9,
598,
1658,
292,
975,
203,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1661,
30915,
14667,
273,
4336,
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,... |
pragma solidity ^0.4.19;
library SafeMath { //standard library for uint
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0 || b == 0){
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function sub(uint256 a, uint256 b) internal pure returns ... | Owner can change end date | function changeIcoFinish (uint _newDate) public onlyTechSupport {
icoFinish = _newDate;
}
| 485,054 | [
1,
4625,
348,
7953,
560,
30,
16837,
848,
2549,
679,
1509,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
2549,
45,
2894,
11641,
261,
11890,
389,
2704,
1626,
13,
1071,
1338,
56,
8987,
6289,
288,
203,
565,
277,
2894,
11641,
273,
389,
2704,
1626,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x98D5AE214B307e3778e3F2BB8B0E3ABD8a88b3F9/sources/infinity-launch.sol | this method is responsible for taking all fee, if takeFee is true | function _tokenTransfer(
address sender,
address recipient,
uint256 amount,
bool takeFee
) private {
removeAllFee();
if (takeFee) {
if (sender == uniswapV2Pair) {
setBuy();
}
if (recipient == uniswapV2Pair) {
... | 9,615,851 | [
1,
4625,
348,
7953,
560,
30,
333,
707,
353,
14549,
364,
13763,
777,
14036,
16,
309,
4862,
14667,
353,
638,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2316,
5912,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1426,
4862,
14667,
203,
565,
262,
3238,
288,
203,
3639,
12787,
14667,
5621,
203,
3639,
309,
261,
221... |
./full_match/80001/0x164418837c4922DDB21E29F7B35C6B8cFE1Ee427/sources/contracts/DopeWolvesNFT.sol | * @dev All the staking goes through this function/ _transfer(from, to, tokenId); | function _stake(address _user, uint256 _tokenId) public {
stakes[_tokenId] = _user;
_burn(_tokenId);
_transfer(_user, address(this), _tokenId);
emit Staked(_user, _tokenId);
}
| 9,468,530 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4826,
326,
384,
6159,
13998,
3059,
333,
445,
19,
389,
13866,
12,
2080,
16,
358,
16,
1147,
548,
1769,
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,
389,
334,
911,
12,
2867,
389,
1355,
16,
2254,
5034,
389,
2316,
548,
13,
1071,
288,
203,
3639,
384,
3223,
63,
67,
2316,
548,
65,
273,
389,
1355,
31,
203,
3639,
389,
70,
321,
24899,
2316,
548,
1769,
203,
3639,
389,
13... |
pragma solidity ^0.5.2;
library SafeMath {
function MUL925(uint a, uint b) internal pure returns (uint) { //inject NONSTANDARD NAMING
if (a == 0) {
return 0;
}
uint c = a * b;
require(c / a == b);
return c;
}
function DIV533(uint a, uint b) internal pure returns (uint) { //inject NONST... | inject NONSTANDARD NAMING
| function AMOUNTFILLED138(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, address user) view public returns(uint) { | 5,497,588 | [
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,
225,
445,
432,
5980,
5321,
10474,
6687,
26645,
12,
2867,
1147,
967,
16,
2254,
3844,
967,
16,
1758,
1147,
43,
688,
16,
2254,
3844,
43,
688,
16,
2254,
7368,
16,
2254,
7448,
16,
1758,
729,
13,
1476,
1071,
1135,
12,
11890,
13,
288,... |
./full_match/1/0x153324Fd2e95dCaf4679Dd80ac81C9e60875318c/sources/project_/contracts/0xea4f97be47809e28f2a11ee58e9264eceb85c0f7_ETH_ETH_2023-03-30_11-09-47.sol | File: contracts\0xea4f97be47809e28f2a11ee58e9264eceb85c0f7,ETH,ETH,2023-03-30_11-09-47.sol | contract ETH is ERC20 {
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
pragma solidity ^0.8.0;
function decimals() public view virtual override returns (uint... | 4,857,390 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
64,
20,
6554,
69,
24,
74,
10580,
2196,
9462,
3672,
29,
73,
6030,
74,
22,
69,
2499,
1340,
8204,
73,
9975,
1105,
73,
311,
70,
7140,
71,
20,
74,
27,
16,
1584,
44,
16,
1584,
44,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
16351,
512,
2455,
353,
4232,
39,
3462,
288,
203,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
445,
389,
5205,
1345,
5912,
12,
203,
3639,
17... |
//Address: 0x264dc2dedcdcbb897561a57cba5085ca416fb7b4
//Contract name: QunQunToken
//Balance: 0 Ether
//Verification Date: 2/3/2018
//Transacion Count: 20751
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
... | * Set allowance for other address Allows `_spender` to spend no more than `_value` tokens in your behalf @param _spender The address authorized to spend @param _value the max amount they can spend/ | function approve(address _spender, uint256 _value) public returns (bool success) {
require(_value <= balanceOf[msg.sender]);
allowance[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| 6,451,770 | [
1,
4625,
348,
7953,
560,
30,
380,
1000,
1699,
1359,
364,
1308,
1758,
25619,
1375,
67,
87,
1302,
264,
68,
358,
17571,
1158,
1898,
2353,
1375,
67,
1132,
68,
2430,
316,
3433,
12433,
6186,
632,
891,
389,
87,
1302,
264,
1021,
1758,
10799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
24899,
1132,
1648,
11013,
951,
63,
3576,
18,
15330,
19226,
203,
3639,
1699,
1359,
63,
3576,
... |
./partial_match/4/0x4670DfBADC9c3a7fE636B8812d19352B23e53e26/sources/Exchase.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;
using Address for address;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | 8,663,786 | [
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,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
2713,
389,
70,
26488,
3... |
pragma solidity ^0.5.0;
interface TeamInterface {
function isOwner() external view returns (bool);
function isAdmin(address _sender) external view returns (bool);
function isDev(address _sender) external view returns (bool);
}
/**
* @title Artist Contract
* @dev http://www.puzzlebid.com/
* @author ... | * @title Artist Contract @author PuzzleBID Game Team @dev Simon<vsiryxm@163.com>/ | contract Artist {
TeamInterface private team;
mapping(bytes32 => address payable) private artists;
constructor(address _teamAddress) public {
require(_teamAddress != address(0));
team = TeamInterface(_teamAddress);
}
function() external payable {
revert();
}
eve... | 10,198,344 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
9042,
376,
13456,
632,
4161,
453,
31550,
38,
734,
14121,
10434,
632,
5206,
9587,
265,
32,
6904,
6913,
92,
81,
36,
30886,
18,
832,
16893,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
9042,
376,
288,
203,
203,
565,
10434,
1358,
3238,
5927,
31,
7010,
565,
2874,
12,
3890,
1578,
516,
1758,
8843,
429,
13,
3238,
3688,
1486,
31,
7010,
203,
565,
3885,
12,
2867,
389,
10035,
1887,
13,
1071,
288,
203,
3639,
2583,... |
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.9;
//This contract only exist in order to run migration test.
//It is a genric fgreely mintable ERC-721 standard.
interface ERC721 /* is ERC165 */ {
/// @dev This emits when ownership of any NFT changes by any mechanism.
/// This event emits whe... | @notice Enable or disable approval for a third party ("operator") to manage all of `msg.sender`'s assets. @dev Emits the ApprovalForAll event. The contract MUST allow multiple operators per owner. @param _operator Address to add to the set of authorized operators. @param _approved True if the operator is approved, f... | function setApprovalForAll(address _operator, bool _approved) external override{
ownerOperators[msg.sender][_operator] = _approved;
emit ApprovalForAll(msg.sender, _operator, _approved);
}
| 6,271,650 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
9677,
578,
4056,
23556,
364,
279,
12126,
18285,
7566,
9497,
7923,
358,
10680,
225,
777,
434,
1375,
3576,
18,
15330,
11294,
87,
7176,
18,
632,
5206,
7377,
1282,
326,
1716,
685,
1125,
1290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
444,
23461,
1290,
1595,
12,
2867,
389,
9497,
16,
1426,
389,
25990,
13,
3903,
3849,
95,
203,
3639,
3410,
24473,
63,
3576,
18,
15330,
6362,
67,
9497,
65,
273,
389,
25990,
31,
203,
3639,
3626,
1716,
685,
1125,
1290,
1595,
... |
./full_match/137/0x088AcC3e5733c12096B64Ac48C04bbe05957Ab30/sources/ERC1155.sol | * @dev Destroys `amount` tokens of token type `id` from `from` Requirements: - `from` cannot be the zero address. - `from` must have at least `amount` tokens of token type `id`./ | function _burn(
address from,
uint256 id,
uint256 amount
) internal virtual {
require(from != address(0), "ERC1155: burn from the zero address");
address _operator = msg.sender;
_beforeTokenTransfer(_operator, from, address(0), _asSingletonArray(id), _asSingleto... | 4,751,242 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
434,
1147,
618,
1375,
350,
68,
628,
1375,
2080,
68,
29076,
30,
300,
1375,
2080,
68,
2780,
506,
326,
3634,
1758,
18,
300,
1375,
2080,
68,
1297,
1240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
70,
321,
12,
203,
3639,
1758,
628,
16,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
2499,
2539,
... |
pragma solidity 0.5.16;
import {DogeDepositsManager} from "./DogeDepositsManager.sol";
import {DogeSuperblocks} from "./DogeSuperblocks.sol";
import {DogeBattleManager} from "./DogeBattleManager.sol";
import {DogeMessageLibrary} from "./DogeParser/DogeMessageLibrary.sol";
import {DogeErrorCodes} from "./DogeErrorCodes... | @dev – check whether a claim has successfully withstood all challenges. If successful without challenges, it will mark the superblock as confirmed. If successful with at least one challenge, it will mark the superblock as semi-approved. If verification failed, it will mark the superblock as invalid. @param superblockH... | function checkClaimFinished(bytes32 superblockHash) public returns (bool) {
SuperblockClaim storage claim = claims[superblockHash];
if (!claimExists(claim)) {
emit ErrorClaim(superblockHash, ERR_SUPERBLOCK_BAD_CLAIM);
return false;
}
if (claim.verificationOn... | 12,799,438 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
225,
163,
227,
246,
866,
2856,
279,
7516,
711,
4985,
598,
334,
4773,
777,
462,
7862,
2852,
18,
971,
6873,
2887,
462,
7862,
2852,
16,
518,
903,
2267,
326,
2240,
2629,
487,
19979,
18,
971... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
9762,
10577,
12,
3890,
1578,
2240,
2629,
2310,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
14845,
2629,
9762,
2502,
7516,
273,
11955,
63,
9565,
2629,
2310,
15533,
203,
203,
3639,
309,
16051,
14784,
4002,
12,
14784... |
// CryptoTorch-Token Source code
// copyright 2018 CryptoTorch <https://cryptotorch.io>
pragma solidity 0.4.19;
/**
* @title SafeMath
* Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* Multiplies two numbers, throws on overflow.
*/
function mul(uin... | * Liquifies tokens to ether./ | function sell(uint256 _amountOfTokens) public onlyTokenHolders {
sell_(msg.sender, _amountOfTokens);
}
| 12,653,995 | [
1,
4625,
348,
7953,
560,
30,
380,
511,
18988,
5032,
2430,
358,
225,
2437,
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,
357,
80,
12,
11890,
5034,
389,
8949,
951,
5157,
13,
1071,
1338,
1345,
27003,
288,
203,
3639,
357,
80,
67,
12,
3576,
18,
15330,
16,
389,
8949,
951,
5157,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
// File @openzeppelin/contracts/math/Math.sol@v2.5.1
pragma solidity ^0.5.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return ... | Withdraws all the asset to the vault/ | function withdrawAllToVault() public restricted {
if (rewardPool.balanceOf(poolId, address(this)) > 0) {
rewardPool.exit(poolId);
}
_liquidateReward();
if (IERC20(underlying).balanceOf(address(this)) > 0) {
IERC20(underlying).safeTransfer(vault, IERC20(underlying).balanceOf(address(this))... | 169,431 | [
1,
4625,
348,
7953,
560,
30,
565,
3423,
9446,
87,
777,
326,
3310,
358,
326,
9229,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
1595,
774,
12003,
1435,
1071,
15693,
288,
203,
565,
309,
261,
266,
2913,
2864,
18,
12296,
951,
12,
6011,
548,
16,
1758,
12,
2211,
3719,
405,
374,
13,
288,
203,
1377,
19890,
2864,
18,
8593,
12,
6011,
548,
17... |
/*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | @dev Calls a public function to check if it is reentrant. Because this function uses the `nonReentrant` modifier, if the function being called is also guarded by the `nonReentrant` modifier, it will revert when it returns. | {
(bool didSucceed, bytes memory resultData) = address(this).delegatecall(fnCallData);
if (didSucceed) {
allowsReentrancy = true;
if (resultData.equals(LibReentrancyGuardRichErrors.IllegalReentrancyError())) {
allowsReentrancy = false;
allowsRe... | 1,007,566 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
23665,
279,
1071,
445,
358,
866,
309,
518,
353,
283,
8230,
970,
18,
15191,
333,
445,
4692,
326,
1375,
5836,
426,
8230,
970,
68,
9606,
16,
309,
326,
445,
3832,
2566,
353,
2546,
3058,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
261,
6430,
5061,
55,
5286,
5288,
16,
1731,
3778,
563,
751,
13,
273,
1758,
12,
2211,
2934,
22216,
1991,
12,
4293,
1477,
751,
1769,
203,
3639,
309,
261,
14044,
55,
5286,
5288,
13,
288,
203,
5411,
5360,
426,
8... |
/***************************************************************************************************
* *
* (c) 2018, 2019 Quantstamp, Inc. This content and its use are governed by the license terms at *
* <https://raw.gi... | * Allows the staker to withdraw all their stakes from the pool. @param poolIndex - the index of the pool from which the stake is withdrawn/ | function withdrawStakeEffect(uint poolIndex) internal {
uint totalQspWeiTransfer = data.getTotalStakes(poolIndex, msg.sender);
uint stakeCount = data.getStakeCount(poolIndex, msg.sender);
uint totalSizeChangeQspWei = 0;
for (uint i = 0; i < stakeCount; i++) {
... | 12,946,005 | [
1,
4625,
348,
7953,
560,
30,
380,
25619,
326,
384,
6388,
358,
598,
9446,
777,
3675,
384,
3223,
628,
326,
2845,
18,
632,
891,
2845,
1016,
300,
326,
770,
434,
326,
2845,
628,
1492,
326,
384,
911,
353,
598,
9446,
82,
19,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
510,
911,
12477,
12,
11890,
2845,
1016,
13,
2713,
288,
203,
203,
3639,
2254,
2078,
53,
1752,
3218,
77,
5912,
273,
501,
18,
588,
5269,
510,
3223,
12,
6011,
1016,
16,
1234,
18,
15330,
1769,
203,
203,
5411,
22... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
contract tokenFintUsd {
address owner;
string public name; //nombre del token
string public symbol; //simbolo del token
uint8 public decimals; //variable para los decimales
uint256 public totalSupply; //cantidad inicial del token
uint... | recibe la direccion a donde se envia , y el valor de tokens a enviarretorna un success en caso de ser exitosasi el balance es mayor entonces pasa pa la siguiente linea de lo contrario too lowmsg.sender = direccion de quien esta enviando el saldo | function transfer(address _to, uint256 _value) public returns (bool success){
require(vesting[msg.sender].active == false, "tiene vesting");
require(vesting[msg.sender].active == false, "no puede transferir porque tiene vesting ");
if(vesting[_to].active){
vesting[_to].can... | 5,490,779 | [
1,
4625,
348,
7953,
560,
30,
1950,
495,
73,
7125,
302,
577,
952,
285,
279,
2727,
323,
695,
570,
21985,
269,
677,
415,
23325,
443,
2430,
279,
570,
522,
297,
1349,
280,
6582,
640,
2216,
570,
8697,
83,
443,
703,
2427,
538,
31653,
415... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
15329,
203,
3639,
2583,
12,
90,
10100,
63,
3576,
18,
15330,
8009,
3535,
422,
629,
16,
315,
9096,
4009,
331,
10100,
8863,
7010,
1850,
... |
pragma solidity 0.6.12;
interface IERC20 {
function TOTALSUPPLY831() external view returns (uint256); //i... | inject NONSTANDARD NAMING
| function LOG714(string memory p0, address p1, uint p2, bool p3) internal view { | 14,087,841 | [
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,
202,
915,
2018,
27,
3461,
12,
1080,
3778,
293,
20,
16,
1758,
293,
21,
16,
2254,
293,
22,
16,
1426,
293,
23,
13,
2713,
1476,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.5.0 <0.6.0;
pragma experimental ABIEncoderV2;
library RelayerGame {
struct Game {
bytes32 mmrRoot;
Block finalizedBlock;
uint32[] samples;
uint256 deadLineStep;
mapping(uint32 => Proposal) proposalPool;
/// (H100 => {})
/// (H50a => {p: H1... | uint roundIndex, 100 0x0 [H100a] [100a] require(roundIndex >=0 && roundIndex < game.rounds.length, "Invalid roundIndex"); require(game.rounds[roundIndex].close, "round is closed"); uint[] memory _samples; _samples.push(sample); uint[] storage _samples; _samples.push(sample); | function startGame(
Game storage game,
uint256 sample,
bytes32 parentProposalHash,
bytes32[] memory proposalHash,
bytes[] memory proposalValue
) internal {
Round memory _round = Round(
block.number + game.deadLineStep,
0,
0,
... | 5,503,818 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
3643,
1016,
16,
2130,
374,
92,
20,
306,
44,
6625,
69,
65,
306,
6625,
69,
65,
2583,
12,
2260,
1016,
1545,
20,
597,
3643,
1016,
411,
7920,
18,
27950,
18,
2469,
16,
315,
1941,
3643,
1016,
886... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
12496,
12,
203,
3639,
14121,
2502,
7920,
16,
203,
3639,
2254,
5034,
3296,
16,
203,
3639,
1731,
1578,
982,
14592,
2310,
16,
203,
3639,
1731,
1578,
8526,
3778,
14708,
2310,
16,
203,
3639,
1731,
8526,
3778,
14708,
620,
... |
./full_match/4/0xfBc61D4Db32147d98427DA5803d6FbE77Cbf6e67/sources/contract-b89e56c367.sol | function withdraw() public onlyOwner { | address(this).balance;
| 12,308,623 | [
1,
4625,
348,
7953,
560,
30,
282,
445,
598,
9446,
1435,
1071,
1338,
5541,
288,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
12,
2211,
2934,
12296,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.17;
contract ERC20 {
function totalSupply() public view returns (uint supply);
function balanceOf( address who ) public view returns (uint value);
function allowance( address owner, address spender ) public view returns (uint _allowance);
function transfer( address to, uint... | * 指定したユーザが保有するコインを指定したアドレスに送金する @param from {address} - 資金源となるユーザのアドレス @param to {address} - 宛先のアドレス @param amount {uint} - 送付するコインの分量 @return {bool} 送付に成功した場合は true を返す/ | function transferFrom(address from, address to, uint amount) public returns (bool) {
if (implementation.transferFrom(msg.sender, from, to, amount)) {
Transfer(from, to, amount);
return true;
return false;
}
}
| 6,415,991 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
167,
239,
234,
166,
111,
253,
164,
228,
250,
164,
228,
258,
164,
230,
104,
164,
230,
125,
164,
229,
119,
164,
228,
239,
165,
128,
256,
167,
255,
236,
164,
228,
252,
164,
229,
238,
164,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
3844,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
30810,
18,
13866,
1265,
12,
3576,
18,
15330,
16,
628,
16,
358,
16,
3844,
3719,
288,
203,
5411,
12279,
... |
./full_match/1/0x324aD8485005cE4252F68d6a8c26e3C50E917b67/sources/project_/contracts/MrT.sol | * @notice overrides ERC20 transferFrom function to introduce tax functionality @param from address amount is coming from @param to address amount is going to @param amount amount being sent/ | function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
return taxedTransfer(from, to, amount);
}
| 4,933,753 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9515,
4232,
39,
3462,
7412,
1265,
445,
358,
16658,
311,
5320,
14176,
632,
891,
628,
1758,
3844,
353,
19283,
628,
632,
891,
358,
1758,
3844,
353,
8554,
358,
632,
891,
3844,
3844,
3832,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
1071,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
565,
1758,
17571,
264,
273,
389,
3576,
12021,
5621,
203,
565,
389,
87,
1302,
7009,
1359,
12,
2080,
1... |
./partial_match/4/0x32b3BA3B0F8be8eD95118604a8c7178BFD9F5905/sources/UniswapOrbit.sol | @dev Liquidate the given position by converting it to ETH and return back to caller. @param id The position ID to perform liquidation 1. Convert the position back to LP tokens and use liquidate strategy. 2. Return all available ETH back to the operator. | function destroy(uint256 id, address user) external onlyOperator nonReentrant {
require(IERC20(destructHoldingToken).balanceOf(user) >= destructHoldingTokenAmount, "insufficient token hoding");
_removeShare(id);
lpToken.transfer(address(liqStrat), lpToken.balanceOf(address(this)));
l... | 8,708,105 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
511,
18988,
350,
340,
326,
864,
1754,
635,
14540,
518,
358,
512,
2455,
471,
327,
1473,
358,
4894,
18,
632,
891,
612,
1021,
1754,
1599,
358,
3073,
4501,
26595,
367,
404,
18,
4037,
326,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
5546,
12,
11890,
5034,
612,
16,
1758,
729,
13,
3903,
1338,
5592,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
45,
654,
39,
3462,
12,
5489,
8813,
20586,
310,
1345,
2934,
12296,
951,
12,
1355,
13,
1545,
23819,
20586,
... |
pragma solidity ^0.4.11;
/*
Meme Network Token contract source code.
Copyright (C) 2017 whodknee
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, o... | Token information. Ending block. Funding state. Array of balances. | contract MemeNetworkToken {
string public constant name = "Meme Network Token";
string public constant symbol = "MNT";
uint8 public constant decimals = 18;
uint256 public constant tokenCreationRate = 10;
uint256 public constant tokenCreationCap = 100000 ether * tokenCreationRate;
uint256 totalT... | 10,656,587 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
1779,
18,
4403,
310,
1203,
18,
478,
14351,
919,
18,
1510,
434,
324,
26488,
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,
16351,
490,
4698,
3906,
1345,
288,
203,
565,
533,
1071,
5381,
508,
273,
315,
3545,
73,
5128,
3155,
14432,
203,
565,
533,
1071,
5381,
3273,
273,
315,
49,
1784,
14432,
203,
565,
2254,
28,
1071,
5381,
15105,
273,
6549,
31,
203,
203,... |
// SPDX-License-Identifier: MIT
// Creator: base64.tech
pragma solidity ^0.8.13;
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "... | * SamuRise Staking controller/ Address of the ERC721 token contract For each token, this map stores the the block.number of the block they started staking in. if token is mapped to 0, it is currently unstaked. For each token, this map stores the total duration staked measured by block.number Lock down of staking action... | contract SamuRiseStakingController is OwnableUpgradeable, UUPSUpgradeable {
address tokenContract;
mapping(uint256 => uint256) public tokenToWhenStaked;
mapping(uint256 => uint256) public tokenToTotalDurationStaked;
bool stakingPaused;
bool private initialized;
pragma solidity ^0.8.13;
... | 1,113,112 | [
1,
4625,
348,
7953,
560,
30,
380,
348,
301,
89,
54,
784,
934,
6159,
2596,
19,
5267,
434,
326,
4232,
39,
27,
5340,
1147,
6835,
2457,
1517,
1147,
16,
333,
852,
9064,
326,
326,
1203,
18,
2696,
434,
326,
1203,
2898,
5746,
384,
6159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
301,
89,
54,
784,
510,
6159,
2933,
353,
14223,
6914,
10784,
429,
16,
587,
3079,
55,
10784,
429,
288,
203,
565,
1758,
1147,
8924,
31,
203,
377,
203,
565,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
1071,
1147,
774,
9... |
./full_match/3/0x66719Dd809567233A52d3113D3B0A9a72dDeCE1b/sources/contracts/3_Ballot.sol | must hold 100000000+ tokens | constructor() public DividendPayingToken("BNBMOON_Dividend_Tracker", "BNBMOON_Dividend_Tracker") {
claimWait = 1800;
minimumTokenBalanceForDividends = 100000000 * (10 ** 18);
}
| 8,234,487 | [
1,
4625,
348,
7953,
560,
30,
1297,
6887,
2130,
9449,
15,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
21411,
26746,
9148,
310,
1345,
2932,
15388,
38,
5980,
673,
67,
7244,
26746,
67,
8135,
3113,
315,
15388,
38,
5980,
673,
67,
7244,
26746,
67,
8135,
7923,
288,
203,
3639,
7516,
5480,
273,
6549,
713,
31,
203,
3... |
pragma solidity ^0.5.00;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./FlightSuretyData.sol";
/************************************************** */
/* FlightSurety Smart Contract */
/************************************************** */
contract FlightSure... | Generate a unique key for storing the request | function fetchFlightStatus(address airline, string calldata flight, uint256 timestamp) external
requireIsOperational
{
uint8 index = getRandomIndex(msg.sender);
bytes32 key = keccak256(abi.encodePacked(index, airline, flight, timestamp));
emit OracleRequest(index, airline, flight, ti... | 7,299,748 | [
1,
4625,
348,
7953,
560,
30,
225,
6654,
279,
3089,
498,
364,
15729,
326,
590,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2158,
24243,
1482,
12,
2867,
23350,
1369,
16,
533,
745,
892,
25187,
16,
2254,
5034,
2858,
13,
3903,
203,
565,
2583,
2520,
2988,
287,
203,
565,
288,
203,
3639,
2254,
28,
770,
273,
20581,
1016,
12,
3576,
18,
15330,
1769,
... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.11;
import "./ERC1155.sol";
import "./MerkleProof.sol";
/// @notice Struct containing infos about airdrop
/// @param root Root hash of the merkle tree
/// @param expiry Max date to claim the airdrop
/// @param price Price in wei to pay per token
struct DropDa... | @dev ERC1155 compliance | function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 amount,
bytes calldata data
) external pure returns (bytes4) {
return this.onERC1155Received.selector;
}
| 15,875,375 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4232,
39,
2499,
2539,
29443,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
603,
654,
39,
2499,
2539,
8872,
12,
203,
3639,
1758,
3726,
16,
203,
3639,
1758,
628,
16,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
745,
892,
501,
203,
565,
262,
3903,
16618,
113... |
// SPDX-License-Identifier: MIT
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `accoun... | is the token balance of this contract address over the min number of tokens that we need to initiate a swap + liquidity lock? also, don't get caught in a circular liquidity event. also, don't swap & liquify if sender is uniswap pair.add liquidityif any account belongs to _isExcludedFromFee account then remove the fee | function _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater th... | 11,950,539 | [
1,
4625,
348,
7953,
560,
30,
225,
353,
326,
1147,
11013,
434,
333,
6835,
1758,
1879,
326,
1131,
1300,
434,
2430,
716,
732,
1608,
358,
18711,
279,
7720,
397,
4501,
372,
24237,
2176,
35,
2546,
16,
2727,
1404,
336,
13537,
316,
279,
153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3844,
203,
565,
262,
3238,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./FeeOwner.sol";
import "./Fee1155.sol";
/**
@title A basic smart contract for tracking the ownership of SuperFarm Items.
@author Ti... | * Mint + Issue NFT @param recipient - NFT will be issued to recipient @param hash - Artwork IPFS hash @param data - Artwork URI/Data/ | ) public returns (uint256) {
require(hashes[hash] != 1);
hashes[hash] = 1;
_tokenIds.increment();
uint256 newTokenId = _tokenIds.current();
_mint(recipient, newTokenId);
_setTokenURI(newTokenId, data);
return newTokenId;
}
| 1,272,565 | [
1,
4625,
348,
7953,
560,
30,
380,
490,
474,
397,
11820,
423,
4464,
632,
891,
8027,
300,
423,
4464,
903,
506,
16865,
358,
8027,
632,
891,
1651,
300,
9042,
1252,
2971,
4931,
1651,
632,
891,
501,
300,
9042,
1252,
3699,
19,
751,
19,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
17612,
63,
2816,
65,
480,
404,
1769,
203,
3639,
9869,
63,
2816,
65,
273,
404,
31,
203,
3639,
389,
2316,
2673,
18,
15016,
5621,
203,
3639,
2254,
5034,
394,
13... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelinUpgrade/contracts/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelinUpgrade/contracts/token/ERC20/SafeERC20Upgradeable.sol";
import "@openzeppelinUpgrade/contracts/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelinUpgrade/contr... | mint rewards for supplies to action pools | function setRewardsDepositPool(address _actionPoolRewards, uint256 _piddeposit) public onlyOwner {
actionPoolRewards = _actionPoolRewards;
poolDepositId = _piddeposit;
emit SetRewardsDepositPool(_actionPoolRewards, _piddeposit);
}
| 12,741,377 | [
1,
4625,
348,
7953,
560,
30,
225,
312,
474,
283,
6397,
364,
1169,
5259,
358,
1301,
16000,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17631,
14727,
758,
1724,
2864,
12,
2867,
389,
1128,
2864,
17631,
14727,
16,
2254,
5034,
389,
6610,
323,
1724,
13,
1071,
1338,
5541,
288,
203,
3639,
1301,
2864,
17631,
14727,
273,
389,
1128,
2864,
17631,
14727,
31,
20... |
./full_match/1/0x447c8AE8d3A48153aDDd671eA2A6CFb50E3E8799/sources/contracts/1_Storage.sol | * Set some NFTs aside/ | function reservePunks(uint numPunks) public onlyOwner {
uint supply = totalSupply();
uint i;
for (i = 0; i < numPunks; i++) {
_safeMint(msg.sender, supply + i);
}
}
| 9,650,288 | [
1,
4625,
348,
7953,
560,
30,
380,
1000,
2690,
423,
4464,
87,
487,
831,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20501,
52,
1683,
87,
12,
11890,
818,
52,
1683,
87,
13,
1071,
1338,
5541,
288,
540,
203,
3639,
2254,
14467,
273,
2078,
3088,
1283,
5621,
203,
3639,
2254,
277,
31,
203,
3639,
364,
261,
77,
273,
374,
31,
277,
411,
818,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import { LibDiamondCut } from "./diamond/LibDiamondCut.sol";
import { DiamondFacet } from "./diamond/DiamondFacet.sol";
import { OwnershipFacet } from "./diamond/OwnershipFacet.sol";
import { LibDiamondStorage } from "./diamond/... | * @notice This function gets whether the contract ecosystem is currently paused. @return Whether contracts are paused or not./ | function getIsPaused() public view returns (bool) {
LibDiamondStoragePause.DiamondStoragePause storage dsPause = LibDiamondStoragePause.diamondStoragePause();
return dsPause.isPaused;
}
| 1,813,983 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1220,
445,
5571,
2856,
326,
6835,
6557,
538,
1108,
353,
540,
4551,
17781,
18,
632,
2463,
17403,
20092,
854,
17781,
578,
486,
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,
565,
445,
14279,
28590,
1435,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
10560,
14521,
301,
1434,
3245,
19205,
18,
14521,
301,
1434,
3245,
19205,
2502,
3780,
19205,
273,
10560,
14521,
301,
1434,
3245,
19205,
18,
3211,
301,
1434... |
./full_match/1/0xA2B9ED597A9a835c9c46987E947a9742a463E4b7/sources/contracts/deployer/ImplementationRegistry.sol | * @notice Initializes the contract with a set of deployers, a threshold, implementation, and a deployed bytecode hash of its target proxy contract. @param _deployers An array of addresses representing the initial deployers for multisignature validation. @param _threshold The initial threshold required for multisignatur... | constructor(address[] memory _deployers, uint256 _threshold, address[] memory _implementations) MultiSigDeployer(_deployers, _threshold) {
for (uint8 i = 0; i < _implementations.length; ++i) {
_addImplementation(_implementations[i]);
}
bytes32 proxyBytecodeHash;
assembly {
proxyBytecodeHash := extcodeha... | 3,187,408 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10188,
3128,
326,
6835,
598,
279,
444,
434,
7286,
414,
16,
279,
5573,
16,
4471,
16,
471,
279,
19357,
22801,
1651,
434,
2097,
1018,
2889,
6835,
18,
632,
891,
389,
12411,
414,
1922,
526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
12316,
12,
2867,
8526,
3778,
389,
12411,
414,
16,
2254,
5034,
389,
8699,
16,
1758,
8526,
3778,
389,
10442,
1012,
13,
5991,
8267,
10015,
264,
24899,
12411,
414,
16,
389,
8699,
13,
288,
203,
202,
202,
1884,
261,
11890,
28,
277... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.8.12;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppel... | @dev Get the number of available NFTs to win in the pool. | function getAvailableNFTCount() external view returns (uint256) {
return knsPool.length;
}
| 13,112,689 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
968,
326,
1300,
434,
2319,
423,
4464,
87,
358,
5657,
316,
326,
2845,
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,
15796,
50,
4464,
1380,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
417,
2387,
2864,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0xa9B4Fa1481c3e4d88D8ac9dCDe084D6a1Cb6824C/sources/low_Gas_flat.sol | File: contracts/artifacts/low Gas.sol Amended by HashLips*/ | contract Eyes is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.001 ether;
uint256 public maxSupply = 20;
u... | 667,855 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
19,
30347,
19,
821,
31849,
18,
18281,
3986,
3934,
635,
2474,
48,
7146,
5549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
512,
9707,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
225,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
225,
9354,
87,
18,
4789,
3238,
14467,
31,
203,
203,
... |
/* Copyright (C) 2021 Soteria.fund
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed... | amount = exchange.getEthToTokenInputPrice(intermediaryEth); | if (maxIAToSell > maxIABal) {
maxIAToSell = maxIABal;
intermediaryEth = tmp.getTokenToEthInputPrice(maxIAToSell);
}
amount = exchange.getEthToTokenInputPrice(intermediaryEth);
erc20.approve(address(tmp), maxIAToSell);
tmp.tokenT... | 12,897,758 | [
1,
4625,
348,
7953,
560,
30,
225,
3844,
273,
7829,
18,
588,
41,
451,
774,
1345,
1210,
5147,
12,
2761,
5660,
814,
41,
451,
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,
... | [
1,
1,
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,
5411,
309,
261,
1896,
15188,
774,
55,
1165,
405,
943,
45,
2090,
287,
13,
288,
203,
7734,
943,
15188,
774,
55,
1165,
273,
943,
45,
2090,
287,
31,
203,
7734,
1554,
5660,
814,
41,
451,
273,
1853,
18,
588,
1345,
774,
41,
451,
121... |
pragma solidity ^0.4.13;
contract Multiowned {
// TYPES
// struct for the status of a pending operation.
struct PendingState {
uint yetNeeded;
uint ownersDone;
uint index;
}
// EVENTS
// this contract only has five types of events: it can accept a confirmation, in wh... | Prevent sending ether to this address | function () external payable {
revert();
}
AlphaMarketCoin public token;
| 10,407,778 | [
1,
4625,
348,
7953,
560,
30,
225,
19412,
5431,
225,
2437,
358,
333,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1832,
3903,
8843,
429,
288,
203,
3639,
15226,
5621,
203,
565,
289,
203,
203,
565,
24277,
3882,
278,
27055,
1071,
1147,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
-----------------------------------------------------------------
Depot contract.
-----------------------------------------------------------------
*/
pragma solidity 0.4.25;
import "openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol";
import "./SelfDestructible.sol";
import "./Pausable.sol";
import "./Safe... | * @title Depot Contract./ Address where the ether and Synths raised for selling OKS is transfered to Any ether raised for selling Synths gets sent back to whoever deposited the Synths, and doesn't have anything to do with this address. | contract Depot is SelfDestructible, Pausable, ReentrancyGuard {
using SafeMath for uint;
using SafeDecimalMath for uint;
address public oksProxy;
ISynth public synth;
address SUSD = 0x6fe12d8ed302f0fc7829864a2286838b832fad2b;
address USDT = 0xa614f803b6fd780986a42c78ec9c7f77e6ded13c;
uint... | 12,665,042 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4019,
352,
13456,
18,
19,
5267,
1625,
326,
225,
2437,
471,
16091,
451,
87,
11531,
364,
357,
2456,
7791,
55,
353,
7412,
329,
358,
5502,
225,
2437,
11531,
364,
357,
2456,
16091,
451,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4019,
352,
353,
18954,
6305,
8813,
1523,
16,
21800,
16665,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
1450,
14060,
5749,
10477,
364,
2254,
31,
203,
203,
565,
1758,
1071,
1529,
87... |
./full_match/84531/0x469485A14999F0dDbd551430a7B4E361dC4D5589/sources/src/interfaces/IZoraCreator1155Factory.sol | @notice Factory for 1155 contracts @author @iainnash / @tbtstl | interface IZoraCreator1155Factory is IVersionedContract {
error Constructor_ImplCannotBeZero();
error UpgradeToMismatchedContractName(string expected, string actual);
event FactorySetup();
event SetupNewContract(
address indexed newContract,
address indexed creator,
address inde... | 11,525,191 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
7822,
364,
4648,
2539,
20092,
632,
4161,
632,
77,
530,
82,
961,
342,
632,
18587,
88,
334,
80,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
467,
62,
10610,
10636,
2499,
2539,
1733,
353,
467,
23676,
8924,
288,
203,
565,
555,
11417,
67,
2828,
4515,
1919,
7170,
5621,
203,
565,
555,
17699,
774,
11729,
11073,
8924,
461,
12,
1080,
2665,
16,
533,
3214,
1769,
203,
203,
... |
pragma solidity ^0.7.0;
contract web2Airdrop {
// struct for each airdrop thats been created
struct airdropContract {
string airdropTitle; // title of new airdrop claim
address airdropAddress; // contract for the deployed airdrop
address airdropCreator; // address for the creator... | function for creating an airdrop contract should this need to deploy a contract to hold the airdrop need to pull address of airdrop contract to send tokens to _airdropContract = TBD | function createAirdrop(string _airdropTitle, address receivedToken, string _claimKey) public {
ERC20(receivedToken).approve(address _airdropContract, uint tokens)
}
| 13,101,048 | [
1,
4625,
348,
7953,
560,
30,
225,
445,
364,
4979,
392,
279,
6909,
1764,
6835,
1410,
333,
1608,
358,
7286,
279,
6835,
358,
6887,
326,
279,
6909,
1764,
1608,
358,
6892,
1758,
434,
279,
6909,
1764,
6835,
358,
1366,
2430,
358,
389,
1826... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
37,
6909,
1764,
12,
1080,
389,
1826,
7285,
4247,
16,
1758,
5079,
1345,
16,
533,
389,
14784,
653,
13,
1071,
288,
203,
540,
203,
3639,
4232,
39,
3462,
12,
15213,
1345,
2934,
12908,
537,
12,
2867,
389,
1826,
7285,
8... |
./partial_match/8453/0x435307b2135Ba01dd8F566924ac3f7d1fC6144c1/sources/BaseBob.sol | Anti-bot and anti-whale mappings and variables | contract BaseBob is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
address public uniV2router = 0xfCD3842f85ed87ba2889b4D35893403796e67FF1;
bool pri... | 16,794,384 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3360,
38,
947,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
31,
... |
./full_match/56/0xE50552410cF62BCEd605C9894C7E532D9dC35660/sources/project_/contracts/current/Libraries/InvestorsManager.sol | Number of addresses that used his referral address
| uint256 referralUses; | 3,243,339 | [
1,
4625,
348,
7953,
560,
30,
3588,
434,
6138,
716,
1399,
18423,
1278,
29084,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1278,
29084,
15128,
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,
-10... |
/**
* The Sikorka Basic Interface contract.
*
* All contracts using Sikorka should derive from it and
* extend it so they can be used by the applications around it.
*
* @author Lefteris Karapetsas
* @license BSD3
*/
pragma solidity ^0.4.1;
contract Owned {
address owner;
/// Allows only the owner to ... | * Change the challenge question/answer combination @param _question The new question @param _answer_hash The hash to the answer/ | function change_question(string _question, bytes32 _answer_hash) only_owner {
question = _question;
answer_hash = _answer_hash;
}
| 12,972,079 | [
1,
4625,
348,
7953,
560,
30,
380,
7576,
326,
12948,
5073,
19,
13490,
10702,
632,
891,
389,
4173,
3639,
1021,
394,
5073,
632,
891,
389,
13490,
67,
2816,
377,
1021,
1651,
358,
326,
5803,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
67,
4173,
12,
1080,
389,
4173,
16,
1731,
1578,
389,
13490,
67,
2816,
13,
1338,
67,
8443,
288,
203,
3639,
5073,
273,
389,
4173,
31,
203,
3639,
5803,
67,
2816,
273,
389,
13490,
67,
2816,
31,
203,
565,
289,
203,
... |
pragma solidity ^0.8.4;
/// @title a PCV Deposit interface for only balance getters
/// @author Fei Protocol
interface IPCVDepositBalances {
// ----------- Getters -----------
/// @notice gets the effective balance of "balanceReportedIn" token if the deposit were fully withdrawn
function balance(... | @title a PCV Deposit interface for only balance getters @author Fei Protocol ----------- Getters ----------- | interface IPCVDepositBalances {
function balance() external view returns (uint256);
function balanceReportedIn() external view returns (address);
function resistantBalanceAndFei() external view returns (uint256, uint256);
}
| 342,568 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
279,
453,
22007,
4019,
538,
305,
1560,
364,
1338,
11013,
23849,
632,
4161,
5782,
77,
4547,
300,
15392,
968,
5432,
300,
15392,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
2971,
22007,
758,
1724,
38,
26488,
288,
203,
377,
203,
377,
203,
565,
445,
11013,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
426,
1798,
382,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
... |
pragma solidity 0.4.24;
contract DataTypes{
function DataTypes(){}
// solidity provides a wide range of sizes from which you should pick the one that suits you better
// Always Remember size matters.. because it'll cost you more
// Unsigned int, size varies from 8 to 8 bits.. Ranging from 8 to 256
... | Solidity has no Floating point data type Fixed point is on the way.. not fully implemented yet Skipping for now.. Nothing to see here.. TODO: saved for later.. | function fixedPointExample(){
}
| 5,451,555 | [
1,
4625,
348,
7953,
560,
30,
225,
348,
7953,
560,
711,
1158,
5450,
310,
1634,
501,
618,
15038,
1634,
353,
603,
326,
4031,
838,
225,
486,
7418,
8249,
4671,
27455,
364,
2037,
838,
13389,
358,
2621,
2674,
838,
2660,
30,
5198,
364,
5137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5499,
2148,
10908,
1435,
95,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.6.10;
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";
import { ShareToken } from "./AugurMock.sol";
import { Dai } from "./DaiMock.sol"... | TODO: gas golf this function a bit, though it doesn't really matter | function addLiquidity(uint256 sharesToBuy) external {
uint256 poolConstantBefore = sqrt(poolConstant());
dai.transferFrom(msg.sender, address(this), sharesToBuy.mul(100));
shareToken.publicBuyCompleteSets(augurMarket, sharesToBuy);
if (poolConstantBefore == 0) {
_mint(msg.sender, sqrt(poolConstant()));
... | 5,451,393 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
16189,
314,
355,
74,
333,
445,
279,
2831,
16,
11376,
518,
3302,
1404,
8654,
15177,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
527,
48,
18988,
24237,
12,
11890,
5034,
24123,
774,
38,
9835,
13,
3903,
288,
203,
202,
202,
11890,
5034,
2845,
6902,
4649,
273,
5700,
12,
6011,
6902,
10663,
203,
203,
202,
202,
2414,
77,
18,
13866,
1265,
12,
3576,
18,
... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) ... | * @title ERC20 interface/ | contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) public view returns (uint256);
function transferFrom(address from, address to, uint256 value) public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Transfer(
address indexed from... | 10,666,536 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
1560,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4232,
39,
3462,
353,
4232,
39,
3462,
8252,
288,
203,
225,
445,
1699,
1359,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
1071,
1476,
1135,
261,
11890,
5034,
1769,
203,
225,
445,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
... |
./full_match/43113/0xf2BEb272AEC6bD6D8e522fd0dD57062E7f6Ab0bd/sources/Vikings.sol | The running mint fee at the time the viking was minted. The mint fee for every... thing. | contract CryptoVikings is ERC721, ReentrancyGuard, Ownable {
using SafeMath for uint256;
uint public constant MAX_MINT = 10000;
uint public constant MAX_CLAIMABLE = 250;
uint public constant MIN_GB_BALANCE = 900000000000;
address public GB = 0x90842eb834cFD2A1DB0b1512B254a18E4D396215;
uint publ... | 7,208,551 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
3549,
312,
474,
14036,
622,
326,
813,
326,
331,
1766,
310,
1703,
312,
474,
329,
18,
1021,
312,
474,
14036,
364,
3614,
2777,
7757,
18,
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,
15629,
58,
1766,
899,
353,
4232,
39,
27,
5340,
16,
868,
8230,
12514,
16709,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
1071,
5381,
4552,
67,
49,
3217,
273,
12619,
31,
203,... |
./full_match/56/0x2cC6717af87B8D789857C2D6896bFa12bbF2bf49/sources/project_/contracts/Token.sol | * @notice Mints new tokens using underlying amount, increasing totalSupply, initSupply, and a users balance./ | function mintUnderlying(address to, uint256 amount) public returns (bool) {
require(hasRole(MINTER_ROLE, _msgSender()), "Must have minter role");
_mintUnderlying(to, amount);
return true;
}
| 3,233,119 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
490,
28142,
394,
2430,
1450,
6808,
3844,
16,
21006,
2078,
3088,
1283,
16,
1208,
3088,
1283,
16,
471,
279,
3677,
11013,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
14655,
6291,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
6236,
2560,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
315,
10136,
1240,
1131,
387,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "./ValhallaStorageV1.sol";
struct GameWinner {
address addr;
ui... | roundId => player => can claim
| mapping(uint8 => mapping(address => bool)) public specialWinnerCanClaim; | 146,285 | [
1,
4625,
348,
7953,
560,
30,
225,
3643,
548,
516,
7291,
516,
848,
7516,
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,
2874,
12,
11890,
28,
516,
2874,
12,
2867,
516,
1426,
3719,
1071,
4582,
59,
7872,
2568,
9762,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0x4145492ad5039b802bd7e58098c8d71706a2cd14
//Contract name: ElepigCrowdsale
//Balance: 0 Ether
//Verification Date: 6/24/2018
//Transacion Count: 4
// CODE STARTS HERE
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
... | 1 EPG = 0.00042 ETH
| rate = 2380; | 951,674 | [
1,
4625,
348,
7953,
560,
30,
225,
404,
512,
18679,
273,
374,
18,
31262,
22,
512,
2455,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
4993,
273,
10213,
3672,
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,... |
./partial_match/1/0xa77e44A139cb3C4A58d73708b2cB25b9D101AEF5/sources/DHedge.sol | Unsafe internal method that assumes we are not adding a duplicate | function _addToSupportedAssets(bytes32 key) internal {
require(supportedAssets.length < IHasAssetInfo(factory).getMaximumSupportedAssetCount(), "maximum assets reached");
require(!isAssetSupported(key), "asset already supported");
require(validateAsset(key) == true, "not an asset");
... | 2,784,427 | [
1,
4625,
348,
7953,
560,
30,
225,
27476,
2713,
707,
716,
13041,
732,
854,
486,
6534,
279,
6751,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
1289,
774,
7223,
10726,
12,
3890,
1578,
498,
13,
2713,
288,
203,
3639,
2583,
12,
4127,
10726,
18,
2469,
411,
467,
5582,
6672,
966,
12,
6848,
2934,
588,
13528,
7223,
6672,
1380,
9334,
315,
15724,
7176,
8675,
8863,
2... |
pragma solidity 0.4.20;
import 'legacy_reputation/StandardToken.sol';
import 'legacy_reputation/Pausable.sol';
/**
* Pausable token
*
* Simple ERC20 Token example, with pausable token creation
**/
contract PausableToken is StandardToken, Pausable {
function transfer(address _to, uint _value) public whenNotP... | * Pausable token Simple ERC20 Token example, with pausable token creation/ | contract PausableToken is StandardToken, Pausable {
function transfer(address _to, uint _value) public whenNotPaused returns (bool) {
return super.transfer(_to, _value);
}
function transferFrom(address _from, address _to, uint _value) public whenNotPaused returns (bool) {
return super.trans... | 12,569,698 | [
1,
4625,
348,
7953,
560,
30,
380,
21800,
16665,
1147,
4477,
4232,
39,
3462,
3155,
3454,
16,
598,
6790,
16665,
1147,
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,
... | [
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,
21800,
16665,
1345,
353,
8263,
1345,
16,
21800,
16665,
288,
203,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
389,
1132,
13,
1071,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
3639,
327,
2240,
18,
13866,
24899,
869,
... |
pragma solidity ^0.6;
pragma experimental ABIEncoderV2;
import "../../../lib/Math.sol";
import {Classifier64} from "./Classifier.sol";
/**
* A nearest centroid classifier that uses Euclidean distance to predict the closest centroid.
*
* https://en.wikipedia.org/wiki/Nearest_centroid_classifier
*/
contract Neares... | * A class has been added. */* The name of the class. */* The index for the class in the members of this classifier. */ | Classifier64(_classifications) public {
require(_centroids.length == _classifications.length, "The number of centroids and classifications must be the same.");
require(_classifications.length > 0, "At least one class is required.");
require(_classifications.length < 2 ** 64, "Too many cl... | 974,534 | [
1,
4625,
348,
7953,
560,
30,
380,
432,
667,
711,
2118,
3096,
18,
1195,
14,
1021,
508,
434,
326,
667,
18,
1195,
14,
1021,
770,
364,
326,
667,
316,
326,
4833,
434,
333,
14622,
18,
1195,
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,
1,
0,
0,
0,
0,
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,
1659,
1251,
1105,
24899,
1106,
6640,
13,
1071,
288,
203,
3639,
2583,
24899,
2998,
17694,
18,
2469,
422,
389,
1106,
6640,
18,
2469,
16,
315,
1986,
1300,
434,
25040,
471,
667,
6640,
1297,
506,
326,
1967,
1199,
1769,
203,
3639,
... |
pragma solidity 0.6.6;
import "./FluxAggregator.sol";
import "./SimpleReadAccessController.sol";
/**
* @title AccessControlled FluxAggregator contract
* @notice This contract requires addresses to be added to a controller
* in order to read the answers stored in the FluxAggregator contract
*/
contract AccessContr... | * @notice get data about the latest round. Consumers are encouraged to check that they're receiving fresh data by inspecting the updatedAt and answeredInRound return values. Consumers are encouraged to use this more fully featured method over the "legacy" latestRound/ latestAnswer/latestTimestamp functions. Consumers a... | function latestRoundData()
public
view
virtual
override
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
)
{
return getRoundData(latestRoundId);
}
| 565,232 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
336,
501,
2973,
326,
4891,
3643,
18,
22210,
414,
854,
2446,
477,
11349,
358,
866,
716,
2898,
4565,
15847,
12186,
501,
635,
5334,
310,
326,
31944,
471,
5803,
329,
382,
11066,
327,
924,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
282,
445,
4891,
11066,
751,
1435,
203,
565,
1071,
203,
565,
1476,
203,
565,
5024,
203,
565,
3849,
203,
565,
1135,
261,
203,
1377,
2254,
3672,
3643,
548,
16,
203,
1377,
509,
5034,
5803,
16,
203,
1377,
2254,
5034,
5746,
861,
16,
... |
pragma solidity ^0.4.20;
/*
*
* =============================================================================*
* ATTENTION! *
* *
* ... | / add the ambassadors here. | function ProofOfBitConnect()
public
{
address oof = 0xB1a480031f48bE6163547AEa113669bfeE1eC659;
}
| 14,611,907 | [
1,
4625,
348,
7953,
560,
30,
342,
527,
326,
13232,
428,
361,
1383,
2674,
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,
282,
445,
1186,
792,
951,
5775,
5215,
1435,
203,
3639,
1071,
203,
565,
288,
203,
282,
1758,
320,
792,
273,
374,
20029,
21,
69,
8875,
713,
6938,
74,
8875,
70,
41,
26,
2313,
4763,
9462,
16985,
69,
2499,
5718,
8148,
70,
3030,
41,
... |
pragma solidity ^0.4.24;
/*
Реализация смарт контракта по типу 6 друзей
*/
contract SixFriends {
using SafeMath for uint;
address public ownerAddress; //Адресс владельца
uint private percentMarketing = 8; //Проценты на маркетинг
uint private percentAdministrator = 2; //Проценты админис... | Создаю реферальную ссылку на основе номера блока и типа контракта | function createRef(uint hx) internal pure returns (bytes32) {
uint256 _unixTimestamp;
uint256 _timeExpired;
return keccak256(abi.encodePacked(hx, _unixTimestamp, _timeExpired));
}
| 12,810,748 | [
1,
4625,
348,
7953,
560,
30,
225,
145,
99,
145,
127,
145,
120,
145,
117,
145,
113,
146,
241,
225,
146,
227,
145,
118,
146,
231,
145,
118,
146,
227,
145,
113,
145,
124,
146,
239,
145,
126,
146,
230,
146,
241,
225,
146,
228,
146... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
1957,
12,
11890,
366,
92,
13,
2713,
16618,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
2254,
5034,
389,
21136,
4921,
31,
203,
3639,
2254,
5034,
389,
957,
10556,
31,
203,
3639,
327,
417,
24410,
581,
5034,
12,
21457,
... |
./partial_match/1/0xBbC25E2A2948Df4abf61a138f570CE6C4E729fB1/sources/ContractSLURP.sol | No tax transferIs there tax for sender|receiver?Tax transferNo tax transfer | function _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(amount > 1e9, "Min transfer amt");
require(isOpen || _whiteList[from] || _whiteList[to], "Not Open");
ui... | 4,257,371 | [
1,
4625,
348,
7953,
560,
30,
2631,
5320,
7412,
2520,
1915,
5320,
364,
5793,
96,
24454,
35,
7731,
7412,
2279,
5320,
7412,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
... |
./partial_match/1/0xA96D47c621a8316d4F9539E3B38180C7067e84CA/sources/AWP.sol | File: openzeppelin-solidity/contracts/token/ERC20/ERC20StorageFee.sol* @title Pausable token @dev ERC20 modified with pausable transfers./ | contract ERC20StorageFee is ERC20Fee, Pausable {
function transfer(address to, uint256 value) public whenNotPaused returns (bool) {
return super.transfer(to, value);
}
function transferFrom(address from, address to, uint256 value) public whenNotPaused returns (bool) {
return super.transferF... | 3,571,893 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
1696,
94,
881,
84,
292,
267,
17,
30205,
560,
19,
16351,
87,
19,
2316,
19,
654,
39,
3462,
19,
654,
39,
3462,
3245,
14667,
18,
18281,
14,
632,
2649,
21800,
16665,
1147,
632,
5206,
4232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
3245,
14667,
353,
4232,
39,
3462,
14667,
16,
21800,
16665,
288,
203,
565,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
460,
13,
1071,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
3639,
327,
2240,
18,
1386... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../../ValueVaultMaster.sol";
interface IStrategyV2p1 {
function approve(IERC20 _token) external;
function approveForSpender(IERC20 _tok... | * @dev See {IStrategy-getTargetToken}. Always use pool 0 (default)./ | function getTargetToken(address) external override view returns(address) {
return address(poolMap[0].targetToken);
}
| 6,359,579 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
4525,
17,
588,
2326,
1345,
5496,
14178,
999,
2845,
374,
261,
1886,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8571,
1345,
12,
2867,
13,
3903,
3849,
1476,
1135,
12,
2867,
13,
288,
203,
3639,
327,
1758,
12,
6011,
863,
63,
20,
8009,
3299,
1345,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/11155111/0x7bE9d84E9C2FB4f8690Fb9FdB8d866c2421e7ea8/sources/project_/contracts/ChallengeManager.sol | just for reuse purpose | function _createChallenge(Challenge calldata challenge) internal {
require(
challenge.start > block.timestamp,
'ChallangeManager: start in the past'
);
require(
challenge.end > challenge.start,
'ChallengeManager: end time before start time'
);
require(
challenge.end -... | 3,826,731 | [
1,
4625,
348,
7953,
560,
30,
2537,
364,
11827,
13115,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
2640,
18359,
12,
18359,
745,
892,
12948,
13,
2713,
288,
203,
565,
2583,
12,
203,
1377,
12948,
18,
1937,
405,
1203,
18,
5508,
16,
203,
1377,
296,
782,
454,
726,
1318,
30,
787,
316,
326,
8854,
11,
203,
565,
11272,
... |
/*
Copyright 2022 Index Cooperative
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | * Redeems a given list of SetToken components for given token. @param _setToken The set token being swapped. @param _amountSetToken The amount of set token being swapped. @param _swaps An array containing ZeroExSwap swaps. @param _outputToken The token for which to sell the ind... | function _sellComponentsForOutputToken(ISetToken _setToken, uint256 _amountSetToken, bytes[] memory _swaps, IERC20 _outputToken, address _issuanceModule, bool _isDebtIssuance)
internal
returns (uint256 totalOutputTokenBought)
{
(address[] memory components, uint256[] memory componentUnit... | 1,303,621 | [
1,
4625,
348,
7953,
560,
30,
380,
868,
323,
7424,
279,
864,
666,
434,
1000,
1345,
4085,
364,
864,
1147,
18,
632,
891,
389,
542,
1345,
2398,
1021,
444,
1147,
3832,
7720,
1845,
18,
632,
891,
389,
8949,
694,
1345,
4202,
1021,
3844,
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,
565,
445,
389,
87,
1165,
7171,
1290,
1447,
1345,
12,
45,
694,
1345,
389,
542,
1345,
16,
2254,
5034,
389,
8949,
694,
1345,
16,
1731,
8526,
3778,
389,
5328,
6679,
16,
467,
654,
39,
3462,
389,
2844,
1345,
16,
1758,
389,
1054,
89,
... |
./partial_match/1/0xaEA27e27dA63f92427fFa8C1CBb03ca7cff1c382/sources/contracts/governance/GovernorCompatibilityBravo.sol | * @dev See {Governor-_quorumReached}. In this module, only forVotes count toward the quorum./ | function _quorumReached(
uint256 proposalId
) internal view virtual override returns (bool) {
ProposalDetails storage details = _proposalDetails[proposalId];
return quorum(proposalSnapshot(proposalId)) <= details.forVotes;
}
| 3,703,339 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
43,
1643,
29561,
17,
67,
372,
16105,
23646,
5496,
657,
333,
1605,
16,
1338,
364,
29637,
1056,
358,
2913,
326,
31854,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
372,
16105,
23646,
12,
203,
3639,
2254,
5034,
14708,
548,
203,
565,
262,
2713,
1476,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
19945,
3790,
2502,
3189,
273,
389,
685,
8016,
3790,
63,
685,
8016,
548,
15533,
2... |
./partial_match/1/0x2F96a891D69F0a1D3A476f238A4D7937A052E751/sources/Oracle.sol | functions only callable by LinkswapFactory | interface ILinkswapPair is ILinkswapERC20 {
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Lock(address indexed sender, uint256 lockupPeriod, uint256 liquidityLockupAmount);
event Unlock(address indexed sender, uint256 liquidityUnlocked);
event Burn(address indexed sender, u... | 2,588,569 | [
1,
4625,
348,
7953,
560,
30,
225,
4186,
1338,
4140,
635,
4048,
22270,
1733,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
467,
2098,
22270,
4154,
353,
467,
2098,
22270,
654,
39,
3462,
288,
203,
565,
871,
490,
474,
12,
2867,
8808,
5793,
16,
2254,
5034,
3844,
20,
16,
2254,
5034,
3844,
21,
1769,
203,
565,
871,
3488,
12,
2867,
8808,
5793,
16,
22... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | Эти неудачники постоянно влипают в разные происшествия
| rus_verbs:влипать{}, | 5,483,538 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
260,
146,
229,
145,
121,
225,
145,
126,
145,
118,
146,
230,
145,
117,
145,
113,
146,
234,
145,
126,
145,
121,
145,
123,
145,
121,
225,
145,
128,
145,
127,
146,
228,
146,
229,
145,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
115,
145,
124,
145,
121,
145,
128,
145,
113,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// File: contracts/GodMode.sol
/****************************************************
*
* Copyright 2018 BurzNest LLC. All rights reserved.
*
* The contents of this file are provided for review
* and educational purposes ONLY. You MAY NOT use,
* copy, distribute, or modify this software without
* explic... | @title King of Eth: Auctions Abstract Interface @author Anthony Burzillo <burz@burznest.com> @dev Abstract interface contract for auctions of houses | contract KingOfEthAuctionsAbstractInterface {
function existingAuction(uint _x, uint _y) public view returns(bool);
}
}
| 13,107,677 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
1475,
310,
434,
512,
451,
30,
432,
4062,
87,
4115,
6682,
632,
4161,
1922,
3041,
93,
605,
295,
94,
330,
383,
411,
70,
295,
94,
36,
70,
295,
94,
30953,
18,
832,
34,
632,
5206,
4115,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1475,
310,
951,
41,
451,
37,
4062,
87,
7469,
1358,
288,
203,
565,
445,
2062,
37,
4062,
12,
11890,
389,
92,
16,
2254,
389,
93,
13,
1071,
1476,
1135,
12,
6430,
1769,
203,
97,
203,
203,
203,
97,
203,
2,
-100,
-100,
-100,
... |
pragma solidity ^0.5.13;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "../common/Initializable.sol";
import "../common/UsingRegistry.sol";
import "../common/UsingPrecompiles.sol";
import "../common/interfaces/ICeloVersionedContract.... | * @notice Sets slashing incentives. @param penalty Penalty for the slashed signer. @param reward Reward that the observer gets./ | function setSlashingIncentives(uint256 penalty, uint256 reward) public onlyOwner {
require(penalty > reward, "Penalty has to be larger than reward");
slashingIncentives.penalty = penalty;
slashingIncentives.reward = reward;
emit SlashingIncentivesSet(penalty, reward);
}
| 13,021,181 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
9026,
310,
316,
2998,
3606,
18,
632,
891,
23862,
453,
275,
15006,
364,
326,
9026,
329,
10363,
18,
632,
891,
19890,
534,
359,
1060,
716,
326,
9655,
5571,
18,
19,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
11033,
310,
382,
2998,
3606,
12,
11890,
5034,
23862,
16,
2254,
5034,
19890,
13,
1071,
1338,
5541,
288,
203,
565,
2583,
12,
1907,
15006,
405,
19890,
16,
315,
24251,
15006,
711,
358,
506,
10974,
2353,
19890,
8863,
203,... |
/**
Source code of Opium Protocol
Web https://opium.network
Telegram https://t.me/opium_network
Twitter https://twitter.com/opium_network
*/
// File: LICENSE
/**
The software and documentation available in this repository (the "Software") is protected by copyright law and accessible pursuant to the licens... | Multiply payout by quantity | payout = payout.mul(_quantity);
| 1,368,178 | [
1,
4625,
348,
7953,
560,
30,
225,
5991,
1283,
293,
2012,
635,
10457,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
293,
2012,
273,
293,
2012,
18,
16411,
24899,
16172,
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,
-100,... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Open0x Ownable (by 0xInuarashi)
abstract contract Ownable {
address public owner;
event OwnershipTransferred(address indexed oldOwner_, address indexed newOwner_);
constructor() { owner = msg.sender; }
modifier onlyOwner {
require(owner ... | Payable Governance Emergency Functions | modifier onlyShareholder {
require(msg.sender == Shareholder_1 || msg.sender == Shareholder_2, "You are not a shareholder!");
_;
}
| 1,034,193 | [
1,
4625,
348,
7953,
560,
30,
225,
13838,
429,
611,
1643,
82,
1359,
512,
6592,
75,
2075,
15486,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
9535,
4505,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
25805,
4505,
67,
21,
747,
1234,
18,
15330,
422,
25805,
4505,
67,
22,
16,
315,
6225,
854,
486,
279,
7433,
4505,
4442,
1769,
203,
3639,
389,
31,
203,
56... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
import "./Ownable.sol";
import "./ERC20.sol";
/**
▄▄███▄▄·███████╗██╗██╗ ██╗ █████╗
██╔════╝╚══███╔╝██║██║ ██║ ██╔══██╗
███████╗ ███╔╝ ██║██║ ██║ ███████║
╚════██║ ███╔╝ ██║██║ ██║ ██╔══██║
███████║███... | Constructor expects the address of the zilla contract, where the function balanceOG is implemented | contract ZillaToken is ERC20, Ownable {
bool public isLastUpdateFixed = false;
uint256 constant public DAILY_RATE = 5 ether;
uint256 constant public ARISE_ISSUANCE = 150 ether;
mapping(address => uint256) public rewards;
mapping(address => uint256) public lastUpdate;
mapping(address => bool) p... | 11,875,802 | [
1,
4625,
348,
7953,
560,
30,
225,
11417,
10999,
326,
1758,
434,
326,
998,
10745,
6835,
16,
1625,
326,
445,
11013,
13369,
353,
8249,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
2285,
10745,
1345,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1426,
1071,
23075,
1891,
7505,
273,
629,
31,
203,
203,
565,
2254,
5034,
5381,
1071,
463,
6575,
61,
67,
24062,
273,
1381,
225,
2437,
31,
203,
565,
2254... |
pragma solidity ^0.4.0;
import './AbstractENS.sol';
/**
* A registrar that allocates subdomains to the first person to claim them, but
* expires registrations a fixed period after they're initially claimed.
*/
contract TestRegistrar {
uint constant registrationPeriod = 4 weeks;
AbstractENS public ens;
... | * Register a name that's not currently registered @param subnode The hash of the label to register. @param owner The address of the new owner./ | function register(bytes32 subnode, address owner) {
if (expiryTimes[subnode] >= now) throw;
expiryTimes[subnode] = now + registrationPeriod;
ens.setSubnodeOwner(rootNode, subnode, owner);
}
| 12,699,795 | [
1,
4625,
348,
7953,
560,
30,
380,
5433,
279,
508,
716,
1807,
486,
4551,
4104,
632,
891,
28300,
1021,
1651,
434,
326,
1433,
358,
1744,
18,
632,
891,
3410,
1021,
1758,
434,
326,
394,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1744,
12,
3890,
1578,
28300,
16,
1758,
3410,
13,
288,
203,
3639,
309,
261,
22409,
10694,
63,
1717,
2159,
65,
1545,
2037,
13,
604,
31,
203,
203,
3639,
10839,
10694,
63,
1717,
2159,
65,
273,
2037,
397,
7914,
5027,
31,
2... |
pragma solidity >=0.4.22 <0.7.0;
/// @title Voting with delegation.
contract DAO {
// This declares a new complex type which will
// be used for variables later.
// It will represent a single voter.
struct Voter {
mapping(byte32 => bool) voted; // map of the voted proposal
}
enum propos... | a proposal is activated | event ActiveProposal (byte32 name, int voteCount);
| 7,267,270 | [
1,
4625,
348,
7953,
560,
30,
225,
279,
14708,
353,
14892,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
8857,
14592,
261,
7229,
1578,
508,
16,
509,
12501,
1380,
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,
... |
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
interface IERC20 {
function TOTALSUPPLY57() external view returns (uint256); //inject NONSTANDARD NAMING
function BALANCEOF949(address account) external view returns (uint256); //inject ... | inject NONSTANDARD NAMING
| function _MSGDATA742() internal view returns (bytes memory) { | 12,740,411 | [
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,
389,
11210,
4883,
5608,
22,
1435,
2713,
1476,
1135,
261,
3890,
3778,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
//Address: 0x233f637983f1cfc49d8baf87113c738e5f4d4139
//Contract name: TokenVesting
//Balance: 0 Ether
//Verification Date: 4/2/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity 0.4.21;
// ----------------------------------------------------------------------------
// TokenVesting for 'Digitize Coin' p... | * @dev Creates a vesting contract that vests its balance of any ERC20 token to the _beneficiary, gradually in a linear fashion until _start + _duration. By then all of the balance will have vested. @param _beneficiary address of the beneficiary to whom vested tokens are transferred @param _cliffInDays duration in days ... | function TokenVesting(address _beneficiary, uint256 _start, uint256 _cliffInDays, uint256 _durationInDays) public {
require(_beneficiary != address(0));
require(_cliffInDays <= _durationInDays);
beneficiary = _beneficiary;
duration = _durationInDays * 1 days;
cliff = _start.add(_cliffInDays * 1 d... | 2,562,006 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
279,
331,
10100,
6835,
716,
331,
25563,
2097,
11013,
434,
1281,
4232,
39,
3462,
1147,
358,
326,
389,
70,
4009,
74,
14463,
814,
16,
3087,
2544,
1230,
316,
279,
9103,
30957,
3180,
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,
225,
445,
3155,
58,
10100,
12,
2867,
389,
70,
4009,
74,
14463,
814,
16,
2254,
5034,
389,
1937,
16,
2254,
5034,
389,
830,
3048,
382,
9384,
16,
2254,
5034,
389,
8760,
382,
9384,
13,
1071,
288,
203,
565,
2583,
24899,
70,
4009,
74,... |