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 |
|---|---|---|---|---|---|---|
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | ухудшаться на несколько процентов
| rus_verbs:ухудшаться{}, | 5,485,798 | [
1,
146,
230,
146,
232,
146,
230,
145,
117,
146,
235,
145,
113,
146,
229,
146,
239,
146,
228,
146,
242,
225,
145,
126,
145,
113,
225,
145,
126,
145,
118,
146,
228,
145,
123,
145,
127,
145,
124,
146,
239,
145,
123,
145,
127,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
436,
407,
67,
502,
2038,
30,
146,
230,
146,
232,
146,
230,
145,
117,
146,
235,
145,
113,
146,
229,
146,
239,
146,
228,
146,
242,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/421613/0xE6Db969E4d0615F1A6071e8F806055662676cEF6/sources/contracts/protocol/libraries/configuration/ReserveConfiguration.sol | * @dev Gets the configuration paramters of the reserve from a memory object @param self The reserve configuration @return The state params representing ltv, liquidation threshold, liquidation bonus, the reserve decimals/ | function getParamsMemory(
DataTypes.ReserveConfigurationMap memory self
) internal pure returns (uint256, uint256, uint256, uint256, uint256, uint256) {
return (
self.data & ~LTV_MASK,
(self.data & ~LIQUIDATION_THRESHOLD_MASK) >> LIQUIDATION_THRESHOLD_START_BIT_POSITION,
(self.data & ~LIQU... | 16,825,003 | [
1,
3002,
326,
1664,
579,
5432,
434,
326,
20501,
628,
279,
3778,
733,
225,
365,
1021,
20501,
1664,
327,
1021,
919,
859,
5123,
13489,
90,
16,
4501,
26595,
367,
5573,
16,
4501,
26595,
367,
324,
22889,
16,
326,
20501,
15105,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13281,
6031,
12,
203,
565,
1910,
2016,
18,
607,
6527,
1750,
863,
3778,
365,
203,
225,
262,
2713,
16618,
1135,
261,
11890,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
13,
288,
... |
./full_match/1/0x8A9896b8d61cA66A231E9CF224DD4d80643e3CA1/sources/contracts/JBProjects.sol | / Increment the count, which will be used as the ID. Mint the project. Set the metadata if one was provided. | function createFor(
address _owner,
JBProjectMetadata calldata _metadata
) external override returns (uint256 projectId) {
projectId = ++count;
_safeMint(_owner, projectId);
if (bytes(_metadata.content).length > 0)
metadataContentOf[projectId][_metadata.domain] = _metadata.content;
... | 2,938,970 | [
1,
19,
17883,
326,
1056,
16,
1492,
903,
506,
1399,
487,
326,
1599,
18,
490,
474,
326,
1984,
18,
1000,
326,
1982,
309,
1245,
1703,
2112,
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,... | [
1,
1,
1,
1,
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,
225,
445,
752,
1290,
12,
203,
565,
1758,
389,
8443,
16,
203,
565,
804,
38,
4109,
2277,
745,
892,
389,
4165,
203,
225,
262,
3903,
3849,
1135,
261,
11890,
5034,
9882,
13,
288,
203,
565,
9882,
273,
965,
1883,
31,
203,
203,
565,
... |
import "../../interfaces/IWETH.sol";
import "../../interfaces/IDeltaToken.sol";
import "../../interfaces/IRebasingLiquidityToken.sol";
import '../uniswapv2/libraries/UniswapV2Library.sol';
import '../Upgradability/token/ERC20/ERC20Upgradeable.sol';
interface IRESERVE_VAULT {
function flashBorrowEverything() extern... | remove if we have DELTA in here for some reason
| if(deltaBalance > 0) { | 11,806,296 | [
1,
4479,
309,
732,
1240,
2030,
48,
9833,
316,
2674,
364,
2690,
3971,
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,
3639,
309,
12,
9878,
13937,
405,
374,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "../libs/SafeMath.sol";
import "../libs/SwapUtilities.sol";
import "./BEP20WithFee.sol";
contract FarmVault {
constructor() public {
}
}
abstract contract BEP20WithFarmRouter is BEP20WithFee {
using SafeMath for uint256;
// --==[ Strateg... | --==[ Overridden methods ]==-- | function _transfer(address from, address to, uint256 amount) override internal virtual {
bool overMinTokenBalance = BEP20.balanceOf(farmVault) >= farmNumberOfTokensToSell;
if (
isFarmRewardingActive &&
!internalSwap &&
!isPair(from) &&
overMinTokenBal... | 13,030,380 | [
1,
413,
631,
63,
531,
1107,
2794,
2590,
308,
631,
413,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
3849,
2713,
5024,
288,
203,
3639,
1426,
1879,
2930,
1345,
13937,
273,
9722,
52,
3462,
18,
12296,
951,
12,
74,
4610,
12003,
13,
1545,
284,
4610,
9226,
... |
// File contracts/library/SeedRand.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
library SeedRand {
function rand(
uint256 _seed,
uint256 _index
) internal pure returns (uint256 val) {
unchecked {
val = uint256(keccak256(abi.encodePacked(
_seed, _index
)));
}
}... | Mint pass contract Mint pass ID Clans amount (attribute 1) Max probability value (200 means steps in .5%) Structure to hold generation data to pass around | contract Shogunate is AbstractShogunate {
IMintPass public mintPass;
uint256 public mintPassId;
uint256 constant CLANS = 5;
uint256 constant PMAX = 200;
}
struct GenerationData {
bytes32[] pTable;
bytes32[] aTable;
uint256 soulEssence;
}
constructor(
IMintPass _mintPass,
uint256 _... | 12,082,344 | [
1,
49,
474,
1342,
6835,
490,
474,
1342,
1599,
3905,
634,
3844,
261,
4589,
404,
13,
4238,
11331,
460,
261,
6976,
4696,
6075,
316,
263,
25,
9,
13,
13348,
358,
6887,
9377,
501,
358,
1342,
6740,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
2638,
717,
318,
340,
353,
4115,
1555,
717,
318,
340,
288,
203,
225,
6246,
474,
6433,
1071,
312,
474,
6433,
31,
203,
225,
2254,
5034,
1071,
312,
474,
6433,
548,
31,
203,
203,
225,
2254,
5034,
5381,
385,
11074,
55,
273,
13... |
pragma solidity ^ 0.4.24;
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pu... | update the total position amount | _global.positionAmount = _positionAmount_.add(_global.positionAmount);
| 1,031,982 | [
1,
2725,
326,
2078,
1754,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
67,
6347,
18,
3276,
6275,
273,
389,
3276,
6275,
27799,
1289,
24899,
6347,
18,
3276,
6275,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.24;
interface MilAuthInterface {
function requiredSignatures() external view returns(uint256);
function requiredDevSignatures() external view returns(uint256);
function adminCount() external view returns(uint256);
function devCount() external view returns(uint256);
funct... | * @dev return current round information @return round id @return last round state 1. current round started 2. current round stopped(wait for drawing code) 3. drawn code(wait for claiming winners) 4. assigned to foundation, winners, and migrate the rest to the next round) @return round end time @retu... | function getCurrentRoundInfo()
public
view
returns(uint256, uint256, uint256, uint256, uint256)
{
return (
rID_,
uint256(round_[lID_].state),
round_[rID_].roundDeadline,
round_[lID_].claimDeadline,
round_[rID_].pot
... | 945,436 | [
1,
2463,
783,
3643,
1779,
327,
3643,
612,
327,
1142,
3643,
919,
1377,
404,
18,
783,
3643,
5746,
1377,
576,
18,
783,
3643,
9627,
12,
7048,
364,
16327,
981,
13,
1377,
890,
18,
19377,
981,
12,
7048,
364,
7516,
310,
5657,
9646,
13,
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,
5175,
11066,
966,
1435,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
12,
11890,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
13,
203,
565,
288,
203,
3639,
327,
261,
203,
5411,
436,
734,
... |
// Sources flattened with hardhat v2.6.5 https://hardhat.org
// File @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol@v4.3.2
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deplo... | * @dev Admin function to begin change of governor. The `_newGovernor` must call `acceptOwnership` to finalize the transfer. @param _newGovernor Address of new `governor`/ | function transferOwnership(address _newGovernor) external onlyGovernor {
require(_newGovernor != address(0), "BICO:: Governor must be set");
address oldPendingGovernor = pendingGovernor;
pendingGovernor = _newGovernor;
emit NewPendingOwnership(oldPendingGovernor, pendingGovernor);
... | 13,941,712 | [
1,
4446,
445,
358,
2376,
2549,
434,
314,
1643,
29561,
18,
1021,
1375,
67,
2704,
43,
1643,
29561,
68,
1297,
745,
1375,
9436,
5460,
12565,
68,
358,
12409,
326,
7412,
18,
225,
389,
2704,
43,
1643,
29561,
5267,
434,
394,
1375,
75,
1643,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
5460,
12565,
12,
2867,
389,
2704,
43,
1643,
29561,
13,
3903,
1338,
43,
1643,
29561,
288,
203,
3639,
2583,
24899,
2704,
43,
1643,
29561,
480,
1758,
12,
20,
3631,
315,
38,
2871,
51,
2866,
611,
1643,
29561,
1297,
506... |
./full_match/4/0x601B3155f6D95bd8cF572DAF9c21ddE0614bc9CF/sources/sport/sports.sol | @winTeam:胜利队伍 初始为0当比赛时由预言机导入比赛结果@dev: 结算/ require(block.timestamp>NumberStatus[number].endTime, "invalid time"); 我数量在同类型总量中的比例 如果有推荐人需分给推荐人 | function settlement(uint number, uint winTeam) external{
uint buyTeam1count;
uint buyTeam2count;
uint buyTeam3count;
uint allCount;
uint winAmount;
uint lostAmount;
uint myRate;
for(uint i; i<NumberStatus[number].userCount +1; i++) {
bill... | 12,312,385 | [
1,
36,
8082,
8689,
176,
125,
253,
169,
230,
255,
166,
235,
107,
170,
251,
258,
165,
125,
240,
225,
166,
235,
256,
166,
105,
238,
165,
121,
123,
20,
166,
126,
246,
167,
112,
247,
169,
118,
254,
167,
250,
119,
168,
247,
114,
170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26319,
806,
12,
11890,
1300,
16,
2254,
5657,
8689,
13,
3903,
95,
203,
203,
3639,
2254,
30143,
8689,
21,
1883,
31,
203,
3639,
2254,
30143,
8689,
22,
1883,
31,
203,
3639,
2254,
30143,
8689,
23,
1883,
31,
203,
3639,
2254,
... |
// SPDX-License-Identifier: BSD-4-Clause
pragma solidity 0.8.3;
import "./IOddzSDK.sol";
import "./Libs/DateTimeLibrary.sol";
import "./Integrations/Gasless/BaseRelayRecipient.sol";
import "./Libs/IERC20Extented.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/utils... | At this point we know that the sender is a trusted forwarder, so we trust that the last bytes of msg.data are the verified sender address. extract sender address from the end of msg.data | function msgSender() internal view virtual override returns (address ret) {
if (msg.data.length >= 24 && isTrustedForwarder(msg.sender)) {
assembly {
ret := shr(96, calldataload(sub(calldatasize(), 20)))
}
return msg.sender;
}
}
| 13,076,883 | [
1,
861,
333,
1634,
732,
5055,
716,
326,
5793,
353,
279,
13179,
364,
20099,
16,
1427,
732,
10267,
716,
326,
1142,
1731,
434,
1234,
18,
892,
854,
326,
13808,
5793,
1758,
18,
2608,
5793,
1758,
628,
326,
679,
434,
1234,
18,
892,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1234,
12021,
1435,
2713,
1476,
5024,
3849,
1135,
261,
2867,
325,
13,
288,
203,
3639,
309,
261,
3576,
18,
892,
18,
2469,
1545,
4248,
597,
353,
16950,
30839,
12,
3576,
18,
15330,
3719,
288,
203,
5411,
19931,
288,
203,
773... |
pragma solidity >=0.8.9 <0.9.0;
//SPDX-License-Identifier: MIT
import "../node_modules/@openzeppelin/contracts/interfaces/IERC20Metadata.sol";
import "../node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "../node_modules/@openzeppelin/contracts/access/Ownable.sol";
import "./ISwapper.sol";
import ".... | amountBurnt[tokenAddress][poolIndex][userAddress] => amount burnt by a specific user for a specified pool | mapping(address => mapping(uint256 => mapping(address => uint256))) public amountBurnt;
| 12,569,944 | [
1,
8949,
38,
321,
88,
63,
2316,
1887,
6362,
6011,
1016,
6362,
1355,
1887,
65,
282,
516,
3844,
18305,
88,
635,
279,
2923,
729,
364,
279,
1269,
2845,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2874,
12,
2867,
516,
2874,
12,
11890,
5034,
516,
2874,
12,
2867,
516,
2254,
5034,
20349,
1071,
3844,
38,
321,
88,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/4/0x3f3c3A2AF4d27Ee5cbF6c91ea734Fb5BDD571764/sources/test.sol | _mintBatch(msg.sender, [1,2,3,4],[1,1,1,1],""); | contract NFT is ERC1155 {
using SafeMath for uint256;
_mint(msg.sender, 1,1,"");
_mint(msg.sender, 2,1,"");
_mint(msg.sender, 3,1,"");
_mint(msg.sender, 4,1,"");
_mint(msg.sender, 5,1,"");
_mint(msg.sender, 6,1,"");
_mint(msg.sender, 7,1,"");
... | 12,276,632 | [
1,
67,
81,
474,
4497,
12,
3576,
18,
15330,
16,
306,
21,
16,
22,
16,
23,
16,
24,
6487,
63,
21,
16,
21,
16,
21,
16,
21,
6487,
3660,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
6835,
423,
4464,
353,
4232,
39,
2499,
2539,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
7010,
377,
203,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
404,
16,
21,
16,
3660,
1769,
203,
3639,
389,
81,
474,
12,
3... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.7.6;
pragma abicoder v2;
import "./interfaces/IMetadataPointer.sol";
/**
* @notice The Gitcoin GrantRegistry contract keeps track of all grants that have been created.
* It is designed to be a singleton, i.e. there is only one instance of a GrantRegistry ... | timestamp the grant data was last updated in this registry
| uint48 lastUpdated; | 5,461,786 | [
1,
5508,
326,
7936,
501,
1703,
1142,
3526,
316,
333,
4023,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
8875,
1142,
7381,
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.6.0;
/**
* @title OrderedSet
* @dev Data structure. It has the properties of a mapping for addresses, but members are ordered
* and can be enumerated. Items can be inserted only at the head or the tail, but can be removed
* from anywhere. Append, prepend, remove and contains are O(1). Length an... | * @dev Insert an item as the new tail./ | function append(Set storage set, address item)
internal
{
_insert(
set,
tail(set),
item,
address(0)
);
}
| 1,027,536 | [
1,
4600,
392,
761,
487,
326,
394,
5798,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
714,
12,
694,
2502,
444,
16,
1758,
761,
13,
203,
3639,
2713,
203,
565,
288,
203,
3639,
389,
6387,
12,
203,
5411,
444,
16,
203,
5411,
5798,
12,
542,
3631,
203,
5411,
761,
16,
203,
5411,
1758,
12,
20,
13,
203,
3639,
... |
./full_match/1/0x85Ff72ef23C559881589Daa5C8Ed9698124eDE72/sources/lib/seaport-types/src/helpers/PointerLibraries.sol | @dev Reads the bytes7 at `rdPtr` in returndata. | function readBytes7(
ReturndataPointer rdPtr
) internal pure returns (bytes7 value) {
assembly ("memory-safe") {
returndatacopy(0, rdPtr, _OneWord)
value := mload(0)
}
}
| 8,451,816 | [
1,
7483,
326,
1731,
27,
622,
1375,
13623,
5263,
68,
316,
327,
892,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25825,
27,
12,
203,
3639,
2000,
892,
4926,
9437,
5263,
203,
565,
262,
2713,
16618,
1135,
261,
3890,
27,
460,
13,
288,
203,
3639,
19931,
7566,
7858,
17,
4626,
7923,
288,
203,
5411,
327,
892,
3530,
12,
20,
16,
9437,
526... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "hardhat/console.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable... | * Collecting profits */ Operators can call this to account all the profit that has accumulated to all the creditors and beneficiaries of the IV. @param minBaseProfit the minimum profit that should be accounted. Withdraws native interests as baseAsset and collects FARM profit accounting for baseAsset invest the baseAsse... | function collectProfitAndDistribute(uint256 minBaseProfit) external virtual opsPriviledged {
uint256 baseProfit = _collectProfitAsBaseAsset();
require(baseProfit >= minBaseProfit, "IVSABU: profit did not achieve minBaseProfit");
emit OpsCollectProfit(baseProfit);
_accountProfit(baseP... | 1,475,704 | [
1,
10808,
310,
9214,
1282,
342,
7692,
3062,
848,
745,
333,
358,
2236,
777,
326,
450,
7216,
716,
711,
24893,
358,
777,
326,
12896,
1383,
471,
27641,
74,
14463,
5646,
434,
326,
21602,
18,
225,
1131,
2171,
626,
7216,
326,
5224,
450,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3274,
626,
7216,
1876,
1669,
887,
12,
11890,
5034,
1131,
2171,
626,
7216,
13,
3903,
5024,
6727,
15475,
1411,
2423,
288,
203,
3639,
2254,
5034,
1026,
626,
7216,
273,
389,
14676,
626,
7216,
1463,
2171,
6672,
5621,
203,
3639... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
import "./IlluviumPoolBase.sol";
/**
* @title Illuvium Core Pool
*
* @notice Core pools represent permanent pools like ILV or ILV/ETH Pair pool,
* core pools allow staking for arbitrary periods of time up to 1 year
*
* @dev See IlluviumPoolBase for m... | @dev sILV token address is used to create ILV core pool(s) | address public immutable silv;
| 898,406 | [
1,
87,
2627,
58,
1147,
1758,
353,
1399,
358,
752,
467,
48,
58,
2922,
2845,
12,
87,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
1071,
11732,
17714,
90,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x2132110A63c623EAcA0A888fFe9580135a758355/sources/Sprial2.sol | addresses limits status flags | contract Sprial2 is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable router;
address public immutable uniswapV2Pair;
address private devWallet;
address private marketingWallet;
uint256 private maxBuyAmount;
uint256 private maxSellAmount;
uint256 pri... | 2,875,193 | [
1,
13277,
8181,
1267,
2943,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5878,
566,
287,
22,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
4633,
31,
203,
565,
1758,
1071,
11... |
pragma solidity >=0.4.22 <0.7.0;
/**
******************************************************************
*
* ██████████████████
* ██ ██
* ██ ██████████████████ ██
* ██ ██████████████████████ ██
* ██ █████████████████... | * @title DoNotSendFundsHere @dev This contract is a stub to recover mainnet funds sent to the Prysmatic Labs testnet address. The testnet contract is deployed on Goerli, not on Ethereum's main network. Do not send funds here! If you sent funds here by mistake, please email contact at prysmaticlabs.com with proof that y... | contract DoNotSendFundsHere {
address payable public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(
msg.sender == owner,
"Sender not authorized."
);
_;
}
function changeOwner(address payable ... | 1,730,305 | [
1,
3244,
1248,
3826,
42,
19156,
26715,
225,
1220,
6835,
353,
279,
7168,
358,
5910,
2774,
2758,
284,
19156,
3271,
358,
326,
453,
1176,
4808,
2126,
511,
5113,
1842,
2758,
1758,
18,
1021,
1842,
2758,
6835,
353,
19357,
603,
4220,
264,
549... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2256,
1248,
3826,
42,
19156,
26715,
288,
203,
565,
1758,
8843,
429,
1071,
3410,
31,
203,
203,
203,
565,
3885,
1435,
1071,
288,
203,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
565,
289,
203,
377,
203,
565,
9606,
1338,
5541,... |
./partial_match/42/0x31A327c3827FE05e97a8DBb4F2d756E57371812e/sources/assignmentToken.sol | TODO: specify `MAXSUPPLY`, declare `minter` and `supply` TODO: specify event to be emitted on transfer TODO: specify event to be emitted on approval TODO: create mapping for balances TODO: create mapping for allowances | contract assignmentToken {
uint256 constant MAXSUPPLY= 1000000;
uint256 public supply = 50000;
address public minter;
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
even... | 8,855,244 | [
1,
6241,
30,
4800,
1375,
6694,
13272,
23893,
9191,
14196,
1375,
1154,
387,
68,
471,
1375,
2859,
1283,
68,
2660,
30,
4800,
871,
358,
506,
17826,
603,
7412,
2660,
30,
4800,
871,
358,
506,
17826,
603,
23556,
2660,
30,
752,
2874,
364,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
6661,
1345,
288,
203,
565,
2254,
5034,
5381,
4552,
13272,
23893,
33,
15088,
31,
203,
565,
2254,
5034,
1071,
14467,
273,
1381,
2787,
31,
203,
565,
1758,
1071,
1131,
387,
31,
203,
203,
377,
203,
565,
871,
12279,
12,
2867,
88... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "../../common/implementation/FixedPoint.sol";
// Simple contract used to withdraw liquidations using a DSProxy from legacy contracts (1.2.2 and below).
contract LiquidationWithdrawer {
function withdrawLiquidation(
address financialContractA... | * @notice Adds an `Signed` to an unscaled int, reverting on overflow. @param a a FixedPoint.Signed. @param b an int256. @return the sum of `a` and `b`./ | function add(Signed memory a, int256 b) internal pure returns (Signed memory) {
return add(a, fromUnscaledInt(b));
}
| 98,903 | [
1,
3655,
392,
1375,
12294,
68,
358,
392,
16804,
12825,
509,
16,
15226,
310,
603,
9391,
18,
225,
279,
279,
15038,
2148,
18,
12294,
18,
225,
324,
392,
509,
5034,
18,
327,
326,
2142,
434,
1375,
69,
68,
471,
1375,
70,
8338,
19,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12294,
3778,
279,
16,
509,
5034,
324,
13,
2713,
16618,
1135,
261,
12294,
3778,
13,
288,
203,
3639,
327,
527,
12,
69,
16,
628,
984,
20665,
1702,
12,
70,
10019,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-... |
./full_match/5/0x99B879CF978ed6035bab32fded704186302a6A25/sources/project_/contracts/DevonRex.sol | @TODO: complete param docs @dev Verifies sender's signature | function _verifySignature(
uint8 v,
bytes32 r,
bytes32 s,
address _from,
address _to,
uint256 _deadline
) internal view {
uint256 chainId;
assembly {
chainId := chainId
}
bytes32 eip712DomainHash = keccak256(
abi.encode(
... | 1,921,198 | [
1,
36,
6241,
30,
3912,
579,
3270,
225,
6160,
5032,
5793,
1807,
3372,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
8705,
5374,
12,
203,
1377,
2254,
28,
331,
16,
7010,
1377,
1731,
1578,
436,
16,
7010,
1377,
1731,
1578,
272,
16,
203,
1377,
1758,
389,
2080,
16,
7010,
1377,
1758,
389,
869,
16,
7010,
1377,
2254,
5034,
389,
22097,
... |
./partial_match/42220/0x6023fF93A3b37791a94B15D6AEaD488933b01Db3/sources/C/Users/guill/github/witnet/witnet-solidity-bridge/flattened/WitnetRandomness/FlattenedWitnetRandomness.sol | File: contracts\patterns\Initializable.sol | interface Initializable {
function initialize(bytes calldata) external;
}
}
| 3,500,416 | [
1,
812,
30,
20092,
64,
13317,
64,
4435,
6934,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10188,
6934,
288,
203,
565,
445,
4046,
12,
3890,
745,
892,
13,
3903,
31,
203,
97,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// File: contracts/handlers/maker/IDSProxy.sol
pragma solidity ^0.6.0;
interface IDSProxy {
function execute(address _target, bytes calldata _data)
external
payable
returns (bytes32 response);
function owner() external view returns (address);
function setAuthority(address authori... | if amount == uint256(-1) return balance of Proxy selector of "safeLockGem(address,address,uint256,uint256,bool,address)" | ) external payable {
IDSProxy proxy = IDSProxy(_getProxy(address(this)));
address owner = _getProxy(_getSender());
address token = IMakerGemJoin(gemJoin).gem();
wad = _getBalance(token, wad);
IERC20(token).safeApprove(address(proxy), wad);
try
proxy.execut... | 571,138 | [
1,
430,
3844,
422,
2254,
5034,
19236,
21,
13,
327,
11013,
434,
7659,
3451,
434,
315,
4626,
2531,
43,
351,
12,
2867,
16,
2867,
16,
11890,
5034,
16,
11890,
5034,
16,
6430,
16,
2867,
2225,
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,
262,
3903,
8843,
429,
288,
203,
3639,
1599,
55,
3886,
2889,
273,
1599,
55,
3886,
24899,
588,
3886,
12,
2867,
12,
2211,
3719,
1769,
203,
3639,
1758,
3410,
273,
389,
588,
3886,
24899,
588,
12021,
10663,
203,
3639,
1758,
1147,
... |
// SPDX-License-Identifier: CC0-1.0
pragma solidity >=0.6.0 <0.8.0;
import "./StandardToken.sol";
/**
* @notice ERC20Token for test scripts, can be minted by anyone.
*/
contract TestToken is StandardToken {
constructor() { }
/**
* @notice any caller can mint any `_amount`
* @param _amount h... | * @notice any caller can mint any `_amount` @param _amount how much to be minted/ | function mint(uint256 _amount) public {
mint(msg.sender, _amount);
}
| 2,473,297 | [
1,
2273,
4894,
848,
312,
474,
1281,
1375,
67,
8949,
68,
225,
389,
8949,
3661,
9816,
358,
506,
312,
474,
329,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
11890,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
312,
474,
12,
3576,
18,
15330,
16,
389,
8949,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.23;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
... | ------------------------------------------------------------------------ Transfer the balance from token owner's account to `to` account - Owner's account must have sufficient balance to transfer - 0 value transfers are allowed ------------------------------------------------------------------------ | function transfer(address to, uint tokens) public returns (bool success) {
require(!frozenAccount[msg.sender]);
require(!frozenAccount[to]);
canOf[msg.sender] = myuseOf(msg.sender);
canOf[msg.sender] = canOf[msg.sender].sub(tokens);
balances[msg.sender] = balances[msg.sender]... | 1,758,876 | [
1,
29461,
12279,
326,
11013,
628,
1147,
3410,
1807,
2236,
358,
1375,
869,
68,
2236,
300,
16837,
1807,
2236,
1297,
1240,
18662,
11013,
358,
7412,
300,
374,
460,
29375,
854,
2935,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
358,
16,
2254,
2430,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12,
5,
28138,
3032,
63,
3576,
18,
15330,
19226,
203,
3639,
2583,
12,
5,
28138,
3032,
63,
869,
19226,
203,
3639,
848,
951,... |
pragma solidity ^0.5.0;
import "lib/Addresses.sol";
/**
* This is a manual set of tests, but I would suggest using Truffle if you
* develop outside of remix
*
* WARNING: This is extremely gas heavy and should not be published to the
* blockchain!
*/
contract AddressesTests {
using Addresses for ... | * This is a manual set of tests, but I would suggest using Truffle if you develop outside of remix WARNING: This is extremely gas heavy and should not be published to the blockchain!/ | contract AddressesTests {
using Addresses for address;
function testIsContract() public {
assert(address(this).isContract());
assert(!msg.sender.isContract());
}
}
| 15,790,914 | [
1,
2503,
353,
279,
11297,
444,
434,
7434,
16,
1496,
467,
4102,
19816,
1450,
840,
10148,
309,
1846,
17196,
8220,
434,
849,
697,
9744,
30,
1220,
353,
23755,
2357,
16189,
3904,
23935,
471,
1410,
486,
506,
9487,
358,
326,
16766,
5,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
23443,
14650,
288,
203,
565,
1450,
23443,
364,
1758,
31,
203,
203,
565,
445,
1842,
2520,
8924,
1435,
1071,
288,
203,
3639,
1815,
12,
2867,
12,
2211,
2934,
291,
8924,
10663,
203,
3639,
1815,
12,
5,
3576,
18,
15330,
18,
291,... |
./full_match/137/0xFe06df139FD9291a218c468a2e318e84b5cF4328/sources/IFOV.sol | * @notice External view function to see user allocations for both pools @param _user: user address @param _pids[]: array of pids @return/ | function viewUserAllocationPools(address _user, uint8[] calldata _pids)
external
view
override
returns (uint256[] memory)
{
uint256[] memory allocationPools = new uint256[](_pids.length);
for (uint8 i = 0; i < _pids.length; i++) {
allocationPools[i] = ... | 3,755,880 | [
1,
6841,
1476,
445,
358,
2621,
729,
23804,
364,
3937,
16000,
225,
389,
1355,
30,
729,
1758,
225,
389,
84,
2232,
8526,
30,
526,
434,
20726,
327,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1476,
1299,
17353,
16639,
12,
2867,
389,
1355,
16,
2254,
28,
8526,
745,
892,
389,
84,
2232,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
8526,
3778,
13,
203,
565,
288,
203,
... |
./full_match/82/0x45099f895561d6EE4f41aa2D567187AC7aAa6c29/sources/contracts/access/Ownable.sol | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | abstract contract Ownable is Context {
address public _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() {
_transferOwnership(_msgSender());
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtua... | 7,094,013 | [
1,
8924,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
2525,
805,
16,
326,
3410,
2236,
903,
506,
326,
1245,
716,
5993,
383... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
14223,
6914,
353,
1772,
288,
203,
225,
1758,
1071,
389,
8443,
31,
203,
203,
225,
871,
14223,
9646,
5310,
1429,
4193,
12,
203,
565,
1758,
8808,
2416,
5541,
16,
203,
565,
1758,
8808,
394,
5541,
203,
225,
11272,
203,
20... |
./full_match/41/0x372Ba972B7337773d6040953De8aeEa72181Cb7d/sources/contracts/protocol/lendingpool/LendingPoolCollateralManager.sol | * @dev Function to liquidate a position if its Health Factor drops below 1 - The caller (liquidator) covers `debtToCover` amount of debt of the user getting liquidated, and receives a proportionally amount of the `collateralAsset` plus a bonus to cover market risk @param collateralAsset The address of the underlying ... | function liquidationCall(
address collateralAsset,
address debtAsset,
address user,
uint256 debtToCover,
bool receiveViToken
) external override returns (uint256, string memory) {
DataTypes.ReserveData storage collateralReserve = _reserves[collateralAsset];
DataTypes.ReserveData storage ... | 16,370,151 | [
1,
2083,
358,
4501,
26595,
340,
279,
1754,
309,
2097,
11745,
26400,
29535,
5712,
404,
300,
1021,
4894,
261,
549,
26595,
639,
13,
25559,
1375,
323,
23602,
774,
8084,
68,
3844,
434,
18202,
88,
434,
326,
729,
8742,
4501,
26595,
690,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
4501,
26595,
367,
1477,
12,
203,
565,
1758,
4508,
2045,
287,
6672,
16,
203,
565,
1758,
18202,
88,
6672,
16,
203,
565,
1758,
729,
16,
203,
565,
2254,
5034,
18202,
88,
774,
8084,
16,
203,
565,
1426,
6798,
58,
77,
1345,
... |
pragma solidity ^0.4.24;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spen... | * @dev low level token purchase DO NOT OVERRIDE @param beneficiary Address performing the token purchase/ calculate token amount to be created bonus tokens accrual and ensure token balance is enough for accrued tokens release update state | function buyTokens(address beneficiary) public payable {
uint256 weiAmount = msg.value;
_preValidatePurchase(beneficiary, weiAmount);
uint256 tokens = _getTokenAmount(weiAmount);
_accrueBonusTokens(beneficiary, tokens, weiAmount);
_weiRaised = _weiRaised.add(weiAmount);
_processPurchase(be... | 12,909,233 | [
1,
821,
1801,
1147,
23701,
5467,
4269,
22577,
25382,
225,
27641,
74,
14463,
814,
5267,
14928,
326,
1147,
23701,
19,
4604,
1147,
3844,
358,
506,
2522,
324,
22889,
2430,
4078,
86,
1462,
471,
3387,
1147,
11013,
353,
7304,
364,
4078,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
30143,
5157,
12,
2867,
27641,
74,
14463,
814,
13,
1071,
8843,
429,
288,
203,
565,
2254,
5034,
732,
77,
6275,
273,
1234,
18,
1132,
31,
203,
565,
389,
1484,
4270,
23164,
12,
70,
4009,
74,
14463,
814,
16,
732,
77,
6275,
... |
./full_match/1/0x83f1C175cECC31E71283a87A2878B1040118ff38/sources/browser/BBRPool.sol | Update dev address by the previous dev. | function setEndBlock(uint256 blockNumber) public onlyOwner {
endBlock = blockNumber;
}
| 3,028,114 | [
1,
1891,
4461,
1758,
635,
326,
2416,
4461,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19743,
1768,
12,
11890,
5034,
1203,
1854,
13,
1071,
1338,
5541,
288,
203,
3639,
679,
1768,
273,
1203,
1854,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | * @dev Transfers eligible payout funds to insuree/ | function pay(address insuranceOwnerAddress, uint256 amount)
external
payable
requireIsOperational
requireAuthorizedCaller
{
require(
availableWithdrawals[insuranceOwnerAddress] > 0,
"Nothing to withdraw."
);
require(
am... | 976,168 | [
1,
1429,
18881,
21351,
293,
2012,
284,
19156,
358,
316,
2055,
73,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
12,
2867,
2763,
295,
1359,
5541,
1887,
16,
2254,
5034,
3844,
13,
203,
3639,
3903,
203,
3639,
8843,
429,
203,
3639,
2583,
2520,
2988,
287,
203,
3639,
2583,
15341,
11095,
203,
565,
288,
203,
3639,
2583,
12,
203,
541... |
./full_match/1/0x4A7AAce1B48905560Fd8d33D536461bE6fF00F6d/sources/contracts/XRP2_Staking.sol | Withdraw reward. EMERGENCY ONLY. | function emergencyRewardWithdraw(uint256 _amount) public onlyOwner {
require(_amount < xrp2.balanceOf(address(this)), 'not enough token');
xrp2.safeTransfer(address(msg.sender), _amount);
}
| 16,468,922 | [
1,
1190,
9446,
19890,
18,
7141,
654,
16652,
16068,
20747,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
801,
24530,
17631,
1060,
1190,
9446,
12,
11890,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
8949,
411,
619,
13832,
22,
18,
12296,
951,
12,
2867,
12,
2211,
13,
3631,
296,
902,
7304,
1147,
8284,
20... |
//SPDX-License-Identifier: MIT
// solhint-disable-next-line compiler-version
pragma solidity 0.8.2;
import "../../../asset/ERC1155ERC721.sol";
import "@openzeppelin/contracts-0.8/utils/Address.sol";
// solhint-disable-next-line no-empty-blocks
contract PolygonAssetV2 is ERC1155ERC721 {
using Address for address;
... | solhint-disable-next-line no-empty-blocks | contract PolygonAssetV2 is ERC1155ERC721 {
using Address for address;
address private _childChainManager;
event ChainExit(address indexed to, uint256[] tokenIds, uint256[] amounts, bytes data);
function initialize(
address trustedForwarder,
address admin,
address bouncerAdmin,... | 12,922,564 | [
1,
18281,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
5531,
17,
7996,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12681,
6672,
58,
22,
353,
4232,
39,
2499,
2539,
654,
39,
27,
5340,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
1758,
3238,
389,
3624,
3893,
1318,
31,
203,
203,
565,
871,
7824,
6767,
12,
2867,
8808,
358,
16,
... |
pragma solidity ^0.4.24;
/**@dev Based on Random Number Generator from Winem project */
contract Random {
uint32 state;
uint32 MAX = 0xffffffff;
uint32 current;
constructor(uint32 seed) public {
state = seed;
}
/**@dev Returns random integer number from the range [min, max], i... | *@dev Returns random integer number from the range [min, max], including borders */ | function getInt(uint32 min, uint32 max) public returns (uint32) {
getNextNumber();
current = uint32(min + (uint256(state) * (max + 1 - min) / MAX));
return current;
}
| 12,676,599 | [
1,
1356,
2744,
3571,
1300,
628,
326,
1048,
306,
1154,
16,
943,
6487,
6508,
24028,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
8145,
12,
11890,
1578,
1131,
16,
2254,
1578,
943,
13,
1071,
1135,
261,
11890,
1578,
13,
288,
203,
3639,
6927,
1854,
5621,
540,
203,
3639,
783,
273,
2254,
1578,
12,
1154,
397,
261,
11890,
5034,
12,
2019,
13,
380,
261,
... |
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*
** Code Modified by : TokenMagic
** Change Log:
*** Solidity version upgraded fr... | * Move selected pre-sale participants fund to the crowdsale contract./ | function participateCrowdsaleSelected(address[] addr) public onlyOwner {
for(uint i = 0; i < addr.length; i++ ){
participateCrowdsaleInvestor(investors[i]);
}
}
| 7,785,971 | [
1,
7607,
3170,
675,
17,
87,
5349,
22346,
284,
1074,
358,
326,
276,
492,
2377,
5349,
6835,
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,
445,
30891,
340,
39,
492,
2377,
5349,
7416,
12,
2867,
8526,
3091,
13,
1071,
1338,
5541,
288,
203,
565,
364,
12,
11890,
277,
273,
374,
31,
277,
411,
3091,
18,
2469,
31,
277,
9904,
262,
95,
203,
1377,
30891,
340,
39,
492,
... |
./full_match/42161/0x68bfbe1001568da0FeD281a1C99A16794bDa2754/sources/contracts/TalentirMarketplaceV1.sol | just to be safe - don't refund more than what was sent
| require(msg.value >= ethQuantity, "Couldn't refund"); | 16,301,211 | [
1,
3732,
358,
506,
4183,
300,
2727,
1404,
16255,
1898,
2353,
4121,
1703,
3271,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2583,
12,
3576,
18,
1132,
1545,
13750,
12035,
16,
315,
16342,
1404,
16255,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: No License
pragma solidity ^0.8.0;
import "./ERC20/IERC20.sol";
import "./ERC20/IERC20Permit.sol";
import "./ERC20/SafeERC20.sol";
import "./interfaces/IRERC20.sol";
import "./interfaces/IRulerCore.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IRulerZap.sol";
import "./util... | * @notice Deposit collateral `_col` to receive paired token `_paired` and rrTokens - deposits collateral to receive rcTokens and rrTokens - rcTokens are swapped into paired token through router - paired token and rrTokens are sent to sender/ | function depositAndSwapToPaired(
address _col,
address _paired,
uint48 _expiry,
uint256 _mintRatio,
uint256 _colAmt,
uint256 _minPairedOut,
address[] calldata _path,
uint256 _deadline
) external override {
_depositAndSwapToPaired(
... | 1,517,810 | [
1,
758,
1724,
4508,
2045,
287,
1375,
67,
1293,
68,
358,
6798,
18066,
1147,
1375,
67,
24197,
68,
471,
8354,
5157,
225,
300,
443,
917,
1282,
4508,
2045,
287,
358,
6798,
4519,
5157,
471,
8354,
5157,
225,
300,
4519,
5157,
854,
7720,
184... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
443,
1724,
1876,
12521,
774,
16507,
2921,
12,
203,
3639,
1758,
389,
1293,
16,
7010,
3639,
1758,
389,
24197,
16,
203,
3639,
2254,
8875,
389,
22409,
16,
203,
3639,
2254,
5034,
389,
81,
474,
8541,
16,
203,
3639,
2254,
5034... |
pragma solidity ^0.5.1;
contract MyContract {
mapping(address => uint256) public balances;
address payable wallet; // Implicitly declaring that this address can accept Ether
constructor(address payable _wallet) public {
wallet = _wallet;
}
// Function that accepts ether - Buy Token and se... | Implicitly declaring that this address can accept Ether
| address payable wallet; | 1,774,752 | [
1,
15787,
715,
20845,
716,
333,
1758,
848,
2791,
512,
1136,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
8843,
429,
9230,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
/**
* v0.4.21+commit.dfe3193c
*/
contract AIC {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals =... | Set the symbol for display purposes
| symbol = "AIC"; | 14,579,017 | [
1,
694,
326,
3273,
364,
2562,
13694,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3273,
273,
315,
37,
2871,
14432,
27573,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x37aca97A99d1B4260a5E9821d0Ef14947fB68970/sources/src/Wrap.sol | @dev Internal function to calculate fees by amount and BPS. 10,000 is 100% | function calculateFee(
uint256 amount,
uint16 feeBPS
) internal pure returns (uint256) {
return (amount * feeBPS) / 10000;
}
| 2,954,444 | [
1,
3061,
445,
358,
4604,
1656,
281,
635,
3844,
471,
605,
5857,
18,
1728,
16,
3784,
353,
2130,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4604,
14667,
12,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
2313,
14036,
38,
5857,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
261,
8949,
380,
14036,
38,
5857,
13,
342,
12619,
31,... |
// SPDX-License-Identifier: GNU-GPL v3.0 or later
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/IOutputReceiver.sol";
import "../interfaces/IRevest.sol";
import "../interfaces/IAddressRegistry.sol";
import "../interfaces/IRewardsHandler.sol";
import "../interfaces/... | TODO: ADD SETTERS FOR THESE | contract Staking is Ownable, IOutputReceiver, ERC165, IAddressLock {
using SafeERC20 for IERC20;
address private revestAddress;
address public lpAddress;
address public rewardsHandlerAddress;
address public addressRegistry;
address public oldStakingContract;
uint public previousStakingIDCu... | 5,800,517 | [
1,
6241,
30,
11689,
3174,
1470,
11367,
12108,
12786,
1090,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
934,
6159,
353,
14223,
6914,
16,
467,
1447,
12952,
16,
4232,
39,
28275,
16,
467,
1887,
2531,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
1758,
3238,
5588,
395,
1887,
31,
203,
56... |
./full_match/5/0xD5d0d51EfB41495fE078Ab0CFbC728027F7a19f6/sources/contracts/Authenticatable.sol | * **************************************************************** AUTHENTICATION STORAGE / @notice Returns the address of the owner that can manage Zayda collection on OpenSea. @notice Returns the address of the Gnosis Safe Multisig contract that can manage Zayda's contract.* ******************************************... | modifier onlyOwner() {
if (msg.sender != owner) revert Unauthorized();
_;
}
| 11,611,400 | [
1,
25114,
2689,
2347,
15553,
342,
225,
2860,
326,
1758,
434,
326,
3410,
716,
848,
10680,
2285,
528,
2414,
1849,
603,
3502,
1761,
69,
18,
225,
2860,
326,
1758,
434,
326,
611,
18050,
291,
14060,
7778,
291,
360,
6835,
716,
848,
10680,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
5541,
1435,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
3410,
13,
15226,
15799,
5621,
203,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity >=0.4.22 <0.9.0;
contract SupplyChain {
//Smart Contract owner will be the person who deploys the contract only he can authorize various roles like retailer, Manufacturer,etc
address public Owner;
//note this constructor will be called when smart contract will be deployed on blockchain
... | Raw material supplier countuint256 public rmsCtr = 0;Manufacturer count | uint256 public manCtr = 0;
| 930,253 | [
1,
4809,
9390,
17402,
1056,
11890,
5034,
1071,
27806,
39,
313,
273,
374,
31,
24419,
1056,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
3161,
39,
313,
273,
374,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.24;
contract MonkeyEvents {
// fired whenever a player registers a name
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affiliateAddres... | * @dev prepares compression data and fires event for buy or reload tx's/ | function endTx(uint256 _pID, uint256 _eth, uint256 _keys, LDdatasets.EventReturns memory _eventData_)
private
{
_eventData_.compressedData = _eventData_.compressedData + (now * 1000000000000000000);
_eventData_.compressedIDs = _eventData_.compressedIDs + _pID;
emit MonkeyEvents.onEn... | 12,032,769 | [
1,
19109,
4807,
9154,
501,
471,
29564,
871,
364,
30143,
578,
7749,
2229,
1807,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
679,
4188,
12,
11890,
5034,
389,
84,
734,
16,
2254,
5034,
389,
546,
16,
2254,
5034,
389,
2452,
16,
28083,
21125,
18,
1133,
1356,
3778,
389,
2575,
751,
67,
13,
203,
565,
3238,
203,
565,
288,
203,
3639,
389,
2575,
751,
... |
pragma solidity 0.4.18;
contract CrowdsaleParameters {
// Vesting time stamps:
// 1534672800 = August 19, 2018. 180 days from February 20, 2018. 10:00:00 GMT
// 1526896800 = May 21, 2018. 90 days from February 20, 2018. 10:00:00 GMT
uint32 internal vestingTime90Days = 1526896800;
uint32 in... | Feb-20-2018 00:00:00 GMT
| uint256 internal constant generalSaleEndDate = 1519120800; | 2,551,311 | [
1,
2954,
70,
17,
3462,
17,
21849,
9631,
30,
713,
30,
713,
21706,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
2713,
5381,
7470,
30746,
24640,
273,
4711,
3657,
2138,
6840,
713,
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,
... |
./full_match/1/0xf607014406bc3Fa7aAB224a85A0318b4556e9C28/sources/browser/CryptographIndexLogicV1.sol | @notice Insert a cryptograph in the array and return the new index position @dev Only callable by Factory @param _cryptograph The address of the cryptograph to insert in the index @return (uint) The new index position in the cryptograph arrayUpdate the ERC2665 | function insertACryptograph(address _cryptograph) external restrictedToFactory() returns(uint){
ERC2665LogicV1(ERC2665Lieutenant).MintACryptograph(_cryptograph);
cryptographs.push(_cryptograph);
}
| 3,151,768 | [
1,
4600,
279,
13231,
8829,
316,
326,
526,
471,
327,
326,
394,
770,
1754,
225,
5098,
4140,
635,
7822,
225,
389,
22784,
8829,
1021,
1758,
434,
326,
13231,
8829,
358,
2243,
316,
326,
770,
327,
261,
11890,
13,
1021,
394,
770,
1754,
316,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2243,
2226,
2015,
8829,
12,
2867,
389,
22784,
8829,
13,
3903,
15693,
774,
1733,
1435,
1135,
12,
11890,
15329,
203,
203,
3639,
4232,
39,
5558,
9222,
20556,
58,
21,
12,
654,
39,
5558,
9222,
48,
1385,
322,
6602,
2934,
49,
... |
./full_match/42/0xCF489321d7940a93FfAA6922ea52202e3f8891cd/sources/test.sol | set to 1 * 10 ** 18
| learnprice = _setlearnprice; | 16,225,189 | [
1,
542,
358,
404,
225,
1728,
225,
6549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
16094,
8694,
273,
389,
542,
21346,
8694,
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,
... |
./full_match/77/0xbB642E83699392B0DfdfCd5cF5D27fb1EC33A6D1/sources/contracts/Stays.sol | Throws an error if verification of a voucher is fails | function _verifyCheckInVoucher(CheckInVoucher memory voucher) internal view returns (address) {
bytes32 voucherHash = _hashTypedDataV4(
keccak256(
abi.encode(
keccak256("Voucher(address from,address to,uint256 tokenId)"),
voucher.from,
voucher.to,
voucher.toke... | 5,049,009 | [
1,
21845,
392,
555,
309,
11805,
434,
279,
331,
14329,
353,
6684,
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,
225,
445,
389,
8705,
1564,
382,
19585,
12,
1564,
382,
19585,
3778,
331,
14329,
13,
2713,
1476,
1135,
261,
2867,
13,
288,
203,
565,
1731,
1578,
331,
14329,
2310,
273,
389,
2816,
11985,
751,
58,
24,
12,
203,
1377,
417,
24410,
581,
... |
pragma solidity ^0.5.0;
/** EthPM */
//import Ownable contract from openzeppelin-solidity for basic authorization control
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
//import SafeMath library from openzeppelin-solidity for integer overflows and underflow
import "openzeppelin-solidity/contracts/math... | * @dev return products info @param _productNum product number/ | function getProductInfo(uint _productNum) public view returns(string memory, uint, uint, uint, uint, bool){
return (
StoreProducts[_productNum].name,
StoreProducts[_productNum].storeNum,
StoreProducts[_productNum].productNum,
StoreProducts[_productNum].price,
StorePro... | 1,008,317 | [
1,
2463,
10406,
1123,
225,
389,
5896,
2578,
3017,
1300,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15880,
966,
12,
11890,
389,
5896,
2578,
13,
1071,
1476,
1135,
12,
1080,
3778,
16,
2254,
16,
2254,
16,
2254,
16,
2254,
16,
1426,
15329,
203,
3639,
327,
261,
203,
3639,
4994,
13344,
63,
67,
5896,
2578,
8009,
529,
16,
20... |
// File: zos-lib/contracts/Initializable.sol
pragma solidity >=0.4.24 <0.6.0;
/**
* @title Initializable
*
* @dev Helper contract to support initializer functions. To use it, replace
* the constructor with a function that has the `initializer` modifier.
* WARNING: Unlike constructors, initializer functions must... | * @param monetaryPolicy_ The address of the monetary policy contract to use for authentication./ | function setMonetaryPolicy(address monetaryPolicy_)
external
onlyOwner
{
monetaryPolicy = monetaryPolicy_;
dollarPolicy = IDollarPolicy(monetaryPolicy_);
emit LogMonetaryPolicyUpdated(monetaryPolicy_);
}
| 400,548 | [
1,
2586,
14911,
2582,
67,
1021,
1758,
434,
326,
31198,
3329,
6835,
358,
999,
364,
5107,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
11415,
14911,
2582,
12,
2867,
31198,
2582,
67,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
31198,
2582,
273,
31198,
2582,
67,
31,
203,
3639,
302,
25442,
2582,
273,
1599,
25442,
2582,
12,
2... |
./full_match/42/0x1c3633676E7e843A80886EBeA23176cB8a40068e/sources/browser/ACOPoolStrategy.sol | * @dev Emitted when the order size factors has been changed. orderSizePenaltyFactor order size percentage ^ orderSizeDampingFactor @param oldOrderSizeMultiplierFactor Value of the previous order size multiplier factor. @param oldOrderSizeDividerFactor Value of the previous order size divider factor. @param oldOrderSiz... | ) public {
super.init();
_setUnderlyingPriceAdjustPercentage(_underlyingPriceAdjustPercentage);
_setMinOptionPricePercentage(_minOptionPricePercentage);
_setOrderSizeFactors(_orderSizeMultiplierFactor, _orderSizeDividerFactor, _orderSizeExponentialFactor);
}
| 9,592,496 | [
1,
1514,
11541,
1347,
326,
1353,
963,
14490,
711,
2118,
3550,
18,
1353,
1225,
24251,
15006,
6837,
225,
1353,
963,
11622,
3602,
1353,
1225,
40,
931,
310,
6837,
225,
1592,
2448,
1225,
23365,
6837,
1445,
434,
326,
2416,
1353,
963,
15027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
1071,
288,
203,
202,
202,
9565,
18,
2738,
5621,
203,
1082,
203,
3639,
389,
542,
14655,
6291,
5147,
10952,
16397,
24899,
9341,
6291,
5147,
10952,
16397,
1769,
203,
202,
202,
67,
542,
2930,
1895,
5147,
16397,
24899,
1154,
1... |
./full_match/4/0xdbD79a5fd475B6370AE1acfaA4301bF287568900/sources/Lottery1.sol | dynamic array of players addresses
| address[] public players; | 715,205 | [
1,
14507,
526,
434,
18115,
6138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
8526,
1071,
18115,
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,... |
./full_match/4/0xB26Fac8092a2FA52b3Db3CA415051637C3A15FA4/sources/contracts/EOC_Beta.sol | * @dev Update merkle root to reflect changes in Allowlist @param _newMerkleRoot new merkle root to reflect most recent Allowlist/ | function updateMerkleRoot(bytes32 _newMerkleRoot) public onlyOwner {
require(_newMerkleRoot != merkleRoot, "Merkle root will be unchanged!");
merkleRoot = _newMerkleRoot;
}
| 811,670 | [
1,
1891,
30235,
1365,
358,
3037,
3478,
316,
7852,
1098,
225,
389,
2704,
8478,
15609,
2375,
394,
30235,
1365,
358,
3037,
4486,
8399,
7852,
1098,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
8478,
15609,
2375,
12,
3890,
1578,
389,
2704,
8478,
15609,
2375,
13,
1071,
1338,
5541,
288,
203,
1377,
2583,
24899,
2704,
8478,
15609,
2375,
480,
30235,
2375,
16,
315,
8478,
15609,
1365,
903,
506,
14827,
4442,
1769,
... |
./full_match/3/0x758efC0c2Fd5eA15E9E92E904462559c6eC70deC/sources/a1.sol | @notice Factory for UchiToken creation. | contract UchiTokenFactory is BaseBoringBatchable {
address public uchiDAO = msg.sender;
ISushiSwapLaunch constant sushiSwapRouter = ISushiSwapLaunch(0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506);
mapping(address => uint256) public uchiList;
event DeployUchiToken(address indexed uchiToken);
event Upda... | 8,218,594 | [
1,
1733,
364,
587,
24010,
1345,
6710,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
587,
24010,
1345,
1733,
353,
3360,
38,
6053,
4497,
429,
288,
203,
565,
1758,
1071,
582,
24010,
18485,
273,
1234,
18,
15330,
31,
203,
565,
4437,
1218,
77,
12521,
9569,
5381,
272,
1218,
77,
12521,
8259,
273,
4437,
1218,
77,
... |
./full_match/4/0x6DF8EE677656b9f6da6079A5f0281Bb1C961862e/sources/_openzeppelin/contracts-upgradeable_4.4.0/governance/extensions/GovernorVotesUpgradeable.sol | * Read the voting weight from the token's built in snapshot mechanism (see {IGovernor-getVotes})./ | function getVotes(address account, uint256 blockNumber) public view virtual override returns (uint256) {
return token.getPastVotes(account, blockNumber);
}
uint256[50] private __gap;
| 729,308 | [
1,
1994,
326,
331,
17128,
3119,
628,
326,
1147,
1807,
6650,
316,
4439,
12860,
261,
5946,
288,
3047,
1643,
29561,
17,
588,
29637,
97,
2934,
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... | [
1,
1,
1,
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,
11031,
6366,
12,
2867,
2236,
16,
2254,
5034,
1203,
1854,
13,
1071,
1476,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
1147,
18,
588,
52,
689,
29637,
12,
4631,
16,
1203,
1854,
1769,
203,
565,
289,
203,
... |
./full_match/84531/0x70302d7cFfCb2a56A39DAf66DC4410fFF2B0242d/sources/contracts/lzApp/LzAppUpgradeable.sol | generic config for LayerZero user Application | function setConfig(
uint16 _version,
uint16 _chainId,
uint256 _configType,
bytes calldata _config
) external override onlyAdmin {
lzEndpoint.setConfig(_version, _chainId, _configType, _config);
}
| 14,311,251 | [
1,
13540,
642,
364,
12112,
7170,
729,
4257,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15517,
12,
203,
3639,
2254,
2313,
389,
1589,
16,
203,
3639,
2254,
2313,
389,
5639,
548,
16,
203,
3639,
2254,
5034,
389,
1425,
559,
16,
203,
3639,
1731,
745,
892,
389,
1425,
203,
565,
262,
3903,
3849,
1338,
4446,
288,
... |
./full_match/3/0xA3E23D172bd87dAF6BDCce435CA00dA6d94691D8/sources/browser/ShopContract.sol | address(this).balance += msg.value; for(uint i=0; i<products.length(); i++){ } | function buyProducts() public payable {
require(msg.value <= msg.sender.balance);
}
| 8,117,747 | [
1,
2867,
12,
2211,
2934,
12296,
1011,
1234,
18,
1132,
31,
364,
12,
11890,
277,
33,
20,
31,
277,
32,
18736,
18,
2469,
5621,
277,
27245,
95,
289,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30143,
13344,
1435,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1648,
1234,
18,
15330,
18,
12296,
1769,
203,
540,
203,
540,
203,
2398,
203,
565,
289,
203,
377,
203,
377,
203,
377,
203,
2,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the o... | @notice returns the delegatee of this contract | function delegatee() external returns (address) {
return IGovernanceToken(token).delegates(address(this));
}
| 945,236 | [
1,
6154,
326,
7152,
73,
434,
333,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
282,
445,
7152,
73,
1435,
3903,
1135,
261,
2867,
13,
288,
203,
1377,
327,
13102,
1643,
82,
1359,
1345,
12,
2316,
2934,
3771,
1332,
815,
12,
2867,
12,
2211,
10019,
203,
282,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owne... | * @dev Vote for a proposal, if the voter already voted, cancel the last vote and set a new one instead @param _proposalId id of the proposal @param _voter used in case the vote is cast for someone else @param _vote a value between 0 to and the proposal's number of choices. @param _rep how many reputation the voter woul... | function internalVote(bytes32 _proposalId, address _voter, uint _vote, uint _rep) internal returns(bool) {
require(_vote <= NUM_OF_CHOICES && _vote > 0,"0 < _vote <= 2");
if (_execute(_proposalId)) {
return true;
}
Parameters memory params = parameters[proposals[_proposa... | 1,299,333 | [
1,
19338,
364,
279,
14708,
16,
309,
326,
331,
20005,
1818,
331,
16474,
16,
3755,
326,
1142,
12501,
471,
444,
279,
394,
1245,
3560,
225,
389,
685,
8016,
548,
612,
434,
326,
14708,
225,
389,
90,
20005,
1399,
316,
648,
326,
12501,
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,
2713,
19338,
12,
3890,
1578,
389,
685,
8016,
548,
16,
1758,
389,
90,
20005,
16,
2254,
389,
25911,
16,
2254,
389,
14462,
13,
2713,
1135,
12,
6430,
13,
288,
203,
3639,
2583,
24899,
25911,
1648,
9443,
67,
3932,
67,
22213,
... |
./partial_match/1/0xc0DF2B83725296d23C0C409C0759F3955b9fCC3A/sources/DigitalaxRewards.sol | weekNumber => rewards | contract DigitalaxRewards {
using SafeMath for uint256;
MONA public rewardsToken;
DigitalaxAccessControls public accessControls;
DigialaxStaking public genesisStaking;
DigialaxStaking public parentStaking;
DigialaxStaking public lpStaking;
uint256 constant pointMultiplier = 10e18;
uin... | 15,510,960 | [
1,
10741,
1854,
516,
283,
6397,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
11678,
7053,
651,
17631,
14727,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
30215,
37,
1071,
283,
6397,
1345,
31,
203,
565,
11678,
7053,
651,
16541,
87,
1071,
2006,
16795,
31,
203,
565,
11678,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
//IERC721MultiClass interface
import "./../interfaces/IERC721TransferFees.sol";
/**
* @dev Abstract extension of ERC721TransferFees that attaches royalty fees
*/
abstract contract ERC721TransferFees is IERC721TransferFees {
//10000 means 100.00%
uint256 p... | * @dev Removes a fee/this is for the benefit of the sender so theydont have to pay gas on things that dont matterdeduct total feesremove fees from the mapTricky logic to remove an element from an array...if there are at least 2 elements in the array,find the recipientmove the last element to the deleted element | function _deallocateFee(address recipient) internal virtual {
require(_fee[recipient] != 0, "ERC721TransferFees: Recipient has no fees");
_fees -= _fee[recipient];
delete _fee[recipient];
if (_recipients.length > 1) {
for (uint i = 0; i < _recipients.length; i++) {
if(_recipients[i] == r... | 5,373,146 | [
1,
6220,
279,
14036,
19,
2211,
353,
364,
326,
27641,
7216,
434,
326,
5793,
1427,
2898,
72,
1580,
1240,
358,
8843,
16189,
603,
9198,
716,
14046,
15177,
785,
853,
2078,
1656,
281,
4479,
1656,
281,
628,
326,
852,
1070,
13055,
4058,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
323,
16247,
14667,
12,
2867,
8027,
13,
2713,
5024,
288,
203,
565,
2583,
24899,
21386,
63,
20367,
65,
480,
374,
16,
315,
654,
39,
27,
5340,
5912,
2954,
281,
30,
23550,
711,
1158,
1656,
281,
8863,
203,
565,
389,
30... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
// Info of each user.
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
//
// We do some fancy math here. Basically, any poin... | Address of LP token contract.
| address lpToken; | 5,442,795 | [
1,
1887,
434,
511,
52,
1147,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
12423,
1345,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.13;
library Math {
function max64(uint64 a, uint64 b) internal pure returns (uint64) {
return a >= b ? a : b;
}
function min64(uint64 a, uint64 b) internal pure returns (uint64) {
return a < b ? a : b;
}
function max256(uint256 a, uint256 b) internal pure returns (uint256) {
... | * @dev Adjusts all the necessary calculations in constructor/ | function APRInflationToken(uint _startDate) public {
startDate = _startDate;
lastAdjust = 0;
}
| 11,725,311 | [
1,
10952,
87,
777,
326,
4573,
20882,
316,
3885,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
432,
8025,
27040,
20611,
12,
11890,
389,
1937,
1626,
13,
1071,
288,
203,
565,
12572,
273,
389,
1937,
1626,
31,
203,
565,
1142,
10952,
273,
374,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./gelato/PokeMe.sol";
import "./CreamLoanSaver.sol";
contract CreamLoanSaverService is CreamLoanSaver, Ownable {
using EnumerableSe... | @notice submit loan protection to PokeMe crETH is not supported To work protection, caller needs to approve this contract using Collateral crToken beforehand | ) public {
bytes32 protectionId = keccak256(
abi.encode(msg.sender, thresholdHealthFactor, wantedHealthFactor, colToken, debtToken, _resolverData)
);
require(_createdProtections[msg.sender].contains(protectionId) == false, "already-started-protection");
require(
... | 5,474,524 | [
1,
9297,
28183,
17862,
358,
453,
3056,
4667,
4422,
1584,
44,
353,
486,
3260,
2974,
1440,
17862,
16,
4894,
4260,
358,
6617,
537,
333,
6835,
1450,
17596,
2045,
287,
4422,
1345,
1865,
2349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
288,
203,
3639,
1731,
1578,
17862,
548,
273,
417,
24410,
581,
5034,
12,
203,
5411,
24126,
18,
3015,
12,
3576,
18,
15330,
16,
5573,
7802,
6837,
16,
15504,
7802,
6837,
16,
645,
1345,
16,
18202,
88,
1345,
16,
389,
... |
./full_match/97/0xa650d5fB7002a35d9370Efdad2a0888Ecc252E98/sources/contracts/UPController.sol | @notice Borrows UP token minting it | function borrowUP(uint256 _borrowAmount, address _to) public onlyRebalancer whenNotPaused {
upBorrowed += _borrowAmount;
UP(UP_TOKEN).mint(_to, _borrowAmount);
emit SyntheticMint(msg.sender, _borrowAmount, upBorrowed);
}
| 5,034,494 | [
1,
38,
280,
3870,
7376,
1147,
312,
474,
310,
518,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
29759,
3079,
12,
11890,
5034,
389,
70,
15318,
6275,
16,
1758,
389,
869,
13,
1071,
1338,
426,
18770,
1347,
1248,
28590,
288,
203,
565,
731,
38,
15318,
329,
1011,
389,
70,
15318,
6275,
31,
203,
565,
7376,
12,
3079,
67,
... |
pragma solidity ^0.4.24;
// File: node_modules\zeppelin-solidity\contracts\math\SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) i... | * @dev Internal method where owner transfers part of tokens to reserve and finish minting/ | function finalization() internal {
if (goalReached()) {
transferTokensToReserve(wallet);
vault.close();
vault.enableRefunds();
}
MintableToken(token).finishMinting();
super.finalization();
}
| 6,432,664 | [
1,
3061,
707,
1625,
3410,
29375,
1087,
434,
2430,
358,
20501,
471,
4076,
312,
474,
310,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
727,
1588,
1435,
2713,
288,
203,
565,
309,
261,
27354,
23646,
10756,
288,
203,
1377,
7412,
5157,
774,
607,
6527,
12,
19177,
1769,
203,
1377,
9229,
18,
4412,
5621,
203,
1377,
9229,
18,
7589,
1957,
19156,
5621,
203,
565,
... |
/**
*Submitted for verification at Etherscan.io on 2019-07-08
*/
pragma solidity ^0.4.11;
/**
* @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 o... | Holds the amount and date of a given balance lock. | contract BQCCToken is StandardToken, Pausable {
string public constant name = "BQCC Token";
string public constant symbol = "BQCC";
uint8 public constant decimals = 6;
uint256 public constant totalSupply = 1000000000000000;
struct BalanceLock {
uint256 amount;
uint256 unlockDate;
... | 2,445,830 | [
1,
20586,
87,
326,
3844,
471,
1509,
434,
279,
864,
11013,
2176,
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,
16351,
605,
53,
39,
1268,
969,
353,
8263,
1345,
16,
21800,
16665,
288,
203,
203,
565,
533,
1071,
5381,
508,
273,
315,
38,
53,
6743,
3155,
14432,
203,
565,
533,
1071,
5381,
3273,
273,
315,
38,
53,
6743,
14432,
203,
565,
2254,
28... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return ... | @dev releases vested tokens for the specified address. Can be called by anyone for any address. | function releaseVestedTokensFor(address _owner) public {
TokenVesting(vestingOf[_owner]).release(this);
}
| 618,588 | [
1,
28416,
331,
3149,
2430,
364,
326,
1269,
1758,
18,
4480,
506,
2566,
635,
1281,
476,
364,
1281,
1758,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3992,
58,
3149,
5157,
1290,
12,
2867,
389,
8443,
13,
1071,
288,
203,
3639,
3155,
58,
10100,
12,
90,
10100,
951,
63,
67,
8443,
65,
2934,
9340,
12,
2211,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0xA8ba1C2d4C1181F9a7C757fca04A446A346eEaBA/sources/DSpaceMarketplace.sol | "tm2" - Dv - REAL
| payTos[2] = payTo(2, 0xF2571398b10a5b4bE1598A7927EA486151d02277, false, false, address(0)); | 876,591 | [
1,
6,
16925,
22,
6,
300,
463,
90,
300,
2438,
1013,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
56,
538,
63,
22,
65,
273,
8843,
774,
12,
22,
16,
374,
16275,
2947,
27,
3437,
10689,
70,
2163,
69,
25,
70,
24,
70,
41,
3600,
10689,
37,
7235,
5324,
41,
37,
24,
5292,
25807,
72,
3103,
22,
4700,
16,
629,
16,
629,
... |
./full_match/56/0x42B1bbC3E386D3e66369a720Ff6B589C32308D73/sources/BEPOwnable.sol | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use ... | abstract contract BEPOwnable is BEPContext {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
pragma solidity ^0.8.0;
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
... | 3,244,590 | [
1,
8924,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
1220,
1605,
353,
1399,
3059,
16334,
18,
2597,
903,
1221,
2319,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9722,
2419,
91,
6914,
353,
9722,
52,
1042,
288,
203,
225,
1758,
3238,
389,
8443,
31,
203,
203,
225,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
683,
9454... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; // OZ contracts v4
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; // OZ contracts v4
cont... | * add stake token to staking pool @dev requires the token to be approved for transfer @dev we assume that (our) stake token is not malicious, so no special checks @param _amount of token to be staked/ using SafeERC20 for IERC20 => will revert in case of error | function _stake(uint256 _amount) internal returns (uint256) {
require(_amount > 0, "stake amount must be > 0");
require(IERC20(stakingToken).balanceOf(msg.sender) > _amount, " you do not possess enough tokens to stake");
user.stakeAmount = toUint160(user.stakeAmount... | 14,041,696 | [
1,
1289,
384,
911,
1147,
358,
384,
6159,
2845,
225,
4991,
326,
1147,
358,
506,
20412,
364,
7412,
225,
732,
6750,
716,
261,
477,
13,
384,
911,
1147,
353,
486,
27431,
28728,
16,
1427,
1158,
4582,
4271,
225,
389,
8949,
434,
1147,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
334,
911,
12,
11890,
5034,
389,
8949,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
315,
334,
911,
3844,
1297,
506,
405,
374,
8863,
203,
3639,
203,
540,
203,
3639,
2583,
1... |
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.10;
import "ds-test/test.sol";
import "./Vm.sol";
import "../ChainClaim.sol";
contract ExampleImplementation is ChainClaim {
// Deployer will be set as issuer of claim codes
constructor(address issuerAddr, string memory name)
payable
ChainClaim(is... | predetermined address for pregenerated test claim code signing | contract ChainClaimTestSetup {
Vm vm = Vm(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);
string name = "some name";
address exAddress = 0xb07dAd0000000000000000000000000000000001;
ExampleImplementation target = ExampleImplementation(exAddress);
address issuerAddress = 0x0f6A79A579658E401E0B81c6dde1F2cd51d97176... | 12,729,233 | [
1,
6510,
4443,
329,
1758,
364,
2299,
7489,
1842,
7516,
981,
10611,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7824,
9762,
4709,
7365,
288,
203,
225,
776,
81,
4268,
273,
776,
81,
12,
20,
92,
27,
2163,
10580,
5908,
7228,
507,
12416,
69,
3672,
26,
5558,
74,
42,
5520,
6675,
40,
9470,
74,
9599,
42,
25,
70,
21,
5698,
2138,
40,
1769,... |
./full_match/11155111/0x2c062707892eb463B22B4FFb3beB1cD69626eae2/sources/src/layercake/LayerCakeBandwidthManager.sol | Require that the added bandwidth is divisible by BANDWIDTH_DEPOSIT_DENOMINATOR without a remainder | require(_bandwidthAmount % bandwidthDepositDenominator == 0, "AB2");
| 3,812,488 | [
1,
8115,
716,
326,
3096,
20508,
353,
3739,
18932,
635,
605,
4307,
10023,
67,
1639,
28284,
67,
13296,
1872,
706,
3575,
2887,
279,
10022,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
24899,
29750,
6275,
738,
20508,
758,
1724,
8517,
26721,
422,
374,
16,
315,
2090,
22,
8863,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x8CD834258d000166769733Dfb5fB6fD6E43dB4e7/sources/contracts/KH87/PixelPioneerBase.sol | * @notice Total number of tokens that currently exist./ | function totalTokensExist() external view override returns (uint256) {
return _totalSupply();
}
| 4,861,742 | [
1,
5269,
1300,
434,
2430,
716,
4551,
1005,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
5157,
4786,
1435,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
4963,
3088,
1283,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.15;
import 'zeppelin-solidity/contracts/token/MintableToken.sol';
/// @title The token for the Home Ethereum's acommodation platform. The totalSupply
/// of tokens gets incremented when tokens are bought
/// @author Merunas Grincalaitis
contract HomeToken is MintableToken {
// Name of the tok... | @title The token for the Home Ethereum's acommodation platform. The totalSupply of tokens gets incremented when tokens are bought @author Merunas Grincalaitis Name of the token Symbol of the token The amount of decimals for that token | contract HomeToken is MintableToken {
string public name;
string public symbol;
uint8 public decimals;
function HomeToken(string _name, string _symbol, uint8 _decimals, uint initialSupply) {
require(bytes(_name).length > 0);
require(bytes(_symbol).length > 0);
require(_decimals > 0);
... | 7,231,739 | [
1,
1986,
1147,
364,
326,
21321,
512,
18664,
379,
1807,
279,
832,
1711,
367,
4072,
18,
1021,
2078,
3088,
1283,
434,
2430,
5571,
28859,
1347,
2430,
854,
800,
9540,
225,
14940,
318,
345,
611,
86,
267,
771,
1540,
291,
1770,
434,
326,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
21321,
1345,
353,
490,
474,
429,
1345,
288,
203,
203,
282,
533,
1071,
508,
31,
203,
203,
282,
533,
1071,
3273,
31,
203,
203,
282,
2254,
28,
1071,
15105,
31,
203,
203,
282,
445,
21321,
1345,
12,
1080,
389,
529,
16,
533,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-22
*/
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.10;
contract RTTv2AutoSwap {
IPancakeRouter02 router;
constructor () {
router = IPancakeRouter02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); //uniswapv2 0x7a250d5630B4cF... | 0xbafce797ea7f84a84f39870799883ad066d3feb7 RTTv2 erc20
| return path; | 8,050,542 | [
1,
20,
6114,
1727,
311,
7235,
27,
24852,
27,
74,
5193,
69,
5193,
74,
5520,
28,
7301,
27,
2733,
5482,
23,
361,
20,
6028,
72,
23,
3030,
70,
27,
225,
534,
1470,
90,
22,
6445,
71,
3462,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
327,
589,
31,
4766,
6647,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity ... | $0.25 = 1 token => $1,000 = 1.19 ETH =>
| uint256 priceToken = 3362; | 9,898,361 | [
1,
8,
20,
18,
2947,
273,
404,
1147,
516,
271,
21,
16,
3784,
273,
404,
18,
3657,
512,
2455,
516,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
6205,
1345,
273,
890,
5718,
22,
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,
-1... |
./full_match/137/0x231e1Cb3bDf264aEFaE62Ee007aEB81FB7FF64e2/sources/project:/contracts/safe.sol | Struct for NFT type | contract Safe is ERC721URIStorage, Ownable {
pragma solidity ^0.8.0;
struct NFTType {
string ipfsHash;
uint256 minPrice;
}
NFTType[] public nftTypes;
mapping(address => bool) public whitelistedMarketplaces;
mapping(uint256 => uint256) public transferTimestamps;
mapping(uint256... | 4,668,081 | [
1,
3823,
364,
423,
4464,
618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14060,
353,
4232,
39,
27,
5340,
3098,
3245,
16,
14223,
6914,
288,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
565,
1958,
423,
4464,
559,
288,
203,
3639,
533,
2359,
2556,
2310,
31,
203,
3639,
2254,... |
./full_match/80001/0x9C26Ec65b0a74C7516097182728D231D95545e6f/sources/contracts/TalentToken.sol | amount available to be minted timestamp at which minting reached MAX_SUPPLY talent's wallet | {
bytes32 public constant ROLE_TALENT = keccak256("TALENT");
bytes32 public constant ROLE_MINTER = keccak256("MINTER");
uint256 public constant MAX_SUPPLY = 1000000 ether;
uint256 public override(ITalentToken) mintingAvailability;
uint256 public override(ITalentToken) mintingFinishedAt;
add... | 5,560,567 | [
1,
8949,
2319,
358,
506,
312,
474,
329,
2858,
622,
1492,
312,
474,
310,
8675,
4552,
67,
13272,
23893,
268,
287,
319,
1807,
9230,
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,
95,
203,
565,
1731,
1578,
1071,
5381,
22005,
67,
9833,
900,
1784,
273,
417,
24410,
581,
5034,
2932,
9833,
900,
1784,
8863,
203,
203,
565,
1731,
1578,
1071,
5381,
22005,
67,
6236,
2560,
273,
417,
24410,
581,
5034,
2932,
6236,
2560,
... |
./full_match/80001/0x7D76Ec6d3181c759760FdDA90187fcCBF2cc9b30/sources/contracts/starter.sol | Rewards per hour per token deposited in wei. | uint256 private rewardsPerHour = 20833000000000000000000;
| 868,420 | [
1,
17631,
14727,
1534,
6126,
1534,
1147,
443,
1724,
329,
316,
732,
77,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
283,
6397,
2173,
13433,
273,
4200,
28,
3707,
12648,
2787,
9449,
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,
... |
./full_match/11155111/0xf1f1885bA386d1AD8941579b317fFaC7fA86EB7B/sources/project_/contracts/agreements/ConstantFlowAgreementV1.sol | @dev IConstantFlowAgreementV1.getFlowOperatorDataByID implementation | function getFlowOperatorDataByID(
ISuperfluidToken token,
bytes32 flowOperatorId
)
external view override
returns(uint8 permissions, int96 flowRateAllowance)
{
(, FlowOperatorData memory flowOperatorData) = _getFlowOperatorData(token, flowOperatorId);
permissi... | 3,797,124 | [
1,
45,
6902,
5249,
17420,
58,
21,
18,
588,
5249,
5592,
751,
13331,
4471,
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,
2812,
821,
5592,
751,
13331,
12,
203,
3639,
467,
8051,
2242,
1911,
1345,
1147,
16,
203,
3639,
1731,
1578,
4693,
5592,
548,
203,
565,
262,
203,
3639,
3903,
1476,
3849,
203,
3639,
1135,
12,
11890,
28,
4371,
16,
509,
10525... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
import "../reserve/GoodReserveCDai.sol";
import "../Interfaces.sol";
import "../utils/DSMath.sol";
import "../utils/DAOUpgradeableContract.sol";
/**
* @title GoodFundManager contract that transfer interest from the staking contract
* to the reserve contract ... | * @dev register a new proposal with the given parameters. Every proposal has a unique ID which is being generated by calculating keccak256 of a incremented counter. @param _numOfChoices number of voting choices @param _proposalParameters defines the parameters of the voting machine used for this proposal @param _propos... | contract GoodMarketMaker is DAOUpgradeableContract, DSMath {
function pre(
address _scheme,
bytes32 _params,
bytes32 _method
) external returns (bool);
function when() external returns (CallPhase);
}
}
}
}
pragma solidity >=0.8.0;
import "../utils/DSMath.sol";
import "../utils/BancorFormula.sol";
import... | 14,636,523 | [
1,
4861,
279,
394,
14708,
598,
326,
864,
1472,
18,
16420,
14708,
711,
279,
3089,
1599,
1492,
353,
3832,
4374,
635,
21046,
417,
24410,
581,
5034,
434,
279,
28859,
3895,
18,
225,
389,
2107,
951,
17442,
1300,
434,
331,
17128,
7246,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
31732,
3882,
278,
12373,
353,
463,
20463,
10784,
429,
8924,
16,
463,
7303,
421,
288,
203,
202,
915,
675,
12,
203,
202,
202,
2867,
389,
9068,
16,
203,
202,
202,
3890,
1578,
389,
2010,
16,
203,
202,
202,
3890,
1578,
389,
2... |
pragma solidity 0.4.25;
pragma experimental ABIEncoderV2;
/**
* @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 Owners... | @notice A function which allows the caller to approve the max amount of any given token @dev In order to function correctly, token allowances should not be set anywhere else in the inheriting contract @param addressToApprove the address which we want to approve to transfer the token @param token the token address whic... | function approveAddress(address addressToApprove, address token) internal {
if(ERC20(token).allowance(address(this), addressToApprove) == 0) {
require(ERC20SafeTransfer.safeApprove(token, addressToApprove, MAX_UINT));
}
}
| 883,827 | [
1,
37,
445,
1492,
5360,
326,
4894,
358,
6617,
537,
326,
943,
3844,
434,
1281,
864,
1147,
225,
657,
1353,
358,
445,
8783,
16,
1147,
1699,
6872,
1410,
486,
506,
444,
25651,
469,
316,
326,
6811,
310,
6835,
225,
1758,
774,
12053,
537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
1887,
12,
2867,
1758,
774,
12053,
537,
16,
1758,
1147,
13,
2713,
288,
203,
3639,
309,
12,
654,
39,
3462,
12,
2316,
2934,
5965,
1359,
12,
2867,
12,
2211,
3631,
1758,
774,
12053,
537,
13,
422,
374,
13,
288,
... |
./partial_match/4/0x6b0787A77c11458EF87Bd733a63BBC11980d285D/sources/OroNetwork.sol | calculate time difference Get number of weeks Get the left out days Get Interest amount based on user loan amount | function viewInterest(address token, uint256 loanId)
public
view
returns (uint256 leftoutDays, uint256 value)
{
uint256 time =
(
loans[loanId].interestpaidOn > 0
? loans[loanId].interestpaidOn
: loans[loanId].dep... | 8,638,039 | [
1,
11162,
813,
7114,
968,
1300,
434,
17314,
968,
326,
2002,
596,
4681,
968,
5294,
395,
3844,
2511,
603,
729,
28183,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1476,
29281,
12,
2867,
1147,
16,
2254,
5034,
28183,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
2002,
659,
9384,
16,
2254,
5034,
460,
13,
203,
565,
288,
203,
3639,
2254,
5034,
813,
273,... |
/*
MiniDogeZilla, * Ever-burning MiniDoge Godzilla *
3% Reflections
2% Liquidity
4% Marketing
Telegram:
https://t.me/Minidogezilla
Website:
https://www.minidogezilla.finance/
Twitter:
https://twitter.com/minidogezilla
*/
pragma solidity ^0.8.9;
// SPDX-License-Identifier: MIT
interface IERC20 {
functi... | warning-suppresion
| (bool temp,) = payable(marketingAddress).call{value: bnbForMarketing, gas: 30000}(""); temp; | 12,553,302 | [
1,
8551,
17,
2859,
12202,
285,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
261,
6430,
1906,
16,
13,
273,
8843,
429,
12,
3355,
21747,
1887,
2934,
1991,
95,
1132,
30,
324,
6423,
1290,
3882,
21747,
16,
16189,
30,
890,
2787,
97,
2932,
8863,
1906,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.19;
/**
* @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... | placeholder has reference to ESCBCoin
| assert(networkPlaceholder.token() == address(token)); | 2,303,013 | [
1,
12988,
711,
2114,
358,
512,
2312,
16283,
885,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
1815,
12,
5185,
14038,
18,
2316,
1435,
422,
1758,
12,
2316,
10019,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.6.0;
import "./Roles.sol";
/**
* @title Hierarchy
* @author Alberto Cuesta Canada
* @notice Implements a dynamic role structure for Roles
*/
contract Hierarchy is Roles {
event AdminRoleSet(bytes32 roleId, bytes32 adminRoleId);
bytes32 public constant ROOT_ROLE_ID = "";
// adminRol... | @dev Remove a member from a role, caller must belong to its admin role. | function removeMember(address account, bytes32 roleId)
public onlyAdmin(roleId) {
_removeMember(account, roleId);
}
| 6,355,503 | [
1,
3288,
279,
3140,
628,
279,
2478,
16,
4894,
1297,
10957,
358,
2097,
3981,
2478,
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,
... | [
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,
1206,
4419,
12,
2867,
2236,
16,
1731,
1578,
21152,
13,
203,
3639,
1071,
1338,
4446,
12,
4615,
548,
13,
288,
203,
3639,
389,
4479,
4419,
12,
4631,
16,
21152,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.0;
import "./Owned.sol";
import "./O2OControlled.sol";
contract O2OController is Owned {
struct Controller {
address addr;
bool isControlled;
bool isInitialized;
}
mapping (bytes32 => Controller) public contracts;
bytes32[] public contractIds;
/**
... | * Get contract address from ID. This function is called by the contract's setContracts function. @param _id ID of contract @return The address of the contract./ | function getContract(bytes32 _id) view public returns (address _addr) {
_addr = contracts[_id].addr;
}
| 886,616 | [
1,
967,
6835,
1758,
628,
1599,
18,
1220,
445,
353,
2566,
635,
326,
6835,
1807,
444,
20723,
445,
18,
225,
389,
350,
540,
1599,
434,
6835,
327,
1021,
1758,
434,
326,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
336,
8924,
12,
3890,
1578,
389,
350,
13,
1476,
1071,
1135,
261,
2867,
389,
4793,
13,
288,
203,
3639,
389,
4793,
273,
20092,
63,
67,
350,
8009,
4793,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Список глаголов, которые присоединяют правое предложное дополнение с предлогом WITH
wordentry_set Verbs_Linking_WITH =
{
eng_verb:prepare{}, // Passover haminados are prepared with similar methods.
eng_verb:replace{}, // Signs were replaced with rare character combinations.
eng_verb:twin{}, // Enniskillen is t... | Signs were replaced with rare character combinations.
| eng_verb:replace{}, | 12,969,163 | [
1,
2766,
87,
4591,
8089,
598,
25671,
3351,
17265,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
24691,
67,
16629,
30,
2079,
2916,
16,
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,
... |
./full_match/1/0x102D06dBeF61D6e0511d431cc6123F242B48482E/sources/contracts/others/AlcazarAirdrop.sol | * @notice Distribute the prizes to the three winners @dev This function must be called by the owner of the contract./ | function callAirdrop() external onlyOwner {
require(initialized, "Contract not initialized");
require(s_requestId == r_requestId, "Request IDs do not match");
require(s_randomWords.length == numWords, "Number of words does not match");
uint256 numHolders = distributors.length;
... | 3,207,172 | [
1,
1669,
887,
326,
846,
3128,
358,
326,
8925,
5657,
9646,
225,
1220,
445,
1297,
506,
2566,
635,
326,
3410,
434,
326,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
745,
37,
6909,
1764,
1435,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
13227,
16,
315,
8924,
486,
6454,
8863,
203,
3639,
2583,
12,
87,
67,
2293,
548,
422,
436,
67,
2293,
548,
16,
315,
691,
7115,
741,
486,
845,
8863,
... |
pragma solidity ^0.4.15;
/**
* @title a collection of functions for manipulating the VM memory
* @author Sami Mäkelä
*/
contract VMMemory {
// a and b are integer values that represent 8 bytes each
function toMemory(uint a, uint b) internal pure returns (uint8[]) {
uint8[] memory arr = new uint8[](16)... | Only integers can be packed, also cannot pack I32 to 32-bit? | function store(uint8[] mem, uint addr, uint v, uint ty, uint packing) internal pure {
if (packing == 0) storeN(mem, addr, typeSize(ty), v);
else {
require(ty < 2 && !(ty == 0 && packing == 4));
storeN(mem, addr, packing, v);
}
}
| 1,788,449 | [
1,
3386,
12321,
848,
506,
12456,
16,
2546,
2780,
2298,
467,
1578,
358,
3847,
17,
3682,
35,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1707,
12,
11890,
28,
8526,
1663,
16,
2254,
3091,
16,
2254,
331,
16,
2254,
13806,
16,
2254,
2298,
310,
13,
2713,
16618,
288,
203,
3639,
309,
261,
2920,
310,
422,
374,
13,
1707,
50,
12,
3917,
16,
3091,
16,
618,
1225,
... |
pragma solidity 0.4.13;
/**
* @title Wallet Getter Library
* @author Majoolr.io
*
* version 1.0.0
* Copyright (c) 2017 Majoolr, LLC
* The MIT License (MIT)
* https://github.com/Majoolr/ethereum-libraries/blob/master/LICENSE
*
* The Wallet Library family is inspired by the multisig wallets built by Consensys
... | @dev Multiplies two numbers and checks for overflow before returning. Does not throw but rather logs an Err event if there is overflow. @param a First number @param b Second number @return err False normally, or true if there is overflow @return res The product of a and b, or 0 if there is overflow | function times(uint256 a, uint256 b) constant returns (bool err,uint256 res) {
assembly{
res := mul(a,b)
switch or(iszero(b), eq(div(res,b), a))
case 0 {
err := 1
res := 0
}
}
if (err)
Err("times func overflow");
}
| 2,063,598 | [
1,
5002,
5259,
2795,
5600,
471,
4271,
364,
9391,
1865,
5785,
18,
9637,
486,
604,
1496,
9178,
5963,
392,
1926,
871,
309,
1915,
353,
9391,
18,
225,
279,
5783,
1300,
225,
324,
7631,
1300,
327,
393,
1083,
15849,
16,
578,
638,
309,
1915,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
225,
445,
4124,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
5381,
1135,
261,
6430,
393,
16,
11890,
5034,
400,
13,
288,
203,
565,
19931,
95,
203,
1377,
400,
519,
14064,
12,
69,
16,
70,
13,
203,
1377,
1620,
578,
12,
291,
712... |
pragma solidity ^0.4.11;
contract ERC20Token {
function balanceOf(address _who) constant returns (uint balance);
function allowance(address _owner, address _spender) constant returns (uint remaining);
function transferFrom(address _from, address _to, uint _value);
function transfer(address _to, uint _value);
}... | Must be paying proper amount
| require(msg.value >= visitCost[uint8(_type)].mul(_unicornCount)); | 6,634,455 | [
1,
10136,
506,
8843,
310,
5338,
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,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2583,
12,
3576,
18,
1132,
1545,
3757,
8018,
63,
11890,
28,
24899,
723,
13,
8009,
16411,
24899,
318,
335,
14245,
1380,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄
▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓
▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐... | @notice Sends the reward for a keep to the keep members. @param keepIdentifier A unique identifier for the keep, e.g. address or number converted to a `bytes32`. | function receiveReward(bytes32 keepIdentifier)
public
factoryMustRecognize(keepIdentifier)
rewardsNotClaimed(keepIdentifier)
mustBeClosed(keepIdentifier)
{
_processKeep(true, keepIdentifier);
}
| 6,394,887 | [
1,
10501,
326,
19890,
364,
279,
3455,
358,
326,
3455,
4833,
18,
225,
3455,
3004,
432,
3089,
2756,
364,
326,
3455,
16,
425,
18,
75,
18,
1758,
578,
1300,
5970,
358,
279,
1375,
3890,
1578,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6798,
17631,
1060,
12,
3890,
1578,
3455,
3004,
13,
203,
3639,
1071,
203,
3639,
3272,
10136,
22931,
554,
12,
10102,
3004,
13,
203,
3639,
283,
6397,
1248,
9762,
329,
12,
10102,
3004,
13,
203,
3639,
1297,
1919,
7395,
12,
1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.17 <0.9.0;
import "@unlock-protocol/contracts/dist/PublicLock/IPublicLockV10.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "hardhat/console.sol";
import "./Layer.sol";
import { BokkyPooBahsDateTi... | see https:github.com/unlock-protocol/unlock/blob/master/smart-contracts/contracts/interfaces/hooks/IHook.sol uint timeOfDay = 0; string memory kind = ""; (, , , uint hour, , ) = BokkyPooBahsDateTimeLibrary.timestampToDateTime(block.timestamp); if (hour <= 8) { timeOfDay = 0; 0 => night } else if (hour <= 17) { ... | function tokenURI(
) external view returns (string memory) {
string memory image = "QmYkkshevBxHg7XwdP1pw6A4T82xzD8G2RpLDFo6KDy3zm";
string memory json = string(
);
return
string(
abi.encodePacked(
"data:application/json;b... | 572,692 | [
1,
5946,
2333,
30,
6662,
18,
832,
19,
26226,
17,
8373,
19,
26226,
19,
10721,
19,
7525,
19,
26416,
17,
16351,
87,
19,
16351,
87,
19,
15898,
19,
10468,
19,
45,
5394,
18,
18281,
2254,
813,
17263,
273,
374,
31,
533,
3778,
3846,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1147,
3098,
12,
203,
565,
262,
3903,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
203,
3639,
533,
3778,
1316,
273,
315,
53,
81,
61,
79,
7904,
580,
90,
38,
92,
44,
75,
27,
60,
3623,
52,
21,
14921,
26,
37,
24,
56,
1... |
pragma solidity ^0.5.12;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transac... | @notice Transfers the funds allocated to the darknode to the darknode owner. @param _darknode The address of the darknode @param _token Which token to transfer | function withdraw(address _darknode, address _token) public {
address payable darknodeOwner = darknodeRegistry.getDarknodeOwner(_darknode);
require(darknodeOwner != address(0x0), "DarknodePayment: invalid darknode owner");
uint256 amount = store.darknodeBalances(_darknode, _token);
... | 7,310,798 | [
1,
1429,
18881,
326,
284,
19156,
11977,
358,
326,
23433,
2159,
358,
326,
23433,
2159,
540,
3410,
18,
225,
389,
25045,
2159,
1021,
1758,
434,
326,
23433,
2159,
225,
389,
2316,
21918,
1147,
358,
7412,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
2867,
389,
25045,
2159,
16,
1758,
389,
2316,
13,
1071,
288,
203,
3639,
1758,
8843,
429,
23433,
2159,
5541,
273,
23433,
2159,
4243,
18,
588,
40,
1313,
2159,
5541,
24899,
25045,
2159,
1769,
203,
3639,
2583,
... |
pragma solidity ^0.5.2;
/*
*
* WELCOME TO THE SUSTAINABLE UPSWEEP NETWORK
*
* upsweep.net
*
* Gambling with low gas fees, no edge and no leaks.
*
*
* _19^^^^0^^^^1_
* .18'' ``2.
* .17'
* .16' Here's to the `3.
* ... | reset variables and start a new game. | closed = false;
| 1,831,134 | [
1,
6208,
3152,
471,
787,
279,
394,
7920,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4375,
273,
629,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |