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 |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./IRewardLocker.sol";
// Mas... | View function to see pending OASIS on frontend. | function pendingOasis(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accOasisPerShare = pool.accOasisPerShare;
if (block.number > pool.lastRewardBlock && pool.totalDeposited... | 6,488,720 | [
1,
1767,
445,
358,
2621,
4634,
531,
37,
15664,
603,
15442,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4634,
51,
17247,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,... |
pragma solidity ^0.4.23;
// @title iNovaStaking
// @dev The interface for cross-contract calls to the Nova Staking contract
// @author Dragon Foundry (https://www.nvt.gg)
// (c) 2018 Dragon Foundry LLC. All Rights Reserved. This code is not open source.
contract iNovaStaking {
function balanceOf(address _owner... | @dev Adds an address as an admin for a game @notice Can only be called by an admin of the game @notice Operator privileges are managed on the layer 2 network @param _game - the gameId of the game @param _account - the address of the user to @param _isOperator - "true" to grant operator privileges, "false" to remove th... | function setOperatorPrivileges(uint _game, address _account, bool _isOperator)
external
onlyGameAdmin(_game)
{
emit OperatorPrivilegesChanged(_game, _account, _isOperator);
}
| 7,873,505 | [
1,
3655,
392,
1758,
487,
392,
3981,
364,
279,
7920,
225,
4480,
1338,
506,
2566,
635,
392,
3981,
434,
326,
7920,
225,
11097,
19583,
854,
7016,
603,
326,
3018,
576,
2483,
225,
389,
13957,
300,
326,
7920,
548,
434,
326,
7920,
225,
389,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
444,
5592,
27692,
12,
11890,
389,
13957,
16,
1758,
389,
4631,
16,
1426,
389,
291,
5592,
13,
203,
565,
3903,
203,
565,
1338,
12496,
4446,
24899,
13957,
13,
203,
225,
288,
203,
565,
3626,
11097,
27692,
5033,
24899,
13957,
... |
pragma solidity ^0.4.21;
/*
Red Street presents........
██████╗ ███████╗██████╗ ███████╗████████╗██████╗ ███████╗███████╗████████╗ ██████╗ ██████╗ ███╗ ██╗██████╗ ███████╗
██╔══██╗██╔════╝██╔══██╗ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔════╝╚══██╔══╝ ██╔══██╗██╔═══██╗████╗ ██║██╔══██╗██╔════╝
██████╔╝█... | * Transfer bond to another address/ | function transfer(address _to, uint _bond )
public
{
require(bondOwner[_bond] == msg.sender);
bondOwner[_bond] = _to;
emit Transfer(msg.sender, _to, _bond);
}
| 12,653,516 | [
1,
5912,
8427,
358,
4042,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7412,
12,
2867,
389,
869,
16,
2254,
389,
26425,
262,
203,
3639,
203,
3639,
1071,
203,
565,
288,
203,
3639,
2583,
12,
26425,
5541,
63,
67,
26425,
65,
422,
1234,
18,
15330,
1769,
203,
203,
3639,
8427,
5541,
63,
67,
2642... |
//Address: 0x2Fb3C22230c39496eDc13c16d09F34368346Ac1D
//Contract name: ISmartCert
//Balance: 0 Ether
//Verification Date: 3/6/2018
//Transacion Count: 54
// CODE STARTS HERE
pragma solidity ^0.4.17;
contract ISmartCert {
// state variables
mapping (bytes32 => SignedData) hashes;
mapping (address => AccessStruct)... | indicate the record exists | hashes[certHash].exists = true;
| 5,429,541 | [
1,
728,
2659,
326,
1409,
1704,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
202,
17612,
63,
7593,
2310,
8009,
1808,
273,
638,
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,
-1... |
./partial_match/1/0x6777a6446a4D70C75D6494F2f4F9B8aED12ce6a4/sources/NINA20.sol | (_totalSupply * 10) / 1000 [this equals 1%]
| uint256 public _maxTxAmount = (_totalSupply * 150) / 1000; | 3,882,881 | [
1,
24899,
4963,
3088,
1283,
225,
1728,
13,
342,
4336,
306,
2211,
1606,
404,
9,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
389,
1896,
4188,
6275,
273,
261,
67,
4963,
3088,
1283,
380,
18478,
13,
342,
4336,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.21;
/*
Nectar Community Governance Proposals Contract, deployed 18/03/18
*/
/*
Copyright 2016, Jordi Baylina
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, ei... | @dev The actual token contract, the default controller is the msg.sender that deploys the contract, so usually this token will be deployed by a token controller contract, which Giveth will call a "Campaign" | contract MiniMeToken is Controlled {
struct Checkpoint {
uint128 fromBlock;
uint128 value;
}
MiniMeToken public parentToken;
uint public parentSnapShotBlock;
uint public creationBlock;
mapping (address => Checkpoint[]) balances;
mapping (address => mapping (add... | 344,142 | [
1,
1986,
3214,
1147,
6835,
16,
326,
805,
2596,
353,
326,
1234,
18,
15330,
225,
716,
5993,
383,
1900,
326,
6835,
16,
1427,
11234,
333,
1147,
903,
506,
19357,
635,
279,
225,
1147,
2596,
6835,
16,
1492,
611,
427,
546,
903,
745,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27987,
4667,
1345,
353,
8888,
1259,
288,
203,
203,
203,
203,
565,
1958,
225,
25569,
288,
203,
203,
3639,
2254,
10392,
628,
1768,
31,
203,
203,
3639,
2254,
10392,
460,
31,
203,
565,
289,
203,
203,
203,
203,
203,
203,
203,
... |
./full_match/80001/0xF7Ac1a39e13A97757a0989e142627f24C06aE39D/sources/contracts/lib/GenesisUtils.sol | * @dev reverse/ swap bytes swap 2-byte long pairs swap 4-byte long pairs swap 8-byte long pairs swap 16-byte long pairs | function reverse(uint256 input) internal pure returns (uint256 v) {
v = input;
v =
((v &
0xFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00) >>
8) |
((v &
0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00... | 5,634,628 | [
1,
9845,
19,
7720,
1731,
7720,
576,
17,
7229,
1525,
5574,
7720,
1059,
17,
7229,
1525,
5574,
7720,
1725,
17,
7229,
1525,
5574,
7720,
2872,
17,
7229,
1525,
5574,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4219,
12,
11890,
5034,
810,
13,
2713,
16618,
1135,
261,
11890,
5034,
331,
13,
288,
203,
3639,
331,
273,
810,
31,
203,
203,
3639,
331,
273,
203,
5411,
14015,
90,
473,
203,
7734,
374,
6356,
713,
2246,
713,
2246,
713,
22... |
/*
This is a very simple demonstration of a while loops. Same as JS/c.
*/
pragma solidity^0.4.17;
contract BasicIterator {
address creator; // reserve one "address"-type spot
uint8[10] integers; // reserve a chunk of storage for 10 8-bit unsigned integers in an array
funct... | reserve a chunk of storage for 10 8-bit unsigned integers in an array
| uint8[10] integers; | 1,014,046 | [
1,
455,
6527,
279,
2441,
434,
2502,
364,
1728,
1725,
17,
3682,
9088,
12321,
316,
392,
526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
28,
63,
2163,
65,
12321,
31,
7734,
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,
-1... |
/*
#########################################################################################################
# #
# ╓φ@▒▒▒▒@╗µ, ... | * @dev setAdminSigner updates the adminSigner address. Emits a {Unpaused} event. Requirements: - Only the owner can call this function/ | function setAdminSigner(address _newAdminSigner) public onlyOwner() returns(address) {
_adminSigner = _newAdminSigner;
emit updateAdminSigner(_newAdminSigner, msg.sender);
return _adminSigner;
}
| 14,566,058 | [
1,
542,
4446,
15647,
4533,
326,
3981,
15647,
1758,
18,
7377,
1282,
279,
288,
984,
8774,
3668,
97,
871,
18,
29076,
30,
300,
5098,
326,
3410,
848,
745,
333,
445,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
4446,
15647,
12,
2867,
389,
2704,
4446,
15647,
13,
1071,
1338,
5541,
1435,
1135,
12,
2867,
13,
288,
203,
3639,
389,
3666,
15647,
273,
389,
2704,
4446,
15647,
31,
203,
3639,
3626,
1089,
4446,
15647,
24899,
2704,
4446,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20... | @notice ... @param _stakeID Id of the stake pool @param _rewardID Id of the reward @param _rewardPerSecond New staking reward per second | function updateRewardPerSecond(uint _stakeID, uint _rewardID, uint256 _rewardPerSecond) public onlyOwner returns(bool){
RewardDef storage reward = poolRewardList[_stakeID][_rewardID];
require(reward.rewardPerSecond != _rewardPerSecond, "Reward per Second no change! Because it is same.");
rew... | 13,084,412 | [
1,
2777,
282,
389,
334,
911,
734,
5411,
3124,
434,
326,
384,
911,
2845,
282,
389,
266,
2913,
734,
6647,
3124,
434,
326,
19890,
282,
389,
266,
2913,
2173,
8211,
565,
1166,
384,
6159,
19890,
1534,
2205,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
17631,
1060,
2173,
8211,
12,
11890,
389,
334,
911,
734,
16,
2254,
389,
266,
2913,
734,
16,
2254,
5034,
389,
266,
2913,
2173,
8211,
13,
1071,
1338,
5541,
1135,
12,
6430,
15329,
203,
3639,
534,
359,
1060,
3262,
2502... |
/**
*Submitted for verification at Etherscan.io on 2021-07-04
*/
//"SPDX-License-Identifier: UNLICENSED"
pragma solidity ^0.6.6;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Req... | @dev withdraw unwrapped liquidity by user if released. ------------------------------------------------------- @param _lpAmount --> takes the amount of user's lp token to be withdrawn. ------------------------------------------------------------------------- returns whether successfully withdrawn or not./ | function withdrawLiquidity(uint _lpAmount) external returns(bool) {
require(!getUserMigration(msg.sender), "must not be migrated already");
uint liquidity = _users[msg.sender].liquidity;
require(_lpAmount > 0 && _lpAmount <= liquidity, "do not have any liquidity");
... | 15,349,038 | [
1,
1918,
9446,
26917,
4501,
372,
24237,
635,
729,
309,
15976,
18,
13420,
13093,
225,
389,
9953,
6275,
15431,
5530,
326,
3844,
434,
729,
1807,
12423,
1147,
358,
506,
598,
9446,
82,
18,
8879,
788,
1135,
2856,
4985,
598,
9446,
82,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
48,
18988,
24237,
12,
11890,
389,
9953,
6275,
13,
3903,
1135,
12,
6430,
13,
288,
203,
540,
203,
3639,
2583,
12,
5,
588,
1299,
10224,
12,
3576,
18,
15330,
3631,
315,
11926,
486,
506,
24741,
1818,
8863,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external vi... | Tool for traders to verify ban status
| function checkIfBanned(address _address) external view returns (bool) { | 6,841,410 | [
1,
6364,
364,
1284,
6794,
358,
3929,
25732,
1267,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19130,
38,
10041,
12,
2867,
389,
2867,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42220/0x553a2a1B70725C1042A0D76e16f4f5a683648dEB/sources/src/interfaces/IWormhole.sol | @notice Guardian signature with signer index. @dev The fields are as follows: - r - Signature r value. - s - Signature s value. - v - Signature v value. - guardianIndex - Index of the signer in the guardian set. | struct Signature {
bytes32 r;
bytes32 s;
uint8 v;
uint8 guardianIndex;
}
| 3,497,985 | [
1,
16709,
2779,
3372,
598,
10363,
770,
18,
225,
1021,
1466,
854,
487,
13040,
30,
1377,
300,
436,
300,
9249,
436,
460,
18,
1377,
300,
272,
300,
9249,
272,
460,
18,
1377,
300,
331,
300,
9249,
331,
460,
18,
1377,
300,
11026,
2779,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
9249,
288,
203,
3639,
1731,
1578,
436,
31,
203,
3639,
1731,
1578,
272,
31,
203,
3639,
2254,
28,
331,
31,
203,
3639,
2254,
28,
11026,
2779,
1016,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/97/0x81e206F92d237Dc849353F6E15513b8D88ea451B/sources/project_/contracts/Escrow.sol | BNB mainnet: 0x45f86CA2A8BC9EBD757225B19a1A0D7051bE46Db BNB testnet: 0x2514895c72f50D8bd4B4F9b1110F0D6bD2c97526 | {
priceFeedAddress = 0x2514895c72f50D8bd4B4F9b1110F0D6bD2c97526;
priceFeed = AggregatorV3Interface(priceFeedAddress);
owner = msg.sender;
}
| 3,286,945 | [
1,
15388,
38,
2774,
2758,
30,
374,
92,
7950,
74,
5292,
3587,
22,
37,
28,
16283,
29,
41,
18096,
5877,
9060,
2947,
38,
3657,
69,
21,
37,
20,
40,
27,
6260,
21,
70,
41,
8749,
4331,
605,
20626,
1842,
2758,
30,
374,
92,
2947,
3461,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6205,
8141,
1887,
273,
374,
92,
2947,
3461,
6675,
25,
71,
9060,
74,
3361,
40,
28,
16410,
24,
38,
24,
42,
29,
70,
2499,
2163,
42,
20,
40,
26,
70,
40,
22,
71,
29,
5877,
5558,
31,
203,
3639,
6205,
8141,
... |
pragma solidity >=0.5.16;
// SPDX-License-Identifier: MIT
import "../node_modules/@openzeppelin/contracts/utils/math/SafeMath.sol";
/************************************************** */
/* no1s1 App Smart Contract */
/************************************************** */
contract no1s1App {... | * @dev function for backend to trigger storing the current state of no1s1 (daily) Pass address of function caller to data contract to enable role modifier/ | function no1s1InfoLog(uint256 _Time) external requireBackend
{
no1s1Data.no1s1InfoLog(_Time);
}
| 12,788,231 | [
1,
915,
364,
4221,
358,
3080,
15729,
326,
783,
919,
434,
1158,
21,
87,
21,
261,
26790,
13,
10311,
1758,
434,
445,
4894,
358,
501,
6835,
358,
4237,
2478,
9606,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1158,
21,
87,
21,
966,
1343,
12,
11890,
5034,
389,
950,
13,
3903,
2583,
7172,
203,
565,
288,
203,
3639,
1158,
21,
87,
21,
751,
18,
2135,
21,
87,
21,
966,
1343,
24899,
950,
1769,
203,
565,
289,
203,
203,
2,
-100,
-... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.4;
import "./NiftyswapExchange20.sol";
import "../utils/Ownable.sol";
import "../interfaces/INiftyswapFactory20.sol";
import "../interfaces/IDelegatedERC1155Metadata.sol";
contract NiftyswapFactory20 is INiftyswapFactory20, Ownable, IDelegatedERC1155Metadata... | NiftyswapExchange20#onERC1155BatchReceived: INVALID_TOKENS_TRANSFERRED
| require(msg.sender == address(token), "NE20#22"); | 13,573,825 | [
1,
50,
2136,
1900,
91,
438,
11688,
3462,
265,
654,
39,
2499,
2539,
4497,
8872,
30,
10071,
67,
8412,
55,
67,
16596,
17356,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
2583,
12,
3576,
18,
15330,
422,
1758,
12,
2316,
3631,
315,
5407,
3462,
7,
3787,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.16;
import {Ownable} from "../lib/Ownable.sol";
import {ISyntheticToken} from "../token/ISyntheticToken.sol";
import {IERC20} from "../token/IERC20.sol";
contract SynthRegistry is Ownable {
struct Synth {
bytes32 symbolKey;
address proxyAddre... | Save the address we're removing for emitting the event at the end. Remove the synth from the availableSynths array. Copy the last synth into the place of the one we just deleted If there's only one synth, this is synths[0] = synths[0]. If we're deleting the last one, it's also a NOOP in the same way. Decrease the size... | function removeSynth(
bytes32 symbolKey
)
external
onlyOwner
{
require(
address(synths[symbolKey]) != address(0),
"Synth does not exist"
);
require(
IERC20(address(synths[symbolKey])).totalSupply() == 0,
"Synth ... | 908,059 | [
1,
4755,
326,
1758,
732,
4565,
9427,
364,
3626,
1787,
326,
871,
622,
326,
679,
18,
3581,
326,
6194,
451,
628,
326,
2319,
10503,
451,
87,
526,
18,
5631,
326,
1142,
6194,
451,
1368,
326,
3166,
434,
326,
1245,
732,
2537,
4282,
971,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1206,
10503,
451,
12,
203,
3639,
1731,
1578,
3273,
653,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
1758,
12,
11982,
451,
87,
63,
7175,
653,
5717,
480,
1758,
1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;
import {IERC721} from "./../interfaces/IERC721.sol";
import {IERC721BatchTransfer} from "./../interfaces/IERC721BatchTransfer.sol";
import {IERC721Mintable} from "./../interfaces/IERC721Mintable.sol";
import {IERC721Deliverable} from "./../interfaces/IERC721Deliv... | @notice Safely mints a token once. @dev Note: This function implements {ERC721Mintable-safeMint(address,uint256,bytes)}. @dev Note: Either `safeMint` or `safeMintOnce` should be used in a given contract, but not both. @dev Reverts if `to` is the zero address. @dev Reverts if `tokenId` already exists. @dev Reverts if `... | function safeMintOnce(
Layout storage s,
address sender,
address to,
uint256 tokenId,
bytes memory data
) internal {
s.mintOnce(to, tokenId);
if (to.isContract()) {
_callOnERC721Received(sender, address(0), to, tokenId, data);
}
}
| 15,845,413 | [
1,
26946,
2357,
312,
28142,
279,
1147,
3647,
18,
225,
3609,
30,
1220,
445,
4792,
288,
654,
39,
27,
5340,
49,
474,
429,
17,
4626,
49,
474,
12,
2867,
16,
11890,
5034,
16,
3890,
13,
5496,
225,
3609,
30,
14635,
1375,
4626,
49,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4183,
49,
474,
12212,
12,
203,
3639,
9995,
2502,
272,
16,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
2713,
288,
203,
3639,
272... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "../interfaces/IPancakeMasterChef.sol";
import "./AbstractStakeRedeemConnector.sol";
/**
* Compatible with:
* - Pancake: https://bscscan.com/address/0x73feaa1ee314f8c655e354234017be2193c9e24e
* To get pending rewards ... | * Compatible with: To get pending rewards use IPancakeStaking(0x73feaa1ee314f8c655e354234017be2193c9e24e).pendingCake(0, piToken)./ | contract PancakeMasterChefIndexConnector is AbstractStakeRedeemConnector {
uint256 internal constant PANCAKE_POOL_ID = 0;
constructor(
address _staking,
address _underlying,
address _piToken
function getPendingRewards() external view returns (uint256 amount) {
return IPancakeMasterChef(STAKING... | 5,476,506 | [
1,
14599,
598,
30,
2974,
336,
4634,
283,
6397,
999,
2971,
19292,
911,
510,
6159,
12,
20,
92,
9036,
3030,
7598,
21,
1340,
23,
3461,
74,
28,
71,
26,
2539,
73,
4763,
24,
17959,
1611,
27,
2196,
22,
3657,
23,
71,
29,
73,
3247,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
12913,
23780,
7786,
39,
580,
74,
1016,
7487,
353,
4115,
510,
911,
426,
24903,
7487,
288,
203,
225,
2254,
5034,
2713,
5381,
453,
1258,
3587,
6859,
67,
20339,
67,
734,
273,
374,
31,
203,
203,
225,
3885,
12,
203,
565,
1758,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts-upgradeable/introspection/IERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol";
import "@open... | Transfer NFT to buyer | IERC1155Upgradeable(_nftAddress).safeTransferFrom(_owner, _msgSender(), _tokenId, 1, bytes(""));
| 14,624,448 | [
1,
5912,
423,
4464,
358,
27037,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
654,
39,
2499,
2539,
10784,
429,
24899,
82,
1222,
1887,
2934,
4626,
5912,
1265,
24899,
8443,
16,
389,
3576,
12021,
9334,
389,
2316,
548,
16,
404,
16,
1731,
2932,
7923,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x759f001b3fDe502537901a1e85E8e01333657864/sources/test.sol | * @notice Update beneficiary to `_beneficiary` @param _beneficiary The address of the new beneficiary [to whom fees are to be sent]/ | function updateBeneficiary(address _beneficiary) external onlyOwner {
require(_beneficiaryIsValid(_beneficiary), "Invalid Beneficiary Address");
_updateBeneficiary(_beneficiary);
}
| 9,475,123 | [
1,
1891,
27641,
74,
14463,
814,
358,
1375,
67,
70,
4009,
74,
14463,
814,
68,
225,
389,
70,
4009,
74,
14463,
814,
1021,
1758,
434,
326,
394,
27641,
74,
14463,
814,
306,
869,
600,
362,
1656,
281,
854,
358,
506,
3271,
18537,
2,
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,
1089,
38,
4009,
74,
14463,
814,
12,
2867,
389,
70,
4009,
74,
14463,
814,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
70,
4009,
74,
14463,
814,
20536,
24899,
70,
4009,
74,
14463,
814,
3631,
315,
1941,
605,
4009,
... |
./partial_match/100/0x21cd73a7f09032689F833624e2840CBB958d9181/sources/RandomAuRa.sol | @dev Checks whether the current validators at the end of each collection round revealed their numbers, and removes malicious validators if needed. This function does nothing if the current block is not the last block of the current collection round. Can only be called by the `BlockRewardAuRa` contract (by its `reward`... | function onFinishCollectRound() external onlyBlockReward {
if (_getCurrentBlockNumber() % collectRoundLength != 0) return;
address[] memory validators;
address validator;
uint256 i;
address stakingContract = validatorSetContract.stakingContract();
uint256 stakingE... | 16,647,053 | [
1,
4081,
2856,
326,
783,
11632,
622,
326,
679,
434,
1517,
1849,
3643,
283,
537,
18931,
3675,
5600,
16,
471,
7157,
27431,
28728,
11632,
309,
3577,
18,
1220,
445,
1552,
5083,
309,
326,
783,
1203,
353,
486,
326,
1142,
1203,
434,
326,
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,
603,
11641,
10808,
11066,
1435,
3903,
1338,
1768,
17631,
1060,
288,
203,
3639,
309,
261,
67,
588,
3935,
1768,
1854,
1435,
738,
3274,
11066,
1782,
480,
374,
13,
327,
31,
203,
203,
203,
3639,
1758,
8526,
3778,
11632,
31,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-15
*/
pragma solidity ^0.5.0;
/**
* @title Roles
* @dev Library for managing addresses assigned to a Role.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev Give an account access to this role.
*/
function add(Role... | * @title PausableCrowdsale @dev Extension of Crowdsale contract where purchases can be paused and unpaused by the pauser role./ | contract PausableCrowdsale is Crowdsale, Pausable {
function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal view whenNotPaused {
return super._preValidatePurchase(_beneficiary, _weiAmount);
}
}
| 10,977,061 | [
1,
16507,
16665,
39,
492,
2377,
5349,
225,
10021,
434,
385,
492,
2377,
5349,
6835,
1625,
5405,
343,
3304,
848,
506,
17781,
471,
640,
8774,
3668,
635,
326,
6790,
1355,
2478,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
39,
492,
2377,
5349,
353,
385,
492,
2377,
5349,
16,
21800,
16665,
288,
203,
203,
202,
915,
389,
1484,
4270,
23164,
12,
2867,
389,
70,
4009,
74,
14463,
814,
16,
2254,
5034,
389,
1814,
77,
6275,
13,
2713,
1476,... |
pragma solidity ^0.4.13;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) intern... | * @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 = true;
modifier whenNotPaused() {
require(!paused);
_;
}
modifier whenPaused {
require(paused);
_;
}
function pause() onlyOwner whenNotPaused returns (bool) {
paused = true;
Pause();
return... | 2,096,948 | [
1,
16507,
16665,
225,
3360,
6835,
1492,
5360,
2325,
358,
2348,
392,
801,
24530,
2132,
12860,
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,
... | [
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,
16351,
21800,
16665,
353,
14223,
6914,
288,
203,
225,
871,
31357,
5621,
203,
225,
871,
1351,
19476,
5621,
203,
203,
225,
1426,
1071,
17781,
273,
638,
31,
203,
203,
225,
9606,
1347,
1248,
28590,
1435,
288,
203,
565,
2583,
12,
5,
8... |
/**
*Submitted for verification at Etherscan.io on 2019-08-09
*/
pragma solidity ^0.5.8;
/**
* @title ERC20 compatible token interface
*
* - Implements ERC 20 Token standard
* - Implements short address attack fix
*
* #created 29/09/2017
* #author Frank Bonnet
*/
contract IToken {
/**
* Get the t... | * @title Transferable ownership Enhances ownership by allowing the current owner to transfer ownership to a new owner #created 01/10/2017 #author Frank Bonnet/ | contract TransferableOwnership is ITransferableOwnership, Ownership {
}
function transferOwnership(address _newOwner) public only_owner {
owner = _newOwner;
}
}
| 996,995 | [
1,
5912,
429,
23178,
1374,
76,
6872,
23178,
635,
15632,
326,
783,
3410,
358,
7412,
23178,
358,
279,
394,
3410,
2522,
8743,
19,
2163,
19,
31197,
2869,
478,
11500,
605,
265,
2758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
12279,
429,
5460,
12565,
353,
467,
5912,
429,
5460,
12565,
16,
14223,
9646,
5310,
288,
203,
203,
203,
97,
203,
565,
445,
7412,
5460,
12565,
12,
2867,
389,
2704,
5541,
13,
1071,
1338,
67,
8443,
288,
203,
3639,
3410,
273,
38... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
interface IERC20 {
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
function approve(address spender, uint256 amount) external returns (bool);
function balanceOf(address ... | transfer usdc in buy float transfer float out transfer leftover usdc | function executeAndBuy(
address floatAddress,
address usdcTokenAddress,
uint256 usdcTokenAmount,
address dexAddress,
bytes memory dexData,
address auctionHouse,
uint256 wethInMax,
uint256 bankInMax,
uint256 floatOutMin,
uint256 deadline... | 5,838,860 | [
1,
13866,
584,
7201,
316,
30143,
1431,
7412,
1431,
596,
7412,
29709,
584,
7201,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1836,
1876,
38,
9835,
12,
203,
3639,
1758,
1431,
1887,
16,
203,
3639,
1758,
584,
7201,
1345,
1887,
16,
203,
3639,
2254,
5034,
584,
7201,
1345,
6275,
16,
203,
3639,
1758,
302,
338,
1887,
16,
203,
3639,
1731,
3778,
302,
... |
./full_match/5/0x1f85B789655fB4c3CEB448C2733B6b1e387867E0/sources/project_/contracts/extensions/ExtensionBase.sol | * @dev A function modifier to only allow the registered token to execute this function/ | modifier onlyToken() {
require(msg.sender == _tokenAddress(), "Token: Unauthorized");
_;
}
| 11,602,525 | [
1,
37,
445,
9606,
358,
1338,
1699,
326,
4104,
1147,
358,
1836,
333,
445,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1345,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
389,
2316,
1887,
9334,
315,
1345,
30,
15799,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.25;
contract Gravestone {
Departed public departed;
/* the message engraved on the gravestone */
string public epitaph;
/* worships to the departed */
Worship[] public worships;
uint public worship_count;
/* This runs when the contract is executed */
constructor(st... | the message engraved on the gravestone */ worships to the departed */ This runs when the contract is executed */ | constructor(string _fullname,string _birth_date,string _death_date,string _epitaph) public {
epitaph = _epitaph;
}
| 12,562,760 | [
1,
5787,
883,
570,
2752,
2155,
603,
326,
3087,
26923,
476,
342,
14591,
3261,
87,
358,
326,
26000,
329,
342,
1220,
7597,
1347,
326,
6835,
353,
7120,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
12316,
12,
1080,
389,
21885,
16,
1080,
389,
22531,
67,
712,
16,
1080,
389,
323,
421,
67,
712,
16,
1080,
389,
881,
305,
16003,
13,
1071,
288,
203,
202,
202,
881,
305,
16003,
273,
389,
881,
305,
16003,
31,
203,
202,
97,
20... |
./partial_match/1/0xb9afA94Eb375cbCcd776032C639C7716835a0Ede/sources/MyCoin.sol | * @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 level programming languages. `SafeMath` restor... | library SafeMath {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtract... | 3,643,187 | [
1,
24114,
1879,
348,
7953,
560,
1807,
30828,
5295,
598,
3096,
9391,
4271,
18,
27443,
5295,
316,
348,
7953,
560,
2193,
603,
9391,
18,
1220,
848,
17997,
563,
316,
22398,
16,
2724,
5402,
81,
414,
11234,
6750,
716,
392,
9391,
14183,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
10477,
288,
203,
97,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
276,
273,
279,
397,
324,
31,
203,
3639,
2583,
12,
71,
15... |
// File: openzeppelin\contracts\utils\introspection\IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of con... | Transfers are disabled in sell lock, this doesn't stop someone from transfering beforeselling, but there is no satisfying solution for that, and you would need to pax additional tax | tax=_transferTax;
| 11,949,384 | [
1,
1429,
18881,
854,
5673,
316,
357,
80,
2176,
16,
333,
3302,
1404,
2132,
18626,
628,
7412,
310,
506,
617,
455,
1165,
310,
16,
1496,
1915,
353,
1158,
9281,
14946,
6959,
364,
716,
16,
471,
1846,
4102,
1608,
358,
293,
651,
3312,
5320,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5411,
5320,
33,
67,
13866,
7731,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
import "../contracts/mortal.sol";
import "../contracts/CircuitBreakable.sol";
import "../contracts/Registry.sol";
/// @title PurchaseOrder Contract
/// @notice Creates/modifies PurchaseOrder and maintains workflow state of PO in supplyChain
contract PurchaseOrder is mortal, CircuitBreakable,... | Key should be unique
| string poNumber; | 1,814,554 | [
1,
653,
1410,
506,
3089,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
533,
8275,
1854,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.13;
library SafeMath {
function sub(uint a, uint b) internal returns (uint) {
assert(b <= a);
return a - b;
}
function add(uint a, uint b) internal returns (uint) {
uint c = a + b;
assert(c >= a);
return c;
}
}
contract ERC20Basic {
uint public totalSupply;
address... | * @dev Update accounting/ | function houseKeeping() public {
}
| 2,111,691 | [
1,
1891,
2236,
310,
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,
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,
23867,
11523,
310,
1435,
1071,
288,
203,
203,
3639,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xb17c618ed53B4A3536D2AF3Af73c6b303DbfAb5B/sources/UniswapV3xPYT.sol | ----------------------------------------------------------------------- Library usage ----------------------------------------------------------------------- ----------------------------------------------------------------------- Errors ----------------------------------------------------------------------- ----------... | struct EmergencyExitStatus {
bool activated;
uint96 pytPriceInUnderlying;
}
Factory public immutable factory;
public userYieldPerTokenStored;
| 3,679,991 | [
1,
5802,
17082,
18694,
4084,
24796,
24796,
9372,
24796,
24796,
9043,
24796,
24796,
7362,
87,
24796,
225,
14892,
1053,
309,
801,
24530,
2427,
711,
2118,
14892,
16,
629,
309,
486,
225,
2395,
88,
5147,
382,
14655,
6291,
1021,
3844,
434,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
512,
6592,
75,
2075,
6767,
1482,
288,
203,
3639,
1426,
14892,
31,
203,
3639,
2254,
10525,
2395,
88,
5147,
382,
14655,
6291,
31,
203,
565,
289,
203,
203,
203,
203,
565,
7822,
1071,
11732,
3272,
31,
203,
203,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./interfaces/IUniswapV2Pair.sol";
import "./libraries/UniswapV2Library.sol";
import "... | * @notice Transfers specified amount of WETH from caller and uses half to buy DRC. The DRC and remaining WETH are permanently added to liquidity pool. @param amount the amount of WETH to transfer from caller/ | function addLiquidity(uint256 amount) external {
WETH.safeTransferFrom(msg.sender, address(this), amount);
uint256 halfWethBalance = WETH.balanceOf(address(this)).div(2);
WETH.safeTransfer(address(DRC_WETH_PAIR), halfWethBalance);
(uint drcReserve, uint wethReserve,) = DRC_WETH_PAIR.... | 1,016,854 | [
1,
1429,
18881,
1269,
3844,
434,
678,
1584,
44,
628,
4894,
471,
4692,
8816,
358,
30143,
463,
11529,
18,
540,
1021,
463,
11529,
471,
4463,
678,
1584,
44,
854,
16866,
715,
3096,
358,
4501,
372,
24237,
2845,
18,
225,
3844,
326,
3844,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
48,
18988,
24237,
12,
11890,
5034,
3844,
13,
3903,
288,
203,
3639,
678,
1584,
44,
18,
4626,
5912,
1265,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3631,
3844,
1769,
203,
3639,
2254,
5034,
8816,
59,
546,
13937,
273,
... |
// SPDX-License-Identifier: AGPL-3.0-only
/*
Bounty.sol - SKALE Manager
Copyright (C) 2020-Present SKALE Labs
@author Dmytro Stebaiev
SKALE Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Softw... | * @title ECDH @dev This contract performs Elliptic-curve Diffie-Hellman key exchange to support the DKG process./ | contract ECDH {
using SafeMath for uint256;
uint256 constant private _GX = 0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798;
uint256 constant private _GY = 0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8;
uint256 constant private _N = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF... | 9,880,364 | [
1,
7228,
16501,
225,
1220,
6835,
11199,
10426,
549,
21507,
17,
16683,
13008,
1385,
17,
44,
1165,
4728,
498,
7829,
358,
2865,
326,
31176,
43,
1207,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7773,
16501,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
5381,
3238,
389,
43,
60,
273,
374,
92,
7235,
5948,
6028,
27,
26897,
29,
5528,
9676,
2226,
2539,
37,
7677,
29286,
1441,
28,
730... |
./partial_match/1/0xf65B60d127671ACec535c359640ad390C2411577/sources/DistributionSPrincipal.sol | Existing on-chain contracts | contract DistributionBase {
using SafeERC20 for IERC20;
using SafeMath for uint256;
bool public redeem_allowed;
bool public deposit_done;
address public governance;
address public fund_rescue;
IERC20 public underlying_token;
IERC20 public lp_token;
uint public total_distribution_amount;
const... | 2,632,746 | [
1,
9895,
603,
17,
5639,
20092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17547,
2171,
288,
203,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
1426,
1071,
283,
24903,
67,
8151,
31,
203,
225,
1426,
1071,
443,
... |
// Sources flattened with buidler v1.4.3 https://buidler.dev
// File contracts/stakingv2/OwnedV2.sol
pragma solidity ^0.5.16;
// https://docs.synthetix.io/contracts/source/contracts/owned
contract OwnedV2 {
address public owner;
address public nominatedOwner;
constructor(address _owner) public {
... | ERROR: type should be string, got " https:docs.synthetix.io/contracts/source/contracts/owned" | contract OwnedV2 {
address public owner;
address public nominatedOwner;
constructor(address _owner) public {
require(_owner != address(0), "Owner address cannot be 0");
owner = _owner;
emit OwnerChanged(address(0), _owner);
}
function nominateNewOwner(address _owner) exte... | 1,565,339 | [
1,
4528,
30,
8532,
18,
11982,
451,
278,
697,
18,
1594,
19,
16351,
87,
19,
3168,
19,
16351,
87,
19,
995,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14223,
11748,
58,
22,
288,
203,
565,
1758,
1071,
3410,
31,
203,
565,
1758,
1071,
12457,
7458,
5541,
31,
203,
203,
203,
203,
565,
3885,
12,
2867,
389,
8443,
13,
1071,
288,
203,
3639,
2583,
24899,
8443,
480,
1758,
12,
20,
... |
pragma solidity ^0.4.18;
contract EthPyramid {
// scaleFactor is used to convert Ether into tokens and vice-versa: they're of different
// orders of magnitude, hence the need to bridge between the two.
uint256 constant scaleFactor = 0x10000000000000000; // 2^64
// CRR = 50%
// CRR is Cash Reserve Ratio (in t... | Add the numTokens which were just created to the total supply. We're a crypto central bank! | totalSupply = add(totalSupply, numTokens);
| 424,924 | [
1,
986,
326,
818,
5157,
1492,
4591,
2537,
2522,
358,
326,
2078,
14467,
18,
1660,
4565,
279,
8170,
18291,
11218,
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,
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,
202,
202,
4963,
3088,
1283,
273,
527,
12,
4963,
3088,
1283,
16,
818,
5157,
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... |
/**
*Submitted for verification at Etherscan.io on 2020-02-21
*/
pragma solidity 0.5.12;
//import "ds-math/math.sol";
contract DSMath {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x, "ds-math-add-overflow");
}
function sub(uint x, uint y) internal pure ret... | NOTE: 'eta' check should mimic the old behavior of 'done', thus preventing these SCD changes from being executed again. Sai Stability Fee adjustment to 9.5% https:vote.makerdao.com/polling-proposal/qmaj4fnjeohomnrs8m9cihrfxws4m89bwfu9eh96y8okxw | function schedule() public {
require(eta == 0, "spell-already-scheduled");
eta = add(now, DSPauseAbstract(pause).delay());
pause.plot(action, tag, sig, eta);
SaiMomAbstract(SAIMOM).setFee(NEW_FEE);
}
| 12,809,215 | [
1,
17857,
30,
296,
1066,
11,
866,
1410,
20369,
335,
326,
1592,
6885,
434,
296,
8734,
2187,
12493,
5309,
310,
4259,
8795,
40,
3478,
628,
3832,
7120,
3382,
18,
348,
10658,
934,
2967,
30174,
18335,
358,
2468,
18,
25,
9,
2333,
30,
25911... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4788,
1435,
1071,
288,
203,
3639,
2583,
12,
1066,
422,
374,
16,
315,
1752,
1165,
17,
17583,
17,
23307,
8863,
203,
3639,
14251,
273,
527,
12,
3338,
16,
463,
3118,
1579,
7469,
12,
19476,
2934,
10790,
10663,
203,
3639,
117... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
import {Modifiers, ItemType, WearableSet, NUMERIC_TRAITS_NUM, EQUIPPED_WEARABLE_SLOTS} from "../libraries/LibAppStorage.sol";
import {AavegotchiCollateralTypeIO} from "../libraries/LibAavegotchi.sol";
import {LibERC1155} from "../../shared/libraries/LibERC1155.sol... | Prevent the same collateral from being added multiple times | function addCollateralTypes(AavegotchiCollateralTypeIO[] calldata _collateralTypes) external onlyDaoOrOwner {
for (uint256 i; i < _collateralTypes.length; i++) {
address collateralType = _collateralTypes[i].collateralType;
require(s.collateralTypeInfo[collateralType].cheekColor == 0... | 881,010 | [
1,
25828,
326,
1967,
4508,
2045,
287,
628,
3832,
3096,
3229,
4124,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
13535,
2045,
287,
2016,
12,
37,
836,
13212,
24010,
13535,
2045,
287,
559,
4294,
8526,
745,
892,
389,
12910,
2045,
287,
2016,
13,
3903,
1338,
11412,
1162,
5541,
288,
203,
3639,
364,
261,
11890,
5034,
277,
31,
277,
4... |
pragma solidity 0.5.10;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions... | * @dev PUBLIC FACING: Unlocks a completed stake, distributing the proceeds of any penalty immediately. The staker must still call stakeEnd() to retrieve their stake return (if any). @param stakerAddr Address of staker @param stakeIndex Index of stake within stake list @param stakeIdParam The stake's id/ require() is mo... | function stakeGoodAccounting(address stakerAddr, uint256 stakeIndex, uint40 stakeIdParam)
external
{
GlobalsCache memory g;
GlobalsCache memory gSnapshot;
_globalsLoad(g, gSnapshot);
require(stakeLists[stakerAddr].length != 0, "E2X: Empty stake list");
require(st... | 2,179,768 | [
1,
14939,
478,
2226,
1360,
30,
3967,
87,
279,
5951,
384,
911,
16,
1015,
665,
8490,
326,
11247,
87,
434,
1281,
23862,
7636,
18,
1021,
384,
6388,
1297,
4859,
745,
384,
911,
1638,
1435,
358,
4614,
3675,
384,
911,
327,
261,
430,
1281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
384,
911,
18195,
3032,
310,
12,
2867,
384,
6388,
3178,
16,
2254,
5034,
384,
911,
1016,
16,
2254,
7132,
384,
911,
548,
786,
13,
203,
3639,
3903,
203,
565,
288,
203,
3639,
18901,
1031,
1649,
3778,
314,
31,
203,
3639,
18... |
//*********************************************************************//
//*********************************************************************//
//
//
// 8888888b. d8888 888b d888 8888888b. 8888888b.
// 888 Y88b d88888 88... | * @dev Mints a token to an address with a tokenURI. fee may or may not be required @param _to address of the future owner of the token/ | function mintTo(address _to) public payable {
require(_getNextTokenId() <= SUPPLYCAP, "Cannot mint over supply cap of 10000");
require(mintingOpen == true, "Minting is not open right now!");
require(msg.value == PRICE, "Value needs to be exactly the ... | 11,729,902 | [
1,
49,
28142,
279,
1147,
358,
392,
1758,
598,
279,
1147,
3098,
18,
14036,
2026,
578,
2026,
486,
506,
1931,
225,
389,
869,
1758,
434,
326,
3563,
3410,
434,
326,
1147,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
312,
474,
774,
12,
2867,
389,
869,
13,
1071,
8843,
429,
288,
203,
5411,
2583,
24899,
588,
9399,
548,
1435,
1648,
16459,
23893,
17296,
16,
315,
4515,
312,
474,
1879,
14467,
3523,
434,
12619,
8863,
203,
5411,
2583,
12,
8... |
./full_match/3/0x633BE4D66CD9400C47d94Bb3faf15474B3c8C6bc/sources/contracts/ERC1155.sol | * @dev Require _msgSender() to be the creator of the token id/ | modifier creatorOnly(uint256 _id) {
require(creators[_id] == _msgSender(), "ArtOfNfts#creatorOnly: ONLY_CREATOR_ALLOWED");
_;
}
| 14,128,244 | [
1,
8115,
389,
3576,
12021,
1435,
358,
506,
326,
11784,
434,
326,
1147,
612,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11784,
3386,
12,
11890,
5034,
389,
350,
13,
288,
203,
3639,
2583,
12,
1793,
3062,
63,
67,
350,
65,
422,
389,
3576,
12021,
9334,
315,
4411,
951,
50,
1222,
87,
7,
20394,
3386,
30,
20747,
67,
5458,
3575,
67,
16852,
8863... |
./full_match/3/0x8dF0Bb5a817210C0e27f96CDFF31c6a2497565F1/sources/browser/TorroFactory.sol | @notice Gets current price for DAO creation. @return uint256 wei price for DAO creation. | function price() public view returns (uint256) {
return _createPrice;
}
| 8,149,548 | [
1,
3002,
783,
6205,
364,
463,
20463,
6710,
18,
327,
2254,
5034,
732,
77,
6205,
364,
463,
20463,
6710,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6205,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
389,
2640,
5147,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/80001/0xF8dCD5AFe7eDBC8Ef114e339f3231F1C2E86Cd42/sources/contracts/messaging/WatcherManager.sol | ============ Admin fns ============* @dev Owner can enroll a watcher (abilities are defined by inheriting contracts)/ | function addWatcher(address _watcher) external onlyOwner {
require(!isWatcher[_watcher], "already watcher");
isWatcher[_watcher] = true;
emit WatcherAdded(_watcher);
}
| 850,895 | [
1,
14468,
7807,
21930,
422,
1432,
631,
225,
16837,
848,
570,
2693,
279,
9527,
261,
5756,
854,
2553,
635,
6811,
310,
20092,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
527,
9918,
12,
2867,
389,
23894,
13,
3903,
1338,
5541,
288,
203,
565,
2583,
12,
5,
291,
9918,
63,
67,
23894,
6487,
315,
17583,
9527,
8863,
203,
565,
353,
9918,
63,
67,
23894,
65,
273,
638,
31,
203,
565,
3626,
24424,
... |
//Address: 0x4ceda7906a5ed2179785cd3a40a69ee8bc99c466
//Contract name: Token
//Balance: 0 Ether
//Verification Date: 10/11/2017
//Transacion Count: 79391
// CODE STARTS HERE
pragma solidity >=0.4.10;
// from Zeppelin
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
uint c =... | functions below this line are onlyOwner | contract Ledger is Owned, SafeMath, Finalizable {
Controller public controller;
mapping(address => uint) public balanceOf;
mapping (address => mapping (address => uint)) public allowance;
uint public totalSupply;
uint public mintingNonce;
bool public mintingStopped;
mapping(uint256 => bytes... | 2,529,401 | [
1,
10722,
5712,
333,
980,
854,
1338,
5541,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
511,
329,
693,
353,
14223,
11748,
16,
14060,
10477,
16,
16269,
6934,
288,
203,
565,
6629,
1071,
2596,
31,
203,
565,
2874,
12,
2867,
516,
2254,
13,
1071,
11013,
951,
31,
203,
565,
2874,
261,
2867,
516,
2874,
261,
2867,
516,... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
pragma abicoder v2;
// OpenZeppelin v4
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { StorageSlot } from "@openzeppelin/contracts/utils/StorageSlot.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/util... | * @notice Gets verification key @param _nullifiers - number of nullifiers this verification key is for @param _commitments - number of commitmets out this verification key is for/ Manually add getter so dynamic IC array is included in response | function getVerificationKey(
uint256 _nullifiers,
uint256 _commitments
) public view returns (VerifyingKey memory) {
return verificationKeys[_nullifiers][_commitments];
}
| 5,809,548 | [
1,
3002,
11805,
498,
225,
389,
2011,
3383,
300,
1300,
434,
446,
3383,
333,
11805,
498,
353,
364,
225,
389,
7371,
1346,
300,
1300,
434,
3294,
81,
2413,
596,
333,
11805,
498,
353,
364,
19,
8660,
3452,
527,
7060,
1427,
5976,
26899,
526... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
336,
13483,
653,
12,
203,
565,
2254,
5034,
389,
2011,
3383,
16,
203,
565,
2254,
5034,
389,
7371,
1346,
203,
225,
262,
1071,
1476,
1135,
261,
8097,
26068,
3778,
13,
288,
203,
565,
327,
11805,
2396,
63,
67,
2011,
3383,
... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "https://raw.githubusercontent.com/smartcontractkit/chainlink/develop/evm-contracts/src/v0.6/ChainlinkClient.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/math/SafeMath.sol";
// to do: add events, test ... | date of contract creation
| uint256 public creationDate; | 1,087,757 | [
1,
712,
434,
6835,
6710,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5034,
1071,
6710,
1626,
31,
540,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
// import "hardhat/console.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
contract CCML is ERC721, ERC721Enumera... | require(numTokens > 0, "CCML: Must supply positive number for tokens to mint"); require(totalSupply() + numTokens <= maxNftSupply, "CCML: Purchase would exceed max supply of tokens"); for (uint256 i = 0; i < numTokens; i++) { mints a new token right off the top of the supply _minted[totalSupply()] = true; ... | function presaleMint(uint256[] memory _ids) external payable {
uint256 numTokens = _ids.length;
require(_whitelist[msg.sender] == true, "CCML: sender is not whitelisted for presale");
require(tokenPrice * numTokens <= msg.value, "CCML: Insufficient funds sent for purchase");
require(... | 1,572,089 | [
1,
6528,
12,
2107,
5157,
405,
374,
16,
315,
6743,
1495,
30,
6753,
14467,
6895,
1300,
364,
2430,
358,
312,
474,
8863,
2583,
12,
4963,
3088,
1283,
1435,
397,
818,
5157,
1648,
943,
50,
1222,
3088,
1283,
16,
315,
6743,
1495,
30,
26552,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4075,
5349,
49,
474,
12,
11890,
5034,
8526,
3778,
389,
2232,
13,
3903,
8843,
429,
288,
203,
3639,
2254,
5034,
818,
5157,
273,
389,
2232,
18,
2469,
31,
203,
3639,
2583,
24899,
20409,
63,
3576,
18,
15330,
65,
422,
638,
... |
pragma solidity ^0.6.12;
/**
* @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 ... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
mapping (addres... | 14,518,879 | [
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,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
3... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract A {
// virutal means that this func can be inherited and customized
function ThisContract() public pure virtual returns (string memory) {
return "A";
}
// This func can be inherited but not overrided
function ParentContract() public pure r... | We override this func, and put it "virtual" so the children of B will be able to reoverride it | function BestProgrammer()
public
pure
virtual
override
returns (string memory)
{
return
"Like Not Me, but we you will read it, you will read 'Me', so it's YOU! ";
}
| 5,452,657 | [
1,
3218,
3849,
333,
1326,
16,
471,
1378,
518,
315,
12384,
6,
1427,
326,
2325,
434,
605,
903,
506,
7752,
358,
283,
10601,
518,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
25717,
9459,
6592,
1435,
203,
565,
1071,
203,
565,
16618,
203,
565,
5024,
203,
565,
3849,
203,
565,
1135,
261,
1080,
3778,
13,
203,
225,
288,
203,
565,
327,
203,
1377,
315,
8804,
2288,
7499,
16,
1496,
732,
1846,
903,
... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
// region xxx
/* ..........................................*/
/* ..........................................*/
// endregion
// region OTHER
/* ...... | returns (bool,uint256,address) airlines[airlineAddress].isRegistered = true; airlines[airlineAddress].isFund = 10; airlines[airlineAddress].isRegistered = true; return ( airlines[airlineAddress].isRegistered, testme, airlines[airlineAddress].isFund, airlineAddress ); return true; return false; | function isAirline
(
address _address
)
external
view
returns (bool)
{
return airlines[_address].isRegistered;
}
| 2,472,479 | [
1,
6154,
261,
6430,
16,
11890,
5034,
16,
2867,
13,
23350,
3548,
63,
1826,
1369,
1887,
8009,
291,
10868,
273,
638,
31,
23350,
3548,
63,
1826,
1369,
1887,
8009,
291,
42,
1074,
273,
1728,
31,
23350,
3548,
63,
1826,
1369,
1887,
8009,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
25997,
481,
1369,
203,
10792,
261,
203,
13491,
1758,
389,
2867,
203,
10792,
262,
203,
10792,
3903,
203,
10792,
1476,
8227,
203,
10792,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
23350,
3548,
63,
67,
2867,
8009,
... |
/**
*Submitted for verification at Etherscan.io on 2020-01-29
*/
/**
*Submitted for verification at Etherscan.io on 2019-12-09
*/
pragma solidity ^0.5.12;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure retur... | * @dev Constructor that gives msg.sender all of existing tokens./ | constructor () public ERC20Detailed("ndit", "NDIT", 18) {
_mint(msg.sender, INITIAL_SUPPLY);
}
| 103,121 | [
1,
6293,
716,
14758,
1234,
18,
15330,
777,
434,
2062,
2430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1832,
1071,
4232,
39,
3462,
40,
6372,
2932,
4880,
305,
3113,
315,
2908,
1285,
3113,
6549,
13,
288,
203,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
28226,
67,
13272,
23893,
1769,
7010,
565,
289,
203,
2,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/ClonesUpgradeable.sol";
import "@openzeppelin/c... | * @dev Approves or disapproves a user @param _user Address of the user @param _approval Indicates if the user will be approved or not/ | function toggleUserApproval(address _user, bool _approval)
external
onlyAdmin
whenNotPaused
{
users[_user].verified = _approval;
users[_user].updatedAt = block.timestamp;
emit UserApproval(_user, _approval);
}
| 2,498,672 | [
1,
12053,
3324,
578,
1015,
12908,
3324,
279,
729,
4202,
389,
1355,
3639,
5267,
434,
326,
729,
4202,
389,
12908,
1125,
565,
18336,
309,
326,
729,
903,
506,
20412,
578,
486,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10486,
1299,
23461,
12,
2867,
389,
1355,
16,
1426,
389,
12908,
1125,
13,
203,
3639,
3903,
203,
3639,
1338,
4446,
203,
3639,
1347,
1248,
28590,
203,
565,
288,
203,
3639,
3677,
63,
67,
1355,
8009,
19685,
273,
389,
12908,
... |
pragma solidity 0.5.4;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
//... | * [ERC1400 INTERFACE (8/9)] @dev Know the reason on success or failure based on the EIP-1066 application-specific status codes. @param partition Name of the partition. @param to Token recipient. @param value Number of tokens to transfer. @param data Information attached to the transfer, by the token holder. [CONTAINS T... | function canTransferByPartition(bytes32 partition, address to, uint256 value, bytes calldata data)
external
view
returns (byte, bytes32, bytes32)
{
return _canTransfer(partition, msg.sender, msg.sender, to, value, data, "");
}
| 2,563,795 | [
1,
63,
654,
39,
3461,
713,
11391,
11300,
261,
28,
19,
29,
25887,
225,
1475,
3338,
326,
3971,
603,
2216,
578,
5166,
2511,
603,
326,
512,
2579,
17,
2163,
6028,
2521,
17,
12524,
1267,
6198,
18,
225,
3590,
1770,
434,
326,
3590,
18,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
848,
5912,
858,
7003,
12,
3890,
1578,
3590,
16,
1758,
358,
16,
2254,
5034,
460,
16,
1731,
745,
892,
501,
13,
203,
565,
3903,
203,
565,
1476,
203,
565,
1135,
261,
7229,
16,
1731,
1578,
16,
1731,
1578,
13,
203,
225,
2... |
pragma solidity ^0.4.18;
// File: Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address ... | to send tokens for bitcoin bakers and bounty | function sendTokens(address _to, uint256 _amount) onlyOwner public {
require(token.totalSupply() + SafeMath.mul(_amount, 10**uint256(token.decimals())) <= SafeMath.mul(hardCap, 10**uint256(token.decimals())));
gifted = SafeMath.add(gifted, SafeMath.mul(_amount, 10**uint256(token.decimals())));
... | 14,960,122 | [
1,
869,
1366,
2430,
364,
25851,
324,
581,
414,
471,
324,
592,
93,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1366,
5157,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1338,
5541,
1071,
288,
203,
3639,
2583,
12,
2316,
18,
4963,
3088,
1283,
1435,
397,
14060,
10477,
18,
16411,
24899,
8949,
16,
1728,
636,
11890,
5034,
12,
231... |
pragma solidity ^0.5;
import './Macros.sol';
// #def SEASON_DURATION \
// uint64((365.25 * ONE_DAY) / NUM_SEASONS / SEASON_FREQUENCY)
// #def NEIGHBOR_OFFSET(idx) (((int32(idx)%3)-1), (1-int32(idx)/2))
// #def MAX_BLOCK_VALUE NUM_RESOURCES-1
// #if TEST
// #def BLOCKTIME __blockTime
// #else
// #def BLOCKTIME uin... | The number of resource types. | uint8 internal constant NUM_RESOURCES = $$(NUM_RESOURCES);
| 1,844,488 | [
1,
1986,
1300,
434,
1058,
1953,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11890,
28,
2713,
5381,
9443,
67,
11395,
55,
273,
5366,
12,
6069,
67,
11395,
55,
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,
... |
//Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/E... | allows for minting to happen even if the contratc is paused & vice versa
| bool public gloablMintStatus; | 10,114,503 | [
1,
5965,
87,
364,
312,
474,
310,
358,
5865,
5456,
309,
326,
16252,
270,
71,
353,
17781,
473,
31842,
14690,
69,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1426,
1071,
314,
383,
9237,
49,
474,
1482,
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,
-10... |
pragma solidity ^0.4.24;
import "./KAICompany.sol";
import "./ETF.sol";
contract CEngine {
// Mappings
mapping (address => uint256) public balances; // Storing token balances
mapping (address => uint256) public rankings; // Storing rankings
mapping (address => bool) public isClaimed; // Storing cla... | burn destroys tokens in the admin account given (token amount: _amount) | function burn(uint _amount) public onlyOwner returns(bool) {
require(_amount > 0, "Negative amount entered");
require(balances[msg.sender] > _amount, "Not enough tokens to burn");
balances[msg.sender] -= _amount;
return true;
}
| 13,135,969 | [
1,
70,
321,
1570,
28599,
2430,
316,
326,
3981,
2236,
864,
261,
2316,
3844,
30,
389,
8949,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
18305,
12,
11890,
389,
8949,
13,
1071,
1338,
5541,
1135,
12,
6430,
13,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
315,
14959,
3844,
16219,
8863,
203,
3639,
2583,
12,
70,
26488,
63,
3576,
18,
15330,
65,
405,
389,
... |
./partial_match/42/0xc2004704209C69F7ECAdCc15e732e1e5e0D612F4/sources/Depot.sol | The multiplication works here because exchangeRates().rateForCurrency(ETH) is specified in 18 decimal places, just like our currency base. Iterate through our outstanding deposits and sell them one at a time. If it's an empty spot in the queue from a previous withdrawal, just skip over it and update the queue. It's al... | function _exchangeEtherForPynths() internal returns (uint) {
require(msg.value <= maxEthPurchase, "ETH amount above maxEthPurchase limit");
uint ethToSend;
uint requestedToPurchase = msg.value.multiplyDecimal(exchangeRates().rateForCurrency(ETH));
uint remainingToFulfill = requested... | 3,372,648 | [
1,
1986,
23066,
6330,
2674,
2724,
7829,
20836,
7675,
5141,
1290,
7623,
12,
1584,
44,
13,
353,
1269,
316,
6549,
6970,
12576,
16,
2537,
3007,
3134,
5462,
1026,
18,
11436,
3059,
3134,
20974,
443,
917,
1282,
471,
357,
80,
2182,
1245,
622,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16641,
41,
1136,
1290,
52,
878,
451,
87,
1435,
2713,
1135,
261,
11890,
13,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1648,
943,
41,
451,
23164,
16,
315,
1584,
44,
3844,
5721,
943,
41,
451,
23164,
1800,
8863,
203,... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;
/**
* @dev "Pseudo" smart-contract that describes the issues on the README.md
*/
contract OpynTogether {
/**
* @dev Struct that outlines the "Participant" in the liquidity program
*/
struct Participant {
address user;
ui... | ERC20 transferFrom from msg.sender to liquidity pool | function depositIntoPosition(
address _oToken,
uint256 _oTokenDeposit
)
external onlyParticipant(_oToken)
{
Position storage position = positions[_oToken];
position.participants[msg.sender].liquidityAmount += _oTokenDeposit;
}
| 15,829,762 | [
1,
654,
39,
3462,
7412,
1265,
628,
1234,
18,
15330,
358,
4501,
372,
24237,
2845,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
5952,
2555,
12,
203,
3639,
1758,
389,
83,
1345,
16,
203,
3639,
2254,
5034,
389,
83,
1345,
758,
1724,
203,
565,
262,
203,
3639,
3903,
1338,
22540,
24899,
83,
1345,
13,
203,
565,
288,
203,
3639,
11010,
2502,
... |
pragma solidity ^0.4.11;
/* -------------------------------------------------------------------------- */
/* IsraTo SALE CONTRACT */
/* -------------------------------------------------------------------------- */
/* This contract controls the crowdsale of IRT toke... | total tokens sold during the crowdsale
| uint256 public tokenSold = 0; | 12,779,446 | [
1,
4963,
2430,
272,
1673,
4982,
326,
276,
492,
2377,
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,
202,
11890,
5034,
1071,
1147,
55,
1673,
273,
374,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0x9662833c1FC8f2AfF8569816208E8f7653eC8af4/sources/YouAreTheChampion.sol | * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation./ | function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, MathUpgradeable.log256(value) + 1);
}
}
| 2,889,376 | [
1,
5692,
279,
1375,
11890,
5034,
68,
358,
2097,
11768,
1375,
1080,
68,
20070,
4335,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18272,
12,
11890,
5034,
460,
13,
2713,
16618,
1135,
261,
1080,
3778,
13,
288,
203,
565,
22893,
288,
203,
3639,
327,
18272,
12,
1132,
16,
2361,
10784,
429,
18,
1330,
5034,
12,
1132,
13,
397,
404,
1769,
203,
565,
289,
2... |
pragma solidity >=0.4.21 <0.6.0;
import "openzeppelin-solidity/contracts/introspection/IERC1820Registry.sol";
import "openzeppelin-solidity/contracts/utils/Address.sol";
import "../interfaces/IDDAI.sol";
// Dollar cost averaging manager
// Account should be operator and stack manager
contract DCA {
using Address ... | If its not yet time to do dollar cost averaging or fee is too low do nothing Not reverting to not break batches Check if we should do more than one buy interval transfer fee | function poke(address _account, uint256 _minFee) public returns(bool) {
UserData storage userData = dataOf[_account];
if(userData.next > block.timestamp) {
return false;
}
uint256 intervalsAmount = 1;
if(userData.next < block.timestamp) {
intervalsAmo... | 14,072,954 | [
1,
2047,
2097,
486,
4671,
813,
358,
741,
302,
25442,
6991,
23713,
5755,
578,
14036,
353,
4885,
4587,
741,
5083,
2288,
15226,
310,
358,
486,
898,
13166,
2073,
309,
732,
1410,
741,
1898,
2353,
1245,
30143,
3673,
7412,
14036,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
293,
3056,
12,
2867,
389,
4631,
16,
2254,
5034,
389,
1154,
14667,
13,
1071,
1135,
12,
6430,
13,
288,
203,
3639,
31109,
2502,
13530,
273,
501,
951,
63,
67,
4631,
15533,
203,
3639,
309,
12,
1355,
751,
18,
4285,
405,
120... |
pragma solidity ^0.4.24;
contract F3Devents {
// fired whenever a player registers a name
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affiliateAddress,
... | (pID => rID => data) player round data by player id & round id
| mapping (uint256 => mapping (uint256 => F3Ddatasets.PlayerRounds)) public plyrRnds_; | 27,503 | [
1,
12,
84,
734,
516,
436,
734,
516,
501,
13,
7291,
3643,
501,
635,
7291,
612,
473,
3643,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
11890,
5034,
516,
2874,
261,
11890,
5034,
516,
478,
23,
40,
21125,
18,
12148,
54,
9284,
3719,
1071,
293,
715,
86,
54,
82,
2377,
67,
31,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.18;
/**
* @title SafeMath for performing valid mathematics.
*/
library SafeMath {
function Mul(uint a, uint b) internal pure returns (uint) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function Div(uint a, uint b) internal pure returns (uint) {... | * @dev Calculate number of tokens that will be received in one ether/zero indicates that no tokens will be allocated when total supplyof 21 million tokens is reached | function getPrice() public view returns(uint256) {
uint256 price;
if(totalSupply <= 1e6*1e18)
price = 13330;
else if(totalSupply <= 5e6*1e18)
price = 12500;
else if(totalSupply <= 9e6*1e18)
price = 11760;
else if(totalSupply <= 13e6*1e18)
... | 1,781,017 | [
1,
8695,
1300,
434,
2430,
716,
903,
506,
5079,
316,
1245,
225,
2437,
19,
7124,
8527,
716,
1158,
2430,
903,
506,
11977,
1347,
2078,
14467,
792,
9035,
312,
737,
285,
2430,
353,
8675,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
25930,
1435,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
6205,
31,
203,
3639,
309,
12,
4963,
3088,
1283,
1648,
404,
73,
26,
14,
21,
73,
2643,
13,
203,
5411,
6205,
273,
30537,
5082,
31,
203,
3639... |
./full_match/1/0xDe0462dDF2FFc915ab5365AD280e5bd2c768170C/sources/browser/testt.sol | require(success, "ERR_ETH_FAILED"); WETH.transfer( msg.sender, WETH.balanceOf(address(this))); | function withdrawExactToken(address me) public onlyOwner discountCHI{
ERC20 SendMe = ERC20(me);
SendMe.transfer( msg.sender, SendMe.balanceOf(address(this)));
}
| 3,866,954 | [
1,
6528,
12,
4768,
16,
315,
9712,
67,
1584,
44,
67,
11965,
8863,
678,
1584,
44,
18,
13866,
12,
1234,
18,
15330,
16,
678,
1584,
44,
18,
12296,
951,
12,
2867,
12,
2211,
3719,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
14332,
1345,
12,
2867,
1791,
13,
1071,
1338,
5541,
12137,
1792,
45,
95,
203,
565,
4232,
39,
3462,
2479,
4667,
273,
4232,
39,
3462,
12,
3501,
1769,
203,
203,
203,
565,
2479,
4667,
18,
13866,
12,
1234,
18,
15... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../common/BaseRelayRecipient.sol"... | token_ can be zero, and capacityOffset_ can be zero too. | function setAssetInfo(
uint16 assetIndex_,
address token_,
address recipient_,
uint256 capacityOffset_
) external onlyOwner {
require(recipient_ != address(0), "recipient_ is zero");
assetInfoMap[assetIndex_].token = token_;
assetInfoMap[assetIndex_].reci... | 13,109,179 | [
1,
2316,
67,
848,
506,
3634,
16,
471,
7519,
2335,
67,
848,
506,
3634,
4885,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
6672,
966,
12,
203,
3639,
2254,
2313,
3310,
1016,
67,
16,
203,
3639,
1758,
1147,
67,
16,
203,
3639,
1758,
8027,
67,
16,
203,
3639,
2254,
5034,
7519,
2335,
67,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
2583... |
// Twitter : https://twitter.com/ElonInuERC
// Website : ElonInuERC.com
// Telegram : https://t.me/ElonInuEntry
// SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.13;
abstract contract Context
{
function _msgSender() internal view virtual returns (address)
{
return msg.sender;
}
fu... | auto burn fee distribute the collected tax percentage wise exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract ELONINU is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public uniswapV2Router;
address public immutable uniswapV2Pair;
bool private inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
bool public enableEarlySellTax = true;
uint256 public maxSellTrans... | 13,838,991 | [
1,
6079,
18305,
14036,
25722,
326,
12230,
5320,
11622,
24754,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
358,
4259,
6138,
3377,
506,
3221,
358,
279,
4207,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14801,
673,
706,
57,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
640,
291,
91,
438,
58,
22,
8259,
31,
2... |
/*
* Copyright 2020 DMM Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | In case the __user is reusing a non-zero balance they had before the start of this farm. | function beginFarming(
address __user,
address __funder,
address __token,
uint __amount
)
public
farmIsActive
requireIsFarmToken(__token)
isSpenderApproved(__user)
nonReentrant {
require(
__funder == msg.sender || __funder == __user,
... | 7,215,733 | [
1,
382,
648,
326,
1001,
1355,
353,
283,
9940,
279,
1661,
17,
7124,
11013,
2898,
9323,
1865,
326,
787,
434,
333,
284,
4610,
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... | [
1,
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,
2376,
42,
4610,
310,
12,
203,
3639,
1758,
1001,
1355,
16,
203,
3639,
1758,
1001,
74,
9341,
16,
203,
3639,
1758,
1001,
2316,
16,
203,
3639,
2254,
1001,
8949,
203,
565,
262,
203,
565,
1071,
203,
565,
284,
4610,
2520,
38... |
claimers[0xEB079Ee381FC821B809F6110cCF7a8439C7A6870] = 0; // seq: 0 -> tkn_id: 0
claimers[0xcBD56A71a02fA7AA01bF1c94c0AeB2828Bebdc0A] = 1; // seq: 1 -> tkn_id: 1
claimers[0x9E1fDAB0FE4141fe269060f098bc7076d248cE7B] = 2; // seq: 2 -> tkn_id: 2
claimers[0x33aEA8f43D9685683b236B20a1818aFcD48204cD] = 3; // seq: 3 -> tk... | seq: 406 -> tkn_id: 407
| claimers[0xFB81414570E338E28C98417c38A3A5c9C6503516] = 407; | 12,654,902 | [
1,
5436,
30,
1059,
7677,
317,
13030,
82,
67,
350,
30,
8063,
27,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
14784,
414,
63,
20,
16275,
38,
28,
3461,
30379,
7301,
41,
3707,
28,
41,
6030,
39,
29,
5193,
4033,
71,
7414,
37,
23,
37,
25,
71,
29,
39,
26,
3361,
4763,
2313,
65,
273,
8063,
27,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,... |
./full_match/97/0x340ba9bF2129915DC0610b9f68ACE7f12fa1681a/sources/Grantox/Grantox.sol | emit fundingSessionCreatedAndStarted | emit FundingSessionCreatedAndStarted(msg.sender, _sessionId.current(), block.timestamp, _sessionEnd, _sessionTargetAmount);
| 3,284,688 | [
1,
18356,
22058,
2157,
6119,
1876,
9217,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3626,
478,
14351,
2157,
6119,
1876,
9217,
12,
3576,
18,
15330,
16,
389,
3184,
548,
18,
2972,
9334,
1203,
18,
5508,
16,
389,
3184,
1638,
16,
389,
3184,
2326,
6275,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "hardhat/console.sol";
/**
* @title
* @notice Empty DEX.sol that just outlines what features could be part of the challenge (up t... | * @notice allows deposits of $BAL and $ETH to liquidity pool NOTE: Ratio needs to be maintained./ | function deposit() public payable returns (uint256 tokensDeposited) {
uint256 eth_reserve = address(this).balance.sub(msg.value);
uint256 token_reserve = token.balanceOf(address(this));
uint256 token_amount = (msg.value.mul(token_reserve) / eth_reserve).add(
1
);
... | 13,086,918 | [
1,
5965,
87,
443,
917,
1282,
434,
271,
38,
1013,
471,
271,
1584,
44,
358,
4501,
372,
24237,
2845,
5219,
30,
534,
4197,
4260,
358,
506,
11566,
8707,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
1435,
1071,
8843,
429,
1135,
261,
11890,
5034,
2430,
758,
1724,
329,
13,
288,
203,
3639,
2254,
5034,
13750,
67,
455,
6527,
273,
1758,
12,
2211,
2934,
12296,
18,
1717,
12,
3576,
18,
1132,
1769,
203,
3639,
2254... |
// 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
* queried by others ({ERC165Checker}).
*
* For an implementation, ... | checks if address owns at least one token from either of the qualifying collections | contract Randomice is ERC721, Ownable, ReentrancyGuard {
using Strings for uint256;
string public baseURI;
uint256 public cost = 0.025 ether;
uint256 public minted;
uint256 public maxMint = 10;
bool public status = false;
mapping(address => bool) public mintlist;
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,... | 593,524 | [
1,
12366,
309,
1758,
29065,
622,
4520,
1245,
1147,
628,
3344,
434,
326,
4544,
1164,
310,
6980,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8072,
1812,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
202,
9940,
8139,
364,
2254,
5034,
31,
203,
203,
202,
1080,
1071,
1026,
3098,
31,
203,
202,
11890,
5034,
1071,
6991,
273,
374,
18,... |
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to,... | simple single-sig function modifier. | modifier onlyowner {
if (isOwner(msg.sender))
_;
}
| 897,010 | [
1,
9647,
2202,
17,
7340,
445,
9606,
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,
565,
9606,
1338,
8443,
288,
203,
3639,
309,
261,
291,
5541,
12,
3576,
18,
15330,
3719,
203,
5411,
389,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.4;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balan... | Set the symbol for display purposes
| symbol = "LAG"; | 33,339 | [
1,
694,
326,
3273,
364,
2562,
13694,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3273,
273,
315,
6552,
14432,
27573,
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,
-1... |
./partial_match/4/0x0E21b1fD7D6D5478F0d1b5eBf85384903E865562/sources/RPS.sol | Mapping from currentSeason to tokenid to approved player to spend the cards | mapping(uint256 => mapping(uint256 => address)) public approval;
| 8,510,440 | [
1,
3233,
628,
783,
1761,
2753,
358,
1147,
350,
358,
20412,
7291,
358,
17571,
326,
18122,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
2874,
12,
11890,
5034,
516,
1758,
3719,
1071,
23556,
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,
-... |
// hevm: flattened sources of src/DssSpell.sol
pragma solidity =0.5.12 >0.4.13 >=0.4.23 >=0.5.12;
// https://github.com/dapphub/ds-pause
interface DSPauseAbstract {... | inject NONSTANDARD NAMING
| function SUCK524(address, address, uint256) external; | 15,831,575 | [
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,
11726,
3507,
25,
3247,
12,
2867,
16,
1758,
16,
2254,
5034,
13,
3903,
31,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42/0x61197C3c13dEf79fE1bc87cB728AC4c036070696/sources/Master.sol | Update reward variables of the given pool to be up-to-date. | function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (lpSupply == 0) {
pool.lastRewardBlock = block.number;... | 3,445,997 | [
1,
1891,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
2845,
18,
2722,
17631,
1060,
1768,
13,
288,
203,
... |
//Address: 0x647f24fc14b75335adf97eb9792ce004471bf35a
//Contract name: MitToken
//Balance: 0 Ether
//Verification Date: 5/24/2018
//Transacion Count: 31
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure return... | * @title Contract that will work with ERC223 tokens./ | contract ERC223ReceivingContract {
event TokenFallback(address _from, uint _value, bytes _data);
function tokenFallback(address _from, uint _value, bytes _data)public {
TokenFallback(_from,_value,_data);
}
}
| 934,833 | [
1,
8924,
716,
903,
1440,
598,
4232,
39,
3787,
23,
2430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
4232,
39,
3787,
23,
4779,
9288,
8924,
288,
203,
203,
565,
871,
3155,
12355,
12,
2867,
389,
2080,
16,
2254,
389,
1132,
16,
1731,
389,
892,
1769,
203,
203,
565,
445,
1147,
12355,
12,
2867,
389,
2080,
16,
2254,
389,
1132,
1... |
./full_match/1/0x25e3C9dBAC271a2500071f9eea9993155836E9a0/sources/contracts/LiquityHandler.sol | @notice Initialier the contract state. @param _troveManager troveManager address @param _sortedTroves sortedTroves address @param _borrowerOperations borrowerOperations address @param _starknetCore starknetCore address @param _l1ETHBridge l1ETHBridge address @param _l2ETHBridge l2ETHBridge address @param _l1LUSDBridge... | ) public payable initializer {
__Pausable_init();
__Ownable_init();
initializeMessaging(_starknetCore);
initializeTroveHandler(_troveManager, _sortedTroves, _borrowerOperations, _initialICRPerc);
relayer = _relayer;
l1ETHBridge = _l1ETHBridge;
l2ETHBridge = _l... | 16,486,147 | [
1,
4435,
2453,
326,
6835,
919,
18,
225,
389,
88,
303,
537,
1318,
23432,
537,
1318,
1758,
225,
389,
10350,
56,
303,
3324,
3115,
56,
303,
3324,
1758,
225,
389,
70,
15318,
264,
9343,
29759,
264,
9343,
1758,
225,
389,
334,
1313,
2758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1071,
8843,
429,
12562,
288,
203,
3639,
1001,
16507,
16665,
67,
2738,
5621,
203,
3639,
1001,
5460,
429,
67,
2738,
5621,
203,
3639,
4046,
23389,
24899,
334,
1313,
2758,
4670,
1769,
203,
3639,
4046,
56,
303,
537,
1503,
2489... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "./SC_Agreement.sol";
import "./SC_DataUsage.sol";
import "./SC_Log.sol";
import "./Lib.sol";
/**
* @title Verifier
* @dev retrieve value in a vriable
*/
contract VerificationContract {
DataUsageContract private dataUsageContract;
... | get the log specified by this logID from LogContractwhether or not the addresses of actors recorded by the log smart contract conform tothose actors who have been given the consent by the users through the agreementsmart contract.whether or not the operations of each actor recorded by the log contract conform tothose ... | function verify(uint logID) public {
address violator;
LogContent memory log = logContract.retrieveLog(logID);
require(log.logID !=0, "The log does not exist!");
uint usageID = log.usageID;
DataUsage memory dataUsage = dataUsageContract.retrieveDataUsage(usageID);
V... | 14,106,675 | [
1,
588,
326,
613,
1269,
635,
333,
613,
734,
628,
1827,
8924,
3350,
2437,
578,
486,
326,
6138,
434,
27141,
16421,
635,
326,
613,
13706,
6835,
20156,
9997,
25711,
27141,
10354,
1240,
2118,
864,
326,
28243,
635,
326,
3677,
3059,
326,
196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
12,
11890,
613,
734,
13,
1071,
288,
203,
203,
3639,
1758,
12471,
639,
31,
203,
3639,
1827,
1350,
3778,
613,
273,
613,
8924,
18,
17466,
1343,
12,
1330,
734,
1769,
203,
3639,
2583,
12,
1330,
18,
1330,
734,
480,
20... |
./full_match/421613/0x733E9d0188F1f1fdC2C473A9ADa7864173a4dee0/sources/src/Games/Game.sol | @notice Creates a new bet and request randomness to Oracle, transfer the ERC20 tokens to the contract or refund the bet amount overflow if the bet amount exceed the maxBetAmount. @param tokenAddress Address of the token. @param tokenAmount The number of tokens bet. @param multiplier The bet amount leverage determines ... | function _newBet(
address tokenAddress,
uint256 multiplier,
uint8 rngCount
) internal whenNotPaused nonReentrant returns (Bet memory) {
if (bank.isAllowedToken(tokenAddress) == false) {
revert ForbiddenToken();
}
require(
rngCount >= RNG_MI... | 11,565,232 | [
1,
2729,
279,
394,
2701,
471,
590,
2744,
4496,
358,
28544,
16,
7412,
326,
4232,
39,
3462,
2430,
358,
326,
6835,
578,
16255,
326,
2701,
3844,
9391,
309,
326,
2701,
3844,
9943,
326,
943,
38,
278,
6275,
18,
225,
1147,
1887,
5267,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
2704,
38,
278,
12,
203,
3639,
1758,
1147,
1887,
16,
203,
3639,
2254,
5034,
15027,
16,
203,
3639,
2254,
28,
11418,
1380,
203,
565,
262,
2713,
1347,
1248,
28590,
1661,
426,
8230,
970,
1135,
261,
38,
278,
3778,
13,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pur... | * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is forwarded in {IERC721Receiver-onERC721Received} to contract recipients./ | function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
| 9,884,671 | [
1,
8650,
487,
288,
22044,
17,
654,
39,
27,
5340,
17,
67,
4626,
49,
474,
17,
2867,
17,
11890,
5034,
17,
20294,
68,
67,
4626,
49,
474,
68,
6487,
598,
392,
3312,
1375,
892,
68,
1569,
1492,
353,
19683,
316,
288,
45,
654,
39,
27,
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,
0,
0,
0... | [
1,
565,
445,
389,
4626,
49,
474,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1731,
3778,
389,
892,
203,
565,
262,
2713,
5024,
288,
203,
3639,
389,
81,
474,
12,
869,
16,
1147,
548,
1769,
203,
36... |
// SPDX-License-Identifier: AGPL-3.0-only
/*
Bounty.sol - SKALE Manager
Copyright (C) 2020-Present SKALE Labs
@author Dmytro Stebaiev
SKALE Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Softw... | nodeId => timestamp nodeId => left nodeId => validatorId | contract NodesMock is Permissions {
uint public nodesCount = 0;
uint public nodesLeft = 0;
mapping (uint => uint) public lastRewardDate;
mapping (uint => bool) public nodeLeft;
mapping (uint => uint) public owner;
}
NodesMock.sol - SKALE Manager
pragma solidity 0.6.10;
function registe... | 9,880,035 | [
1,
2159,
548,
516,
2858,
377,
11507,
516,
2002,
377,
11507,
516,
4213,
548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14037,
9865,
353,
15684,
288,
203,
565,
2254,
1071,
2199,
1380,
273,
374,
31,
203,
565,
2254,
1071,
2199,
3910,
273,
374,
31,
203,
565,
2874,
261,
11890,
516,
2254,
13,
1071,
1142,
17631,
1060,
1626,
31,
203,
565,
2874,
26... |
./partial_match/1/0x56bdcE44a0c4f7A29f9e822684874F8e8Fc01597/sources/TRON.sol | Anti-bot and anti-whale mappings and variables exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract TRON is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address private marketingWallet;
address private devWallet;
uint256 public maxTransactionAmount;
uint2... | 16,014,979 | [
1,
14925,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
4433,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
358,
4259,
6138,
3377,
506,
3221,
358,
279,
4207,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4235,
673,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
7010,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
31,
203,
... |
./full_match/5/0x70602a739Bb3Ead24E735b9C23E21FC1Da927524/sources/_thirdweb-dev/contracts/extension/DropSinglePhase.sol | //*/ @dev The active conditions for claiming tokens. @dev The ID for the active claim condition.//*/* @dev Map from an account and uid for a claim condition, to the last timestamp at which the account claimed tokens under that claim condition./* @dev Map from a claim condition uid to whether an address in an al... | ) public payable virtual override {
_beforeClaim(_receiver, _quantity, _currency, _pricePerToken, _allowlistProof, _data);
bytes32 activeConditionId = conditionId;
(bool validMerkleProof, ) = verifyClaimMerkleProof(_dropMsgSender(), _quantity, _allowlistProof);
bool toVerifyMaxQu... | 1,867,921 | [
1,
28111,
225,
1021,
2695,
4636,
364,
7516,
310,
2430,
18,
225,
1021,
1599,
364,
326,
2695,
7516,
2269,
18,
28111,
282,
1635,
628,
392,
2236,
471,
4555,
364,
279,
7516,
2269,
16,
358,
326,
1142,
2858,
4202,
622,
1492,
326,
2236,
751... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1071,
8843,
429,
5024,
3849,
288,
203,
3639,
389,
5771,
9762,
24899,
24454,
16,
389,
16172,
16,
389,
7095,
16,
389,
8694,
2173,
1345,
16,
389,
5965,
1098,
20439,
16,
389,
892,
1769,
203,
203,
3639,
1731,
1578,
2695,
341... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
import './Outcome.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';
import './interfaces/IAssetHolder.sol';
/**
* @dev An implementation of the IAssetHolder interface. The AssetHolder contract escrows ETH or tokens agains... | solhint-disable-line no-empty-blocks
| function _transferAsset(address payable destination, uint256 amount) internal virtual {} | 6,459,961 | [
1,
18281,
11317,
17,
8394,
17,
1369,
1158,
17,
5531,
17,
7996,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
13866,
6672,
12,
2867,
8843,
429,
2929,
16,
2254,
5034,
3844,
13,
2713,
5024,
2618,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0x80c7A58F06B8b39f9d9580efF73394F99D063E49/sources/HungryHamsters.sol | * @title ERC-721 Non-Fungible Token Standard, optional metadata extension/ | interface IERC721Metadata is IERC721 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function tokenURI(uint256 tokenId) external view returns (string memory);
pragma solidity >=0.8.0;
}
| 12,338,589 | [
1,
654,
39,
17,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
16,
3129,
1982,
2710,
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,
5831,
467,
654,
39,
27,
5340,
2277,
353,
467,
654,
39,
27,
5340,
288,
203,
565,
445,
508,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
445,
3273,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
44... |
./full_match/1/0xf607014406bc3Fa7aAB224a85A0318b4556e9C28/sources/browser/EditionIndexerV1.sol | The address of the index, the only address allowed to interact with the publishing functions
| address internal index; | 3,152,127 | [
1,
1986,
1758,
434,
326,
770,
16,
326,
1338,
1758,
2935,
358,
16592,
598,
326,
23636,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
2713,
770,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.24;
import 'ITime.sol';
import 'libraries/ContractExists.sol';
import 'libraries/Ownable.sol';
import 'Controller.sol';
contract TimeControlled is ITime, Ownable {
using ContractExists for address;
uint256 private timestamp = 1;
address private constant FOUNDATION_REP_ADDRESS = addre... | This is to confirm we are not on foundation network | constructor() public {
require(!FOUNDATION_REP_ADDRESS.exists());
timestamp = block.timestamp;
}
| 6,456,636 | [
1,
2503,
353,
358,
6932,
732,
854,
486,
603,
1392,
367,
2483,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
2583,
12,
5,
9294,
2689,
67,
28879,
67,
15140,
18,
1808,
10663,
203,
3639,
2858,
273,
1203,
18,
5508,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-08-02
*/
// Sources flattened with hardhat v2.5.0 https://hardhat.org
// File @openzeppelin/contracts/GSN/[email protected]
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the tr... | Manager fee recipient
| address feeRecipient; | 2,363,643 | [
1,
1318,
14036,
8027,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1758,
14036,
18241,
31,
13491,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.6.6;
import "./ERC20.sol";
import "./Address.sol";
import "./BokkyPooBahsDateTimeLibrary.sol";
import "./Strings.sol";
/**
* @title ACOToken
* @dev The implementation of the ACO token.
* The token is ERC20 compliance.
*/
contract ACOToken is ERC20 {
using Address for address;
/**
... | * @dev Internal function to validate the exercise operation and burn the respective tokens. @param account Address of the account that is exercising. @param tokenAmount Amount of tokens./ Whether an account has deposited collateral it only can exercise the extra amount of unassignable tokens. | function _validateAndBurn(address account, uint256 tokenAmount) notExpired internal {
require(tokenAmount > 0, "ACOToken::_validateAndBurn: Invalid token amount");
if (_accountHasCollateral(account)) {
require(balanceOf(account) > tokenData[account].amount, "ACOToken::_validateA... | 13,466,134 | [
1,
3061,
445,
358,
1954,
326,
24165,
1674,
471,
18305,
326,
17613,
2430,
18,
225,
2236,
5267,
434,
326,
2236,
716,
353,
431,
12610,
13734,
18,
225,
1147,
6275,
16811,
434,
2430,
18,
19,
17403,
392,
2236,
711,
443,
1724,
329,
4508,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5662,
1876,
38,
321,
12,
2867,
2236,
16,
2254,
5034,
1147,
6275,
13,
486,
10556,
2713,
288,
203,
3639,
2583,
12,
2316,
6275,
405,
374,
16,
315,
2226,
51,
1345,
2866,
67,
5662,
1876,
38,
321,
30,
1962,
1147,
3844,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
contract Login {
// Private variables
// Each bytes32 variable would occupy one slot
// because bytes32 variable has 256 bits(32*8)
// which is the size of one slot
// Slot 0
bytes32 private username;
// Slot 1
bytes32 private pa... | Private variables Each bytes32 variable would occupy one slot because bytes32 variable has 256 bits(32*8) which is the size of one slot Slot 0 Slot 1 | contract Login {
bytes32 private username;
bytes32 private password;
pragma solidity ^0.8.4;
constructor(bytes32 _username, bytes32 _password) {
username = _username;
password = _password;
}
} | 6,448,465 | [
1,
6014,
3152,
8315,
1731,
1578,
2190,
4102,
18928,
93,
1245,
4694,
2724,
1731,
1578,
2190,
711,
8303,
4125,
12,
1578,
28,
13,
1492,
353,
326,
963,
434,
1245,
4694,
23195,
374,
23195,
404,
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,
0,
0,
0,
0,
0,
0,
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,
11744,
288,
203,
203,
203,
565,
1731,
1578,
3238,
2718,
31,
203,
565,
1731,
1578,
3238,
2201,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
24,
31,
203,
565,
3885,
12,
3890,
1578,
225,
389,
5053,
16,
1731,
... |
pragma solidity ^0.5.8;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function tra... | @notice Constant string message to throw on lack of access @notice Public owner @notice Public map of minters @notice The event indicates a set of a new owner @param who is address of added owner @notice The event indicates the addition of a new minter @param who is address of added minter @notice The event indicates ... | constructor () public {
_setOwner(msg.sender);
}
| 5,456,093 | [
1,
6902,
533,
883,
358,
604,
603,
30679,
434,
2006,
225,
7224,
3410,
225,
7224,
852,
434,
1131,
5432,
225,
1021,
871,
8527,
279,
444,
434,
279,
394,
3410,
225,
10354,
353,
1758,
434,
3096,
3410,
225,
1021,
871,
8527,
326,
2719,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
3885,
1832,
1071,
288,
203,
565,
389,
542,
5541,
12,
3576,
18,
15330,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
// File: contracts/mockContracts/TestToken.sol
/* all this file is based on code from open zepplin
* https://github.com/OpenZeppelin/zeppelin-solidity/tree/master/contracts/token */
/**
* Standard ERC20 token
*
* Based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob... | save some gas by making only one contract call | function burnFrom(address _from, uint256 _value) public returns (bool) {
transferFrom( _from, msg.sender, _value );
return burn(_value);
}
| 11,886,422 | [
1,
5688,
2690,
16189,
635,
10480,
1338,
1245,
6835,
745,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18305,
1265,
12,
2867,
389,
2080,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
7412,
1265,
12,
389,
2080,
16,
1234,
18,
15330,
16,
389,
1132,
11272,
203,
3639,
327,
18305,
24899,
1132,
1769,... |
./full_match/11155111/0xbE3d97A00b4bE98A626a5c6DEc64f74F5F28da1f/sources/contracts/honeycast.sol | * @dev Same as {xref-Address-functionCall-address-bytes-}['functionCall'], but also transferring 'value' wei to 'target'. Requirements: - the calling contract must have an ETH balance of at least 'value'. - the called Solidity function must be 'payable'. _Available since v3.1._/ | function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| 3,815,448 | [
1,
8650,
487,
288,
22044,
17,
1887,
17,
915,
1477,
17,
2867,
17,
3890,
17,
97,
3292,
915,
1477,
17337,
1496,
2546,
906,
74,
20245,
296,
1132,
11,
732,
77,
358,
296,
3299,
10332,
29076,
30,
300,
326,
4440,
6835,
1297,
1240,
392,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
1377,
445,
445,
26356,
620,
12,
203,
1850,
1758,
1018,
16,
203,
1850,
1731,
3778,
501,
16,
203,
1850,
2254,
5034,
460,
203,
1377,
262,
2713,
1135,
261,
3890,
3778,
13,
288,
203,
1850,
327,
445,
26356,
620,
12,
3299,
16,
501,
16... |
pragma solidity 0.4.24;
/**
*
* This contract is used to set admin to the contract which has some additional features such as minting , burning etc
*
*/
contract Owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
... | This is the Main Railz Token Contract derived from the other two contracts Owned and ERC20 This notifies clients about the amount burnt , only admin is able to burn the contract | contract RailzToken is Owned, ERC20 {
using SafeMath for uint256;
event Burn(address from, uint256 value);
function RailzToken()
ERC20 (tokenSupply,"Railz","RLZ") public
{
owner = msg.sender;
}
function mintTokens(uint256 _mintedAmount) public onlyOwner {
... | 15,333,276 | [
1,
2503,
353,
326,
12740,
534,
671,
94,
3155,
13456,
10379,
628,
326,
1308,
2795,
20092,
14223,
11748,
471,
4232,
39,
3462,
1220,
19527,
7712,
2973,
326,
3844,
18305,
88,
269,
1338,
3981,
353,
7752,
358,
18305,
326,
6835,
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,
0,
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,
534,
671,
94,
1345,
353,
14223,
11748,
16,
4232,
39,
3462,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
2868,
203,
565,
871,
605,
321,
12,
2867,
628,
16,
2254,
5034,
460,
1769,
7010,
377,
203,
2... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./SwapUtils.sol";
/**
* @title AmplificationUtils library
* @notice A library to calculate and ramp the A parameter of a given `SwapUtils.Swap` struct.
* This library assumes the struct is ... | * @notice Calculate amount of tokens you receive on swap @param tokenIndexFrom the token the user wants to sell @param tokenIndexTo the token the user wants to buy @param dx the amount of tokens the user wants to sell. If the token charges a fee on transfers, use the amount that gets transferred after the fee. @return ... | function calculateSwap(
uint8 tokenIndexFrom,
uint8 tokenIndexTo,
uint256 dx
) external view returns (uint256) {
return swapStorage.calculateSwap(tokenIndexFrom, tokenIndexTo, dx);
}
| 970,660 | [
1,
8695,
3844,
434,
2430,
1846,
6798,
603,
7720,
225,
1147,
1016,
1265,
326,
1147,
326,
729,
14805,
358,
357,
80,
225,
1147,
1016,
774,
326,
1147,
326,
729,
14805,
358,
30143,
225,
6633,
326,
3844,
434,
2430,
326,
729,
14805,
358,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4604,
12521,
12,
203,
3639,
2254,
28,
1147,
1016,
1265,
16,
203,
3639,
2254,
28,
1147,
1016,
774,
16,
203,
3639,
2254,
5034,
6633,
203,
565,
262,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
7720,
3245,
... |
./full_match/1/0x0000000000aec84F5BFc2af15EAfb943bf4e3522/sources/lib/solady/src/utils/SignatureCheckerLib.sol | @solidity memory-safe-assembly Clean the upper 96 bits of `signer` in case they are dirty. `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. | function isValidSignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)
internal
view
returns (bool isValid)
assembly {
let m := mload(0x40)
mstore(0x00, hash)
let t :=
staticcall(
... | 4,875,417 | [
1,
36,
30205,
560,
3778,
17,
4626,
17,
28050,
9645,
326,
3854,
19332,
4125,
434,
1375,
2977,
264,
68,
316,
648,
2898,
854,
9603,
18,
1375,
2463,
13178,
554,
20338,
903,
506,
1375,
20,
92,
3462,
68,
12318,
2216,
16,
471,
1375,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4908,
5374,
8674,
12,
2867,
10363,
16,
1731,
1578,
1651,
16,
2254,
28,
331,
16,
1731,
1578,
436,
16,
1731,
1578,
272,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
4908,
13,
203,
3639,
19931,
288,
... |