file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity ^0.4.11;
contract ERC20
{
function totalSupply() constant returns (uint);
function balanceOf(address who) constant returns (uint);
function allowance(address owner, address spender) constant returns (uint);
function transfer(address to, uint value) returns (bool ok);
functi... | change from 1 hours to 24 weeks */ | if( now < workcrew[x].lastTokenConfigDay + 1 hours ){revert;}
| 6,482,014 | [
1,
3427,
628,
404,
7507,
358,
4248,
17314,
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,
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,
309,
12,
2037,
411,
1440,
1793,
91,
63,
92,
8009,
2722,
1345,
809,
4245,
397,
404,
7507,
262,
95,
266,
1097,
31,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0xF2aB596223B1D71911F50B1314C3Aa70a82731b8/sources/NFTStaking.sol | / Owner Only / Get each object passed in to setBaseRate Add Mapping for each object | function setBaseRate(BaseRate[] memory _newBaseRates) public onlyOwner {
for (uint256 i = 0; i < _newBaseRates.length; i++) {
baseRates[_newBaseRates[0].tokenId] = _newBaseRates[0].rarityRate;
}
}
| 1,897,996 | [
1,
19,
16837,
5098,
342,
968,
1517,
733,
2275,
316,
358,
26435,
4727,
1436,
9408,
364,
1517,
733,
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,
26435,
4727,
12,
2171,
4727,
8526,
3778,
389,
2704,
2171,
20836,
13,
1071,
1338,
5541,
288,
203,
203,
540,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
2704,
2171,
20836,
18,
2469,
31,
277,
27245,
288,
203,
... |
./full_match/80001/0x68B73818C67ae476F80D74A1A404d4d26F84ef63/sources/StakingContract.sol | If address already has ERC721 Token/s staked, calculate the rewards. Increment the amountStaked and map msg.sender to the Token Id of the staked Token to later send back on withdrawal. Finally give timeOfLastUpdate the value of now. If wallet has tokens staked, calculate the rewards before adding the new token | function stake(uint256 _tokenId) external nonReentrant {
if (stakers[msg.sender].amountStaked > 0) {
uint256 rewards = calculateRewards(msg.sender);
stakers[msg.sender].unclaimedRewards += rewards;
}
}
| 5,611,128 | [
1,
2047,
1758,
1818,
711,
4232,
39,
27,
5340,
3155,
19,
87,
384,
9477,
16,
4604,
326,
283,
6397,
18,
17883,
326,
3844,
510,
9477,
471,
852,
1234,
18,
15330,
358,
326,
3155,
3124,
434,
326,
384,
9477,
3155,
358,
5137,
1366,
1473,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
384,
911,
12,
11890,
5034,
389,
2316,
548,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
309,
261,
334,
581,
414,
63,
3576,
18,
15330,
8009,
8949,
510,
9477,
405,
374,
13,
288,
203,
5411,
2254,
5034,
283,
6397,
273,... |
./full_match/1/0x6ccfD65b0b14F67259C77Ca6267104e058dDB292/sources/contracts/tokenBridge/TokenBridge.sol | solhint-disable-next-line var-name-mixedcase Special addresses used in the mappings to mark specific states for tokens. | {
using SafeERC20Upgradeable for IERC20Upgradeable;
bytes4 internal constant _PERMIT_SELECTOR =
bytes4(keccak256(bytes("permit(address,address,uint256,uint256,uint8,bytes32,bytes32)")));
bytes private constant METADATA_NAME = abi.encodeCall(IERC20MetadataUpgradeable.name, ());
bytes private constant METAD... | 2,969,302 | [
1,
18281,
11317,
17,
8394,
17,
4285,
17,
1369,
569,
17,
529,
17,
19562,
3593,
13409,
6138,
1399,
316,
326,
7990,
358,
2267,
2923,
5493,
364,
2430,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
1450,
14060,
654,
39,
3462,
10784,
429,
364,
467,
654,
39,
3462,
10784,
429,
31,
203,
203,
225,
1731,
24,
2713,
5381,
389,
3194,
6068,
67,
4803,
916,
273,
203,
565,
1731,
24,
12,
79,
24410,
581,
5034,
12,
3890,
... |
pragma solidity ^0.6.4;
library PrimeField {
uint256 internal constant MODULUS = 0x0800000000000011000000000000000000000000000000000000000000000001;
uint256 internal constant MODULUS_MASK = 0x0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
uint256 internal constant MONTGOMERY_R = 0x7ffff... | Returns the primitive root of unity of a given order. Reverts if unavailable | function root(uint256 order) internal returns (uint256) {
require((MODULUS - 1) % order == 0, 'Root unavailable');
return expmod(GENERATOR, (MODULUS - 1) / order, MODULUS);
}
| 2,520,664 | [
1,
1356,
326,
8225,
1365,
434,
640,
560,
434,
279,
864,
1353,
18,
868,
31537,
309,
15781,
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,
1365,
12,
11890,
5034,
1353,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12443,
6720,
1506,
3378,
300,
404,
13,
738,
1353,
422,
374,
16,
296,
2375,
15781,
8284,
203,
3639,
327,
1329,
1711,
12,
13990,
357... |
automat sg
{
#region MODIF_TYPE:ADV
// ------------------------------------------------------
// наречия, которые могут модифицировать другие наречия,
// выступая в роли предшествующих модификаторов.
// ------------------------------------------------------
tag eng_adverb:straight{ MODIF_TYPE:ADV } // Go straight bac... | Floridly figurative prose
| tag eng_adverb:Floridly{ MODIF_TYPE:ADJ } | 6,445,828 | [
1,
2340,
280,
350,
715,
4291,
295,
1535,
450,
307,
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,
2692,
24691,
67,
361,
16629,
30,
2340,
280,
350,
715,
95,
8663,
5501,
67,
2399,
30,
1880,
46,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | свериться с таблицей
| rus_verbs:сверяться{}, | 5,486,899 | [
1,
146,
228,
145,
115,
145,
118,
146,
227,
145,
121,
146,
229,
146,
239,
146,
228,
146,
242,
225,
146,
228,
225,
146,
229,
145,
113,
145,
114,
145,
124,
145,
121,
146,
233,
145,
118,
145,
122,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
146,
228,
145,
115,
145,
118,
146,
227,
146,
242,
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,
-100,
-100,
... |
./full_match/4/0xe876C68e085117D56EF400a870fDB0823B7B6855/sources/contracts/abdk-libraries-solidity/ABDKMathQuad.sol | * Calculate x / y. Special values behave in the following way: NAN / x = NAN for any x. x / NAN = NAN for any x. Infinity / x = Infinity for any finite non-negative x. Infinity / x = -Infinity for any finite negative x including -0. -Infinity / x = -Infinity for any finite non-negative x. -Infinity / x = Infinity for ... | function div (bytes16 x, bytes16 y) public pure returns (bytes16) {
unchecked {
uint256 xExponent = uint128 (x) >> 112 & 0x7FFF;
uint256 yExponent = uint128 (y) >> 112 & 0x7FFF;
if (xExponent == 0x7FFF) {
if (yExponent == 0x7FFF) return NAN;
else return x ^ y & 0x800000000000000... | 13,305,561 | [
1,
8695,
619,
342,
677,
18,
225,
13409,
924,
31085,
316,
326,
3751,
4031,
30,
21600,
342,
619,
273,
21600,
364,
1281,
619,
18,
619,
342,
21600,
273,
21600,
364,
1281,
619,
18,
19454,
342,
619,
273,
19454,
364,
1281,
25922,
1661,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
3739,
261,
3890,
2313,
619,
16,
1731,
2313,
677,
13,
1071,
16618,
1135,
261,
3890,
2313,
13,
288,
203,
565,
22893,
288,
203,
1377,
2254,
5034,
619,
17972,
273,
2254,
10392,
261,
92,
13,
1671,
23543,
473,
374,
92,
27,
... |
./full_match/1/0x38D8FA043913e8Ef6466d01BEF4Af42Cafa3b235/sources/contracts/factories/DelegatedManagerFactory.sol | * ONLY SETTOKEN MANAGER: Deploys a DelegatedManager and sets some temporary metadata about the deployment which will be read during a subsequent intialization step which wires everything together. This method is used when migrating an existing SetToken to the DelegatedManager system. (Note: This flow should work well f... | function createManager(
ISetToken _setToken,
address _owner,
address _methodologist,
address[] memory _operators,
address[] memory _assets,
address[] memory _extensions
)
external
returns (address)
{
require(controller.isSet(address(_se... | 3,150,701 | [
1,
10857,
3174,
23187,
20972,
16302,
30,
4019,
383,
1900,
279,
24117,
690,
1318,
471,
1678,
2690,
6269,
1982,
2973,
326,
6314,
1492,
903,
506,
855,
4982,
279,
10815,
509,
649,
1588,
2235,
1492,
341,
2814,
7756,
9475,
18,
1220,
707,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
752,
1318,
12,
203,
3639,
467,
694,
1345,
389,
542,
1345,
16,
203,
3639,
1758,
389,
8443,
16,
203,
3639,
1758,
389,
2039,
3966,
376,
16,
203,
3639,
1758,
8526,
3778,
389,
30659,
16,
203,
3639,
1758,
8526,
3778,
389,
9... |
./full_match/4/0xC2334274A7fB3ff7f992D5F5228f63335ABb839B/sources/contracts/Vault2.sol | function _mint(address account, uint256 amount) | function mint(uint256 _amount) external payable {
_mint(msg.sender, _amount);
}
| 12,411,355 | [
1,
915,
389,
81,
474,
12,
2867,
2236,
16,
2254,
5034,
3844,
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,
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,
915,
312,
474,
12,
11890,
5034,
389,
8949,
13,
3903,
8843,
429,
288,
203,
565,
389,
81,
474,
12,
3576,
18,
15330,
16,
389,
8949,
1769,
203,
203,
97,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xa884970F06Dda7BedD86829E14BeCa2c8fEd5220/sources/contracts/Balancer/Balancer.sol | * @notice Set Interest Rate @param interestRate new interest rate. @param periodStart new period start./ | function setInterestRate(int256 interestRate, uint256 periodStart) external onlyMultisigOrGov {
sweep.setInterestRate(interestRate, periodStart);
}
| 8,432,294 | [
1,
694,
5294,
395,
13025,
225,
16513,
4727,
394,
16513,
4993,
18,
225,
3879,
1685,
394,
3879,
787,
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,
... | [
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,
444,
29281,
4727,
12,
474,
5034,
16513,
4727,
16,
2254,
5034,
3879,
1685,
13,
3903,
1338,
5049,
291,
360,
1162,
43,
1527,
288,
203,
3639,
17462,
18,
542,
29281,
4727,
12,
2761,
395,
4727,
16,
3879,
1685,
1769,
203,
565,... |
pragma solidity ^0.4.25;
/**
* @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 pure returns (uint256) {
// Gas optimization: this is ch... | * @dev update config "commissionFeeAddress"/ | function updateCommissionAddress(address _address) public onlyOwner{
require(_address != address(0) && _address != commissionFeeAddress);
commissionFeeAddress = _address;
}
| 13,076,810 | [
1,
2725,
642,
315,
832,
3951,
14667,
1887,
6,
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,
1089,
799,
3951,
1887,
12,
2867,
389,
2867,
13,
1071,
1338,
5541,
95,
203,
3639,
2583,
24899,
2867,
480,
1758,
12,
20,
13,
597,
389,
2867,
480,
1543,
19710,
14667,
1887,
1769,
203,
3639,
1543,
19710,
14667,
1887,
273,
3... |
pragma ton-solidity >=0.42.0;
pragma AbiHeader time;
pragma AbiHeader pubkey;
pragma AbiHeader expire;
//================================================================================
//
import "../contracts/DnsRecord.sol";
//================================================================================
//
contra... | accept only messages or bounces from DnsRecord
| require(msg.sender == domainAddress, 777); | 12,857,584 | [
1,
9436,
1338,
2743,
578,
324,
465,
764,
628,
28456,
2115,
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,
2583,
12,
3576,
18,
15330,
422,
2461,
1887,
16,
2371,
4700,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
/**
*
* __
* / |
* ____$$ | _______ ______ ______ ______
* / $$ | / | / \ / \ / \
* /$$$$$$$ |/$$$$$$$/ /$$$$$$ |/$$$$$$ |/$$$$$$ |
* $$ | $$ |$$ | ... | * @dev Sets {decimals} to a value other than the default one of 18. WARNING: This function should only be called from the constructor. Most applications that interact with token contracts will not expect {decimals} to ever change, and may work incorrectly if it does./ | function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
| 177,397 | [
1,
2785,
288,
31734,
97,
358,
279,
460,
1308,
2353,
326,
805,
1245,
434,
6549,
18,
9744,
30,
1220,
445,
1410,
1338,
506,
2566,
628,
326,
3885,
18,
22099,
12165,
716,
16592,
598,
1147,
20092,
903,
486,
4489,
288,
31734,
97,
358,
1410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
8401,
31809,
12,
11890,
28,
15105,
67,
13,
2713,
288,
203,
3639,
389,
31734,
273,
15105,
67,
31,
203,
565,
289,
203,
377,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/11155111/0xD00723fb9AeED75C32F56F037A9a8Bb9Fd905F51/sources/contracts/Want3Protocol.sol | require(accumulatedUserList[to].length > 0, "Host not found."); | function couldBuy(address to) public view returns(bool) {
require(wantList[to] != address(0), "Host not found.");
uint targetPrice = goodsOracle.getPrice(wantList[to]);
uint accumulatedAmount = 0;
for (uint i = 0; i < accumulatedUserList[to].length; i+=1) {
address user ... | 3,798,266 | [
1,
6528,
12,
8981,
5283,
690,
1299,
682,
63,
869,
8009,
2469,
405,
374,
16,
315,
2594,
486,
1392,
1199,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3377,
38,
9835,
12,
2867,
358,
13,
1071,
1476,
1135,
12,
6430,
13,
288,
203,
3639,
2583,
12,
17369,
682,
63,
869,
65,
480,
1758,
12,
20,
3631,
315,
2594,
486,
1392,
1199,
1769,
203,
203,
3639,
2254,
1018,
5147,
273,
... |
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../aave/ILendingPoolAddressesProvider.sol";
import "../aave/ILendingPool.sol";
/**
* Play the save game.
*
* No safe math was though to shortcut the hacking time.
*
*/
contract ViralBank is IERC20 {
// A short cut to fi... | Determine in which state the game is currently, | function getGameState() public view returns(GameState) {
if(!isIncubationPeriodOver()) {
return GameState.Starting;
return GameState.Playing;
return GameState.Cleaning;
return GameState.PayingOut;
}
}
| 1,757,918 | [
1,
8519,
316,
1492,
919,
326,
7920,
353,
4551,
16,
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,
7162,
339,
1119,
1435,
1071,
1476,
1135,
12,
12496,
1119,
13,
288,
203,
3639,
309,
12,
5,
291,
14559,
373,
367,
5027,
4851,
10756,
288,
203,
5411,
327,
14121,
1119,
18,
11715,
31,
203,
5411,
327,
14121,
1119,
18,
11765,... |
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
import "../../protocol/interfaces/IAutoTrader.sol";
import "../../protocol/interfaces/ISoloMargin.sol";
import "../interfaces/IDolomiteAmmFactory.sol";
import "../interfaces/IDolomiteAmmPair.sol";
import "../lib/AdvancedMath.sol";
import "../lib/UQ112x112.so... | force reserves to match balances | function sync() external lock {
ISoloMargin _soloMargin = ISoloMargin(soloMargin);
_update(
_getTokenBalancePar(_soloMargin, marketId0),
_getTokenBalancePar(_soloMargin, marketId1),
reserve0Par,
reserve1Par
);
}
| 15,835,502 | [
1,
5734,
400,
264,
3324,
358,
845,
324,
26488,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3792,
1435,
3903,
2176,
288,
203,
3639,
4437,
12854,
9524,
389,
87,
12854,
9524,
273,
4437,
12854,
9524,
12,
87,
12854,
9524,
1769,
203,
3639,
389,
2725,
12,
203,
5411,
389,
588,
1345,
13937,
1553,
24899,
87,
12854,
9524,... |
./partial_match/1313161554/0x857050Ef3a0241a2c1f65ca1F0c100a04E4AEd93/sources/Garden.sol | @notice Only allows the `admin` of the master garden to execute the function. | modifier onlyAdmin() {
require(masterContract.hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Garden: not an admin");
_;
}
| 16,912,047 | [
1,
3386,
5360,
326,
1375,
3666,
68,
434,
326,
4171,
314,
24466,
358,
1836,
326,
445,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
4446,
1435,
288,
203,
3639,
2583,
12,
7525,
8924,
18,
5332,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
1234,
18,
15330,
3631,
315,
43,
24466,
30,
486,
392,
3981,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1
pragma solidity ^0.8.0;
interface IKIP7 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool... | address _address ;
| struct Timelock_taperdown { | 5,517,118 | [
1,
2867,
389,
2867,
274,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
1697,
12652,
292,
975,
67,
88,
7294,
2378,
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,
-1... |
./partial_match/1/0x5D2A8C81f349D93f814acC9Aa3D3D62f54F7A19D/sources/AmbrosusSale.sol | Let sender make a purchase to their account. Preconditions: !paused, sale_ongoing Postconditions: ?!sale_ongoing Writes {Tokens, Sale} | function ()
only_certified(msg.sender)
payable
public
{
processPurchase(msg.sender);
}
| 3,930,272 | [
1,
24181,
5793,
1221,
279,
23701,
358,
3675,
2236,
18,
9248,
30,
401,
8774,
3668,
16,
272,
5349,
67,
5409,
310,
5616,
6381,
30,
692,
5,
87,
5349,
67,
5409,
310,
30053,
288,
5157,
16,
348,
5349,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1832,
203,
565,
1338,
67,
7593,
939,
12,
3576,
18,
15330,
13,
203,
565,
8843,
429,
203,
565,
1071,
203,
225,
288,
203,
565,
1207,
23164,
12,
3576,
18,
15330,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
./partial_match/42220/0x94D179B042c24850988901aDc837a78B2e426428/sources/project_/contracts/utils/GoodDollarMintBurnWrapper.sol | * @notice helper for sendOrMint action to update the rewarder daily limit if updateFrequency passed/ console.log( "secondsPassed %s %s %s", secondsPassed, minter.dailyCap, minter.lastUpdate ); | function _updateDailyLimitCap(address minter) internal {
uint256 secondsPassed = block.timestamp - minterSupply[minter].lastUpdate;
uint256 totalSupply = IERC20Upgradeable(token).totalSupply();
if (secondsPassed >= updateFrequency) {
minterSupply[minter].dailyCapIn = uint128(
(totalSupply * minterSupply[m... | 3,497,060 | [
1,
4759,
364,
1366,
1162,
49,
474,
1301,
358,
1089,
326,
283,
20099,
18872,
1800,
309,
1089,
13865,
2275,
19,
2983,
18,
1330,
12,
225,
202,
6,
7572,
22530,
738,
87,
738,
87,
738,
87,
3113,
225,
202,
7572,
22530,
16,
225,
202,
1154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
389,
2725,
40,
12857,
3039,
4664,
12,
2867,
1131,
387,
13,
2713,
288,
203,
202,
202,
11890,
5034,
3974,
22530,
273,
1203,
18,
5508,
300,
1131,
387,
3088,
1283,
63,
1154,
387,
8009,
2722,
1891,
31,
203,
202,
202,
11890,
... |
./partial_match/1/0x5a30BAeEE6C68dE1cB73b94d15E3Dcb89Aa0EBd6/sources/ExordeVestingWallet.sol | * @dev Getter for the beneficiary address./ | function beneficiary() public view virtual returns (address) {
return _beneficiary;
}
| 15,971,622 | [
1,
8461,
364,
326,
27641,
74,
14463,
814,
1758,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27641,
74,
14463,
814,
1435,
1071,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
70,
4009,
74,
14463,
814,
31,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which i... | * @title TrueFiPool2 @dev Lending pool which may use a strategy to store idle funds Earn high interest rates on currency deposits through uncollateralized loans Funds deposited in this pool are not fully liquid. Exiting incurs an exit penalty depending on pool liquidity After exiting, an account will need to wait for L... | contract TrueFiPool2 is ITrueFiPool2, IPauseableContract, ERC20, UpgradeableClaimable {
using SafeMath for uint256;
using SafeERC20 for ERC20;
using SafeERC20 for IDeficiencyToken;
uint256 private constant BASIS_PRECISION = 10000;
uint8 public constant VERSION = 1;
ERC20 public override to... | 13,615,292 | [
1,
5510,
42,
77,
2864,
22,
225,
511,
2846,
2845,
1492,
2026,
999,
279,
6252,
358,
1707,
12088,
284,
19156,
512,
1303,
3551,
16513,
17544,
603,
5462,
443,
917,
1282,
3059,
6301,
22382,
2045,
287,
1235,
437,
634,
478,
19156,
443,
1724,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1053,
42,
77,
2864,
22,
353,
467,
5510,
42,
77,
2864,
22,
16,
2971,
1579,
429,
8924,
16,
4232,
39,
3462,
16,
17699,
429,
9762,
429,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
... |
./full_match/80001/0x35fd0516074d4735FEA7Ee7eDC69176B2CfCB42a/sources/contracts/bank/Bank.sol | Token already added @param token is provided by caller. | error TokenExists(address token);
| 9,453,901 | [
1,
1345,
1818,
3096,
225,
1147,
353,
2112,
635,
4894,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
555,
3155,
4002,
12,
2867,
1147,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x0407FDc197333C161bDC649d1f3dBBe5a5E3F1Dd/sources/ELONDUCK.sol | Set maximum transaction | function SetMaxTxnAmount(uint256 maxTxAmount) public onlyOwner {
_maxTxAmount = maxTxAmount;
}
| 4,141,823 | [
1,
694,
4207,
2492,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
28113,
13789,
6275,
12,
11890,
5034,
943,
4188,
6275,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
1896,
4188,
6275,
273,
943,
4188,
6275,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/42/0xd076f69BC9f8452CE54711ff2A7662Ed8Df8A74b/sources/Documents/DEV/PRUF/PRUF_TRUFFLE/contracts/PRUF_UTIL_TKN.sol | * @dev Verify user credentials Originating Address: has PAYABLE_ROLE and trusted agent enabled is true/ | modifier isPayable() {
require(
hasRole(PAYABLE_ROLE, _msgSender()),
"PRuF:MOD: must have PAYABLE_ROLE"
);
require(
trustedAgentEnabled == 1,
"PRuF:MOD: Trusted Payable Function permanently disabled - use allowance / transferFrom pattern"
... | 9,591,812 | [
1,
8097,
729,
4448,
18040,
1776,
5267,
30,
1377,
711,
25095,
2782,
67,
16256,
471,
13179,
4040,
3696,
353,
638,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
353,
9148,
429,
1435,
288,
203,
3639,
2583,
12,
203,
5411,
28335,
12,
11389,
2782,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
203,
5411,
315,
8025,
89,
42,
30,
6720,
30,
1297,
1240,
25095,
2782,
67,
16256,
6,
203,
... |
./partial_match/42220/0x1EC3366D384ee7996F2F70B67A65C5d54Ce96040/sources/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/identity/Attestations.sol | * @notice Selects the issuers for the most recent attestation request. @param identifier The hash of the identifier to be attested./ | function selectIssuers(bytes32 identifier) external {
IdentifierState storage state = identifiers[identifier];
require(
state.unselectedRequests[msg.sender].blockNumber > 0,
"No unselected attestation request to select issuers for"
);
require(
!isAttestationExpired(state.unselected... | 3,499,733 | [
1,
24093,
326,
3385,
27307,
364,
326,
4486,
8399,
2403,
395,
367,
590,
18,
225,
2756,
1021,
1651,
434,
326,
2756,
358,
506,
2403,
3149,
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,
... | [
1,
1,
1,
1,
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,
2027,
7568,
27307,
12,
3890,
1578,
2756,
13,
3903,
288,
203,
565,
10333,
1119,
2502,
919,
273,
9863,
63,
5644,
15533,
203,
203,
565,
2583,
12,
203,
1377,
919,
18,
318,
8109,
6421,
63,
3576,
18,
15330,
8009,
2629,
1854,
... |
pragma solidity ^0.4.24;
//================================================================================
// Plague Inc. <Grand prize>
// WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!!
// This game is easy for you to get rich.
// ... | how many eth has been withdraw
| uint256 withdraw; | 1,261,278 | [
1,
13606,
4906,
13750,
711,
2118,
598,
9446,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
598,
9446,
31,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.1;
contract dag {
struct BlockHeader {
bool isNode;
uint256 farFromGenesis;
address creator;
bytes32 blockHash;
bytes32 prevBlockHash;
bytes32[] uncleBlockHashs;
bytes32 stateRoot;
bytes32 txRoo... | for treating duplication
| uncles[unclesCount++] = _blockHash; | 6,417,852 | [
1,
1884,
9787,
1776,
31201,
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,
3639,
6301,
1040,
63,
551,
1040,
1380,
9904,
65,
273,
389,
2629,
2310,
31,
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,
-10... |
./full_match/1/0xc679f22996EfCc120626b18f9d01AF1603b98952/sources/contracts/Agent1.sol | @dev If a polymorphed Agent1 is found, reveal it | function tokenURI(uint256 tokenId)
public
view
override(ERC721, ERC721URIStorage)
returns (string memory)
{
string memory _tokenURI = _BJRtokenURIs[tokenId];
if (bytes(_tokenURI).length > 0) {
return string(abi.encodePacked(_tokenURI));
... | 3,172,943 | [
1,
2047,
279,
2952,
2942,
7657,
329,
8669,
21,
353,
1392,
16,
283,
24293,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
12,
654,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3098,
3245,
13,
203,
3639,
1135,
261,
1080,
3778,
13,
203,
565,
288,
203,
... |
./full_match/1/0x82a7b5842085f434c6584A8c44b6A1C15c25a512/sources/contracts/Pool.sol | * @inheritdoc ICollateralLiquidationReceiver/ Validate caller is collateral liquidator */ Compute loan receipt hash */ Validate loan status is liquidated */ Decode loan receipt */ Check if the proceeds have a surplus */ Compute borrower's share of liquidation surplus */ Compute lenders' proceeds */ Compute total pendin... | function onCollateralLiquidated(bytes calldata encodedLoanReceipt, uint256 proceeds) external nonReentrant {
if (msg.sender != address(_collateralLiquidator)) revert InvalidCaller();
bytes32 loanReceiptHash = LoanReceipt.hash(encodedLoanReceipt);
if (_loans[loanReceiptHash] != LoanStatus.L... | 9,659,222 | [
1,
36,
10093,
467,
13535,
2045,
287,
48,
18988,
350,
367,
12952,
19,
3554,
4894,
353,
4508,
2045,
287,
4501,
26595,
639,
342,
8155,
28183,
16030,
1651,
342,
3554,
28183,
1267,
353,
4501,
26595,
690,
342,
6209,
28183,
16030,
342,
2073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
603,
13535,
2045,
287,
48,
18988,
350,
690,
12,
3890,
745,
892,
3749,
1504,
304,
15636,
16,
2254,
5034,
11247,
87,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
1758,
24899,
12910,
2045... |
./partial_match/100/0x14969a18C6D0A29894DcDf776f86E1e4eE8F3a11/sources/project_/contracts/agreements/ConstantFlowAgreementV1.sol | * @dev change flow between sender and receiver with new flow rate NOTE: - leaving owed deposit unchanged for later adjustment - depositDelta output is always clipped (see _clipDepositNumber)/ STEP 1: calculate deposit required for the flow rounding up the number for app allowance too CAVEAT: - Now app could create a fl... | function _changeFlow(
uint256 currentTimestamp,
ISuperfluidToken appAllowanceToken,
ISuperfluidToken token,
FlowParams memory flowParams,
FlowData memory oldFlowData
)
private
returns (
int256 depositDelta,
uint256 appAllowanceBase,... | 16,680,214 | [
1,
3427,
4693,
3086,
5793,
471,
5971,
598,
394,
4693,
4993,
5219,
30,
300,
15086,
2523,
329,
443,
1724,
14827,
364,
5137,
18335,
300,
443,
1724,
9242,
876,
353,
3712,
26361,
261,
5946,
389,
14161,
758,
1724,
1854,
13176,
25538,
404,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
3427,
5249,
12,
203,
3639,
2254,
5034,
783,
4921,
16,
203,
3639,
467,
8051,
2242,
1911,
1345,
595,
7009,
1359,
1345,
16,
203,
3639,
467,
8051,
2242,
1911,
1345,
1147,
16,
203,
3639,
9473,
1370,
3778,
4693,
1370,
16... |
./partial_match/42/0x631FFD1AA2A854736727b02379a147cBE0E98F9f/sources/UBXGStaking.sol | notice seconds for epoch active | uint256 public epochWindowLengthSec;
| 3,328,086 | [
1,
20392,
3974,
364,
7632,
2695,
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,
2254,
5034,
1071,
7632,
3829,
1782,
2194,
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,
... |
./full_match/1/0x85Ff72ef23C559881589Daa5C8Ed9698124eDE72/sources/lib/seaport-types/src/helpers/PointerLibraries.sol | @dev Reads the bytes1 at `rdPtr` in returndata. | function readBytes1(
ReturndataPointer rdPtr
) internal pure returns (bytes1 value) {
assembly ("memory-safe") {
returndatacopy(0, rdPtr, _OneWord)
value := mload(0)
}
}
| 8,451,804 | [
1,
7483,
326,
1731,
21,
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,
21,
12,
203,
3639,
2000,
892,
4926,
9437,
5263,
203,
565,
262,
2713,
16618,
1135,
261,
3890,
21,
460,
13,
288,
203,
3639,
19931,
7566,
7858,
17,
4626,
7923,
288,
203,
5411,
327,
892,
3530,
12,
20,
16,
9437,
526... |
./partial_match/56/0x5ed77C98C66f243734840729165477F7e16A85d3/sources/ChaodoiToken.sol | Run an ACTIVE Air-Drop addresses and amount of tokens to distribute only process first 150 recipients This will loop through all the recipients and send them the specified tokens | function airdropACTIVE(address[] memory recipients, uint256[] memory tokenAmount) public returns(bool) {
require(!safeguard);
uint256 totalAddresses = recipients.length;
require(totalAddresses <= 150, "Too many recipients");
for(uint i = 0; i < totalAddresses; i++)
{
... | 11,316,603 | [
1,
1997,
392,
21135,
432,
481,
17,
7544,
6138,
471,
3844,
434,
2430,
358,
25722,
1338,
1207,
1122,
18478,
12045,
1220,
903,
2798,
3059,
777,
326,
12045,
471,
1366,
2182,
326,
1269,
2430,
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,
445,
279,
6909,
1764,
13301,
12,
2867,
8526,
3778,
12045,
16,
2254,
5034,
8526,
3778,
1147,
6275,
13,
1071,
1135,
12,
6430,
13,
288,
203,
3639,
2583,
12,
5,
87,
1727,
1332,
89,
1060,
1769,
203,
203,
3639,
2254,
5034,
2078,
... |
./full_match/1/0x51f162b76F6Ae17d76df498c1f5a51A01d3A27F5/sources/Users/seb/repo/hunt/neverlose/contract/contracts/LockUpPool.sol | Should be called on WRNRewardPool#addLockUpRewardPool | function addLockUpPool(address tokenAddress, uint256 maxLockUpLimit) public onlyOwner {
require(tokenAddress.isContract(), 'INVALID_TOKEN');
require(tokenStats[tokenAddress].maxLockUpLimit == 0, 'POOL_ALREADY_EXISTS');
pools.push(tokenAddress);
tokenStats[tokenAddress].maxLockUpLimit = maxLockUpLimit... | 2,981,186 | [
1,
14309,
506,
2566,
603,
12984,
50,
17631,
1060,
2864,
1289,
2531,
1211,
17631,
1060,
2864,
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,
225,
445,
527,
2531,
1211,
2864,
12,
2867,
1147,
1887,
16,
2254,
5034,
943,
2531,
1211,
3039,
13,
1071,
1338,
5541,
288,
203,
565,
2583,
12,
2316,
1887,
18,
291,
8924,
9334,
296,
9347,
67,
8412,
8284,
203,
565,
2583,
12,
2316,
... |
./partial_match/100/0x292BF16Bd198b5181baDa80980D56F164fdead14/sources/TxPermission.sol | Let the `_sender` initiate any transaction if the `_sender` is in the `allowedSenders` list | if (isSenderAllowed[_sender]) {
return (ALL, false);
}
| 16,647,382 | [
1,
24181,
326,
1375,
67,
15330,
68,
18711,
1281,
2492,
309,
326,
1375,
67,
15330,
68,
353,
316,
326,
1375,
8151,
3826,
414,
68,
666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
291,
12021,
5042,
63,
67,
15330,
5717,
288,
203,
5411,
327,
261,
4685,
16,
629,
1769,
203,
3639,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0xDeFAe630D0FF3A7cf2f6e3D31A9297057FcaB8a8/sources/TED.sol | Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract TED is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address public devWallet;... | 4,103,518 | [
1,
14925,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
358,
4259,
6138,
3377,
506,
3221,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
399,
2056,
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,
640,
291,
91,
438,
58,
22,
8259,
31,
203,
... |
./partial_match/1/0x1D7DFF681a1fe7B3F753A00d973fc68FeE4a0e43/sources/MAYG_721a.sol | / maximum number of tokens that can mint in one batch | contract MAYG_721a is ERC721A, Ownable, RoyaltiesV2Impl {
bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
bool public paused = false;
string public constant _baseExtension = ".json";
uint256 private _maxFistGenMintBatchSize = 250;
uint256 private _maxFirstGenTokens = 10000;
string[20] priv... | 2,851,372 | [
1,
19,
4207,
1300,
434,
2430,
716,
848,
312,
474,
316,
1245,
2581,
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,
490,
5255,
43,
67,
27,
5340,
69,
353,
4232,
39,
27,
5340,
37,
16,
14223,
6914,
16,
534,
13372,
2390,
606,
58,
22,
2828,
288,
203,
203,
225,
1731,
24,
3238,
5381,
389,
18865,
67,
734,
67,
654,
39,
5540,
11861,
273,
374,... |
// SPDX-License-Identifier: BUSL-1.1
// Gearbox. Generalized leverage protocol that allows to take leverage and then use it across other DeFi protocols and platforms in a composable way.
// (c) Gearbox.fi, 2021
pragma solidity ^0.7.4;
pragma abicoder v2;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.so... | @title ACL keeps admins addresses More info: https://dev.gearbox.fi/security/roles Contract version emits each time when new pausable admin added emits each time when pausable admin removed emits each time when new unpausable admin added emits each times when unpausable admin removed @dev Adds pausable admin address @... | contract ACL is Ownable {
mapping(address => bool) public pausableAdminSet;
mapping(address => bool) public unpausableAdminSet;
uint256 public constant version = 1;
event PausableAdminAdded(address indexed newAdmin);
event PausableAdminRemoved(address indexed admin);
event UnpausableAdminAdd... | 13,890,390 | [
1,
9486,
20948,
31116,
6138,
16053,
1123,
30,
2333,
2207,
5206,
18,
908,
297,
2147,
18,
22056,
19,
7462,
19,
7774,
13456,
1177,
24169,
1517,
813,
1347,
394,
6790,
16665,
3981,
3096,
24169,
1517,
813,
1347,
6790,
16665,
3981,
3723,
24169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10098,
353,
14223,
6914,
288,
203,
565,
2874,
12,
2867,
516,
1426,
13,
1071,
6790,
16665,
4446,
694,
31,
203,
565,
2874,
12,
2867,
516,
1426,
13,
1071,
640,
8774,
16665,
4446,
694,
31,
203,
203,
565,
2254,
5034,
1071,
5381... |
./full_match/1/0x92ffDD3334D6C8CE4906020C453037a71b3AA8f7/sources/contracts/CIV-Vault.sol | @notice Calculate fees to the treasury address and save it in the strategy mapping and returns adjusted VPS* @dev Internal function/ @param _id Strategy _id @param _newVPS new Net Asset Value @return adjustedVPS The new VPS after fees have been deducted Calculate adjusted VPS based on the actual fee | function calculateFees(
uint _id,
uint _newVPS
) private returns (uint adjustedVPS) {
StrategyInfo storage strategy = _strategyInfo[_id];
uint sharesMultiplier = 10 ** strategy.fundRepresentToken.decimals();
uint totalSupplyShares = strategy.fundRepresentToken.totalSuppl... | 16,543,210 | [
1,
8695,
1656,
281,
358,
326,
9787,
345,
22498,
1758,
471,
1923,
518,
316,
326,
6252,
2874,
471,
1135,
13940,
776,
5857,
225,
3186,
445,
19,
225,
389,
350,
19736,
389,
350,
225,
389,
2704,
58,
5857,
394,
8503,
10494,
1445,
327,
1394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4604,
2954,
281,
12,
203,
3639,
2254,
389,
350,
16,
203,
3639,
2254,
389,
2704,
58,
5857,
203,
565,
262,
3238,
1135,
261,
11890,
13940,
58,
5857,
13,
288,
203,
3639,
19736,
966,
2502,
6252,
273,
389,
14914,
966,
63,
6... |
./full_match/1/0x9ED98fD1C29018B9342CB8F57A3073B9695f0c02/sources/solidity/contracts/TokenStaking.sol | @notice Locks given operator stake for the specified duration. Locked stake may not be recovered until the lock expires or is released, even if the normal undelegation period has passed. Only previously authorized operator contract can lock the stake. @param operator Operator address. @param duration Lock duration in ... | function lockStake(
address operator,
uint256 duration
) public onlyApprovedOperatorContract(msg.sender) {
require(
isAuthorizedForOperator(operator, msg.sender),
"Not authorized"
);
require(duration <= maximumLockDuration, "Lock duration too long"... | 8,312,185 | [
1,
19159,
864,
3726,
384,
911,
364,
326,
1269,
3734,
18,
3488,
329,
384,
911,
2026,
486,
506,
24616,
3180,
326,
2176,
7368,
578,
353,
15976,
16,
5456,
309,
326,
2212,
640,
3771,
1332,
367,
3879,
711,
2275,
18,
5098,
7243,
10799,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
2176,
510,
911,
12,
203,
3639,
1758,
3726,
16,
203,
3639,
2254,
5034,
3734,
203,
565,
262,
1071,
1338,
31639,
5592,
8924,
12,
3576,
18,
15330,
13,
288,
203,
3639,
2583,
12,
203,
5411,
353,
15341,
1290,
5592,
12,
9497,
... |
// SPDX-License-Identifier: MIT
/// @title: Secret Agent Men: The Farm
/// @author: DropHero LLC
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Ho... | This cannot be reversed! | function shutoffEmergencyWithdrawl() external onlyOwner {
_allowEmergencyFataleWithdrawl = false;
}
| 5,968,757 | [
1,
2503,
2780,
506,
9553,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
445,
9171,
3674,
1514,
24530,
1190,
9446,
80,
1435,
3903,
1338,
5541,
288,
203,
3639,
389,
5965,
1514,
24530,
19593,
73,
1190,
9446,
80,
273,
629,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/4/0xf4DFaA57818f57243801CE729d34c1eC8AD47CfF/sources/browser/hook.sol | use level 1 to 6 not 0 to 5booster for level 0 | function withdrawBoosterAndAutoPoolGain(uint256 _userId, uint256 level) public returns(string memory)
{
uint256 refCount;
uint256 lastLevel;
uint256 totalAmount;
( ,,,,lastLevel,refCount,) = mscInterface(mscContractAddress).userInfos(networkId,0,true, _userId);
if... | 742,457 | [
1,
1202,
1801,
404,
358,
1666,
486,
374,
358,
1381,
25018,
264,
364,
1801,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
26653,
264,
1876,
4965,
2864,
43,
530,
12,
11890,
5034,
389,
18991,
16,
2254,
5034,
1801,
13,
1071,
1135,
12,
1080,
3778,
13,
203,
565,
288,
203,
3639,
2254,
5034,
1278,
1380,
31,
203,
3639,
2254,
5034,
1142,... |
./full_match/3/0x5ddeD6b7328924cebbc8063744CB73F4EE5F19A5/sources/browser/FairSwap.sol | cancelled, wait for refunds Cancelled | enum Stages {
ReadyToStart,
SwapStarted,
TermsSet,
TermsAccepted,
DepositConfirmed,
Executed
}
| 14,156,362 | [
1,
10996,
1259,
16,
2529,
364,
16255,
87,
10347,
1259,
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,
2792,
934,
1023,
288,
203,
3639,
26732,
28939,
16,
203,
3639,
12738,
9217,
16,
203,
3639,
26563,
694,
16,
203,
3639,
26563,
18047,
16,
203,
3639,
4019,
538,
305,
3976,
11222,
16,
203,
3639,
3889,
4817,
203,
565,
289,
203,
37... |
./full_match/4/0x723Dc6Bfe60Db366fAE06D4c586dF0655f097dCB/sources/ThePixelPortraits.sol | the commission is no longer in the queue and has no next commission
| selectedCommission.nextCommission = 0; | 700,930 | [
1,
5787,
1543,
19710,
353,
1158,
7144,
316,
326,
2389,
471,
711,
1158,
1024,
1543,
19710,
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,
3639,
3170,
799,
3951,
18,
4285,
799,
3951,
273,
374,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/10/0xcE2fE00d755Ed116B85D665713161e5CBB2eF822/sources/contracts/diamond/facets/PointFacet.sol | @dev Setting to 0 deactivates. | function setReferReward(
uint256 amount
) external
onlyAdmin
returns (bool)
{
s.referReward = amount;
return true;
}
| 3,781,574 | [
1,
5568,
358,
374,
443,
11422,
815,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
426,
586,
17631,
1060,
12,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
282,
3903,
203,
3639,
1338,
4446,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
272,
18,
266,
586,
17631,
1060,
273,
3844,
31,
20... |
./full_match/80001/0xed36020c722C4729Df2743840CfF1C308592072f/sources/contracts/CoinFlip.sol | Pay out double the bet amount if the user wins | function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal override {
require(statuses[requestId].fees > 0, "Request not found");
statuses[requestId].fulfilled = true;
statuses[requestId].randomword = randomWords[0];
CoinFlipSelection result = CoinFlipSel... | 9,456,564 | [
1,
9148,
596,
1645,
326,
2701,
3844,
309,
326,
729,
31307,
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,
22290,
8529,
7363,
12,
11890,
5034,
14459,
16,
2254,
5034,
8526,
3778,
2744,
7363,
13,
2713,
3849,
288,
203,
3639,
2583,
12,
21655,
63,
2293,
548,
8009,
3030,
281,
405,
374,
16,
315,
691,
486,
1392,
8863,
203,
203,
3639... |
./full_match/1/0x44264E68a6624fbE20aBDD94A772BdEe3dfB9506/sources/LionKingdom.sol | * Mint LOK By User in Public/ | function publicMintByUser(uint256 mintQuantity)
public
payable
checkPublicSaleIsActive
{
uint256 totalSupply = _totalSupply();
require(mintQuantity > 0, "Mint Quantity should be more than zero");
require(totalSupply <= totalSaleElement, "Presale End");
re... | 17,012,836 | [
1,
49,
474,
1806,
47,
2525,
2177,
316,
7224,
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,
1071,
49,
474,
25895,
12,
11890,
5034,
312,
474,
12035,
13,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
866,
4782,
30746,
2520,
3896,
203,
565,
288,
203,
3639,
2254,
5034,
2078,
3088,
1283,
273,
389,
4963,
3088,
1... |
// Copyright (C) 2021 Argent Labs Ltd. <https://argent.xyz>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// T... | * @notice Confirms the pending revokation of a guardian to a wallet. The method must be called during the confirmation window and can be called by anyone to enable orchestration. @param _wallet The target wallet. @param _guardian The guardian./ | function confirmGuardianRevokation(address _wallet, address _guardian) external {
bytes32 id = keccak256(abi.encodePacked(_wallet, _guardian, "revokation"));
GuardianManagerConfig storage config = guardianConfigs[_wallet];
require(config.pending[id] > 0, "SM: unknown pending revoke");
... | 2,524,190 | [
1,
3976,
481,
959,
326,
4634,
5588,
601,
367,
434,
279,
11026,
2779,
358,
279,
9230,
18,
1021,
707,
1297,
506,
2566,
4982,
326,
14296,
2742,
471,
848,
506,
2566,
635,
1281,
476,
358,
4237,
578,
23386,
367,
18,
225,
389,
19177,
1021,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6932,
16709,
2779,
10070,
601,
367,
12,
2867,
389,
19177,
16,
1758,
389,
24594,
2779,
13,
3903,
288,
203,
3639,
1731,
1578,
612,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
24899,
19177,
16,
389,
24594,
... |
pragma solidity ^0.4.24;
import "./SafeMath.sol";
import "./CouponToken.sol";
import "./CouponTokenSale.sol";
contract CouponTokenBounty {
using SafeMath for uint256;
address private owner;
CouponToken couponToken;
CouponTokenSale couponTokenSale;
struct EventData {
string eventNam... | Function: activateBounty()/ | function activateBounty(uint32 bountyId)
external
onlyOwner
onlyInSalesState {
require(
bountyId < bountyIndex &&
bountyProgram[bountyId].activated == false &&
bountyProgram[bountyId].killed == false);
bountyProgram[bountyId].activated =... | 13,052,148 | [
1,
2083,
30,
10235,
38,
592,
93,
1435,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10235,
38,
592,
93,
12,
11890,
1578,
324,
592,
93,
548,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
203,
3639,
1338,
382,
23729,
1119,
288,
203,
203,
3639,
2583,
12,
203,
5411,
324,
592,
93,
548,
411,
324,
592,
93,
... |
./full_match/4/0x919febb6648cE9015dC71E924FedFc91A56b9a0b/sources/contracts/Comptroller.sol | account shortfall below collateral requirements)/ | function getAccountLiquidityInternal(address account) internal view returns (Error, uint, uint) {
return getHypotheticalAccountLiquidityInternal(account, CToken(address(0)), 0, 0);
}
| 770,205 | [
1,
4631,
3025,
25602,
5712,
4508,
2045,
287,
8433,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
23393,
48,
18988,
24237,
3061,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
668,
16,
2254,
16,
2254,
13,
288,
203,
3639,
327,
7628,
879,
10370,
278,
1706,
3032,
48,
18988,
24237,
3061,
12,
4631,
16,
385,
1345,
12,
2867,
... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.4;
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
/**
* @title IFO
* @notice IFO model with 2 pools
*/
contract IFO is Ree... | * @notice It returns the pool information @param _pid: poolId @return raisingAmountPool: amount of deal tokens raised (in deal tokens) @return offeringAmountPool: amount of tokens offered for the pool (in offeringTokens) @return hasTax: tax on the overflow (if any, it works with _calculateTaxOverflow) @return totalAmou... | function viewPoolInformation(uint256 _pid) external view returns (
uint256,
uint256,
uint256,
bool,
uint256,
uint256
)
{
return (
_poolInfo[_pid].raisingAmountPool,
_poolInfo[_pid].offeringAmountPool,
_poolInfo[_pid].limitPe... | 12,877,378 | [
1,
7193,
1135,
326,
2845,
1779,
225,
389,
6610,
30,
2845,
548,
327,
28014,
6275,
2864,
30,
3844,
434,
10490,
2430,
11531,
261,
267,
10490,
2430,
13,
327,
10067,
310,
6275,
2864,
30,
3844,
434,
2430,
10067,
329,
364,
326,
2845,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1476,
2864,
5369,
12,
11890,
5034,
389,
6610,
13,
3903,
1476,
1135,
261,
203,
3639,
2254,
5034,
16,
203,
3639,
2254,
5034,
16,
203,
3639,
2254,
5034,
16,
203,
3639,
1426,
16,
203,
3639,
2254,
5034,
16,
203,
3639,
2254,
... |
./full_match/43113/0x42A6d350E3d42fC86E94EDF19014d23baeDf889a/sources/contracts/MasterGamer.sol | @dev Deposit LP tokens to MasterGamer for HON allocation. First get deposited tokens Cut the pool fee from deposited then send to the feeaddr | function deposit(uint256 _pid, uint256 _amount) external validatePoolByPid(_pid) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 pending = ((user.amount.mul(pool.accHonPerShare)).div(1e12)).sub(user.re... | 13,143,671 | [
1,
758,
1724,
511,
52,
2430,
358,
13453,
43,
24458,
364,
670,
673,
13481,
18,
5783,
336,
443,
1724,
329,
2430,
385,
322,
326,
2845,
14036,
628,
443,
1724,
329,
1508,
1366,
358,
326,
1656,
684,
3069,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
443,
1724,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
3903,
1954,
2864,
858,
12478,
24899,
6610,
13,
288,
203,
565,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
565,
25003,
2502,
729,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./CitizenERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "hardhat/console.sol";
contract RevealCitizen is Ownable {
using ECDSA for bytes32;
CitizenERC721 ... | Optional mapping from token ID to device publicKeyHashes | mapping(bytes32 => uint256) private _tokensWithDevices;
| 12,071,888 | [
1,
6542,
2874,
628,
1147,
1599,
358,
2346,
12085,
14455,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
3890,
1578,
516,
2254,
5034,
13,
3238,
389,
7860,
1190,
10053,
31,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/3/0x24E8c6B90A27558baE91f7a918659D4aB628Fb70/sources/ETO.sol | * Set allowance for other address and notify Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it @param _spender The address authorized to spend @param _value the max amount they can spend @param _extraData some extra information to send to the approved contract/ | function approveAndCall(address _spender, uint256 _value, bytes _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
| 5,216,551 | [
1,
694,
1699,
1359,
364,
1308,
1758,
471,
5066,
25619,
1375,
67,
87,
1302,
264,
68,
358,
17571,
1158,
1898,
2353,
1375,
67,
1132,
68,
2430,
316,
3433,
12433,
6186,
16,
471,
1508,
10087,
326,
6835,
2973,
518,
225,
389,
87,
1302,
264,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
915,
6617,
537,
1876,
1477,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
16,
1731,
389,
7763,
751,
13,
203,
482,
203,
6154,
261,
6430,
2216,
13,
288,
203,
2316,
18241,
17571,
264,
273,
1147,
18241,
24899,
87,
1302,
... |
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "./zksync/ReentrancyGuard.sol";
import "./zksync/Events.sol";
import "./Storage.sol";
import "./zksync/Bytes.sol";
import "./zksync/Utils.sol";
import "./zksync/SafeMath.sol";
import "./zksync/SafeCast.sol"... | @notice Change current governor @param _newGovernor Address of the new governor | function changeGovernor(address _newGovernor) external onlyGovernor {
require(_newGovernor != address(0), "H");
if (networkGovernor != _newGovernor) {
networkGovernor = _newGovernor;
emit NewGovernor(_newGovernor);
}
}
| 13,005,393 | [
1,
3043,
783,
314,
1643,
29561,
225,
389,
2704,
43,
1643,
29561,
5267,
434,
326,
394,
314,
1643,
29561,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
43,
1643,
29561,
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,
44,
8863,
203,
3639,
309,
261,
5185,
43,
... |
./full_match/56/0xC04bCe930Ea928C81104e236D9925B55e8ec9823/sources/project_/contracts/current/GreenMachineMinerConfig.sol | CUSTOM (ROI events)One time event | uint256 internal roiEventBoostPercentage = 0;
| 3,241,524 | [
1,
15136,
261,
1457,
45,
2641,
13,
3335,
813,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
2713,
25017,
1133,
26653,
16397,
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,... |
// File: @openzeppelin/contracts/math/Math.sol
pragma solidity ^0.5.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b... | ========== STATE VARIABLES ========== */ ========== CONSTRUCTOR ========== */ | ) public Owned(_owner) {
rewardsToken = IERC20(TOKEN_ADDRESS_711);
stakingToken = IERC20(_stakingToken);
rewardsDistribution = IRewardsDistributor(REWARDS_DISTRIBUTOR);
vault = VAULT;
setZapper(ZAP);
}
| 15,242,209 | [
1,
1432,
631,
7442,
22965,
55,
422,
1432,
342,
422,
1432,
3492,
13915,
916,
422,
1432,
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,
... | [
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,
262,
1071,
14223,
11748,
24899,
8443,
13,
288,
203,
3639,
283,
6397,
1345,
273,
467,
654,
39,
3462,
12,
8412,
67,
15140,
67,
27,
2499,
1769,
203,
3639,
384,
6159,
1345,
273,
467,
654,
39,
3462,
24899,
334,
6159,
1345,
1769,
... |
pragma solidity ^0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
/*@CTK SafeMath_mul
@tag spec
@post __reverted == __has_assertion_failure
@post __has_assertion_failure =... | * @title Standard ERC20 token @dev Implementation of the basic standard token./ | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
@tag assume_completion
@pre _from != _to
@post __return == true
@post __post.balances[_to] == balances[_to] + _value
@post __post.balances[_from] == balances[_from] - _value
@po... | 6,519,958 | [
1,
8336,
4232,
39,
3462,
1147,
225,
25379,
434,
326,
5337,
4529,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8263,
1345,
353,
4232,
39,
3462,
16,
7651,
1345,
288,
203,
203,
225,
2874,
261,
2867,
516,
2874,
261,
2867,
516,
2254,
5034,
3719,
2713,
2935,
31,
203,
203,
203,
565,
632,
2692,
6750,
67,
11469,
203,
565,
632,
1484,
389,
... |
./full_match/77/0x24A8EB688BF52dE873E8d42144b1F84F0D9aC225/sources/contracts/Core.sol | * @notice Throw if the condition can't accept any bet now. @notice This can happen because the condition is resolved or stopped or the game the condition is bounded with is canceled @param condition the condition struct/ | function _betIsAllowed(Condition storage condition) internal view {
if (condition.state != ConditionState.CREATED) revert BetNotAllowed();
(uint64 start, bool canceled) = lp.getGameInfo(condition.gameId);
if (canceled || block.timestamp >= start) revert BetNotAllowed();
}
| 5,046,865 | [
1,
8282,
309,
326,
2269,
848,
1404,
2791,
1281,
2701,
2037,
18,
225,
1220,
848,
5865,
2724,
326,
2269,
353,
4640,
578,
9627,
578,
326,
7920,
326,
2269,
353,
28079,
598,
353,
17271,
282,
2269,
326,
2269,
1958,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
70,
278,
2520,
5042,
12,
3418,
2502,
2269,
13,
2713,
1476,
288,
203,
3639,
309,
261,
4175,
18,
2019,
480,
7949,
1119,
18,
18546,
13,
15226,
605,
278,
19354,
5621,
203,
203,
3639,
261,
11890,
1105,
787,
16,
1426,
... |
./full_match/84531/0x5336DD6ef48bBc76ac42C6E1ca212aEAD3D684B4/sources/ERC20.sol | * @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./ | constructor (string memory name_, string memory symbol_) public {
_name = name_;
_symbol = symbol_;
_decimals = 8;
}
| 11,509,130 | [
1,
2785,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5779,
11643,
288,
31734,
97,
598,
279,
805,
460,
434,
6549,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
5779,
999,
288,
67,
8401,
31809,
5496,
4826,
8925,
434,
4259,
924,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
261,
1080,
3778,
508,
67,
16,
533,
3778,
3273,
67,
13,
1071,
288,
203,
3639,
389,
529,
273,
508,
67,
31,
203,
3639,
389,
7175,
273,
3273,
67,
31,
203,
3639,
389,
31734,
273,
1725,
31,
203,
203,
565,
289,
203,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-20
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ... | * @dev Allows anyone to buy an amount of tokens at a price which matches the signature that the owner or alternate signer has approved/ | function mint(
uint256 version,
uint256 amount,
uint256 buyAmount,
uint256[4] memory pricesAndTimestamps,
bytes memory signature,
bytes memory dualSignature
) external payable {
require(
totalMinted() + buyAmount <= maxSupply,
"Over... | 6,735,496 | [
1,
19132,
1281,
476,
358,
30143,
392,
3844,
434,
2430,
622,
279,
6205,
1492,
1885,
326,
3372,
716,
326,
3410,
578,
12184,
10363,
711,
20412,
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,
312,
474,
12,
203,
3639,
2254,
5034,
1177,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
30143,
6275,
16,
203,
3639,
2254,
5034,
63,
24,
65,
3778,
19827,
1876,
23761,
16,
203,
3639,
1731,
3778,
3372,
16,
... |
./partial_match/3/0xD3596273b5FC293Dd7881C0d36A38a7472d1b008/sources/AddressTokenLocks.sol | require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "You must be admin to change Address"); | function LockAddress(address addr, uint256 amount) public onlyOwner {
require(addr != address(0), "Lock: Null Address Found");
require(amount == 0, "Lock: Your Entered Amount is Zero");
require(amount <= balanceOf(msg.sender), "Lock: Your Entered Amount is Greater then your balance");
... | 5,317,404 | [
1,
6528,
12,
5332,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
1234,
18,
15330,
3631,
315,
6225,
1297,
506,
3981,
358,
2549,
5267,
8863,
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,
3488,
1887,
12,
2867,
3091,
16,
2254,
5034,
3844,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
4793,
480,
1758,
12,
20,
3631,
315,
2531,
30,
4112,
5267,
10750,
8863,
203,
3639,
2583,
12,
8949,
422,
374,
16,
315,
25... |
./partial_match/1/0xf1636c1324D8Fdd50502E48B4E22cC95e6843650/sources/Lottery.sol | limit to 0.1 ether so that the payout is not too big that it attract the attacker
| uint public winningsLimit = 0.01 ether; | 2,775,018 | [
1,
3595,
358,
374,
18,
21,
225,
2437,
1427,
716,
326,
293,
2012,
353,
486,
4885,
5446,
716,
518,
622,
1575,
326,
13843,
264,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
5657,
82,
899,
3039,
273,
374,
18,
1611,
225,
2437,
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,
... |
// File: browser/github/0xcert/ethereum-erc721/src/contracts/ownership/ownable.sol
pragma solidity 0.6.2;
/**
* @dev The contract has an owner address, and provides basic authorization control whitch
* simplifies the implementation of user permissions. This contract is based on the source code at:
* https://github... | * @dev A distinct URI (RFC 3986) for a given NFT. @param _tokenId Id for which we want uri. @return URI of _tokenId./ | function tokenURI(
uint256 _tokenId
)
external
override
view
virtual
validNFToken(_tokenId)
returns (string memory)
{
return idToUri[_tokenId];
}
| 6,293,998 | [
1,
37,
10217,
3699,
261,
17926,
16977,
5292,
13,
364,
279,
864,
423,
4464,
18,
225,
389,
2316,
548,
3124,
364,
1492,
732,
2545,
2003,
18,
327,
3699,
434,
389,
2316,
548,
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,
225,
445,
1147,
3098,
12,
203,
565,
2254,
5034,
389,
2316,
548,
203,
225,
262,
203,
565,
3903,
203,
565,
3849,
203,
565,
1476,
203,
565,
5024,
203,
565,
923,
26473,
1345,
24899,
2316,
548,
13,
203,
565,
1135,
261,
1080,
3778,
1... |
contract webpud {
/* Public variables of the token */
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
/* This creates an array with all balances */
mapping (address => ui... | Public variables of the token */ This creates an array with all balances */ Initializes contract with initial supply tokens to the creator of the contract */ | function webpud() {
initialSupply = 40000000000000000000000000;
name ="webpud";
decimals = 18;
symbol = "wepud";
}
| 4,808,177 | [
1,
4782,
3152,
434,
326,
1147,
342,
1220,
3414,
392,
526,
598,
777,
324,
26488,
342,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3311,
84,
1100,
1435,
288,
203,
203,
540,
2172,
3088,
1283,
273,
1059,
12648,
12648,
2787,
11706,
31,
203,
540,
508,
273,
6,
4875,
84,
1100,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
540,
3273,
273,
315,
91,
881,
1... |
./partial_match/4/0x8b2aD80A38c67b32E78bC073C4f9F109B27500Af/sources/BatchExchange.sol | * @dev Ensures all array's elements are zero except the first. @param self internal datastructure created by TokenConservation.init() @return true if all, but first element of self are zero else false/ require(self[0] > 0, "Token conservation at 0 must be positive."); for (uint256 i = 1; i < self.length; i++) { req... | function checkTokenConservation(int256[] memory self) internal pure {
}
| 8,708,820 | [
1,
19869,
777,
526,
1807,
2186,
854,
3634,
1335,
326,
1122,
18,
225,
365,
2713,
5386,
13583,
2522,
635,
3155,
442,
550,
7112,
18,
2738,
1435,
327,
638,
309,
777,
16,
1496,
1122,
930,
434,
365,
854,
3634,
469,
629,
19,
2583,
12,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
866,
1345,
442,
550,
7112,
12,
474,
5034,
8526,
3778,
365,
13,
2713,
16618,
288,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/56/0x97806884E34DE10B8bD1166064028a9572c159c7/sources/MasterChef.sol | TaoToken with Governance. Copied and modified from YAM code: https:github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol https:github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol Which is copied and modified from COMPOUND: https:github.com/compound-finan... | contract TaoToken is Tao() {
mapping (address => address) internal _delegates;
struct Checkpoint {
uint32 fromBlock;
uint256 votes;
}
mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;
mapping (address => uint32) public numCheckpoints;
bytes32 publ... | 11,303,068 | [
1,
56,
6033,
1345,
598,
611,
1643,
82,
1359,
18,
28506,
2092,
471,
4358,
628,
1624,
2192,
981,
30,
2333,
30,
6662,
18,
832,
19,
93,
301,
17,
926,
1359,
19,
93,
301,
17,
8373,
19,
10721,
19,
7525,
19,
16351,
87,
19,
2316,
19,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
399,
6033,
1345,
353,
399,
6033,
1435,
288,
203,
203,
203,
565,
2874,
261,
2867,
516,
1758,
13,
2713,
389,
3771,
1332,
815,
31,
203,
203,
565,
1958,
25569,
288,
203,
3639,
2254,
1578,
628,
1768,
31,
203,
3639,
2254,
5034,
... |
./full_match/71401/0x47948654959E54bA2dCAcE556fF844631425cb11/sources/contracts/configuration/AddressesProvider.sol | @inheritdoc IAddressesProvider | function setPriceOracle(address newPriceOracle) external onlyOwner {
address oldPriceOracle = _addresses[PRICE_ORACLE];
_addresses[PRICE_ORACLE] = newPriceOracle;
emit PriceOracleUpdated(oldPriceOracle, newPriceOracle);
}
| 7,100,689 | [
1,
36,
10093,
467,
7148,
2249,
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,
225,
445,
444,
5147,
23601,
12,
2867,
394,
5147,
23601,
13,
3903,
1338,
5541,
288,
203,
565,
1758,
1592,
5147,
23601,
273,
389,
13277,
63,
7698,
1441,
67,
916,
2226,
900,
15533,
203,
565,
389,
13277,
63,
7698,
1441,
67,
916,
2226... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, ... | this function only guards against overpaying (paying more than committed amount). It didn't guard against paying to the wrong address, which should be the task of the DvP contract that calls this one. By the way DvP contract also guards against overpaying. It's just checked twice. This function might replace moveT... | function pay(uint256 commitmentId, uint256 amount, address payable beneficiary) external override {
Commitment memory commit = _commitments[commitmentId];
if (msg.sender != _dvpContract && msg.sender != commit.adrPayee) {
revert CallerNotAuthorised();
}
if (com... | 5,906,937 | [
1,
2211,
445,
1338,
11026,
87,
5314,
1879,
10239,
310,
261,
10239,
310,
1898,
2353,
16015,
225,
3844,
2934,
2597,
10242,
1404,
11026,
5314,
8843,
310,
358,
326,
7194,
1758,
16,
1492,
225,
1410,
506,
326,
1562,
434,
326,
463,
90,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8843,
12,
11890,
5034,
23274,
548,
16,
2254,
5034,
3844,
16,
1758,
8843,
429,
27641,
74,
14463,
814,
13,
3903,
3849,
288,
203,
3639,
10269,
475,
3778,
3294,
273,
389,
7371,
1346,
63,
7371,
475,
548,
15533,
203,
203,
540... |
pragma solidity 0.4.18;
// File: zeppelin-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 owner;
... | TokenTimelock logic constructor | contract OAKTokenCrowdsale is FinalizableCrowdsale, Pausable {
uint256 public restrictedPercent;
address public restricted;
uint256 public soldTokens;
uint256 public hardCap;
uint256 public vipRate;
uint256 public totalTokenSupply;
mapping(address => bool) public vip;
uint256 public ... | 15,171,682 | [
1,
1345,
10178,
292,
975,
4058,
3885,
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,
16351,
531,
14607,
1345,
39,
492,
2377,
5349,
353,
16269,
6934,
39,
492,
2377,
5349,
16,
21800,
16665,
288,
203,
203,
565,
2254,
5034,
1071,
15693,
8410,
31,
203,
565,
1758,
1071,
15693,
31,
203,
565,
2254,
5034,
1071,
272,
1673,
... |
/*
Built and deployed using FTP Deployer, a service of Fair Token Project.
Deploy your own token today at https://app.fairtokenproject.com#deploy
AlienClub Socials:
Telegram: https://t.me/AlienClubLASC
Twitter: https://twitter.com/alienclublasc?s=21
Website: https://alienclub.cc
** Secured With FTPAntibot **
** Using... | TOKEN EXCHANGES TRANSACTIONS ETH REFLECT ANTIBOT MISC | contract AlienClub is Context, IERC20, Taxable {
using SafeMath for uint256;
uint256 private constant TOTAL_SUPPLY = 1000000 * 10**9;
string private m_Name = "AlienClub";
string private m_Symbol = "ALIEN";
uint8 private m_Decimals = 9;
address private m_UniswapV2Pair;
IUniswapV2Router02 priv... | 9,914,986 | [
1,
8412,
5675,
1792,
3388,
3991,
24896,
55,
512,
2455,
20557,
3918,
27274,
13450,
1974,
20806,
2312,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
549,
275,
2009,
373,
353,
1772,
16,
467,
654,
39,
3462,
16,
18240,
429,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
2254,
5034,
3238,
5381,
399,
19851,
67,
13272,
23893,
273,
15088,
380,
1728,
63... |
./partial_match/1/0x787d7b7FE2dCD549D9005850f67CCE602B83e60C/sources/PBasicSmartPool.sol | / If taking loss on token skip one iteration of the loop | function exitPoolTakingloss(uint256 _amount, address[] calldata _lossTokens) external ready noReentry {
IBPool bPool = lpbs().bPool;
uint poolTotal = totalSupply();
uint ratio = _amount.bdiv(poolTotal);
require(ratio != 0);
_pullPoolShare(msg.sender, _amount);
_burnP... | 3,612,244 | [
1,
19,
971,
13763,
8324,
603,
1147,
2488,
1245,
6532,
434,
326,
2798,
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,
2427,
2864,
56,
6159,
7873,
12,
11890,
5034,
389,
8949,
16,
1758,
8526,
745,
892,
389,
7873,
5157,
13,
3903,
5695,
1158,
426,
4099,
288,
203,
3639,
23450,
2864,
324,
2864,
273,
12423,
2038,
7675,
70,
2864,
31,
203,
3639... |
pragma solidity ^0.5.0;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*
* Subtraction and addition only here.
*/
library SafeMath {
/**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
... | * METHOD: Unfreeze a user address. @dev Admin can call this method to unfreeze a user account. @param _user user address./ | function unfreeze(address _user) public adminOperations {
require(_user != address(0), "the address to be unfrozen cannot be 0");
bicaLedger.unfreezeByAddress(_user);
emit AddressUnfrozenInLogic(_user);
}
| 2,479,130 | [
1,
5327,
30,
1351,
29631,
279,
729,
1758,
18,
225,
7807,
848,
745,
333,
707,
358,
640,
29631,
279,
729,
2236,
18,
225,
389,
1355,
729,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
640,
29631,
12,
2867,
389,
1355,
13,
1071,
3981,
9343,
288,
203,
3639,
2583,
24899,
1355,
480,
1758,
12,
20,
3631,
315,
5787,
1758,
358,
506,
640,
28138,
2780,
506,
374,
8863,
203,
3639,
324,
26433,
28731,
18,
318,
2963... |
pragma solidity ^0.4.23;
contract Necropolis {
function addDragon(address _lastDragonOwner, uint256 _dragonID, uint256 _deathReason) external;
}
contract GenRNG {
function getNewGens(address _from, uint256 _dragonID) external returns (uint256[2] resultGen);
}
contract DragonSelectFight2Death ... | 0 - free, 1 - fight place, 2 - random fight, 3 - breed market, 4 - breed auction, 5 - random breed ... 0xFF - Necropolis | struct Dragon {
uint256 gen1;
uint8 currentAction;
uint240 gen2;
uint256 nextBlock2Action;
}
Dragon[] public dragons;
mapping(uint256 => string) public dragonName;
| 12,891,467 | [
1,
20,
300,
4843,
16,
404,
300,
284,
750,
3166,
16,
576,
300,
2744,
284,
750,
16,
890,
300,
324,
15656,
13667,
16,
1059,
300,
324,
15656,
279,
4062,
16,
1381,
300,
2744,
324,
15656,
1372,
374,
6356,
300,
423,
557,
1764,
355,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
28425,
265,
288,
203,
3639,
2254,
5034,
3157,
21,
31,
203,
3639,
2254,
28,
783,
1803,
31,
203,
3639,
2254,
28784,
3157,
22,
31,
203,
3639,
2254,
5034,
1024,
1768,
22,
1803,
31,
203,
565,
289,
203,
203,
565,
28425,
26... |
pragma solidity ^0.6.0;
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import "./multiAccessUpgradeable.sol";
import "./cryptoblades.sol";
import "./characters.sol";
import "./weapons.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
abstract contract Raid is Initializable, MultiAcc... | THIS AND raidBasic.sol are old unused files, DO NOT USE! Outline raids contract that we can iterate on and deploy multiple of. Needs to be granted access to NFT contracts to interact with them | abstract contract Raid is Initializable, MultiAccessUpgradeable {
bool internal completed;
CryptoBlades internal game;
Characters internal characters;
Weapons internal weapons;
struct Raider {
uint256 owner;
uint256 charID;
uint256 wepID;
uint24 power;
}
... | 2,519,800 | [
1,
2455,
5127,
4116,
767,
350,
8252,
18,
18281,
854,
1592,
10197,
1390,
16,
5467,
4269,
14988,
5,
2976,
1369,
767,
2232,
6835,
716,
732,
848,
7401,
603,
471,
7286,
3229,
434,
18,
29164,
358,
506,
17578,
2006,
358,
423,
4464,
20092,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17801,
6835,
9040,
350,
353,
10188,
6934,
16,
5991,
1862,
10784,
429,
288,
203,
203,
203,
203,
565,
1426,
2713,
5951,
31,
203,
203,
565,
15629,
4802,
16601,
2713,
7920,
31,
203,
565,
3703,
9202,
2713,
3949,
31,
203,
565,
1660,
43... |
./full_match/1/0xCCCcA6751AD6285b4cD006552A9ec21BaEdA35d0/sources/src/core/SimpleSettlement.sol | * @notice Helper function to setup mint options action @return vault array of option mints for vault @return counterparty array of option mints for counterparty/ counterparty receives negative weighted instruments (vault is short) vault receives positive weighted instruments (vault long) | function _createMints(
address _vault,
address _counterparty,
uint256[] memory _options,
int256[] memory _weights,
bool _isCashSettled
) internal pure returns (ActionArgs[] memory vault, ActionArgs[] memory counterparty) {
unchecked {
if (_options.leng... | 16,471,025 | [
1,
2276,
445,
358,
3875,
312,
474,
702,
1301,
327,
9229,
526,
434,
1456,
312,
28142,
364,
9229,
327,
3895,
21214,
526,
434,
1456,
312,
28142,
364,
3895,
21214,
19,
3895,
21214,
17024,
6092,
13747,
29555,
261,
26983,
353,
3025,
13,
922... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2640,
49,
28142,
12,
203,
3639,
1758,
389,
26983,
16,
203,
3639,
1758,
389,
7476,
21214,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
2116,
16,
203,
3639,
509,
5034,
8526,
3778,
389,
9727,
16,
203,
3639,
1426,
389,
... |
./partial_match/42/0x46AD562b02b075bF1f607f1df00Ed8f95f8576BF/sources/Liquidations.sol | Liquidation closed if collateral ratio less than or equal target issuance Ratio Account with no snx collateral will also not be open for liquidation (ratio is 0) liquidation cap at issuanceRatio is checked above | function isOpenForLiquidation(address account) external view returns (bool) {
uint accountCollateralisationRatio = synthetix().collateralisationRatio(account);
if (accountCollateralisationRatio <= getIssuanceRatio()) {
return false;
}
LiquidationEntry memory liquidation... | 3,303,069 | [
1,
48,
18988,
350,
367,
4375,
309,
4508,
2045,
287,
7169,
5242,
2353,
578,
3959,
1018,
3385,
89,
1359,
534,
4197,
6590,
598,
1158,
4556,
92,
4508,
2045,
287,
903,
2546,
486,
506,
1696,
364,
4501,
26595,
367,
261,
9847,
353,
374,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
16633,
1290,
48,
18988,
350,
367,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
2236,
13535,
2045,
287,
10742,
8541,
273,
6194,
451,
278,
697,
7675,
12910,
2045,
287,
10742,
8541,
12,
4631,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
import "./interfaces/IOniiChainDescriptor.sol";
import "./interfaces/IOniiChain.sol";
import "./libraries/NFTDescriptor.sol";
import "./libraries/DetailHelper.sol";
import "base64-sol/base64.sol";
/// @title Describes Onii
/// @notice Produc... | @dev Right and left eyes (blank pupils + eyes) | function eyesNoFillAndBlankPupils(string memory scleraColor, string memory pupilsColor)
private
pure
returns (string memory)
{
return base(string(abi.encodePacked(eyesNoFill(scleraColor), blankPupils(pupilsColor))));
}
| 5,890,292 | [
1,
4726,
471,
2002,
12739,
281,
261,
12111,
293,
416,
14573,
397,
12739,
281,
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,
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,
12739,
281,
2279,
8026,
1876,
7796,
52,
416,
14573,
12,
1080,
3778,
888,
749,
69,
2957,
16,
533,
3778,
293,
416,
14573,
2957,
13,
203,
3639,
3238,
203,
3639,
16618,
203,
3639,
1135,
261,
1080,
3778,
13,
203,
565,
288,
... |
./full_match/43113/0x01C6D365d5Cacc670EdC10Ce442E3DF343420Bbb/sources/apps/avai/src/contracts/Stablecoin.sol | * @dev Overload {_setupRole} to track enumerable memberships/ | function _setupRole(bytes32 role, address account) internal virtual override {
super._setupRole(role, account);
_roleMembers[role].add(account);
}
| 7,174,576 | [
1,
4851,
945,
288,
67,
8401,
2996,
97,
358,
3298,
14873,
12459,
87,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
8401,
2996,
12,
3890,
1578,
2478,
16,
1758,
2236,
13,
2713,
5024,
3849,
288,
203,
565,
2240,
6315,
8401,
2996,
12,
4615,
16,
2236,
1769,
203,
565,
389,
4615,
6918,
63,
4615,
8009,
1289,
12,
4631,
1769,
203,
225,
... |
./full_match/1/0xE5d35f68BB3e47bE5161387b061973e6F27a4C0c/sources/DUTToken.sol | * @dev ERC20Token implementation with Burn, Tax capabilities/ | contract DUTToken is ERC20Base, ERC20Burnable, Ownable, TaxableToken {
constructor(
uint256 initialSupply_,
address feeReceiver_,
address swapRouter_,
FeeConfiguration memory feeConfiguration_,
address[] memory collectors_,
uint256[] memory shares_
)
payab... | 2,989,483 | [
1,
654,
39,
3462,
1345,
4471,
598,
605,
321,
16,
18240,
12359,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
463,
1693,
1345,
353,
4232,
39,
3462,
2171,
16,
4232,
39,
3462,
38,
321,
429,
16,
14223,
6914,
16,
18240,
429,
1345,
288,
203,
565,
3885,
12,
203,
3639,
2254,
5034,
2172,
3088,
1283,
67,
16,
203,
3639,
1758,
14036,
12952,
... |
//Address: 0x1de89382684ce5a99fc9d3d4b709706d6a013571
//Contract name: SolutionGame
//Balance: 0.542 Ether
//Verification Date: 6/15/2018
//Transacion Count: 89
// CODE STARTS HERE
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
... | @dev increase prize fund | function _addToFund(uint _val, bool isAll) internal whenNotPaused {
if(isAll) {
prizeFund = prizeFund.add(_val);
prizeFund = prizeFund.add(_val.mul(prizeFundFactor).div(10000));
}
}
| 6,409,445 | [
1,
267,
11908,
846,
554,
284,
1074,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1289,
774,
42,
1074,
12,
11890,
389,
1125,
16,
1426,
353,
1595,
13,
2713,
1347,
1248,
28590,
288,
203,
3639,
309,
12,
291,
1595,
13,
288,
203,
5411,
846,
554,
42,
1074,
273,
846,
554,
42,
1074,
18,
1289,
24899,
... |
./full_match/1/0x62BF548B95e48ff169C1bAcC59B9BC99B014e273/sources/contracts/BridgeUpgradeable.sol | EXCESS_TOKENS_REQUESTED
| require(_noOfTokens <= transferMapping[key], "ETR"); | 2,932,439 | [
1,
2294,
5119,
67,
8412,
55,
67,
5519,
2056,
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,
2583,
24899,
2135,
951,
5157,
1648,
7412,
3233,
63,
856,
6487,
315,
1584,
54,
8863,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "./interfaces/ManagerLike.sol";
import "./interfaces/ICommand.sol";
import "./interfaces/BotLike.sol";
import "./ServiceRegistry.sol";
import "./interfaces/SpotterLike.sol";
import "./interfaces/VatLike.sol";
import "./interfaces/OsmMomLike.sol";
impo... | @title Getter contract for Vault info from Maker protocol | contract McdView is DSMath {
ManagerLike public manager;
VatLike public vat;
SpotterLike public spotter;
OsmMomLike public osmMom;
address public owner;
mapping(address => bool) public whitelisted;
constructor(
address _vat,
address _manager,
address _spotter,
... | 9,866,541 | [
1,
8461,
6835,
364,
17329,
1123,
628,
490,
6388,
1771,
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,
16351,
490,
4315,
1767,
353,
463,
7303,
421,
288,
203,
565,
8558,
8804,
1071,
3301,
31,
203,
565,
25299,
8804,
1071,
17359,
31,
203,
565,
26523,
387,
8804,
1071,
16463,
387,
31,
203,
565,
531,
4808,
49,
362,
8804,
1071,
1140,
81,... |
// SPDX-License-Identifier: AGPL-3.0-only
/*
Bounty.sol - SKALE Manager
Copyright (C) 2020-Present SKALE Labs
@author Dmytro Stebaiev
SKALE Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Softw... | * @dev Checks whether sending Alright response is possible./ | function isAlrightPossible(bytes32 schainHash, uint nodeIndex) external view returns (bool) {
(uint index, bool check) = checkAndReturnIndexInGroup(schainHash, nodeIndex, false);
return channels[schainHash].active &&
check &&
_isNodeOwnedByMessageSender(nodeIndex, msg.sender)... | 10,036,676 | [
1,
4081,
2856,
5431,
2262,
4083,
766,
353,
3323,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
1067,
4083,
13576,
12,
3890,
1578,
272,
5639,
2310,
16,
2254,
756,
1016,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
261,
11890,
770,
16,
1426,
866,
13,
273,
30970,
990,
1016,
31138,
12,
87,
5639,
2310,
... |
./full_match/4/0x38E8e9E5206b1FeF9C5Eb36FBF69D3F396303eca/sources/browser/marketplace.sol | to check if auction started
| bool auctionstarted = false; | 671,986 | [
1,
869,
866,
309,
279,
4062,
5746,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1426,
279,
4062,
14561,
273,
629,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-3.0
/// @title The Rakuten Monkey Sponsors Club auction house
// LICENSE
// AuctionHouse.sol is a modified version of Zora's AuctionHouse.sol:
// https://github.com/ourzora/auction-house/blob/54a12ec1a6cf562e49f0a4917990474b11350a2d/contracts/AuctionHouse.sol
//
// AuctionHouse.sol sour... | * @notice Create an auction. @dev Store the auction details in the `auction` state variable and emit an AuctionCreated event. If the mint reverts, the minter was updated without pausing this contract first. To remedy this, catch the revert and pause this contract./ | function _createAuction() internal {
try NFT(rmsc).mint(address(this)) returns (uint256 tokenId) {
uint256 startTime = block.timestamp;
uint256 endTime = startTime + duration;
auction = Auction({
tokenId: tokenId,
amount: 0,
... | 1,156,720 | [
1,
1684,
392,
279,
4062,
18,
225,
4994,
326,
279,
4062,
3189,
316,
326,
1375,
69,
4062,
68,
919,
2190,
471,
3626,
392,
432,
4062,
6119,
871,
18,
971,
326,
312,
474,
15226,
87,
16,
326,
1131,
387,
1703,
3526,
2887,
6790,
9940,
333,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
389,
2640,
37,
4062,
1435,
2713,
288,
203,
3639,
775,
423,
4464,
12,
29716,
71,
2934,
81,
474,
12,
2867,
12,
2211,
3719,
1135,
261,
11890,
5034,
1147,
548,
13,
288,
203,
5411,
2254,
5034,
8657,
273,
1203,
18,
5508,
31... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;
// -----------------------------------
// ALUMNO | ID | NOTA
// -----------------------------------
// Marcos | 77755N | 5
// Joan | 12345X | 9
// Maria | 02468T | 2
//... | Funcion para pedir una revision del examen Almacenamiento de la identidad del alumno en un array Emision del evento | function Revision(string memory _asignatura, string memory _idAlumno) public {
revisiones[_asignatura].push(_idAlumno);
emit evento_revision(_idAlumno);
}
| 13,081,354 | [
1,
2622,
285,
12602,
293,
23210,
28842,
6350,
1464,
19707,
275,
2262,
5821,
275,
301,
1979,
83,
443,
7125,
3390,
350,
361,
1464,
524,
755,
83,
570,
640,
526,
7377,
1951,
1464,
871,
83,
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,
1,
0,
0,
0,
0,
0,
0,
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,
13132,
12,
1080,
3778,
389,
345,
724,
270,
21401,
16,
533,
3778,
389,
350,
1067,
755,
83,
13,
1071,
288,
203,
3639,
6350,
281,
63,
67,
345,
724,
270,
21401,
8009,
6206,
24899,
350,
1067,
755,
83,
1769,
203,
3639,
3626... |
./partial_match/1/0x7fb8f5D04b521B6880158819E69538655AABD5c4/sources/GasStationExact.sol | * @notice Removes Recipients/ function removeRecipients(address[] calldata recipients) public onlyOwner { | for (uint i = 0; i < recipients.length; i++) {
if (WatchList.remove(recipients[i])) {
recipientConfigs[recipients[i]].isActive = false;
emit RecipientRemoved(recipients[i]);
emit RemoveNonexistentRecipient(recipients[i]);
}
}
| 3,542,032 | [
1,
6220,
868,
15079,
19,
565,
445,
1206,
22740,
12,
2867,
8526,
745,
892,
12045,
13,
1071,
1338,
5541,
288,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
12045,
18,
2469,
31,
277,
27245,
288,
203,
5411,
309,
261,
5234,
682,
18,
4479,
12,
27925,
63,
77,
22643,
288,
203,
7734,
8027,
8062,
63,
27925,
63,
77,
65,
8009,
291,
3896,
... |
pragma solidity ^0.4.4;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balan... | Set the name for display purposes
| name = "LIBRA CASH"; | 13,809,089 | [
1,
694,
326,
508,
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,
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,
508,
273,
315,
14484,
2849,
6425,
2664,
14432,
4766,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x8627e113715D6E5E6d59d8f34414160bac2415E4/sources/contracts/producers/crowdfunds/crowdfund-with-editions/CrowdfundWithEditionsStorage.sol | @notice Fee percentage that the crowdfund pays to the treasury. | uint256 public feePercentage;
| 4,921,262 | [
1,
14667,
11622,
716,
326,
276,
492,
2180,
1074,
293,
8271,
358,
326,
9787,
345,
22498,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14036,
16397,
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... |
./full_match/80001/0x384605D4c200E410d3AE5860b83A4DD71B245E77/sources/src/Contract.sol | require(!raffleStatus, "Raffle is still ongoing"); | function withdrawBalance() public onlyOwner {
require(address(this).balance > 0, "No balance to withdraw");
uint256 balance = address(this).balance;
payable(owner).transfer(balance);
emit BalanceWithdrawn(balance);
}
| 5,628,997 | [
1,
6528,
12,
5,
354,
1403,
298,
1482,
16,
315,
54,
7329,
298,
353,
4859,
30542,
8863,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13937,
1435,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
2867,
12,
2211,
2934,
12296,
405,
374,
16,
315,
2279,
11013,
358,
598,
9446,
8863,
203,
203,
3639,
2254,
5034,
11013,
273,
1758,
12,
2211,
2934,
12296,
... |
./full_match/1/0x8D127A72eC9E591147Cf8827da1e47Ab7035b582/sources/contracts/DegenMoodSwings.sol | setting price of token
| price = _price; | 3,175,299 | [
1,
8920,
6205,
434,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
6205,
273,
389,
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,
-100,
-100,
-100,
... |
./partial_match/1/0x49E6f06fb6d10D787Ab56b6543556c9249d052BE/sources/D3MJob.sol | Timestamp of when exec is allowed again
| mapping (bytes32 => uint256) public expiry; | 16,031,813 | [
1,
4921,
434,
1347,
1196,
353,
2935,
3382,
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,
2874,
261,
3890,
1578,
516,
2254,
5034,
13,
1071,
10839,
31,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x66C35f774674982C36143571e5906E876B228876/sources/contracts/OKLGAtomicSwapInstance.sol | This must be called AFTER fundSendToDestinationGas has been executed for this txn to fund this send operation handle if this token and target chain token in bridge have different decimals current decimals = 9 -- 100 tokens == 100000000000 target decimals = 18 -- 100 tokens == 100000000000000000000 to get current amoun... | function sendTokensToDestination(bytes32 _id) external returns (bytes32) {
require(isActive, 'this atomic swap instance is not active');
Swap storage swap = swaps[_id];
_confirmSwapExistsGasFundedAndSenderValid(swap);
uint256 _swapAmount = swap.amount;
if (targetTokenDecimals > 0) {
_swap... | 2,842,069 | [
1,
2503,
1297,
506,
2566,
18651,
284,
1074,
3826,
774,
5683,
27998,
711,
2118,
7120,
364,
333,
7827,
358,
284,
1074,
333,
1366,
1674,
1640,
309,
333,
1147,
471,
1018,
2687,
1147,
316,
10105,
1240,
3775,
15105,
783,
15105,
273,
2468,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1366,
5157,
774,
5683,
12,
3890,
1578,
389,
350,
13,
3903,
1135,
261,
3890,
1578,
13,
288,
203,
565,
2583,
12,
291,
3896,
16,
296,
2211,
7960,
7720,
791,
353,
486,
2695,
8284,
203,
203,
565,
12738,
2502,
7720,
273,
13... |
./full_match/5/0xa484607e066A2322f32545Ae3Fb57f4c504D949E/sources/contracts/MintedVerseTeddies.sol | set up events to be emitted. The cost of each teddy. The max mint quantity determines how many can be minted at a time. The total number of teddies that are available in this collection Teddies minted from our Series 1 collection in this contract are eligible for a preMint. The baseUri will be used to determine the To... | contract MintedVerseTeddies is ERC721, ERC721Enumerable, ERC2981, EIP712, Ownable, DefaultOperatorFilterer {
using Counters for Counters.Counter;
event MaxMintChanged(uint256 maxMint);
event MaxPremintsChanged(uint256 maxMint);
event MintedTeddyContractChanged(address mintedTeddyContractAddress);
e... | 1,869,590 | [
1,
542,
731,
2641,
358,
506,
17826,
18,
1021,
6991,
434,
1517,
268,
329,
15680,
18,
1021,
943,
312,
474,
10457,
12949,
3661,
4906,
848,
506,
312,
474,
329,
622,
279,
813,
18,
1021,
2078,
1300,
434,
268,
329,
72,
606,
716,
854,
231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
490,
474,
329,
3945,
307,
56,
329,
72,
606,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
4232,
39,
5540,
11861,
16,
512,
2579,
27,
2138,
16,
14223,
6914,
16,
2989,
5592,
1586,
264,
288,
203,
565,
1... |
./full_match/137/0x71741de8aD18bB0081bc0be7aB2e7220Fd1E133A/sources/ERC20T_flat.sol | /Method for converting amount to percent and forming LibPart*/ | function _onRoyaltiesSet(uint256 id, LibPart.Part[] memory _royalties) virtual internal;
}
pragma solidity ^0.8.0;
}
pragma solidity ^0.8.0;
}
pragma solidity ^0.8.0;
function calculateRoyalties(address to, uint256 amount) internal pure returns (LibPart.Part[] memory) {
LibPart.Part[] me... | 4,699,792 | [
1,
19,
1305,
364,
14540,
3844,
358,
5551,
471,
646,
310,
10560,
1988,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
265,
54,
13372,
2390,
606,
694,
12,
11890,
5034,
612,
16,
10560,
1988,
18,
1988,
8526,
3778,
389,
3800,
2390,
606,
13,
5024,
2713,
31,
203,
97,
203,
203,
203,
203,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
... |
./full_match/1/0x2f06F83f960ea999536f94df279815F79EeB4054/sources/contracts/Create3/ICREATE3Factory.sol | @title Factory for deploying contracts to deterministic addresses via CREATE3 @author zefram.eth @notice Enables deploying contracts using CREATE3. Each deployer (msg.sender) has its own namespace for deployed addresses. | interface ICREATE3Factory {
function deploy(bytes32 salt, bytes memory creationCode) external payable returns (address deployed);
function getDeployed(address deployer, bytes32 salt) external view returns (address deployed);
pragma solidity >=0.6.0;
}
| 2,946,530 | [
1,
1733,
364,
7286,
310,
20092,
358,
25112,
6138,
3970,
13278,
23,
225,
998,
10241,
1940,
18,
546,
225,
1374,
1538,
7286,
310,
20092,
1450,
13278,
23,
18,
8315,
7286,
264,
261,
3576,
18,
15330,
13,
711,
2097,
4953,
1981,
364,
19357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
9344,
23,
1733,
288,
203,
565,
445,
7286,
12,
3890,
1578,
4286,
16,
1731,
3778,
6710,
1085,
13,
3903,
8843,
429,
1135,
261,
2867,
19357,
1769,
203,
203,
565,
445,
336,
31954,
12,
2867,
7286,
264,
16,
1731,
1578,
4286,
... |
./full_match/1/0xefaCa6Fc316B3B2Aa6c55FF5E02a62A85d4391e8/sources/contracts/storage/Market.sol | * @dev Thrown when a specified market is not found./ | struct Data {
uint128 id;
address marketAddress;
int128 netIssuanceD18;
int128 creditCapacityD18;
int128 lastDistributedMarketBalanceD18;
HeapUtil.Data inRangePools;
HeapUtil.Data outRangePools;
Distribution.Data poolsDebtDistribution;
mapping(... | 16,517,188 | [
1,
29591,
1347,
279,
1269,
13667,
353,
486,
1392,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
1910,
288,
203,
3639,
2254,
10392,
612,
31,
203,
3639,
1758,
13667,
1887,
31,
203,
3639,
509,
10392,
2901,
7568,
89,
1359,
40,
2643,
31,
203,
3639,
509,
10392,
12896,
7437,
40,
2643,
31,
203,
3639,
509,
10392,
1142,
16... |