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.5.11;
pragma experimental "ABIEncoderV2";
import "../libs/LibStateChannelApp.sol";
contract MChallengeRegistryCore {
// A mapping of appIdentityHash to AppChallenge structs which represents
// the current on-chain status of some particular application's state.
mapping (bytes32 => LibStateCha... | @notice Compute a unique hash for an action used in this channel application @param turnTaker The address of the user taking the action @param previousState The hash of a state this action is being taken on @param action The ABI encoded version of the action being taken @param versionNumber The versionNumber of the st... | function computeActionHash(
address turnTaker,
bytes32 previousState,
bytes memory action,
uint256 versionNumber
)
internal
pure
returns (bytes32)
{
return keccak256(
abi.encodePacked(
byte(0x19),
turnTaker,
previousState,
action,
versi... | 14,073,457 | [
1,
7018,
279,
3089,
1651,
364,
392,
1301,
1399,
316,
333,
1904,
2521,
225,
7005,
56,
6388,
1021,
1758,
434,
326,
729,
13763,
326,
1301,
225,
2416,
1119,
1021,
1651,
434,
279,
919,
333,
1301,
353,
3832,
9830,
603,
225,
1301,
1021,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3671,
1803,
2310,
12,
203,
565,
1758,
7005,
56,
6388,
16,
203,
565,
1731,
1578,
2416,
1119,
16,
203,
565,
1731,
3778,
1301,
16,
203,
565,
2254,
5034,
1177,
1854,
203,
225,
262,
203,
565,
2713,
203,
565,
16618,
203,
56... |
./partial_match/1/0x67bC2461000cfbe67e9b623EC8B460168BdEC5F0/sources/MainStorage.sol | NOLINT: uninitialized-state.
| mapping(uint256 => uint256) assetTypeToQuantum; | 2,863,643 | [
1,
50,
1741,
3217,
30,
640,
13227,
17,
2019,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
3310,
559,
774,
19471,
379,
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... |
./full_match/71402/0x2066CAe939E14599f6ED79036b30541328B4C9B6/sources/_balancer-labs/v2-interfaces/contracts/pool-linear/IUnbuttonToken.sol | Balancer only supports ERC20 tokens, so we use this intermediate interface to enforce ERC20-ness of UnbuttonTokens. solhint-disable-previous-line no-empty-blocks | interface IUnbuttonToken is IButtonWrapper, IERC20 {
}
| 7,092,738 | [
1,
6444,
1338,
6146,
4232,
39,
3462,
2430,
16,
1427,
732,
999,
333,
12110,
1560,
358,
12980,
4232,
39,
3462,
17,
4496,
434,
1351,
5391,
5157,
18,
3704,
11317,
17,
8394,
17,
11515,
17,
1369,
1158,
17,
5531,
17,
7996,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
984,
5391,
1345,
353,
467,
3616,
3611,
16,
467,
654,
39,
3462,
288,
203,
203,
203,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
ret... | TODO 5m USD. To be determined based on ETH to USD price at the date of presale.
| maxCapWei = 8000 ether; | 245,585 | [
1,
6241,
1381,
81,
587,
9903,
18,
2974,
506,
11383,
2511,
603,
512,
2455,
358,
587,
9903,
6205,
622,
326,
1509,
434,
4075,
5349,
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,
... | [
1,
1,
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,
943,
4664,
3218,
77,
273,
1725,
3784,
225,
2437,
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,
-1... |
// SPDX-License-Identifier: Apache-2.0
/*
Modifications Copyright 2022 Element.Market
Copyright 2021 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.or... | Taker must match the order taker, if one is specified. Check that the order is valid and has not expired, been cancelled, or been filled. Check the signature. | function _validateSellOrder(
LibNFTOrder.NFTSellOrder memory sellOrder,
LibSignature.Signature memory signature,
LibNFTOrder.OrderInfo memory orderInfo,
address taker
) internal view {
require(sellOrder.taker == address(0) || sellOrder.taker == taker, "_validateOrder/ONLY... | 1,499,190 | [
1,
56,
6388,
1297,
845,
326,
1353,
268,
6388,
16,
309,
1245,
353,
1269,
18,
2073,
716,
326,
1353,
353,
923,
471,
711,
486,
7708,
16,
2118,
13927,
16,
578,
2118,
6300,
18,
2073,
326,
3372,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
5662,
55,
1165,
2448,
12,
203,
3639,
10560,
50,
4464,
2448,
18,
50,
4464,
55,
1165,
2448,
3778,
357,
80,
2448,
16,
203,
3639,
10560,
5374,
18,
5374,
3778,
3372,
16,
203,
3639,
10560,
50,
4464,
2448,
18,
2448,
966... |
/**
* Note for the truffle testversion:
* DragonKingTest inherits from DragonKing and adds one more function for testing the volcano from truffle.
* For deployment on ropsten or mainnet, just deploy the DragonKing contract and remove this comment before verifying on
* etherscan.
* */
/**
* Dragonking i... | * timestampt of the last eruption event **/ | uint256 public lastEruptionTimestamp;
| 1,757,997 | [
1,
8584,
395,
301,
337,
434,
326,
1142,
6445,
89,
375,
871,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
1142,
41,
21421,
4921,
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,
... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
contract CryptoStar is ERC721, Ownable {
// https://ethereum.meta.stackexchange.com/questions/443/blog-simple-storage-patterns-in-solidity
// Using struct... | ERROR: type should be string, got " https:ethereum.stackexchange.com/questions/11758/converting-oraclize-result-from-string-to-address?rq=1 Adapted, by Miguel Mota Parses a string address and returns an address type" | function parseAddress(bytes _address) public pure returns (address) {
uint160 m = 0;
uint160 b = 0;
for (uint8 i = 0; i < 20; i++) {
m *= 256;
b = uint160(_address[i]);
m += (b);
}
return address(m);
}
| 12,613,078 | [
1,
4528,
30,
546,
822,
379,
18,
3772,
16641,
18,
832,
19,
9758,
19,
2499,
5877,
28,
19,
6283,
310,
17,
280,
10150,
554,
17,
2088,
17,
2080,
17,
1080,
17,
869,
17,
2867,
35,
86,
85,
33,
21,
22792,
329,
16,
635,
490,
8810,
292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
445,
1109,
1887,
12,
3890,
389,
2867,
13,
1071,
16618,
1135,
261,
2867,
13,
288,
203,
3639,
2254,
16874,
312,
273,
374,
31,
203,
3639,
2254,
16874,
324,
273,
374,
31,
203,
203,
3639,
364,
261,
11890,
28,
277,
273,
374,
31,... |
./full_match/5/0x999512dC124371E6B9ff43CE8D1AF83252F0C851/sources/src/BaseVault.sol | * @notice Redeems a queued withdrawal for `recipient`. The user can redeem the tokens after the rebalance. This can be easily check by comparing the current round with the round of the withdrawal, if they're equal, the withdrawal is still pending. @param recipient The address that will receive the withdrawn tokens afte... | function redeemQueuedWithdrawal(uint256 round, address recipient)
public
virtual
override
nonReentrant
onlyValidRecipient(recipient)
returns (uint256 amountX, uint256 amountY)
{
(amountX, amountY) = _redeemWithdrawal(round, recipient);
if (amountX... | 1,894,049 | [
1,
426,
323,
7424,
279,
12234,
598,
9446,
287,
364,
1375,
20367,
8338,
1021,
729,
848,
283,
24903,
326,
2430,
1839,
326,
283,
12296,
18,
1220,
848,
506,
17997,
866,
635,
17553,
326,
783,
3643,
598,
326,
3643,
434,
326,
598,
9446,
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,
283,
24903,
21039,
1190,
9446,
287,
12,
11890,
5034,
3643,
16,
1758,
8027,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
3849,
203,
3639,
1661,
426,
8230,
970,
203,
3639,
1338,
1556,
18241,
12,
20367,
13,
203,
3639,
... |
./partial_match/42/0xd4980e33357F7B971e4a28EAB83B63Dd42985248/sources/Fortuna.sol | Kullanıcı geçen TC bloğun üçüncüsü anlamına geliyor.üçüncü yüzde 10 alır! | function getTCrewardsBack() public {
require(msg.sender == tcdetailz[dailyOLDMix(0)]._address || msg.sender == tcdetailz[dailyOLDMix(1)]._address || msg.sender == tcdetailz[dailyOLDMix(2)]._address);
uint256 _bnum = (block.number - genesisBlock)/BlockSizeForTC;
uint256 onepercentofamou... | 3,353,823 | [
1,
47,
29336,
133,
114,
71,
133,
114,
8244,
132,
105,
275,
23718,
324,
383,
133,
258,
318,
225,
132,
125,
132,
105,
132,
125,
14202,
132,
125,
87,
132,
125,
392,
28448,
133,
114,
6582,
314,
292,
77,
93,
280,
18,
132,
125,
132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
445,
3181,
1996,
6397,
2711,
1435,
1071,
288,
203,
540,
2583,
12,
3576,
18,
15330,
422,
1715,
8992,
94,
63,
26790,
11846,
21294,
12,
20,
25887,
6315,
2867,
747,
1234,
18,
15330,
422,
1715,
8992,
94,
63,
26790,
11846,
21294,
... |
pragma solidity 0.5.16;
interface IERC20 {
function totalSupply() external view returns (uint);
function balanceOf(address account) external view returns (uint);
function transfer(address recipient, uint amount) external returns (bool);
function allowance(address owner, address spender) external view r... | * lets msg.sender accept governance/ | function acceptGov()
external {
require(msg.sender == pendingGov, "HUB-Token: !pending");
address oldGov = governance;
governance = pendingGov;
pendingGov = address(0);
emit NewGov(oldGov, governance);
}
| 2,440,629 | [
1,
17307,
1234,
18,
15330,
2791,
314,
1643,
82,
1359,
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,
2791,
43,
1527,
1435,
203,
3639,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
4634,
43,
1527,
16,
315,
44,
3457,
17,
1345,
30,
401,
9561,
8863,
203,
3639,
1758,
1592,
43,
1527,
273,
314,
1643,
82,
1359,
31,
... |
./full_match/5/0xACD8f27EAF5B160d460b60E4f45F9FFafb70516a/sources/project_/contracts/Implementation/SimpleAccount.sol | * change entry-point: an account must have a method for replacing the entryPoint, in case the the entryPoint is upgraded to a newer version./ | function initialize(IEntryPoint anEntryPoint) external initializer {
require(
isBase == false,
"SimpleAccount: this is the base contract, cannot be initialized"
);
_entryPoint = anEntryPoint;
}
| 1,868,359 | [
1,
3427,
1241,
17,
1153,
30,
392,
2236,
1297,
1240,
279,
707,
364,
13993,
326,
28671,
16,
316,
648,
326,
326,
28671,
353,
31049,
358,
279,
16069,
1177,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4046,
12,
45,
1622,
2148,
392,
1622,
2148,
13,
3903,
12562,
288,
203,
3639,
2583,
12,
203,
5411,
353,
2171,
422,
629,
16,
203,
5411,
315,
5784,
3032,
30,
333,
353,
326,
1026,
6835,
16,
2780,
506,
6454,
6,
203,
3639,
... |
./full_match/43114/0x096F07be24Fb85528bf67f2790a3B72F764D4540/sources/artifacts/MasterChef.sol | We do some fancy math here. Basically, any point in time, the amount of npt entitled to a user but is pending to be distributed is: pending reward = (user.amount * pool.accNptPerShare) - user.rewardDebt Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: 1. The pool's `accNptPerShare` (... | struct UserInfo {
}
| 4,572,179 | [
1,
3218,
741,
2690,
31701,
4233,
2674,
18,
7651,
1230,
16,
1281,
1634,
316,
813,
16,
326,
3844,
434,
290,
337,
3281,
305,
1259,
358,
279,
729,
1496,
353,
4634,
358,
506,
16859,
353,
30,
282,
4634,
19890,
273,
261,
1355,
18,
8949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
25003,
288,
203,
377,
203,
565,
289,
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,
-... |
//***********************************ETH BANK
//
// It's an EthBank, every depositor earns interest on their deposits when a new depositor joins!
//
// The interest rate is defined by the "Interest_Rate" variable, and is initially set to 2%, and may be changed later!
//
// The Bank will exist for long because it only p... | the interest rate payout for deposits!
| uint public Interest_Rate=2; | 6,472,331 | [
1,
5787,
16513,
4993,
293,
2012,
364,
443,
917,
1282,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
1071,
5294,
395,
67,
4727,
33,
22,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.7;
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
abstract contract ERC2981Royalties is IERC2981 {
struct Royalty {
address recipient;
uint256 value; // as a % unit, from 0 - 10000 (2 extra 0s) for eg 25% is 2500
}
mapping(ui... | tokenId => royalty
| mapping(uint256 => Royalty) internal _royalties; | 12,769,709 | [
1,
2316,
548,
516,
721,
93,
15006,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
11890,
5034,
516,
534,
13372,
15006,
13,
2713,
389,
3800,
2390,
606,
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,
-10... |
pragma solidity ^0.4.18;
// File: 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;
ev... | not possible to give an exorbitant bonus to be more than 100% (100x100 = 10000) | function setContributor(address _address, bool cleared, uint16 contributor_get, uint16 affiliate_get, address ref) public {
require(contributor_get < 10000, "c too high");
require(affiliate_get < 10000, "a too high");
require(msg.sender == whiteListingAdmin, "invalid admin");
Contr... | 1,082,935 | [
1,
902,
3323,
358,
8492,
392,
431,
280,
3682,
970,
324,
22889,
358,
506,
1898,
2353,
2130,
9,
261,
6625,
92,
6625,
273,
12619,
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,
... | [
1,
1,
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,
444,
442,
19293,
12,
2867,
389,
2867,
16,
1426,
16054,
16,
2254,
2313,
31123,
67,
588,
16,
2254,
2313,
7103,
330,
3840,
67,
588,
16,
1758,
1278,
13,
1071,
288,
203,
203,
3639,
2583,
12,
591,
19293,
67,
588,
411,
12619... |
// File contracts/libraries/SafeMath.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
f... | scaling variable for price
| uint controlVariable; | 33,378 | [
1,
24576,
2190,
364,
6205,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
3325,
3092,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/43113/0xE9Cc97730a4e951BbfF27bbE998282cE73579C72/sources/contracts/BaseChain.sol | @param blocksCountOffset number of all blocks that were generated before switching to this contract @param sequence is a total number of blocks (consensus rounds) including previous contracts @param lastTimestamp is a timestamp of last submitted block @param padding number of seconds that need to pass before new submi... | struct ConsensusData {
uint32 blocksCountOffset;
uint32 sequence;
uint32 lastTimestamp;
uint32 padding;
bool deprecated;
}
uint256 constant public VERSION = 2;
bytes4 constant private _VERSION_SELECTOR = bytes4(keccak256("VERSION()"));
ConsensusData intern... | 7,206,320 | [
1,
7996,
1380,
2335,
1300,
434,
777,
4398,
716,
4591,
4374,
1865,
30882,
358,
333,
6835,
225,
3102,
353,
279,
2078,
1300,
434,
4398,
261,
29220,
21196,
13,
6508,
2416,
20092,
225,
1142,
4921,
353,
279,
2858,
434,
1142,
9638,
1203,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
11020,
9781,
751,
288,
203,
3639,
2254,
1578,
4398,
1380,
2335,
31,
203,
3639,
2254,
1578,
3102,
31,
203,
3639,
2254,
1578,
1142,
4921,
31,
203,
3639,
2254,
1578,
4992,
31,
203,
3639,
1426,
6849,
31,
203,
565,
289,
203... |
./full_match/1/0xAfCf0e333614286D8e20000781121adB28cEf33D/sources/localhost/contracts/deposit/StafiNodeDeposit.sol | Accept a node deposit and create a new staking pool under the node Check node settings Load contracts Get deposit type by node deposit amount | function deposit() override external payable onlyLatestContract("stafiNodeDeposit", address(this)) {
require(getDepositEnabled(), "Node deposits are currently disabled");
require(msg.value == 0 || msg.value == getCurrentNodeDepositAmount(), "Invalid node deposit amount");
IStafiUserDeposit s... | 17,084,017 | [
1,
5933,
279,
756,
443,
1724,
471,
752,
279,
394,
384,
6159,
2845,
3613,
326,
756,
2073,
756,
1947,
4444,
20092,
968,
443,
1724,
618,
635,
756,
443,
1724,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
1435,
3849,
3903,
8843,
429,
1338,
18650,
8924,
2932,
334,
1727,
77,
907,
758,
1724,
3113,
1758,
12,
2211,
3719,
288,
203,
3639,
2583,
12,
588,
758,
1724,
1526,
9334,
315,
907,
443,
917,
1282,
854,
4551,
5673... |
./full_match/80001/0xf8259f553438C1C00C01E1552A59e05B4bD9CDC3/sources/foxV18.sol | DEV: TODO ADD setReferralAddress and implement referral mecanism in UserInfo and deposit Info of each user. | contract MasterChef is Ownable, ReentrancyGuard {
using SafeMath for uint256;
using SafeBEP20 for IBEP20;
struct UserInfo {
}
struct PoolInfo {
}
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid... | 5,694,075 | [
1,
15301,
30,
2660,
11689,
444,
1957,
29084,
1887,
471,
2348,
1278,
29084,
312,
557,
304,
6228,
316,
25003,
471,
443,
1724,
3807,
434,
1517,
729,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
13453,
39,
580,
74,
353,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
5948,
52,
3462,
364,
467,
5948,
52,
3462,
31,
203,
7010,
203,
203,
203,
565,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgrade... | * @dev Deposits into vault on behalf of the accounts provided. This can be only called by strategist. @param _accounts Accounts to deposit token from. @param _vaultId ID of the target vault./ If the account's balance is below the threshold, no op. No op if the account's balance is under threshold. | function depositForAccounts(address[] memory _accounts, uint256 _vaultId) public override onlyStrategist {
IVault vault = IVault(IController(controller).vaults(_vaultId));
require(address(vault) != address(0x0), "no vault");
address token = vault.token();
uint256 threshold = autoSavi... | 5,347,669 | [
1,
758,
917,
1282,
1368,
9229,
603,
12433,
6186,
434,
326,
9484,
2112,
18,
1220,
848,
506,
1338,
2566,
635,
609,
1287,
376,
18,
225,
389,
13739,
30849,
358,
443,
1724,
1147,
628,
18,
225,
389,
26983,
548,
1599,
434,
326,
1018,
9229,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
1290,
13971,
12,
2867,
8526,
3778,
389,
13739,
16,
2254,
5034,
389,
26983,
548,
13,
1071,
3849,
1338,
1585,
1287,
376,
288,
203,
3639,
467,
12003,
9229,
273,
467,
12003,
12,
45,
2933,
12,
5723,
2934,
26983,
8... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interface/IScore.sol";
import "./interface/INFT.sol";
contract NFTMarket is ReentrancyGuard {
using Counters for Counters.Counter;
... | check if amount sent is equal to the price of NFT
| require(msg.value == price, "VALUE_NEQ_PRICE"); | 1,800,709 | [
1,
1893,
309,
3844,
3271,
353,
3959,
358,
326,
6205,
434,
423,
4464,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
3576,
18,
1132,
422,
6205,
16,
315,
4051,
67,
5407,
53,
67,
7698,
1441,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // So... | End time of contribution period in UNIX time
| uint256 public fundingEndTime; | 1,512,315 | [
1,
1638,
813,
434,
24880,
3879,
316,
23160,
813,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
22058,
25255,
31,
4766,
3639,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/8453/0x5Ba641A1Fa1E6A7D033c9f6A8108d52B92b78257/sources/contracts/HATVaultsRegistry.sol | * @notice See {IHATVaultsRegistry-getSafetyPeriod}. */ | function getSafetyPeriod() external view returns (uint256) {
return generalParameters.safetyPeriod;
}
| 11,548,687 | [
1,
9704,
288,
45,
44,
789,
12003,
87,
4243,
17,
588,
26946,
14369,
5027,
5496,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1322,
1727,
14369,
5027,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
7470,
2402,
18,
87,
1727,
14369,
5027,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x818bab157DA988549F570E6E71aC8C6C68719B26/sources/DeadBears.sol | * the Metadata extension. Built to optimize for lower gas during batch mints. Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). Assumes that an owner cannot have more than 264 - 1 (max value of uint64) of supply. Assumes that the maximum token id cannot exceed 2256 ... | contract ERC721A is IERC721A {
uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;
uint256 private constant BITPOS_NUMBER_MINTED = 64;
uint256 private constant BITPOS_NUMBER_BURNED = 128;
uint256 private constant BITPOS_AUX = 192;
uint256 private constant BITMASK_AUX_COMPLEMENT ... | 16,090,541 | [
1,
5787,
6912,
2710,
18,
27376,
358,
10979,
364,
2612,
16189,
4982,
2581,
312,
28142,
18,
25374,
2734,
87,
854,
695,
6979,
6261,
312,
474,
329,
5023,
622,
389,
1937,
1345,
548,
1435,
261,
7606,
358,
374,
16,
425,
18,
75,
18,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
27,
5340,
37,
353,
467,
654,
39,
27,
5340,
37,
288,
203,
565,
2254,
5034,
3238,
5381,
20469,
11704,
67,
15140,
67,
4883,
67,
19083,
273,
261,
21,
2296,
5178,
13,
300,
404,
31,
203,
203,
565,
2254,
5034,
3238,
... |
pragma solidity 0.4.21;
// Tipbot, Crypto For Everyone
// Contract Owner - Tipbot - 0x72BA45c9e729f13CD2F6AA4B410f83bE1410E982
// Official Website - http://www.Tipbot.io
// Official Twitter - http://www.twitter.com/officialtipbot
// Official Reddit - http://www.reddit.com/r/officialtipbot... | Proof Of Stake default interest equates to 10% annually
| uint public maxMintPoS = 10**17; | 1,509,200 | [
1,
20439,
8031,
934,
911,
805,
16513,
1298,
815,
358,
1728,
9,
8226,
3452,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1071,
943,
49,
474,
29198,
55,
273,
1728,
636,
4033,
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... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
/// @title simple voting + project proposal dapp
/// @author Taehoon Kim
contract Voting ... | variable to track the number of proposals suggested (from all users)
| uint256 public Project_num; | 7,222,700 | [
1,
6105,
358,
3298,
326,
1300,
434,
450,
22536,
22168,
261,
2080,
777,
3677,
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,
2254,
5034,
1071,
5420,
67,
2107,
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,
... |
/*
Copyright 2020 Swap Holdings Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | * @notice Send an Order to be forwarded to a Delegate @dev Sender must authorize the Delegate contract on the swapContract @dev Sender must approve this contract on the wethContract @dev Delegate's tradeWallet must be order.sender - checked in Delegate @param order Types.Order The Order @param delegate IDelegate The De... | function provideDelegateOrder(Types.Order calldata order, IDelegate delegate)
external
payable
{
require(order.signature.v != 0, "SIGNATURE_MUST_BE_SENT");
_wrapEther(order.signer);
delegate.provideOrder(order);
_unwrapEther(order.signer.wallet, order.sender.token, order.sender.amount);
... | 14,067,533 | [
1,
3826,
392,
4347,
358,
506,
19683,
358,
279,
27687,
225,
15044,
1297,
12229,
326,
27687,
6835,
603,
326,
7720,
8924,
225,
15044,
1297,
6617,
537,
333,
6835,
603,
326,
341,
546,
8924,
225,
27687,
1807,
18542,
16936,
1297,
506,
1353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5615,
9586,
2448,
12,
2016,
18,
2448,
745,
892,
1353,
16,
1599,
292,
4784,
7152,
13,
203,
565,
3903,
203,
565,
8843,
429,
203,
225,
288,
203,
565,
2583,
12,
1019,
18,
8195,
18,
90,
480,
374,
16,
315,
26587,
67,
49,
... |
./partial_match/1/0x8252f8C3B1e0b85f26c93908A8224D10C6a2105f/sources/contracts/GeneticChain721.sol | * Get total gallery has minted./ | function gallryMinted()
public view returns (uint256)
{
return _state._gallery;
}
| 4,045,763 | [
1,
967,
2078,
13624,
711,
312,
474,
329,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
314,
454,
1176,
49,
474,
329,
1435,
203,
3639,
1071,
1476,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
389,
2019,
6315,
21454,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/5/0x3f5505f41342E3c8e92C8e47d366713Cf609263a/sources/contracts/interfaces/BazaarStorage.sol | Address of the global royalty engine being used. | IRoyaltyEngineV1 public royaltyEngine;
| 1,956,050 | [
1,
1887,
434,
326,
2552,
721,
93,
15006,
4073,
3832,
1399,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15908,
13372,
15006,
4410,
58,
21,
1071,
721,
93,
15006,
4410,
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,
-... |
./full_match/100/0x2b64d24a180b4247F765FFA832113473Fb938237/sources/contracts/MiniChefV2.sol | @param _reward The REWARD token contract address. | constructor(IERC20 _reward) public {
REWARD = _reward;
}
| 14,268,825 | [
1,
67,
266,
2913,
1021,
2438,
21343,
1147,
6835,
1758,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
12,
45,
654,
39,
3462,
389,
266,
2913,
13,
1071,
288,
203,
3639,
2438,
21343,
273,
389,
266,
2913,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: None
pragma solidity ^0.8.8;
// ####BPPG#&&&&############BGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP5
// ##BPYP5YGGGBBB#######BBGGGGGBGPPPPPGPPPPPPPPPPPPPPPPPPPPPPPPPGGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP5555555555... | Number of currently supplied tokens | uint256 public totalSupply = 0;
| 534,716 | [
1,
1854,
434,
4551,
4580,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
2078,
3088,
1283,
273,
374,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x2F7b2A88c6eD2AfE44D8c947CBf661C66575BeB9/sources/_thirdweb-dev/contracts/base/ERC1155Drop.sol | @dev Runs before every token transfer / mint / burn. | function _beforeTokenTransfer(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual override {
super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
if (from... | 860,284 | [
1,
9361,
1865,
3614,
1147,
7412,
342,
312,
474,
342,
18305,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5771,
1345,
5912,
12,
203,
3639,
1758,
3726,
16,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
8526,
3778,
3258,
16,
203,
3639,
2254,
5034,
8526,
3778,
30980,
16,
203,
3639,
1731,
3778,... |
./full_match/10/0xA5e6EFdA500FD0BCEd87B2cd8Af1c81c0cc9D556/sources/MultiSigWallet.sol | @dev Allows to add a new owner. Transaction has to be sent by wallet. @param owner Address of new owner. | function addOwner(address owner)
external
onlyWallet
ownerDoesNotExist(owner)
notNull(owner)
validRequirement(owners.length + 1, required)
{
isOwner[owner] = true;
owners.push(owner);
emit OwnerAddition(owner);
}
| 3,779,797 | [
1,
19132,
358,
527,
279,
394,
3410,
18,
5947,
711,
358,
506,
3271,
635,
9230,
18,
225,
3410,
5267,
434,
394,
3410,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
5541,
12,
2867,
3410,
13,
203,
3639,
3903,
203,
3639,
1338,
16936,
203,
3639,
3410,
15264,
12,
8443,
13,
203,
3639,
7713,
12,
8443,
13,
203,
3639,
923,
18599,
12,
995,
414,
18,
2469,
397,
404,
16,
1931,
13,
203,
... |
./partial_match/1/0x1facbCfd122C1F871496a59a70D743D7b757B69b/sources/Banana.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 Banana 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 revWallet;
address public treasuryWalle... | 15,560,579 | [
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,
605,
304,
13848,
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,
... |
pragma solidity 0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed prev... | * @notice Check if an address is associated with any user account @dev Check if address is associated with any user by cross validating the accountByAddress with addressByAccount @param _address Address to check @return true if address has been assigned to user. otherwise reverts/ | function addressBelongsToAccount(address _address) public view returns (bool) {
return accountByAddress[_address] > 0;
}
| 7,305,196 | [
1,
1564,
309,
392,
1758,
353,
3627,
598,
1281,
729,
2236,
225,
2073,
309,
1758,
353,
3627,
598,
1281,
729,
635,
6828,
18075,
225,
326,
2236,
858,
1887,
598,
1758,
858,
3032,
225,
389,
2867,
5267,
358,
866,
327,
638,
309,
1758,
711,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1758,
18097,
27192,
3032,
12,
2867,
389,
2867,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
565,
327,
2236,
858,
1887,
63,
67,
2867,
65,
405,
374,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x98b7893C5717aF41d3e351c6e3445Be02a062A90/sources/contracts/MapleLoanStorage.sol | @title MapleLoanStorage defines the storage layout of MapleLoan. Roles Assets Loan Term Parameters Rates Requested Amounts State Refinance Establishment fees Pool V2 dependencies Triggered defaults | abstract contract MapleLoanStorage {
pragma solidity 0.8.7;
}
| 3,924,861 | [
1,
863,
298,
1504,
304,
3245,
11164,
326,
2502,
3511,
434,
1635,
298,
1504,
304,
18,
19576,
26284,
3176,
304,
6820,
7012,
534,
815,
25829,
16811,
87,
3287,
868,
926,
1359,
17787,
23385,
475,
1656,
281,
8828,
776,
22,
5030,
11321,
329,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
1635,
298,
1504,
304,
3245,
288,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
27,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/42/0xF617152555038b91EBF1B7C44c1c2D85270d9033/sources/browser/PayableRPS.sol | * @dev returns bet to players funds @param player address of the player @param bet bet/ | function _returnBet(address player, uint256 bet) internal returns(bool) {
funds[player] = funds[player].add(bet);
}
| 16,220,657 | [
1,
6154,
2701,
358,
18115,
284,
19156,
225,
7291,
1758,
434,
326,
7291,
225,
2701,
2701,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2463,
38,
278,
12,
2867,
7291,
16,
2254,
5034,
2701,
13,
2713,
1135,
12,
6430,
13,
288,
203,
3639,
284,
19156,
63,
14872,
65,
273,
284,
19156,
63,
14872,
8009,
1289,
12,
70,
278,
1769,
203,
565,
289,
203,
203,
... |
./partial_match/1/0xD4b02ef9A66C8F4B4583B4C7B8b504609b6a5d85/sources/MemeDogeTV.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("MemeDogeTV", "MDTV") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_unisw... | 2,818,450 | [
1,
10157,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
3545,
73,
40,
717,
73,
15579,
3113,
315,
6188,
15579,
7923,
288,
203,
7010,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91... |
./partial_match/1/0xaAE423d666713f01C8c5cD2Ac1edcee079DC5a97/sources/LockDexMaster.sol | map epoch -> amount withdrawable
| mapping (uint64 => uint256) releaseMap; | 2,650,424 | [
1,
1458,
7632,
317,
3844,
598,
9446,
429,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
261,
11890,
1105,
516,
2254,
5034,
13,
3992,
863,
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,
-... |
./full_match/288/0xD64c3186A9C6ae6c1E92A110F76ab86F4C6295F9/sources/contracts/Ola/Core/LendingNetwork/versions/0.04/ComptrollerV0_04.sol | Check liquidation factor <= 0.9 | Exp memory highLimit = Exp({mantissa: liquidationFactorMaxMantissa});
| 7,106,078 | [
1,
1564,
4501,
26595,
367,
5578,
1648,
374,
18,
29,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
7784,
3778,
3551,
3039,
273,
7784,
12590,
81,
970,
21269,
30,
4501,
26595,
367,
6837,
2747,
49,
970,
21269,
22938,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x79471Bb4CbB351a17Fa1EadB5B77AA76795c423a/sources/contracts/wereWulfz.sol | don't count the amount left to be minted for team
| uint256 remainingSupply = totalMaxSupply - reservedAmount; | 8,426,657 | [
1,
19752,
1404,
1056,
326,
3844,
2002,
358,
506,
312,
474,
329,
364,
5927,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
4463,
3088,
1283,
273,
2078,
2747,
3088,
1283,
300,
8735,
6275,
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,
... |
./partial_match/1/0x251FAe8f687545BDD462Ba4FCDd7581051740463/sources/contracts/libraries/LibDiamond.sol | bubble up error @solidity memory-safe-assembly | function initializeDiamondCut(address _init, bytes memory _calldata) internal {
if (_init == address(0)) {
return;
}
enforceHasContractCode(_init, "LibDiamondCut: _init address has no code");
(bool success, bytes memory error) = _init.delegatecall(_calldata);
if (... | 15,757,914 | [
1,
70,
14787,
731,
555,
632,
30205,
560,
3778,
17,
4626,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4046,
14521,
301,
1434,
15812,
12,
2867,
389,
2738,
16,
1731,
3778,
389,
1991,
892,
13,
2713,
288,
203,
3639,
309,
261,
67,
2738,
422,
1758,
12,
20,
3719,
288,
203,
5411,
327,
31,
203,
3639,
289,
203,
3639,
12980,
558... |
/*
* MIT License
* ===========
*/
// 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 retu... | * @dev Interface of the ERC20 standard as defined in the EIP. Does not include the optional functions; to access them see {ERC20Detailed}./ | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external ;
function mint(address account, uint amount) external;
function allowance(address owner, a... | 6,553,133 | [
1,
1358,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
18,
9637,
486,
2341,
326,
3129,
4186,
31,
358,
2006,
2182,
2621,
288,
654,
39,
3462,
40,
6372,
5496,
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,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
741... |
pragma solidity ^0.4.22;
/// @title ERC-721に準拠した契約のインタフェース
contract ERC721 {
// イベント
event Transfer(address indexed _from, address indexed _to, uint256 _tokenId);
event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId);
// 必要なメソッド
function balanceOf(address _ow... | @title CryptoFeather コア契約が壊れてアップグレードが必要な場合に設定します | contract ItemsCore is ItemsMarkets {
address public newContractAddress;
function unpause() public onlyOwner whenPaused {
require(newContractAddress == address(0));
super.unpause();
}
function withdrawBalance(uint _subtractFees) external onlyOwner {
uint256 balance = address(th... | 6,367,338 | [
1,
18048,
2954,
4806,
225,
164,
229,
116,
164,
229,
100,
166,
103,
244,
168,
117,
231,
164,
228,
239,
166,
101,
237,
164,
229,
239,
164,
228,
104,
164,
229,
100,
164,
230,
230,
164,
230,
250,
164,
229,
113,
164,
230,
110,
164,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10240,
4670,
353,
10240,
3882,
2413,
288,
203,
203,
565,
1758,
1071,
394,
8924,
1887,
31,
203,
203,
565,
445,
640,
19476,
1435,
1071,
1338,
5541,
1347,
28590,
288,
203,
3639,
2583,
12,
2704,
8924,
1887,
422,
1758,
12,
20,
... |
./partial_match/1/0xbc6a1af02c09fc1514B95eC98756ccAa95e8Af2e/sources/GEtherBridge.sol | * @dev Retrieves the current market liquidity for a given cToken. @param _ctoken The Compound cToken address. @return _marketAmount The underlying reserve token available market liquidity./ | function _getMarketAmount(address _ctoken) internal view returns (uint256 _marketAmount)
{
return CToken(_ctoken).getCash();
}
| 2,651,025 | [
1,
6960,
326,
783,
13667,
4501,
372,
24237,
364,
279,
864,
276,
1345,
18,
225,
389,
299,
969,
1021,
21327,
276,
1345,
1758,
18,
327,
389,
27151,
6275,
1021,
6808,
20501,
1147,
2319,
15604,
13667,
4501,
372,
24237,
18,
19,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
915,
389,
588,
3882,
278,
6275,
12,
2867,
389,
299,
969,
13,
2713,
1476,
1135,
261,
11890,
5034,
389,
27151,
6275,
13,
203,
202,
95,
203,
202,
202,
2463,
385,
1345,
24899,
299,
969,
2934,
588,
39,
961,
5621,
203,
202,
97,
... |
./full_match/1/0xcAa9c61CC9F8F1774a01543FACeB9c3c263489c0/sources/contracts/vaults/Vault.sol | @notice See {IERC4626-previewRedeem} | function previewRedeem(uint256 shares) public view returns (uint256) {
return
_convertToAssets(
shares.mulDiv(10_000 - _withdrawalFees, 10_000),
MathUpgradeable.Rounding.Down
);
}
| 16,512,982 | [
1,
9704,
288,
45,
654,
39,
8749,
5558,
17,
12102,
426,
24903,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10143,
426,
24903,
12,
11890,
5034,
24123,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
203,
5411,
389,
6283,
774,
10726,
12,
203,
7734,
24123,
18,
16411,
7244,
12,
2163,
67,
3784,
300,
389,
1918,
94... |
pragma solidity ^0.5.0;
/**
* @author Kelvin Fichter (@kelvinfichter)
* @notice
*
* # Overview
* Normally, this contract acts as a simple wallet with a single owner.
* However, the owner also specifies a list of "beneficiaries" who can attempt
* to "recover" the wallet by taking over ownership of the contract.
... | * @author Kelvin Fichter (@kelvinfichter) @notice # Overview Normally, this contract acts as a simple wallet with a single owner. However, the owner also specifies a list of "beneficiaries" who can attempt to "recover" the wallet by taking over ownership of the contract. # Default Behavior The owner of this contract ca... | contract DeadXWallet {
address public owner;
mapping (address => bool) public beneficiaries;
uint256 public recoveryBond;
uint256 public recoveryTimeout;
address payable public recoverer;
uint256 public recoveryStart;
event RecoveryStarted(address indexed _beneficiary);
event ... | 13,084,989 | [
1,
47,
292,
21529,
478,
1354,
387,
261,
36,
79,
292,
90,
10625,
1354,
387,
13,
282,
10752,
1945,
24773,
1230,
16,
333,
6835,
22668,
487,
279,
4143,
9230,
598,
279,
2202,
3410,
18,
10724,
16,
326,
3410,
2546,
11470,
279,
666,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
23967,
60,
16936,
288,
203,
203,
377,
203,
565,
1758,
1071,
3410,
31,
203,
565,
2874,
261,
2867,
516,
1426,
13,
1071,
27641,
74,
14463,
5646,
31,
203,
203,
565,
2254,
5034,
1071,
11044,
9807,
31,
203,
565,
2254,
5034,
1071... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-upgradeable/math/SignedSafeMathUpgradeable.sol";
import "../interface/IOracle.sol";
import "../libraries/OrderData.sol";
import "../libraries/SafeMathExt.sol";
import "../libraries/Utils.sol"... | open interest will increase, check limit | function doTrade(
LiquidityPoolStorage storage liquidityPool,
uint256 perpetualIndex,
address trader,
int256 deltaCash,
int256 deltaPosition
) internal {
PerpetualStorage storage perpetual = liquidityPool.perpetuals[perpetualIndex];
int256 deltaOpenInteres... | 12,615,773 | [
1,
3190,
16513,
903,
10929,
16,
866,
1800,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
741,
22583,
12,
203,
3639,
511,
18988,
24237,
2864,
3245,
2502,
4501,
372,
24237,
2864,
16,
203,
3639,
2254,
5034,
1534,
6951,
1462,
1016,
16,
203,
3639,
1758,
1284,
765,
16,
203,
3639,
509,
5034,
3622,
39,
961,
16,
203... |
./partial_match/1/0x2473B05F32a5F0D6767c8b46C3A1d079D769b055/sources/Pacmoon.sol | only take fees on buys/sells, do not take on wallet transfers on sell on buy | function _transfer( address from, address to, uint256 amount) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (amount == 0) {
super._transfer(from, to, 0);
... | 15,935,228 | [
1,
3700,
4862,
1656,
281,
603,
25666,
1900,
19,
87,
1165,
87,
16,
741,
486,
4862,
603,
9230,
29375,
603,
357,
80,
603,
30143,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
1758,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
3639,
2583,
12,
... |
./partial_match/1/0xAF358B898E645189952a2c5Af6cD977450836ee6/sources/HashBet.sol | Set default house edge percent | function setDefaultHouseEdgePercent(uint _houseEdgePercent) external onlyOwner {
require(
_houseEdgePercent >= 1 && _houseEdgePercent <= 100,
"houseEdgePercent must be a sane number"
);
defaultHouseEdgePercent = _houseEdgePercent;
}
| 9,256,002 | [
1,
694,
805,
23867,
3591,
5551,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9277,
44,
3793,
6098,
8410,
12,
11890,
389,
13028,
6098,
8410,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
389,
13028,
6098,
8410,
1545,
404,
597,
389,
13028,
6098,
8410,
1648,
2130,
16,
203,
5411,
315,
1... |
./partial_match/1/0x25C7C475934f40908523a36d5d7ea810D890b50F/sources/contracts/L1/Colosseum.sol | * @notice Validates and updates the lengths of segments. @param _segmentsLengths Lengths of segments./ _segmentsLengths length should be an even number in order to let challenger submit invalidity proof at the last turn. | function _setSegmentsLengths(uint256[] memory _segmentsLengths) private {
require(
_segmentsLengths.length % 2 == 0,
"Colosseum: length of segments lengths cannot be odd number"
);
uint256 sum = 1;
for (uint256 i = 0; i < _segmentsLengths.length; ) {
... | 16,186,944 | [
1,
9594,
471,
4533,
326,
10917,
434,
5155,
18,
225,
389,
12838,
22406,
11311,
87,
434,
5155,
18,
19,
389,
12838,
22406,
769,
1410,
506,
392,
5456,
1300,
316,
1353,
358,
2231,
462,
7862,
693,
4879,
2057,
560,
14601,
622,
326,
1142,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
7946,
22406,
12,
11890,
5034,
8526,
3778,
389,
12838,
22406,
13,
3238,
288,
203,
3639,
2583,
12,
203,
5411,
389,
12838,
22406,
18,
2469,
738,
576,
422,
374,
16,
203,
5411,
315,
914,
538,
307,
379,
30,
769,
4... |
pragma solidity ^0.5.2;
import "../registry/AbstractRNS.sol";
import "../util/AbstractWhitelist.sol";
import "../resolver/AbstractAddrResolver.sol";
/**
* @title SubdomainRegistrar
* Allows anyone who is whitelisted to create subnodes under a given RNS node
*/
contract SubdomainRegistrar {
address public owne... | * @dev Constructor @param _rns AbstractRNS RNS registry address. @param _whitelist AbstractWhitelist Whitelist to manage who can register domains. @param _rootNode bytes32 An owned node. The contract emits subnodes under this node./ | constructor (AbstractRNS _rns, AbstractWhitelist _whitelist, bytes32 _rootNode) public {
rns = _rns;
whitelist = _whitelist;
rootNode = _rootNode;
}
| 6,479,654 | [
1,
6293,
225,
389,
86,
2387,
4115,
54,
3156,
534,
3156,
4023,
1758,
18,
225,
389,
20409,
4115,
18927,
3497,
7523,
358,
10680,
10354,
848,
1744,
10128,
18,
225,
389,
3085,
907,
1731,
1578,
1922,
16199,
756,
18,
1021,
6835,
24169,
720,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
261,
7469,
54,
3156,
389,
86,
2387,
16,
4115,
18927,
389,
20409,
16,
1731,
1578,
389,
3085,
907,
13,
1071,
288,
203,
3639,
436,
2387,
273,
389,
86,
2387,
31,
203,
3639,
10734,
273,
389,
20409,
31,
203,
3639,
10181,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
interface IMinterFactory {
function mintTo(address to, address tokenAddress) extern... | * @notice Returns active staking indexes for the specified user @param user Address for which indexes will be returned/ | function getActiveStakingIndexes(address user) external view returns(uint256[] memory) {
uint256 activeStakingsCount = getActiveStakingCount(user);
uint256[] memory result = new uint256[](activeStakingsCount);
uint256 j = 0;
for (uint256 i = 0; i < stakers[user].stakingNumber; ++i) {... | 12,899,603 | [
1,
1356,
2695,
384,
6159,
5596,
364,
326,
1269,
729,
225,
729,
5267,
364,
1492,
5596,
903,
506,
2106,
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,
11960,
510,
6159,
8639,
12,
2867,
729,
13,
3903,
1476,
1135,
12,
11890,
5034,
8526,
3778,
13,
288,
203,
3639,
2254,
5034,
2695,
510,
581,
899,
1380,
273,
11960,
510,
6159,
1380,
12,
1355,
1769,
203,
3639,
2254,
5034,
85... |
./full_match/5/0x0000D22bab9d6AF0104FDd6b05bF3e179b06A282/sources/project_/contracts/NewDawnPaymentForwarder.sol | * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. These functions can be used to verify that a message was signed by the holder of the private keys of a given address./ | library ECDSA {
pragma solidity 0.8.7;
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
revert("ECDSA: invalid signatur... | 1,912,622 | [
1,
4958,
549,
21507,
22901,
11678,
7053,
9249,
15067,
261,
7228,
19748,
13,
5295,
18,
8646,
4186,
848,
506,
1399,
358,
3929,
716,
279,
883,
1703,
6726,
635,
326,
10438,
434,
326,
3238,
1311,
434,
279,
864,
1758,
18,
19,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
7773,
19748,
288,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
27,
31,
203,
565,
2792,
868,
3165,
668,
288,
203,
3639,
2631,
668,
16,
203,
3639,
1962,
5374,
16,
203,
3639,
1962,
5374,
1782,
16,
203,
3639,
1962,
5374,
55,... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
import "../BaseLogic.sol";
import "../vendor/ISwapRouter.sol";
/// @notice Trading assets on Uniswap V3 and 1Inch V4 DEXs
contract Swap is BaseLogic {
address immutable public uniswapRouter;
address immutable public oneInch;
/// @notic... | Storage loads Derived state Compute new values | function initAssetCache(address underlying, AssetStorage storage assetStorage, AssetCache memory assetCache) internal view returns (bool dirty) {
dirty = false;
assetCache.underlying = underlying;
assetCache.lastInterestAccumulatorUpdate = assetStorage.lastInterestAccumulatorUpdate;
... | 25,757 | [
1,
3245,
6277,
14969,
2950,
919,
8155,
394,
924,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1208,
6672,
1649,
12,
2867,
6808,
16,
10494,
3245,
2502,
3310,
3245,
16,
10494,
1649,
3778,
3310,
1649,
13,
2713,
1476,
1135,
261,
6430,
9603,
13,
288,
203,
3639,
9603,
273,
629,
31,
203,
203,
3639,
3310,
1649,
18,
9341... |
pragma solidity 0.5.8;
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () internal {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _owner);
}
function owner() public view retu... | * @dev Utility view function that allows clients to query whether a signer's smart wallet can be deployed or has already been @param owner Signer address/ | function canDeploy(address owner) public view returns (bool inexistent) {
address wallet = getCreate2Address(owner);
assembly {
inexistent := eq(extcodesize(wallet), 0)
}
}
| 6,353,907 | [
1,
6497,
1476,
445,
716,
5360,
7712,
358,
843,
2856,
279,
10363,
1807,
13706,
9230,
848,
506,
19357,
578,
711,
1818,
2118,
225,
3410,
16763,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
848,
10015,
12,
2867,
3410,
13,
1071,
1476,
1135,
261,
6430,
316,
19041,
13,
288,
203,
3639,
1758,
9230,
273,
25667,
22,
1887,
12,
8443,
1769,
203,
3639,
19931,
288,
203,
5411,
316,
19041,
519,
7555,
12,
408,
7000,
554,... |
./partial_match/1/0x2d255b756dD75a11D75cf701aBaD7c6D64b0AeDD/sources/Roles.sol | * @dev Makes function callable only if sender is an operator./ | modifier onlyOperator() {
require(isOperator(_msgSender()), "OperatorRole: caller does not have the Operator role");
_;
}
| 15,682,714 | [
1,
14534,
445,
4140,
1338,
309,
5793,
353,
392,
3726,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5592,
1435,
288,
203,
3639,
2583,
12,
291,
5592,
24899,
3576,
12021,
1435,
3631,
315,
5592,
2996,
30,
4894,
1552,
486,
1240,
326,
11097,
2478,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-10... |
./partial_match/97/0x6e812dD5B642334bbd17636d3865CE82C3D4d7eB/sources/Sparta.sol | ======================================EMISSION======================================== Internal - Update emission function | function _checkEmission() private {
}
| 11,386,960 | [
1,
4428,
894,
631,
3375,
45,
4475,
4428,
1432,
3186,
300,
2315,
801,
19710,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1893,
1514,
19710,
1435,
3238,
288,
203,
3639,
289,
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,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.10;
/// ------------ IMPORTS ------------
import {ReentrancyGuard} from "@rari-capital/solmate/src/utils/ReentrancyGuard.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IER... | Transfer remaining ETH/ERC-20 tokens to offer taker | _handleOutgoingTransfer(msg.sender, remainingProfit, offer.currency, USE_ALL_GAS_FLAG);
| 1,777,191 | [
1,
5912,
4463,
512,
2455,
19,
654,
39,
17,
3462,
2430,
358,
10067,
268,
6388,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
4110,
24866,
5912,
12,
3576,
18,
15330,
16,
4463,
626,
7216,
16,
10067,
18,
7095,
16,
14988,
67,
4685,
67,
43,
3033,
67,
9651,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/42220/0x8eBbCa451eF4D55b660c32bac93CCF5651D06ED6/sources/contracts/3_Ballot.sol | Deposit LP tokens to MasterChef for Harem allocation. | function deposit(uint256 _pid, uint256 _amount) external nonReentrant {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 pending = user.amount.mul(pool.accHaremPerShare).div(1e18).... | 16,314,701 | [
1,
758,
1724,
511,
52,
2430,
358,
13453,
39,
580,
74,
364,
670,
834,
81,
13481,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
443,
1724,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
... |
./full_match/3/0x2AeeF31f57F5cB7BB851de56ea8f199500bB9e9F/sources/nf-token.sol | * @dev This is an example contract implementation of NFToken with metadata extension./ | abstract contract NFTInterface {
function mint(address _to,uint256 _tokenId,string calldata _uri) virtual external ;
function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes calldata _data) virtual external;
function balanceOf(address tokenOwner) virtual public view returns (uint... | 8,143,281 | [
1,
2503,
353,
392,
3454,
6835,
4471,
434,
423,
42,
1345,
598,
1982,
2710,
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,... | [
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,
8770,
6835,
423,
4464,
1358,
288,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
11890,
5034,
389,
2316,
548,
16,
1080,
745,
892,
389,
1650,
13,
225,
5024,
3903,
274,
203,
565,
445,
4183,
5912,
1265,
12,
2867,
389,
2080,
16,
... |
pragma solidity ^0.4.20;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatica... | * @dev Buy tokens function Provides functionality for person to buy tokens. @param _participant The investor which want to buy tokens. @param _weiAmount The wei amount which the investor want to contribute. @return success Is the buy tokens function called successfully./ Check if the crowdsale is active Check if the we... | function buyTokens(address _participant, uint _weiAmount) public payable returns(bool success) {
require(isInCrowdsale == true);
require(_weiAmount >= minimumContribution);
require(_weiAmount <= maximumContribution);
validatePurchase(_participant, _weiAmount);
uint currentLevelTokens;
uint nextLevelTok... | 5,729,808 | [
1,
38,
9835,
2430,
445,
28805,
14176,
364,
6175,
358,
30143,
2430,
18,
225,
389,
2680,
14265,
1021,
2198,
395,
280,
1492,
2545,
358,
30143,
2430,
18,
225,
389,
1814,
77,
6275,
1021,
732,
77,
3844,
1492,
326,
2198,
395,
280,
2545,
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,
202,
915,
30143,
5157,
12,
2867,
389,
2680,
14265,
16,
2254,
389,
1814,
77,
6275,
13,
1071,
8843,
429,
1135,
12,
6430,
2216,
13,
288,
203,
202,
202,
6528,
12,
291,
382,
39,
492,
2377,
5349,
422,
638,
1769,
203,
202,
202,
6528,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.6;
import "./interfaces/ICampaign.sol";
import "./interfaces/ICampaignFactory.sol";
import "./interfaces/IProposal.sol";
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/**
* @... | * @inheritdoc ICampaign/ | function launchProposalContract() external override onlyManager() isNotDeleted() checkStatus(status, WorkflowStatus.FundingComplete) {
require(proposal == address(0), "!Err: proposal already deployed");
require(block.timestamp > campaignInfo.deadlineDate, "!Err: campaign deadline not passed");
... | 12,640,922 | [
1,
36,
10093,
467,
13432,
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,
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,
8037,
14592,
8924,
1435,
3903,
3849,
1338,
1318,
1435,
8827,
7977,
1435,
866,
1482,
12,
2327,
16,
11363,
1482,
18,
42,
14351,
6322,
13,
288,
203,
3639,
2583,
12,
685,
8016,
422,
1758,
12,
20,
3631,
17528,
2524,
30,
1470... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
contract ERC20 {
//balanceOf allows the smart contract to store and return the balance of the address provided (_who)
function balanceOf(address _who) public view returns (uint256);
//transfer lets the owner of the contract send a given amount of ... | increase the value contributed by the address | contributions[msg.sender] += value;
| 6,381,585 | [
1,
267,
11908,
326,
460,
356,
11050,
635,
326,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13608,
6170,
63,
3576,
18,
15330,
65,
1011,
460,
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,
-1... |
./full_match/1/0xb853Ab8AC6bfFf181FD2f1B965491E9B3235183c/sources/contracts/LuftdropHelper.sol | ERC165 interface ID for ERC721Metadata.
| interfaceId == 0x5b5e139f; | 9,678,424 | [
1,
654,
39,
28275,
1560,
1599,
364,
4232,
39,
27,
5340,
2277,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
1560,
548,
422,
374,
92,
25,
70,
25,
73,
24347,
74,
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,
-10... |
./partial_match/4/0xf56a8B82Ec60B3caEF6b8B3D6Cb4DDB39fd82E46/sources/solidSwing.sol | Public variables of the token This creates a mapping with all data storage This generates a public event of token transfer This notifies clients about the amount burnt This generates a public event for frozen (blacklisting) accounts This will log approval of token Transfer | contract solidSwing is owned {
= DATA STORAGE =
===============================*/
using SafeMath for uint256;
string constant private _name = "Swing Token";
string constant private _symbol = "STK";
uint256 constant private _decimals = 18;
uint256 private _totalSupply ... | 8,591,922 | [
1,
4782,
3152,
434,
326,
1147,
1220,
3414,
279,
2874,
598,
777,
501,
2502,
1220,
6026,
279,
1071,
871,
434,
1147,
7412,
1220,
19527,
7712,
2973,
326,
3844,
18305,
88,
1220,
6026,
279,
1071,
871,
364,
12810,
261,
11223,
21228,
13,
9484... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
18035,
6050,
310,
353,
16199,
288,
203,
377,
203,
203,
565,
273,
540,
8730,
2347,
15553,
1850,
273,
203,
565,
28562,
14468,
33,
5549,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
533,
5381,
3238,
389,
... |
./full_match/1/0xee415688D294C2956B5d5e4220db281DB2cF4076/sources/browser/Arbitrage22.sol | require(msg.sender == address(this)); | function _exec(uint8 task, address tokenAddress, address payable to, uint amount, uint min) internal returns(int delta) {
withdrawEth(to, amount);
}
| 3,179,581 | [
1,
6528,
12,
3576,
18,
15330,
422,
1758,
12,
2211,
10019,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4177,
12,
11890,
28,
1562,
16,
1758,
1147,
1887,
16,
1758,
8843,
429,
358,
16,
2254,
3844,
16,
2254,
1131,
13,
2713,
225,
1135,
12,
474,
3622,
13,
288,
203,
5411,
598,
9446,
41,
451,
12,
869,
16,
3844,
1769,
20... |
//Address: 0xc196afbb7357c445313088af86e6275c31b7f083
//Contract name: JeiCoinSwapper
//Balance: 0 Ether
//Verification Date: 5/26/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.23;
/*********************************************************************************
*****************************... | Calculate age in days
| uint _age = secToDays(softSub(now,_batchDate)); | 951,404 | [
1,
8695,
9388,
316,
4681,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
389,
410,
273,
1428,
774,
9384,
12,
9269,
1676,
12,
3338,
16,
67,
5303,
1626,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.19;
/**
* @title ERC20 Basic smart contract
* @author Copyright (c) 2016 Smart Contract Solutions, Inc.
* @author "Manuel Araoz <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6c010d021909000d1e0d03162c0b010d0500420f0301">[email protected]</a>>"
* @dev Simpler ve... | * @dev withdraw tokens amount within vesting rules for advisory/ | function advisoryWithdraw() public {
advisoryTotalSupply = vestingWithdraw(advisoryWallet, _advisoryTokens, advisoryTotalSupply);
}
| 2,368,221 | [
1,
1918,
9446,
2430,
3844,
3470,
331,
10100,
2931,
364,
1261,
3516,
630,
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,
1261,
3516,
630,
1190,
9446,
1435,
1071,
288,
203,
3639,
1261,
3516,
630,
5269,
3088,
1283,
273,
331,
10100,
1190,
9446,
12,
361,
3516,
630,
16936,
16,
389,
361,
3516,
630,
5157,
16,
1261,
3516,
630,
5269,
3088,
1283,
1... |
/**
*Submitted for verification at Etherscan.io on 2021-07-29
*/
// File: @openzeppelin/upgrades/contracts/upgradeability/Proxy.sol
pragma solidity ^0.5.0;
/**
* @title Proxy
* @dev Implements delegation of calls to other contracts, with proper
* forwarding of return values and bubbling of failures.
* It define... | * @title KGLDProxy @dev Extends from BaseAdminUpgradeabilityProxy with a constructor for initializing the implementation and admin./ | contract KGLDProxy is BaseAdminUpgradeabilityProxy, UpgradeabilityProxy {
constructor(address _logic, address _admin) UpgradeabilityProxy(_logic, bytes("")) public payable {
assert(ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
_setAdmin(_admin);
}
} | 6,646,700 | [
1,
47,
11261,
40,
3886,
225,
6419,
5839,
628,
3360,
4446,
10784,
2967,
3886,
598,
279,
3885,
364,
22584,
326,
4471,
471,
3981,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1475,
11261,
40,
3886,
353,
3360,
4446,
10784,
2967,
3886,
16,
17699,
2967,
3886,
288,
203,
203,
565,
3885,
12,
2867,
389,
28339,
16,
1758,
389,
3666,
13,
17699,
2967,
3886,
24899,
28339,
16,
1731,
2932,
6,
3719,
1071,
8843,... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.4;
import "./NiftyswapExchange20.sol";
import "../utils/Ownable.sol";
import "../interfaces/INiftyswapFactory20.sol";
import "../interfaces/IDelegatedERC1155Metadata.sol";
contract NiftyswapFactory20 is INiftyswapFactory20, Ownable, IDelegatedERC1155Metadata... | * @notice Handle which method is being called on Token transfer @dev `_data` must be encoded as follow: abi.encode(bytes4, MethodObj) where bytes4 argument is the MethodObj object signature passed as defined in the `Signatures for onReceive control logic` section above @param _operator The address which called the ... | abstract contract ReentrancyGuard {
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes calldata _data) external returns(bytes4);
function onERC1155... | 13,573,480 | [
1,
3259,
1492,
707,
353,
3832,
2566,
603,
3155,
7412,
225,
1375,
67,
892,
68,
1297,
506,
3749,
487,
2805,
30,
24126,
18,
3015,
12,
3890,
24,
16,
2985,
2675,
13,
282,
1625,
1731,
24,
1237,
353,
326,
2985,
2675,
733,
3372,
2275,
487... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
868,
8230,
12514,
16709,
288,
203,
203,
565,
2254,
5034,
3238,
5381,
389,
4400,
67,
12278,
2056,
273,
404,
31,
203,
565,
2254,
5034,
3238,
5381,
389,
12278,
2056,
273,
576,
31,
203,
203,
565,
2254,
5034,
3238,
389,
2... |
// File: contracts/token/DMCGovernanceStorage.sol
pragma solidity 0.5.17;
contract DMCGovernanceStorage {
/// @notice A record of each accounts delegate
mapping (address => address) internal _delegates;
/// @notice A checkpoint for marking number of votes from a given block
struct Checkpoint {
... | Storage for a DMC token | contract DMCTokenStorage {
using SafeMath for uint256;
bool internal _notEntered;
string public name;
string public symbol;
uint8 public decimals;
address public gov;
address public pendingGov;
uint256 public totalSupply;
mapping (address => uint256) internal _DMCBalances;
... | 1,327,815 | [
1,
3245,
364,
279,
463,
20022,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30072,
1268,
969,
3245,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
1426,
2713,
389,
902,
10237,
329,
31,
203,
203,
565,
533,
1071,
508,
31,
203,
203,
565,
533,
1071,
3273,
31,
203,
203,
5... |
./full_match/1/0xE83B94ECA0e76D9cE0119Fe6D37a539623C097D4/sources/contracts/staking/StakingPoolRewarder.sol | * @notice Calculate the amount of tokens that haven't vested at the current step for a specific user and pool. @dev This function uses the timestamp to identify the current step and returns the unvested amount of tokens. @param user The address of the user. @param poolId The id of the pool. @param timestamp The current... | function _calculateUnvestedAmountAtCurrentStep(
address user,
uint256 poolId,
uint256 timestamp
) private view returns (uint256) {
if (timestamp < uint256(vestingSchedules[user][poolId].startTime) || vestingSchedules[user][poolId].amount == 0)
return 0;
uint25... | 8,402,203 | [
1,
8695,
326,
3844,
434,
2430,
716,
15032,
1404,
331,
3149,
622,
326,
783,
2235,
364,
279,
2923,
729,
471,
2845,
18,
225,
1220,
445,
4692,
326,
2858,
358,
9786,
326,
783,
2235,
471,
1135,
326,
640,
90,
3149,
3844,
434,
2430,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
11162,
984,
90,
3149,
6275,
861,
3935,
4160,
12,
203,
3639,
1758,
729,
16,
203,
3639,
2254,
5034,
2845,
548,
16,
203,
3639,
2254,
5034,
2858,
203,
565,
262,
3238,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
... |
./full_match/3/0x9eCcf572E999B4cbeD2B06a64b38dB48E2101982/sources/Trader.sol | T1 - T4: OK V1 - V5: OK V1 - V5: OK | contract OwnableData {
address public owner;
address public pendingOwner;
pragma solidity 0.6.12;
}
| 14,218,945 | [
1,
56,
21,
300,
399,
24,
30,
7791,
776,
21,
300,
776,
25,
30,
7791,
776,
21,
300,
776,
25,
30,
7791,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
751,
288,
203,
565,
1758,
1071,
3410,
31,
203,
565,
1758,
1071,
4634,
5541,
31,
203,
203,
203,
203,
683,
9454,
18035,
560,
374,
18,
26,
18,
2138,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/5/0xBe27CB8FCD8633D9b8Ef2707C90E6238935CEE60/sources/project_/contracts/RealTokenizado.sol | Participant name associated with the token
| string public participant; | 7,073,463 | [
1,
22540,
508,
3627,
598,
326,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
1071,
14188,
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,
-100,
-100,
-100,
... |
// File: @openzeppelin/contracts/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.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
* querie... | * @notice Calculates amount of tokens to be minted, by subtracting available token balances from amount of tokens to be exited @param tokenBalances Token balances this contract holds for some ordered token ids @param amountsToBeExited Amount of tokens being exited/ all cells zero initialized all cells zero initialized ... | function calculateAmountsToBeMinted(
uint256[] memory tokenBalances,
uint256[] memory amountsToBeExited
) internal pure returns (uint256[] memory, uint256[] memory, bool) {
require(
tokenBalances.length == amountsToBeExited.length,
"MintableERC1155Predicate: Array... | 14,889,785 | [
1,
10587,
3844,
434,
2430,
358,
506,
312,
474,
329,
16,
635,
10418,
310,
2319,
1147,
324,
26488,
628,
3844,
434,
2430,
358,
506,
21590,
225,
1147,
38,
26488,
3155,
324,
26488,
333,
6835,
14798,
364,
2690,
5901,
1147,
3258,
225,
3844,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4604,
6275,
11634,
1919,
49,
474,
329,
12,
203,
3639,
2254,
5034,
8526,
3778,
1147,
38,
26488,
16,
203,
3639,
2254,
5034,
8526,
3778,
3844,
11634,
1919,
6767,
329,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
5034,
8526,... |
./full_match/42161/0x26EFF6c28EB96330BE02d1C2CA1fF68Ae3b4bC08/sources/project_/contracts/Darwin721.sol | * @title Proxy @dev Implements delegation of calls to other contracts, with proper forwarding of return values and bubbling of failures. It defines a fallback function that delegates all calls to the address returned by the abstract _implementation() internal function./ | abstract contract Proxy {
function implementation() public virtual view returns (address);
function _delegate(address impl) internal {
assembly {
calldatacopy(0, 0, calldatasize())
let result := delegatecall(gas(), impl, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
... | 16,305,513 | [
1,
3886,
225,
29704,
23595,
434,
4097,
358,
1308,
20092,
16,
598,
5338,
20635,
434,
327,
924,
471,
324,
22298,
2456,
434,
11720,
18,
2597,
11164,
279,
5922,
445,
716,
22310,
777,
4097,
358,
326,
1758,
2106,
635,
326,
8770,
389,
30810,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
7659,
288,
203,
203,
225,
445,
4471,
1435,
1071,
5024,
1476,
1135,
261,
2867,
1769,
203,
203,
225,
445,
389,
22216,
12,
2867,
9380,
13,
2713,
288,
203,
565,
19931,
288,
203,
1377,
745,
892,
3530,
12,
20,
16,
374,
1... |
pragma solidity ^0.5.1;
import "./math/SafeMath.sol";
import "./MultiSigSecured.sol";
import "./Pausable.sol";
/*
* @title LedgeriumIndexContract
* @author Vivek <https://github.com/bvivek777>
* The LedgeriumIndexContract Contract hold the details of the controller and the data contracts
* and allows various cont... | * @dev Function to return list of all StakeHolders @return returns the status/ | function pauseMethod(string memory _method) public isContractActive returns(bool) {
require(exists[msg.sender]);
return stopMethod(_method);
}
| 923,315 | [
1,
2083,
358,
327,
666,
434,
777,
934,
911,
27003,
327,
1135,
326,
1267,
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,
202,
915,
11722,
1305,
12,
1080,
3778,
389,
2039,
13,
1071,
353,
8924,
3896,
1135,
12,
6430,
13,
288,
203,
202,
202,
6528,
12,
1808,
63,
3576,
18,
15330,
19226,
203,
202,
202,
2463,
2132,
1305,
24899,
2039,
1769,
203,
202,
97,
... |
pragma solidity ^0.4.19;
// TODO: CHECK IF A TABLE ALREADY EXISTS BEFORE CREATING ONE
contract SQLStorage {
bytes1 comma = 44;
bytes1 recordSeparator = 124;
// architecture
// columnsBundle a column is maximum 32 characters
// metadata
uint numberOfTables;
// table index -> table name
... | returns one row at a time get the columns that are getting updated | function getSelect(string tableName, uint numberOfColumns, uint startRow, uint endRow, string columns)
public returns (string)
{
bytes memory chars = bytes(columns);
uint charsLen = chars.length;
uint j = 0;
uint k = 0;
uint[] memory indexes = new uint[](numberOfColu... | 12,680,231 | [
1,
6154,
1245,
1027,
622,
279,
813,
336,
326,
2168,
716,
854,
8742,
3526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20182,
12,
1080,
4775,
16,
2254,
7922,
3380,
16,
2254,
787,
1999,
16,
2254,
679,
1999,
16,
533,
2168,
13,
203,
565,
1071,
1135,
261,
1080,
13,
203,
565,
288,
203,
3639,
1731,
3778,
5230,
273,
1731,
12,
5112,
1769,
203... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
Fully commented standard ERC721 Distilled from OpenZeppelin Docs
Base for Building ERC721 by Martin McConnell
All the utility without the fluff.
*/
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (boo... | Approve a sponsored account to receive payment or ammend contract terms | function assignFounder(uint256 ID, uint256 founderPercentage, address receiver, uint256 freebies) external onlyOwner {
collection[ID].payoutPercent = founderPercentage;
collection[ID].payoutAddress = receiver;
collection[ID].giveawayBalance = freebies;
}
| 1,472,007 | [
1,
12053,
537,
279,
272,
500,
87,
7653,
2236,
358,
6798,
5184,
578,
2125,
81,
409,
6835,
6548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2683,
42,
465,
765,
12,
11890,
5034,
1599,
16,
2254,
5034,
284,
465,
765,
16397,
16,
1758,
5971,
16,
2254,
5034,
4843,
70,
606,
13,
3903,
1338,
5541,
288,
203,
3639,
1849,
63,
734,
8009,
84,
2012,
8410,
273,
284,
465,... |
pragma solidity ^0.4.16;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint... | * Calc the number of bonus tokens for N next bonus participants, only owner could call/ | function calcNextNBonuses(uint N) public onlyOwner {
require(crowdSaleState == CrowdSaleState.Success);
require(!BonusesDistributed);
uint nextPos = BonusCalcPos + N;
if (nextPos > bonusesList.length)
nextPos = bonusesList.length;
uint bonusCapUSD_local = bonusCapUSD;
for (uint i = BonusCalcP... | 12,838,220 | [
1,
25779,
326,
1300,
434,
324,
22889,
2430,
364,
423,
1024,
324,
22889,
22346,
16,
1338,
3410,
3377,
745,
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,
202,
915,
7029,
2134,
20626,
265,
6117,
12,
11890,
423,
13,
1071,
1338,
5541,
288,
203,
202,
202,
6528,
12,
71,
492,
72,
30746,
1119,
422,
385,
492,
72,
30746,
1119,
18,
4510,
1769,
203,
202,
202,
6528,
12,
5,
38,
265,
6117,
... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
// Referencing Uniswap Example Simple Oracle
// https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/examples/ExampleOracleSimple.sol
import "./IUniswapOracle.sol";
import "../refs/CoreRef.sol";
import "../external/SafeMathCopy.sol";
import ".... | allowing underflow per Uniswap Oracle spec
| uint32 deltaTimestamp = currentTimestamp - priorTimestamp; | 464,883 | [
1,
5965,
310,
3613,
2426,
1534,
1351,
291,
91,
438,
28544,
857,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1578,
3622,
4921,
273,
783,
4921,
300,
6432,
4921,
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,
... |
pragma solidity 0.8.10;
/// @title On Chain Payroll
/// @author 0xMarty
/// @notice Owner pays payee
contract OnChainPayroll {
/// STATE VARIABLES ///
/// @notice Payer of contact
address immutable public owner;
/// @notice Total amount of eth owner paid
uint public ethPayed;
/// @notice... | @title On Chain Payroll @author 0xMarty @notice Owner pays payee | contract OnChainPayroll {
address immutable public owner;
uint public ethPayed;
mapping(address => uint) public addressToPaid;
constructor (address _owner) {
owner = _owner;
}
function pay(address payable _payee) external payable {
require(msg.sender == owner, "not owner");... | 12,245,576 | [
1,
1398,
7824,
13838,
2693,
282,
374,
92,
49,
7325,
282,
16837,
293,
8271,
8843,
1340,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
2755,
3893,
9148,
2693,
288,
203,
203,
203,
565,
1758,
11732,
1071,
3410,
31,
203,
565,
2254,
1071,
13750,
9148,
329,
31,
203,
565,
2874,
12,
2867,
516,
2254,
13,
1071,
1758,
774,
16507,
350,
31,
203,
203,
203,
565,
3885,
... |
pragma solidity ^0.4.24;
contract _8thereum {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyTokenHolders()
{
require(myTokens() > 0);
_;
}
// only people with... | * Withdraws all of the callers earnings./ setup data update dividend tracker add ref. bonus fire event for logging | function withdraw()
onlyNonOwner()
onlyDividendPositive()
public
{
require (msg.sender == tx.origin);
address customerAddress = msg.sender;
payoutsTo_[customerAddress] += int256(SafeMath.mul(dividends, magnitude));
dividends += ... | 2,284,225 | [
1,
1190,
9446,
87,
777,
434,
326,
19932,
425,
1303,
899,
18,
19,
3875,
501,
1089,
31945,
9745,
527,
1278,
18,
324,
22889,
4452,
871,
364,
2907,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1435,
203,
3639,
1338,
3989,
5541,
1435,
203,
3639,
1338,
7244,
26746,
14900,
1435,
203,
3639,
1071,
203,
565,
288,
203,
3639,
2583,
261,
3576,
18,
15330,
422,
2229,
18,
10012,
1769,
203,
540,
203,
3639,
1758,
... |
./partial_match/83/0x7473a3E6f3d7A4F33F59345E971D2d04d1fe299F/sources/Bridge.sol | @dev Returns the hash of internal node, calculated from child nodes. | function merkleInnerHash(bytes32 left, bytes32 right)
internal
pure
returns (bytes32)
{
return sha256(abi.encodePacked(uint8(1), left, right));
}
| 8,828,753 | [
1,
1356,
326,
1651,
434,
2713,
756,
16,
8894,
628,
1151,
2199,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30235,
2857,
2310,
12,
3890,
1578,
2002,
16,
1731,
1578,
2145,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
3890,
1578,
13,
203,
565,
288,
203,
3639,
327,
6056,
5034,
12,
21457,
18,
3015,
4420,
329,
12,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/interfaces/IERC165.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import "./Controllable.sol";
import "./ITokenSale.sol";
/// tokensale implementation
contract TokenSale is ITokenSale, Controllable, Ini... | @dev create a token hash using the address of this objcet, sender address and the current issue count | function _createTokenHash() internal view returns (uint256) {
return uint256(keccak256(abi.encodePacked(address(this), msg.sender, issueCount)));
}
| 15,835,799 | [
1,
2640,
279,
1147,
1651,
1450,
326,
1758,
434,
333,
1081,
71,
278,
16,
5793,
1758,
471,
326,
783,
5672,
1056,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
389,
2640,
1345,
2310,
1435,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2254,
5034,
12,
79,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
12,
2867,
12,
2211,
3631,
1234,
18,
15330,
16,
5672,
1380,
... |
// SPDX-License-Identifier: bsl-1.1
/*
Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz).
*/
pragma solidity 0.7.6;
import './BaseCDPManager.sol';
import '../interfaces/IOracleRegistry.sol';
import '../interfaces/IOracleUsd.sol';
import '../interfaces/IWETH.sol';
import '../interfaces/IVault.sol';
import... | * @notice Withdraws WETH and converts to ETH @param ethAmount ETH amount to withdraw @param usdpAmount The amount of USDP token to repay/ | function exit_Eth(uint ethAmount, uint usdpAmount) public returns (uint) {
usdpAmount = exit(WETH, ethAmount, usdpAmount);
require(IWETH(WETH).transferFrom(msg.sender, address(this), ethAmount), "Unit Protocol: WETH_TRANSFER_FROM_FAILED");
IWETH(WETH).withdraw(ethAmount);
require(suc... | 2,505,551 | [
1,
1190,
9446,
87,
678,
1584,
44,
471,
7759,
358,
512,
2455,
225,
13750,
6275,
512,
2455,
3844,
358,
598,
9446,
225,
584,
9295,
6275,
1021,
3844,
434,
11836,
8640,
1147,
358,
2071,
528,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2427,
67,
41,
451,
12,
11890,
13750,
6275,
16,
2254,
584,
9295,
6275,
13,
1071,
1135,
261,
11890,
13,
288,
203,
3639,
584,
9295,
6275,
273,
2427,
12,
59,
1584,
44,
16,
13750,
6275,
16,
584,
9295,
6275,
1769,
203,
3639... |
pragma solidity ^0.4.23;
import "./Ownable.sol";
import "./DOSOnChainSDK.sol";
// A user contract asks anything from off-chain world through a url.
contract TestUserContract is Ownable, DOSOnChainSDK {
string public response;
// query_id -> valid_status
mapping(uint => bool) private _valid;
// Default... | Ask me anything (AMA) off-chain through an api/url. | function AMA(string memory url, string memory selector) public {
lastQueriedUrl = url;
lastQueriedSelector = selector;
uint id = DOSQuery(timeout, url, selector);
if (id != 0x0) {
_valid[id] = true;
emit RequestSent(true, id);
revert("Invalid query... | 12,633,696 | [
1,
23663,
1791,
6967,
261,
2192,
37,
13,
3397,
17,
5639,
3059,
392,
1536,
19,
718,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
432,
5535,
12,
1080,
3778,
880,
16,
533,
3778,
3451,
13,
1071,
288,
203,
3639,
1142,
928,
264,
2092,
1489,
273,
880,
31,
203,
3639,
1142,
928,
264,
2092,
4320,
273,
3451,
31,
203,
3639,
2254,
612,
273,
463,
4618,
1138... |
./full_match/5/0x60e1712167206eeffb073202AA5ed0a0d13de4c6/sources/Sandwich.sol | Authorized transfer(address,uint256) swap(uint256,uint256,address,bytes) Contructor sets the only user | contract Sandwich {
using SafeTransfer for IERC20;
address internal immutable user;
bytes4 internal constant ERC20_TRANSFER_ID = 0xa9059cbb;
bytes4 internal constant PAIR_SWAP_ID = 0x022c0d9f;
receive() external payable {}
constructor(address _owner) {
user = _owner;
}
fun... | 1,858,676 | [
1,
15341,
7412,
12,
2867,
16,
11890,
5034,
13,
7720,
12,
11890,
5034,
16,
11890,
5034,
16,
2867,
16,
3890,
13,
735,
8813,
280,
1678,
326,
1338,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
348,
464,
91,
1354,
288,
203,
565,
1450,
14060,
5912,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
1758,
2713,
11732,
729,
31,
203,
203,
565,
1731,
24,
2713,
5381,
4232,
39,
3462,
67,
16596,
6553,
67,
734,
273,
374,
6995,... |
./partial_match/3/0x88bd63A066aE3749cf3E93DA41589B72e69eF025/sources/CTCA.sol | ***************************** EXTERNAL FUNCTIONS (ERC20 INTERFACE) ****************************/ | function name() public view returns (string memory){
return _name;
}
| 5,113,076 | [
1,
2294,
11702,
13690,
55,
261,
654,
39,
3462,
11391,
11300,
13,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
508,
1435,
1071,
1476,
1135,
261,
1080,
3778,
15329,
203,
3639,
327,
389,
529,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x1e958A0526B9F52a34e8D3930941B661784f242e/sources/browser/illustCustody2.sol | get percentage for token | uint256 remainingPayment=royaltyPrice-tokenPrice;
| 3,874,472 | [
1,
588,
11622,
364,
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,
2254,
5034,
4463,
6032,
33,
3800,
15006,
5147,
17,
2316,
5147,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/*
*
* Blockonix Tokens are governed by the Terms & Conditions separately notified to each existing token holder
* of Bitindia, and available on https://blockonix.com and https://blockonix.com/tokenswap
*
*/
/**
* Standard Interface for ERC20 Contract
*/
contract IERC20 {
function t... | * @notice Send `_value` tokens to `_to` on behalf of `_from` @param _from The address of the sender @param _to The address of the recipient @param _value the amount to send/ | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(checkVestingCondition(_from));
approved[_from][msg.sender] = approved[_from][msg.sender].minus(_value);
_transfer(_from, _to, _value);
return true;
}
| 6,597,606 | [
1,
3826,
1375,
67,
1132,
68,
2430,
358,
1375,
67,
869,
68,
603,
12433,
6186,
434,
1375,
67,
2080,
68,
225,
389,
2080,
1021,
1758,
434,
326,
5793,
225,
389,
869,
1021,
1758,
434,
326,
8027,
225,
389,
1132,
326,
3844,
358,
1366,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12,
1893,
58,
10100,
3418,
24899,
2080,
10019,
203,
3639,
20412,
63,
67,
2080,
... |
// Abstract contract for the full ERC 20 Token standard
//@ create by m-chain jerry
pragma solidity ^0.4.8;
contract Token {
uint256 public totalSupply;
function balanceOf(address _owner) constant returns (uint256 balance);
function transfer(address _to, uint256 _value) returns (bool success);
... | Set the name for display purposes
| name = "tan lian"; | 10,655,728 | [
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,
88,
304,
328,
2779,
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/0xB0caA67c712D96809f2aBAF2c95369EF942CE8Cb/sources/contracts/pendle/contracts/interfaces/IPVotingEscrowMainchain.sol | ============= ACTIONS ============= | interface IPVotingEscrowMainchain is IPVeToken {
event NewLockPosition(address indexed user, uint128 amount, uint128 expiry);
event Withdraw(address indexed user, uint128 amount);
event BroadcastTotalSupply(VeBalance newTotalSupply, uint256[] chainIds);
event BroadcastUserPosition(address indexed use... | 16,556,886 | [
1,
14468,
33,
11385,
55,
422,
1432,
12275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
30618,
17128,
6412,
492,
6376,
5639,
353,
30618,
73,
1345,
288,
203,
565,
871,
1166,
2531,
2555,
12,
2867,
8808,
729,
16,
2254,
10392,
3844,
16,
2254,
10392,
10839,
1769,
203,
203,
565,
871,
3423,
9446,
12,
2867,
8808,
729,
... |
./full_match/1/0x677885afde857b70f40741ff8B60F9aFbA95Dd49/sources/contracts/pendle/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol | //*/ @notice allows owner to add new reward tokens in in case Aura does so with their pools | function _getImmutablePoolData() internal view virtual returns (bytes memory);
REWARDS-RELATED
function addRewardTokens(address token) external virtual onlyOwner {
if (token == BAL_TOKEN || token == AURA_TOKEN || extraRewards.contains(token))
revert Errors.SY... | 3,214,110 | [
1,
28111,
225,
5360,
3410,
358,
527,
394,
19890,
2430,
316,
316,
648,
432,
21401,
1552,
1427,
598,
3675,
16000,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
588,
16014,
2864,
751,
1435,
2713,
1476,
5024,
1135,
261,
3890,
3778,
1769,
203,
203,
1171,
9079,
2438,
16777,
3948,
17,
15868,
6344,
203,
203,
565,
445,
527,
17631,
1060,
5157,
12,
2867,
1147,
13,
3903,
5024,
1338,
... |
pragma solidity ^0.4.21;
/// @title PatientRecords
/// @author Nicolas Frega - <frega.nicolas@gmail.com>
/// Allows Medical Record System to maintain records of patients in their network.
/// Records can be accessed by Hospitals if and only if patient provides name.
/// Patients are rewarded with erc20 tokens for prov... | @dev Allows to remove a patient in the network. @param _patient Address of patient to remove. | function removePatient(address _patient)
public
onlyOwner
patientExist(_patient)
{
isPatient[_patient] = false;
emit PatientRemoval(_patient);
}
| 5,404,516 | [
1,
19132,
358,
1206,
279,
18608,
316,
326,
2483,
18,
225,
389,
16330,
1979,
5267,
434,
18608,
358,
1206,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
22834,
1979,
12,
2867,
389,
16330,
1979,
13,
203,
3639,
1071,
203,
3639,
1338,
5541,
203,
3639,
18608,
4786,
24899,
16330,
1979,
13,
203,
565,
288,
203,
3639,
353,
22834,
1979,
63,
67,
16330,
1979,
65,
273,
629,
3... |
pragma solidity ^0.4.11;
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal returns (uint256) {
// assert(b > 0); // Solidity automatically throws wh... | total supply of owo for the crowdsale
| uint public _capOwO = 100000000 * 10 ** decimals; | 5,366,176 | [
1,
4963,
14467,
434,
2523,
83,
364,
326,
276,
492,
2377,
5349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
389,
5909,
3494,
51,
273,
2130,
9449,
380,
1728,
2826,
15105,
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,
-1... |
/**
*Submitted for verification at Etherscan.io on 2020-08-31
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.8;
pragma experimental ABIEncoderV2;
interface iERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function deci... | ETH Transfer function | function transferETH(address payable to, uint value) public payable onlyRouter returns (bool success) {
return true;
to.call{value:value}("");
}
| 1,793,920 | [
1,
1584,
44,
12279,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
565,
445,
7412,
1584,
44,
12,
2867,
8843,
429,
358,
16,
2254,
460,
13,
1071,
8843,
429,
1338,
8259,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
327,
638,
31,
203,
3639,
358,
18,
1991,
95,
1132,
30,
1132,
97,
2932,
8863,
7010,
... |
pragma solidity ^0.4.15;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
* @notice This is a softer (in terms of throws) variant of SafeMath:
* https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1121
*/
library SafeMath {
/**
* @dev Multiplies two numbers, t... | refund all tokens back to owner | function refund() public onlyOwner {
uint totalBalance = this.balance;
owner.transfer(totalBalance);
}
| 12,656,207 | [
1,
1734,
1074,
777,
2430,
1473,
358,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
16255,
1435,
1071,
1338,
5541,
288,
203,
565,
2254,
2078,
13937,
273,
333,
18,
12296,
31,
203,
565,
3410,
18,
13866,
12,
4963,
13937,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity 0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
func... | * @notice Get if `_acct` is an authorized module @param _acct Module address @return Operation status/ | function getModule(address _acct) external view returns (bool) {
return modules[_acct];
}
| 1,825,455 | [
1,
967,
309,
1375,
67,
1077,
299,
68,
353,
392,
10799,
1605,
225,
389,
1077,
299,
5924,
1758,
327,
4189,
1267,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11251,
12,
2867,
389,
1077,
299,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
4381,
63,
67,
1077,
299,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |