file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/5/0xDFB72f3159C8a3C99D08048299a552De323c6f0e/sources/src/token/ERC1155/facets/sales/ERC1155TieredSalesOwnable.sol | * @title ERC1155 - Tiered Sales - Admin - Ownable @notice Used to manage which ERC1155 token is related to which the sales tier. @custom:type eip-2535-facet @custom:category NFTs @custom:peer-dependencies eip165:0x79f33254 @custom:provides-interfaces 0x76c5dd21/ | contract ERC1155TieredSalesOwnable is IERC1155TieredSalesAdmin, OwnableInternal {
using ERC1155TieredSalesStorage for ERC1155TieredSalesStorage.Layout;
function configureTierTokenId(uint256 tierId, uint256 tokenId) external onlyOwner {
ERC1155TieredSalesStorage.layout().tierToTokenId[tierId] = tokenId... | 7,040,351 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
2499,
2539,
300,
399,
2453,
329,
25996,
300,
7807,
300,
14223,
6914,
632,
20392,
10286,
358,
10680,
1492,
4232,
39,
2499,
2539,
1147,
353,
3746,
358,
1492,
326,
272,
5408,
17742,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2499,
2539,
15671,
329,
23729,
5460,
429,
353,
467,
654,
39,
2499,
2539,
15671,
329,
23729,
4446,
16,
14223,
6914,
3061,
288,
203,
565,
1450,
4232,
39,
2499,
2539,
15671,
329,
23729,
3245,
364,
4232,
39,
2499,
2539... |
./full_match/56/0x08C7dF11C014967c4d6285DA094a6504E06E7Ca6/sources/interfaces/IIndexSwap.sol | * @dev Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero./* @dev Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance./* @dev Returns the amount of tokens in existence./* @dev Returns the amoun... | struct Record {
uint40 lastDenormUpdate;
uint96 denorm;
uint8 index;
}
| 3,243,954 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
512,
7948,
1347,
1375,
1132,
68,
2430,
854,
10456,
628,
1245,
2236,
21863,
2080,
24065,
358,
4042,
21863,
869,
68,
2934,
3609,
716,
1375,
1132,
68,
2026,
506,
3634,
18,
20308,
632,
5206,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5059,
288,
203,
3639,
2254,
7132,
1142,
8517,
535,
1891,
31,
203,
3639,
2254,
10525,
5545,
535,
31,
203,
3639,
2254,
28,
770,
31,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "./ComponentNFT.sol";
struct AssemblableNFTSettings {
string name; ... | ERC1155: URI of all ERC1155 items
| string itemsURI; | 7,237,875 | [
1,
4625,
348,
7953,
560,
30,
225,
4232,
39,
2499,
2539,
30,
3699,
434,
777,
4232,
39,
2499,
2539,
1516,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
533,
1377,
1516,
3098,
31,
3639,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x8B89359a48C153994d2A6BF878b148f151d2A0c4/sources/contracts/market/MarketBase.sol | solhint-disable-line not-rely-on-time
| info.timestamp = uint64(now); | 9,473,691 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
1369,
486,
17,
266,
715,
17,
265,
17,
957,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1123,
18,
5508,
273,
2254,
1105,
12,
3338,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/56/0x97806884E34DE10B8bD1166064028a9572c159c7/sources/MasterChef.sol | TAO tokens created per block. | uint256 public taoPerBlock;
| 11,303,104 | [
1,
4625,
348,
7953,
560,
30,
225,
399,
20463,
2430,
2522,
1534,
1203,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17433,
2173,
1768,
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,... |
./full_match/80001/0x447dD7Ce33B1E891C81d80F66d592312996f2827/sources/contracts/DAO/Governance/TokenListGovernanceSetup.sol | @inheritdoc IPluginSetup Decode `_data` to extract the params needed for deploying and initializing `TokenListGovernance` plugin. Prepare and Deploy the plugin proxy. Prepare permissions Set permissions to be granted. Grant the list of permissions of the plugin to the DAO. Grant `EXECUTE_PERMISSION` of the DAO to the ... | function prepareInstallation(
address _dao,
bytes calldata _data
)
external
returns (address plugin, PreparedSetupData memory preparedSetupData)
{
(
TokenMajorityVotingBase.VotingSettings memory votingSettings,
address tokenCollection,
... | 855,173 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
3773,
7365,
6209,
1375,
67,
892,
68,
358,
2608,
326,
859,
3577,
364,
7286,
310,
471,
22584,
1375,
1345,
682,
43,
1643,
82,
1359,
68,
1909,
18,
7730,
471,
7406,
326,
1909,
2889,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2911,
21790,
12,
203,
3639,
1758,
389,
2414,
83,
16,
203,
3639,
1731,
745,
892,
389,
892,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1135,
261,
2867,
1909,
16,
13893,
7365,
751,
3778,
8208,
7365,
751,
13,
203,
565,
28... |
./full_match/44787/0x5a28a2fecf9b4cbFAaAc036De9B384AC345A7ea8/sources/contracts/StarFarm.sol | Withdraw LP tokens from MasterChef. | function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_msgSender()];
require(user.amount >= _amount, "withdraw: amount error");
updatePool(_pid);
(uint256 _selfGain, uint256 _parentGain) = sta... | 13,291,613 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
511,
52,
2430,
628,
13453,
39,
580,
74,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
598,
9446,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
67,
... |
/**
*Submitted for verification at Etherscan.io on 2021-06-25
*/
/**
*Submitted for verification at Etherscan.io on 2021-06-21
Four Twenty Token
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address pa... | Contract implementation Tax and team fees will start at 0 so we don't have a big impact when deploying to Uniswap Team wallet address is null but the method to set the address is exposed We will set a minimum amount of tokens to be swaped => 5M | contract FT is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mappin... | 629,470 | [
1,
4625,
348,
7953,
560,
30,
225,
13456,
4471,
18240,
471,
5927,
1656,
281,
903,
787,
622,
374,
1427,
732,
2727,
1404,
1240,
279,
5446,
15800,
1347,
7286,
310,
358,
1351,
291,
91,
438,
10434,
9230,
1758,
353,
446,
1496,
326,
707,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6835,
478,
56,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
3639,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
3639,
1450,
5267,
364,
1758,
31,
203,
203,
3639,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
... |
./partial_match/56/0x2c0e65B28aff4A97e11d2c8F9dEeAfE30C2749d2/sources/RewardEscrow.sol | COPIED AND MODIFIED FROM SYNTHETIX: https:docs.synthetix.io/contracts/source/contracts/rewardescrow | contract RewardEscrow is Governable, IRewardEscrow {
using SafeMath for uint;
IERC20 public beluga;
mapping(address => bool) public rewardPools;
mapping(address => uint[2][]) public vestingSchedules;
mapping(address => uint) public totalEscrowedAccountBalance;
mapping(address => uint) publi... | 11,095,342 | [
1,
4625,
348,
7953,
560,
30,
225,
7910,
1102,
2056,
4116,
8663,
13519,
4571,
7068,
1784,
44,
1584,
12507,
30,
2333,
30,
8532,
18,
11982,
451,
278,
697,
18,
1594,
19,
16351,
87,
19,
3168,
19,
16351,
87,
19,
266,
2913,
742,
492,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
534,
359,
1060,
6412,
492,
353,
611,
1643,
6914,
16,
15908,
359,
1060,
6412,
492,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
467,
654,
39,
3462,
1071,
3952,
637,
69,
31,
203,
203,
565,
2874,
12,
286... |
pragma solidity 0.5.10;
contract Context {
constructor () internal { }
function _MSGSENDER793() internal view returns (address payable) { //inject NONSTANDARD NAMING
return msg.sender;
}
function _MSGDATA330() ... | inject NONSTANDARD NAMING
| function EXTRACTOUTPUTATINDEX182(bytes memory _vout, uint8 _index) internal pure returns (bytes memory) { | 1,784,075 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
23370,
1268,
15527,
789,
9199,
28246,
12,
3890,
3778,
389,
90,
659,
16,
2254,
28,
389,
1615,
13,
2713,
16618,
1135,
261,
3890,
3778,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
* Copyright 2017-2020, bZeroX, LLC <https://bzx.network/>. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations i... | vesting amounts get updated before sync | modifier updateRewards(address account) {
uint256 _bzrxPerTokenStored = bzrxPerTokenStored;
uint256 _stableCoinPerTokenStored = stableCoinPerTokenStored;
(uint256 bzrxRewardsEarned, uint256 stableCoinRewardsEarned, uint256 bzrxRewardsVesting, uint256 stableCoinRewardsVesting) = _earned(
... | 260,376 | [
1,
4625,
348,
7953,
560,
30,
225,
331,
10100,
30980,
336,
3526,
1865,
3792,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9606,
1089,
17631,
14727,
12,
2867,
2236,
13,
288,
203,
3639,
2254,
5034,
389,
25292,
20122,
2173,
1345,
18005,
273,
24788,
20122,
2173,
1345,
18005,
31,
203,
3639,
2254,
5034,
389,
15021,
27055,
2173,
1345,
18005,
273,
14114,
2... |
/**
*Submitted for verification at Etherscan.io on 2022-02-27
*/
// Verified using https://dapp.tools
// hevm: flattened sources of /nix/store/vshg2d131zzwv70wlf0ivb4pzch0jhw6-geb-fsm-governance-interface/dapp/geb-fsm-governance-interface/src/FsmGovernanceInterface.sol
pragma solidity =0.6.7;
////// /nix/store/vshg... | @notice Set a new owner in the contract @param owner_ New owner to set/ | function setOwner(address owner_) external onlyOwner {
owner = owner_;
emit SetOwner(owner);
}
| 6,762,628 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
279,
394,
3410,
316,
326,
6835,
632,
891,
3410,
67,
1166,
3410,
358,
444,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31309,
12,
2867,
3410,
67,
13,
3903,
1338,
5541,
288,
203,
3639,
3410,
273,
3410,
67,
31,
203,
3639,
3626,
1000,
5541,
12,
8443,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./Palettes.sol";
library SchemesLib {
using PalettesLi... | newScheme creates a scheme [<label>, <packed variations>, <css prop>...] | function newScheme(string[] calldata a,
string[] calldata b,
string[] calldata c,
string[] calldata d,
string[] calldata e,
string[] calldata f,
string[] calldata g,
... | 7,307,614 | [
1,
4625,
348,
7953,
560,
30,
225,
394,
9321,
3414,
279,
4355,
306,
32,
1925,
20401,
411,
2920,
329,
28401,
20401,
411,
5212,
2270,
34,
2777,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
394,
9321,
12,
1080,
8526,
745,
892,
279,
16,
203,
15604,
533,
8526,
745,
892,
324,
16,
203,
15604,
533,
8526,
745,
892,
276,
16,
203,
15604,
533,
8526,
745,
892,
302,
16,
203,
15604,
533,
8526,
745,
892,
425,
16,
2... |
//Address: 0x1bd3435b7db7dd77753b1283e2a9d751f000367b
//Contract name: WitToken
//Balance: 0 Ether
//Verification Date: 6/18/2018
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity 0.4.24;
//@title WitToken
//@author(luoyuanq233@gmail.com)
//@dev 该合约参考自openzeppelin的erc20实现
//1.使用openzeppelin的SafeMath库防止运算... | * @dev modifier to scope access to coo/ | modifier onlyCOO() {
checkRole(msg.sender, ROLE_COO);
_;
}
| 5,364,878 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9606,
358,
2146,
2006,
358,
1825,
83,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
1338,
3865,
51,
1435,
288,
203,
565,
866,
2996,
12,
3576,
18,
15330,
16,
22005,
67,
3865,
51,
1769,
203,
565,
389,
31,
203,
225,
289,
203,
21281,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.4;
import "./Data.sol";
// import "hardhat/console.sol";
library HashOnions {
struct Info {
bytes32 sourceHashOnion;
bytes32 onWorkHashOnion;
}
}
library Fork {
struct Info {
uint16 workIndex; // 0: zFork, >0: mFork
... | @param _lastOnionHead Before wrong fork's onionHead @param _lastDestOnionHead Before wrong fork's destOnionHead Create a new Fork set newFork Determine whether there is a fork with newFork.destOnionHead as the key storage | function createMFork(
mapping(bytes32 => Info) storage self,
uint256 chainId,
bytes32 _lastOnionHead,
bytes32 _lastDestOnionHead,
uint16 _index,
Data.TransferData calldata _transferData
) internal returns (Info memory) {
Info memory newFork;
newFo... | 1,841,078 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
891,
389,
2722,
1398,
285,
1414,
11672,
7194,
12515,
1807,
603,
285,
1414,
632,
891,
389,
2722,
9378,
1398,
285,
1414,
11672,
7194,
12515,
1807,
1570,
1398,
285,
1414,
1788,
279,
394,
27599,
444,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
752,
13542,
778,
12,
203,
3639,
2874,
12,
3890,
1578,
516,
3807,
13,
2502,
365,
16,
203,
3639,
2254,
5034,
2687,
548,
16,
203,
3639,
1731,
1578,
389,
2722,
1398,
285,
1414,
16,
203,
3639,
1731,
1578,
389,
2722,
9378,
... |
/**
*Submitted for verification at Etherscan.io on 2021-01-31
*/
// File: contracts\open-zeppelin-contracts\token\ERC20\IERC20.sol
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/
interface ... | * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), Reverts when dividing by zero. Counterpart to Solidity's `%` operator. This function uses a `revert` opcode (which leaves remaining gas untouched) while Solidity uses an invalid opcode to revert (consuming all remaining gas). Req... | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0, "SafeMath: modulo by zero");
return a % b;
}
| 4,309 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
10022,
434,
3739,
10415,
2795,
9088,
12321,
18,
261,
22297,
3571,
26109,
3631,
868,
31537,
1347,
3739,
10415,
635,
3634,
18,
9354,
2680,
358,
348,
7953,
560,
1807,
12430,
68,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
681,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
70,
480,
374,
16,
315,
9890,
10477,
30,
26109,
635,
3634,
8863,
203,
3639,
327,
279,
738,
324,
31,... |
./partial_match/4/0x3d8A2D0598Ff9B47E848F91A93B36c39BB40BDde/sources/METHChef.sol | View function to see pending METHs on frontend. | function pendingMETH(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accMethPerShare = pool.accMethPerShare;
uint256 lpSupply = methWethPair.balanceOf(address(this));
... | 8,735,268 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
4634,
10078,
87,
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,
... | [
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,
4634,
5277,
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,
1675... |
/*
Copyright 2019-2020 eMobilify GmbH
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... | store operators to get list | address[] private operators;
| 7,220,267 | [
1,
4625,
348,
7953,
560,
30,
225,
1707,
12213,
358,
336,
666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
8526,
3238,
12213,
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,
-100,... |
./full_match/1/0x929731831D39e765ebA04411930eb5414208d18A/sources/contracts/AnbotoExecV1.sol | GAS TANK* @notice Deposit Gas @dev This function stores sent value to sender gas tank/ | receive() external payable {
depositGas();
}
| 17,007,931 | [
1,
4625,
348,
7953,
560,
30,
225,
611,
3033,
399,
20201,
14,
632,
20392,
4019,
538,
305,
31849,
632,
5206,
1220,
445,
9064,
3271,
460,
358,
5793,
16189,
268,
2304,
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,
202,
18149,
1435,
3903,
8843,
429,
288,
203,
202,
202,
323,
1724,
27998,
5621,
203,
202,
97,
203,
203,
2,
-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.18;
// math library
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(... | * @dev Function to check the amount of tokens that an owner allowed to a spender Added due to backwards compatibility with ERC20 @param _owner address The address which owns the funds @param _spender address The address which will spend the funds/ | function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
return allowance[_owner][_spender];
}
| 14,565,670 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
866,
326,
3844,
434,
2430,
716,
392,
3410,
2935,
358,
279,
17571,
264,
1377,
25808,
6541,
358,
12727,
8926,
598,
4232,
39,
3462,
632,
891,
389,
8443,
1758,
1021,
1758,
1492,
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,
0... | [
1,
565,
445,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
1071,
1476,
1135,
261,
11890,
5034,
4463,
13,
288,
203,
3639,
327,
1699,
1359,
63,
67,
8443,
6362,
67,
87,
1302,
264,
15533,
203,
565,
289,
203,
203,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
import '@openzeppelin/contracts/security/PullPayment.sol';
import './Governed.sol';
import './OwnerBalanceContributor.sol';
import './Macabris.sol';
import './Bank.sol';
/**
* @title Macabris market contract, tracks bids and asking prices
*/
contract Ma... | * @dev Checks if the payouts are finished or have been stopped manually @return True if finished or stopped/ | function hasEnded() public view returns (bool) {
return stopTime > 0 || block.timestamp >= getEndTime();
}
| 10,435,131 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13074,
309,
326,
293,
2012,
87,
854,
6708,
578,
1240,
2118,
9627,
10036,
632,
2463,
1053,
309,
6708,
578,
9627,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
711,
28362,
1435,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
2132,
950,
405,
374,
747,
1203,
18,
5508,
1545,
9968,
950,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x6b0648729571c881Eb6D36cC12DCA04767Ee6706/sources/contracts/v1/MinterV1.sol | * @notice Updates this minter's price per token of collection `_collectionId` to be '_pricePerToken`./ | function updatePricePerToken(
uint256 _collectionId,
uint256 _pricePerToken
) external onlyValidCollectionId(_collectionId) onlyOwner {
require(_pricePerToken > 0, "Price must be > 0");
collectionConfigs[_collectionId].pricePerToken = _pricePerToken;
emit PricePerTokenUpd... | 8,415,567 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15419,
333,
1131,
387,
1807,
6205,
1534,
1147,
434,
1849,
1375,
67,
5548,
548,
68,
358,
506,
2070,
8694,
2173,
1345,
8338,
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,
1089,
5147,
2173,
1345,
12,
203,
3639,
2254,
5034,
389,
5548,
548,
16,
203,
3639,
2254,
5034,
389,
8694,
2173,
1345,
203,
565,
262,
3903,
1338,
1556,
2532,
548,
24899,
5548,
548,
13,
1338,
5541,
288,
203,
3639,
2583,
24... |
./partial_match/42/0xD4fF394573927818d6255C7ca501D4F900A2BbD8/sources/DEFOWhaleClub.sol | The Uniswap v2 Router The Uniswap v2 Router The WETH Token The USDT Token The DefholdPools Info of pool. | contract DEFOWhaleClub is DEFOERC20, Ownable, ReentrancyGuard {
using SafeMath for uint256;
using SafeERC20 for IERC20;
IUniswapV2Router02 internal uniswapRouter = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
IUniswapV2Pair internal uniswapPair;
IERC20 internal weth;
IERC20 inte... | 3,379,608 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
1351,
291,
91,
438,
331,
22,
9703,
1021,
1351,
291,
91,
438,
331,
22,
9703,
1021,
678,
1584,
44,
3155,
1021,
11836,
9081,
3155,
1021,
10922,
21056,
16639,
3807,
434,
2845,
18,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
2030,
3313,
2888,
5349,
2009,
373,
353,
2030,
3313,
654,
39,
3462,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
202,
9940,
14060,
10477,
364,
2254,
5034,
31,
203,
202,
9940,
14060,
654,
39,
3462,
364,
467,
654,
... |
./partial_match/1/0x9CeDB174BD547f9a0f99Dca63660710d59B75AD4/sources/Strategy.sol | * @dev Interface of the ERC20 standard as defined in the EIP./ | interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
... | 4,079,772 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
871,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
5034,
460,
1769,
203,
203,
565,
871,
1716,
685,
1125,
12,
2867,
8808,
3410,
16,
1758,
8808,
17571,
264,
16,
2254,
5034,
46... |
pragma solidity ^0.4.18;
//
// AddressWars
// (http://beta.addresswars.io/)
// Public Beta
//
//
// .d8888b. .d8888b.
// d88P Y88b d88P Y88b
// 888 888 888 888
// 888 ... | now do the same for your opponent | if (allCards[0][i]._cardModifier != uint256(MODIFIER.R_V)) {
if (
(allCards[1][i]._cardType == uint256(TYPE.FIRE) && allCards[0][i]._cardType == uint256(TYPE.NATURE)) ||
(allCards[1][i]._cardType == uint256(TYPE.WATER) && allCards[0][i]._cardType == uint256(TYPE.FIRE)) ||
(al... | 2,397,877 | [
1,
4625,
348,
7953,
560,
30,
225,
2037,
741,
326,
1967,
364,
3433,
1061,
1029,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
309,
261,
454,
30492,
63,
20,
6362,
77,
65,
6315,
3327,
9829,
480,
2254,
5034,
12,
6720,
10591,
18,
54,
67,
58,
3719,
288,
203,
3639,
309,
261,
203,
1850,
261,
454,
30492,
63,
21,
6362,
77,
65,
6315,
3327,
559,
422,
225... |
//This is test solidity contract
//Owner : Sungjae Hwang (sjhwang87@kaist.ac.kr)
pragma solidity 0.4.25;
contract A{
uint public a;
function setA() public{a = 1;}
}
contract B is A{
}
contract C{
uint a;
function order(uint z){a = 6;}//****Detect**** Inheritance order confusion
}
contract D{
ui... | Detect type casting toarbitrary contracts | B t = B(a); | 6,427,262 | [
1,
4625,
348,
7953,
560,
30,
13796,
618,
27660,
358,
297,
3682,
3345,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
605,
268,
273,
605,
12,
69,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity 0.6.12;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view retu... | fee is calculated in _claim | function claimUpTo(uint256 day) public payable {
uint256 len = minerMineDays[msg.sender].length;
require(len != 0, "no mines");
require(day <= _getCurrentDay(), "invalid day");
uint256 dayLastClaimedFor = minerDayLastClaimedFor[msg.sender] == 0
? minerMineDays[msg.s... | 7,394,887 | [
1,
4625,
348,
7953,
560,
30,
225,
14036,
353,
8894,
316,
389,
14784,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7516,
1211,
774,
12,
11890,
5034,
2548,
13,
1071,
8843,
429,
288,
203,
203,
3639,
2254,
5034,
562,
273,
1131,
264,
49,
558,
9384,
63,
3576,
18,
15330,
8009,
2469,
31,
203,
203,
3639,
2583,
12,
1897,
480,
374,
16,
315,... |
./full_match/97/0x8B4032b71C804517D54878d78730c230F768Ad57/sources/tests/BSC ChainLinkTests/PW.sol | // VRF - Chainlink/* Random Logic/ Random number function - requests random words from chainlink Request random words first | function requestRanNum(uint32 _numWords) internal {
randomNumContract.requestRandomWords(_numWords);
}
| 5,018,719 | [
1,
4625,
348,
7953,
560,
30,
368,
776,
12918,
300,
7824,
1232,
20308,
8072,
10287,
19,
8072,
1300,
445,
300,
3285,
2744,
4511,
628,
2687,
1232,
1567,
2744,
4511,
1122,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
590,
54,
304,
2578,
12,
11890,
1578,
389,
2107,
7363,
13,
2713,
288,
203,
3639,
2744,
2578,
8924,
18,
2293,
8529,
7363,
24899,
2107,
7363,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.24;
contract FriendContract{
mapping(address=>address[]) friends_list; // 친구들의 주소를 담는 mapping, 1주소당 여러 친구의 주소를 저장
function addFriend(address friend) public { // 친구의 주소를 매개변수로 전달받아 mapping 데이터에 추가
friends_list[msg.sender].push(friend); // friend_list에 친구를 추가
}
func... | 친구들의 주소를 담는 mapping, 1주소당 여러 친구의 주소를 저장
| mapping(address=>address[]) friends_list; | 15,802,449 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
173,
122,
255,
171,
118,
110,
172,
246,
102,
173,
256,
251,
225,
173,
101,
125,
173,
233,
239,
172,
103,
125,
225,
172,
238,
117,
172,
237,
247,
2874,
16,
404,
173,
101,
125,
173,
233,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2874,
12,
2867,
9207,
2867,
63,
5717,
284,
22259,
67,
1098,
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... |
./partial_match/1/0xea0E551A5e4A7bdC839b7a153a9406532bC99487/sources/DELUTIONARY.sol | CUSTOM LP LOCK CODE
| uint256 public lpPercToWithDraw; | 15,777,762 | [
1,
4625,
348,
7953,
560,
30,
225,
21012,
511,
52,
14631,
11128,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
12423,
2173,
71,
774,
1190,
6493,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/137/0x273fee49582FCF509F917910D4380D40dCba4551/sources/project_/contracts/DripVault.sol | Allocate fees, and balance to the recipient | allocateFees(_undividedDividends);
| 4,704,348 | [
1,
4625,
348,
7953,
560,
30,
225,
22222,
1656,
281,
16,
471,
11013,
358,
326,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10101,
2954,
281,
24899,
1074,
427,
13898,
7244,
350,
5839,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.0;
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner {
owner = newOwner;
}
}
contract Token ... | Modifier that allows only shareholders to vote and create new proposals | modifier onlyShareholders {
require(sharesTokenAddress[msg.sender] > 0);
_;
}
| 5,533,516 | [
1,
4625,
348,
7953,
560,
30,
225,
12832,
716,
5360,
1338,
7433,
9000,
358,
12501,
471,
752,
394,
450,
22536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
9535,
9000,
288,
203,
3639,
2583,
12,
30720,
1345,
1887,
63,
3576,
18,
15330,
65,
405,
374,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* ... | premine the dev names (sorry not sorry) No keys are purchased with this method, it's simply locking our addresses, PID's and names for referral codes. | {
plyr_[1].addr = 0xFF94E18e9679365d4D25884A6899B5134B06b55F;
plyr_[1].name = "justo";
plyr_[1].names = 1;
pIDxAddr_[0xFF94E18e9679365d4D25884A6899B5134B06b55F] = 1;
pIDxName_["justo"] = 1;
plyrNames_[1]["justo"] = true;
plyrNameList_[1][1] = "justo";
... | 359,531 | [
1,
4625,
348,
7953,
560,
30,
225,
675,
3081,
326,
4461,
1257,
261,
2467,
1176,
486,
272,
21637,
13,
2631,
1311,
854,
5405,
343,
8905,
598,
333,
707,
16,
518,
1807,
8616,
18887,
3134,
6138,
16,
14788,
1807,
471,
1257,
364,
1278,
2908... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
293,
715,
86,
67,
63,
21,
8009,
4793,
273,
374,
6356,
11290,
41,
2643,
73,
10525,
7235,
5718,
25,
72,
24,
40,
2947,
28,
5193,
37,
9470,
2733,
38,
25,
25213,
38,
7677,
70,
2539,
42,
31,
203,
3639,
293,
7... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
// ABOUT: HAILSTONE is a work in solidity celebrating the Collatz c... | - The three.js IPFS content becomes unavailable and the contract owner is unable or unwilling to correct this. | function customGraphDisable(uint _tokenId, bool _b) external onlyApprovedOrOwner(_tokenId) {
customVis[_tokenId] = customVis[_tokenId].chooseBit(FLAG_GRAPH_DISABLE, _b);
}
| 627,175 | [
1,
4625,
348,
7953,
560,
30,
282,
300,
1021,
8925,
18,
2924,
2971,
4931,
913,
12724,
15781,
471,
326,
6835,
3410,
353,
13496,
578,
640,
91,
5789,
565,
358,
3434,
333,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1679,
4137,
11879,
12,
11890,
389,
2316,
548,
16,
1426,
389,
70,
13,
3903,
1338,
31639,
1162,
5541,
24899,
2316,
548,
13,
288,
203,
3639,
1679,
3282,
63,
67,
2316,
548,
65,
273,
1679,
3282,
63,
67,
2316,
548,
8009,
25... |
./partial_match/1/0x738c7E04863256b8AB1Daf04940b95AA2E58Cf69/sources/contracts/GasLibs.sol | * @dev depending on seed, provide a max delta for color changes 25% chance of a 50 delta 25% chance of a 35 delta 25% chance of a 25 delta 15% chance of a 15 delta 10% chance of a 5 delta/ | function getMaxDelta(uint256 seed) public pure returns (uint8) {
uint8 multiplier = 1;
uint8 random = uint8((seed >> 128) % 100);
if (random < 25) {
multiplier = 50;
multiplier = 35;
multiplier = 25;
multiplier = 15;
multiplier = 5;
}
return multiplier;
}
| 15,541,938 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8353,
603,
5009,
16,
5615,
279,
943,
3622,
364,
2036,
3478,
6969,
9,
17920,
434,
279,
6437,
3622,
6969,
9,
17920,
434,
279,
13191,
3622,
6969,
9,
17920,
434,
279,
6969,
3622,
4711,
9,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7288,
9242,
12,
11890,
5034,
5009,
13,
1071,
16618,
1135,
261,
11890,
28,
13,
288,
203,
565,
2254,
28,
15027,
273,
404,
31,
203,
565,
2254,
28,
2744,
273,
2254,
28,
12443,
12407,
1671,
8038,
13,
738,
2130,
1769,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2021-06-26
*/
/**
*Submitted for verification at Etherscan.io on 2021-04-23
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
... | Contract implementation Tax and team fees will start at 0 so we don't have a big impact when deploying to Uniswap Team wallet address is null but the method to set the address is exposed We will set a minimum amount of tokens to be swaped => 5M | contract GodOfThunder is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
... | 7,645,312 | [
1,
4625,
348,
7953,
560,
30,
225,
13456,
4471,
18240,
471,
5927,
1656,
281,
903,
787,
622,
374,
1427,
732,
2727,
1404,
1240,
279,
5446,
15800,
1347,
7286,
310,
358,
1351,
291,
91,
438,
10434,
9230,
1758,
353,
446,
1496,
326,
707,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6835,
611,
369,
951,
1315,
9341,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
3639,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
3639,
1450,
5267,
364,
1758,
31,
203,
203,
3639,
2874,
261,
2867,
516,
2254,
... |
pragma solidity ^0.6.6;
import "./Permissions.sol";
import "./SafeMath.sol";
import "./Address.sol";
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint25... | * @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18 and a {totalSupply} of the token. All four of these values are immutable: they can only be set once during construction./_name = "Earn Reflect Finance";_symbol = "eRFI"; | constructor () public {
_name = "Earn Reflect Finance";
_symbol = "eRFI";
_decimals = 18;
_totalSupply = 15000000000000000000000;
_balances[creator()] = _totalSupply;
emit Transfer(address(0), creator(), _totalSupply);
}
| 642,857 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5779,
11643,
288,
31734,
97,
598,
279,
805,
460,
434,
6549,
471,
279,
288,
4963,
3088,
1283,
97,
434,
326,
1147,
18,
4826,
12792,
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,
3885,
1832,
1071,
288,
203,
3639,
389,
529,
273,
315,
41,
1303,
17906,
9458,
1359,
14432,
203,
3639,
389,
7175,
273,
315,
73,
54,
1653,
14432,
203,
3639,
389,
31734,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
4711... |
./full_match/4/0xfB8f93941a926cB731fa9ff15B4B68eD2Ab34204/sources/MyContract/MyNFT.sol | Keep track of total mints (used for the presale) | totalMinted += ids.length;
| 12,289,134 | [
1,
4625,
348,
7953,
560,
30,
225,
10498,
3298,
434,
2078,
312,
28142,
261,
3668,
364,
326,
4075,
5349,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2078,
49,
474,
329,
1011,
3258,
18,
2469,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./utils/OwnablePausable.sol";
import "./uniswap/IUnis... | * @param token Target token. @return Is target token allowed./ | function isAllowedToken(address token) public view returns (bool) {
return allowedTokens[token].length != 0;
}
| 15,823,983 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
1147,
5916,
1147,
18,
632,
2463,
2585,
1018,
1147,
2935,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
21956,
1345,
12,
2867,
1147,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
2935,
5157,
63,
2316,
8009,
2469,
480,
374,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/137/0xcaa24151981798eb16C772ae683d9d61ebdB4aE5/sources/project_/contracts/BT.sol | * @notice add new payment plan @param _subscription: {bool active;uint256 priceInQuoteToken;address paymentToken;address exchangePair;uint256 erc20SuccessorsLimit;}/not free | function addSubscription(
Subscription calldata _subscription
) external onlyOwner {
require(
_subscription.paymentToken !=address(0)
|| _subscription.priceInQuoteToken == 0,
"paymentToken cannot be zero address"
);
if (_subscription.exchange... | 4,784,283 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
527,
394,
5184,
4995,
632,
891,
389,
11185,
30,
288,
6430,
2695,
31,
11890,
5034,
6205,
382,
10257,
1345,
31,
2867,
5184,
1345,
31,
2867,
7829,
4154,
31,
11890,
5034,
6445,
71,
3462,
451... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
6663,
12,
203,
3639,
12132,
745,
892,
389,
11185,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
389,
11185,
18,
9261,
1345,
480,
2867,
12,
20,
13,
7010,
5411,
747,
389,
11185,
18,
8694,
38... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "contracts/interface/ICouncil.... | * @dev 후원회차의 개수 @param _fund 투자의 주소 @return count_ 후원회차의 개수/ | function getDistributionsCount(address _fund) external view returns(uint256 count_) {
count_ = funds[_fund].length;
}
| 12,759,640 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
225,
174,
254,
231,
173,
254,
243,
174,
253,
239,
173,
113,
106,
173,
256,
251,
225,
171,
113,
255,
173,
235,
251,
632,
891,
389,
74,
1074,
225,
174,
235,
110,
173,
257,
243,
173,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
336,
1669,
15326,
1380,
12,
2867,
389,
74,
1074,
13,
3903,
1476,
1135,
12,
11890,
5034,
1056,
67,
13,
288,
203,
3639,
1056,
67,
273,
284,
19156,
63,
67,
74,
1074,
8009,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-1... |
./partial_match/1/0x21b9F852534Fb9DdC3A0A7B24f067B50d8AC9a99/sources/DODOFeeRouteProxy.sol | @notice split version, describes one token path with several pools each time. Called one token pair with several pools "one split" @param splitNumber record pool number in one split, determine sequence(poolInfo) array subscript in transverse. Begin with 0 for example, [0,1, 3], mean the first split has one(1 - 0) pool... | function dodoMutliSwap(
uint256 fromTokenAmount,
uint256 minReturnAmount,
uint256[] memory splitNumber,
address[] memory midToken,
address[] memory assetFrom,
bytes[] memory sequence,
bytes memory feeData,
uint256 deadLine
) external payable jud... | 9,410,003 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1416,
1177,
16,
19605,
1245,
1147,
589,
598,
11392,
16000,
1517,
813,
18,
11782,
1245,
1147,
3082,
598,
11392,
16000,
315,
476,
1416,
6,
632,
891,
1416,
1854,
1409,
2845,
1300,
316,
1245,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
302,
7370,
7420,
549,
12521,
12,
203,
3639,
2254,
5034,
628,
1345,
6275,
16,
203,
3639,
2254,
5034,
1131,
990,
6275,
16,
203,
3639,
2254,
5034,
8526,
3778,
1416,
1854,
16,
21281,
3639,
1758,
8526,
3778,
7501,
1345,
16,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./SelfiePool.sol";
contract AttackSelfie {
DamnValuableTokenSnapshot private dvt;
SimpleGovernance private simpleGovernance;
SelfiePool private selfiePool;
address private owner;
uint256 private actionId;
constructor(
a... | queue gov actionpay back loan | function receiveTokens(address, uint256 _borrowAmount) external {
dvt.snapshot();
actionId = simpleGovernance.queueAction(
address(selfiePool),
abi.encodeWithSignature("drainAllFunds(address)", owner),
0
);
dvt.transfer(address(selfiePool), _borro... | 5,522,449 | [
1,
4625,
348,
7953,
560,
30,
2389,
31841,
1301,
10239,
1473,
28183,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6798,
5157,
12,
2867,
16,
2254,
5034,
389,
70,
15318,
6275,
13,
3903,
288,
203,
3639,
302,
11734,
18,
11171,
5621,
203,
3639,
1301,
548,
273,
4143,
43,
1643,
82,
1359,
18,
4000,
1803,
12,
203,
5411,
1758,
12,
2890,
13... |
./full_match/1/0xE155F64B9aD8c81318c313196a60c72e72fD2cD1/sources/ChaintoolsFinal.sol | old -> new token migration | function completeMigration(
address[] calldata addressList,
uint256[] calldata tokenAmounts
) external payable {
require(addressList.length == tokenAmounts.length);
require(startStamp == 0, "already_complete");
if (msg.sender != apest) revert Auth();
uint256 size ... | 4,971,778 | [
1,
4625,
348,
7953,
560,
30,
1592,
317,
394,
1147,
6333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3912,
10224,
12,
203,
3639,
1758,
8526,
745,
892,
1758,
682,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
1147,
6275,
87,
203,
565,
262,
3903,
8843,
429,
288,
203,
3639,
2583,
12,
2867,
682,
18,
2469,
422,
1147,
6275,
8... |
//Address: 0x398e41ac3d5972b4bac2320cd130c7a25ca446f7
//Contract name: Crowdsale
//Balance: 0 Ether
//Verification Date: 4/6/2018
//Transacion Count: 1670
// CODE STARTS HERE
pragma solidity ^0.4.21;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/iss... | * @title Standard ERC20 token @dev Implementation of the basic standard token./ Name of the token Token abbreviation Decimal places Zeros after the point | contract StandardToken is ERC20, BasicToken {
string constant public name = "Quant";
string constant public symbol = "QNT";
uint8 constant public decimals = 18;
uint256 constant public DECIMAL_ZEROS = 1000000000000000000;
mapping (address => mapping (address => uint256)) internal allowed;
address public ... | 5,438,393 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
8263,
4232,
39,
3462,
1147,
632,
5206,
25379,
434,
326,
5337,
4529,
1147,
18,
19,
1770,
434,
326,
1147,
3155,
28148,
11322,
12576,
2285,
4345,
1839,
326,
1634,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8263,
1345,
353,
4232,
39,
3462,
16,
7651,
1345,
288,
203,
203,
225,
533,
5381,
1071,
508,
273,
315,
19471,
14432,
203,
225,
533,
5381,
1071,
3273,
273,
315,
53,
1784,
14432,
203,
225,
2254,
28,
5381,
1071,
15105,
273,
654... |
./partial_match/1/0x9d1ECc3531Db7ed0209d54a2068Bcf8F7eFBEfa3/sources/contracts/modules/escrow/Escrow.sol | * @notice add collateral to your position @dev requires that the token deposited by the depositor has been enabled by `line.Arbiter` @dev - callable by anyone @param amount - the amount of collateral to add @param token - the token address of the deposited token @return - the updated cratio/ | function addCollateral(uint256 amount, address token) external payable nonReentrant returns (uint256) {
return state.addCollateral(oracle, amount, token);
}
| 3,989,553 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
527,
4508,
2045,
287,
358,
3433,
1754,
632,
5206,
4991,
716,
326,
1147,
443,
1724,
329,
635,
326,
443,
1724,
280,
711,
2118,
3696,
635,
1375,
1369,
18,
686,
70,
2165,
68,
632,
5206,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
13535,
2045,
287,
12,
11890,
5034,
3844,
16,
1758,
1147,
13,
3903,
8843,
429,
1661,
426,
8230,
970,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
919,
18,
1289,
13535,
2045,
287,
12,
280,
16066,
16,
3844,
16,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "./interface/CLV2V3Interface.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
/**
* @title Flux first-party price feed oracle a... | @notice Update prices, callable by anyone, faster but more gas require min delay since lastUpdate | function updatePricesUsingMedianOfMedians() public whenNotPaused {
require(block.timestamp > transmissions[latestAggregatorRoundId].timestamp + minDelay, "Delay required");
int192[] memory oraclesLatestAnswers = new int192[](oracles.length);
for (uint256 i = 0; i < oracles.length; i++) {
... | 2,515,270 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2315,
19827,
16,
4140,
635,
1281,
476,
16,
12063,
1496,
1898,
16189,
2583,
1131,
4624,
3241,
1142,
1891,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
31862,
7736,
13265,
2779,
951,
13265,
19657,
1435,
1071,
1347,
1248,
28590,
288,
203,
3639,
2583,
12,
2629,
18,
5508,
405,
906,
7300,
63,
13550,
17711,
11066,
548,
8009,
5508,
397,
1131,
6763,
16,
315,
6763,
1931,
8... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
contract BlindAuction {
struct Bid {
bytes32 blindedBid;
uint deposit;
}
address payable public beneficiary;
uint public biddingEnd;
uint public revealEnd;
bool public ended;
mapping(address => Bid[]) public bids;
... | End the auction and send the highest bid to the beneficiary. | function auctionEnd()
public
onlyAfter(revealEnd)
{
if (ended) revert AuctionEndAlreadyCalled();
emit AuctionEnded(highestBidder, highestBid);
ended = true;
beneficiary.transfer(highestBid);
}
| 14,082,505 | [
1,
4625,
348,
7953,
560,
30,
225,
4403,
326,
279,
4062,
471,
1366,
326,
9742,
9949,
358,
326,
27641,
74,
14463,
814,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
279,
4062,
1638,
1435,
203,
3639,
1071,
203,
3639,
1338,
4436,
12,
266,
24293,
1638,
13,
203,
565,
288,
203,
3639,
309,
261,
3934,
13,
15226,
432,
4062,
1638,
9430,
8185,
5621,
203,
3639,
3626,
432,
4062,
28362,
12,
876... |
pragma solidity ^0.4.18;
import "./FKX.sol";
import "./FKXTokenTimeLock.sol";
import "zeppelin-solidity/contracts/ownership/Ownable.sol";
/**
* @title FKXSale
* @dev FKXSale smart contracat used to mint and distrubute FKX tokens and lock up FKX tokens in the FKXTokenTimeLock smart contract.
* Inheritance:
* Ownab... | * @dev Finalizes the sale and token minting/ Disable minting of FKX | function finalize() public onlyOwner {
token.finishMinting();
}
| 2,575,073 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16269,
3128,
326,
272,
5349,
471,
225,
1147,
312,
474,
310,
19,
10639,
312,
474,
310,
434,
478,
47,
60,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12409,
1435,
1071,
1338,
5541,
288,
203,
565,
1147,
18,
13749,
49,
474,
310,
5621,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xe90fab21fEbFb008886B3639C26cCf70E414B9de/sources/contracts/ORManager.sol | hash(chainId, token) => TokenInfo
| mapping(bytes32 => BridgeLib.TokenInfo) private _chainTokens; | 15,639,568 | [
1,
4625,
348,
7953,
560,
30,
225,
1651,
12,
5639,
548,
16,
1147,
13,
516,
3155,
966,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
3890,
1578,
516,
24219,
5664,
18,
1345,
966,
13,
3238,
389,
5639,
5157,
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,
... |
./full_match/44787/0x35ef3530CE92895196530F92Ba28a9A1A0A1da4B/sources/contracts/OrderMixin.sol | @notice Same as `fillOrder` but allows to specify funds destination instead of `msg.sender` @param order Order quote to fill @param signature Signature to confirm quote ownership @param amounts [Making amount, Taking amount, Threshold amount] @param target Address that will receive swap funds @param extraInteraction I... | function _fillOrderTo(
Order memory order,
bytes calldata signature,
uint256[3] memory amounts,
address target,
bytes memory extraInteraction
) internal returns(uint256 /* actualMakingAmount */, uint256 /* actualTakingAmount */) {
require(target != address(0), "LO... | 13,244,291 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
17795,
487,
1375,
5935,
2448,
68,
1496,
5360,
358,
4800,
284,
19156,
2929,
3560,
434,
1375,
3576,
18,
15330,
68,
632,
891,
1353,
4347,
3862,
358,
3636,
632,
891,
3372,
9249,
358,
6932,
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,
389,
5935,
2448,
774,
12,
203,
3639,
4347,
3778,
1353,
16,
203,
3639,
1731,
745,
892,
3372,
16,
203,
3639,
2254,
5034,
63,
23,
65,
3778,
30980,
16,
203,
3639,
1758,
1018,
16,
203,
3639,
1731,
3778,
2870,
17419,
203,
5... |
/**
*Submitted for verification at Etherscan.io on 2022-02-17
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
// Part: Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64
/// @notice NOT BUILT BY SHEET FIGHTER TEAM. THANK YOU BRECHT DE... | @notice Generate random uint256 @param _tokenId Token id for which to generate random number @param _address Address for which to generate random number @return Random uint256 Increment nonce | function _random(uint256 _tokenId, address _address) internal returns(uint256) {
seedNonce++;
return uint256(
keccak256(
abi.encodePacked(
block.timestamp,
block.difficulty,
_tokenId,
_addres... | 7,844,610 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
6654,
2744,
2254,
5034,
632,
891,
225,
389,
2316,
548,
3155,
612,
364,
1492,
358,
2103,
2744,
1300,
632,
891,
225,
389,
2867,
5267,
364,
1492,
358,
2103,
2744,
1300,
632,
2463,
8072,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
9188,
12,
11890,
5034,
389,
2316,
548,
16,
1758,
389,
2867,
13,
2713,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
5009,
13611,
9904,
31,
203,
203,
3639,
327,
2254,
5034,
12,
203,
5411,
417,
24410,
581,
5034,
12,
2... |
// SPDX-License-Identifier: BUSDL-1.1
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IAssetAllocation} from "contracts/common/Imports.sol";
import {
IStableSwap,
ILiquidityGauge
} from "contracts/protocols/curve/common/in... | SPDX-License-Identifier: MIT* @title SignedSafeMath @dev Signed math operations with safety checks that revert on error./ | library SignedSafeMath {
int256 constant private _INT256_MIN = -2**255;
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {SignedSafeMath} from "@openzeppelin/contracts/math/SignedSafeMath.sol";
import {SafeERC20} from "@op... | 1,280,605 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
14,
632,
2649,
16724,
9890,
10477,
632,
5206,
16724,
4233,
5295,
598,
24179,
4271,
716,
15226,
603,
555,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
16724,
9890,
10477,
288,
203,
565,
509,
5034,
5381,
3238,
389,
3217,
5034,
67,
6236,
273,
300,
22,
636,
10395,
31,
203,
203,
5666,
288,
1887,
97,
628,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
5471,
19,
1887,... |
./full_match/1287/0x8975bdfBb9D6103bB1a12FE04F2F1a58802AF815/sources/project_/contracts/voting/VotingHubContract.sol | @notice @dev This function is to add a voting contract, the added contract will be notified when a token transfer occurs @param contractAddress address of the voting contract | function addVotingContract(
address contractAddress
) public _ownerOnly isContract(contractAddress) {
VOTING_CONTRACTS_ADDRESS.push(contractAddress);
emit VotingContractAdded(contractAddress);
}
| 7,097,393 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
632,
5206,
1220,
445,
353,
358,
527,
279,
331,
17128,
6835,
16,
326,
3096,
6835,
903,
506,
18791,
1347,
279,
1147,
7412,
9938,
632,
891,
6835,
1887,
1758,
434,
326,
331,
17128,
6835,
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,
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,
58,
17128,
8924,
12,
203,
3639,
1758,
6835,
1887,
203,
565,
262,
1071,
389,
8443,
3386,
353,
8924,
12,
16351,
1887,
13,
288,
203,
3639,
776,
1974,
1360,
67,
6067,
2849,
1268,
55,
67,
15140,
18,
6206,
12,
16351,
1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./GetLastPrice.sol";
contract OBdefiStaking {
// Constants
uint public constant STAKING_RATE = 6;
// define here what the r... | @notice calculate reward based on token parameter @param token struct containing the necessary information @return an uint | function calculateReward (Token memory token) private view returns (uint){
return ((getNewStakedAmountPerSecond(token) * STAKING_RATE) / STAKING_PERIODICITY) / 100;
}
| 6,347,110 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4604,
19890,
2511,
603,
1147,
1569,
632,
891,
1147,
1958,
4191,
326,
4573,
1779,
632,
2463,
392,
2254,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4604,
17631,
1060,
261,
1345,
3778,
1147,
13,
3238,
1476,
1135,
261,
11890,
15329,
203,
3639,
327,
14015,
588,
1908,
510,
9477,
6275,
2173,
8211,
12,
2316,
13,
380,
2347,
14607,
1360,
67,
24062,
13,
342,
2347,
14607,
1360... |
pragma solidity ^0.4.16;
contract SimpleCoin {
function totalSupply() constant returns (uint256 totalSupply);
function balanceOf(address _owner) constant returns (uint256 balance);
function transfer(address _to, uint256 _value) returns (bool success);
event Transfer(address indexed _from, address indexed _to,... | Create trensfers Only run if all the condition underneath are valid Emit the event | function transfer(address _to, uint256 _value) public returns (bool success) {
require(balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]);
balances[msg.sender] -= _value;
balances[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
}
| 2,488,570 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
268,
1187,
87,
18881,
5098,
1086,
309,
777,
326,
2269,
3613,
4644,
421,
854,
923,
16008,
326,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
565,
2583,
12,
70,
26488,
63,
3576,
18,
15330,
65,
1545,
389,
1132,
597,
324,
26488,
63,
67,
869,
65,
397,
389,
113... |
pragma solidity 0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
functio... | bonus calculation for preico on per day basis | function bonuscalpre() private returns (uint256 cp)
{
uint bon = 8;
if(bonusCalculationFactor == 0)
{
bon = 8;
}
else{
bon -= bonusCalculationFactor* 8;
}
return bon;
... | 2,154,113 | [
1,
4625,
348,
7953,
560,
30,
324,
22889,
11096,
364,
675,
10764,
603,
1534,
2548,
10853,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
445,
324,
22889,
771,
1484,
1435,
3238,
1135,
261,
11890,
5034,
3283,
13,
203,
3639,
288,
203,
1850,
2254,
324,
265,
273,
1725,
31,
203,
5411,
309,
12,
18688,
407,
13989,
6837,
422,
374,
13,
203,
5411,
288,
203,
7734,
324,
... |
./partial_match/1/0xb7bcb772f3d02Ed272F9f1154ef415fF1DaAf799/sources/Token.sol | * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. This internal function is equivalent to `approve`, and can be used to e.g. set automatic allowances for certain subsystems, etc. Emits an {Approval} event. Requirements: - `owner` cannot be the zero address. - `spender` cannot be the zero add... | function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC400: approve from the zero address");
require(spender != address(0), "ERC400: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owne... | 10,995,301 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
1375,
8949,
68,
487,
326,
1699,
1359,
434,
1375,
87,
1302,
264,
68,
1879,
326,
1375,
8443,
68,
272,
2430,
18,
1220,
2713,
445,
353,
7680,
358,
1375,
12908,
537,
9191,
471,
848,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
12908,
537,
12,
2867,
3410,
16,
1758,
17571,
264,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
315,
654,
39,
16010,
30,
6617,
537,
628,
326,
3634,
1758,
8863,
203... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "./base/IMarketFeeSchedules.sol";
import "./base/EternalStorage.sol";
import "./base/Controller.sol";
import "./base/Utils.sol";
import "./base/SafeMath.sol";
/**
* @dev Market facet base class
*/
abstract contract MarketFacetBase is EternalStorage, Con... | These are from https:github.com/nayms/maker-otc/blob/master/contracts/math.sol | function wdiv(uint x, uint y) internal pure returns (uint z) {
z = SafeMath.add(SafeMath.mul(x, (10 ** 18)), y.div(2)).div(y);
}
| 5,523,706 | [
1,
4625,
348,
7953,
560,
30,
225,
8646,
854,
628,
2333,
30,
6662,
18,
832,
19,
82,
528,
959,
19,
29261,
17,
352,
71,
19,
10721,
19,
7525,
19,
16351,
87,
19,
15949,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
341,
2892,
12,
11890,
619,
16,
2254,
677,
13,
2713,
16618,
1135,
261,
11890,
998,
13,
288,
203,
565,
998,
273,
14060,
10477,
18,
1289,
12,
9890,
10477,
18,
16411,
12,
92,
16,
261,
2163,
2826,
6549,
13,
3631,
677,
18,
... |
./partial_match/1/0x6747B308651B23C11D6019E38394b805F3BCa82B/sources/contracts/interface/IORMakerDeposit.sol | Challenger's freeze amount
| uint freezeAmount1; | 9,129,115 | [
1,
4625,
348,
7953,
560,
30,
225,
1680,
7862,
693,
1807,
16684,
3844,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
16684,
6275,
21,
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,
... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/PausableToken.sol";
import "openzeppelin-solidity/contracts/token/ERC20/CappedToken.sol";
contract SwaceToken is DetailedERC20, PausableToken, CappedToken {
event Ch... | * @dev Original ERC20 approve with additional security mesure. @param _spender The address which will spend the funds. @param _value The amount of tokens to be spent. @return A boolean that indicates if the operation was successful./https:github.com/ethereum/EIPs/issues/20#issuecomment-263524729 | function approve(address _spender, uint256 _value)
public
returns (bool)
{
require((_value == 0) || (allowed[msg.sender][_spender] == 0), "Approval can not be granted");
return super.approve(_spender, _value);
}
| 7,267,014 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
19225,
4232,
39,
3462,
6617,
537,
598,
3312,
4373,
15216,
594,
18,
632,
891,
389,
87,
1302,
264,
1021,
1758,
1492,
903,
17571,
326,
284,
19156,
18,
632,
891,
389,
1132,
1021,
3844,
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,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
203,
565,
1071,
203,
565,
1135,
261,
6430,
13,
203,
225,
288,
203,
565,
2583,
12443,
67,
1132,
422,
374,
13,
747,
261,
8151,
63,
3576,
18,
1533... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../interfaces/IOrcBetPool.sol";
/**
* @title Betting pool
*/
cont... | * @notice Is the pool active? @return isActive whether the pool is active/ | function active() view external override returns (bool) {
return isActive;
}
| 1,797,115 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
2585,
326,
2845,
2695,
35,
225,
632,
2463,
15083,
2856,
326,
2845,
353,
2695,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2695,
1435,
1476,
3903,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
15083,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.16;
// Inheritance
import "./ExternStateToken.sol";
import "./MixinResolver.sol";
import "./interfaces/ISynthetix.sol";
// Internal references
import "./TokenState.sol";
import "./interfaces/ISynth.sol";
import "./interfaces/IERC20.sol";
import "./interfaces/ISystemStatus.sol";
import "./interfac... | ERROR: type should be string, got " https:docs.synthetix.io/contracts/Synthetix ========== STATE VARIABLES ========== Available Synths which can be used with the system ========== CONSTRUCTOR ==========" | contract Synthetix is IERC20, ExternStateToken, MixinResolver, ISynthetix {
ISynth[] public availableSynths;
mapping(bytes32 => ISynth) public synths;
mapping(address => bytes32) public synthsByAddress;
string public constant TOKEN_NAME = "Synthetix Network Token";
string public constant TOKEN_SYM... | 6,435,367 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
8532,
18,
11982,
451,
278,
697,
18,
1594,
19,
16351,
87,
19,
10503,
451,
278,
697,
422,
1432,
7442,
22965,
55,
422,
1432,
15633,
16091,
451,
87,
1492,
848,
506,
1399,
598,
326,
2619,
422... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
16091,
451,
278,
697,
353,
467,
654,
39,
3462,
16,
1312,
798,
1119,
1345,
16,
490,
10131,
4301,
16,
4437,
878,
451,
278,
697,
288,
203,
203,
565,
4437,
878,
451,
8526,
1071,
2319,
10503,
451,
87,
31,
203,
565,
2874,
12,
... |
./full_match/1/0x9db4694BE49558ba5F3CD4C449988fc0AeBa6E94/sources/contracts/Vault.sol | * @notice Allows receiver extend lock period for a given lock @param lockId The lock id for a locked token balance @param daysToAdd The number of days to add to duration/ | function extendLock(uint256 lockId, uint16 daysToAdd) external {
Lock storage lock = tokenLocks[lockId];
require(msg.sender == lock.receiver, "Vault::extendLock: msg.sender must be receiver");
uint16 oldDuration = lock.duration;
uint16 newDuration = _add16(oldDuration, daysToAdd, "Va... | 3,846,914 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
5971,
2133,
2176,
3879,
364,
279,
864,
2176,
632,
891,
2176,
548,
1021,
2176,
612,
364,
279,
8586,
1147,
11013,
632,
891,
4681,
13786,
1021,
1300,
434,
4681,
358,
527,
358,
3734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2133,
2531,
12,
11890,
5034,
2176,
548,
16,
2254,
2313,
4681,
13786,
13,
3903,
288,
203,
3639,
3488,
2502,
2176,
273,
1147,
19159,
63,
739,
548,
15533,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
2176,
18,
24454,
16,
315... |
pragma solidity ^ 0.4.25;
// ----------------------------------------------------------------------------
// 安全的加减乘除
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns(uint c) {
c = a + b;
require(c >= a);
}
func... | mapping(address => uint) balances; | interface btycInterface {
function balanceOf(address _addr) external view returns (uint256);
function mintToken(address target, uint256 mintedAmount) external returns (bool);
function transfer(address to, uint tokens) external returns (bool);
function freezeAccount(address target, bool freeze) external ... | 214,585 | [
1,
4625,
348,
7953,
560,
30,
2874,
12,
2867,
516,
2254,
13,
324,
26488,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
324,
4098,
71,
1358,
288,
203,
565,
445,
11013,
951,
12,
2867,
389,
4793,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
312,
474,
1345,
12,
2867,
1018,
16,
2254,
5034,
312,
474,
329,
6275,
13,
3903,
1135,
2... |
./partial_match/1/0xB4a3AeA50C7d7aF8217a430bB50eD9b332f36d56/sources/PEOPLE2.sol | Create a pair for this new token | constructor() ERC20("PEOPLE2.0", "PEOPLE2.0") {
_tokengeneration(msg.sender, 420690000000000 * 10**decimals());
IRouter _router = IRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address _pair = IFactory(_router.factory()).createPair(address(this), _router.WETH());
router = _ro... | 4,179,109 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
279,
3082,
364,
333,
394,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
4232,
39,
3462,
2932,
1423,
3665,
900,
22,
18,
20,
3113,
315,
1423,
3665,
900,
22,
18,
20,
7923,
288,
203,
3639,
389,
2316,
25514,
12,
3576,
18,
15330,
16,
1059,
3462,
8148,
2787,
9449,
380,
1728,
636,
31734,
1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | @dev Helper to decode action args | function __decodeEncodedActionArgs(bytes memory _encodeActionArgs)
private
pure
returns (
address[] memory assets_,
uint256[] memory amounts_,
bytes memory data_
)
{
(assets_, amounts_, data_) = abi.decode(_encodeActionArgs, (address[],... | 6,862,727 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
9705,
358,
2495,
1301,
833,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
3922,
10397,
1803,
2615,
12,
3890,
3778,
389,
3015,
1803,
2615,
13,
203,
3639,
3238,
203,
3639,
16618,
203,
3639,
1135,
261,
203,
5411,
1758,
8526,
3778,
7176,
67,
16,
203,
5411,
2254,
5034,
8526,
3778,
30980,
67,
... |
./full_match/1/0x36C437d15A8d83F3D45de0EdAC22659559861418/sources/contracts/escrow/Escrow.sol | * @dev Get the message hash for signing the resolution of a trade/ | function resolveProof(
bytes32 token,
string memory tradeId,
string[] memory links,
bool result,
string memory reason
) public view returns (bytes32 message) {
if (links.length == 0) links[0] = "";
message = keccak256(
abi.encodePacked(
... | 17,043,653 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
326,
883,
1651,
364,
10611,
326,
7861,
434,
279,
18542,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2245,
20439,
12,
203,
3639,
1731,
1578,
1147,
16,
203,
3639,
533,
3778,
18542,
548,
16,
203,
3639,
533,
8526,
3778,
4716,
16,
203,
3639,
1426,
563,
16,
203,
3639,
533,
3778,
3971,
203,
565,
262,
1071,
1476,
1135,
261,
... |
pragma solidity ^0.5.2;
/**
* @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 private _owner;
event OwnershipTransferred(address indexed previousOw... | * @return the amount available for release to an account./ | function available(address account) public view returns (uint256) {
uint256 totalReceived = address(this).balance.add(_totalReleased);
uint256 totalCut = totalReceived.mul(_shares[account]).div(_totalShares);
return totalCut.sub(_released[account]);
}
| 14,066,569 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
326,
3844,
2319,
364,
3992,
358,
392,
2236,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2319,
12,
2867,
2236,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
2078,
8872,
273,
1758,
12,
2211,
2934,
12296,
18,
1289,
24899,
4963,
26363,
1769,
203,
3639,
2254,
5034,
2078,
15812,
273,
2078... |
pragma solidity =0.8.7;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
contract TimeIt is ERC721Enumerable, Owna... | Gas optimization Make sure presale has been set up The contract never holds any Ether. Everything gets redirected to treasury directly. | function mintTokens(uint256 count) external payable {
uint256 _nextTokenId = nextTokenId;
SaleConfig memory _saleConfig = saleConfig;
require(_saleConfig.startTime > 0, "TimeIt: sale not configured");
require(treasury != address(0), "TimeIt: treasury not set");
require(toke... | 1,198,708 | [
1,
4625,
348,
7953,
560,
30,
225,
31849,
14850,
4344,
3071,
4075,
5349,
711,
2118,
444,
731,
1021,
6835,
5903,
14798,
1281,
512,
1136,
18,
26553,
5571,
21808,
358,
9787,
345,
22498,
5122,
18,
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,
565,
445,
312,
474,
5157,
12,
11890,
5034,
1056,
13,
3903,
8843,
429,
288,
203,
3639,
2254,
5034,
389,
4285,
1345,
548,
273,
9617,
548,
31,
203,
203,
3639,
348,
5349,
809,
3778,
389,
87,
5349,
809,
273,
272,
5349,
809,
31,
203,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "./BaseSystem.sol";
contract Coordinator is BaseSystem, ICoord {
//--------------------------------------------------------------------------
// STATE
//--------------------------------------------------------------------------
mapping(ad... | Proposal expired without reaching consensus Proposal was defeated Proposal succeeded and can be queued | function queueProposal(uint256 _propID) external {
IBooth boothInstance = IBooth(core_.getInstance(CoreLib.VOTE_BOOTH));
IProp propInstance = IProp(core_.getInstance(CoreLib.PROPS));
(
, , uint256 voteEnd, bool executedOrCanceled
) = propInstance.getPropVotables(_propID)... | 5,359,102 | [
1,
4625,
348,
7953,
560,
30,
225,
19945,
7708,
2887,
9287,
310,
18318,
19945,
1703,
1652,
73,
690,
19945,
15784,
471,
848,
506,
12234,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2389,
14592,
12,
11890,
5034,
389,
5986,
734,
13,
3903,
288,
203,
3639,
23450,
8595,
4835,
76,
1442,
273,
23450,
8595,
12,
3644,
27799,
588,
1442,
12,
4670,
5664,
18,
16169,
1448,
67,
5315,
18307,
10019,
203,
3639,
467,
... |
./full_match/80001/0x597b55a60d21Baa637F51FCaDada1C80ed0d6D6e/sources/contracts/Main.sol | a structure for file metadata | contract Main {
struct DocInfo {
string ipfsHash;
string fileName;
string fileType;
uint256 fileSize;
string dateAdded;
string timeAdded;
uint256 downloadCount;
}
struct UserInfo {
string name;
string username;
string email;
... | 9,450,749 | [
1,
4625,
348,
7953,
560,
30,
225,
279,
3695,
364,
585,
1982,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
12740,
288,
203,
565,
1958,
3521,
966,
288,
203,
3639,
533,
2359,
2556,
2310,
31,
203,
3639,
533,
3968,
31,
203,
3639,
533,
21939,
31,
203,
3639,
2254,
5034,
18984,
31,
203,
3639,
533,
1509,
8602,
31,
203,
3639,
533,
813,
... |
./full_match/421613/0x0b24767Ae86Da2F5B442B2A524d3D9809CD0B5B2/sources/src/arbitration/dispute-kits/DisputeKitClassic.sol | * @dev Checks that the chosen address satisfies certain conditions for being drawn. @param _coreDisputeID ID of the dispute in the core contract. @param _juror Chosen address. @return Whether the address can be drawn or not./ | function postDrawCheck(uint256 _coreDisputeID, address _juror) internal view override returns (bool) {
(uint96 courtID, , , , ) = core.disputes(_coreDisputeID);
(uint256 lockedAmountPerJuror, , , , , ) = core.getRoundInfo(
_coreDisputeID,
core.getNumberOfRounds(_coreDisputeID... | 11,577,815 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13074,
716,
326,
10447,
1758,
17917,
8626,
4636,
364,
3832,
19377,
18,
225,
632,
891,
389,
3644,
1669,
2507,
734,
1599,
434,
326,
1015,
2507,
316,
326,
2922,
6835,
18,
225,
632,
891,
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,
565,
445,
1603,
6493,
1564,
12,
11890,
5034,
389,
3644,
1669,
2507,
734,
16,
1758,
389,
78,
295,
280,
13,
2713,
1476,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
261,
11890,
10525,
21833,
88,
734,
16,
269,
269,
269,
262,
273,
29... |
./partial_match/1/0xaA1Fe0ab779f6AFb76690f0C58ED3dA579E8dA2A/sources/Deelance_AirDrop.sol | only callable by owner, used to modify the token amount of multiple users | function modifyUserAmounts(address[] memory _users, uint256[] memory _newAmounts) external onlyOwner {
require(_users.length == _newAmounts.length, "Users and amounts length mismatch");
for (uint256 i = 0; i < _users.length; i++) {
address currentUser = _users[i];
require(ba... | 3,885,973 | [
1,
4625,
348,
7953,
560,
30,
225,
1338,
4140,
635,
3410,
16,
1399,
358,
5612,
326,
1147,
3844,
434,
3229,
3677,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5612,
1299,
6275,
87,
12,
2867,
8526,
3778,
389,
5577,
16,
2254,
5034,
8526,
3778,
389,
2704,
6275,
87,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
5577,
18,
2469,
422,
389,
2704,
6275,
87,
18,
2469,
16,
315,
6... |
//Address: 0xa3958375Aa3B1494faE8D53dc4a074232801bBBe
//Contract name: STQPreICO3
//Balance: 0 Ether
//Verification Date: 10/28/2017
//Transacion Count: 17
// CODE STARTS HERE
pragma solidity 0.4.15;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/is... | note: during any ownership changes all pending operations (waiting for more signatures) are cancelled TODO acceptOwnership TYPES struct for the status of a pending operation. | contract multiowned {
struct MultiOwnedOperationPendingState {
uint yetNeeded;
uint ownersDone;
uint index;
}
event Confirmation(address owner, bytes32 operation);
event Revoke(address owner, bytes32 operation);
event FinalConfirmation(address owner, bytes32 operation);
... | 5,416,910 | [
1,
4625,
348,
7953,
560,
30,
225,
4721,
30,
4982,
1281,
23178,
3478,
777,
4634,
5295,
261,
20241,
364,
1898,
14862,
13,
854,
13927,
2660,
2791,
5460,
12565,
3463,
55,
1958,
364,
326,
1267,
434,
279,
4634,
1674,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3309,
995,
329,
288,
203,
203,
203,
565,
1958,
5991,
5460,
329,
2988,
8579,
1119,
288,
203,
3639,
2254,
4671,
11449,
31,
203,
203,
3639,
2254,
25937,
7387,
31,
203,
203,
3639,
2254,
770,
31,
203,
565,
289,
203,
203,
565,
... |
./full_match/1/0x577316AD36FEdc895076Aa184E34bCA2920de694/sources/contracts/asset/Asset.sol | @notice The underlying underlyingToken represented by this asset @notice The Pool @notice The Pool @notice The Fee Collector @notice Cash balance, normally it should align with IERC20(_underlyingToken).balanceOf(address(this)) @notice Total liability, equals to the sum of deposit and dividend @notice Owner @notice Nam... | ) ERC20(name_, symbol_) {
require(underlyingToken_ != address(0), "!underlying");
require(aggregateAccount_ != address(0), "!aggregate");
_owner = msg.sender;
_name = name_;
_symbol = symbol_;
_underlyingToken = underlyingToken_;
_aggregateAccount = aggregate... | 9,771,015 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1021,
6808,
6808,
1345,
10584,
635,
333,
3310,
632,
20392,
1021,
8828,
632,
20392,
1021,
8828,
632,
20392,
1021,
30174,
13844,
632,
20392,
385,
961,
11013,
16,
15849,
518,
1410,
5689,
598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
4232,
39,
3462,
12,
529,
67,
16,
3273,
67,
13,
288,
203,
3639,
2583,
12,
9341,
6291,
1345,
67,
480,
1758,
12,
20,
3631,
17528,
9341,
6291,
8863,
203,
3639,
2583,
12,
18573,
3032,
67,
480,
1758,
12,
20,
3631,
17528,
... |
pragma solidity ^0.4.24;
/**
* @title - Crypto Skully
* ________ ___ __ ___ ___ ___ ___ ___ ___
* |\ ____\ |\ \|\ \ |\ \|\ \ |\ \ |\ \ |\ \ / /|
* \ \ \___|_ \ \ \/ /|_ \ \ \\\ \ \ \ \ \ \ \ \ \ \/ / ... | if attack fail, attacker lose 20 PO8;
| po8.transferFrom(msg.sender, address(this), 20000000000000000000); | 14,053,506 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
13843,
2321,
16,
13843,
264,
29612,
4200,
13803,
28,
31,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
8275,
28,
18,
13866,
1265,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3631,
576,
12648,
12648,
3784,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.8;
/**
This scd to mcd migration works without pool.
ETH free(scd) => lock(mcd) ==> dai draw(mcd) => swap(dai=>sai) => wipe(scd)
*/
interface TubInterface {
function open() external returns (bytes32);
function join(uint) external;
function exit(uint) external;
function lock(bytes... | Transfer if any ETH leftover. | {
uint mcdCdp = mergeCDP == 0 ? openVault() : mergeCDP;
bytes32 scdCup = bytes32(scdCDP);
uint maxConvert = toConvert;
uint _wad;
uint _ink;
(_wad, _ink, maxConvert) = setSplitAmount(scdCup, toConvert, payFeeWith);
require(add(getDaiDebt(mcdCdp), _wad) >= ... | 13,132,221 | [
1,
4625,
348,
7953,
560,
30,
12279,
309,
1281,
512,
2455,
29709,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
203,
3639,
2254,
312,
4315,
39,
9295,
273,
2691,
39,
8640,
422,
374,
692,
1696,
12003,
1435,
294,
2691,
39,
8640,
31,
203,
3639,
1731,
1578,
888,
72,
39,
416,
273,
1731,
1578,
12,
1017,
72,
39,
8640,
1769,
203,
... |
./partial_match/1/0xD744Ef07d2e93179e54aF5017Bc190E4DD2a5478/sources/PropToken.sol | @notice retrieves address of contract that is allowed to burn | function getBurnContract() public view returns (address) {
return _burnContract;
}
| 15,690,717 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
9023,
1758,
434,
6835,
716,
353,
2935,
358,
18305,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2882,
321,
8924,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
70,
321,
8924,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Sources flattened with hardhat v2.6.0 https://hardhat.org
// File deps/@openzeppelin/contracts-upgradeable/proxy/Initializable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.24 <0.7.0;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be de... | * @dev Indicates that the contract has been initialized./* @dev Indicates that the contract is in the process of being initialized./* @dev Modifier to protect an initializer function from being invoked twice./ | modifier initializer() {
require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
... | 7,512 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
18336,
716,
326,
6835,
711,
2118,
6454,
18,
20308,
632,
5206,
18336,
716,
326,
6835,
353,
316,
326,
1207,
434,
3832,
6454,
18,
20308,
632,
5206,
12832,
358,
17151,
392,
12562,
445,
628,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
12562,
1435,
288,
203,
3639,
2583,
24899,
6769,
6894,
747,
389,
291,
6293,
1435,
747,
401,
67,
13227,
16,
315,
4435,
6934,
30,
6835,
353,
1818,
6454,
8863,
203,
203,
3639,
1426,
353,
27046,
1477,
273,
401,
67,
6769,
68... |
./full_match/80001/0xcd01d922a7f96Cb660031c7B5dc11CfD2446307f/sources/Users/ricardomarques/dev/workspace/polkamarkets/bepro-js/contracts/PredictionMarketV2.sol | @dev Transfer outcome shares from pool to user balance transfering shares from shares pool to user | function transferOutcomeSharesfromPool(
address user,
uint256 marketId,
uint256 outcomeId,
uint256 shares
) private {
Market storage market = markets[marketId];
MarketOutcome storage outcome = market.outcomes[outcomeId];
outcome.shares.holders[user] = outcome.shares.holders[user] + shar... | 5,695,180 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
12279,
12884,
24123,
628,
2845,
358,
729,
11013,
7412,
310,
24123,
628,
24123,
2845,
358,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
19758,
24051,
2080,
2864,
12,
203,
565,
1758,
729,
16,
203,
565,
2254,
5034,
13667,
548,
16,
203,
565,
2254,
5034,
12884,
548,
16,
203,
565,
2254,
5034,
24123,
203,
225,
262,
3238,
288,
203,
565,
6622,
278,
2502,
... |
./full_match/5/0xe589d8fEA1b111cDAcf61479471f4012188Ad7eA/sources/contracts/ArcadeMissionPools.sol | * @notice Modifier that requires mission to be in active state @dev Required in closeMission and earlyWithdrawalFromMission @param _missionStatus the mission status to check/ | modifier isMissionActive(uint256 _missionStatus) {
require(_missionStatus == 1, "Mission not in active state");
_;
}
| 11,615,981 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12832,
716,
4991,
29396,
358,
506,
316,
2695,
919,
632,
5206,
10647,
316,
1746,
49,
19710,
471,
11646,
1190,
9446,
287,
1265,
49,
19710,
632,
891,
389,
3951,
1482,
326,
29396,
1267,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
15707,
19710,
3896,
12,
11890,
5034,
389,
3951,
1482,
13,
288,
203,
565,
2583,
24899,
3951,
1482,
422,
404,
16,
315,
49,
19710,
486,
316,
2695,
919,
8863,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-1... |
./full_match/4/0xfd6D9e834354E48E7EBfe6683B7FDdc80f323820/sources/browser/Staking.sol | IPOWToken(hashRateToken).claimIncome(msg.sender, amount); | function getIncome() public {
uint256 income = incomes[msg.sender];
if (income > 0) {
accumulatedIncomes[msg.sender] = accumulatedIncomes[msg.sender].add(income);
incomes[msg.sender] = 0;
uint256 amount = weiToSatoshi(income);
emit IncomePaid(msg.sende... | 735,245 | [
1,
4625,
348,
7953,
560,
30,
467,
2419,
59,
1345,
12,
2816,
4727,
1345,
2934,
14784,
382,
5624,
12,
3576,
18,
15330,
16,
3844,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7854,
5624,
1435,
1071,
288,
203,
3639,
2254,
5034,
316,
5624,
273,
316,
10127,
63,
3576,
18,
15330,
15533,
203,
3639,
309,
261,
267,
5624,
405,
374,
13,
288,
203,
5411,
24893,
382,
10127,
63,
3576,
18,
15330,
65,
273,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | @dev Helper function to parse spend and incoming assets from encoded call args during lendAndStake() calls | function __parseAssetsForLendAndStake(bytes calldata _actionData)
private
view
returns (
IIntegrationManager.SpendAssetsHandleType spendAssetsHandleType_,
address[] memory spendAssets_,
uint256[] memory spendAssetAmounts_,
address[] memory inco... | 9,930,764 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
9705,
445,
358,
1109,
17571,
471,
6935,
7176,
628,
3749,
745,
833,
4982,
328,
409,
1876,
510,
911,
1435,
4097,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1001,
2670,
10726,
1290,
48,
409,
1876,
510,
911,
12,
3890,
745,
892,
389,
1128,
751,
13,
203,
3639,
3238,
203,
3639,
1476,
203,
3639,
1135,
261,
203,
5411,
467,
15372,
1318,
18,
27223,
10726,
3259,
559,
17571,
10726,
3... |
./full_match/9001/0x110DD7887321f24477BF4A135a1E5eB7Bf31691a/sources/contracts/StreamingBoundHedgeys.sol | * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder accou... | interface IERC20Permit {
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
function nonces(address owner) external view returns (uint256);
function DOMAIN_SEPARATOR() external view returns (bytes32);
pragma s... | 11,531,650 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
13813,
305,
2710,
15632,
6617,
4524,
358,
506,
7165,
3970,
14862,
16,
487,
2553,
316,
15605,
326,
288,
457,
1938,
97,
707,
16,
1492,
848,
506,
1399,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
654,
39,
3462,
9123,
305,
288,
203,
225,
445,
21447,
12,
203,
565,
1758,
3410,
16,
203,
565,
1758,
17571,
264,
16,
203,
565,
2254,
5034,
460,
16,
203,
565,
2254,
5034,
14096,
16,
203,
565,
2254,
28,
331,
16,
203,
5... |
pragma solidity 0.6.12;
import {IStaticATokenLM} from "../dep/protocol-v2/contracts/interfaces/IStaticATokenLM.sol";
import {ILendingPool} from "../dep/protocol-v2/contracts/interfaces/ILendingPool.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IStakingFacet} from "./interfaces/IS... | convert to stkWAmGhst on behalf of address(this) | IStakingFacet(stakingDiamond).stakeIntoPoolForUser(wamGHSTPool, deposited, _to);
| 973,115 | [
1,
4625,
348,
7953,
560,
30,
1765,
358,
384,
79,
59,
9864,
43,
28928,
603,
12433,
6186,
434,
1758,
12,
2211,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
467,
510,
6159,
11137,
12,
334,
6159,
14521,
301,
1434,
2934,
334,
911,
5952,
2864,
19894,
12,
91,
301,
16715,
882,
2864,
16,
443,
1724,
329,
16,
389,
869,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupp... | bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); | function safeTransferFrom(
address token,
address from,
address to,
uint256 value
) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
require(
success && (data.length == 0 || abi.decode(data, (bool))),
'Helper::transfe... | 197,281 | [
1,
4625,
348,
7953,
560,
30,
225,
1731,
24,
12,
79,
24410,
581,
5034,
12,
3890,
2668,
13866,
1265,
12,
2867,
16,
2867,
16,
11890,
5034,
2506,
3719,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4183,
5912,
1265,
12,
203,
565,
1758,
1147,
16,
203,
565,
1758,
628,
16,
203,
565,
1758,
358,
16,
203,
565,
2254,
5034,
460,
203,
225,
262,
2713,
288,
203,
565,
261,
6430,
2216,
16,
1731,
3778,
501,
13,
273,
1147,
1... |
// SPDX-License-Identifier: MIT
/**
*
* __
* / |
* ____$$ | _______ ______ ______ ______
* / $$ | / | / \ / \ / \
* /$$$$$$$ |/$$$$$$$/ /$$$$$$ |/$$$$$$ |/$$$$$$ |
* $$ | $$ |$$ | ... | * @dev See {_taxFee}./ | function taxFee() external view returns (uint256) {
return _taxFee;
}
| 177,402 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
67,
8066,
14667,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5320,
14667,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
8066,
14667,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x5C818094F5656fA1Def6f945e3f87eFE95D5EA04/sources/contracts/new_marketplace/contracts/LooksRareExchange.sol | * @notice Check whether user order nonce is executed or cancelled @param user address of user @param orderNonce nonce of the order/ | function isUserOrderNonceExecutedOrCancelled(address user, uint256 orderNonce) external view returns (bool) {
return _isUserOrderNonceExecutedOrCancelled[user][orderNonce] == type(uint256).max;
}
| 856,705 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2073,
2856,
729,
1353,
7448,
353,
7120,
578,
13927,
632,
891,
729,
1758,
434,
729,
632,
891,
1353,
13611,
7448,
434,
326,
1353,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
29302,
2448,
13611,
23839,
1162,
21890,
12,
2867,
729,
16,
2254,
5034,
1353,
13611,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
291,
1299,
2448,
13611,
23839,
1162,
21890,
63,
1355,
6362,
1019,
13611,
6... |
./full_match/3/0x138Ec3CCba95e7fc683847203eb04B69D1551da0/sources/token.sol | * @dev Hook that is called before any transfer of tokens. This includes minting and burning. Calling conditions: - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens will be to transferred to `to`. - when `from` is zero, `amount` tokens will be minted for `to`. - when `to` is zero, `amount` of ``from... | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {
require(!paused(), "ERC20Pausable: token transfer while paused");
}
| 8,270,353 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13725,
716,
353,
2566,
1865,
1281,
7412,
434,
2430,
18,
1220,
6104,
312,
474,
310,
471,
18305,
310,
18,
21020,
4636,
30,
300,
1347,
1375,
2080,
68,
471,
1375,
869,
68,
854,
3937,
1661,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
5,
8774,
3668,
9334,
315,
654,
39,
3462,
16507,
16665,
3... |
./full_match/1/0xB0A1Cd3b31A8e3bbBaba15fEDdB88ABD932a677d/sources/contracts/libraries/ArrayLibrary.sol | * @title Helper functions for arrays. @author batu-inal & HardlyDifficult/ | library ArrayLibrary {
function capLength(address payable[] memory data, uint256 maxLength) internal pure {
if (data.length > maxLength) {
assembly {
mstore(data, maxLength)
}
}
}
function capLength(address payable[] memory data, uint256 maxLength) internal pure {
if (data.length... | 8,357,325 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
9705,
4186,
364,
5352,
18,
632,
4161,
27464,
89,
17,
1490,
473,
670,
1060,
715,
5938,
17551,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
1510,
9313,
288,
203,
203,
225,
445,
3523,
1782,
12,
2867,
8843,
429,
8526,
3778,
501,
16,
2254,
5034,
13642,
13,
2713,
16618,
288,
203,
565,
309,
261,
892,
18,
2469,
405,
13642,
13,
288,
203,
1377,
19931,
288,
203,
3639,
... |
./full_match/43113/0x0fE2b51D3B543C6F359480BffBf8C4E6964aE40E/sources/src/lib/BpLibrary.sol | * @dev calculate the percentage amount of the given value/ | function bp(uint256 value, uint256 bpValue) internal pure returns (uint256) {
return value.mul(bpValue).div(10000);
}
| 13,147,984 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4604,
326,
11622,
3844,
434,
326,
864,
460,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9107,
12,
11890,
5034,
460,
16,
2254,
5034,
9107,
620,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
460,
18,
16411,
12,
17152,
620,
2934,
2892,
12,
23899,
1769,
203,
565,
289,
203,
2,
-100,
-100,
... |
./full_match/1/0x2e8920950677F8545B4Ef80315f48E161CB02D1C/sources/contracts/crowdfund/AuctionCrowdfundBase.sol | Set the `Globals` contract. | constructor(IGlobals globals) Crowdfund(globals) {}
| 3,105,705 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
1375,
19834,
68,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
12,
3047,
1295,
1031,
10941,
13,
385,
492,
2180,
1074,
12,
16227,
13,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/421613/0xE6Db969E4d0615F1A6071e8F806055662676cEF6/sources/contracts/protocol/libraries/logic/ReserveLogic.sol | * @dev Returns the ongoing normalized variable debt for the reserve A value of 1e27 means there is no debt. As time passes, the income is accrued A value of 21e27 means that for each unit of debt, one unit worth of interest has been accumulated @param reserve The reserve object @return The normalized variable debt. exp... | function getNormalizedDebt(
DataTypes.ReserveData storage reserve
) internal view returns (uint256) {
uint40 timestamp = reserve.lastUpdateTimestamp;
if (timestamp == uint40(block.timestamp)) {
return reserve.variableBorrowIndex;
}
uint256 cumulated = MathUtils
.calculateCompounded... | 16,825,112 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
30542,
5640,
2190,
18202,
88,
364,
326,
20501,
432,
460,
434,
404,
73,
5324,
4696,
1915,
353,
1158,
18202,
88,
18,
2970,
813,
11656,
16,
326,
316,
5624,
353,
4078,
86,
5957,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
15577,
758,
23602,
12,
203,
565,
1910,
2016,
18,
607,
6527,
751,
2502,
20501,
203,
225,
262,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
7132,
2858,
273,
20501,
18,
2722,
1891,
4921,
31,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {OrderTypes} from "../libraries/OrderTypes.sol";
import {IExecutionStrategy} from "../interfaces/IExecutionStrategy.sol";
/**
* @title StrategyStandardSaleForFixedPrice
* @notice Strategy that executes an order at a fixed price that
* can be taken eith... | strategy for trade execution (e.g., DutchAuction, StandardSaleForFixedPrice)
| address strategy; | 356,818 | [
1,
4625,
348,
7953,
560,
30,
225,
6252,
364,
18542,
4588,
261,
73,
18,
75,
12990,
463,
322,
343,
37,
4062,
16,
8263,
30746,
1290,
7505,
5147,
13,
203,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6252,
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,
-100,... |
// SPDX-License-Identifier: MIT
// File: contracts/Signer.sol
pragma solidity ^0.8.3;
/* Signature Verification
How to Sign and Verify
# Signing
1. Create message to sign
2. Hash the message
3. Sign the hash (off chain, keep your private key secret)
# Verify
1. Recreate hash from the original message
2. Recover si... | GLOBALS CONFIGURE PRESALE Mint CONFIGURE PUBLIC MINT | ) ERC721("Jesus", "JESUS") DeveloperAccess(devAddress) {
require(maxSupply > 0, "Zero supply");
mintSigner = signer;
totalSupply = maxSupply;
mintPrice = price;
presaleMint.startDate = presaleMintStart;
presaleMint.endDate = presaleMintEnd;
presaleMint.maxMi... | 1,233,914 | [
1,
4625,
348,
7953,
560,
30,
225,
8668,
9128,
4830,
7071,
5233,
900,
490,
474,
9128,
4830,
17187,
490,
3217,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
4232,
39,
27,
5340,
2932,
46,
281,
407,
3113,
315,
46,
3991,
3378,
7923,
14526,
1862,
12,
5206,
1887,
13,
288,
203,
3639,
2583,
12,
1896,
3088,
1283,
405,
374,
16,
315,
7170,
14467,
8863,
203,
203,
3639,
312,
474,
156... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "./interfaces/ILockManager.sol";
import "./lib/SafeMath.sol";
import "./lib/SafeERC20.sol";
import "./lib/ReentrancyGuard.sol";
/**
* @title MasterYak
* @dev Controls rewards distribution for network
*/
contract Master... | * @notice View function to see pending rewards on frontend. @param pid pool id @param account user account to check @return pending rewards/ | function pendingRewards(uint256 pid, address account) external view returns (uint256) {
PoolInfo storage pool = poolInfo[pid];
UserInfo storage user = userInfo[pid][account];
uint256 accRewardsPerShare = pool.accRewardsPerShare;
uint256 tokenSupply = pool.totalStaked;
if (blo... | 1,818,747 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4441,
445,
358,
2621,
4634,
283,
6397,
603,
15442,
18,
632,
891,
4231,
2845,
612,
632,
891,
2236,
729,
2236,
358,
866,
632,
2463,
4634,
283,
6397,
19,
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,
4634,
17631,
14727,
12,
11890,
5034,
4231,
16,
1758,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
... |
./partial_match/1/0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3/sources/contracts/mock/MockRouter.sol | Make forge coverage ignore | function testSuccess() public {}
| 4,285,478 | [
1,
4625,
348,
7953,
560,
30,
225,
4344,
21388,
11196,
2305,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
4510,
1435,
1071,
2618,
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,... |
./partial_match/4/0x0255e850c28ee4AF92F0bcC5cA1695a8315b432e/sources/ProxyTest.sol | ** Admin Functions ***/ | function _setPendingImplementation(address newPendingImplementation) public returns (uint) {
if (msg.sender != admin) {
return fail(Error.UNAUTHORIZED, FailureInfo.SET_PENDING_IMPLEMENTATION_OWNER_CHECK);
}
address oldPendingImplementation = pendingControllerImplementation;
... | 8,738,831 | [
1,
4625,
348,
7953,
560,
30,
2826,
7807,
15486,
18852,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
542,
8579,
13621,
12,
2867,
394,
8579,
13621,
13,
1071,
1135,
261,
11890,
13,
288,
203,
203,
3639,
309,
261,
3576,
18,
15330,
480,
3981,
13,
288,
203,
5411,
327,
2321,
12,
668,
18,
2124,
28383,
16,
13436,
966,
18... |
pragma solidity ^0.5.0;
import "../GhostOwnership.sol";
import "../SpecialAuction.sol";
import "../SaleAuction.sol";
contract MockAuctionCreator is GhostOwnership {
// address of special auction that control sale of special ghost.
SpecialAuction public specialAuction;
// address of sale auction that cont... | address of special auction that control sale of special ghost. address of sale auction that control sale of ghost between users. | contract MockAuctionCreator is GhostOwnership {
SpecialAuction public specialAuction;
SaleAuction public saleAuction;
constructor (address _specialAddress, address _saleAddress) public GhostOwnership(msg.sender) {
SpecialAuction candidateSpecialContract = SpecialAuction(_specialAddress);
... | 5,423,415 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
434,
4582,
279,
4062,
716,
3325,
272,
5349,
434,
4582,
314,
2564,
18,
1758,
434,
272,
5349,
279,
4062,
716,
3325,
272,
5349,
434,
314,
2564,
3086,
3677,
18,
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,
16351,
7867,
37,
4062,
10636,
353,
611,
2564,
5460,
12565,
288,
203,
565,
13409,
37,
4062,
1071,
4582,
37,
4062,
31,
203,
203,
565,
348,
5349,
37,
4062,
1071,
272,
5349,
37,
4062,
31,
203,
203,
565,
3885,
261,
2867,
389,
9371,
... |