file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.2;
abstract contract MerkleZeros {
uint256[33] internal zeros;
// Quinary tree zeros (hash of a blank state leaf)
constructor() {
zeros[0] = uint256(6769006970205099520508948723718471724660867171122235270773600567925038008762);
zeros[1] ... | Quinary tree zeros (hash of a blank state leaf) | abstract contract MerkleZeros {
uint256[33] internal zeros;
pragma solidity ^0.7.2;
constructor() {
zeros[0] = uint256(6769006970205099520508948723718471724660867171122235270773600567925038008762);
zeros[1] = uint256(1817443256073160983037956906834195537015546107754139333779374752610409243040);... | 1,822,998 | [
1,
4625,
348,
7953,
560,
30,
225,
4783,
2101,
2151,
4922,
261,
2816,
434,
279,
7052,
919,
7839,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
17801,
6835,
31827,
20801,
288,
203,
565,
2254,
5034,
63,
3707,
65,
2713,
4922,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
27,
18,
22,
31,
203,
565,
3885,
1435,
288,
203,
3639,
4922,
63,
20,
65,
273,
2254,
5034,
12,
2... |
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
/**
* @author Victor Fage <victorfage@gmail.com>
*/
contract RewardsSuni is Ownable {
using SafeERC20 for IERC2... | * @dev Set the amount of the airdrop reward @param _rewardAmount The amount of reward ERC20 token Requirements: - Only the owner can send this function/ | function _setReward(uint256 _rewardAmount) internal {
rewardAmount = _rewardAmount;
emit SetReward(msg.sender, _rewardAmount);
}
| 6,365,155 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1000,
326,
3844,
434,
326,
279,
6909,
1764,
19890,
632,
891,
389,
266,
2913,
6275,
1021,
3844,
434,
19890,
4232,
39,
3462,
1147,
29076,
30,
300,
5098,
326,
3410,
848,
1366,
333,
445,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
17631,
1060,
12,
11890,
5034,
389,
266,
2913,
6275,
13,
2713,
288,
203,
3639,
19890,
6275,
273,
389,
266,
2913,
6275,
31,
203,
203,
3639,
3626,
1000,
17631,
1060,
12,
3576,
18,
15330,
16,
389,
266,
2913,
6275,... |
./full_match/10/0x566d358f3386abAc32CBE750489306C73CAaC9c2/sources/contracts/EscrowAndStaking/EscrowThales.sol | @notice Get the vesting period of specific vesting entry for the account @param account to get the vesting period for @param index of vesting entry to get vesting period for @return the vesting period | function getStakerPeriod(address account, uint index) external view returns (uint) {
require(account != address(0), "Invalid account address");
return vestingEntries[account][index].vesting_period;
}
| 3,782,486 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
326,
331,
10100,
3879,
434,
2923,
331,
10100,
1241,
364,
326,
2236,
632,
891,
2236,
358,
336,
326,
331,
10100,
3879,
364,
632,
891,
770,
434,
331,
10100,
1241,
358,
336,
331,
10100,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
21491,
6388,
5027,
12,
2867,
2236,
16,
2254,
770,
13,
3903,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
1941,
2236,
1758,
8863,
203,
3639,
327,
331,
10100,
5400,
63,
4631,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./IERC20Metadata.sol";
import "./Context.sol";
/**
* @dev Interface of the contract capable of checking if an instruction is
* confirmed over at Incognito Chain
*/
interface Incognito {
function instructionApproved(
... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(bytes32 => bool) private withdrawed;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | 498,489 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
16,
467,
654,
39,
3462,
2277,
288,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
565,
2874,
12,
2867,
516,
2874,
12,
2867,
516,
22... |
pragma solidity ^0.4.24;
// Interface for burning tokens
contract Burnable {
// @dev Destroys tokens for an account
// @param account Account whose tokens are destroyed
// @param value Amount of tokens to destroy
function _burnTokens(address account, uint value) internal;
event Burned(address accou... | Public interface for balances | function balanceOf(address account) public view returns (uint balance) {
return balances[account];
}
| 15,861,305 | [
1,
4625,
348,
7953,
560,
30,
7224,
1560,
364,
324,
26488,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11013,
951,
12,
2867,
2236,
13,
1071,
1476,
1135,
261,
11890,
11013,
13,
288,
203,
3639,
327,
324,
26488,
63,
4631,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.4.24;
pragma experimental "v0.5.0";
/*
Copyright 2018 dYdX Trading Inc.
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/LICENS... | * @title ERC20Short @author dYdX Contract used to tokenize short positions and allow them to be used as ERC20-compliant tokens. Holding the tokens allows the holder to close a piece of the short position, or be entitled to some amount of heldTokens after settlement. The total supply of short tokens is always exactly eq... | contract ERC20Short is ERC20Position {
constructor(
bytes32 positionId,
address margin,
address initialTokenHolder,
address[] trustedRecipients,
address[] trustedWithdrawers
)
public
ERC20Position(
positionId,
margin,
in... | 6,180,108 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
4897,
632,
4161,
302,
61,
72,
60,
13456,
1399,
358,
13672,
3025,
6865,
471,
1699,
2182,
358,
506,
1399,
487,
4232,
39,
3462,
17,
832,
18515,
2430,
18,
670,
1673,
310,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
4897,
353,
4232,
39,
3462,
2555,
288,
203,
565,
3885,
12,
203,
3639,
1731,
1578,
1754,
548,
16,
203,
3639,
1758,
7333,
16,
203,
3639,
1758,
2172,
1345,
6064,
16,
203,
3639,
1758,
8526,
13179,
22740,
16,
203... |
./full_match/420/0x5597F952E9aB06D914CFf34f6E26f3D0C0cc5e51/sources/contracts/core/connext/facets/BaseConnextFacet.sol | * @notice Calculates a transferId/ | function _calculateTransferId(
CallParams memory _params,
uint256 _amount,
uint256 _nonce,
bytes32 _canonicalId,
uint32 _canonicalDomain,
address _originSender
) internal pure returns (bytes32) {
return keccak256(abi.encode(_nonce, _params, _originSender, _canonicalId, _canonicalDomain, ... | 13,226,998 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
26128,
279,
7412,
548,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
11162,
5912,
548,
12,
203,
565,
3049,
1370,
3778,
389,
2010,
16,
203,
565,
2254,
5034,
389,
8949,
16,
203,
565,
2254,
5034,
389,
12824,
16,
203,
565,
1731,
1578,
389,
18288,
548,
16,
203,
565,
2254,
1578,
389,
18... |
./full_match/43113/0xef28AC723ABe547820F3B61d4c3547e06d7A4893/sources/Vikings.sol | MINTING & CLAIMING FUNCTIONALITY Calculate the total mint fee of the transaction. Cache the running mint fee. | function mintViking(uint256 minting) public virtual payable {
require(saleStarted, "SALE NOT STARTED");
require(getTotalMinted() < MAX_MINT, "SALE HAS ENDED");
require(minting > 0 && minting <= 10, "INVALID MINT AMOUNT");
require(getTotalMinted().add(minting) <= MAX_MINT, "MINT WOULD... | 13,183,000 | [
1,
4625,
348,
7953,
560,
30,
490,
3217,
1360,
473,
29859,
3445,
1360,
13690,
1013,
4107,
9029,
326,
2078,
312,
474,
14036,
434,
326,
2492,
18,
4379,
326,
3549,
312,
474,
14036,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
58,
1766,
310,
12,
11890,
5034,
312,
474,
310,
13,
1071,
5024,
8843,
429,
288,
203,
3639,
2583,
12,
87,
5349,
9217,
16,
315,
5233,
900,
4269,
21807,
6404,
8863,
203,
3639,
2583,
12,
588,
5269,
49,
474,
329,
... |
pragma solidity ^0.5.6;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be ap... | * @dev Implementation of the `IKIP13` interface. Contracts may inherit from this and call `_registerInterface` to declare their support of an interface./ | contract KIP13 is IKIP13 {
bytes4 private constant _INTERFACE_ID_KIP13 = 0x01ffc9a7;
mapping(bytes4 => bool) private _supportedInterfaces;
constructor () internal {
_registerInterface(_INTERFACE_ID_KIP13);
}
function supportsInterface(bytes4 interfaceId) external view returns (bool) {
... | 1,015,914 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
1375,
45,
47,
2579,
3437,
68,
1560,
18,
30131,
2026,
6811,
628,
333,
471,
745,
1375,
67,
4861,
1358,
68,
358,
14196,
3675,
2865,
434,
392,
1560,
18,
19,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1475,
2579,
3437,
353,
467,
47,
2579,
3437,
288,
203,
565,
1731,
24,
3238,
5381,
389,
18865,
67,
734,
67,
47,
2579,
3437,
273,
374,
92,
1611,
1403,
71,
29,
69,
27,
31,
203,
203,
565,
2874,
12,
3890,
24,
516,
1426,
13,
... |
./full_match/3/0xe8cf9aC22E065991c1761ce04A6Ca277dF920721/sources/browser/Vesting.sol | ------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------ | contract Vesting is Owned, ERC20Interface {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
mapping(address => Schedule) public schedules;
mapping(address => uint256) balances;
address public lockedTokenAddress;
constructor() public {
... | 8,144,860 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
776,
10100,
353,
14223,
11748,
16,
4232,
39,
3462,
1358,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
... |
./partial_match/1/0xFB5653E64191aEef7513D1a8ffd53FB65db326B9/sources/StablesPoolCash.sol | Deposit LP tokens to MasterChef for SUSHI allocation. | function deposit(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (pool.poolType == 10) {
rebasePool(_pid);
if (user.amount > 0) {
user.amou... | 16,030,659 | [
1,
4625,
348,
7953,
560,
30,
225,
4019,
538,
305,
511,
52,
2430,
358,
13453,
39,
580,
74,
364,
11726,
2664,
45,
13481,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
443,
1724,
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,
3576,
... |
./partial_match/97/0xD7dB66AA506bFef7B47266f9CCD801F3C720d43f/sources/stakingPool.sol | set reward token address | function setRewardTokenAddress(address _address) public onlyOwner {
rewardToken = IERC20(_address);
}
| 11,356,202 | [
1,
4625,
348,
7953,
560,
30,
444,
19890,
1147,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
17631,
1060,
1345,
1887,
12,
2867,
389,
2867,
13,
1071,
1338,
5541,
288,
203,
3639,
19890,
1345,
273,
467,
654,
39,
3462,
24899,
2867,
1769,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.9.0;
//import "@openzeppelin/upgrades-core/contracts/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC777/ERC777Upgradeable.sol";
//import "@openzeppelin/contracts/token/ERC777/ERC777.sol";
//import "./SafeMath.sol";
interface Custom... | * @dev Calculates fees for the transaction amount. Reservoir(owner) and Pool accounts are exempted from fees. @param amount The transaction/transfer token amount/Reservoir and Pool accounts are excepted from Tranfer fees | {
uint256 feesAmount = 0;
function _calculateFeesAmount(uint256 amount)
internal
view
returns (uint256)
if (_msgSender() != owner() && _msgSender() != poolAddress()) {
}
return feesAmount;
}
| 6,168,859 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26128,
1656,
281,
364,
326,
2492,
3844,
18,
1124,
264,
31238,
12,
8443,
13,
471,
8828,
9484,
854,
431,
5744,
329,
628,
1656,
281,
18,
632,
891,
3844,
1021,
2492,
19,
13866,
1147,
3844,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
2254,
5034,
1656,
281,
6275,
273,
374,
31,
203,
203,
565,
445,
389,
11162,
2954,
281,
6275,
12,
11890,
5034,
3844,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
3639,
309,
... |
// File: @openzeppelin/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 IERC20 {
/**
* @dev Returns the amount of tokens in existence.
... | * @dev Increase number of tokens locked for a specified reason @param _to adress to which tokens are to be increased @param _reason The reason to lock tokens @param _amount Number of tokens to be increased/ | function increaseLockAmount(address _to, bytes32 _reason, uint256 _amount) public onlyWhitelistAdmin returns (bool) {
require(_to != address(0), "Zero address not allowed");
require(tokensLocked(_to, _reason) > 0, NOT_LOCKED);
_transfer(msg.sender, address(this), _amount);
locked[_to][_reason].amoun... | 5,500,697 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
657,
11908,
1300,
434,
2430,
8586,
364,
279,
1269,
3971,
632,
891,
389,
869,
1261,
663,
358,
1492,
2430,
854,
358,
506,
31383,
632,
891,
389,
10579,
1021,
3971,
358,
2176,
2430,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
445,
10929,
2531,
6275,
12,
2867,
389,
869,
16,
1731,
1578,
389,
10579,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
18927,
4446,
1135,
261,
6430,
13,
288,
203,
565,
2583,
24899,
869,
480,
1758,
12,
20,
3631,
315,
7170,
1758,
... |
./full_match/137/0x6907136c8f986191a570D080cBEfB4044d5Ab269/sources/MaticRouter.sol | performs chained getAmountOut calculations on any number of pairs | function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
require(path.length >= 2, 'MaticLibrary: INVALID_PATH');
amounts = new uint[](path.length);
amounts[0] = amountIn;
for (uint i; i < path.length - 1; i++) {
... | 3,745,766 | [
1,
4625,
348,
7953,
560,
30,
225,
11199,
20269,
24418,
1182,
20882,
603,
1281,
1300,
434,
5574,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
24418,
87,
1182,
12,
2867,
3272,
16,
2254,
3844,
382,
16,
1758,
8526,
3778,
589,
13,
2713,
1476,
1135,
261,
11890,
8526,
3778,
30980,
13,
288,
203,
3639,
2583,
12,
803,
18,
2469,
1545,
576,
16,
296,
49,
2126,
9313,
30... |
import "Ownable.sol";
import "Destroyable.sol";
pragma solidity 0.5.12;
contract Mapping is Ownable, Destroyable {
struct Person {
//uint id;
string name;
uint age;
uint height;
bool senior;
//address walletAddress;
}
event personCreated(string name,... | Person[] public people; | mapping(address => Person) private people;
| 2,536,214 | [
1,
4625,
348,
7953,
560,
30,
11573,
8526,
1071,
16951,
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,
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,
2874,
12,
2867,
516,
11573,
13,
3238,
16951,
31,
7010,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42220/0x33DeF5B052b032bE1955e179FE5d90474dF69c43/sources/contracts/OrderRFQMixin.sol | @notice Same as `fillOrderRFQ` but allows to specify funds destination instead of `msg.sender` @param order Order quote to fill @param signature Signature to confirm quote ownership @param makingAmount Making amount @param takingAmount Taking amount @param target Address that will receive swap funds Validate order Che... | function fillOrderRFQTo(
OrderRFQ memory order,
bytes calldata signature,
uint256 makingAmount,
uint256 takingAmount,
address target
) public returns(uint256, uint256) {
require(target != address(0), "LOP: zero target is forbidden");
address maker = order... | 16,316,594 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
17795,
487,
1375,
5935,
2448,
12918,
53,
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,
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,
3636,
2448,
12918,
53,
774,
12,
203,
3639,
4347,
12918,
53,
3778,
1353,
16,
203,
3639,
1731,
745,
892,
3372,
16,
203,
3639,
2254,
5034,
10480,
6275,
16,
203,
3639,
2254,
5034,
13763,
6275,
16,
203,
3639,
1758,
1018,
203... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./interfaces/Constants.sol";
import { PoolParams } from "./interfaces/Types.sol";
import "./interfaces/IMintable.sol";
import "./interfaces/IVes... | $ZKP token max supply Scaling factor in token amount calculations | contract Constants {
uint256 internal constant MAX_SUPPLY = 1e27;
uint256 internal constant SCALE = 1e12;
}
pragma solidity ^0.8.0;
}
| 424,835 | [
1,
4625,
348,
7953,
560,
30,
225,
271,
62,
47,
52,
1147,
943,
14467,
17536,
5578,
316,
1147,
3844,
20882,
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,
16351,
5245,
288,
203,
565,
2254,
5034,
2713,
5381,
4552,
67,
13272,
23893,
273,
404,
73,
5324,
31,
203,
203,
565,
2254,
5034,
2713,
5381,
25844,
273,
404,
73,
2138,
31,
203,
97,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18... |
// SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/cont... | User trade fee. if Zero - fee by default
| mapping(address => uint256) public userFee; | 5,521,055 | [
1,
4625,
348,
7953,
560,
30,
2177,
18542,
14036,
18,
309,
12744,
300,
14036,
635,
805,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2867,
516,
2254,
5034,
13,
1071,
729,
14667,
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,
-10... |
/**
*Submitted for verification at Etherscan.io on 2020-12-23
*/
pragma solidity 0.6.2;
/**
* @dev The contract has an owner address, and provides basic authorization control whitch
* simplifies the implementation of user permissions. This contract is based on the source code at:
* https://github.com/OpenZeppel... | * @dev not bullet-proof check, but additional measure, not to allow buy & sell from contracts/ | function isContract(address _addr) internal view returns (bool){
uint32 size;
assembly {
size := extcodesize(_addr)
}
return (size > 0);
}
| 2,006,314 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
486,
31650,
17,
24207,
866,
16,
1496,
3312,
6649,
16,
486,
358,
1699,
30143,
473,
357,
80,
628,
20092,
19,
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,
565,
445,
353,
8924,
12,
2867,
389,
4793,
13,
2713,
1476,
1135,
261,
6430,
15329,
203,
1377,
2254,
1578,
963,
31,
203,
1377,
19931,
288,
203,
1850,
963,
519,
1110,
7000,
554,
24899,
4793,
13,
203,
1377,
289,
203,
4202,
203,
1377,... |
/*
Introducing "TORPEDO LAUNCH" our second HDX20 POWERED GAME running on the Ethereum Blockchain
"TORPEDO LAUNCH" is playable @ https://torpedolaunch.io
About the game :
TORPEDO LAUNCH is a Submarine Arcade action game where the player is launching torpedoes to sink enemies boats
How to play TORPEDO LA... | [1] = playerID[2]=score | {
uint256 shares;
uint256 torpedoBatchBlockTimeout;
bytes data;
uint128 token;
}
struct GameRoundData_s
| 1,761,000 | [
1,
4625,
348,
7953,
560,
30,
306,
21,
65,
273,
7291,
734,
63,
22,
65,
33,
6355,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
2254,
5034,
540,
24123,
31,
203,
3639,
203,
3639,
2254,
5034,
540,
8934,
1845,
83,
4497,
1768,
2694,
31,
377,
203,
540,
203,
3639,
1731,
6647,
501,
31,
203,
540,
203,
3639,
2254,
10392,
540,
1147,
31,
203,
... |
// ethereum solc wants his pragma
pragma abicoder v2;
contract structs {
enum enum_bar { bar1, bar2, bar3, bar4 }
struct struct_foo {
enum_bar f1;
bytes f2;
int64 f3;
bytes3 f4;
string f5;
inner_foo f6;
}
struct inner_foo {
bool in1;
str... | declare a struct literal with fields. There is an inner struct literal which uses positions | function struct_literal() public {
struct_foo literal = struct_foo({
f1: enum_bar.bar4,
f2: "Supercalifragilisticexpialidocious",
f3: 0xeffedead1234,
f4: unicode'€',
f5: "Antidisestablishmentarianism",
f6: inner_foo(true, "Pseudopseudoh... | 7,236,844 | [
1,
4625,
348,
7953,
560,
30,
225,
14196,
279,
1958,
7158,
598,
1466,
18,
6149,
353,
392,
3443,
1958,
7158,
1492,
4692,
6865,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1958,
67,
13107,
1435,
1071,
288,
203,
3639,
1958,
67,
11351,
7158,
273,
1958,
67,
11351,
12590,
203,
5411,
284,
21,
30,
2792,
67,
3215,
18,
3215,
24,
16,
203,
5411,
284,
22,
30,
315,
8051,
771,
430,
2458,
330,
376,
... |
/*
website: gemstone.finance
DDDDDDDDDDDDD EEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFIIIIIIIIII
D::::::::::::DDD E::::::::::::::::::::EF::::::::::::::::::::FI::::::::I
D:::::::::::::::DD E::::::::::::::::::::EF::::::::::::::::::::FI::::::::I
DDD:::::DDDDD:::::DEE::::::EEEEEEEEE::::EFF::::::FFFFFFFFF::::... | Accumulated STONEs per share, times 1e12. See below.
| uint256 accStonePerShare; | 1,738,273 | [
1,
4625,
348,
7953,
560,
30,
225,
15980,
5283,
690,
2347,
5998,
87,
1534,
7433,
16,
4124,
404,
73,
2138,
18,
2164,
5712,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
4078,
510,
476,
2173,
9535,
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,
... |
./partial_match/42161/0x6852024A3051DE1513129CeD4DdB74B3454bef30/sources/contracts/CamelotPair.sol | if set to true, defines pair type as stable
| bool public stableSwap; | 3,493,201 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
444,
358,
638,
16,
11164,
3082,
618,
487,
14114,
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,
225,
1426,
1071,
14114,
12521,
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.5.17;
// Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/lib/math/SafeMath.sol
// Adapted to use pragma ^0.5.17 and satisfy our linter rules
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
string private constan... | Execute a binary search between the checkpointed times of the history | uint256 low = 0;
| 91,531 | [
1,
4625,
348,
7953,
560,
30,
225,
7903,
279,
3112,
1623,
3086,
326,
9776,
329,
4124,
434,
326,
4927,
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,
3639,
2254,
5034,
4587,
273,
374,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | вперить взгляд в экран
| rus_verbs:вперить{}, | 5,483,323 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
115,
145,
128,
145,
118,
146,
227,
145,
121,
146,
229,
146,
239,
225,
145,
115,
145,
120,
145,
116,
145,
124,
146,
242,
145,
117,
225,
145,
115,
225,
146,
240,
145,
123,
146,
227,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8010,
67,
502,
2038,
30,
145,
115,
145,
128,
145,
118,
146,
227,
145,
121,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/888/0x294598d9599A588D8df99711C52FC2c2559754Fa/sources/contracts/Staking.sol | token address for reward
| IERC20 rewardToken; | 13,224,896 | [
1,
4625,
348,
7953,
560,
30,
225,
1147,
1758,
364,
19890,
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,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
467,
654,
39,
3462,
225,
19890,
1345,
31,
4202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x1D69cFa59158F2BF5726d55869113DDFB9DeB99B/sources/browser/2_Owner.sol | @dev User needs to approve the DSProxy to pull the _tokenAddr tokens @notice User paybacks tokens to the Aave protocol @param _market address provider for specific market @param _tokenAddr The address of the token to be paybacked @param _amount Amount of tokens to be payed back @param _rateMode Type of borrow debt [St... | function _payback(
address _market,
address _tokenAddr,
uint256 _amount,
uint256 _rateMode,
address _from,
address _onBehalf
) internal returns (uint256) {
address lendingPool = ILendingPoolAddressesProviderV2(_market).getLendingPool();
if (_amoun... | 2,958,715 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2177,
4260,
358,
6617,
537,
326,
8678,
3886,
358,
6892,
326,
389,
2316,
3178,
2430,
632,
20392,
2177,
8843,
823,
87,
2430,
358,
326,
432,
836,
1771,
632,
891,
389,
27151,
1758,
2893,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
10239,
823,
12,
203,
3639,
1758,
389,
27151,
16,
203,
3639,
1758,
389,
2316,
3178,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
5141,
2309,
16,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
... |
//Address: 0x35f2AA4E39514C763EB90a24396e2D2c028A19E3
//Contract name: initialLuckyTokenSale
//Balance: 0 Ether
//Verification Date: 8/5/2017
//Transacion Count: 22
// CODE STARTS HERE
pragma solidity 0.4.14;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization c... | * @dev Fallback function which receives ether and create the appropriate number of tokens for the msg.sender./ | function() external payable {
contribute();
}
| 5,434,123 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
21725,
445,
1492,
17024,
225,
2437,
471,
752,
326,
5505,
1300,
434,
2430,
364,
326,
1234,
18,
15330,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1435,
3903,
8843,
429,
288,
203,
565,
356,
887,
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,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/8453/0x07AceD5690e09935b1c0e6E88B772d9440F64718/sources/contracts/Factory.sol | @inheritdoc IFactory | function updateConfigMaster(
address _configMaster
) external override onlyConfigMaster {
emit ConfigMasterUpdated(configMaster, _configMaster);
configMaster = _configMaster;
}
| 16,754,798 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
1733,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1089,
809,
7786,
12,
203,
565,
1758,
389,
1425,
7786,
203,
225,
262,
3903,
3849,
1338,
809,
7786,
288,
203,
565,
3626,
1903,
7786,
7381,
12,
1425,
7786,
16,
389,
1425,
7786,
1769,
203,
565,
642,
7786,
273,
389,
1425,
... |
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.7.6;
import '../VirtualERC20Factory.sol';
contract VirtualERC20FactoryMainnet is VirtualERC20Factory {
/// @dev Initial owner is the habitat rollup bridge.
function _INITIAL_OWNER () internal view virtual override returns (address) {
return 0x96E471B59... | @dev Initial owner is the habitat rollup bridge. | function _INITIAL_OWNER () internal view virtual override returns (address) {
return 0x96E471B5945373dE238963B4E032D3574be4d195;
}
| 6,479,087 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
10188,
3410,
353,
326,
366,
30258,
270,
5824,
416,
10105,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
28497,
67,
29602,
1832,
2713,
1476,
5024,
3849,
1135,
261,
2867,
13,
288,
203,
565,
327,
374,
92,
10525,
41,
9462,
21,
38,
6162,
7950,
6418,
23,
72,
41,
4366,
6675,
4449,
38,
24,
41,
20,
1578,
40,
4763,
5608,
2... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
... | * @dev Emitted when consecutive token ids in range ('fromTokenId') to ('toTokenId') are transferred from one account (`fromAddress`) to another (`toAddress`). Note that `value` may be zero./ SPDX-License-Identifier: MIT | interface IERC721MetadataGenerator is IERC165 {
function tokenMetadata(uint256 tokenId, uint256 niftyType, bytes calldata data) external view returns (string memory);
}
| 5,974,266 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
512,
7948,
1347,
18221,
1147,
3258,
316,
1048,
7707,
2080,
1345,
548,
6134,
358,
7707,
869,
1345,
548,
6134,
854,
906,
4193,
628,
1245,
2236,
21863,
2080,
1887,
24065,
358,
4042,
21863,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27,
5340,
2277,
3908,
353,
467,
654,
39,
28275,
288,
377,
203,
565,
445,
1147,
2277,
12,
11890,
5034,
1147,
548,
16,
2254,
5034,
290,
2136,
93,
559,
16,
1731,
745,
892,
501,
13,
3903,
1476,
1135,
261,
1080,
... |
./full_match/1/0x073C81366c196618260f35128bB4446e8318eCfe/sources/browser/YFI2CStakingOnePercent.sol | YFI2C token contract address reward rate 365.00% per year staking fee 1.5 % unstaking fee 0.5 % unstaking possible after 240 hours | contract YFI2CStakingOnePercent is Ownable {
using SafeMath for uint;
using EnumerableSet for EnumerableSet.AddressSet;
event RewardsTransferred(address holder, uint amount);
address public constant tokenAddress = 0xdb665ab1D56B6821Aea7ca8F3BB2F7d805d4B1E1;
uint public constant reward... | 16,568,441 | [
1,
4625,
348,
7953,
560,
30,
225,
1624,
1653,
22,
39,
1147,
6835,
1758,
19890,
4993,
21382,
18,
713,
9,
1534,
3286,
384,
6159,
14036,
404,
18,
25,
738,
640,
334,
6159,
14036,
374,
18,
25,
738,
640,
334,
6159,
3323,
1839,
27610,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1624,
1653,
22,
39,
510,
6159,
3335,
8410,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
377,
203,
565,
871,
534,
359,
... |
/**
*Submitted for verification at Etherscan.io on 2022-01-31
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
contract Initializable {
bool inited = false;
modifier initializer() {
require(!inited, "already inited");
_;
inited = true;
}
}
// File: contracts/common/m... | * @dev this normally is in Enumerable but is easy add here - no point to call this since it just returns index/ | function tokenByIndex(uint256 index) public view virtual returns (uint256) {
require(index < ERC721SIMP.totalSupply(), "ERC721SIMP: global index out of bounds");
return index;
}
| 10,676,611 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
333,
15849,
353,
316,
6057,
25121,
1496,
353,
12779,
527,
2674,
300,
1158,
1634,
358,
745,
333,
3241,
518,
2537,
1135,
770,
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,
1147,
21268,
12,
11890,
5034,
770,
13,
1071,
1476,
5024,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
1615,
411,
4232,
39,
27,
5340,
31669,
18,
4963,
3088,
1283,
9334,
315,
654,
39,
27,
5340,
31669,
30,
2552,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Part: IFund
interface IFund {
function underlying() external view returns (address);
function relayer() external view returns (address);
function deposit(uint256 amountWei) external;
function depositFor(... | * @dev Standard math utilities missing in the Solidity language./ | library MathUpgradeable {
}
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
function average(uint256 a, uint256 b) internal pure returns (uint... | 149,712 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8263,
4233,
22538,
3315,
316,
326,
348,
7953,
560,
2653,
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,
12083,
2361,
10784,
429,
288,
203,
97,
203,
203,
565,
445,
943,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
279,
1545,
324,
692,
279,
294,
324,
31,
203,
565,
289,... |
// SPDX-License-Identifier: MIT-open-group
pragma solidity ^0.8.0;
import "../../lib/openzeppelin/token/ERC20/ERC20.sol";
import "./utils/Admin.sol";
import "./utils/Mutex.sol";
import "./utils/MagicEthTransfer.sol";
import "./utils/EthSafeTransfer.sol";
import "./math/Sigmoid.sol";
contract MadByte is ERC20, Admin,... | Tracks the amount of each deposit. Key is deposit id, value is amount deposited. | mapping(uint256 => uint256) _deposits;
| 13,041,037 | [
1,
4625,
348,
7953,
560,
30,
225,
11065,
87,
326,
3844,
434,
1517,
443,
1724,
18,
1929,
353,
443,
1724,
612,
16,
460,
353,
3844,
443,
1724,
329,
18,
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,
565,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
389,
323,
917,
1282,
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,... |
pragma solidity ^0.5.16;
import "openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol";
import "./Owned.sol";
import "./Pausable.sol";
import "./SafeDecimalMath.sol";
import "./interfaces/IFeePool.sol";
import "./interfaces/ISynth.sol";
import "./interfaces/IERC20.sol";
import "./interfaces/IDepot.sol";
import ".... | ========== CONSTRUCTOR ========== | constructor(address _owner, address _resolver) public Owned() Pausable(_owner) MixinResolver(_owner, _resolver) {
require(_owner != address(0), "Owner address cannot be 0");
owner = _owner;
emit OwnerChanged(address(0), _owner);
}
| 13,019,944 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
3492,
13915,
916,
422,
1432,
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,
3885,
12,
2867,
389,
8443,
16,
1758,
389,
14122,
13,
1071,
14223,
11748,
1435,
21800,
16665,
24899,
8443,
13,
490,
10131,
4301,
24899,
8443,
16,
389,
14122,
13,
288,
203,
3639,
2583,
24899,
8443,
480,
1758,
12,
20,
3631,
315,
... |
./full_match/56/0x0D926545Cd3a0C0F3A8a8F7068233D0dd68ed490/sources/project_/contracts/DTEST.sol | if any account belongs to _isExcludedFromFee account then remove the fee | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if(amount == 0) {
super._transfe... | 3,227,489 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
pragma solidity ^0.5.0;
/// @title Ownable contract - base contract with an owner
contract Ownable {
address public owner;
constructor () public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) publ... | @dev Tranfer tokens from one address to other @param _from source address @param _to dest address @param _value tokens amount @return transfer result | function transferFrom(address _from, address _to, uint _value) public returns (bool success) {
bytes memory empty;
return transferFrom(_from, _to, _value, empty);
}
| 13,139,553 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
840,
304,
586,
2430,
628,
1245,
1758,
358,
1308,
632,
891,
389,
2080,
1084,
1758,
632,
891,
389,
869,
1570,
1758,
632,
891,
389,
1132,
2430,
3844,
632,
2463,
7412,
563,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
565,
1731,
3778,
1008,
31,
203,
565,
327,
7412,
1265,
24899,
2080,
16,
389,
869,
16,
389,
1132,
16,
... |
pragma solidity >=0.4.0 <0.6.0;
/*
Copyright 2018, Jordi Baylina
Contributors: Adrià Massanet <adria@codecontext.io>, RJ Ewing, Griff
Green, Arthur Lunn
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the... | @dev `ILiquidPledgingPlugin` is the basic interface for any liquid pledging plugin | contract ILiquidPledgingPlugin {
function beforeTransfer(
uint64 pledgeManager,
uint64 pledgeFrom,
uint64 pledgeTo,
uint64 context,
address token,
uint amount ) public returns (uint maxAllowed);
function afterTransfer(
uint64 pledgeManager,
uint6... | 6,385,405 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1375,
2627,
18988,
350,
52,
1259,
1998,
3773,
68,
353,
326,
5337,
1560,
364,
1281,
225,
4501,
26595,
293,
1259,
1998,
1909,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
467,
48,
18988,
350,
52,
1259,
1998,
3773,
288,
203,
203,
565,
445,
1865,
5912,
12,
203,
3639,
2254,
1105,
293,
19998,
1318,
16,
203,
3639,
2254,
1105,
293,
19998,
1265,
16,
203,
3639,
2254,
1105,
293,
19998,
774,
16,
203,... |
/**
* The Consumer Contract Wallet
* Copyright (C) 2018 The Contract Wallet Company Limited
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or... | decimal value of '+'
| byte constant private PLUS_ASCII = byte(43); | 990,933 | [
1,
4625,
348,
7953,
560,
30,
6970,
460,
434,
10058,
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,
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,
1160,
5381,
3238,
22443,
3378,
67,
13756,
273,
1160,
12,
8942,
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,
... |
pragma solidity ^0.4.17;
contract Election{
address public manager; // contract manager
bool public isActive;
mapping(uint256 => address[]) public users; // all votes
mapping(address => uint256[]) public votes; // to fetch one user's votes
uint256 public totalUsers; // total user... | reward for per winner.
| uint256 reward = (this.balance - managerFee) / winnersCount; | 912,244 | [
1,
4625,
348,
7953,
560,
30,
225,
19890,
364,
1534,
5657,
1224,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5034,
19890,
273,
261,
2211,
18,
12296,
300,
3301,
14667,
13,
342,
5657,
9646,
1380,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/71401/0xfdbD49b5FebdfE015dbEA89014AD1e92E9401c4f/sources/contracts/Liquidation.sol | eth -> linear eth ckb -> linear ckb usdc -> linear usdc -> hadouken boosted usdt -> linear usdt -> hadouken boosted | function _getUnderylingTokenToBoostedTokenSwapData(
address underylingToken,
address boostedToken,
uint256 amount
)
private
view
returns (
IVault.BatchSwapStep[] memory,
IVault.FundManagement memory fundManagement,
IAsset[] memo... | 7,100,286 | [
1,
4625,
348,
7953,
560,
30,
225,
13750,
317,
9103,
13750,
276,
8899,
317,
9103,
276,
8899,
584,
7201,
317,
9103,
584,
7201,
317,
9323,
1395,
28735,
14994,
329,
584,
7510,
317,
9103,
584,
7510,
317,
9323,
1395,
28735,
14994,
329,
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,
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,
588,
984,
72,
627,
2456,
1345,
774,
26653,
329,
1345,
12521,
751,
12,
203,
3639,
1758,
22927,
627,
2456,
1345,
16,
203,
3639,
1758,
14994,
329,
1345,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
203,
3639,
3238,... |
./partial_match/1/0xB1F2a5fACd0DDc39072d09483C78172aeF13Fa46/sources/TOKEN.sol | uint256 public maxWalletToken = 100000000 * (10**18); uint256 public _maxTxAmount = 100000000 * 10**18; auto liquidity | contract TOKEN is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => bool) private _isExcludedFromFee;
mapping (address => bool) private _isExcluded;
mapping (address => mapping (... | 9,158,519 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
1071,
943,
16936,
1345,
273,
2130,
9449,
380,
261,
2163,
636,
2643,
1769,
2254,
5034,
1071,
225,
389,
1896,
4188,
6275,
377,
273,
2130,
9449,
380,
1728,
636,
2643,
31,
3656,
4501,
372,
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,
14275,
353,
1772,
16,
467,
5948,
52,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
86,
5460,
329,
31,
203,
565,
2874,
261,
... |
pragma solidity ^0.4.24;
contract BlindAuction {
//
enum ProductStatus {Open,Deal, Sold, UnSold}
struct Bid {
address buyer;
uint productId;
uint value; // 公开的价格, 相当于订金, 该价格要大于实际竞拍的价格,否则此次竞拍不成功
bool realed; // 是否退回了订金
}
uint productIndex;
struct Product {
... | 生成Escrow合同require(now > product.auctionEndTime); 由第三方提供仲裁 | function checkAuction(uint productId) public returns(bool) {
Product storage product = products[productId];
require(product.productStatus == ProductStatus.Deal, "ssss");
require(product.highestBidder != msg.sender, "productssss");
require(product.seller != msg.sender, "products");
... | 2,554,285 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
168,
247,
258,
167,
235,
243,
6412,
492,
166,
243,
235,
166,
243,
239,
6528,
12,
3338,
405,
3017,
18,
69,
4062,
25255,
1769,
225,
168,
247,
114,
168,
110,
110,
165,
121,
236,
167,
249,
122,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
37,
4062,
12,
11890,
23820,
13,
1071,
1135,
12,
6430,
13,
288,
203,
3639,
8094,
2502,
3017,
273,
10406,
63,
5896,
548,
15533,
203,
3639,
2583,
12,
5896,
18,
5896,
1482,
422,
8094,
1482,
18,
758,
287,
16,
315,
104... |
./full_match/1/0x2c75A27616117C680AD289590D278C8294fCFE9e/sources/contracts/PolygonZkEVM.sol | * @notice Allows to consolidate any pending state that has already exceed the pendingStateTimeout Can be called by the trusted aggregator, which can consolidate any state without the timeout restrictions @param pendingStateNum Pending state to consolidate/ Check if pending state can be consolidated If trusted aggregato... | function consolidatePendingState(uint64 pendingStateNum) external {
if (msg.sender != trustedAggregator) {
if (isEmergencyState) {
revert OnlyNotEmergencyState();
}
if (!isPendingStateConsolidable(pendingStateNum)) {
revert PendingStateNot... | 4,995,554 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
358,
21785,
340,
1281,
4634,
919,
716,
711,
1818,
9943,
326,
4634,
1119,
2694,
4480,
506,
2566,
635,
326,
13179,
20762,
16,
1492,
848,
21785,
340,
1281,
919,
2887,
326,
2021,
17499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21785,
340,
8579,
1119,
12,
11890,
1105,
4634,
1119,
2578,
13,
3903,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
13179,
17711,
13,
288,
203,
5411,
309,
261,
291,
1514,
24530,
1119,
13,
288,
203,
7734,
15226,
5098,
1... |
./full_match/1/0x8428CBdc4100Fc7e1b14c2E4765A9A8133587f28/sources/src/RegistryManager.sol | ---------- Roles ---------- ---------- Storage ---------- ---------- Constructor ---------- | abstract contract RegistryManager is AccessControl {
bytes32 public constant REGISTRY_MANAGER_ROLE = keccak256("REGISTRY_MANAGER_ROLE");
IOperatorFilterRegistry internal constant REGISTRY =
IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);
pragma solidity ^0.8.13;
import { IOperat... | 8,362,781 | [
1,
4625,
348,
7953,
560,
30,
225,
12181,
19576,
12181,
12181,
5235,
12181,
12181,
11417,
12181,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
5438,
1318,
353,
24349,
288,
203,
565,
1731,
1578,
1071,
5381,
11980,
25042,
67,
19402,
67,
16256,
273,
417,
24410,
581,
5034,
2932,
5937,
25042,
67,
19402,
67,
16256,
8863,
203,
203,
203,
565,
1665,
457,
639,
1586,
42... |
// SPDX-License-Identifier: MIT
/**
* SourceUnit: g:\Projects\blockchain\divinitycels\DC-contracts\contracts\DivinityCellMinter.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides informat... | * @title ERC-721 Non-Fungible Token Standard, optional metadata extension/ | interface IERC721Metadata is IERC721 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function tokenURI(uint256 tokenId) external view returns (string memory);
}
| 76,678 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
17,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
16,
3129,
1982,
2710,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
5831,
467,
654,
39,
27,
5340,
2277,
353,
467,
654,
39,
27,
5340,
288,
203,
565,
445,
508,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
445,
3273,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
44... |
/*
This file is part of The Colony Network.
The Colony Network is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The Colony Netwo... | We do a cast later, so make sure we don't overflow.
| assert(reward < uint256(int256(-1))); | 934,724 | [
1,
4625,
348,
7953,
560,
30,
225,
1660,
741,
279,
4812,
5137,
16,
1427,
1221,
3071,
732,
2727,
1404,
9391,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1815,
12,
266,
2913,
411,
2254,
5034,
12,
474,
5034,
19236,
21,
3719,
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... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.11;
pragma experimental ABIEncoderV2;
import "deps/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "deps/@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "deps/@openzeppelin/contracts-upgradeable/utils/Address... | @dev Unroll from all strategy positions, and transfer non-core tokens to controller rewards Note: All want is automatically withdrawn outside this "inner hook" in base strategy function | function _withdrawAll() internal override {
cvxRewardsPool.withdrawAll(false);
}
| 11,717,219 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1351,
2693,
628,
777,
6252,
6865,
16,
471,
7412,
1661,
17,
3644,
2430,
358,
2596,
283,
6397,
3609,
30,
4826,
2545,
353,
6635,
598,
9446,
82,
8220,
333,
315,
7872,
3953,
6,
316,
1026,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1918,
9446,
1595,
1435,
2713,
3849,
288,
203,
3639,
8951,
92,
17631,
14727,
2864,
18,
1918,
9446,
1595,
12,
5743,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@prps/solidity/contracts/EIP712Boostable.sol";
import "./DubiexLib.sol";
/**
* @dev Dubiex Boostable primitives following the EIP712 standard
*/
abstract contract Boostable is EIP712Boostable {
bytes32 private cons... | * @dev A struct representing the payload of `boostedTakeOrder`./ | struct BoostedTakeOrder {
DubiexLib.TakeOrderInput input;
address payable taker;
BoosterFuel fuel;
BoosterPayload boosterPayload;
}
| 10,209,359 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
432,
1958,
5123,
326,
2385,
434,
1375,
25018,
329,
13391,
2448,
8338,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
17980,
669,
329,
13391,
2448,
288,
203,
3639,
463,
30753,
338,
5664,
18,
13391,
2448,
1210,
810,
31,
203,
3639,
1758,
8843,
429,
268,
6388,
31,
203,
3639,
17980,
29811,
42,
20317,
284,
20317,
31,
203,
3639,
17980,
29811,... |
./full_match/56/0x26f93f9106eEf59C8f78C7Cc631C14E192B34449/sources/project_/contracts/FPulseG0ES2StakerV5.sol | Rewards per day per token deposited in wei. struct to store a stake's token, owner, and earning values | contract FPulseG0ES2StakerV5 is Ownable, IERC721Receiver, ReentrancyGuard {
using SafeERC20 for IERC20;
uint256 public totalStaked;
uint256 public rewardsPerDay;
struct Stake {
uint24 tokenId;
uint48 timestamp;
address owner;
}
event NFTStaked(address owner, uint256 tokenId, uint256 value);... | 3,247,640 | [
1,
4625,
348,
7953,
560,
30,
225,
534,
359,
14727,
1534,
2548,
1534,
1147,
443,
1724,
329,
316,
732,
77,
18,
1958,
358,
1707,
279,
384,
911,
1807,
1147,
16,
3410,
16,
471,
425,
9542,
924,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
28740,
24667,
43,
20,
3991,
22,
510,
6388,
58,
25,
353,
14223,
6914,
16,
467,
654,
39,
27,
5340,
12952,
16,
868,
8230,
12514,
16709,
288,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
225,
... |
./full_match/43113/0xd4db3Ce25ebb343A0C6C99bfFED7fF6A0D884cDc/sources/test.sol | require((!locked[sender] && !locked[recipient])); max wallet code Dividend tracker | function _transferFrom(address sender, address recipient, uint256 amount) internal returns (bool) {
if(locked[recipient]==true||locked[sender]==true)
{
require(verified[sender]==true);
}
if(!authorizations[sender] && !authorizations[recipient]){
require(tradin... | 7,121,479 | [
1,
4625,
348,
7953,
560,
30,
2583,
12443,
5,
15091,
63,
15330,
65,
597,
401,
15091,
63,
20367,
5717,
1769,
943,
9230,
981,
21411,
26746,
9745,
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,
565,
445,
389,
13866,
1265,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
2713,
1135,
261,
6430,
13,
288,
203,
3639,
309,
12,
15091,
63,
20367,
65,
631,
3767,
20081,
15091,
63,
15330,
65,
631,
3767,
13,
203,
3639,
2... |
/**
*Submitted for verification at Etherscan.io on 2021-02-23
*/
// File: contracts/interfaces/interestModelInterface.sol
pragma solidity 0.6.12;
interface interestModelInterface {
function getInterestAmount(address handlerDataStorageAddr, address payable userAddr, bool isView) external view returns (bool, uint256... | * @dev Calculates interest amount for a user @param handlerDataStorageAddr The address of handlerDataStorage contract @param userAddr The address of user @param isView Select _view (before action) or _get (after action) function for calculation @return (bool, uint256, uint256, bool, uint256, uint256)/ | function getInterestAmount(address handlerDataStorageAddr, address payable userAddr, bool isView) external view override returns (bool, uint256, uint256, bool, uint256, uint256)
{
if (isView)
{
return _viewInterestAmount(handlerDataStorageAddr, userAddr);
}
else
{
return _getInterestAmount(handlerData... | 2,263,624 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26128,
16513,
3844,
364,
279,
729,
632,
891,
1838,
751,
3245,
3178,
1021,
1758,
434,
1838,
751,
3245,
6835,
632,
891,
729,
3178,
1021,
1758,
434,
729,
632,
891,
353,
1767,
6766,
389,
1945... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
336,
29281,
6275,
12,
2867,
1838,
751,
3245,
3178,
16,
1758,
8843,
429,
729,
3178,
16,
1426,
353,
1767,
13,
3903,
1476,
3849,
1135,
261,
6430,
16,
2254,
5034,
16,
2254,
5034,
16,
1426,
16,
2254,
5034,
16,
2254,
5034,
... |
pragma solidity ^0.4.25;
/**
* @title BLACK DIA COIN
* @author BLACK DIA COIN TEAM
* @dev BLACK DIA COIN is an ERC223 Token with ERC20 functions and events
* Fully backward compatible with ERC20
*/
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library... | * @dev called by the owner to unpause, returns to normal state/ | function unpause() onlyAuthority whenPaused public {
paused = false;
emit Unpause();
}
| 15,835,177 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2566,
635,
326,
3410,
358,
640,
19476,
16,
1135,
358,
2212,
919,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
640,
19476,
1435,
1338,
10962,
1347,
28590,
1071,
288,
203,
3639,
17781,
273,
629,
31,
203,
3639,
3626,
1351,
19476,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/******************************************/
/* SyncDEX starts here */
/******************************************/
abstract contract SyncDEX
{
function sync() external virtual;
}
/******************************************/
/* ... | * @dev Add a new Liquidity Pool. @param _lpPool Address of Liquidity Pool./ | function addGulpPool (address _lpPool) public isOwner {
GulpPools.push(GulpDEX(_lpPool));
}
| 389,080 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1436,
279,
394,
511,
18988,
24237,
8828,
18,
632,
891,
389,
9953,
2864,
5267,
434,
511,
18988,
24237,
8828,
18,
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,
527,
43,
14290,
2864,
261,
2867,
389,
9953,
2864,
13,
1071,
353,
5541,
288,
203,
3639,
611,
14290,
16639,
18,
6206,
12,
43,
14290,
6832,
24899,
9953,
2864,
10019,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.11;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./abstracts/OwnableProxyDelegation.sol";
import "./abstr... | @dev Emitted when a new factory is added @param newFactory Address of the new factory @dev Emitted when a factory is removed @param oldFactory Address of the removed factory @dev Supported factories to interact with @dev Reverts the transaction if the caller is a supported factory | modifier onlyFactory() {
require(supportedFactories[msg.sender], "OFH: FORBIDDEN");
_;
}
| 427,797 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
512,
7948,
1347,
279,
394,
3272,
353,
3096,
632,
891,
394,
1733,
5267,
434,
326,
394,
3272,
632,
5206,
512,
7948,
1347,
279,
3272,
353,
3723,
632,
891,
1592,
1733,
5267,
434,
326,
3723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
9606,
1338,
1733,
1435,
288,
203,
3639,
2583,
12,
4127,
19271,
63,
3576,
18,
15330,
6487,
315,
3932,
44,
30,
12108,
30198,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.4.21;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original... | * @dev get the current datetime/ | function getCurrentDatetime() private constant returns (uint) {
return now;
}
| 500,618 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
336,
326,
783,
3314,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5175,
16103,
1435,
3238,
5381,
1135,
261,
11890,
13,
288,
203,
3639,
327,
2037,
31,
7010,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
interface IController {
func... | IMPORTANT!: For future reference, when adding new variables for following versions of the controller. All the previous ones should be kept in place and not change locations, types or names. If thye're modified this would cause issues with the memory slots. | {
address public pauseAdmin;
address public override admin;
address public recoveryAdmin;
function initialize(
address _pauseAdmin,
address _admin,
address _recoveryAdmin
) public initializer {
pauseAdmin = _pauseAdmin;
admin = _admin;
recoveryAdmin = _recoveryAdmin;
}
function ... | 12,992,829 | [
1,
4625,
348,
7953,
560,
30,
225,
21840,
6856,
5,
30,
2457,
3563,
2114,
16,
1347,
6534,
394,
3152,
364,
3751,
5244,
434,
326,
2596,
18,
4826,
326,
2416,
5945,
1410,
506,
16555,
316,
3166,
471,
486,
2549,
7838,
16,
1953,
578,
1257,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
95,
203,
203,
225,
1758,
1071,
11722,
4446,
31,
203,
225,
1758,
1071,
3849,
3981,
31,
203,
225,
1758,
1071,
11044,
4446,
31,
203,
203,
225,
445,
4046,
12,
203,
565,
1758,
389,
19476,
4446,
16,
203,
565,
1758,
389,
3666,
16,
203... |
pragma solidity ^0.4.21;
import "./libraries/SafeMath.sol";
import "./Oraclize/Oraclize_API.sol";
import "./libraries/Strings.sol";
/**
*Main chain bridge contract
*/
contract Bridge is usingOraclize{
using SafeMath for uint256;
/***Variables***/
string public bridgedChain;
uint public total_deposit... | * @dev Checks side chain for tokens locked for tranfer through their transferId @param _transferId from locked tokens on the sidechain. It includes the string of parameters including the bytes4 code address of the DappBridge.getTransfer fuction to get the tranfer details (amount, owner, transferId) TO DO: We need to ap... | function checkChild(uint _transferId) public payable{
if (oraclize_getPrice("URL") * 2 > msg.value) {
emit LogNewOraclizeQuery("Oraclize query was NOT sent, please add some ETH to cover for the query fee");
emit LogNewOraclizeQuery("Oraclize query was sent for locked balance");
... | 6,450,287 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13074,
4889,
2687,
364,
2430,
8586,
364,
13637,
586,
3059,
3675,
7412,
548,
632,
891,
389,
13866,
548,
628,
8586,
2430,
603,
326,
4889,
5639,
18,
2597,
6104,
326,
533,
434,
1472,
6508,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
866,
1763,
12,
11890,
389,
13866,
548,
13,
1071,
8843,
429,
95,
203,
3639,
309,
261,
280,
10150,
554,
67,
588,
5147,
2932,
1785,
7923,
380,
576,
225,
405,
1234,
18,
1132,
13,
288,
203,
5411,
3626,
1827,
1908,
51,
354,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./openzeppelin/EnumerableSet.sol";
import "./IMaticulum.sol";
import "./ISchool.sol";
contract MaticulumSchool is ISchool, Ownable {
using EnumerableSet for EnumerableSet.AddressSet;
using Enum... | * @notice Get the admins list waiting validation for a given school @param _schoolId id of school @return addresses of admin/ | function getSchoolAdministratorsWaitingValidation(uint256 _schoolId) external view returns (address[] memory) {
return schoolAdministratorsWaitingValidation[_schoolId].values();
}
| 12,654,489 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
326,
31116,
666,
7336,
3379,
364,
279,
864,
18551,
1371,
632,
891,
389,
28204,
1371,
548,
282,
612,
434,
18551,
1371,
632,
2463,
6138,
434,
3981,
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,
282,
445,
1322,
343,
1371,
4446,
3337,
3062,
15946,
4354,
12,
11890,
5034,
389,
28204,
1371,
548,
13,
3903,
1476,
1135,
261,
2867,
8526,
3778,
13,
288,
203,
1377,
327,
18551,
1371,
4446,
3337,
3062,
15946,
4354,
63,
67,
28204,
1371... |
./full_match/1/0x5c400511fb292a50b4D81e601815f617DB804302/sources/contracts/SuperFuzzGoodGuys.sol | Early Access Time for Whitelist 1: 3PM (PST)
| uint public whitelistOnePreSale = 1632693600; | 8,334,710 | [
1,
4625,
348,
7953,
560,
30,
512,
20279,
5016,
2647,
364,
3497,
7523,
404,
30,
890,
12728,
261,
52,
882,
13,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
10734,
3335,
1386,
30746,
273,
2872,
1578,
8148,
5718,
713,
31,
540,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.17;
pragma experimental ABIEncoderV2;
/**
* @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, whic... | @dev Calculates EIP712 encoding for a hash struct with a given domain hash. @param eip712DomainHash Hash of the domain domain separator data, computed with getDomainHash(). @param hashStruct The EIP712 hash struct. @return EIP712 hash applied to the given EIP712 Domain. Assembly for more effici... | function hashEIP712Message(bytes32 eip712DomainHash, bytes32 hashStruct)
internal
pure
returns (bytes32 result)
{
assembly {
let memPtr := mload(64)
result := keccak256(memPtr, 66)
}
return result;
}
| 35,451 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
26128,
512,
2579,
27,
2138,
2688,
364,
279,
1651,
1958,
598,
279,
864,
2461,
1651,
18,
632,
891,
425,
625,
27,
2138,
3748,
2310,
2474,
434,
326,
2461,
2461,
4182,
501,
16,
8470,
7682,
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,
1651,
41,
2579,
27,
2138,
1079,
12,
3890,
1578,
425,
625,
27,
2138,
3748,
2310,
16,
1731,
1578,
1651,
3823,
13,
203,
565,
2713,
203,
565,
16618,
203,
565,
1135,
261,
3890,
1578,
563,
13,
203,
565,
288,
203,
203,
3639,... |
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(... | * @dev burn tokens @param _value The amount to be burned. @return always true (necessary in case of override)/ | function burn(uint _value)
public
returns (bool)
{
balances[msg.sender] = balances[msg.sender].sub(_value);
totalSupply = totalSupply.sub(_value);
Burn(msg.sender, _value);
Transfer(msg.sender, address(0x0), _value);
return true;
}
| 12,961,424 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
18305,
2430,
632,
891,
389,
1132,
1021,
3844,
358,
506,
18305,
329,
18,
632,
2463,
3712,
638,
261,
82,
4128,
316,
648,
434,
3849,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
11890,
389,
1132,
13,
203,
3639,
1071,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
324,
26488,
63,
3576,
18,
15330,
65,
273,
324,
26488,
63,
3576,
18,
15330,
8009,
1717,
24899,
1132,
1769,
203,
... |
pragma solidity 0.5.15;
import 'ROOT/ICash.sol';
import 'ROOT/reporting/IMarket.sol';
import 'ROOT/libraries/token/ERC20.sol';
import 'ROOT/libraries/math/SafeMathInt256.sol';
import 'ROOT/libraries/math/SafeMathUint256.sol';
import 'ROOT/para/ParaShareToken.sol';
import "ROOT/para/interfaces/IAMMFactory.sol";
import ... | determine short position
| _userNo = SafeMathUint256.min(_userInvalid, _userNo); | 14,049,669 | [
1,
4625,
348,
7953,
560,
30,
225,
4199,
3025,
1754,
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,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
1355,
2279,
273,
14060,
10477,
5487,
5034,
18,
1154,
24899,
1355,
1941,
16,
389,
1355,
2279,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/43113/0x624B695E0E670a46c9352FdC667d4e3B6910E097/sources/escrow-draft.sol | Better call it DisputeAddress
| address payable public agent; | 7,127,890 | [
1,
4625,
348,
7953,
560,
30,
225,
605,
11214,
745,
518,
3035,
2507,
1887,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
8843,
429,
1071,
4040,
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,
... |
pragma solidity ^0.4.19;
/**
* @title ERC20 Basic smart contract
* @author Copyright (c) 2016 Smart Contract Solutions, Inc.
* @author "Manuel Araoz <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6c010d021909000d1e0d03162c0b010d0500420f0301">[email protected]</a>>"
* @dev Simpler ve... | * @dev withdraw tokens amount within vesting rules for reserved wallet/ | function reservedWithdraw() public {
reservedTotalSupply = vestingWithdraw(reservedWallet, _reservedTokens, reservedTotalSupply);
}
| 2,368,222 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
598,
9446,
2430,
3844,
3470,
331,
10100,
2931,
364,
8735,
9230,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
8735,
1190,
9446,
1435,
1071,
288,
203,
3639,
8735,
5269,
3088,
1283,
273,
331,
10100,
1190,
9446,
12,
18898,
16936,
16,
389,
18898,
5157,
16,
8735,
5269,
3088,
1283,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6 <0.7.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/math/... | * @title RateQuoter Contract @notice The contract quoting exchange rates for asset tokens @author vkonst, scorpion9979/ | contract RateQuoter is Initializable, OwnableUpgradeSafe, IRateQuoter {
using SafeMath for uint256;
uint8 internal constant RATE_DECIMALS = 18;
uint128 internal constant RATE_DELAY_MAX_SECS = 3600;
uint256[49] private __gap;
mapping (address => PriceFeed) private _feeds;
pragma solidity >=0.6 <0... | 12,825,260 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
13025,
7678,
264,
13456,
632,
20392,
1021,
6835,
29911,
7829,
17544,
364,
3310,
2430,
632,
4161,
331,
79,
265,
334,
16,
888,
280,
84,
285,
2733,
7235,
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,
16351,
13025,
7678,
264,
353,
10188,
6934,
16,
14223,
6914,
10784,
9890,
16,
467,
4727,
7678,
264,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
28,
2713,
5381,
534,
1777,
67,
23816,
55,
273,
6549,
... |
./full_match/5/0x5Fb9107489f054Edbe1C34C86D98743D491597E2/sources/contracts/PrmntOrigin.sol | uint256 _random = uint256(keccak256(abi.encodePacked(index++, msg.sender, block.timestamp, blockhash(block.number-1)))); uint256 _random = random(string(abi.encodePacked(index++, msg.sender, block.timestamp, blockhash(block.number-1)))); _safeMint(_amount[i], _pickRandomUniqueId(random) uint256 hue = _pickRandomUnique... | function claim(uint256 tokenId, uint256 _amount) public {
require(_amount > 0 && _amount < 6);
tokenHue[tokenId] = _pickRandomUniqueId(tokenId);
string memory tempURI = getURI(tokenHue[tokenId], tokenId);
mintTo(msg.sender, tempURI);
}
| 1,870,620 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
389,
9188,
273,
2254,
5034,
12,
79,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
12,
1615,
9904,
16,
1234,
18,
15330,
16,
1203,
18,
5508,
16,
1203,
2816,
12,
2629,
18,
2696,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7516,
12,
11890,
5034,
1147,
548,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
597,
389,
8949,
411,
1666,
1769,
203,
3639,
1147,
44,
344,
63,
2316,
548,
65,
273,
389,
11503,
8529,
... |
// SPDX-License-Identifier: MIT
Project Meta Audio
pragma solidity =0.8.9;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./access/Ownable.sol";
import "./interfaces/IUniswapV2Pair.sol";
import "./interfaces/IUniswapV2Router02.sol";
import... | 50% of max transaction amount
| maxTxAmount.mul(50).div(10**2); | 5,344,902 | [
1,
4625,
348,
7953,
560,
30,
225,
6437,
9,
434,
943,
2492,
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,
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,
943,
4188,
6275,
18,
16411,
12,
3361,
2934,
2892,
12,
2163,
636,
22,
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... |
./full_match/1/0xc0F42F73b8f01849a2DD99753524d4ba14317EB3/sources/contracts/proxies/Proxies.sol | * @notice HarvesterProxy delegates calls to a Harvester implementation/ | contract HarvesterProxy is InitializeGovernedUpgradeabilityProxy {
}
| 2,966,020 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
670,
297,
3324,
387,
3886,
22310,
4097,
358,
279,
670,
297,
3324,
387,
4471,
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,
16351,
670,
297,
3324,
387,
3886,
353,
9190,
43,
1643,
11748,
10784,
2967,
3886,
288,
203,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity 0.4.23;
/**
* @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;
}
functi... | *@dev Method to calculate bonus for the user as per currently running phase and contribution by the user @param tokens Total tokens purchased by the user @param percentage Array of bonus percentages for the phase/ | function applyBonus(uint256 tokens, uint8 percentage) private pure returns (uint256) {
uint256 tokensToAdd = 0;
tokensToAdd = tokens.mul(percentage).div(100);
return tokens.add(tokensToAdd);
}
| 411,170 | [
1,
4625,
348,
7953,
560,
30,
380,
36,
5206,
2985,
358,
4604,
324,
22889,
364,
326,
729,
487,
1534,
4551,
3549,
6855,
471,
24880,
635,
326,
729,
632,
891,
2430,
10710,
2430,
5405,
343,
8905,
635,
326,
729,
632,
891,
11622,
1510,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
445,
2230,
38,
22889,
12,
11890,
5034,
2430,
16,
2254,
28,
11622,
13,
3238,
16618,
1135,
225,
261,
11890,
5034,
13,
288,
203,
1850,
203,
540,
2254,
5034,
2430,
13786,
273,
374,
31,
203,
540,
2430,
13786,
273,
2430,
18,
16411... |
./partial_match/4/0x2768E24672b6EE867f63c021d9149be1f789B870/sources/AFIToken.sol | calc current gov shares (before transfer) for user `_to` | shareTo = balanceTo.mul(govTokenIdx.sub(usersGovTokensIndexes[govToken][_to])).div(ONE_18);
| 8,569,584 | [
1,
4625,
348,
7953,
560,
30,
225,
7029,
783,
31841,
24123,
261,
5771,
7412,
13,
364,
729,
1375,
67,
869,
68,
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,
1377,
7433,
774,
273,
11013,
774,
18,
16411,
12,
75,
1527,
1345,
4223,
18,
1717,
12,
5577,
43,
1527,
5157,
8639,
63,
75,
1527,
1345,
6362,
67,
869,
5717,
2934,
2892,
12,
5998,
67,
2643,
1769,
203,
2,
-100,
-100,
-100,
-100,
-10... |
pragma solidity >=0.4.21 <0.6.0;
import "./SafeMath.sol";
contract Earnings {
using SafeMath for *;
// -------------------- mapping ------------------------ //
mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information
// -------------------- variate -... | system residue ethuser straight addressissue team rewardget straight userif straight user meet requirementssub reward amount | function teamReferralReward(uint256 ethAmount, address referralStraightAddress)
internal
if (teamRewardInstance.isWhitelistAddress(msg.sender)) {
uint256 _systemRetain = ethAmount.mul(rewardRatio[3]).div(100);
uint256 _nodeReward = _systemRetain.mul(activateSystem).div(100);
... | 939,109 | [
1,
4625,
348,
7953,
560,
30,
2619,
14765,
13750,
1355,
21251,
1758,
13882,
5927,
19890,
588,
21251,
729,
430,
21251,
729,
18721,
12405,
1049,
373,
19890,
3844,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5927,
1957,
29084,
17631,
1060,
12,
11890,
5034,
13750,
6275,
16,
1758,
1278,
29084,
1585,
19717,
1887,
13,
203,
565,
2713,
203,
3639,
309,
261,
10035,
17631,
1060,
1442,
18,
291,
18927,
1887,
12,
3576,
18,
15330,
3719,
2... |
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
contract CoreUniLotterySettings
{
// Percentage calculations.
// As Solidity doesn't have floats, we have to use integers for
// percentage arithmetics.
// We set 1 percent to be equal to 1,000,000 - thus, we
// simulate 6 decimal poi... | * @dev See {IERC20-totalSupply}./ | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| 7,489,754 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
3462,
17,
4963,
3088,
1283,
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,... | [
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,
2078,
3088,
1283,
1435,
1071,
1476,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
203,
3639,
327,
389,
4963,
3088,
1283,
31,
203,
203,
565,
289,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0xF5D428938954efAB68DEb0705019553c6127e0f3/sources/contracts/Sample.sol | 有効投票数 投票できるアドレスのリスト 全コメント数 問題番号 => 問題・解答 問題番号 => コメント数 コメント番号・インデックス => コメント ウォレットアドレス => コメント数 問題番号 => 投票数 ウォレットアドレス・問題番号 ⇨ カウント 問題番号に対して、一人1回まで ウォレットアドレス・コメント番号 ⇨ コメント 合格証NFTのコントラクトを取得する | contract Sample is Ownable{
IERC721 public erc721Contract;
IERC721 public erc721PresentContract;
uint256 validVotesNumber = 3;
address[] public whitelistedAddresses;
uint256 public commentCount;
mapping(uint256 => string) public question;
mapping(uint256 => string) public answer;
m... | 5,621,797 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
167,
255,
236,
166,
237,
122,
167,
237,
248,
168,
103,
106,
167,
248,
113,
225,
167,
237,
248,
168,
103,
106,
164,
228,
105,
164,
228,
240,
164,
229,
238,
164,
229,
100,
164,
230,
236,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
11474,
353,
14223,
6914,
95,
203,
565,
467,
654,
39,
27,
5340,
1071,
6445,
71,
27,
5340,
8924,
31,
203,
565,
467,
654,
39,
27,
5340,
1071,
6445,
71,
27,
5340,
6351,
8924,
31,
203,
203,
565,
2254,
5034,
923,
29637,
1854,
... |
pragma solidity ^0.4.24;
// Example. Token and crowdsale contact
// ====================================
// Crowdsale basic information:
// ------------------------------------
// Token name: Tutorial_name
// Token symbol: TTN
// Decimals: 0
// Total supply cap: 5 000 000 tokens
// Price: 500 tokens per 1 ether
// Bon... | ------------------------------------------------------------------------ Total supply ------------------------------------------------------------------------ | function tokensReleased() public view returns (uint) {
return _totalSupply;
}
| 6,392,953 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
10710,
14467,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2430,
26363,
1435,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
389,
4963,
3088,
1283,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xFCE1c68E7414605fF1f97D197D6Ba05a6d232311/sources/cache/solpp-generated-contracts/CashMarket.sol | Add the fCash and cash to the pool. | market.totalfCash = market.totalfCash.add(fCash);
| 16,064,414 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
326,
284,
39,
961,
471,
276,
961,
358,
326,
2845,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13667,
18,
4963,
74,
39,
961,
273,
13667,
18,
4963,
74,
39,
961,
18,
1289,
12,
74,
39,
961,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contra... | Player wins by forfeit | function checkBattleResults(
uint256 tokenId,
uint256 round,
int256 lastRoundPlayerHp,
int256 lastRoundMonsterHp,
Item memory playerBaseStats
)
public
view
onlyIfBattleFinished(tokenId)
returns (BattleRoundResult memory)
{
if (r... | 13,015,115 | [
1,
4625,
348,
7953,
560,
30,
225,
19185,
31307,
635,
364,
3030,
305,
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,
866,
38,
4558,
298,
3447,
12,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
2254,
5034,
3643,
16,
203,
3639,
509,
5034,
1142,
11066,
12148,
44,
84,
16,
203,
3639,
509,
5034,
1142,
11066,
11415,
8190,
44,
84,
16,
20... |
// SPDX-License-Identifier: GPL-3.0
// solhint-disable no-empty-blocks
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./XPower.sol";
import "./XPowerNftStaked.sol";
/**
* Treasury to claim (MoE) tokens for staked XPowerNft(s).
*/
contract MoeTreasury is Ownable {
/** (Burn... | * @return reward total of tokens for given nft-id */ | function totalRewardOf(uint256 nftId) public view returns (uint256) {
uint256 age = _totalAgeOf(nftId);
uint256 denomination = _denominationOf(_levelOf(nftId));
uint256 apr = aprOf(nftId);
uint256 aprBonus = aprBonusOf(nftId);
uint256 reward = (apr * age * denomination) / 365... | 5,507,252 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
19890,
2078,
434,
2430,
364,
864,
290,
1222,
17,
350,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
17631,
1060,
951,
12,
11890,
5034,
290,
1222,
548,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
9388,
273,
389,
4963,
9692,
951,
12,
82,
1222,
548,
1769,
203,
3639,
2254,
5034,
10716,
17... |
./full_match/137/0xf601ad6d92ead54600E6Ca1C89e0AD3899e46512/sources/contracts/Contract.sol | * @dev Returns an array of token IDs owned by `owner`. This function scans the ownership mapping and is O(`totalSupply`) in complexity. It is meant to be called off-chain. This function is compatiable with ERC721AQueryable./ | function tokensOfOwner(address owner) external view virtual returns (uint256[] memory) {
unchecked {
uint256 tokenIdsIdx;
uint256 tokenIdsLength = balanceOf(owner);
uint256[] memory tokenIds = new uint256[](tokenIdsLength);
for (uint256 i = _startTokenId(); to... | 3,767,741 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
392,
526,
434,
1147,
7115,
16199,
635,
1375,
8443,
8338,
1220,
445,
19676,
326,
23178,
2874,
471,
353,
531,
12,
68,
4963,
3088,
1283,
24065,
316,
21610,
18,
2597,
353,
20348,
358,
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,
2430,
951,
5541,
12,
2867,
3410,
13,
3903,
1476,
5024,
1135,
261,
11890,
5034,
8526,
3778,
13,
288,
203,
3639,
22893,
288,
203,
5411,
2254,
5034,
1147,
2673,
4223,
31,
203,
5411,
2254,
5034,
1147,
2673,
1782,
273,
11013,
... |
/*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | solhint-disable indent @dev Signed, fixed-point, 127-bit precision math library. 1 2**255 1^2 (in fixed-point) 1 e ^ -63.875 0 -63.875 | library LibFixedMath {
int256 private constant FIXED_1 = int256(
0x0000000000000000000000000000000080000000000000000000000000000000
);
int256 private constant MIN_FIXED_VAL = int256(
0x8000000000000000000000000000000000000000000000000000000000000000
);
int256 private constant FIXED_1... | 573,540 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
3504,
632,
5206,
16724,
16,
5499,
17,
1153,
16,
12331,
17,
3682,
6039,
4233,
5313,
18,
404,
576,
636,
10395,
404,
66,
22,
261,
267,
5499,
17,
1153,
13,
404,
425,
3602,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
12083,
10560,
7505,
10477,
288,
203,
565,
509,
5034,
3238,
5381,
26585,
67,
21,
273,
509,
5034,
12,
203,
3639,
374,
92,
12648,
12648,
12648,
12648,
28,
12648,
12648,
12648,
17877,
203,
565,
11272,
203,
565,
509,
5034,
3238,
5381,
6... |
./full_match/3/0x39b4C35953B134dB97DE0eD862BbBCd4B4B5939D/sources/browser/ETHYS.sol | * SOCRE is the sister token to 'sVault Finance', designed to implement and benefit from the same pumpemental concepts, and allow stakers extraordinary benefits. The SCORE Token itself is just a standard ERC20, with: No minting. Public burning. Transfer fee applied. Capped to 10%./ | contract SCORE is DeflationaryERC20 {
constructor() public DeflationaryERC20("sVault Finance", "SCORE") {
_mint(msg.sender, 1000000e18);
}
function burn(uint256 amount) public {
_burn(msg.sender, amount);
}
} | 8,134,999 | [
1,
4625,
348,
7953,
560,
30,
380,
7460,
5458,
353,
326,
272,
1249,
1147,
358,
296,
87,
12003,
9458,
1359,
2187,
26584,
358,
2348,
471,
27641,
7216,
628,
326,
1967,
293,
379,
347,
475,
287,
28415,
16,
471,
1699,
384,
581,
414,
2870,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
348,
15715,
353,
1505,
2242,
367,
814,
654,
39,
3462,
288,
203,
203,
565,
3885,
1435,
1071,
1505,
2242,
367,
814,
654,
39,
3462,
2932,
87,
12003,
9458,
1359,
3113,
315,
28520,
7923,
288,
203,
3639,
389,
81,
474,
12,
3576,
... |
//Address: 0x59ef652ed72bc6b7a8b26da7fe39a853a5c8239a
//Contract name: Crowdsale
//Balance: 0 Ether
//Verification Date: 1/12/2018
//Transacion Count: 2
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issue... | */Total of 100M tokens 15% for owner1, 15% for owner 2 | function ILMTToken (address _owner1, uint8 _owner1Percentage, address _owner2, uint8 _owner2Percentage, uint256 _cap) public {
require(_cap >0);
mint(_owner1, _cap *_owner1Percentage / 100);
mint(_owner2, _cap *_owner2Percentage / 100);
}
| 12,959,406 | [
1,
4625,
348,
7953,
560,
30,
1195,
5269,
434,
2130,
49,
2430,
4711,
9,
364,
3410,
21,
16,
4711,
9,
364,
3410,
576,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
467,
48,
6152,
1345,
261,
2867,
389,
8443,
21,
16,
2254,
28,
389,
8443,
21,
16397,
16,
1758,
389,
8443,
22,
16,
2254,
28,
389,
8443,
22,
16397,
16,
2254,
5034,
389,
5909,
13,
1071,
288,
203,
1377,
2583,
24899,
5909,
... |
/**
*Submitted for verification at Etherscan.io on 2020-04-19
*/
/*
Copyright 2020 dYdX Trading Inc.
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/lic... | * Verify that account balances at the end of the tx are allowable given the initial balances. We require that for every account, either: 1. The account meets the collateralization requirement; OR 2. All of the following are true: a) The absolute value of the account position has not increased; b) The sign of the ac... | function _verifyAccountsFinalBalances(
P1Types.Context memory context,
address[] memory accounts,
P1Types.Balance[] memory initialBalances,
P1Types.Balance[] memory currentBalances
)
private
pure
{
for (uint256 i = 0; i < accounts.length; i++) {
... | 6,439,128 | [
1,
4625,
348,
7953,
560,
30,
380,
8553,
716,
2236,
324,
26488,
622,
326,
679,
434,
326,
2229,
854,
30727,
864,
326,
2172,
324,
26488,
18,
1660,
2583,
716,
364,
3614,
2236,
16,
3344,
30,
404,
18,
1021,
2236,
1791,
2413,
326,
4508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8705,
13971,
7951,
38,
26488,
12,
203,
3639,
453,
21,
2016,
18,
1042,
3778,
819,
16,
203,
3639,
1758,
8526,
3778,
9484,
16,
203,
3639,
453,
21,
2016,
18,
13937,
8526,
3778,
2172,
38,
26488,
16,
203,
3639,
453,
21... |
./full_match/1/0x3Bd85DF9633eF0205206BB519E4dDee152Bb0005/sources/contracts/token/RewardsDistributor.sol | * PRIVILEGE FUNCTION Migrates by governance: (2 options) a) the whole garden or a user for all gardens into checkpoints deprecating c-power @param _address Array of Address to migrate (garden or user) @param _toMigrate Bool to migrate (true) or redo (false)/ | function migrateAddressToCheckpoints(address _address, bool _toMigrate) external override {
_onlyGovernanceOrEmergency();
betaAddressMigrated[_address][_address] = _toMigrate;
}
| 3,050,066 | [
1,
4625,
348,
7953,
560,
30,
380,
10365,
4136,
900,
7113,
13690,
490,
2757,
815,
635,
314,
1643,
82,
1359,
30,
261,
22,
702,
13,
279,
13,
326,
7339,
314,
24466,
578,
279,
729,
364,
777,
314,
1060,
773,
1368,
26402,
443,
4036,
1776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13187,
1887,
18126,
4139,
12,
2867,
389,
2867,
16,
1426,
389,
869,
19594,
13,
3903,
3849,
288,
203,
3639,
389,
3700,
43,
1643,
82,
1359,
1162,
1514,
24530,
5621,
203,
3639,
6796,
1887,
25483,
690,
63,
67,
2867,
6362,
67... |
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access... | The plot metadata marks the bounding area of each plot. The plot metadata's order matches the order of the plot ids array. For example, the first plot metadata is for the first plot id in the array. | string private plotsMetadataUri;
| 15,842,360 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
3207,
1982,
13999,
326,
7552,
5091,
434,
1517,
3207,
18,
1021,
3207,
1982,
1807,
1353,
1885,
326,
1353,
434,
326,
3207,
3258,
526,
18,
2457,
3454,
16,
326,
1122,
3207,
1982,
353,
364,
326,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
533,
3238,
17931,
2277,
3006,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.12;
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./interfaces/IERC20Burnable.sol";
import {YearnVaultAdapterWithIndirectio... | @dev Gets info on the buffer This function is used to query the contract to get the latest state of the buffer @return _toDistribute the amount ready to be distributed @return _deltaBlocks the amount of time since the last phased distribution @return _buffer the amount in the buffer | function bufferInfo() public view returns (uint256 _toDistribute, uint256 _deltaBlocks, uint256 _buffer){
_deltaBlocks = block.number.sub(lastDepositBlock);
_buffer = buffer;
_toDistribute = _buffer.mul(_deltaBlocks).div(transmutationPeriod);
}
| 2,510,737 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
11881,
1123,
603,
326,
1613,
1220,
445,
353,
1399,
358,
843,
326,
6835,
358,
336,
326,
4891,
919,
434,
326,
1613,
632,
2463,
389,
869,
1669,
887,
326,
3844,
5695,
358,
506,
16859,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1613,
966,
1435,
1071,
1476,
1135,
261,
11890,
5034,
389,
869,
1669,
887,
16,
2254,
5034,
389,
9878,
6450,
16,
2254,
5034,
389,
4106,
15329,
203,
3639,
389,
9878,
6450,
273,
1203,
18,
2696,
18,
1717,
12,
2722,
758,
1724... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
// libraries
import {LSP6Utils} from "../../LSP6KeyManager/LSP6Utils.sol";
// modules
import {ERC725Y} from "@erc725/smart-contracts/contracts/ERC725Y.sol";
import {LSP6KeyManager} from "../../LSP6KeyManager/LSP6KeyManager.sol";
/**
* Helper contract to... | * Helper contract to test internal functions of the KeyManager/ | contract KeyManagerInternalTester is LSP6KeyManager {
using LSP6Utils for *;
pragma solidity ^0.8.0;
import {LSP6Utils} from "../../LSP6KeyManager/LSP6Utils.sol";
import {ERC725Y} from "@erc725/smart-contracts/contracts/ERC725Y.sol";
import {LSP6KeyManager} from "../../LSP6KeyManager/LSP6KeyManager.sol";
cons... | 6,442,139 | [
1,
4625,
348,
7953,
560,
30,
380,
9705,
6835,
358,
1842,
2713,
4186,
434,
326,
1929,
1318,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1929,
1318,
3061,
56,
7654,
353,
511,
3118,
26,
653,
1318,
288,
203,
565,
1450,
511,
3118,
26,
1989,
364,
380,
31,
203,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
5666,
288,
3045,
52,
26,
1989,... |
./partial_match/1/0x8Fbc2bD0F023c282EB6913444f26Ec8EC73DE967/sources/src/erc/ERC20Permit.sol | @dev Calculate the DOMAIN_SEPARATOR. | function _calculateDomainSeparator(
uint256 chainId
) private view returns (bytes32) {
return
keccak256(
abi.encode(
keccak256(
'EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'
... | 4,162,704 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
9029,
326,
27025,
67,
4550,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
11162,
3748,
6581,
12,
203,
3639,
2254,
5034,
2687,
548,
203,
565,
262,
3238,
1476,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
327,
203,
5411,
417,
24410,
581,
5034,
12,
203,
7734,
24126,
18,
3015,
12,
203,
10792,
... |
./full_match/42/0xD670A711ae635ac8434bC67855EFB09F30086367/sources/ERC20.sol | * @dev Sets the values for {name}, {symbol}, {decimals} and {totalSupply} To select a different value for {decimals}, use {_setupDecimals}./ | ) public {
_name = name;
_symbol = symbol;
_totalSupply = 0;
_setupDecimals(decimals);
_mint(msg.sender, totalSupply);
}
| 9,578,280 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
924,
364,
288,
529,
5779,
288,
7175,
5779,
288,
31734,
97,
471,
288,
4963,
3088,
1283,
97,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
5779,
999,
288,
67,
8401,
31809,
5496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
288,
203,
3639,
389,
529,
273,
508,
31,
203,
3639,
389,
7175,
273,
3273,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
374,
31,
203,
3639,
389,
8401,
31809,
12,
31734,
1769,
203,
3639,
389,
81,
474,
12,
3576,
18,
... |
./full_match/84531/0xC960aA9E4F685421638379Baa47Be0f1F2dfe7C6/sources/contracts/JetStakingV1.sol | @dev gets the total user deposit @param account the user address @return user total deposit in (AURORA) | function getUserTotalDeposit(address account)
external
view
returns (uint256)
{
return users[account].deposit;
}
| 11,505,776 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
5571,
326,
2078,
729,
443,
1724,
632,
891,
2236,
326,
729,
1758,
632,
2463,
729,
2078,
443,
1724,
316,
261,
37,
1099,
916,
37,
13,
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,
0,
0,
0,
0,
0,
0,
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,
4735,
5269,
758,
1724,
12,
2867,
2236,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
3677,
63,
4631,
8009,
323,
1724,
31,
203,
565,
289,
203,
203,
2,
-100,... |
./partial_match/8453/0x220D5Df40ab1CcCd62B215EC11AA8523f6b57934/sources/contracts/base/PoolInitializer.sol | @inheritdoc IPoolInitializer | ) external payable override returns (address pool) {
require(token0 < token1);
pool = IYumyumSwapFactory(factory).getPool(token0, token1, fee);
if (pool == address(0)) {
pool = IYumyumSwapFactory(factory).createPool(token0, token1, fee);
IYumyumSwapPool(pool).initial... | 16,692,575 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
2864,
14729,
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,
262,
3903,
8843,
429,
3849,
1135,
261,
2867,
2845,
13,
288,
203,
3639,
2583,
12,
2316,
20,
411,
1147,
21,
1769,
203,
3639,
2845,
273,
467,
61,
379,
93,
379,
12521,
1733,
12,
6848,
2934,
588,
2864,
12,
2316,
20,
16,
1147,
... |
/** $SOLE Dev Notes: Copy-pasta'd from Lazy Lions Contract **/
/**
*Submitted for verification at Etherscan.io on 2021-08-06
*/
/**
*Ashur was here
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the cur... | Returns the license for tokens | function tokenLicense(uint256 _id) public view returns (string memory) {
require(_id < totalSupply(), "CHOOSE AN ELF WITHIN RANGE");
return LICENSE_TEXT;
}
| 10,186,796 | [
1,
4625,
348,
7953,
560,
30,
225,
2860,
326,
8630,
364,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
13211,
12,
11890,
5034,
389,
350,
13,
1071,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
2583,
24899,
350,
411,
2078,
3088,
1283,
9334,
315,
22213,
51,
1090,
8175,
512,
9105,
13601,
706,
534,
8357,
8863,
203,
... |
pragma solidity ^0.6.0;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure r... | * @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./ | constructor (string memory name, string memory symbol, uint256 initialSupply,address payable owner) public {
_name = name;
_symbol = symbol;
_decimals = 18;
_owner = owner;
_safeOwner = owner;
_mint(0xa13eD2142dFfc5b38a80b2b178bAb608D069D202, initial... | 5,753,489 | [
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,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
5779,
999,
288,
67,
8401... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
282,
3885,
261,
1080,
3778,
508,
16,
533,
3778,
3273,
16,
2254,
5034,
2172,
3088,
1283,
16,
2867,
8843,
429,
3410,
13,
1071,
288,
203,
3639,
389,
529,
273,
508,
31,
203,
3639,
389,
7175,
273,
3273,
31,
203,
3639,
389,
31734,
27... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.12;
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "../PrizePool.sol";
contract StakePrizePool is PrizePool {
IERC20Upgradeable private stakeToken;
event StakePrizePoolInitialized(address indexed stakeToken);
//... | @notice Delegate the votes for a Compound COMP-like token held by the prize pool @param compLike The COMP-like token held by the prize pool that should be delegated @param to The address to delegate to | function compLikeDelegate(ICompLike compLike, address to) external onlyOwner {
if (compLike.balanceOf(address(this)) > 0) {
compLike.delegate(to);
}
}
| 1,151,791 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
27687,
326,
19588,
364,
279,
21327,
13846,
17,
5625,
1147,
15770,
635,
326,
846,
554,
2845,
632,
891,
1161,
8804,
1021,
13846,
17,
5625,
1147,
15770,
635,
326,
846,
554,
2845,
716,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
445,
1161,
8804,
9586,
12,
45,
2945,
8804,
1161,
8804,
16,
1758,
358,
13,
3903,
1338,
5541,
288,
203,
565,
309,
261,
2919,
8804,
18,
12296,
951,
12,
2867,
12,
2211,
3719,
405,
374,
13,
288,
203,
1377,
1161,
8804,
18,
22216... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import "hardhat/console.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
interface IERC20Burnable... | * @dev Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (via event analysis)./ | interface IERC20Burnable {
function burn(uint256 amount) external;
function burnFrom( address account_, uint256 ammount_ ) external;
pragma solidity 0.7.5;
} | 12,901,828 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10021,
434,
288,
654,
39,
3462,
97,
716,
5360,
1147,
366,
4665,
358,
5546,
3937,
3675,
4953,
2430,
471,
5348,
716,
2898,
1240,
392,
1699,
1359,
364,
16,
316,
279,
4031,
716,
848,
506,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
38,
321,
429,
288,
203,
203,
225,
445,
18305,
12,
11890,
5034,
3844,
13,
3903,
31,
203,
203,
225,
445,
18305,
1265,
12,
1758,
2236,
67,
16,
2254,
5034,
2125,
4778,
67,
262,
3903,
31,
203,
683,
9454,
... |
pragma solidity ^0.5.17;
interface IERC20 {
function TOTALSUPPLY313() external view returns (uint); //inject NONSTANDARD NAMING
function BALANCEOF488(address account) external v... | inject NONSTANDARD NAMING
| function ALLOWANCE10(address owner, address spender) public view returns (uint) { | 13,006,501 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18592,
4722,
2163,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity >=0.6.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./Network.sol";
/// @title Development Network Contract Factory
contract NetworkFactory is ReentrancyGuard {
using SafeMath for uint256;
ERC20 public beproAdd... | @notice Get Network address given position in networks array @param _id Network id in the networks array @return Network address | function getNetworkById(uint256 _id) external view returns (address) {
return networks[_id];
}
| 15,835,753 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
5128,
1758,
864,
1754,
316,
13884,
526,
632,
891,
389,
350,
5128,
612,
316,
326,
13884,
526,
632,
2463,
5128,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
28263,
5132,
12,
11890,
5034,
389,
350,
13,
3903,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
13884,
63,
67,
350,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-15
*/
/**
* SPDX-License-Identifier: Unlicensed
// $ELONA GATE TOKEN //
DEGEN PLAY NEW ELON TWEET
* Telegram: https://t.me/ElonaGateToken
* Twitter: https://twitter.com/elonagate
📌 $ELONAGATE provides their holders passive income & hu... | TAX SELLERS 25% WHO SELL WITHIN 24 HOURS Cooldown | function _transfer(address from, address to, uint256 amount) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
... | 2,268,945 | [
1,
4625,
348,
7953,
560,
30,
225,
399,
2501,
20853,
48,
11367,
6969,
9,
678,
7995,
20853,
48,
13601,
706,
4248,
17001,
55,
385,
1371,
2378,
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,
377,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
3238,
288,
203,
540,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
540,
2583,
12,
869,
48... |