file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when d... | * @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ... | function getPriorVotes(address account, uint blockNumber)
external
view
returns (uint256)
{
require(blockNumber < block.number, "dfcore::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
retur... | 15,072,459 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10229,
326,
6432,
1300,
434,
19588,
364,
392,
2236,
487,
434,
279,
1203,
1300,
632,
5206,
3914,
1300,
1297,
506,
279,
727,
1235,
1203,
578,
469,
333,
445,
903,
15226,
358,
5309,
7524,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1689,
2432,
29637,
12,
2867,
2236,
16,
2254,
1203,
1854,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2583,
12,
2629,
1854,
411,
1203,
18,
2696,
16,
315,
2180,
... |
./full_match/1/0xA316E8D4a6d36F36528b27419F6b3c0DFe7cD3d2/sources/contracts/DBLMiner.sol | using Strings for *;2020's total blocks: 2371755The Pause Guardian can pause certain actions as a safety mechanism. | contract Miner is Ownable{
address public immutable DBL;
address public immutable DIBI;
uint256 public constant FIREST_YEAR_DBL = 1050000 * 1e8 * 1e18;
uint256 public immutable DEPLOY_BLOCK;
uint public constant blocksPerYear = 2371755;
address public admin;
address public pendingAdmin;
... | 8,337,792 | [
1,
4625,
348,
7953,
560,
30,
225,
1450,
8139,
364,
380,
31,
18212,
20,
1807,
2078,
4398,
30,
576,
6418,
4033,
2539,
1986,
31357,
22809,
2779,
848,
11722,
8626,
4209,
487,
279,
24179,
12860,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
5444,
264,
353,
14223,
6914,
95,
203,
565,
1758,
1071,
11732,
2383,
48,
31,
203,
565,
1758,
1071,
11732,
3690,
31558,
31,
203,
565,
2254,
5034,
1071,
5381,
4011,
12030,
67,
15137,
67,
2290,
48,
273,
23633,
2787,
380,
404,
... |
./full_match/1/0x16Db542C30fB3519D11CF8F632077c62c1a944fd/sources/contracts/abstracts/USDCBridge.sol | * @dev Owner can change the l2 message bridge It will change the current l2 message bridge @param newMessageService The new message bridge address/ | function changeMessageService(
IMessageService newMessageService
) external onlyOwner nonZeroAddress(address(newMessageService)) {
if (messageService == newMessageService)
revert SameMessageServiceAddr(address(messageService));
address oldAddress = address(messageService);
messageService = ne... | 9,619,533 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16837,
848,
2549,
326,
328,
22,
883,
10105,
2597,
903,
2549,
326,
783,
328,
22,
883,
10105,
632,
891,
394,
1079,
1179,
1021,
394,
883,
10105,
1758,
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,
225,
445,
2549,
1079,
1179,
12,
203,
565,
467,
1079,
1179,
394,
1079,
1179,
203,
225,
262,
3903,
1338,
5541,
1661,
7170,
1887,
12,
2867,
12,
2704,
1079,
1179,
3719,
288,
203,
565,
309,
261,
2150,
1179,
422,
394,
1079,
1179,
13,
... |
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
... | inject NONSTANDARD NAMING
| function ALLOWANCE433(address owner, address spender) external view returns (uint256); | 12,985,110 | [
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,
24,
3707,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
pragma solidity ^0.5.0;
/**
* @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 w... | * @dev Overrides StandardToken transferFrom() adding the accessList validation @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred/ | function transferFrom(address _from, address _to, uint256 _value)
public
whenNotPaused
hasAccess(msg.sender, _from, _to)
returns (bool) {
return super.transferFrom(_from, _to, _value);
}
| 1,454,029 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
531,
9857,
8263,
1345,
7412,
1265,
1435,
6534,
326,
2006,
682,
3379,
632,
891,
389,
2080,
1758,
1021,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
632,
891,
389,
869,
1758,
1021,
1758,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
203,
3639,
1071,
203,
3639,
1347,
1248,
28590,
203,
3639,
24836,
12,
3576,
18,
15330,
16,
389,
2080,
16,
389,
869,
13,
203,
3639,
113... |
./full_match/80001/0x99BC393191c472202f27FB2bf3454ed0A6837ffb/sources/fflat.sol | * @notice Get the id of an eligible cron job @return upkeepNeeded signals if upkeep is needed, performData is an abi encoding of the id and "next tick" of the elligible cron job/ | function checkUpkeep(bytes calldata) external override whenNotPaused cannotExecute returns (bool, bytes memory) {
_delegate(s_delegate);
}
| 859,550 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
326,
612,
434,
392,
21351,
9998,
1719,
632,
2463,
731,
10102,
11449,
11505,
309,
731,
10102,
353,
3577,
16,
3073,
751,
353,
392,
24126,
2688,
434,
326,
612,
471,
315,
4285,
4024,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
866,
1211,
10102,
12,
3890,
745,
892,
13,
3903,
3849,
1347,
1248,
28590,
2780,
5289,
1135,
261,
6430,
16,
1731,
3778,
13,
288,
203,
565,
389,
22216,
12,
87,
67,
22216,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-10... |
pragma solidity ^0.4.24;
import "zeppelin/contracts/ownership/Ownable.sol";
import "zeppelin/contracts/lifecycle/Destructible.sol";
/** @title OnlineMarketplace. */
contract OnlineMarketplace is Ownable,Destructible {
/**A struct type.
Creates a product struct
*/
struct Product {
str... | array to track number of prducts
| uint[] productIndex; | 12,622,945 | [
1,
4625,
348,
7953,
560,
30,
225,
526,
358,
3298,
1300,
434,
846,
1828,
87,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
8526,
3017,
1016,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
// // / / // ) )
// //____ ___ ___ //___/ / // ___ ___ / ___
// / ____ // ) ) (( ) ) // / / / __ ( // // ) ) // ) ) //\ \
// // // / / \ \ ((___/ / // ) ) // // / / ... | Experimental sell functions | function setSellToken(address _sellToken) external onlyOwner {
sellToken = _sellToken;
}
| 12,720,506 | [
1,
4625,
348,
7953,
560,
30,
225,
22844,
287,
357,
80,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13928,
1165,
1345,
12,
2867,
389,
87,
1165,
1345,
13,
3903,
1338,
5541,
288,
203,
3639,
357,
80,
1345,
273,
389,
87,
1165,
1345,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256... | * @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./ | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner publ... | 224,827 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14223,
6914,
632,
5206,
1021,
14223,
6914,
6835,
711,
392,
3410,
1758,
16,
471,
8121,
5337,
6093,
3325,
4186,
16,
333,
9330,
5032,
326,
4471,
434,
315,
1355,
4371,
9654,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
225,
1758,
1071,
3410,
31,
203,
203,
203,
225,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
203,
225,
445,
14223,
6914,
1435,
288,
203,
5... |
./full_match/1/0xd15563162301EcD765bFB54eBd0809b21932C506/sources/contracts/lib/SlotsLib.sol | @dev Sets a slot array at index with address @notice First slot is array length, elements ordered backward in memory @notice This is unsafe, without checking array length. | function setAt(bytes32 slot, uint index, address value) internal {
bytes32 pointer = bytes32(uint(slot) - 1 - index);
assembly {
sstore(pointer, value)
}
}
| 3,877,043 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
11511,
279,
4694,
526,
622,
770,
598,
1758,
632,
20392,
5783,
4694,
353,
526,
769,
16,
2186,
5901,
12555,
316,
3778,
632,
20392,
1220,
353,
7127,
16,
2887,
6728,
526,
769,
18,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
861,
12,
3890,
1578,
4694,
16,
2254,
770,
16,
1758,
460,
13,
2713,
288,
203,
565,
1731,
1578,
4407,
273,
1731,
1578,
12,
11890,
12,
14194,
13,
300,
404,
300,
770,
1769,
203,
565,
19931,
288,
203,
1377,
272,
2233,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
// Note that this pool has no minter key of MDO (rewards).
// Instead, the governance will c... | Add a new lp to the pool. Can only be called by the owner. chef is sleeping chef is cooking | function add(
uint256 _allocPoint,
IERC20 _lpToken,
bool _withUpdate,
uint256 _lastRewardBlock
) public onlyOperator {
checkPoolDuplicate(_lpToken);
if (_withUpdate) {
massUpdatePools();
}
if (block.number < startBlock) {
if... | 12,866,967 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
279,
394,
12423,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
462,
10241,
353,
5329,
310,
462,
10241,
353,
15860,
310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
203,
3639,
2254,
5034,
389,
9853,
2148,
16,
203,
3639,
467,
654,
39,
3462,
389,
9953,
1345,
16,
203,
3639,
1426,
389,
1918,
1891,
16,
203,
3639,
2254,
5034,
389,
2722,
17631,
1060,
1768,
203,
565,
262,
1071,
... |
./partial_match/3/0xb386d4Cd1983275Fd5d3b237BeF8624511328C76/sources/ItemBase.sol | decode a UQ128x128 into a uint128 by truncating after the radix point | function decode(uint256 x) internal pure returns (uint128) {
return uint128(x >> RESOLUTION);
}
| 5,051,061 | [
1,
4625,
348,
7953,
560,
30,
225,
2495,
279,
587,
53,
10392,
92,
10392,
1368,
279,
2254,
10392,
635,
6956,
1776,
1839,
326,
19015,
1634,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2495,
12,
11890,
5034,
619,
13,
2713,
16618,
1135,
261,
11890,
10392,
13,
288,
203,
3639,
327,
2254,
10392,
12,
92,
1671,
12915,
1741,
13269,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/43113/0xE81E84F451EbD1825885023f81C9547C741F323c/sources/fMeso.sol | @dev Throws if called by any account other than the Masterchef. | modifier onlyMasterchef() {
require(msg.sender == masterchef, "Caller is not the Masterchef");
_;
}
| 7,185,476 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
22435,
309,
2566,
635,
1281,
2236,
1308,
2353,
326,
13453,
343,
10241,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
7786,
343,
10241,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
4171,
343,
10241,
16,
315,
11095,
353,
486,
326,
13453,
343,
10241,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-07-12
*/
// File: @openzeppelin/contracts/math/SafeMath.sol
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in... | * Modifiers to validate that only the owner can execute./ | modifier onlyCurrentOwner() {
require(msg.sender == currentOwner, "not current owner");
_;
}
| 5,442,572 | [
1,
4625,
348,
7953,
560,
30,
380,
3431,
3383,
358,
1954,
716,
1338,
326,
3410,
848,
1836,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
1338,
3935,
5541,
1435,
288,
203,
565,
2583,
12,
3576,
18,
15330,
422,
783,
5541,
16,
315,
902,
783,
3410,
8863,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/84531/0x5767C841d927cdec5B7d50869a3B3D400f6ad518/sources/src/lib/FrenBondDataTypes.sol | Bonds quantity held for Short.
| uint256 shortQuantity; | 14,319,781 | [
1,
4625,
348,
7953,
560,
30,
225,
605,
4096,
10457,
15770,
364,
7925,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3025,
12035,
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.14;
import "@openzeppelin/upgrades/contracts/Initializable.sol";
import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol";
import "openzeppelin-solidity/contracts/access/roles/WhitelistedRole.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity... | * @dev Get proposal by Id (index) Requirements: - proposal should exists @param proposalId Proposal Id @return string Proposal details @return ProposalType Proposal type @return uint256 Proposal duration in days @return uint256 Proposal end date @return bool[3] Proposal status flags @return address Transaction target ... | function getProposal(uint256 proposalId)
external
view
proposalExists(proposalId)
returns (
string memory details,
ProposalType proposalType,
uint256 duration,
uint256 end,
bool[3] memory flags,
address txDest... | 14,021,385 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
14708,
635,
3124,
261,
1615,
13,
29076,
30,
225,
300,
14708,
1410,
1704,
632,
891,
14708,
548,
19945,
3124,
632,
2463,
533,
19945,
3189,
632,
2463,
19945,
559,
19945,
618,
632,
2463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3570,
8016,
12,
11890,
5034,
14708,
548,
13,
7010,
3639,
3903,
7010,
3639,
1476,
7010,
3639,
14708,
4002,
12,
685,
8016,
548,
13,
203,
3639,
1135,
261,
203,
5411,
533,
3778,
3189,
16,
203,
5411,
19945,
559,
14708,
559,
... |
./full_match/100/0xd84Ea27b0BCf03FA5Ea558A896E0dc7Caa632a39/sources/contracts/Core.sol | * @notice Indicate the condition `conditionId` with oracle ID `oracleConditionId` as canceled. @dev Set oracleCondId to zero if the function is not called by an oracle. @param conditionId the current match or game ID @param oracleCondId the current match or game ID in oracle's internal system/ | function cancel(uint256 conditionId, uint256 oracleCondId) internal {
Condition storage condition = conditions[conditionId];
if (condition.timestamp == 0) revert ConditionNotExists();
if (
condition.state == ConditionState.RESOLVED ||
condition.state == ConditionState... | 14,270,782 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
225,
9223,
2659,
326,
2269,
1375,
4175,
548,
68,
598,
20865,
1599,
1375,
280,
16066,
3418,
548,
68,
487,
17271,
18,
632,
5206,
377,
1000,
20865,
12441,
548,
358,
3634,
309,
326,
445,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3755,
12,
11890,
5034,
2269,
548,
16,
2254,
5034,
20865,
12441,
548,
13,
2713,
288,
203,
3639,
7949,
2502,
2269,
273,
4636,
63,
4175,
548,
15533,
203,
3639,
309,
261,
4175,
18,
5508,
422,
374,
13,
15226,
7949,
29210,
56... |
// -----------------------------------------------------------------------------
// File RUS_SA_SUBJECT_VERB.SOL
//
// (c) Koziev Elijah
//
// Content:
// Синтаксический анализатор: связь подлежащих со сказуемыми
//
// Подробнее о правилах: http://www.solarix.ru/for_developers/docs/rules.shtml
// ---------------------... | ОДНА КОШКА - ОДИН ЗВЕРЬ | {
if context {
_Дефис
}
}
operator SubjectVerb_2170 : LINK_SUBJECT_VERB
| 12,586,374 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
257,
145,
247,
145,
256,
145,
243,
225,
145,
253,
145,
257,
145,
106,
145,
253,
145,
243,
300,
225,
145,
257,
145,
247,
145,
251,
145,
256,
225,
145,
250,
145,
245,
145,
248,
145,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
288,
203,
225,
309,
819,
288,
203,
2868,
389,
145,
247,
145,
118,
146,
231,
145,
121,
146,
228,
203,
2398,
289,
203,
289,
203,
203,
3726,
9912,
16281,
67,
22,
31779,
294,
22926,
67,
8362,
5304,
67,
2204,
38,
203,
2,
-100,
-10... |
./full_match/1/0xAdcDAEc4fD335CC9A42a520b434585F343202A57/sources/MarginPool.sol | * @title MarginPool contract @dev Main point of interaction with an Lever protocol's market - Users can: # Deposit # Withdraw # Borrow # Repay # Liquidate positions - To be covered by a proxy contract, owned by the MarginPoolAddressesProvider of the specific market - All admin functions are callable by the Ma... | contract MarginPool is VersionedInitializable, IMarginPool, MarginPoolStorage {
using SafeMath for uint256;
using WadRayMath for uint256;
using PercentageMath for uint256;
using SafeERC20 for IERC20;
uint256 public constant MAX_NUMBER_RESERVES = 128;
uint256 public constant MARGINPOOL_REVISION ... | 16,561,439 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
490,
5243,
2864,
6835,
632,
5206,
12740,
1634,
434,
13581,
598,
392,
3519,
502,
1771,
1807,
13667,
300,
12109,
848,
30,
282,
468,
4019,
538,
305,
282,
468,
3423,
9446,
282,
468,
605,
1531... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
490,
5243,
2864,
353,
18607,
4435,
6934,
16,
6246,
5243,
2864,
16,
490,
5243,
2864,
3245,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
678,
361,
54,
528,
10477,
364,
2254,
5034,
31,
203,
565,
145... |
pragma solidity ^0.4.23;
// Copyright 2018 OpenST Ltd.
//
// 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 applic... | * @notice Add validators to the set of validators. Starting from the current OSTblock height. @param _auxiliaryAddresses The addresses of the new validators on the auxiliary chain. @param _stakes The stakes of the validators on origin./ | function addValidators(
address[] _auxiliaryAddresses,
uint256[] _stakes
)
private
{
require(
_auxiliaryAddresses.length == _stakes.length,
"The lengths of the addresses and stakes arrays must be identical."
);
for (uint256 i; i < _aux... | 13,072,121 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1436,
11632,
358,
326,
444,
434,
11632,
18,
24591,
628,
326,
540,
783,
531,
882,
2629,
2072,
18,
632,
891,
389,
18196,
20606,
7148,
1021,
6138,
434,
326,
394,
11632,
603,
326,
18701,
939... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
527,
19420,
12,
203,
3639,
1758,
8526,
389,
18196,
20606,
7148,
16,
203,
3639,
2254,
5034,
8526,
389,
334,
3223,
203,
565,
262,
203,
3639,
3238,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
389,
18196,
20606,
7148,
18... |
./partial_match/4/0xacfD1f6002938B156Aa186827985742Da4FA0ca2/sources/Rookie_v6.sol | * Requirements: - `amount` Amount to be staked/require(isLive, "Staking period has ended"); | function stake(uint256 amount) public returns (bool) {
require(amount > 0, "Can't stake 0 amount");
address from = msg.sender;
if (amount >= eligibilityAmount) {
eligible[from] = true;
}
require(hasStaked[from] == false, "Already staked");
return _stake(fr... | 8,517,763 | [
1,
4625,
348,
7953,
560,
30,
380,
29076,
30,
300,
1375,
8949,
68,
16811,
358,
506,
384,
9477,
19,
6528,
12,
291,
12328,
16,
315,
510,
6159,
3879,
711,
16926,
8863,
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,
384,
911,
12,
11890,
5034,
3844,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
315,
2568,
1404,
384,
911,
374,
3844,
8863,
203,
3639,
1758,
628,
273,
1234,
18,
15330,
31,
203,
3639,
309,... |
pragma solidity ^0.4.24;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
// @title SafeMath: overflow/underflow checks
// @notice Math operations with safety checks that throw on error
library SafeMath {
// @notice Multiplies two numbers, throws on overflow.
function ... | Fallback function: receives Ether and updates income ledger | function ()
payable
external {
require(address(erc20) == address(0));
assetIncome = assetIncome.add(msg.value);
valuePerToken = valuePerToken.add(msg.value.mul(scalingFactor).div(totalSupply()));
emit LogIncomeReceived(msg.sender, msg.value);
}
| 1,492,720 | [
1,
4625,
348,
7953,
560,
30,
225,
21725,
445,
30,
17024,
512,
1136,
471,
4533,
316,
5624,
16160,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1832,
203,
565,
8843,
429,
203,
565,
3903,
288,
203,
1377,
2583,
12,
2867,
12,
12610,
3462,
13,
422,
1758,
12,
20,
10019,
203,
1377,
3310,
382,
5624,
273,
3310,
382,
5624,
18,
1289,
12,
3576,
18,
1132,
1769,
203,
1377... |
./partial_match/56/0xaD24eD9bAb6f235059aCc16F4e4728318799648D/sources/Strategy.sol | Part: OpenZeppelin/openzeppelin-contracts@3.1.0/SafeERC20* @title SafeERC20 @dev Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To ... | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function BONUS_MULTIPLIER ( ) external view returns ( uint256 );
function add ( uint256 _allocPoint, address _lpToken, bool _withUpdate ) external;
function bonusEndBlock ( ) external view returns ( uint256 );
function... | 11,104,297 | [
1,
4625,
348,
7953,
560,
30,
225,
6393,
30,
3502,
62,
881,
84,
292,
267,
19,
3190,
94,
881,
84,
292,
267,
17,
16351,
87,
36,
23,
18,
21,
18,
20,
19,
9890,
654,
39,
3462,
14,
632,
2649,
14060,
654,
39,
3462,
632,
5206,
4266,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
445,
605,
673,
3378,
67,
24683,
2053,
654,
261,
225,
262,
3903,
1476,
1135,
261,
2254,
5034,... |
./partial_match/80001/0x9f84EaeA0155A17C5eea7F3579ac4783a51E7B14/sources/GAME_Master.sol | @dev Can be called by any user, to buy a token from a game with a cryptocurrency. @notice If you want to add specialized metadate, use transferAndCall to your own smart contract that has Operator privileges @param game_ - the # of the game that the token comes from @param set_ - the # of the set within the game that... | function buyToken(uint game_, uint set_, uint card_, uint price_)
external
returns(uint tokenId_) {
require(gameContract.getCardPrice(game_, set_, card_) == price_, "paid == list price");
require(price_ > 0, "price > 0");
require(price_ < 10**40, "price overflow");
address sender = _msgSender();... | 8,821,567 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4480,
506,
2566,
635,
1281,
729,
16,
358,
30143,
279,
1147,
628,
279,
7920,
598,
279,
13231,
504,
295,
3040,
18,
632,
20392,
971,
1846,
2545,
358,
527,
29158,
312,
1167,
340,
16,
999,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
30143,
1345,
12,
11890,
7920,
67,
16,
2254,
444,
67,
16,
2254,
5270,
67,
16,
2254,
6205,
67,
13,
203,
565,
3903,
203,
225,
1135,
12,
11890,
1147,
548,
67,
13,
288,
203,
565,
2583,
12,
13957,
8924,
18,
588,
6415,
514... |
pragma solidity 0.5.10;
import 'openzeppelin-solidity/contracts/token/ERC20/ERC20.sol';
import 'openzeppelin-solidity/contracts/math/SafeMath.sol';
import {BytesLib} from "@summa-tx/bitcoin-spv-sol/contracts/BytesLib.sol";
import {BTCUtils} from "@summa-tx/bitcoin-spv-sol/contracts/BTCUtils.sol";
import './FundsInte... | * @notice Lender sends tokens to the loan agreement @param loan The Id of the Loan/ | function fund(bytes32 loan) external {
require(secretHashes[loan].set, "Loans.fund: Secret hashes must be set");
require(bools[loan].funded == false, "Loans.fund: Loan is already funded");
bools[loan].funded = true;
require(token.transferFrom(msg.sender, address(this), principal(loan... | 7,298,230 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
511,
2345,
9573,
2430,
358,
326,
28183,
19602,
632,
891,
28183,
1021,
3124,
434,
326,
3176,
304,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
284,
1074,
12,
3890,
1578,
28183,
13,
3903,
288,
203,
3639,
2583,
12,
5875,
14455,
63,
383,
304,
8009,
542,
16,
315,
1504,
634,
18,
74,
1074,
30,
7875,
9869,
1297,
506,
444,
8863,
203,
3639,
2583,
12,
1075,
3528,
63,
... |
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./BNXTo... | Handover the bnxtoken. | function transferOwnershipOfBNXToken(address newOwner) public onlyOwner {
bnx.transferOwnership(newOwner);
}
| 12,738,689 | [
1,
4625,
348,
7953,
560,
30,
225,
2841,
1643,
326,
324,
16769,
2316,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
5460,
12565,
951,
15388,
60,
1345,
12,
2867,
394,
5541,
13,
1071,
1338,
5541,
288,
203,
3639,
324,
16769,
18,
13866,
5460,
12565,
12,
2704,
5541,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
//
// Made by: Omicron Blockchain Solutions
// https://omicronblockchain.com
//
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
im... | * @notice Giveaway start at unix timestamp; the giveaway is active after the start (inclusive)/* @notice Giveaway end unix timestamp; the giveaway is active before the end (exclusive)/* @notice Counter of the tokens gifted (minted) by this sale smart contract./* @notice The contract address of the giveaway token./* @no... | constructor(address _giveawayTokenContract) {
require(_giveawayTokenContract != address(0), "giveaway token contract is not set");
require(
IERC165(_giveawayTokenContract).supportsInterface(type(IMintableERC721).interfaceId) &&
IERC165(_giveawayTokenContract).supportsInterface(type(IMintableERC... | 14,093,746 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
22374,
26718,
787,
622,
9753,
2858,
31,
326,
8492,
26718,
353,
2695,
1839,
326,
787,
261,
267,
9173,
13176,
14,
632,
20392,
22374,
26718,
679,
9753,
2858,
31,
326,
8492,
26718,
353,
2695,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
3885,
12,
2867,
389,
75,
688,
26718,
1345,
8924,
13,
288,
203,
565,
2583,
24899,
75,
688,
26718,
1345,
8924,
480,
1758,
12,
20,
3631,
315,
75,
688,
26718,
1147,
6835,
353,
486,
444,
8863,
203,
203,
565,
2583,
12,
203,
1377... |
pragma solidity ^0.5.0;
import "../interfaces/ITokenStrategy.sol";
import "../../components-registry/getters/TokensFactoryAddress.sol";
/**
* @title Token deployment Strategy
*/
contract TokenDeploymentStrategy is TokensFactoryAddress, ITokenStrategy {
// Emit when created new token
event CreatedToken(
... | * @notice Werify address @param sender Sender address/ | modifier onlyTokensFactory(address sender) {
address tokensFactory = getTokensFactoryAddress();
require(sender == tokensFactory, "Allowed only for the Tokens factory");
_;
}
| 14,101,340 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
678,
264,
1164,
1758,
632,
891,
5793,
15044,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
5157,
1733,
12,
2867,
5793,
13,
288,
203,
3639,
1758,
2430,
1733,
273,
18349,
1733,
1887,
5621,
203,
3639,
2583,
12,
15330,
422,
2430,
1733,
16,
315,
5042,
1338,
364,
326,
13899,
3272,
8863,
203,
3639,
389,
31,
2... |
pragma solidity ^0.4.0;//version 0.4 or higher
contract BookContract{
//participating entities with Ethereum addresses
address publisher;
address author; //book author
string public bookDescription;//description of book
enum contractState { NotReady,Created, VerifiedandWaitingforCustomer,CustomerDe... | description of book
| string public bookDescription; | 5,511,607 | [
1,
4625,
348,
7953,
560,
30,
2477,
434,
6978,
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,
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,
533,
1071,
6978,
3291,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.6;
pragma abicoder v2;
import {OwnableUpgradeable} from '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import {ERC20} from '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.... | * @return The result of safely dividing x and y. The return value is a high precision decimal. @dev y is divided after the product of x and the standard precision unit is evaluated, so the product of x and UNIT must be less than 2256. As this is an integer division, the result is always rounded down. This helps save on... | function divideDecimal(uint256 x, uint256 y) internal pure returns (uint256) {
return x.mul(UNIT).div(y);
| 217,815 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
1021,
563,
434,
15303,
3739,
10415,
619,
471,
677,
18,
1021,
327,
460,
353,
279,
3551,
6039,
6970,
18,
632,
5206,
677,
353,
26057,
1839,
326,
3017,
434,
619,
471,
326,
4529,
6039,
2836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12326,
5749,
12,
11890,
5034,
619,
16,
2254,
5034,
677,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
619,
18,
16411,
12,
15736,
2934,
2892,
12,
93,
1769,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.11;
contract ParityProofOfSMSInterface {
function certified(address _who) constant returns (bool);
}
contract ProofOfReadToken {
ParityProofOfSMSInterface public proofOfSms;
//maps reader addresses to a map of story num => have claimed readership
mapping (address =>... | user alread claimed
| ClaimResult(2); | 12,717,503 | [
1,
4625,
348,
7953,
560,
30,
225,
729,
524,
896,
7516,
329,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
18381,
1253,
12,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: AGPL-3.0-only
/*
Bounty.sol - SKALE Manager
Copyright (C) 2020-Present SKALE Labs
@author Dmytro Stebaiev
SKALE Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Softw... | * @title SkaleDkgComplaint @dev Contains functions to manage distributed key generation per Joint-Feldman protocol./ | library SkaleDkgComplaint {
using SafeMath for uint;
event ComplaintError(string error);
event ComplaintSent(
bytes32 indexed schainId, uint indexed fromNodeIndex, uint indexed toNodeIndex);
function complaint(
bytes32 schainId,
uint fromNodeIndex,
uint toNodeIndex,
... | 9,880,392 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
10362,
5349,
40,
14931,
799,
412,
1598,
632,
5206,
8398,
4186,
358,
10680,
16859,
498,
9377,
1534,
804,
763,
17,
42,
488,
4728,
1771,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
10362,
5349,
40,
14931,
799,
412,
1598,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
871,
1286,
412,
1598,
668,
12,
1080,
555,
1769,
203,
203,
565,
871,
1286,
412,
1598,
7828,
12,
203,
3639,
1731,
1578,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/util... | * @dev concatenate two lists of strings/ | function concat(string[] memory list1, string[] memory list2)
internal
pure
returns (string[] memory)
{
string[] memory result = new string[](list1.length + list2.length);
for (uint256 i = 0; i < list1.length; i++) {
result[i] = list1[i];
}
for (uint256 i = 0; i < list2.length; i++... | 17,505 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11361,
2795,
6035,
434,
2064,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3835,
12,
1080,
8526,
3778,
666,
21,
16,
533,
8526,
3778,
666,
22,
13,
203,
565,
2713,
203,
565,
16618,
203,
565,
1135,
261,
1080,
8526,
3778,
13,
203,
225,
288,
203,
565,
533,
8526,
3778,
563,
273,
394,
533,
8526,
... |
//Address: 0xd0df293593912a594b790137ff3b7a296ec33f42
//Contract name: MoyTokenOpenDistribution
//Balance: 0 Ether
//Verification Date: 12/30/2017
//Transacion Count: 2
// CODE STARTS HERE
pragma solidity ^0.4.18;
// **-----------------------------------------------
// MoyToken Open Distribution Smart Contract.
// 3... | boolean for OpenDistribution setup
| bool public isOpenDistributionSetup = false; | 12,886,821 | [
1,
4625,
348,
7953,
560,
30,
225,
1250,
364,
3502,
9003,
3875,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1426,
565,
1071,
16633,
9003,
7365,
273,
629,
31,
2868,
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/1/0xd51D6A3b551f1150c69C4aaD46049c9bACc84A21/sources/contracts/PositionManager.flattened.sol | The baseRate can decay to 0
| assert(decayedBaseRate <= MathUtils._100_PERCENT); | 8,305,500 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
1026,
4727,
848,
22286,
358,
374,
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,
3639,
1815,
12,
26039,
329,
2171,
4727,
1648,
2361,
1989,
6315,
6625,
67,
3194,
19666,
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,
... |
pragma solidity >=0.4.22 <0.6.0;
import "./Utils.sol";
contract CarMarketPlace {
using Utils for *;
address payable public contractOwner;
uint private startTime;
uint private durationTime;
constructor() public {
contractOwner = msg.sender;
startTime = now;
durationTime = 2... | This method will create or list a car for sale so that potential buyer can purchase it. Input: _vin - VIN of the car _price - price of the car _carInfoIpfsHash - hash of JSON (vin, make, model, year, type, sellerName ) stored in IPFS _imageIpfsHash - hash of car image stored in IPFSIncrement car co... | function createCarForSale(string memory _vin, uint _price, string memory _carInfoIpfsHash, string memory _imageIpfsHash) public validateSellCarRequest(_vin, _price, _carInfoIpfsHash, _imageIpfsHash) validateUniqueVin(_vin) {
carCount++;
carsMap[carCount] = Car(carCount, _vin, _price, _carInfoIpfsHash, ... | 14,024,074 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
707,
903,
752,
578,
666,
279,
5926,
364,
272,
5349,
1427,
716,
8555,
27037,
848,
23701,
518,
18,
2741,
30,
1377,
389,
21529,
300,
776,
706,
434,
326,
5926,
1377,
389,
8694,
300,
6205,
434,
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,
752,
16321,
1290,
30746,
12,
1080,
3778,
389,
21529,
16,
2254,
389,
8694,
16,
533,
3778,
389,
9815,
966,
5273,
2556,
2310,
16,
533,
3778,
389,
2730,
5273,
2556,
2310,
13,
1071,
1954,
55,
1165,
16321,
691,
24899,
21529,
... |
./full_match/3/0xee623a781F4ec28e0e29E5BaFD4CEAf32f946652/sources/contracts/1_Storage.sol | @dev stake function which enable the user to stake Phuket Tokens. @param _altQuantity, Phuket amount to be staked. @param _days, how many days Phuket tokens are staked for (in days)/ | function stakeALT(uint256 _altQuantity, uint256 _days)
public
whenNotPaused
returns (uint256 rewardAmount)
{
require(
_altQuantity <= maxStakedQuantity && _altQuantity > 0,
"Invalid Phuket quantity"
IERC20(PhuketTokenAddress).transferFrom(
... | 14,248,811 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
384,
911,
445,
1492,
4237,
326,
729,
358,
384,
911,
4360,
19445,
278,
13899,
18,
225,
632,
891,
389,
2390,
12035,
16,
4360,
19445,
278,
3844,
358,
506,
384,
9477,
18,
225,
632,
891,
389... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
384,
911,
18255,
12,
11890,
5034,
389,
2390,
12035,
16,
2254,
5034,
389,
9810,
13,
203,
3639,
1071,
203,
3639,
1347,
1248,
28590,
203,
3639,
1135,
261,
11890,
5034,
19890,
6275,
13,
203,
565,
288,
203,
3639,
2583,
12,
2... |
./partial_match/5/0xb681f00C7360655B87daed36A7B08598F9FfC6AD/sources/contracts/BlockSelector.sol | main chain block number which will decide current random target
| uint256 currentGoalBlockNumber; | 16,826,428 | [
1,
4625,
348,
7953,
560,
30,
225,
2774,
2687,
1203,
1300,
1492,
903,
16288,
783,
2744,
1018,
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,... | [
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,
3639,
2254,
5034,
783,
27716,
1768,
1854,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x151301d8De53c2E7F5D9B10FCe36bd1fCf332bC6/sources/contracts/ethereum/core/CrowdFundHYPCPoolV2.sol | /unassign token and redeem it. | @dev This function is needed to redeem c_HyPC for HyPC after a proposal has been completed.
This allows a user with a deposit to reclaim their original deposited HyPC.
function redeemTokens(
uint256 proposalIndex,
uint256 tokensToRedeem
) external nonReentrant validInd... | 9,809,131 | [
1,
4625,
348,
7953,
560,
30,
342,
318,
6145,
1147,
471,
283,
24903,
518,
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,
3639,
632,
5206,
565,
1220,
445,
353,
3577,
358,
283,
24903,
276,
67,
17507,
3513,
364,
14881,
3513,
1839,
279,
14708,
711,
2118,
5951,
18,
203,
7734,
1220,
5360,
279,
729,
598,
279,
443,
1724,
358,
283,
14784,
3675,
2282,
443,
1... |
// SPDX-License-Identifier: GPL-3.0-or-later
// File: @openzeppelin/contracts/GSN/Context.sol
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they... | * @notice Used for .../ | function revertTransfersInLockUpPeriod(bool value) external {
_revertTransfersInLockUpPeriod[msg.sender] = value;
}
| 1,130,851 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10286,
364,
1372,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15226,
1429,
18881,
382,
2531,
1211,
5027,
12,
6430,
460,
13,
3903,
288,
203,
3639,
389,
266,
1097,
1429,
18881,
382,
2531,
1211,
5027,
63,
3576,
18,
15330,
65,
273,
460,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-1... |
./full_match/43114/0x8AEb2522E6B5C645B556Ec4069c4F9f4DceD63C7/sources/StrategyQuick.sol | * @dev Event that is fired each time someone harvests the strat./ setup lp routing | ) StratManager(_keeper, _strategist, _unirouter, _vault, _beefyFeeRecipient) public {
want = _want;
poolId = _poolId;
chef = _chef;
output = _outputToNativeRoute[0];
native = _outputToNativeRoute[_outputToNativeRoute.length - 1];
outputToNativeRoute = _outputToNative... | 4,583,861 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2587,
716,
353,
15950,
1517,
813,
18626,
17895,
90,
25563,
326,
609,
270,
18,
19,
3875,
12423,
7502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
3978,
270,
1318,
24899,
79,
9868,
16,
389,
701,
1287,
376,
16,
389,
318,
77,
10717,
16,
389,
26983,
16,
389,
70,
1340,
74,
93,
14667,
18241,
13,
1071,
288,
203,
3639,
2545,
273,
389,
17369,
31,
203,
3639,
2845,
548,
... |
pragma solidity ^0.4.23;
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address _owner) public view returns (uint balance);
function transfer(address _to, uint _value) public returns (bool success);
function transferFrom(address _from, address _to, uint ... | Add address to Jackpot Participants List | function addAddressToJackpotParticipants(address _participant, uint _transactionAmount) private returns (bool success) {
uint timesToAdd = _transactionAmount / reservingStep;
for (uint i = 0; i < timesToAdd; i++){
if(index == jackpotParticipants.length) {
jackpot... | 7,952,834 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
1758,
358,
804,
484,
13130,
6393,
27620,
987,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
1887,
774,
46,
484,
13130,
1988,
27620,
12,
2867,
389,
2680,
14265,
16,
2254,
389,
7958,
6275,
13,
3238,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2254,
4124,
13786,
273,
389,
7958,
6275,
342,
400,
264,
6282,
4160... |
// SPDX-License-Identifier: MIT
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in ... | takes a numeraire value of tgbp, figures out the raw amount, transfers raw amount out, and returns raw amount | function outputNumeraire(address _dst, int128 _amount) external override returns (uint256 amount_) {
uint256 _rate = getRate();
amount_ = (_amount.mulu(DECIMALS) * 1e8) / _rate;
bool _transferSuccess = tgbp.transfer(_dst, amount_);
require(_transferSuccess, "Curve/TGBP-transfer-fa... | 11,891,121 | [
1,
4625,
348,
7953,
560,
30,
225,
5530,
279,
818,
6070,
577,
460,
434,
268,
4490,
84,
16,
4291,
1823,
596,
326,
1831,
3844,
16,
29375,
1831,
3844,
596,
16,
471,
1135,
1831,
3844,
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,
876,
2578,
6070,
577,
12,
2867,
389,
11057,
16,
509,
10392,
389,
8949,
13,
3903,
3849,
1135,
261,
11890,
5034,
3844,
67,
13,
288,
203,
3639,
2254,
5034,
389,
5141,
273,
4170,
340,
5621,
203,
203,
3639,
3844,
67,
273,
... |
./full_match/1/0xD736d2C76fBa2BA5A217Fd4eDFa1b231deEeB29d/sources/contracts/GBM/GBM.sol | owner = msg.sender; | {
owner = address(0x2a2C412c440Dfb0E7cae46EFF581e3E26aFd1Cd0);
}
| 17,112,941 | [
1,
4625,
348,
7953,
560,
30,
225,
3410,
273,
1234,
18,
15330,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3410,
273,
1758,
12,
20,
92,
22,
69,
22,
39,
24,
2138,
71,
6334,
20,
40,
19192,
20,
41,
27,
5353,
73,
8749,
31299,
8204,
21,
73,
23,
41,
5558,
69,
27263,
21,
19728,
20,
1769,
203,
565,
289,
203,
203,
... |
./partial_match/1/0x2Ad412A1dF96434Eed0779D2dB4A8694a06132f8/sources/src/WorldIDIdentityManagerImplV1.sol | With the update confirmed, we send the root across multiple chains to ensure sync. | sendRootToStateBridge();
| 4,373,955 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
326,
1089,
19979,
16,
732,
1366,
326,
1365,
10279,
3229,
13070,
358,
3387,
3792,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1366,
2375,
774,
1119,
13691,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.18;
import './ERC20.sol';
import './Ownable.sol';
import './SafeMath.sol';
import './VMEVault.sol';
import './MultiSigWallet.sol';
/// @title Crowdsale part of the Vowme contract
contract VMECrowdsale is ERC20, Ownable {
using SafeMath for uint256; // use safe math operations
bool public... | Token creation event logging | Transfer(0, msg.sender, createdTokens);
| 935,983 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
6710,
871,
2907,
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,
12279,
12,
20,
16,
1234,
18,
15330,
16,
2522,
5157,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0xe3587F0EA66a16Dc34A3614d6b6c6Ca67513bbca/sources/DOGBIE.sol | Maximum tx size and wallet size exclude from paying fees or having max transaction amount | constructor() ERC20("DOGBIE", "DOGBIE") {
address uniswapRouter = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(uniswapRouter);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Rout... | 2,584,575 | [
1,
4625,
348,
7953,
560,
30,
282,
18848,
2229,
963,
471,
9230,
963,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
3191,
5887,
8732,
3113,
315,
3191,
5887,
8732,
7923,
288,
203,
3639,
1758,
640,
291,
91,
438,
8259,
273,
374,
92,
27,
69,
26520,
72,
4313,
5082,
38,
24,
71,
42,
25,
5520,
27,
5520,
72,
4... |
./partial_match/1/0x6E252C49BF8c3E876A72d61c14b5a3d7432c5Eb1/sources/BeaconProxy.sol | File: contracts/nft.sol | contract BeaconProxy is ERC721A, Ownable {
uint256 public immutable mintPrice = 0.003 ether;
uint32 public immutable maxSupply = 500;
uint32 public immutable maxPerTx = 10;
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantit... | 4,325,092 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
19,
82,
1222,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4823,
16329,
3886,
225,
353,
4232,
39,
27,
5340,
37,
16,
14223,
6914,
288,
203,
203,
203,
565,
2254,
5034,
1071,
11732,
312,
474,
5147,
273,
374,
18,
25425,
225,
2437,
31,
203,
565,
2254,
1578,
1071,
11732,
943,
3088,
1283... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.6.8;
import "./ProtoBufRuntime.sol";
import "./GoogleProtobufAny.sol";
import "./Types.sol";
import "./Validator.sol";
import "./Proofs.sol";
import "./Commitment.sol";
library ClientState {
//struct definition
struct Data {
string chain_id;
Fract... | * @dev The decoder for reading a field @param p The offset of bytes array to start decode @param bs The bytes array to be decoded @param r The in-memory struct @param counters The counters for repeated fields @return The number of bytes decoded/* if `r` is NULL, then only counting the number of fields./ | function _read_unbonding_period(
uint256 p,
bytes memory bs,
Data memory r,
uint[10] memory counters
) internal pure returns (uint) {
(int64 x, uint256 sz) = ProtoBufRuntime._decode_int64(p, bs);
if (isNil(r)) {
counters[4] += 1;
r.unbonding_period = x;
if (counters[4] > 0)... | 5,547,551 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
8320,
364,
6453,
279,
652,
632,
891,
293,
1021,
1384,
434,
1731,
526,
358,
787,
2495,
632,
891,
7081,
1021,
1731,
526,
358,
506,
6383,
632,
891,
436,
1021,
316,
17,
7858,
1958,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
896,
67,
318,
26425,
310,
67,
6908,
12,
203,
565,
2254,
5034,
293,
16,
203,
565,
1731,
3778,
7081,
16,
203,
565,
1910,
3778,
436,
16,
203,
565,
2254,
63,
2163,
65,
3778,
13199,
203,
225,
262,
2713,
16618,
1135,
... |
pragma solidity ^0.8.0;
import "./CoreERC721.sol";
// @bvalosek ERC-721 Token
contract TAPCOA721 is CoreERC721 {
constructor(string memory name, string memory symbol, uint16 feeBps) CoreERC721(CollectionOptions({
name: name,
symbol: symbol,
feeBps: feeBps,
collectionMetadataCID: 'todo'
})) { }
}
... | * @dev External interface of AccessControl declared to support ERC165 detection./ | interface IAccessControl {
function hasRole(bytes32 role, address account) external view returns (bool);
function getRoleAdmin(bytes32 role) external view returns (bytes32);
function grantRole(bytes32 role, address account) external;
function revokeRole(bytes32 role, address account) external;
funct... | 12,105,922 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11352,
1560,
434,
24349,
7886,
358,
2865,
4232,
39,
28275,
11649,
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,
... | [
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,
5831,
467,
16541,
288,
203,
565,
445,
28335,
12,
3890,
1578,
2478,
16,
1758,
2236,
13,
3903,
1476,
1135,
261,
6430,
1769,
203,
565,
445,
15673,
4446,
12,
3890,
1578,
2478,
13,
3903,
1476,
1135,
261,
3890,
1578,
1769,
203,
565,
44... |
pragma solidity ^0.5.16;
/**
* @title Tellor Transfer
* @dev Contains the methods related to transfers and ERC20. Tellor.sol and TellorGetters.sol
* reference this library for function's logic.
*/
library RefTellorTransfer {
using RefSafeMath for uint256;
event Approval(address indexed _owner, address indexe... | Functions*/* @dev Allows for a transfer of tokens to _to @param _to The address to send tokens to @param _amount The amount of tokens to send @return true if transfer is successful/ | function transfer(RefTellorStorage.TellorStorageStruct storage self, address _to, uint256 _amount) public returns (bool success) {
doTransfer(self, msg.sender, _to, _amount);
return true;
}
| 14,105,859 | [
1,
4625,
348,
7953,
560,
30,
15486,
5549,
14,
632,
5206,
25619,
364,
279,
7412,
434,
2430,
358,
389,
869,
632,
891,
389,
869,
1021,
1758,
358,
1366,
2430,
358,
632,
891,
389,
8949,
1021,
3844,
434,
2430,
358,
1366,
632,
2463,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
1957,
21009,
280,
3245,
18,
21009,
280,
3245,
3823,
2502,
365,
16,
1758,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
741,
5912,
12,
2890,
16,
1234,
18,
15330,
16... |
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/GSN/Context.sol";
import "./AdminRole.sol";
/**
* @title A simple ToDo List
* @author pash7ka
*/
contract ToDoList is Context, AdminRole {
event TaskCreated(uint256 id, string title, uint64 deadline, address assigned);
event TaskArchived(uint256 id);
eve... | * @notice Filters tasks list @param includeArchive Include archive tasks @param includeDone Include done tasks @param assigned If not zero, only include tasks assigned to this address/Add task to result | function filterTasks(bool includeArchive, bool includeDone, address assigned) view internal returns(uint256[] memory){
uint256[] memory taskIds = new uint256[](tasks.length);
uint256 count = 0;
for(uint256 i=0; i < tasks.length; i++){
Task storage t = tasks[i];
taskIds[count] = i;
count++;
}
for(uin... | 12,828,541 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
14475,
4592,
666,
632,
891,
2341,
7465,
12672,
5052,
4592,
632,
891,
2341,
7387,
12672,
2731,
4592,
632,
891,
6958,
971,
486,
3634,
16,
1338,
2341,
4592,
6958,
358,
333,
1758,
19,
986,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
915,
1034,
6685,
12,
6430,
2341,
7465,
16,
1426,
2341,
7387,
16,
1758,
6958,
13,
1476,
2713,
1135,
12,
11890,
5034,
8526,
3778,
15329,
203,
202,
202,
11890,
5034,
8526,
3778,
1562,
2673,
273,
394,
2254,
5034,
8526,
12,
9416,
... |
./full_match/3/0x103E9df0BF772478b0031F57C424CD856B34EDa9/sources/demo2.sol | * @dev See {IERC165-supportsInterface}./ | function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(IERC165, AccessControlEnumerable, aNFT, aNFTEnumerable)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
| 14,157,509 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
28275,
17,
28064,
1358,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
3849,
12,
45,
654,
39,
28275,
16,
24349,
3572,
25121,
16,
279,
50,
4464,
16,
279,
50,
4464,
3572,
25121,
13,
203,
... |
pragma solidity ^0.4.2;
import "HumanStandardToken.sol";
contract HumanStandardTokenFactory {
mapping(address => address[]) public created;
mapping(address => bool) public isHumanToken; //verify without having to do a bytecode check.
bytes public humanStandardByteCode;
function HumanStandardTokenFa... | for now, keeping this internal. Ideally there should also be a live version of this that any contract can use, lib-style.retrieves the bytecode at a specific address. retrieve the size of the code, this needs assembly allocate output byte array - this could also be done without assembly by using o_code = new bytes(size... | function codeAt(address _addr) internal returns (bytes o_code) {
assembly {
let size := extcodesize(_addr)
o_code := mload(0x40)
mstore(0x40, add(o_code, and(add(add(size, 0x20), 0x1f), not(0x1f))))
mstore(o_code, size)
extcodecopy(_addr, add(o_code, 0x20), 0,... | 1,003,711 | [
1,
4625,
348,
7953,
560,
30,
364,
2037,
16,
19966,
333,
2713,
18,
23062,
1230,
1915,
1410,
2546,
506,
279,
8429,
1177,
434,
333,
716,
1281,
6835,
848,
999,
16,
2561,
17,
4060,
18,
14580,
3324,
326,
22801,
622,
279,
2923,
1758,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
981,
861,
12,
2867,
389,
4793,
13,
2713,
1135,
261,
3890,
320,
67,
710,
13,
288,
203,
1377,
19931,
288,
203,
1850,
2231,
963,
519,
1110,
7000,
554,
24899,
4793,
13,
203,
1850,
320,
67,
710,
519,
312,
945,
12,
20,
92... |
/**
*Submitted for verification at Etherscan.io on 2020-07-15
*/
/**
*Submitted for verification at Etherscan.io on 2020-05-24
*/
pragma solidity ^0.4.21;
interface ERC20 {
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
fu... | Set the name for display purposes
| _name = "CommaOpenChat"; | 7,006,665 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
508,
364,
2562,
13694,
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,
4202,
389,
529,
273,
315,
15594,
3678,
14163,
14432,
4766,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.8.0;
import "./interfaces/IRoyalties.sol";
import "./tokens/ERC721URIStorage.sol";
import "./utils/OwnableUpgradeable.sol";
import "./utils/Address.sol";
import "./utils/MerkleProof.sol";
contract uwudropShared is OwnableUpgradeable, ERC721Simple {
using Address for address payable;
string p... | derivative source fee: variable. | address _derivativeSourceNFT = derivativeSourceNFT[collectionId];
| 7,294,012 | [
1,
4625,
348,
7953,
560,
30,
225,
16417,
1084,
14036,
30,
2190,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
389,
20615,
1535,
1830,
50,
4464,
273,
16417,
1830,
50,
4464,
63,
5548,
548,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/5/0x5d3E369f7e3419812980Fec0dFb3828c8DaE278F/sources/project_/contracts/stake/tokens/AutoRefactorCoinage.sol | _factorIncrement = factorIncrement;_lastBlock = block.number;_transfersEnabled = transfersEnabled; | {
_factor = factor;
}
| 7,058,063 | [
1,
4625,
348,
7953,
560,
30,
389,
6812,
10798,
273,
5578,
10798,
31,
67,
2722,
1768,
273,
1203,
18,
2696,
31,
67,
2338,
18881,
1526,
273,
29375,
1526,
31,
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,
288,
203,
565,
389,
6812,
273,
5578,
31,
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,
-100,
-100,
-100,
... |
./full_match/1/0x7961E3204E81025B7f24b2EE9F2e31F87ec55CdD/sources/contracts/minter/GenArtMinterPublic.sol | * @dev Internal helper method to set pricing for collection @param collection contract address of the collection @param params mint params/ | function _setPricing(
address collection,
PublicSaleParams memory params
) internal {
super._setMintParams(
collection,
params.startTime,
params.mintAllocContract
);
saleParams[collection] = params;
}
| 4,921,316 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
4222,
707,
358,
444,
31765,
364,
1849,
632,
891,
1849,
6835,
1758,
434,
326,
1849,
632,
891,
859,
312,
474,
859,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
52,
1512,
310,
12,
203,
3639,
1758,
1849,
16,
203,
3639,
7224,
30746,
1370,
3778,
859,
203,
565,
262,
2713,
288,
203,
3639,
2240,
6315,
542,
49,
474,
1370,
12,
203,
5411,
1849,
16,
203,
5411,
859,
18,
1937,
... |
./partial_match/1/0x157ED4Dcd657d17Aa2c3dCA31f30043e8Eff4f2E/sources/contracts/libraries/OracleLibrary.sol | * @notice Checks if the the current price has deviation from the pool price @param _pool Address of the pool @param _registry Chainlink registry interface @param _usdAsBase checks if pegged to USD @param _manager Manager contract address to check allowed deviation/ get price of token0 Uniswap and convert it to USD get ... | function hasDeviation(
IStrategyFactory _factory,
IUniswapV3Pool _pool,
FeedRegistryInterface _registry,
bool[2] memory _usdAsBase,
address _manager
) public view returns (bool) {
uint256 uniswapPriceInUSD = FullMath.mulDiv(
getUniswapPrice(_pool),
... | 3,598,340 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
13074,
309,
326,
326,
783,
6205,
711,
17585,
628,
326,
2845,
6205,
632,
891,
389,
6011,
5267,
434,
326,
2845,
632,
891,
389,
9893,
7824,
1232,
4023,
1560,
632,
891,
389,
407,
72,
1463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
711,
758,
13243,
12,
203,
3639,
467,
4525,
1733,
389,
6848,
16,
203,
3639,
467,
984,
291,
91,
438,
58,
23,
2864,
389,
6011,
16,
203,
3639,
14013,
4243,
1358,
389,
9893,
16,
203,
3639,
1426,
63,
22,
65,
3778,
389,
40... |
./full_match/137/0x89e7324D432324860900BA34b409B11369A1F9a0/sources/contracts/deneme.sol | BetaPulsarToken with Governance. | contract BetaPulsarToken is ERC20('BetaPulsarToken', 'BPUL') {
uint256 public transferTaxRate = 700;
uint256 public transferPvpComission = 100;
uint256 public totalTransferTaxRate = transferTaxRate + transferPvpComission;
uint256 public constant MAXIMUM_TRANSFER_TAX_RATE = 2000;
uint256 public ... | 4,699,175 | [
1,
4625,
348,
7953,
560,
30,
225,
16393,
52,
332,
87,
297,
1345,
598,
611,
1643,
82,
1359,
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,
16351,
16393,
52,
332,
87,
297,
1345,
353,
4232,
39,
3462,
2668,
38,
1066,
52,
332,
87,
297,
1345,
2187,
296,
30573,
1506,
6134,
288,
203,
377,
203,
565,
2254,
5034,
1071,
7412,
7731,
4727,
273,
2371,
713,
31,
203,
565,
2254,
5... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/ClonesUpgradeable.sol";
import "contracts/... | * @title NFT contract for licenses @notice The contract provides the issuer and the artists with the required functions to comply and evolve with the regulation/ | contract LicensedNFT is ERC721Preset {
using SafeMathUpgradeable for uint256;
using EnumerableSetUpgradeable for EnumerableSetUpgradeable.UintSet;
using CountersUpgradeable for CountersUpgradeable.Counter;
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
bytes32 public constant ISSUER_ROLE = kec... | 5,972,371 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
423,
4464,
6835,
364,
26457,
632,
20392,
1021,
6835,
8121,
326,
9715,
471,
326,
3688,
1486,
598,
326,
1931,
4186,
358,
532,
1283,
471,
2113,
5390,
598,
326,
960,
6234,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
511,
335,
28003,
50,
4464,
353,
4232,
39,
27,
5340,
18385,
288,
203,
225,
1450,
14060,
10477,
10784,
429,
364,
2254,
5034,
31,
203,
225,
1450,
6057,
25121,
694,
10784,
429,
364,
6057,
25121,
694,
10784,
429,
18,
5487,
694,
... |
pragma solidity ^0.6.12;
// SPDX-License-Identifier: MIT
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation,... | Logged when the owner of a node assigns a new owner to a subnode. Logged when the owner of a node transfers ownership to a new account. Logged when the resolver for a node changes. Logged when the TTL of a node changes | interface ENSInterface {
event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);
event Transfer(bytes32 indexed node, address owner);
event NewResolver(bytes32 indexed node, address resolver);
event NewTTL(bytes32 indexed node, uint64 ttl);
function setSubnodeOwner(bytes32 node, byte... | 1,048,073 | [
1,
4625,
348,
7953,
560,
30,
225,
1827,
2423,
1347,
326,
3410,
434,
279,
756,
22698,
279,
394,
3410,
358,
279,
28300,
18,
1827,
2423,
1347,
326,
3410,
434,
279,
756,
29375,
23178,
358,
279,
394,
2236,
18,
1827,
2423,
1347,
326,
5039... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5831,
512,
3156,
1358,
288,
203,
203,
225,
871,
1166,
5541,
12,
3890,
1578,
8808,
756,
16,
1731,
1578,
8808,
1433,
16,
1758,
3410,
1769,
203,
203,
225,
871,
12279,
12,
3890,
1578,
8808,
756,
16,
1758,
3410,
1769,
203,
203,
225,
... |
// SPDX-License-Identifier: GPL-3.0
/// @title The Nouns DAO auction house
/*********************************
* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
* ░░░░░░█████████░░█████████░░░ *
* ░░░░░░██░░░████░░██░░░████░░░ *
* ░░██████░░░████████░░░████░░░ *
* ░░██░░██░░░████░░██░░░████░░░ ... | SPDX-License-Identifier: GPL-3.0 @title Interface for NounsToken******************************** ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░█████████░░█████████░░░ ░░░░░░██░░░████░░██░░░████░░░ ░░██████░░░████████░░░████░░░ ░░██░░██░░░████░░██░░░████░░░ ░░██░░██░░░████░░██░░░████░░░ ░░░░░... | import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol';
| 1,189,809 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
4948,
48,
17,
23,
18,
20,
632,
2649,
6682,
364,
423,
465,
87,
1345,
5021,
225,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
163,
249,
244,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5666,
288,
467,
654,
39,
27,
5340,
289,
628,
4622,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
27,
5340,
19,
45,
654,
39,
27,
5340,
18,
18281,
13506,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
// Token protocols
import {IERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import {ERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import {IERC1363Upgradeable} from "... | Maps withdrawn dividends to token holders; | mapping(address => uint256) internal withdrawnDividends;
| 5,521,103 | [
1,
4625,
348,
7953,
560,
30,
225,
19837,
598,
9446,
82,
3739,
350,
5839,
358,
1147,
366,
4665,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
2713,
598,
9446,
82,
7244,
350,
5839,
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,
... |
./partial_match/56/0xDFBb6ab3DDCf603351992151716Dd4775260DC8f/sources/PolarizedProtocolToken.sol | mint 100,000,000 tokens with 18 decimals and send them to token deployer mint function is internal and can not be called after deployment | constructor () public ERC20Detailed("Antimatter.Finance", "MATTER", 18) {
_mint(msg.sender,100000000e18 );
}
| 11,181,021 | [
1,
4625,
348,
7953,
560,
30,
225,
312,
474,
2130,
16,
3784,
16,
3784,
2430,
598,
6549,
15105,
471,
1366,
2182,
358,
1147,
7286,
264,
312,
474,
445,
353,
2713,
471,
848,
486,
506,
2566,
1839,
6314,
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,
225,
3885,
1832,
1071,
4232,
39,
3462,
40,
6372,
2932,
176,
125,
99,
176,
126,
241,
176,
126,
247,
176,
126,
236,
176,
126,
240,
176,
126,
228,
176,
126,
247,
176,
126,
247,
176,
126,
232,
176,
126,
245,
176,
125,
241,
176,
... |
./full_match/5/0xCb910ecDEe9986FD888f7e608cAD3be8c186a2DB/sources/browser/PropetyControl.sol | изменение контактного телефона (только владелец) | function setContactTelephon(string memory _ContactTelephon) public{
require(Owner == msg.sender);
ContactTelephon = _ContactTelephon;
}
| 1,954,984 | [
1,
4625,
348,
7953,
560,
30,
225,
145,
121,
145,
120,
145,
125,
145,
118,
145,
126,
145,
118,
145,
126,
145,
121,
145,
118,
225,
145,
123,
145,
127,
145,
126,
146,
229,
145,
113,
145,
123,
146,
229,
145,
126,
145,
127,
145,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
444,
6567,
56,
6516,
844,
265,
12,
1080,
3778,
389,
6567,
56,
6516,
844,
265,
13,
1071,
95,
203,
3639,
2583,
12,
5541,
422,
1234,
18,
15330,
1769,
203,
3639,
13329,
56,
6516,
844,
265,
273,
389,
6567,
56,
6516,
844,
... |
//SPDX-License-Identifier: MIT
//MIT License
//
//Copyright (c) 2019 Synthetix
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
... | * @return The result of safely dividing x and y. The return value is a high precision decimal. @dev y is divided after the product of x and the standard precision unit is evaluated, so the product of x and UNIT must be less than 2256. As this is an integer division, the result is always rounded down. This helps save on... | function divideDecimal(int x, int y) internal pure returns (int) {
return x.mul(UNIT).div(y);
| 7,231,688 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
1021,
563,
434,
15303,
3739,
10415,
619,
471,
677,
18,
1021,
327,
460,
353,
279,
3551,
6039,
6970,
18,
632,
5206,
677,
353,
26057,
1839,
326,
3017,
434,
619,
471,
326,
4529,
6039,
2836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
12326,
5749,
12,
474,
619,
16,
509,
677,
13,
2713,
16618,
1135,
261,
474,
13,
288,
203,
565,
327,
619,
18,
16411,
12,
15736,
2934,
2892,
12,
93,
1769,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.5.0;
//Functions for retrieving min and Max in 51 length array (requestQ)
//Taken partly from: https://github.com/modular-network/ethereum-libraries-array-utils/blob/master/contracts/Array256Lib.sol
library Utilities {
/**
* @dev Returns the minimum value in an array.
*/
function ge... | Sets the new disputeCount as the disputeId | uint256 disputeId = self.uintVars[keccak256("disputeCount")];
| 12,579,088 | [
1,
4625,
348,
7953,
560,
30,
11511,
326,
394,
1015,
2507,
1380,
487,
326,
1015,
2507,
548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
1015,
2507,
548,
273,
365,
18,
11890,
5555,
63,
79,
24410,
581,
5034,
2932,
2251,
2507,
1380,
7923,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// File: utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a di... | Maximum amount of NFTToken in existance. Ever. uint public constant MAX_NFTTOKEN_SUPPLY = 10000; The provenance hash of all NFTToken. (Root hash of all NFTToken hashes concatenated) Bsae URI of NFTToken's metadata | contract RAKUZA is ERC721EnumerableSimple, Ownable {
string public constant METADATA_PROVENANCE_HASH =
"F5E8F9752F537EB428B0DC3A3A0F6B3646417E6FBD79AEC314D19D41AC48AF25";
string private baseURI;
constructor() ERC721("RAKUZA", "RAKUZA") {}
function tokensOfOwner(address _owner) external view... | 10,193,687 | [
1,
4625,
348,
7953,
560,
30,
225,
18848,
3844,
434,
423,
4464,
1345,
316,
1005,
1359,
18,
512,
502,
18,
2254,
1071,
5381,
4552,
67,
26473,
23187,
67,
13272,
23893,
273,
12619,
31,
1021,
24185,
1651,
434,
777,
423,
4464,
1345,
18,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
534,
14607,
57,
62,
37,
353,
4232,
39,
27,
5340,
3572,
25121,
5784,
16,
14223,
6914,
288,
203,
203,
565,
533,
1071,
5381,
24175,
67,
3373,
58,
1157,
4722,
67,
15920,
273,
203,
3639,
315,
42,
25,
41,
28,
42,
29,
5877,
2... |
pragma solidity ^0.4.21;
/** @title A contract for generating unique identifiers
*
* @notice A contract that provides a identifier generation scheme,
* guaranteeing uniqueness across all contracts that inherit from it,
* as well as unpredictability of future identifiers.
*
* @dev This contract is intend... | FUNCTIONS* @notice Returns a fresh unique identifier. @dev the generation scheme uses three components. First, the blockhash of the previous block. Second, the deployed address. Third, the next value of the counter. This ensure that identifiers are unique across all contracts following this scheme, and that future id... | function generateLockId() internal returns (bytes32 lockId) {
return keccak256(block.blockhash(block.number - 1), address(this), ++lockRequestCount);
}
| 12,619,974 | [
1,
4625,
348,
7953,
560,
30,
225,
13690,
55,
14,
632,
20392,
225,
2860,
279,
12186,
3089,
2756,
18,
632,
5206,
326,
9377,
4355,
4692,
8925,
4085,
18,
5783,
16,
326,
1203,
2816,
434,
326,
2416,
1203,
18,
7631,
16,
326,
19357,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
2531,
548,
1435,
2713,
1135,
261,
3890,
1578,
2176,
548,
13,
288,
203,
3639,
327,
417,
24410,
581,
5034,
12,
2629,
18,
2629,
2816,
12,
2629,
18,
2696,
300,
404,
3631,
1758,
12,
2211,
3631,
965,
739,
691,
1380,
1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Implementation of the basic standard m... | * @dev Destroys `amount` tokens of token type `id` from `account` Requirements: - `account` cannot be the zero address. - `account` must have at least `amount` tokens of token type `id`./ | function _burn(
address account,
uint256 id,
uint256 amount
) internal virtual {
require(account != address(0), "ERC1155: burn from the zero address");
address operator = _msgSender();
_beforeTokenTransfer(
operator,
account,
... | 553,474 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
434,
1147,
618,
1375,
350,
68,
628,
1375,
4631,
68,
29076,
30,
300,
1375,
4631,
68,
2780,
506,
326,
3634,
1758,
18,
300,
1375,
4631,
68,
1297,
1240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
70,
321,
12,
203,
3639,
1758,
2236,
16,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
2499,
2539,
... |
./full_match/1/0x781FDB68cE5EE5Cd7470bbFEec0F98c24eA18c93/sources/browser/CompoundLoanInfo.sol | @notice Information about cTokens @param _cTokenAddresses Array of cTokens addresses @return tokens Array of cTokens infomartion | function getTokensInfo(address[] memory _cTokenAddresses) public returns(TokenInfo[] memory tokens) {
tokens = new TokenInfo[](_cTokenAddresses.length);
for (uint i = 0; i < _cTokenAddresses.length; ++i) {
(, uint collFactor) = comp.markets(_cTokenAddresses[i]);
tokens[i] =... | 16,393,680 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
15353,
2973,
276,
5157,
632,
891,
389,
71,
1345,
7148,
1510,
434,
276,
5157,
6138,
632,
2463,
2430,
1510,
434,
276,
5157,
8286,
362,
485,
285,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18349,
966,
12,
2867,
8526,
3778,
389,
71,
1345,
7148,
13,
1071,
1135,
12,
1345,
966,
8526,
3778,
2430,
13,
288,
203,
3639,
2430,
273,
394,
3155,
966,
8526,
24899,
71,
1345,
7148,
18,
2469,
1769,
203,
203,
3639,
364,
... |
// File: contracts/AvastarTypes.sol
pragma solidity 0.5.14;
/**
* @title Avastar Data Types
* @author Cliff Hall
*/
contract AvastarTypes {
enum Generation {
ONE,
TWO,
THREE,
FOUR,
FIVE
}
enum Series {
PROMO,
ONE,
TWO,
THREE,
... | * @notice Set the Generation to be minted. Resets `currentSeries` to `Series.ONE`. Only invokable by system admin role, when contract is paused and not upgraded. Emits `GenerationSet` event with new value of `currentGeneration`. @param _generation the new value for currentGeneration/ | function setCurrentGeneration(Generation _generation) external onlySysAdmin whenPaused whenNotUpgraded {
currentGeneration = _generation;
emit CurrentGenerationSet(currentGeneration);
setCurrentSeries(Series.ONE);
}
| 2,545,649 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1000,
326,
23234,
358,
506,
312,
474,
329,
18,
1124,
2413,
1375,
2972,
6485,
68,
358,
1375,
6485,
18,
5998,
8338,
5098,
5770,
429,
635,
2619,
3981,
2478,
16,
1347,
6835,
353,
17781,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12589,
13842,
12,
13842,
389,
25514,
13,
3903,
1338,
12712,
4446,
1347,
28590,
1347,
1248,
1211,
19305,
288,
203,
3639,
783,
13842,
273,
389,
25514,
31,
203,
3639,
3626,
6562,
13842,
694,
12,
2972,
13842,
1769,
203,
3639,
... |
/*
Copyright (c) 2020 Fuel Labs
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, software
d... | ProofType_InvalidTransactionDoubleSpend
| case 4 { | 12,672,706 | [
1,
4625,
348,
7953,
560,
30,
225,
1186,
792,
559,
67,
1941,
3342,
5265,
27223,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
648,
1059,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0xa401d9BeBbD72676C2399ddD94631746a3738342/sources/project:/contracts/DecentralizedLottery.sol | bool result = payable(address(this)).send(msg.value);require(result,"There are some thing wrongs on send ether"); | function buyTicket(uint256 amount) public payable checkMax(amount) checkEqualAmount(amount) notPause{
uint256 _participantCount=participantCount;
uint256 firstTicket= _participantCount;
uint256 lastTicket = _participantCount+amount;
for(uint256 i= _participantCount; i< _participantC... | 5,663,313 | [
1,
4625,
348,
7953,
560,
30,
1426,
563,
273,
225,
8843,
429,
12,
2867,
12,
2211,
13,
2934,
4661,
12,
3576,
18,
1132,
1769,
6528,
12,
2088,
10837,
9828,
854,
2690,
7757,
341,
1949,
564,
603,
1366,
225,
2437,
8863,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
30143,
13614,
12,
11890,
5034,
3844,
13,
1071,
8843,
429,
866,
2747,
12,
8949,
13,
866,
5812,
6275,
12,
8949,
13,
486,
19205,
95,
203,
4202,
203,
203,
1377,
2254,
5034,
389,
2680,
14265,
1380,
33,
2680,
14265,
1380,
31,... |
./full_match/1/0xC53a66E45D3aA5558Ff322D18c4227fD63E2C8e2/sources/contracts/vault/modules/adminModule/main.sol | @notice reverts if msg.sender is not secondaryAuth or auth | modifier onlySecondaryAuth() {
if (
!(secondaryAuth == msg.sender ||
IProxy(address(this)).getAdmin() == msg.sender)
) {
revert AdminModule__NotSecondaryAuth();
}
_;
}
| 9,612,406 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
15226,
87,
309,
1234,
18,
15330,
353,
486,
9946,
1730,
578,
1357,
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,
9606,
1338,
14893,
1730,
1435,
288,
203,
3639,
309,
261,
203,
5411,
401,
12,
19674,
1730,
422,
1234,
18,
15330,
747,
203,
7734,
467,
3886,
12,
2867,
12,
2211,
13,
2934,
588,
4446,
1435,
422,
1234,
18,
15330,
13,
203,
3639,
... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
functi... | ship tokens to beneficiary
| shipTokens(_beneficiary, beneficiaryTokens); | 615,164 | [
1,
4625,
348,
7953,
560,
30,
225,
24316,
2430,
358,
27641,
74,
14463,
814,
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,
24316,
5157,
24899,
70,
4009,
74,
14463,
814,
16,
27641,
74,
14463,
814,
5157,
1769,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 Varia LLC
/// Wet Code by Erich Dylus & Sarah Brennan
/// Dry Code by LexDAO LLC
pragma solidity ^0.8.6;
/// @notice This contract manages function access control, adapted from @boringcrypto (https://github.com/boringcrypto/BoringSolidity).
contract Ownable {
a... | @notice The `pendingOwner` can claim `owner` account. | function claimOwner() external {
require(msg.sender == pendingOwner, 'Ownable:!pendingOwner');
emit TransferOwnership(owner, msg.sender);
owner = msg.sender;
pendingOwner = address(0);
}
| 1,605,279 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1021,
1375,
9561,
5541,
68,
848,
7516,
1375,
8443,
68,
2236,
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,
... | [
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,
7516,
5541,
1435,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
4634,
5541,
16,
296,
5460,
429,
30,
5,
9561,
5541,
8284,
203,
3639,
3626,
12279,
5460,
12565,
12,
8443,
16,
1234,
18,
15330,
1769,
203,
3639,
3410,... |
// Copyright (c) William Morriss, 2018
pragma solidity^0.4.19;
import "./AppToken.sol";
import "./forum.sol";
import "./redeemer.sol";
contract Lottery is Beneficiary, Sponsored {
// though ERC20 says tokens *should* revert in transferFrom without allowance
// this token *must* revert
AppToken public toke... | though ERC20 says tokens *should* revert in transferFrom without allowance this token *must* revert | contract Lottery is Beneficiary, Sponsored {
AppToken public token;
Forum public forum;
address public owner;
uint256 public epochTimestamp;
uint256 public epochPrior;
uint256 public epochCurrent;
mapping (uint256 => int256) public votes;
mapping (uint256 => mapping (address => int8)) vo... | 15,804,909 | [
1,
4625,
348,
7953,
560,
30,
225,
11376,
4232,
39,
3462,
20185,
2430,
380,
13139,
14,
15226,
316,
7412,
1265,
2887,
1699,
1359,
333,
1147,
380,
11926,
14,
15226,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
511,
352,
387,
93,
353,
605,
4009,
74,
14463,
814,
16,
348,
500,
87,
7653,
288,
203,
565,
4677,
1345,
1071,
1147,
31,
203,
565,
2457,
379,
1071,
11283,
31,
203,
565,
1758,
1071,
3410,
31,
203,
565,
2254,
5034,
1071,
7632... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.7;
import "./OraclesManager.sol";
import "../interfaces/ISignatureVerifier.sol";
import "../libraries/SignatureUtil.sol";
/// @dev It's used to verify that a transfer is signed by oracles.
contract SignatureVerifier is OraclesManager, ISignatureVerifier {
u... | @dev It's used to verify that a transfer is signed by oracles. | contract SignatureVerifier is OraclesManager, ISignatureVerifier {
using SignatureUtil for bytes;
using SignatureUtil for bytes32;
uint8 public confirmationThreshold;
uint40 public submissionsInBlock;
uint40 public currentBlock;
address public debridgeAddress;
error DeBridgeGateBadRole()... | 1,698,391 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2597,
1807,
1399,
358,
3929,
716,
279,
7412,
353,
6726,
635,
578,
69,
9558,
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,
16351,
9249,
17758,
353,
531,
354,
9558,
1318,
16,
467,
5374,
17758,
288,
203,
565,
1450,
9249,
1304,
364,
1731,
31,
203,
565,
1450,
9249,
1304,
364,
1731,
1578,
31,
203,
203,
565,
2254,
28,
1071,
14296,
7614,
31,
203,
565,
2254,... |
pragma solidity ^0.4.23;
// File: contracts/convert/ByteConvert.sol
library ByteConvert {
function bytesToBytes2(bytes b) public pure returns (bytes2) {
bytes2 out;
for (uint i = 0; i < 2; i++) {
out |= bytes2(b[i] & 0xFF) >> (i * 8);
}
return out;
}
function bytesToBytes5(bytes b) publi... | Getters getSpaceshipProduct* */ | function getSpaceshipProductPriceByModel(uint16 _model) public view returns (uint256) {
return spaceshipProducts[_model].price;
}
| 13,451,133 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
5432,
1322,
4996,
5310,
4133,
14,
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,
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,
225,
445,
1322,
4996,
5310,
4133,
5147,
858,
1488,
12,
11890,
2313,
389,
2284,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
7292,
5310,
13344,
63,
67,
2284,
8009,
8694,
31,
203,
225,
289,
203,
203,
2,
-100,
-... |
./full_match/56/0x3260Ebd17d9038d2C2a3b24FFe5c8f1eA10603df/sources/project_/contracts/ClimbToken.sol | * Updates The Threshold To Trigger The Garbage Collector */ | function changeTokenSlippage(uint256 newSlippage) external onlyOwner {
require(newSlippage <= 995, "invalid slippage");
_tokenSlippage = newSlippage;
emit UpdateTokenSlippage(newSlippage);
}
| 3,243,857 | [
1,
4625,
348,
7953,
560,
30,
380,
15419,
1021,
27139,
2974,
11321,
1021,
611,
12332,
13844,
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,
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,
2549,
1345,
55,
3169,
2433,
12,
11890,
5034,
30826,
3169,
2433,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
2704,
55,
3169,
2433,
1648,
2468,
8778,
16,
315,
5387,
272,
3169,
2433,
8863,
203,
3639,
389,
2316,
55,
316... |
/*
Copyright 2021 Empty Set Squad <emptysetsquad@protonmail.com>
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 ... | * @notice Convert USDC amount to ESD amount @dev Private only Converts a 6-decimal ERC20 amount to an 18-decimals ERC20 amount @param usdcAmount 6-decimal ERC20 amount @return 18-decimals ERC20 amount/ | function _fromUsdcAmount(uint256 usdcAmount) internal pure returns (uint256) {
return usdcAmount.mul(USDC_DECIMAL_DIFF);
}
| 1,784,603 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4037,
11836,
5528,
3844,
358,
512,
9903,
3844,
632,
5206,
8726,
1338,
1377,
20377,
279,
1666,
17,
12586,
4232,
39,
3462,
3844,
358,
392,
6549,
17,
31734,
4232,
39,
3462,
3844,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
389,
2080,
3477,
7201,
6275,
12,
11890,
5034,
584,
7201,
6275,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
584,
7201,
6275,
18,
16411,
12,
3378,
5528,
67,
23816,
67,
2565,
2246,
1769,
203,
565,
289... |
./partial_match/1/0xa28C3111C57f5EA3cb09e06C7C7406eba49068b4/sources/BzxLiquidateV2.sol | IBZx.LoanReturnData memory loan = BZX.getLoan(loanId); require(maxLiquidatable != 0, "healty loan"); IToken iToken = IToken(BZX.underlyingToLoanPool(loanToken)); | function liquidateInternal(
bytes32 loanId,
address loanToken,
address collateralToken,
uint256 maxLiquidatable,
address flashLoanToken,
bool allowLoss
) internal returns (address, uint256) {
bytes memory b = IToken(flashLoanToken).flashBorrow(
... | 15,484,762 | [
1,
4625,
348,
7953,
560,
30,
225,
23450,
62,
92,
18,
1504,
304,
990,
751,
3778,
28183,
273,
605,
62,
60,
18,
588,
1504,
304,
12,
383,
304,
548,
1769,
2583,
12,
1896,
48,
18988,
350,
8163,
480,
374,
16,
315,
580,
15006,
28183,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4501,
26595,
340,
3061,
12,
203,
3639,
1731,
1578,
28183,
548,
16,
203,
3639,
1758,
28183,
1345,
16,
203,
3639,
1758,
4508,
2045,
287,
1345,
16,
203,
3639,
2254,
5034,
943,
48,
18988,
350,
8163,
16,
203,
3639,
1758,
956... |
/**
*Submitted for verification at Etherscan.io on 2021-07-05
*/
// SPDX-License-Identifier: UNLICENSED
/*
▄▄█ ▄ ██ █▄▄▄▄ ▄█
██ █ █ █ █ ▄▀ ██
██ ██ █ █▄▄█ █▀▀▌ ██
▐█ █ █ █ █ █ █ █ ▐█
▐ █ █ █ █ █ ▐
█ ██ █ ▀
▀ */
/// 🦊🌾 Special thanks to Keno / Borin... | *********************/ @notice Stake SUSHI `amount` into crSUSHI and BENTO for benefit of `to` by batching calls to `crSushiToken` and `bento`. | function sushiToCreamToBento(address to, uint256 amount) external returns (uint256 amountOut, uint256 shareOut) {
}
| 2,388,226 | [
1,
4625,
348,
7953,
560,
30,
380,
2751,
1007,
19,
632,
20392,
934,
911,
11726,
2664,
45,
1375,
8949,
68,
1368,
4422,
6639,
2664,
45,
471,
605,
2222,
51,
364,
27641,
7216,
434,
1375,
869,
68,
635,
2581,
310,
4097,
358,
1375,
3353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
272,
1218,
77,
774,
39,
793,
774,
38,
29565,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
3903,
1135,
261,
11890,
5034,
3844,
1182,
16,
2254,
5034,
7433,
1182,
13,
288,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,... |
contract Certifier {
event Confirmed(address indexed who);
event Revoked(address indexed who);
function certified(address _who) view public returns (bool);
}
contract ERC223ReceivingContract {
/// @dev Standard ERC223 function that will handle incoming token transfers.
/// @param _from Token sender addres... | @dev Assigns a new address to act as the CMO. Only available to the current CEO. @param _newCMO The address of the new CMO | function setCMO(address _newCMO) external onlyCEO {
require(_newCMO != address(0));
cmoAddress = _newCMO;
}
| 4,802,866 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
12093,
87,
279,
394,
1758,
358,
1328,
487,
326,
385,
5980,
18,
5098,
2319,
358,
326,
783,
29538,
51,
18,
632,
891,
389,
2704,
39,
5980,
1021,
1758,
434,
326,
394,
385,
5980,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11440,
5980,
12,
2867,
389,
2704,
39,
5980,
13,
3903,
1338,
1441,
51,
288,
203,
3639,
2583,
24899,
2704,
39,
5980,
480,
1758,
12,
20,
10019,
203,
3639,
5003,
83,
1887,
273,
389,
2704,
39,
5980,
31,
203,
565,
289,
203,... |
// LC->27.01.2016
wordform_score given { eng_noun }=-5 // We follow the argument given in Apostol.
wordform_score need { eng_auxverb }=-1 // предпочитаем вариант обычного глагола
wordform_score intrinsically { eng_noun }=-2
wordform_score "face to face" { eng_adverb }=2 // They spoke face to face.
wordform_score alas... | Monolingual speakers.
| wordform_score Monolingual { eng_noun }=-5 | 12,607,833 | [
1,
4625,
348,
7953,
560,
30,
225,
9041,
355,
310,
1462,
272,
10244,
414,
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,... | [
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,
1095,
687,
67,
6355,
9041,
355,
310,
1462,
288,
24691,
67,
82,
465,
289,
29711,
25,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@boringcrypto/boring-solidity/contracts/libraries/BoringMath.sol";
import "@boringcrypto/boring-solidity/contracts/BoringBatchable.sol";
import "@boringcrypto/boring-solidity/contracts/BoringOwnable.sol";
import "./Fanta... | @notice Withdraw without caring about rewards. EMERGENCY ONLY. @param pid The index of the pool. See `poolInfo`. @param to Receiver of the LP tokens. | function emergencyWithdraw(uint256 pid, address to) public {
UserInfo storage user = userInfo[pid][msg.sender];
uint256 amount = user.amount;
user.amount = 0;
user.rewardDebt = 0;
IRewarder _rewarder = rewarder[pid];
if (address(_rewarder) != address(0)) {
... | 1,072,772 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3423,
9446,
2887,
5926,
310,
2973,
283,
6397,
18,
7141,
654,
16652,
16068,
20747,
18,
632,
891,
4231,
1021,
770,
434,
326,
2845,
18,
2164,
1375,
6011,
966,
8338,
632,
891,
358,
31020,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
801,
24530,
1190,
9446,
12,
11890,
5034,
4231,
16,
1758,
358,
13,
1071,
288,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
6610,
6362,
3576,
18,
15330,
15533,
203,
3639,
2254,
5034,
3844,
273,
729,
18,
8949,
31,
203,
363... |
/**+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
abcLotto: a Block Chain Lottery
Don't trust anyone but the CODE!
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++... | * @title inviter book interface./ | contract inviterBookI{
function isRoot(address addr) public view returns(bool);
function hasInviter(address addr) public view returns(bool);
function setInviter(address addr, string inviter) public;
function pay(address addr) public payable;
}
| 7,314,875 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
2198,
2165,
6978,
1560,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2198,
2165,
9084,
45,
95,
203,
565,
445,
19371,
12,
2867,
3091,
13,
1071,
1476,
1135,
12,
6430,
1769,
203,
565,
445,
711,
3605,
2165,
12,
2867,
3091,
13,
1071,
1476,
1135,
12,
6430,
1769,
203,
565,
445,
444,
3605,
2165,
... |
./full_match/4/0x12f052EDb953096fdA945D1E9c57E4C88Dc7A46A/sources/contracts/BladeRewards.sol | function transfer() external { Adbank adbank = Adbank(0xB3CB86774a9716ac7122Dc3e0942f66Ae8FB596b); adbank.transfer(msg.sender, 100); } | contract TransferBladeRewards {
Adbank public adbank;
address public owner;
pragma solidity ^0.8.0;
modifier onlyOwner(){
require(msg.sender == owner);
_;
}
constructor(address _adbankContractAddress) {
owner = msg.sender;
adbank = Adbank(_adbankContra... | 722,160 | [
1,
4625,
348,
7953,
560,
30,
225,
445,
7412,
1435,
3903,
288,
377,
432,
1966,
2304,
1261,
10546,
273,
432,
1966,
2304,
12,
20,
20029,
23,
8876,
5292,
4700,
24,
69,
10580,
2313,
1077,
27,
22266,
40,
71,
23,
73,
5908,
9452,
74,
6028... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12279,
4802,
2486,
17631,
14727,
288,
203,
203,
565,
432,
1966,
2304,
1071,
1261,
10546,
31,
203,
377,
203,
565,
1758,
1071,
3410,
31,
203,
377,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
565,
9606,
1... |
pragma solidity ^0.5.4;
import "./DividendToken.sol";
/**
* @dev Inspiration by MiniMeToken https://github.com/Giveth/minime/blob/master/contracts/MiniMeToken.sol by giveEth
* @notice this Token corresponds to common stock that enables dividends as well as voting
*/
contract VotingToken is DividendToken {
eve... | bool invalid = false; | int winningOptionIndex = - 1;
| 5,403,231 | [
1,
4625,
348,
7953,
560,
30,
1426,
2057,
273,
629,
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,
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,
509,
5657,
2093,
1895,
1016,
273,
300,
404,
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,
-... |
./partial_match/1/0x9BBe6AD774178bBD67eD4943227d6813b21De469/sources/WAGAMAMA.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("WAGAMAMA", "WAGAMAMA") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = ... | 4,350,789 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
59,
1781,
2192,
2192,
37,
3113,
315,
59,
1781,
2192,
2192,
37,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,... |
./partial_match/42/0x0e13DfD0CD26d1a33C16c612b87DBAa9EFaFa6bF/sources/MockPool.sol | emit when admin process the pool unstake request | contract SeedPool is State, Constants {
using SafeMath for uint256;
event Stake(address indexed user, uint256 indexed pool, uint256 indexed amount);
event Unstake(address indexed user, uint256 indexed pool, uint256 indexed amount);
event Harvest(address indexed user, uint256 indexed pool, uint256 index... | 3,488,397 | [
1,
4625,
348,
7953,
560,
30,
225,
3626,
1347,
3981,
1207,
326,
2845,
640,
334,
911,
590,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
28065,
2864,
353,
3287,
16,
5245,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
934,
911,
12,
2867,
8808,
729,
16,
2254,
5034,
8808,
2845,
16,
2254,
5034,
8808,
3844,
1769,
203,
565,
871,
1351... |
./partial_match/1/0xf0c225846F9ed9c55a7a2629F61dFe4596235807/sources/Orchestrator.sol | * @title Orchestrator @notice The orchestrator is the main entry point for rebase operations. It coordinates the b4se policy actions with external consumers./ Stable ordering is not guaranteed. | contract Orchestrator is Ownable, Initializable {
using SafeMath for uint256;
B4seI public b4se;
B4sePolicyI public b4sePolicy;
PoolI public b4seDaiPool;
PoolI public b4seDaiLpPool;
PoolI public degovDaiLpPool;
bool public rebaseStarted;
uint256 public maximumRebaseTime;
uint256 p... | 15,668,281 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
2965,
23386,
639,
632,
20392,
1021,
578,
23386,
639,
353,
326,
2774,
1241,
1634,
364,
283,
1969,
5295,
18,
2597,
5513,
326,
324,
24,
307,
3329,
540,
4209,
598,
3903,
18350,
18,
19,
934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
2965,
23386,
639,
353,
14223,
6914,
16,
10188,
6934,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
605,
24,
307,
45,
1071,
324,
24,
307,
31,
203,
565,
605,
24,
307,
2582,
45,
1071,
324,
24,
307,
... |
./partial_match/1/0xCf82652F5CA145B6442D80511995F9332cd57Ff2/sources/OGBOT.sol | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
Social Links
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 4,119,097 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
1772,
288,
203,
28795,
21771,
203,
203,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
565,
445,
389,
3576,
751,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "ds-test/test.sol";
import "../test/utils/Caller.sol";
import {Hevm} from "../test/utils/Hevm.sol";
import {Oracle} from "./Oracle.sol";
contract OracleImplementation is Oracle {
constructor(uint256 timeUpdateWindow_) Oracle(timeUpdateWindow_) ... | Create user Do not authorize user Oracle should be paused when calling reset Should fail trying to reset | function test_nonAuthorizedUser_shouldNotBeAble_toReset() public {
Caller user = new Caller();
oracle.pause();
bool success;
(success, ) = user.externalCall(
address(oracle),
abi.encodeWithSelector(oracle.reset.selector)
);
assertTrue(
... | 12,644,921 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
729,
2256,
486,
12229,
729,
28544,
1410,
506,
17781,
1347,
4440,
2715,
9363,
2321,
8374,
358,
2715,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
67,
5836,
15341,
1299,
67,
13139,
1248,
1919,
5895,
298,
67,
869,
7013,
1435,
1071,
288,
203,
3639,
20646,
729,
273,
394,
20646,
5621,
203,
203,
3639,
20865,
18,
19476,
5621,
203,
203,
3639,
1426,
2216,
31,
203,
3... |
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
contract DSAuthEvents {
event LogSetAuthority(address indexed authority);
event LogSetOwner(address indexed owner);
}
contract DSAuth is DSAuthEvents {
DSAuthority public authority;
address public owner;
constructor() public {
... | Gets DAI from the user's wallet Approves adapter to take the DAI amount Joins DAI into the vat | function daiJoin_join(address apt, address urn, uint256 wad) public {
DaiJoinLike(apt).dai().transferFrom(msg.sender, address(this), wad);
DaiJoinLike(apt).dai().approve(apt, wad);
DaiJoinLike(apt).join(urn, wad);
}
| 7,333,323 | [
1,
4625,
348,
7953,
560,
30,
225,
11881,
463,
18194,
628,
326,
729,
1807,
9230,
1716,
685,
3324,
4516,
358,
4862,
326,
463,
18194,
3844,
4214,
87,
463,
18194,
1368,
326,
17359,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5248,
77,
4572,
67,
5701,
12,
2867,
279,
337,
16,
1758,
18412,
16,
2254,
5034,
341,
361,
13,
1071,
288,
203,
203,
203,
3639,
463,
10658,
4572,
8804,
12,
1657,
2934,
2414,
77,
7675,
13866,
1265,
12,
3576,
18,
15330,
16... |
./partial_match/42/0x45A7172801842af0f7b4e5bBfD1F3b00B0856Bbb/sources/StabinolToken.sol | We will mint 350,000 tokens to the deployer to use for the merkle airdrop, team and liquidity | constructor() public {
_mint(_msgSender(), 799800e18);
}
| 8,877,946 | [
1,
4625,
348,
7953,
560,
30,
225,
1660,
903,
312,
474,
890,
3361,
16,
3784,
2430,
358,
326,
7286,
264,
358,
999,
364,
326,
30235,
279,
6909,
1764,
16,
5927,
471,
4501,
372,
24237,
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,
3885,
1435,
1071,
288,
203,
3639,
389,
81,
474,
24899,
3576,
12021,
9334,
2371,
2733,
17374,
73,
2643,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x41353Ef12FCD2BeE88dBCe07e710FEF6D37Fa282/sources/TwapManager.sol | * @notice Gets the owner of this contract. @return Returns the address of the owner./ | function owner () external virtual view returns (address) {
return _owner;
}
| 4,005,555 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11881,
326,
3410,
434,
333,
6835,
18,
632,
2463,
2860,
326,
1758,
434,
326,
3410,
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,
... | [
1,
1,
1,
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,
3410,
1832,
3903,
5024,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
8443,
31,
203,
565,
289,
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.0;
import "hardhat/console.sol";
interface Token {
function transfer(address to, uint256 amount) external;
function balanceOf(address) external returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
}
interface R... | Borrow max possible amount | function attack() external {
require(msg.sender == owner);
uint256 loanerBalance = dvt.balanceOf(address(loaner));
console.log("Borrowing %d DVT from loaner", loanerBalance/10**18);
loaner.flashLoan(loanerBalance);
}
| 14,038,835 | [
1,
4625,
348,
7953,
560,
30,
225,
605,
15318,
943,
3323,
3844,
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,
13843,
1435,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
1769,
203,
3639,
2254,
5034,
28183,
264,
13937,
273,
302,
11734,
18,
12296,
951,
12,
2867,
12,
383,
304,
264,
10019,
203,
3639,
2983,
18,
1330,
29... |