file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity 0.4.24;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure ... | ------------------------------------------------------------------------ ONLYOWNER METHODS ------------------------------------------------------------------------ ------------------------------------------------------------------------ Freeze account - onlyOwner -----------------------------------------... | function freezeAccount (address _target, bool _freeze) public onlyOwner {
require(_target != 0x0);
frozen[_target] = _freeze;
emit LogFreezed(_target, _freeze);
}
| 15,882,489 | [
1,
29461,
9079,
20747,
29602,
10152,
55,
8879,
17082,
8879,
17082,
15217,
8489,
2236,
300,
1338,
5541,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
16684,
3032,
261,
2867,
389,
3299,
16,
1426,
389,
29631,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
3299,
480,
374,
92,
20,
1769,
203,
3639,
12810,
63,
67,
3299,
65,
273,
389,
29631,
31,
203,
3639,
3626,
1827,
... |
./partial_match/8453/0x5eDeb12C7887377293666E03B09D5C81E1a832c7/sources/OXTOOLS.sol | 4% max wallet at launch
| maxWallet = 8_000_000 * 1e18; | 16,724,836 | [
1,
24,
9,
943,
9230,
622,
8037,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
943,
16936,
273,
1725,
67,
3784,
67,
3784,
380,
404,
73,
2643,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.21;
import "./zeppelin/token/ERC20/SafeERC20.sol";
import "./zeppelin/math/SafeMath.sol";
import "./utils/SaleWithListAndVault.sol";
import "./SEADToken.sol";
/**
* @title SEADSale
* @dev SEADSale is a extend contract for managing a token crowdsale,
* allowing investors to purchase tokens wit... | @dev Interface for admin to deposit token to investor vault @param _beneficiaries investor address @param _tokenAmounts token to deposoit/ | function investorDepositMany(address[] _beneficiaries, uint256[] _tokenAmounts) external onlyOwner {
vaultDepositMany(investorVault, _beneficiaries, _tokenAmounts);
}
| 15,859,948 | [
1,
1358,
364,
3981,
358,
443,
1724,
1147,
358,
2198,
395,
280,
9229,
225,
389,
70,
4009,
74,
14463,
5646,
2198,
395,
280,
1758,
225,
389,
2316,
6275,
87,
1147,
358,
443,
917,
83,
305,
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,
1,
0,
0,
0,
0,
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,
2198,
395,
280,
758,
1724,
5594,
12,
2867,
8526,
389,
70,
4009,
74,
14463,
5646,
16,
2254,
5034,
8526,
389,
2316,
6275,
87,
13,
3903,
1338,
5541,
288,
203,
565,
9229,
758,
1724,
5594,
12,
5768,
395,
280,
12003,
16,
38... |
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// 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 ret... | * @dev Allows the _pendingMigrationOwner address to finalize the transfer./ | function claimMigrationOwnership() external onlyPendingMigrationOwner {
_transferMigrationOwnership(_pendingMigrationOwner);
_pendingMigrationOwner = address(0);
}
| 2,225,194 | [
1,
19132,
326,
389,
9561,
10224,
5541,
1758,
358,
12409,
326,
7412,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10224,
5460,
12565,
1435,
3903,
1338,
8579,
10224,
5541,
288,
203,
3639,
389,
13866,
10224,
5460,
12565,
24899,
9561,
10224,
5541,
1769,
203,
3639,
389,
9561,
10224,
5541,
273,
1758,
12,
20,
1769,
203,
565,
289,
203,
... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.10;
/**
* @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 amo... | * @dev Only fall back when the sender is not the admin./ | function _willFallback() internal override(BaseAdminUpgradeabilityProxy, Proxy) {
BaseAdminUpgradeabilityProxy._willFallback();
}
| 12,879,763 | [
1,
3386,
4159,
1473,
1347,
326,
5793,
353,
486,
326,
3981,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
20194,
12355,
1435,
2713,
3849,
12,
2171,
4446,
10784,
2967,
3886,
16,
7659,
13,
288,
203,
3639,
3360,
4446,
10784,
2967,
3886,
6315,
20194,
12355,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
t.me/pinklemonadecoin
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a... | * @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 PinkLemonade is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
mapping(address=>bool) private _enable... | 11,727,546 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
453,
754,
48,
4758,
2486,
353,
1772,
16,
467,
654,
39,
3462,
16,
467,
654,
39,
3462,
2277,
288,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
565,
2874,
261,
2867,
516,
2874,
261,
... |
pragma solidity 0.8.11;
/**
* Wololo - a Moloch v2 mod that implements a DAO for the CEO of CryptoPunks (CIG)
*/
//import "./SafeMath.sol"; // solidity 0.8 does this
contract Moloch {
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in ... | Make the proposal fail if the dilutionBound is exceeded Make the proposal fail if the applicant is jailed - for standard proposals, we don't want the applicant to get any shares/loot/payment - for guild kick proposals, we should never be able to propose to kick a jailed member (or have two kick proposals active), so i... | function _didPass(uint256 proposalIndex) internal view returns (bool didPass) {
Proposal memory proposal = proposals[proposalQueue[proposalIndex]];
ProposalMutable memory s = pState[proposalQueue[proposalIndex]];
didPass = s.yesVotes > s.noVotes;
if ((totals.totalShares + (totals.tot... | 2,544,212 | [
1,
6464,
326,
14708,
2321,
309,
326,
302,
330,
1421,
3499,
353,
12428,
4344,
326,
14708,
2321,
309,
326,
513,
1780,
970,
353,
525,
1708,
300,
364,
4529,
450,
22536,
16,
732,
2727,
1404,
2545,
326,
513,
1780,
970,
358,
336,
1281,
241... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14044,
6433,
12,
11890,
5034,
14708,
1016,
13,
2713,
1476,
1135,
261,
6430,
5061,
6433,
13,
288,
203,
3639,
19945,
3778,
14708,
273,
450,
22536,
63,
685,
8016,
3183,
63,
685,
8016,
1016,
13563,
31,
203,
3639,
19945,
... |
pragma solidity ^0.4.24;
import "./open-zeppelin/SafeMath.sol";
import "./KYCRegistrar.sol";
import "./SecurityToken.sol";
import "./Custodian.sol";
import "./components/Modular.sol";
import "./components/MultiSig.sol";
/** @title Issuing Entity */
contract IssuingEntity is Modular, MultiSig {
using SafeMath32 for ... | / custodian re-entrancy guard */ | function setBeneficialOwners(
bytes32 _custID,
bytes32[] _id,
bool _add
)
external
returns (bool)
{
require (!mutex);
if (custodians[_custID].addr != msg.sender) {
if (!_checkMultiSig()) return false;
}
for (uint256 i = 0; i < _id.length; i++) {
if (_id[i] == 0) continue;
if (_id[i] == own... | 14,076,334 | [
1,
19,
276,
641,
369,
2779,
283,
17,
8230,
12514,
11026,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
15268,
4009,
74,
22354,
5460,
414,
12,
203,
202,
202,
3890,
1578,
389,
71,
641,
734,
16,
203,
202,
202,
3890,
1578,
8526,
389,
350,
16,
203,
202,
202,
6430,
389,
1289,
203,
202,
13,
203,
202,
202,
9375,
203,
202,
20... |
pragma solidity 0.5.8;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high le... | Denotes the amount of Kairo that's signalling in support of beginning the upgrade process during a cycle
| mapping(uint256 => uint256) public upgradeSignalStrength; | 14,018,458 | [
1,
8517,
6366,
326,
3844,
434,
1475,
10658,
303,
716,
1807,
1573,
454,
310,
316,
2865,
434,
8435,
326,
8400,
1207,
4982,
279,
8589,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
1071,
8400,
11208,
27624,
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,
... |
./full_match/4/0xCbd380E055A76940fa46bD3Ec85524EF09dE647D/sources/lexlocker.sol | @notice Deposits tokens (ERC-20/721) into escrow - locked funds can be released by `msg.sender` `depositor` - both parties can {lock} for `resolver`. @param receiver The account that receives funds. @param resolver The account that unlock funds. @param token The asset used for funds. @param value The amount of funds i... | function deposit(
address receiver,
address resolver,
address token,
uint256[] memory value,
uint256 termination,
bool nft,
string memory details
) public payable nonReentrant returns (uint256 registration) {
require(resolvers[resolver].active,... | 720,977 | [
1,
758,
917,
1282,
2430,
261,
654,
39,
17,
3462,
19,
27,
5340,
13,
1368,
2904,
492,
300,
8586,
284,
19156,
848,
506,
15976,
635,
1375,
3576,
18,
15330,
68,
1375,
323,
1724,
280,
68,
300,
3937,
1087,
606,
848,
288,
739,
97,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
12,
203,
3639,
1758,
5971,
16,
7010,
3639,
1758,
5039,
16,
7010,
3639,
1758,
1147,
16,
7010,
3639,
2254,
5034,
8526,
3778,
460,
16,
203,
3639,
2254,
5034,
19650,
16,
203,
3639,
1426,
290,
1222,
16,
7010,
3639... |
// SPDX-License-Identifier: GPL-3.0
/*
This file is part of the Enzyme Protocol.
(c) Enzyme Council <[email protected]>
For the full license information, please view the LICENSE
file that was distributed with this source code.
*/
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/E... | @notice Gets the value of the `AUTH_USER_EXECUTED_SHARES_REQUESTOR_LIB` variable @return authUserExecutedSharesRequestorLib_ The `AUTH_USER_EXECUTED_SHARES_REQUESTOR_LIB` variable value | function getAuthUserExecutedSharesRequestorLib()
external
view
returns (address authUserExecutedSharesRequestorLib_)
{
return AUTH_USER_EXECUTED_SHARES_REQUESTOR_LIB;
}
| 1,697,369 | [
1,
3002,
326,
460,
434,
326,
1375,
7131,
67,
4714,
67,
15271,
57,
6404,
67,
8325,
7031,
67,
5519,
916,
67,
14484,
68,
2190,
327,
1357,
1299,
23839,
24051,
691,
280,
5664,
67,
1021,
1375,
7131,
67,
4714,
67,
15271,
57,
6404,
67,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
14191,
1299,
23839,
24051,
691,
280,
5664,
1435,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
2867,
1357,
1299,
23839,
24051,
691,
280,
5664,
67,
13,
203,
565,
288,
203,
3639,
327,
12790,
67,
4714,
67,
15271,
... |
./full_match/1/0x78791997483f25217F4C3FE2a568Fe3eFaf77884/sources/src/DiversifierFactory.sol | set split address as passThrough & transfer ownership from factory | passThroughWallet.setPassThrough(passThroughSplit);
| 9,756,281 | [
1,
542,
1416,
1758,
487,
1342,
14287,
473,
7412,
23178,
628,
3272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1342,
14287,
16936,
18,
542,
6433,
14287,
12,
5466,
14287,
5521,
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.4.24;
// ----------------------------------------------------------------------------
// 'NEX'token contract
//
// Deployed to : 0xe1CBDdfD00fA7b51B162473257c700284a6A7d20
// Symbol : NEXTAC
// Name : NEX
// Total supply: 500000000000000000000000000
// Decimals : 18
//
//
//
/... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract NEXToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
constructor() public {
symbol = "NEX";
... | 7,628,584 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
24011,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,
3088,... |
./full_match/4/0x1C4577c6d3b26634EfC925B3024032B0835ac8A7/sources/_api3/airnode-protocol/contracts/AirnodeClient.sol | @notice Returns the Airnode contract address used by this client @return _airnodeAddress Airnode contract address | function airnodeAddress()
external
view
override
returns(address _airnodeAddress)
{
_airnodeAddress = address(airnode);
}
| 748,923 | [
1,
1356,
326,
432,
481,
2159,
6835,
1758,
1399,
635,
333,
1004,
327,
389,
1826,
2159,
1887,
432,
481,
2159,
6835,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
23350,
2159,
1887,
1435,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
12,
2867,
389,
1826,
2159,
1887,
13,
203,
565,
288,
203,
3639,
389,
1826,
2159,
1887,
273,
1758,
12,
1826,
2159,
1769,
203,
56... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
/**
* @dev Interface of the ERC165 standard, as defi... | OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)* @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed w... | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
function _afterTokenTransfer(
address from,
... | 14,532,114 | [
1,
3678,
62,
881,
84,
292,
267,
30131,
331,
24,
18,
24,
18,
21,
261,
3860,
19,
5460,
429,
18,
18281,
13,
225,
13456,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
565,
445,
389,
5771,
1345,
5... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
/**
* @title KosiumPioneer
* KosiumPio... | Pause presale if active, make active if paused/ | function flipPresaleState() external onlyOwner {
presaleIsActive = !presaleIsActive;
}
| 11,806,560 | [
1,
19205,
4075,
5349,
309,
2695,
16,
1221,
2695,
309,
17781,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9668,
12236,
5349,
1119,
1435,
3903,
1338,
5541,
288,
203,
3639,
4075,
5349,
2520,
3896,
273,
401,
12202,
5349,
2520,
3896,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.6.6;
... | inject NONSTANDARD NAMING
| function BALANCEOF508(address account) public view override returns (uint256) { | 12,991,025 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
605,
1013,
4722,
3932,
3361,
28,
12,
2867,
2236,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/**
* @title Proxy Wallet.
* @author Tap Trust
* @dev Proof of concept implementation of a Solidity proxy wallet.
* Unlike most authentication in Ethereum contracts,
* the address of the transaction sender is arbitrary,
* but it includes a signed message that can be authenticated
* as b... | * @dev Requires that a valid administrator address was provided. @param _admin address Administrator address./ | modifier onlyValidAdministrator(address _admin) {
require(_admin != address(0));
_;
}
| 15,846,435 | [
1,
21671,
716,
279,
923,
22330,
1758,
1703,
2112,
18,
225,
389,
3666,
1758,
7807,
14207,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
1338,
1556,
4446,
14207,
12,
2867,
389,
3666,
13,
288,
203,
565,
2583,
24899,
3666,
480,
1758,
12,
20,
10019,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-10
*/
// File: contracts/utils/Address.sol
pragma solidity 0.5.17;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
... | * @dev Buys tokens from the token sale from the function caller. A tax is applied here based on the rptTax. ETH tax is sent to the burn pool which can be used to market buy RPT. This is nonrefundable Prevents users from buying in if the hardcap is met, or if the sale is expired. contrac... | function buyTokens(uint256 contractIndex) external payable nonReentrant{
require(msg.value != 0, "buyTokens: msg.value is 0");
uint256 weiAmount = msg.value;
uint256 weiAmountTax = weiAmount.mul(rptTax).div(100);
SaleInfo storage tokenSaleInfo = tokenSales[contractIndex];
require(to... | 2,240,196 | [
1,
38,
89,
1900,
2430,
628,
326,
1147,
272,
5349,
628,
326,
445,
4894,
18,
432,
5320,
353,
6754,
2674,
2511,
603,
326,
31656,
7731,
18,
9079,
512,
2455,
5320,
353,
3271,
358,
326,
18305,
2845,
1492,
848,
506,
1399,
358,
13667,
30143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30143,
5157,
12,
11890,
5034,
6835,
1016,
13,
3903,
8843,
429,
1661,
426,
8230,
970,
95,
203,
1377,
2583,
12,
3576,
18,
1132,
480,
374,
16,
315,
70,
9835,
5157,
30,
1234,
18,
1132,
353,
374,
8863,
203,
203,
1377,
2254... |
pragma solidity ^0.4.18;
/*
Official ANN thread https://bitcointalk.org/index.php?topic=2785585.0
Official Website https://uptoken.online
IMAGINE a token that can only increase in price.
A really truly cannot-go-down upToken.
This is an ERC20 token, an Ethereum based emulation of the Bitcoin ecosystem but ... | / This is ERC20 Token | contract upToken{
string public name;
string public symbol;
uint8 public decimals;
string public standard = 'Token 0.1';
uint256 public totalSupply;
The price at which tokens are sold
tokenPrice is multiplied on 10^9 for precision
tokenPrice 100000000 = 1 ETH per 10000 PNS
... | 6,441,079 | [
1,
19,
1220,
353,
4232,
39,
3462,
3155,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
731,
1345,
95,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
533,
1071,
4529,
273,
296,
1345,
374,
18,
21,
13506,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// @Name SafeMath
// @Desc Math operations with safety checks that throw on error
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
// ------------------------------------... | ---------------------------------------------------------------------------- @title Pausable @dev Base contract which allows children to implement an emergency stop mechanism. ---------------------------------------------------------------------------- | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
modifier whenNotPaused() { require(!paused); _; }
modifier whenPaused() { require(paused); _; }
function pause() onlyOwner whenNotPaused public {
paused = true;
emit Pause();
}
... | 1,174,099 | [
1,
5802,
7620,
225,
21800,
16665,
225,
3360,
6835,
1492,
5360,
2325,
358,
2348,
392,
801,
24530,
2132,
12860,
18,
8879,
13849,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
21800,
16665,
353,
14223,
6914,
288,
203,
565,
871,
31357,
5621,
203,
565,
871,
1351,
19476,
5621,
203,
203,
565,
1426,
1071,
17781,
273,
629,
31,
203,
203,
203,
565,
9606,
1347,
1248,
28590,
1435,
288,
2583,
12,
5,
8774,
... |
//Address: 0x861825daa0068136a55f6effb3f4a0b9aa17f51f
//Contract name: Token
//Balance: 0 Ether
//Verification Date: 1/17/2018
//Transacion Count: 167
// CODE STARTS HERE
// Copyright (c) 2017, 2018 EtherJack.io. All rights reserved.
// This code is disclosed only to be used for inspection and audit purposes.
// ... | @dev Fired when a bid with Ether is made | event EtherBet(address indexed from, uint256 value, uint256 dividends);
| 15,810,080 | [
1,
42,
2921,
1347,
279,
9949,
598,
512,
1136,
353,
7165,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
512,
1136,
38,
278,
12,
2867,
8808,
628,
16,
2254,
5034,
460,
16,
2254,
5034,
3739,
350,
5839,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "./interfaces/ISwap.sol";
import "./helper/BaseBoringBatchable.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title GeneralizedSwapMigrator
... | * @title GeneralizedSwapMigrator @notice This contract is responsible for migration liquidity between pools Users can use this contract to remove their liquidity from the old pools and add them to the new ones with a single transaction./ | contract GeneralizedSwapMigrator is Ownable, BaseBoringBatchable {
using SafeERC20 for IERC20;
struct MigrationData {
address newPoolAddress;
IERC20 oldPoolLPTokenAddress;
IERC20 newPoolLPTokenAddress;
IERC20[] underlyingTokens;
}
uint256 private constant MAX_UINT256 =... | 5,478,320 | [
1,
12580,
1235,
12521,
25483,
639,
225,
1220,
6835,
353,
14549,
364,
6333,
4501,
372,
24237,
3086,
16000,
12109,
848,
999,
333,
6835,
358,
1206,
3675,
4501,
372,
24237,
628,
326,
1592,
16000,
471,
527,
2182,
358,
326,
394,
5945,
598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
9544,
1235,
12521,
25483,
639,
353,
14223,
6914,
16,
3360,
38,
6053,
4497,
429,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
203,
565,
1958,
15309,
751,
288,
203,
3639,
1758,
394,
2864,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.8;
pragma experimental ABIEncoderV2;
import "./DiamondStorageContract.sol";
import "./DiamondHeaders.sol";
import "./DiamondFacet.sol";
import "./WonkaEngineStructs.sol";
import "./WonkaEngineSupportFacet.sol";
import "./WonkaEngineDiamond.sol";
import "./Transact... | @dev This method will set the address for the Wonka Diamond (proxy) @author Aaron Kendall | function setDiamondAddress(address payable _diamondAddress, address ruler) public onlyEngineOwnerOrTreeOwner(ruler) {
require(msg.sender == diamond.rulesMaster(), "The caller of this method does not have permission for this action.");
diamond = WonkaEngineDiamond(_diamondAddress);
}
| 5,490,981 | [
1,
2503,
707,
903,
444,
326,
1758,
364,
326,
678,
265,
7282,
12508,
301,
1434,
261,
5656,
13,
225,
432,
297,
265,
1475,
409,
454,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
14521,
301,
1434,
1887,
12,
2867,
8843,
429,
389,
3211,
301,
1434,
1887,
16,
1758,
436,
17040,
13,
1071,
1338,
4410,
5541,
1162,
2471,
5541,
12,
86,
17040,
13,
288,
203,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
... |
./partial_match/1/0xa1a5143b4044cC3B710FfB8D7130b24a542536f0/sources/lib/forge-std/src/safeconsole.sol | Selector of `log(uint256,bool,uint256,uint256)`. | function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal pure {
bytes32 m0;
bytes32 m1;
bytes32 m2;
bytes32 m3;
bytes32 m4;
assembly {
m0 := mload(0x00)
m1 := mload(0x20)
m2 := mload(0x40)
m3 := mload(0x60)
... | 16,053,217 | [
1,
4320,
434,
1375,
1330,
12,
11890,
5034,
16,
6430,
16,
11890,
5034,
16,
11890,
5034,
13,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
613,
12,
11890,
5034,
293,
20,
16,
1426,
293,
21,
16,
2254,
5034,
293,
22,
16,
2254,
5034,
293,
23,
13,
2713,
16618,
288,
203,
3639,
1731,
1578,
312,
20,
31,
203,
3639,
1731,
1578,
312,
21,
31,
203,
3639,
1731,
1578... |
pragma solidity ^0.4.19;
// File: contracts/zeppelin/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (... | solium-disable-line uppercase
| string public constant name = "Safe Digital Advertising"; | 7,282,860 | [
1,
18281,
5077,
17,
8394,
17,
1369,
18966,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
533,
1071,
5381,
508,
273,
315,
9890,
11678,
7053,
4052,
1097,
13734,
14432,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/5/0xB7987958CA0105aF80fd9444549aA757b13d31F5/sources/src/zkbob/ZkBobPool.sol | * @dev Performs a forced withdrawal by irreversibly killing an account. Callable only by the operator, if set during latest call to the commitForcedExit. Account cannot be recovered after such forced exit. any remaining or newly sent funds would be lost forever. Accumulated account energy is forfeited. @param _nullifie... | function executeForcedExit(
uint256 _nullifier,
address _operator,
address _to,
uint256 _amount,
uint256 _exitStart,
uint256 _exitEnd,
bool _cancel
)
external
{
require(nullifiers[_nullifier] == 0, "ZkBobPool: doublespend detected");
... | 1,854,160 | [
1,
9409,
279,
13852,
598,
9446,
287,
635,
9482,
266,
2496,
24755,
417,
5789,
392,
2236,
18,
10464,
1338,
635,
326,
3726,
16,
309,
444,
4982,
4891,
745,
358,
326,
3294,
1290,
3263,
6767,
18,
6590,
2780,
506,
24616,
1839,
4123,
13852,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1290,
3263,
6767,
12,
203,
3639,
2254,
5034,
389,
2011,
1251,
16,
203,
3639,
1758,
389,
9497,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
8593,
1685,
16,
... |
./full_match/44787/0xfC9ca4F09d898244c4663Afa751852B38980452B/sources/contracts/StarFarm.sol | Withdraw LP tokens from MasterChef. | function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_msgSender()];
SlotInfo memory slot;
require(user.amount >= _amount, "withdraw: amount error");
updatePool(_pid,1);
(slot._selfGai... | 13,276,501 | [
1,
1190,
9446,
511,
52,
2430,
628,
13453,
39,
580,
74,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
67,
... |
pragma solidity ^0.4.25;
contract FOMOEvents {
// fired whenever a player registers a name
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affilia... | * @dev decides if round end needs to be run & new round started. and if player unmasked earnings from previously played rounds need to be moved./ if player has played a previous round, move their unmasked earnings from that round to gen vault. update player's last round played set the joined round bool to true | {
if (plyr_[_pID].lrnd != 0)
updateGenVault(_pID, plyr_[_pID].lrnd);
plyr_[_pID].lrnd = rID_;
_eventData_.compressedData = _eventData_.compressedData + 10;
return(_eventData_);
}
| 12,594,927 | [
1,
4924,
4369,
309,
3643,
679,
4260,
358,
506,
1086,
473,
394,
3643,
5746,
18,
225,
471,
309,
7291,
640,
23455,
425,
1303,
899,
628,
7243,
6599,
329,
21196,
1608,
358,
506,
10456,
18,
19,
309,
7291,
711,
6599,
329,
279,
2416,
3643,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
309,
261,
1283,
86,
67,
63,
67,
84,
734,
8009,
10826,
4880,
480,
374,
13,
203,
5411,
1089,
7642,
12003,
24899,
84,
734,
16,
293,
715,
86,
67,
63,
67,
84,
734,
8009,
10826,
4880,
1769,
203,
203,
3639,
293,... |
pragma solidity ^0.4.25;
/**
* EtherDice - fully transparent and decentralized betting
*
* Web - https://etherdice.biz
* Telegram chat - https://t.me/EtherDice
* Telegram channel - https://t.me/EtherDiceInfo
*
* Recommended gas limit: 200000
* Recommended gas price: https://ethgasstat... | Records a new bet to the public storage | function createBet(address _player, uint _deposit) internal {
uint lastBlock = bets.length > 0 ? bets[bets.length-1].block : 0;
uint fee = _deposit * FEE_PERCENT / 100;
uint betAmount = _deposit - fee;
sendOwner(fee);
... | 12,988,732 | [
1,
6499,
279,
394,
2701,
358,
326,
1071,
2502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
38,
278,
12,
2867,
389,
14872,
16,
2254,
389,
323,
1724,
13,
2713,
288,
203,
540,
203,
540,
203,
3639,
2254,
1142,
1768,
273,
324,
2413,
18,
2469,
405,
374,
692,
324,
2413,
63,
70,
2413,
18,
2469,
17,
21,
8009,... |
./full_match/1/0x7DF18E4eFD6e6f73cfb462937dAC40FE42533016/sources/contracts/ZkittyToken.sol | when buywhen sellwhen transfer if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(!blacklisted[from], "Sender blacklist... | 4,888,121 | [
1,
13723,
30143,
13723,
357,
80,
13723,
7412,
309,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
1338,
4862,
1656,
281,
603,
25666,
1900,
19,
87,
1165,
87,
16,
741,
486,
4862,
603,
9230,
29375,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
pragma solidity ^0.4.25;
contract EthCrystal
{
/*
EthCrystal.com
Thanks for choosing us!
███████╗████████╗██╗ ██╗ ██████╗██████╗ ██╗ ██╗███████╗████████╗ █████╗ ██╗ ██████╗ ██████╗ ███╗ ███╗
██╔════╝╚══██╔══╝██║ ██║██╔════╝██╔══██╗╚██╗ ██╔╝██╔════╝╚══██╔══╝... | To referrer and devs. In this case, referrer gets 10%, devs get 5% To devs only. In this case, devs get 10% | if (players[players[msg.sender].referralAddress].playerID > 0 && players[msg.sender].referralAddress != ownerAddress){
_ethToTake = affShare;
}
| 1,048,731 | [
1,
774,
14502,
471,
4461,
87,
18,
657,
333,
648,
16,
14502,
5571,
1728,
9,
16,
4461,
87,
336,
1381,
9,
2974,
4461,
87,
1338,
18,
657,
333,
648,
16,
4461,
87,
336,
1728,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
1601,
414,
63,
1601,
414,
63,
3576,
18,
15330,
8009,
1734,
29084,
1887,
8009,
14872,
734,
405,
374,
597,
18115,
63,
3576,
18,
15330,
8009,
1734,
29084,
1887,
480,
3410,
1887,
15329,
203,
5411,
389,
546,
774,
13391,
... |
./partial_match/5/0xc54455e1Ac910e3e4Edd7dbdb8EA46F97f806E69/sources/MISOLiquidityLauncher.sol | @dev Get the total number of launchers in the contract | function numberOfLiquidityLauncherContracts() public view returns (uint256) {
return launchers.length;
}
| 16,860,351 | [
1,
967,
326,
2078,
1300,
434,
8037,
414,
316,
326,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7922,
48,
18988,
24237,
28820,
20723,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
8037,
414,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/5/0x09211B547063113cE09d42BF78830EC187e4a926/sources/Depor6DOSUserBook.sol | 6upusers add level count | function doUserLevelUp(address _addr) internal {
User storage user = addrToUser[_addr];
if (user.userId == 0) {
return;
}
user.level++;
uint256[] memory upInviteUserIds = user.inviteUserIds;
for (uint8 i = 0; i < upInviteUserIds.length; i++) {
... | 16,839,652 | [
1,
26,
416,
5577,
527,
1801,
1056,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
741,
1299,
2355,
1211,
12,
2867,
389,
4793,
13,
2713,
288,
203,
3639,
2177,
2502,
729,
273,
3091,
774,
1299,
63,
67,
4793,
15533,
203,
3639,
309,
261,
1355,
18,
18991,
422,
374,
13,
288,
203,
5411,
327,
31,
203,
3639,... |
./full_match/3/0x8f449Cdf6249E608c661c37eeA40420A117501DE/sources/KickstarterDepFee.sol | * @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met. Use `super` in contracts that inherit from Crowdsale to extend their validations. Example from CappedCrowdsale.sol's _preValidatePurchase method: super._preValidatePurchase(beneficiary, weiAmount); req... | function _preValidatePurchase(address beneficiary, uint256 weiAmount) virtual internal view {
require(beneficiary != address(0), "Crowdsale: beneficiary is the zero address");
require(weiAmount != 0, "Crowdsale: weiAmount is 0");
}
| 8,266,783 | [
1,
4354,
434,
392,
6935,
23701,
18,
2672,
2583,
6317,
358,
15226,
919,
1347,
4636,
854,
486,
5100,
18,
2672,
1375,
9565,
68,
316,
20092,
716,
6811,
628,
385,
492,
2377,
5349,
358,
2133,
3675,
20808,
18,
5090,
628,
11200,
1845,
39,
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,
1484,
4270,
23164,
12,
2867,
27641,
74,
14463,
814,
16,
2254,
5034,
732,
77,
6275,
13,
5024,
2713,
1476,
288,
203,
3639,
2583,
12,
70,
4009,
74,
14463,
814,
480,
1758,
12,
20,
3631,
315,
39,
492,
2377,
5349,
30,
... |
./partial_match/1/0x34cB8F75952dFbC5c40832745bcC851071aF8055/sources/MultiSigWallet.sol | @dev Returns total number of transactions after filers are applied. @param pending Include pending transactions. @param executed Include executed transactions. @return Total number of transactions after filters are applied. | function getTransactionCount(bool pending, bool executed)
public
view
returns (uint256 count)
{
for (uint256 i = 0; i < transactionCount; i++)
if (
(pending && !transactions[i].executed) ||
(executed && transactions[i].executed)
) count += 1;
}
| 9,427,970 | [
1,
1356,
2078,
1300,
434,
8938,
1839,
661,
414,
854,
6754,
18,
225,
4634,
12672,
4634,
8938,
18,
225,
7120,
12672,
7120,
8938,
18,
327,
10710,
1300,
434,
8938,
1839,
3415,
854,
6754,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
15674,
1380,
12,
6430,
4634,
16,
1426,
7120,
13,
203,
202,
202,
482,
203,
202,
202,
1945,
203,
202,
202,
6154,
261,
11890,
5034,
1056,
13,
203,
202,
95,
203,
202,
202,
1884,
261,
11890,
5034,
277,
273,
374,
31,
277,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "../models/_Interfaces.sol";
import "../libraries/SafeMath.sol";
import "../utils/ERC20_Utils.sol";
// This contract secures votes via locking of tokens in the contract
abstract contract _LockVote is ERC20_Utils {
address public owner; // contract dep... | track whether decision has been activated
| bool public decisionActivated; | 900,655 | [
1,
4101,
2856,
14604,
711,
2118,
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,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1426,
1071,
14604,
28724,
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/0xD4dCcDB7515F4fE0fbBd9478c17C7d4fA3032e96/sources/Test.sol | Trade start checkSet Fee for BuysSet Fee for Sells | function _transfer(
address from,
address to,
uint256 amount
) private onlyNonBlacklisted {
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... | 4,182,444 | [
1,
22583,
787,
866,
694,
30174,
364,
605,
89,
1900,
694,
30174,
364,
348,
1165,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
1338,
3989,
13155,
18647,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
34... |
//
//
// ,╔φ▒╠▒▒▒
// ,φ╠░▒▒▒▒▒▒▒
// ,▒░░░░░▒▒▒▒▒▒ε
// φ░░░░░░▒▒▒▒▒▒▒╠
// φ░░░░░░░▒▒▒▒▒▒▒╠
// ,≤φ░░░░░φφφ≡, ░░░░░░░▒▒▒▒▒▒▒▒╠
// ;φ... | Deployer address is the artist.
| address public artistAddress; | 538,054 | [
1,
10015,
264,
1758,
353,
326,
15469,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1758,
1071,
15469,
1887,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the on... | @notice Checks if the string is valid (0-9a-zA-Z,- ) with no leading, trailing or consecutives spaces This function is a modified version of the one in the Hashmasks contract @dev Explain to a developer any extra details @param str the name to validate @return if the name is valid | function isNameValid(string memory str) public pure returns (bool) {
bytes memory strBytes = bytes(str);
if (strBytes.length < 1) return false;
bytes1 lastChar;
bytes1 char;
uint8 charCode;
for (uint256 i; i < strBytes.length; i++) {
char = strBytes[i];
... | 10,311,291 | [
1,
4081,
309,
326,
533,
353,
923,
261,
20,
17,
29,
69,
17,
9600,
17,
62,
16,
17,
262,
598,
1158,
7676,
16,
7341,
578,
356,
15166,
3606,
7292,
540,
1220,
445,
353,
279,
4358,
1177,
434,
326,
1245,
316,
326,
2474,
29102,
6835,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
30430,
1556,
12,
1080,
3778,
609,
13,
1071,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
1731,
3778,
609,
2160,
273,
1731,
12,
701,
1769,
203,
3639,
309,
261,
701,
2160,
18,
2469,
411,
404,
13,
327,
629,
31,
203,
203,
... |
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2020 Compound Labs, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this l... | Allowance amounts on behalf of others Official record of token balances for each account | contract RadicleToken {
string public constant NAME = "Radicle";
string public constant SYMBOL = "RAD";
uint8 public constant DECIMALS = 18;
mapping(address => mapping(address => uint96)) internal allowances;
mapping(address => uint96) internal balances;
mapping(address => address) public ... | 6,450,924 | [
1,
7009,
1359,
30980,
603,
12433,
6186,
434,
10654,
531,
4493,
649,
1409,
434,
1147,
324,
26488,
364,
1517,
2236,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
16378,
3711,
1345,
288,
203,
565,
533,
1071,
5381,
6048,
273,
315,
6621,
3711,
14432,
203,
203,
565,
533,
1071,
5381,
26059,
273,
315,
28829,
14432,
203,
203,
565,
2254,
28,
1071,
5381,
25429,
55,
273,
6549,
31,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/cryptography/ECDSA.sol";
import "../governance/Managed.sol";
import "../upgrades/GraphUpgradeable.sol";
import "./DisputeManagerStorage.sol";
... | * @dev Internal: Set the minimum deposit required to create a dispute. @notice Update the minimum deposit to `_minimumDeposit` Graph Tokens @param _minimumDeposit The minimum deposit in Graph Tokens/ | function _setMinimumDeposit(uint256 _minimumDeposit) private {
require(_minimumDeposit > 0, "Minimum deposit must be set");
minimumDeposit = _minimumDeposit;
emit ParameterUpdated("minimumDeposit");
}
| 908,948 | [
1,
3061,
30,
1000,
326,
5224,
443,
1724,
1931,
358,
752,
279,
1015,
2507,
18,
225,
2315,
326,
5224,
443,
1724,
358,
1375,
67,
15903,
758,
1724,
68,
5601,
13899,
225,
389,
15903,
758,
1724,
1021,
5224,
443,
1724,
316,
5601,
13899,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
13042,
758,
1724,
12,
11890,
5034,
389,
15903,
758,
1724,
13,
3238,
288,
203,
3639,
2583,
24899,
15903,
758,
1724,
405,
374,
16,
315,
13042,
443,
1724,
1297,
506,
444,
8863,
203,
3639,
5224,
758,
1724,
273,
38... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./interfaces/IConvexDe... | * @dev add liquidity to Curve at UST poool @param _curvePool is curve liqudity pool address @param _curveLpBalance is amount lp token @param i is index of toke @return amount of lp token/ | function _curveRemoveLiquidity(address _curvePool, uint256 _curveLpBalance, int128 i) private returns(uint256) {
return ICurvePool(_curvePool).remove_liquidity_one_coin(_curveLpBalance, i, 0);
}
| 1,148,639 | [
1,
1289,
4501,
372,
24237,
358,
22901,
622,
587,
882,
8275,
1371,
225,
389,
16683,
2864,
353,
8882,
4501,
372,
72,
560,
2845,
1758,
225,
389,
16683,
48,
84,
13937,
353,
3844,
12423,
1147,
225,
277,
353,
770,
434,
946,
73,
327,
3844,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
389,
16683,
3288,
48,
18988,
24237,
12,
2867,
389,
16683,
2864,
16,
2254,
5034,
389,
16683,
48,
84,
13937,
16,
509,
10392,
277,
13,
3238,
1135,
12,
11890,
5034,
13,
288,
7010,
3639,
327,
467,
9423,
2864,
24899,
16683,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* external initializer f... | @title AngleDistributorEvents @author Angle Core Team @notice All the events used in `AngleDistributor` contract | contract AngleDistributorEvents {
event DelegateGaugeUpdated(address indexed _gaugeAddr, address indexed _delegateGauge);
event DistributionsToggled(bool _distributionsOn);
event GaugeControllerUpdated(address indexed _controller);
event GaugeToggled(address indexed gaugeAddr, bool newStatus);
event... | 5,933,751 | [
1,
8467,
1669,
19293,
3783,
225,
24154,
4586,
10434,
225,
4826,
326,
2641,
1399,
316,
1375,
8467,
1669,
19293,
68,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
24154,
1669,
19293,
3783,
288,
203,
565,
871,
27687,
18941,
7381,
12,
2867,
8808,
389,
75,
8305,
3178,
16,
1758,
8808,
389,
22216,
18941,
1769,
203,
565,
871,
3035,
15326,
56,
23972,
1259,
12,
6430,
389,
2251,
15326,
1398,
1... |
./partial_match/1/0xf8B127481e60c36465c04aF489e27567c9a3014D/sources/EXAToken.sol | ------------------------------------------------------------------------ Transfer the balance from token owner's account to `to` account - Owner's account must have sufficient balance to transfer - 0 value transfers are allowed ------------------------------------------------------------------------ | function transfer(address to, uint tokens) public returns (bool success) {
require(to != address(0));
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| 9,275,814 | [
1,
29461,
12279,
326,
11013,
628,
1147,
3410,
1807,
2236,
358,
1375,
869,
68,
2236,
300,
16837,
1807,
2236,
1297,
1240,
18662,
11013,
358,
7412,
300,
374,
460,
29375,
854,
2935,
8879,
17082,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
358,
16,
2254,
2430,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
10019,
203,
203,
3639,
324,
26488,
63,
3576,
18,
15330,
65,
273,
324,
26488,
63,
3576,
18,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
/*
m_1 - 21401
m_2 - 21401
m_3 - 21341
m_4 - 26231
m_5 - 26244
m_6 - 26445
m_7 - 26231
m_8 - 26244
m_9 - 26416
*/
// uint8 storage and setter
contract MathOperators_1 {
function Operator_1() public {
uint256 a = 1;
a = a + 1;
... | uint8 storage and setter | contract MathOperators_1 {
pragma solidity 0.8.9;
m_1 - 21401
function Operator_1() public {
uint256 a = 1;
a = a + 1;
}
}
| 2,507,144 | [
1,
11890,
28,
2502,
471,
7794,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
2361,
24473,
67,
21,
288,
203,
1377,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
29,
31,
203,
81,
67,
21,
300,
30149,
1611,
21281,
203,
377,
445,
11097,
67,
21,
1435,
1071,
288,
203,
4202,
2254,
5034,
279,
273,
404,
3... |
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;
//pragma experimental ABIEncoderV2;
import './Utils.sol';
import './Verifier.sol';
import './MerkleTree_Stateless.sol';
import './Structures.sol';
library ChallengesUtil {
bytes32 public constant ZERO =
0x00000000000000000000000000000000000000000... | next check the sibling path is valid and get the Frontier At last, we can check if the root itself is correct! | function libChallengeNewRootCorrect(
Structures.Block memory blockL2,
Structures.Transaction[] memory transactions
) public pure {
bool valid;
bytes32[33] memory _frontier;
(valid, _frontier) = MerkleTree_Stateless.checkPath(
Utils.filterCommitments(priorBlock... | 12,779,828 | [
1,
4285,
866,
326,
10841,
589,
353,
923,
471,
336,
326,
16465,
2453,
2380,
1142,
16,
732,
848,
866,
309,
326,
1365,
6174,
353,
3434,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2561,
18359,
1908,
2375,
16147,
12,
203,
3639,
7362,
1823,
18,
1768,
3778,
1203,
48,
22,
16,
203,
3639,
7362,
1823,
18,
3342,
8526,
3778,
8938,
203,
565,
262,
1071,
16618,
288,
203,
3639,
1426,
923,
31,
203,
3639,
1731,... |
// SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.7.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "./inte... | * @notice Batch minting of tokens Currently no restrictions as to who is allowed to mint - so, it is public. @dev ERC-1155 @param _to The address that will own the minted token @param _tokenIds IDs of the tokens to be minted @param _values Amounts of the tokens to be minted @param _data Additional data forwarded to onE... | function mintBatch(
address _to,
uint256[] calldata _tokenIds,
uint256[] calldata _values,
bytes calldata _data
) external onlyFromVoucherKernel {
_mintBatch(_to, _tokenIds, _values, _data);
}
| 14,468,874 | [
1,
4497,
312,
474,
310,
434,
2430,
15212,
1158,
17499,
487,
358,
10354,
353,
2935,
358,
312,
474,
300,
1427,
16,
518,
353,
1071,
18,
225,
4232,
39,
17,
2499,
2539,
225,
389,
869,
1021,
1758,
716,
903,
4953,
326,
312,
474,
329,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
4497,
12,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
389,
2316,
2673,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
389,
2372,
16,
203,
3639,
1731,
745,
892,
389,
892,
203,
565,
262,
... |
./partial_match/1/0x35c556d2700CE48fC3D3C1736B28bd15dC5cFC59/sources/TrueRatingAgency.sol | * @dev Only loans in Running state/ | modifier onlyNotRunningLoans(address id) {
require(status(id) != LoanStatus.Running, "TrueRatingAgency: Loan is currently running");
_;
}
| 3,990,262 | [
1,
3386,
437,
634,
316,
20480,
919,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
1248,
7051,
1504,
634,
12,
2867,
612,
13,
288,
203,
3639,
2583,
12,
2327,
12,
350,
13,
480,
3176,
304,
1482,
18,
7051,
16,
315,
5510,
20388,
2577,
2075,
30,
3176,
304,
353,
4551,
3549,
8863,
203,
3639,
389,
31,... |
./full_match/4/0x09bf15edb5F6EED7081c96ed79246Ff723B86b00/sources/contracts/erc1155_test.sol | _artists[_tokenIdCounter.current()] = artists; | _mint(account, _tokenIdCounter.current(), amount, data);
| 649,346 | [
1,
67,
485,
1486,
63,
67,
2316,
548,
4789,
18,
2972,
1435,
65,
273,
3688,
1486,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
81,
474,
12,
4631,
16,
389,
2316,
548,
4789,
18,
2972,
9334,
3844,
16,
501,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.21;
/*
Owned contract interface
*/
contract IOwned {
// this function isn't abstract since the compiler emits automatically generated getter functions as external
function owner() public view returns (address) {}
function transferOwnership(address _newOwner) public;
function a... | / initialize supported features | function BancorConverter(
ISmartToken _token,
IContractRegistry _registry,
uint32 _maxConversionFee,
IERC20Token _connectorToken,
uint32 _connectorWeight
)
public
SmartTokenController(_token)
validAddress(_registry)
validMaxConversionFee(_m... | 14,568 | [
1,
19,
4046,
3260,
4467,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
605,
304,
3850,
5072,
12,
203,
3639,
4437,
81,
485,
1345,
389,
2316,
16,
203,
3639,
467,
8924,
4243,
389,
9893,
16,
203,
3639,
2254,
1578,
389,
1896,
6814,
14667,
16,
203,
3639,
467,
654,
39,
3462,
1345,
389,
23159,
1... |
./full_match/1/0xc9E77ef4a304B39bEa702b882E701b757dCd3730/sources/home/paras/roaring-leaders/contracts/RoaringRoccstars.sol | Mint Roaring Roccstar NFTs during pre-sale/ | function presaleMint(uint256 numberOfTokens) public payable {
require(preSaleIsActive, "Presale not live");
require(_presaleMints[msg.sender] + numberOfTokens <= maxPresaleMintsPerWallet, "Presale limit");
require(_mintCounter.current() + numberOfTokens <= maxMintSupply, "Max supply");
... | 4,982,853 | [
1,
49,
474,
534,
83,
5968,
534,
25049,
10983,
423,
4464,
87,
4982,
675,
17,
87,
5349,
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,
... | [
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,
4075,
5349,
49,
474,
12,
11890,
5034,
7922,
5157,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
1484,
30746,
2520,
3896,
16,
315,
12236,
5349,
486,
8429,
8863,
203,
3639,
2583,
24899,
12202,
5349,
49,
28142,
63,
3576,
... |
pragma solidity ^0.4.19;
/* Interface for ERC20 Tokens */
contract Token {
bytes32 public standard;
bytes32 public name;
bytes32 public symbol;
uint256 public totalSupply;
uint8 public decimals;
bool public allowTransactions;
mapping (address => uint256) public balanceOf;
map... | mapping of user addresses to last transaction block
| mapping (address => uint256) public lastActiveTransaction; | 2,472,877 | [
1,
6770,
434,
729,
6138,
358,
1142,
2492,
1203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
1071,
1142,
3896,
3342,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/*
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 Returns a slices from a byte array. @param b The byte array to take a slice from. @param from The starting index for the slice (inclusive). @param to The final index for the slice (exclusive). @return result The slice containing bytes at indices [from, to) | function publicSlice(
bytes memory b,
uint256 from,
uint256 to
)
public
pure
returns (bytes memory result, bytes memory original)
{
result = LibBytes.slice(b, from, to);
return (result, b);
}
| 12,595,673 | [
1,
1356,
279,
12390,
628,
279,
1160,
526,
18,
225,
324,
1021,
1160,
526,
358,
4862,
279,
2788,
628,
18,
225,
628,
1021,
5023,
770,
364,
326,
2788,
261,
267,
9173,
2934,
225,
358,
1021,
727,
770,
364,
326,
2788,
261,
23792,
2934,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1071,
5959,
12,
203,
3639,
1731,
3778,
324,
16,
203,
3639,
2254,
5034,
628,
16,
203,
3639,
2254,
5034,
358,
203,
565,
262,
203,
3639,
1071,
203,
3639,
16618,
203,
3639,
1135,
261,
3890,
3778,
563,
16,
1731,
3778,
2282,
... |
./full_match/83/0x70d77fB99b9C7b3E41B2424e9Dcc898d49edbb4c/sources/contracts/CErc20.sol | * @notice Sender borrows assets from the protocol to their own address @param borrowAmount The amount of the underlying asset to borrow @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)/ | function borrow(uint256 borrowAmount) external returns (uint256) {
return borrowInternal(borrowAmount);
}
| 9,557,445 | [
1,
12021,
324,
280,
3870,
7176,
628,
326,
1771,
358,
3675,
4953,
1758,
225,
29759,
6275,
1021,
3844,
434,
326,
6808,
3310,
358,
29759,
327,
2254,
374,
33,
4768,
16,
3541,
279,
5166,
261,
5946,
1068,
13289,
18,
18281,
364,
3189,
13176,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
29759,
12,
11890,
5034,
29759,
6275,
13,
3903,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
29759,
3061,
12,
70,
15318,
6275,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/250/0x1CD4f1E9336555af8398A2619E7ff2712E8F4046/sources/contracts/QissaFactory.sol | * Returns the list of projects, where project owner is involved in @param _projectOwner - parcId of a projectOwner to get the list from @return ProjectOwnerProjects - ProjectOwnerProjects, which contain a list of projects where they are involved in/ | function getProjectsOfProjectOwner(address _projectOwner) external view returns (Project[] memory) {
return ownerProjects[_projectOwner];
}
| 13,223,180 | [
1,
1356,
326,
666,
434,
10137,
16,
1625,
1984,
3410,
353,
24589,
316,
225,
389,
4406,
5541,
300,
779,
71,
548,
434,
279,
1984,
5541,
358,
336,
326,
666,
628,
327,
5420,
5541,
15298,
300,
5420,
5541,
15298,
16,
1492,
912,
279,
666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11080,
87,
951,
4109,
5541,
12,
2867,
389,
4406,
5541,
13,
3903,
1476,
1135,
261,
4109,
8526,
3778,
13,
288,
203,
3639,
327,
3410,
15298,
63,
67,
4406,
5541,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x3F0303514da0C760CaBf836cAf4d7aaAfE0c587E/sources/NFT.sol | Do not remove this otherwise you will not be able to withdraw the funds. =============================================================================(bool hs, ) = payable(0x0d821eeb06847Eb83B8E63D9414eEF2dd3dDD300).call{value: address(this).balance * 1 /2}(""); ========================================================... | function withdraw() public onlyOwner {
require(send());
require(os,"withdraw failed");
}
| 3,076,979 | [
1,
3244,
486,
1206,
333,
3541,
1846,
903,
486,
506,
7752,
358,
598,
9446,
326,
284,
19156,
18,
422,
22121,
12275,
12,
6430,
12670,
16,
262,
273,
8843,
429,
12,
20,
92,
20,
72,
28,
5340,
1340,
70,
7677,
5193,
27,
41,
70,
10261,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
598,
9446,
1435,
1071,
225,
1338,
5541,
288,
203,
377,
203,
565,
2583,
12,
4661,
10663,
203,
565,
2583,
12,
538,
10837,
1918,
9446,
2535,
8863,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/5/0x417cAeabf656a388EC60A7d3C61fF864179B5698/sources/project_/contracts/MoMABurn.sol | @notice burnAndMint use for burn old editions and mint new edition @param _burnedEditions - array of edition IDs to burn Check duplicate with others | function burnAndMint(uint256[] memory _burnedEditions) external {
require(isBurnEnabled, "Burn and mint status is not enabled");
require(
_burnedEditions.length == 3 ||
_burnedEditions.length == 6 ||
_burnedEditions.length == 9,
"Invalid numbe... | 1,873,615 | [
1,
70,
321,
1876,
49,
474,
999,
364,
18305,
1592,
1675,
5029,
471,
312,
474,
394,
28432,
225,
389,
70,
321,
329,
41,
1460,
87,
300,
526,
434,
28432,
7115,
358,
18305,
2073,
6751,
598,
10654,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
1876,
49,
474,
12,
11890,
5034,
8526,
3778,
389,
70,
321,
329,
41,
1460,
87,
13,
3903,
288,
203,
3639,
2583,
12,
291,
38,
321,
1526,
16,
315,
38,
321,
471,
312,
474,
1267,
353,
486,
3696,
8863,
203,
203,
3639... |
./full_match/137/0xABBB4d0074C0361fBf7e07FD3d4d4e9cCCB9128f/sources/contracts/libraries/LimitOrderLibrary.sol | * @dev Structure for the updateOrder with parameters necessary to update limit order @param orderId order id to update @param depositAsset The address of the deposit token (collateral for margin trade or locked funds for spot) @param depositAmount The amount of deposit funds for deal @param makeDeposit Bool, add a coll... | struct UpdateLimitOrderParams {
uint256 orderId;
address depositAsset;
uint256 depositAmount;
uint256 leverage;
bool isProtocolFeeInPmx;
bool takeDepositFromWallet;
bool payFeeFromWallet;
}
| 4,668,632 | [
1,
6999,
364,
326,
1089,
2448,
598,
1472,
4573,
358,
1089,
1800,
1353,
225,
20944,
1353,
612,
358,
1089,
225,
443,
1724,
6672,
1021,
1758,
434,
326,
443,
1724,
1147,
261,
12910,
2045,
287,
364,
7333,
18542,
578,
8586,
284,
19156,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
2315,
3039,
2448,
1370,
288,
203,
3639,
2254,
5034,
20944,
31,
203,
3639,
1758,
443,
1724,
6672,
31,
203,
3639,
2254,
5034,
443,
1724,
6275,
31,
203,
3639,
2254,
5034,
884,
5682,
31,
203,
3639,
1426,
353,
5752,
14667,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import './Context.sol';
import './Strings.sol';
import './ERC165.sol';
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControlUpgradeable {
function hasRole(bytes32 role, address account) external view ... | Update the balance. | balance.currentEpochBalance = newCurrentBalance.toUint112();
| 5,860,584 | [
1,
1891,
326,
11013,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
11013,
18,
2972,
14638,
13937,
273,
394,
3935,
13937,
18,
869,
5487,
17666,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x3a23F943181408EAC424116Af7b7790c94Cb97a5/sources/src/bridges/hop/l2/HopImplL2.sol | @notice Struct to be used in decode step from input parameter - a specific case of bridging after swap. @dev the data being encoded in offchain or by caller should have values set in this sequence of properties in this struct The address receiving funds at the destination AMM address of Hop on L2 The chainId of the de... | struct HopBridgeDataNoToken {
address receiverAddress;
address hopAMM;
uint256 toChainId;
uint256 bonderFee;
uint256 amountOutMin;
uint256 deadline;
uint256 amountOutMinDestination;
uint256 deadlineDestination;
bytes32 metadata;
}
| 11,003,499 | [
1,
3823,
358,
506,
1399,
316,
2495,
2235,
628,
810,
1569,
300,
279,
2923,
648,
434,
324,
1691,
1998,
1839,
7720,
18,
225,
326,
501,
3832,
3749,
316,
3397,
5639,
578,
635,
4894,
1410,
1240,
924,
444,
316,
333,
3102,
434,
1790,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
670,
556,
13691,
751,
2279,
1345,
288,
203,
3639,
1758,
5971,
1887,
31,
203,
3639,
1758,
19055,
2192,
49,
31,
203,
3639,
2254,
5034,
358,
3893,
548,
31,
203,
3639,
2254,
5034,
324,
265,
765,
14667,
31,
203,
3639,
2254,... |
pragma solidity ^0.4.23;
/*
* Zethroll.
*
* Adapted from PHXRoll, written in March 2018 by TechnicalRise:
* https://www.reddit.com/user/TechnicalRise/
*
* Adapted for Zethr by Norsefire and oguzhanox.
*
* Gas golfed by Etherguy
* Audited & commented by Klob
*/
contract ZTHReceivingContract {
/**
* @dev Standar... | Token value in uint
| uint200 tokenValue; | 20,619 | [
1,
1345,
460,
316,
2254,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
6976,
1147,
620,
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/3/0x55d45b21a11d3B2D77bE2D9EaD7752b74EF02ba5/sources/VinylToken.sol | * @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred/ | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_t... | 5,082,320 | [
1,
5912,
2430,
628,
1245,
1758,
358,
4042,
225,
389,
2080,
1758,
1021,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
225,
389,
869,
1758,
1021,
1758,
1492,
1846,
2545,
358,
7412,
358,
225,
389,
1132,
2254,
5034,
326,
3844,
434,
2430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
24899,
1132,
1648,
324,
26488,
... |
pragma solidity 0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Sol... | do a normal token transfer
| require(super.transfer(_to, _value)); | 2,191,648 | [
1,
2896,
279,
2212,
1147,
7412,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
9565,
18,
13866,
24899,
869,
16,
389,
1132,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x14E252759e82317bb46e38cD6Fb62F77Ab93f070/sources/contracts/Contract.sol | @title ERC1155 token @author Liam Arbuckle/ | contract Portal is ERC1155Supply, ERC1155Burnable, Ownable {
string name_;
string symbol_;
uint256 constant MAX_SUPPLY = 1000;
uint256 public whiteListSalePrice = 12 * 10 ** 16;
uint256 public publicSalePrice = 12 * 10 ** 16;
uint256 public publicMaxMintableCount = 10;
uint256 public NOT_M... | 1,869,804 | [
1,
654,
39,
2499,
2539,
1147,
225,
27897,
301,
1201,
70,
9031,
298,
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,
25478,
353,
4232,
39,
2499,
2539,
3088,
1283,
16,
4232,
39,
2499,
2539,
38,
321,
429,
16,
14223,
6914,
288,
203,
565,
533,
508,
67,
31,
203,
565,
533,
3273,
67,
31,
203,
203,
565,
2254,
5034,
5381,
4552,
67,
13272,
23893... |
./full_match/3/0x6579377e88f6D65C5a88a608a8AC20F6De51ce16/sources/contracts/BBC.sol | Faciliating the needed functionality for the presale | contract BBC is ERC721Enumerable, Ownable {
uint256 public constant MAX_KOALAS = 10000;
uint256 public constant RESERVES = 100;
uint256 private _conversionRate = 7;
mapping(address => bool) addressToPreSaleEntry;
mapping(address => uint256) addressToPreSaleKoalasMinted;
string private _baseTo... | 14,213,838 | [
1,
6645,
15700,
1776,
326,
3577,
14176,
364,
326,
4075,
5349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
16283,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
288,
203,
565,
2254,
5034,
1071,
5381,
4552,
67,
47,
51,
1013,
3033,
273,
12619,
31,
203,
565,
2254,
5034,
1071,
5381,
2438,
2123,
3412,
55,
273,
2130,
31,... |
./partial_match/1/0x9dA0a4565Dd11c42148729eAC420C50B92EeaBFD/sources/turkeysGameFarmers.sol | Events Hard variables Public variables Mappings Non-stake Staking | contract turkeysGameFarmers is ERC721Enumerable, Ownable, Pausable {
using SafeMath for uint256;
using Strings for uint256;
event TurkeyStampede(uint256 lostAmount, uint256 transferredAmount);
event HungryTurkeys(uint256 lostAmount, uint256 transferredAmount);
event TurkeyTime(uint256 lostAmount, ... | 4,152,609 | [
1,
3783,
670,
1060,
3152,
7224,
3152,
1635,
4675,
3858,
17,
334,
911,
934,
6159,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
268,
295,
2452,
12496,
42,
4610,
414,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
20... |
pragma solidity ^0.4.21;
contract Owned {
address public owner;
address public newOwner;
event OwnershipTransferred(address indexed _from, address indexed _to);
function Owned() {
owner = msg.sender;
}
modifier onlyOwner {
if (msg.sender != owner) throw;
_;
}
... | Prevent accidental ether sending | function () payable {
revert();
}
event GameWon(uint8 gameType, address winner, uint256 winnings);
| 5,995,575 | [
1,
25828,
25961,
287,
225,
2437,
5431,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1832,
8843,
429,
288,
7010,
377,
15226,
5621,
7010,
289,
203,
203,
871,
14121,
59,
265,
12,
11890,
28,
7920,
559,
16,
1758,
5657,
1224,
16,
2254,
5034,
5657,
82,
899,
1769,
7010,
377,
203,
2,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x33AD1d393808DF17dC8e59b8246AC607380b9F01/sources/contracts/king-sniper-amt-addliq.sol | uint256 mpb = getPoolBal(sp.router1, tokenx, sp.weth); | uint256 mpb = 0;
| 8,364,937 | [
1,
11890,
5034,
312,
5733,
273,
28575,
38,
287,
12,
1752,
18,
10717,
21,
16,
1147,
92,
16,
1694,
18,
91,
546,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
312,
5733,
273,
374,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-06-06
*/
// Sources flattened with hardhat v2.2.0 https://hardhat.org
// File openzeppelin-solidity/contracts/utils/introspection/[email protected]
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defin... | * the Metadata extension, but not including the Enumerable extension, which is available separately as {ERC721Enumerable}./ Token name Token symbol Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvals | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
string private _name;
string private _symbol;
mapping (uint256 => address) private _owners;
mapping (address => uint256) private _balances;
mapping (uint256 => address) p... | 2,271,479 | [
1,
5787,
6912,
2710,
16,
1496,
486,
6508,
326,
6057,
25121,
2710,
16,
1492,
353,
2319,
18190,
487,
288,
654,
39,
27,
5340,
3572,
25121,
5496,
19,
3155,
508,
3155,
3273,
9408,
628,
1147,
1599,
358,
3410,
1758,
9408,
3410,
1758,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
27,
5340,
353,
1772,
16,
4232,
39,
28275,
16,
467,
654,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
2277,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
533,... |
./full_match/80001/0x4444572f8e6FB8b76f2943C1ba15f5aA9b38eC72/sources/gist-4c970e79d3a27a9edbbf04d6c737be27/Errors.sol | * @title Errors library @author Aave @notice Defines the error messages emitted by the different contracts of the Aave protocol/ | library Errors {
pragma solidity ^0.8.0;
}
| 5,658,488 | [
1,
4229,
5313,
225,
432,
836,
225,
18003,
281,
326,
555,
2743,
17826,
635,
326,
3775,
20092,
434,
326,
432,
836,
1771,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
9372,
288,
203,
21281,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
97,
203,
2,
-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
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g... | File: Ai_Karens.sol | contract nfttest is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.01 ether;
uint256 public maxSupply = 500;
uint256 public... | 10,017,675 | [
1,
812,
30,
432,
77,
67,
47,
21660,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
13958,
748,
395,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
565,
9354,
87,
18,
4789,
3238,
14467,
... |
/**
*Submitted for verification at Etherscan.io on 2022-02-15
*/
// Sources flattened with hardhat v2.8.0 https://hardhat.org
// File contracts/interfaces/IUniswapV3Factory.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
/// @title The interface for the Uniswap V3 Factory
/// @notice The U... | @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128 @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128 @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TIC... | {
uint256 absTick = tick < 0
? uint256(-int256(tick))
: uint256(int256(tick));
require(absTick <= uint256(int256(MAX_TICK)), "T");
uint256 ratio = absTick & 0x1 != 0
? 0xfffcb933bd6fad37aa2d162d1a594001
: 0x100000000000000000000000000000000;
... | 7,639,292 | [
1,
1986,
5224,
4024,
716,
2026,
506,
2275,
358,
1322,
85,
3797,
8541,
861,
6264,
8470,
628,
613,
1026,
404,
18,
13304,
434,
576,
17,
10392,
225,
1021,
4207,
4024,
716,
2026,
506,
2275,
358,
1322,
85,
3797,
8541,
861,
6264,
8470,
628... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
2254,
5034,
2417,
6264,
273,
4024,
411,
374,
203,
5411,
692,
2254,
5034,
19236,
474,
5034,
12,
6470,
3719,
203,
5411,
294,
2254,
5034,
12,
474,
5034,
12,
6470,
10019,
203,
3639,
2583,
12,
5113,
6264,
1648,
22... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../interfaces/INFTComplexGemPoolData.sol";
import "../interfaces/ISwapQueryHelper.sol";
import "../interfaces/INFTGemMultiToken.sol";
... | * @dev input requirements at index/ | function allInputRequirements(ComplexPoolData storage self, uint256 _index)
public
view
returns (
address,
address,
INFTComplexGemPool.RequirementType,
uint256,
uint256,
bool,
bool,
bool
)... | 15,863,446 | [
1,
2630,
8433,
622,
770,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
777,
1210,
15465,
12,
12795,
2864,
751,
2502,
365,
16,
2254,
5034,
389,
1615,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
203,
5411,
1758,
16,
203,
5411,
1758,
16,
203,
5411,
2120,
4464,
12795,
43,
351,
... |
contract GetsBurned {
function () payable {
}
function BurnMe () {
// Selfdestruct and send eth to self,
selfdestruct(address(this));
}
} | Selfdestruct and send eth to self, | function BurnMe () {
selfdestruct(address(this));
}
| 2,477,791 | [
1,
10084,
5489,
8813,
471,
1366,
13750,
358,
365,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
605,
321,
4667,
1832,
288,
203,
3639,
365,
5489,
8813,
12,
2867,
12,
2211,
10019,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/4/0x163F73F63FE61Dc0C52dd1D740a4856E1D414BA4/sources/InitializableAdminUpgradeabilityProxy.sol | * @title InitializableUpgradeabilityProxy @dev Extends BaseUpgradeabilityProxy with an initializer for initializing implementation and init data./ | abstract contract InitializableUpgradeabilityProxy is BaseUpgradeabilityProxy {
function initialize(address _logic, bytes memory _data) public payable {
require(_implementation() == address(0));
assert(IMPLEMENTATION_SLOT == bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1));
_... | 16,971,251 | [
1,
4435,
6934,
10784,
2967,
3886,
225,
6419,
5839,
3360,
10784,
2967,
3886,
598,
392,
12562,
364,
22584,
4471,
471,
1208,
501,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
10188,
6934,
10784,
2967,
3886,
353,
3360,
10784,
2967,
3886,
288,
203,
565,
445,
4046,
12,
2867,
389,
28339,
16,
1731,
3778,
389,
892,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
24899,
30810,
1435,
422,
1758,
12,
20,
... |
./full_match/5/0x7ea997bFe3f2355b28faad05e7a7C5f77180C43a/sources/contracts/Contract.sol | Transfer DAO tokens from the sender to the contract Wrap Ether into WETH Mint LP tokens and assign them to the sender Transfer DAO tokens from the sender to the contract Transfer SHIB tokens from the sender to the contract Mint LP tokens and assign them to the sender | function addLiquidity(uint256 amount) external {
require(amount > 0, "Amount must be greater than zero.");
require(balanceOf[msg.sender] >= amount, "Insufficient balance.");
if (liquidityAllocation == LiquidityAllocation.WETH) {
balanceOf[msg.sender] -= amount;
balan... | 11,594,768 | [
1,
5912,
463,
20463,
2430,
628,
326,
5793,
358,
326,
6835,
4266,
512,
1136,
1368,
678,
1584,
44,
490,
474,
511,
52,
2430,
471,
2683,
2182,
358,
326,
5793,
12279,
463,
20463,
2430,
628,
326,
5793,
358,
326,
6835,
12279,
6122,
13450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
527,
48,
18988,
24237,
12,
11890,
5034,
3844,
13,
3903,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
315,
6275,
1297,
506,
6802,
2353,
3634,
1199,
1769,
203,
3639,
2583,
12,
12296,
951,
63,
3576,
18,
15330,
65,
1545,
... |
./full_match/97/0x822eAc2cc5D10D31907945ab543B7fCB6E877507/sources/project_/contracts/Cairofinance22.sol | address iBnBToken = 0xd7D069493685A581d27824Fc46EdA46B7EfC0063; address iUSDTToken = 0xb5913CD4C508f07025678CeF939BcC54D3024C39; | contract Cairofinance2 is ReentrancyGuard{
using SafeToken for address;
using SafeMath for uint256;
using SafeERC20 for IERC20;
event Transfer(address indexed from, address indexed to, uint256 value);
event DepositMade(address indexed addr, uint256 amount);
event Log(string message, uint25... | 3,293,172 | [
1,
2867,
277,
38,
82,
38,
1345,
273,
374,
7669,
27,
40,
7677,
29,
7616,
5718,
7140,
37,
8204,
21,
72,
5324,
28,
3247,
42,
71,
8749,
2671,
37,
8749,
38,
27,
41,
74,
39,
713,
4449,
31,
1758,
277,
3378,
9081,
1345,
273,
374,
6114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
385,
10658,
303,
926,
1359,
22,
353,
868,
8230,
12514,
16709,
95,
203,
565,
1450,
14060,
1345,
364,
1758,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462... |
./full_match/5/0xed5b1D2f7904254A3d687703b6A336b538b7ddD2/sources/contracts/StakingContract.sol | @title Staking Contract @author Lucas Imrie @notice A Staking Contract used in conjunction with an ERC-20 Stablecoin token and Reward Token, as well as a Governance NFT @dev Enumerable Sets are implemented to manage multiple deposits Using EnumerableSet so multiple deposits is possible using EnumerableSet for Enumerab... | contract StakingContract is Ownable, Pausable {
RewardToken public rewardContract;
StableCoin public audxContract;
pragma solidity ^0.8.4;
struct StakeVault {
uint256 startTime;
uint256 daysLocked;
uint256 lockedAPY;
uint256 depositAmount;
uint256 rewardClaimed;
... | 1,952,266 | [
1,
510,
6159,
13456,
225,
511,
5286,
345,
2221,
566,
73,
225,
432,
934,
6159,
13456,
1399,
316,
20998,
598,
392,
4232,
39,
17,
3462,
934,
429,
12645,
1147,
471,
534,
359,
1060,
3155,
16,
487,
5492,
487,
279,
611,
1643,
82,
1359,
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,
16351,
934,
6159,
8924,
353,
14223,
6914,
16,
21800,
16665,
288,
203,
203,
565,
534,
359,
1060,
1345,
1071,
19890,
8924,
31,
203,
565,
934,
429,
27055,
1071,
20232,
92,
8924,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,... |
// 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 Update state and get TRU from distributor/ pull TRU from distributor only pull if there is distribution and distributor farm is set to this farm if there are stakers | modifier update() {
if (trueDistributor.nextDistribution() > 0 && trueDistributor.farm() == address(this)) {
trueDistributor.distribute();
}
if (totalStaked > 0) {
cumulativeRewardPerToken = cumulativeRewardPerToken.add(totalBlockReward.div(totalStaked));
}
... | 217,499 | [
1,
1891,
919,
471,
336,
4235,
57,
628,
1015,
19293,
19,
6892,
4235,
57,
628,
1015,
19293,
1338,
6892,
309,
1915,
353,
7006,
471,
1015,
19293,
284,
4610,
353,
444,
358,
333,
284,
4610,
309,
1915,
854,
384,
581,
414,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1089,
1435,
288,
203,
3639,
309,
261,
3767,
1669,
19293,
18,
4285,
9003,
1435,
405,
374,
597,
638,
1669,
19293,
18,
74,
4610,
1435,
422,
1758,
12,
2211,
3719,
288,
203,
5411,
638,
1669,
19293,
18,
2251,
887,
5621,
203,... |
./full_match/5/0x7a8855fd32fD1Ea63F0E93c3ed8FF38cC66376E2/sources/project_/contracts/PepeMax.sol | event TaxBpsUpdated(uint _old, uint _new); | contract PepeMax is ERC20, Ownable {
using SafeMath for uint256;
uint256 public saleStartTime;
uint256 public totalTax;
uint256 public numTokensToMint = 420000000000000;
uint constant taxDenominator = 10000;
uint constant maxTax = 10000;
bool public isPaused;
address public taxFundAddres... | 1,919,953 | [
1,
2575,
18240,
38,
1121,
7381,
12,
11890,
389,
1673,
16,
2254,
389,
2704,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
19622,
347,
2747,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
2254,
5034,
1071,
272,
5349,
13649,
31,
203,
565,
2254,
5034,
1071,
2078,
7731,
31,
203,
565,
2254,
... |
pragma solidity ^0.5.0;
// TODO
// only manager ethereum account have access of this contract
import './Zeppelin/ownership/Ownable.sol';
contract UsersManager is Ownable{
struct User{
address account; // user account address
address contractUser; // "User" contract address
bytes32 password; // User password has... | TODO only manager ethereum account have access of this contract | import './Zeppelin/ownership/Ownable.sol';
| 12,816,049 | [
1,
6241,
1338,
3301,
13750,
822,
379,
2236,
1240,
2006,
434,
333,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5666,
12871,
62,
881,
84,
292,
267,
19,
995,
12565,
19,
5460,
429,
18,
18281,
13506,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.24;
contract Sha3 {
function hashArray() constant returns(bytes32) {
bytes8[] memory tickers = new bytes8[](4);
tickers[0] = bytes8('BTC');
tickers[1] = bytes8('ETH');
tickers[2] = bytes8('LTC');
tickers[3] = bytes8('DOGE');
return sha3(tickers);
... | 0x0ef9d8f8804d174666011a394cab7901679a8944d24249fd148a6a36071151f8 | function hashHex() constant returns (bytes32) {
return sha3(0x0a);
}
| 15,848,170 | [
1,
20,
92,
20,
10241,
29,
72,
28,
74,
5482,
3028,
72,
28686,
25308,
1611,
21,
69,
5520,
24,
71,
378,
7235,
24171,
7235,
69,
6675,
6334,
72,
3247,
3247,
29,
8313,
25005,
69,
26,
69,
29751,
27,
2499,
10593,
74,
28,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1651,
7037,
1435,
5381,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
327,
6056,
23,
12,
20,
92,
20,
69,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0xB15c2b8bA695212fBc975034F7F0cB914460990D/sources/ERC20.sol | Check allowance Subtract from the targeted balance Subtract from the sender's allowance Update totalSupply | function burnFrom(address _from, uint256 _value) external returns (bool success) {
balanceOf[_from] = balanceOf[_from].sub(_value);
allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value);
totalSupply = totalSupply.sub(_value);
emit Burn(_from, _value);
return... | 4,215,159 | [
1,
1564,
1699,
1359,
2592,
1575,
628,
326,
20715,
11013,
2592,
1575,
628,
326,
5793,
1807,
1699,
1359,
2315,
2078,
3088,
1283,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
1265,
12,
2867,
389,
2080,
16,
2254,
5034,
389,
1132,
13,
3903,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
11013,
951,
63,
67,
2080,
65,
273,
11013,
951,
63,
67,
2080,
8009,
1717,
24899,
1132,
1769,
203,
3639,
... |
./full_match/4/0x3a71DB6b085d45F7E6eF173eA01065CC01E7bd27/sources/browser/MultiSigWallet.sol | @dev Fallback function allows to deposit ether. | function () payable external {
if (msg.value > 0)
emit EventDeposit(msg.sender, msg.value);
}
| 670,659 | [
1,
12355,
445,
5360,
358,
443,
1724,
225,
2437,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
429,
3903,
288,
203,
3639,
309,
261,
3576,
18,
1132,
405,
374,
13,
203,
3639,
3626,
2587,
758,
1724,
12,
3576,
18,
15330,
16,
1234,
18,
1132,
1769,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
... |
./full_match/5/0xc2B77BD20F3f49efE6D6fB0364140e557073b471/sources/contracts/Presale.sol | Greater thn 10 DAI
| require(IERC20(token).balanceOf(msg.sender) >= payTokenAmount * (10 **decimals),"not Enough Balance"); | 7,052,899 | [
1,
20937,
286,
82,
1728,
463,
18194,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2583,
12,
45,
654,
39,
3462,
12,
2316,
2934,
12296,
951,
12,
3576,
18,
15330,
13,
1545,
8843,
1345,
6275,
380,
261,
2163,
2826,
31734,
3631,
6,
902,
1374,
4966,
30918,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x392384e3327218D6817ff07b76e04D995179037B/sources/contracts/EnegyPlusGirl.sol | before:0, round1:1, round2:2, public:3, after:9 | function GetRoundSection() public view returns (uint) {
if (block.timestamp < rd1StrTime) {
return 0;
return 1;
return 2;
return 3;
}
return 9;
}
| 9,121,620 | [
1,
5771,
30,
20,
16,
3643,
21,
30,
21,
16,
3643,
22,
30,
22,
16,
1071,
30,
23,
16,
1839,
30,
29,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
968,
11066,
5285,
1435,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
309,
261,
2629,
18,
5508,
411,
9437,
21,
1585,
950,
13,
288,
203,
5411,
327,
374,
31,
203,
5411,
327,
404,
31,
203,
5411,
327,
576,
31,
203,
... |
pragma solidity ^0.5.16;
//Slightly modified SafeMath library - includes a min and max function, removes useless div function
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
function add(int256 a... | * @dev Gets the API struct variables that are not mappings @param _requestId to look up @return string of api to query @return string of symbol of api to query @return bytes32 hash of string @return bytes32 of the granularity(decimal places) requested @return uint of index in requestQ array @return uint of current payo... | function getRequestVars(TellorStorage.TellorStorageStruct storage self, uint256 _requestId)
internal
view
returns (string memory, string memory, bytes32, uint256, uint256, uint256)
{
TellorStorage.Request storage _request = self.requestDetails[_requestId];
return (
... | 1,434,165 | [
1,
3002,
326,
1491,
1958,
3152,
716,
854,
486,
7990,
225,
389,
2293,
548,
358,
2324,
731,
327,
533,
434,
1536,
358,
843,
327,
533,
434,
3273,
434,
1536,
358,
843,
327,
1731,
1578,
1651,
434,
533,
327,
1731,
1578,
434,
326,
25380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4328,
5555,
12,
21009,
280,
3245,
18,
21009,
280,
3245,
3823,
2502,
365,
16,
2254,
5034,
389,
2293,
548,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
1080,
3778,
16,
533,
3778,
16,
1731,
1578,
16,
2254,
... |
pragma solidity ^0.4.24;
pragma experimental ABIEncoderV2;
import "openzeppelin-solidity/contracts/token/ERC20/MintableToken.sol";
import "../utils/LibBytes.sol";
/**
* @title ERC1077Token
* @dev Mintable ERC-20 token that implements ERC-1077 functionalities to allow
* signature based function execution. EIP-107... | * @dev return the transaction hash @param _transaction Transaction struct containing the transaction information to hash/ | function getTransactionHash(Transaction _transaction)
public pure returns (bytes32 transactionHash)
{
return keccak256( abi.encode(TRANSACTION_PREFIX, _transaction) );
}
| 12,665,007 | [
1,
2463,
326,
2492,
1651,
225,
389,
7958,
5947,
1958,
4191,
326,
2492,
1779,
358,
1651,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15674,
2310,
12,
3342,
389,
7958,
13,
203,
1377,
1071,
16618,
1135,
261,
3890,
1578,
2492,
2310,
13,
203,
225,
288,
203,
565,
327,
225,
417,
24410,
581,
5034,
12,
24126,
18,
3015,
12,
22364,
67,
6307,
16,
389,
7958,
1... |
./full_match/5/0x1F6857faB7cbc8aB1ae4A1e2F264b82dF7E3FE75/sources/contracts/CaveDinoStaking.sol | @dev Initiliazes the contract, like a constructor. | ) external initializer {
__ReentrancyGuard_init();
__ERC2771Context_init_unchained(_trustedForwarders);
rewardToken = _rewardToken;
__Staking1155_init(_edition);
_setDefaultTimeUnit(_defaultTimeUnit);
_setDefaultRewardsPerUnitTime(_defaultRewardsPerUnitTime);
... | 1,952,134 | [
1,
2570,
330,
1155,
94,
281,
326,
6835,
16,
3007,
279,
3885,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
262,
3903,
12562,
288,
203,
3639,
1001,
426,
8230,
12514,
16709,
67,
2738,
5621,
203,
3639,
1001,
654,
39,
22,
4700,
21,
1042,
67,
2738,
67,
4384,
8707,
24899,
25247,
8514,
414,
1769,
203,
203,
3639,
19890,
1345,
273,
389,
2... |
// SPDX-License-Identifier: MIT
pragma experimental ABIEncoderV2;
pragma solidity ^0.6.12;
import "./Interfaces/LiquidityMathModelInterface.sol";
import "./MToken.sol";
import "./Utils/ErrorReporter.sol";
import "./Utils/ExponentialNoError.sol";
import "./Utils/AssetHelpers.sol";
import "./Moartroller.sol";
import "./... | * @dev Recover signer information from provided digest @param _digest signed, hashed message @param _ecv ECDSA v parameter @param _ecr ECDSA r parameter @param _ecs ECDSA s parameter @return address of the validated signer based on openzeppelin/contracts/cryptography/ECDSA.sol recover() function/ EIP-2 still allows sig... | function _recoverSigner(bytes32 _digest, uint8 _ecv, bytes32 _ecr, bytes32 _ecs) internal pure returns (address) {
if(uint256(_ecs) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
revert("ECDSA: invalid signature 's' value");
}
if(_ecv != 27 && _ecv != 28) {
... | 11,818,620 | [
1,
27622,
10363,
1779,
628,
2112,
5403,
225,
389,
10171,
6726,
16,
14242,
883,
225,
389,
557,
90,
7773,
19748,
331,
1569,
225,
389,
557,
86,
7773,
19748,
436,
1569,
225,
389,
557,
87,
7773,
19748,
272,
1569,
327,
1758,
434,
326,
102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
266,
3165,
15647,
12,
3890,
1578,
389,
10171,
16,
2254,
28,
389,
557,
90,
16,
1731,
1578,
389,
557,
86,
16,
1731,
1578,
389,
557,
87,
13,
2713,
16618,
1135,
261,
2867,
13,
288,
203,
1377,
309,
12,
11890,
5034,
... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.4;
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import {
AdministrateeInterface
} from '@uma/core/contracts/oracle/interfaces/AdministrateeInterface.sol';
import {
StoreInterface
} from '@uma/core/contracts/oracle/interfaces/S... | * @notice Pays UMA Oracle final fees of `amount` in `collateralCurrency` to the Store contract. Final fee is a flat fee @param payer The address that pays the fees @param amount Amount of fees to be paid/ | function payFinalFees(address payer, FixedPoint.Unsigned memory amount)
external
onlyThisContract
{
_payFinalFees(payer, amount);
}
| 908,758 | [
1,
26744,
587,
5535,
28544,
727,
1656,
281,
434,
1375,
8949,
68,
316,
1375,
12910,
2045,
287,
7623,
68,
358,
326,
4994,
6835,
18,
16269,
14036,
353,
279,
3569,
14036,
225,
293,
1773,
1021,
1758,
716,
293,
8271,
326,
1656,
281,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
8843,
7951,
2954,
281,
12,
2867,
293,
1773,
16,
15038,
2148,
18,
13290,
3778,
3844,
13,
203,
565,
3903,
203,
565,
1338,
2503,
8924,
203,
225,
288,
203,
565,
389,
10239,
7951,
2954,
281,
12,
84,
1773,
16,
3844,
1769,
2... |
./full_match/1/0x3Bd85DF9633eF0205206BB519E4dDee152Bb0005/sources/contracts/token/RewardsDistributor.sol | Checkpoints to keep track on the evolution of each contributor vs. each garden Sub-mapping of contributor details, updated info after beta will be only at position [0] | struct ContributorPerGarden {
mapping(uint256 => TimestampContribution) tsContributions;
}
| 3,050,039 | [
1,
1564,
4139,
358,
3455,
3298,
603,
326,
2113,
5889,
434,
1517,
31123,
6195,
18,
1517,
314,
24466,
2592,
17,
6770,
434,
31123,
3189,
16,
3526,
1123,
1839,
6796,
903,
506,
1338,
622,
1754,
306,
20,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
735,
19293,
2173,
43,
24466,
288,
203,
3639,
2874,
12,
11890,
5034,
516,
8159,
442,
4027,
13,
3742,
442,
15326,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/42/0x80D2fD69467dfAB82e09D26860D5FD81CB65075E/sources/Bank.sol | TODO: Add state here | contract Bank {
IERC20 usdx = IERC20(0x21d921De3BCE98D05455Fe932f060Fa6988Bb982);
mapping (address => uint256) public _balance;
constructor() public {}
function deposit(uint amount) public {
usdx.transferFrom(msg.sender, address(this), amount);
_balance[msg.sender] += amou... | 9,574,527 | [
1,
6241,
30,
1436,
919,
2674,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
25610,
288,
203,
565,
467,
654,
39,
3462,
584,
13437,
273,
467,
654,
39,
3462,
12,
20,
92,
5340,
72,
29,
5340,
758,
23,
38,
1441,
10689,
40,
6260,
24,
2539,
2954,
29,
1578,
74,
20,
4848,
29634,
8148,
5482,
38,
70,
1068... |
./full_match/80001/0x809420EEE145CE61be213Bd4AE40885cE8b11E8e/sources/solady/src/utils/LibString.sol | ´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ CUSTOM ERRORS */.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ @dev The `length` of the output is too small to contain all the hex digits.´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.... | function toString(uint256 value) internal pure returns (string memory str) {
assembly {
str := add(mload(0x40), 0x80)
mstore(0x40, add(str, 0x20))
mstore(str, 0)
let end := str
mstore8(str, add(48, mod(temp, 10)))
temp := div(... | 840,037 | [
1,
131,
117,
30,
131,
113,
163,
227,
100,
18,
131,
113,
15,
18,
163,
227,
100,
131,
117,
29710,
140,
253,
18,
131,
113,
18,
140,
253,
163,
227,
100,
131,
117,
18,
131,
113,
30,
131,
113,
163,
227,
100,
18,
131,
113,
163,
227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1762,
12,
11890,
5034,
460,
13,
2713,
16618,
1135,
261,
1080,
3778,
609,
13,
288,
203,
3639,
19931,
288,
203,
5411,
609,
519,
527,
12,
81,
945,
12,
20,
92,
7132,
3631,
374,
92,
3672,
13,
203,
5411,
312,
2233,
12,
20... |
./full_match/137/0x216B371081DDB9a7047C46a63e86647Abdf0D04E/sources/contract/Canbeat-Staking/Canbeat-Staking.sol | Fee Definition Initialize this contract's state. | constructor(address _defaultAdmin, uint256 _stakingsection, DropERC1155 _NodeNFTToken, TokenERC20 _RewardToken, address _DaoAddress, uint256 _rewardPerMin, uint256 _alreadyClaimed) {
StakingSection = _stakingsection;
IStakingSection = _stakingsection - 1;
NodeNftCollection = _NodeNF... | 3,739,842 | [
1,
14667,
10849,
9190,
333,
6835,
1807,
919,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2867,
389,
1886,
4446,
16,
2254,
5034,
389,
334,
6159,
3464,
16,
10895,
654,
39,
2499,
2539,
389,
907,
50,
4464,
1345,
16,
3155,
654,
39,
3462,
389,
17631,
1060,
1345,
16,
1758,
389,
11412,
1887,
16,
2254,
5034,
... |
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* ... | @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE TO CONFIRM THAT `_to` IS CAPABLE OF RECEIVING NFTS OR ELSE THEY MAY BE PERMANENTLY LOST @dev Throws unless `_msgSender()` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is ... | function transferFrom(address _from, address _to, uint256 _tokenId) override external {
_transferFrom(_from, _to, _tokenId);
emit Transfer(_from, _to, _tokenId);
}
| 105,842 | [
1,
5912,
23178,
434,
392,
423,
4464,
1493,
12786,
22753,
654,
4437,
2438,
10789,
16645,
540,
8493,
3492,
31324,
7662,
789,
1375,
67,
869,
68,
4437,
29720,
2782,
15932,
2438,
1441,
8188,
1360,
423,
4464,
55,
4869,
14801,
1090,
540,
7662,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
2316,
548,
13,
3849,
3903,
288,
203,
3639,
389,
13866,
1265,
24899,
2080,
16,
389,
869,
16,
389,
2316,
548,
1769,
203,
203,
3639,
3626,
12279,
... |
./partial_match/1/0x8C2f976b1f6F5f2867a8B560BdbF244C5e263Ca6/sources/src/interfaces/seaport/ISeaport.sol | * @notice Retrieve the current counter for a given offerer. @param offerer The offerer in question. @return counter The current counter./* @notice Retrieve the status of a given order by hash, including whether the order has been cancelled or validated and the fraction of the order that has been filled.... | function getCounter(address offerer) external view returns (uint256 counter);
function getOrderStatus(
bytes32 orderHash
)
external
view
returns (bool isValidated, bool isCancelled, uint256 totalFilled, uint256 totalSize);
function getOrderHash(OrderComponents calldata ... | 16,025,995 | [
1,
5767,
326,
783,
3895,
364,
279,
864,
10067,
264,
18,
225,
10067,
264,
1021,
10067,
264,
316,
5073,
18,
327,
3895,
1021,
783,
3895,
18,
19,
225,
10708,
326,
1267,
434,
279,
864,
1353,
635,
1651,
16,
6508,
2856,
540,
326,
1353,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31107,
12,
2867,
10067,
264,
13,
3903,
1476,
1135,
261,
11890,
5034,
3895,
1769,
203,
203,
565,
445,
11973,
1482,
12,
203,
3639,
1731,
1578,
1353,
2310,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
... |
./full_match/1/0xD62A80368AdF5919f70193D15dCbD5C77EAf55ac/sources/src/Vault.sol | @notice Set the issuance module for the vault @param _issuance The issuance module address @dev only owner | function setIssuance(address _issuance) external only(owner()) {
issuance = _issuance;
emit VaultIssuanceSet(_issuance);
}
| 3,028,562 | [
1,
694,
326,
3385,
89,
1359,
1605,
364,
326,
9229,
225,
389,
1054,
89,
1359,
1021,
3385,
89,
1359,
1605,
1758,
225,
1338,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
7568,
89,
1359,
12,
2867,
389,
1054,
89,
1359,
13,
3903,
1338,
12,
8443,
10756,
288,
203,
3639,
3385,
89,
1359,
273,
389,
1054,
89,
1359,
31,
203,
3639,
3626,
17329,
7568,
89,
1359,
694,
24899,
1054,
89,
1359,
17... |
./full_match/80001/0x2aaC69aCac4b14df223871b4707baaF71613a799/sources/project_/contracts/util/Util.sol | * Converts the given USD amount to MATIC using the current price from Chainlink @param usdAmount amount of USD to convert @param usdDecimals decimals of USD amount @param priceFeed Feed of price convert/ Round up the last two decimals | function convertUSDtoMATIC(uint256 usdAmount, uint8 usdDecimals, AggregatorV3Interface priceFeed) public view returns (uint256) {
(, int rate, , ,) = priceFeed.latestRoundData();
uint8 rateDecimals = priceFeed.decimals();
require(rate > 0, "Price feed error");
uint256 scaleFactor =... | 9,471,300 | [
1,
5692,
326,
864,
587,
9903,
3844,
358,
490,
11781,
1450,
326,
783,
6205,
628,
7824,
1232,
225,
584,
72,
6275,
3844,
434,
587,
9903,
358,
1765,
225,
584,
72,
31809,
15105,
434,
587,
9903,
3844,
225,
6205,
8141,
14013,
434,
6205,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1765,
3378,
15389,
49,
11781,
12,
11890,
5034,
584,
72,
6275,
16,
2254,
28,
584,
72,
31809,
16,
10594,
639,
58,
23,
1358,
6205,
8141,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
261,
16,
509,
4993,
16,... |