file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity ^0.4.24;
// File: openzeppelin-zos/contracts/introspection/ERC165.sol
/**
* @title ERC165
* @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
*/
interface ERC165 {
/**
* @notice Query if a contract implements an interface
* @param _interfaceId The interface identifier, as s... | * @dev Creates a checksum of the contents of the Estate @param estateId the estateId to be verified/ | function getFingerprint(uint256 estateId)
public
view
returns (bytes32 result)
{
result = keccak256(abi.encodePacked("estateId", estateId));
uint256 length = estateLandIds[estateId].length;
for (uint i = 0; i < length; i++) {
result ^= keccak256(abi.encodePacked(estateLandIds[estateId... | 1,763,324 | [
1,
2729,
279,
6697,
434,
326,
2939,
434,
326,
512,
2019,
225,
4387,
340,
548,
326,
4387,
340,
548,
358,
506,
13808,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2812,
7898,
12,
11890,
5034,
4387,
340,
548,
13,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
3890,
1578,
563,
13,
203,
225,
288,
203,
565,
563,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
2932... |
./partial_match/3/0xa8A394A4a1cea6eD313D78e114F9560e71461353/sources/VVV5Sale.sol | require(msg.sender!=owner);require(tokensRaised < fundingGoal);require(now < icoEnd && now > icoStart);if(tokensRaised + tokensToBuy > fundingGoal) { uint exceedingTokens = tokensRaised + tokensToBuy - fundingGoal; uint exceedingEther; exceedingEther = (exceedingTokens * 1 ether) / tokenRate; msg.sender.transfe... | function buy() public payable {
emit BuyTokens( msg.sender , msg.value);
uint tokensToBuy;
uint etherUsed = msg.value;
tokensToBuy = (etherUsed/ 1 ether) * tokenRate;
tokensToBuy = tokensToBuy * 10 ** decimals;
owner.transfer(etherUsed);
token... | 5,211,318 | [
1,
6528,
12,
3576,
18,
15330,
5,
33,
8443,
1769,
6528,
12,
7860,
12649,
5918,
411,
22058,
27716,
1769,
6528,
12,
3338,
411,
277,
2894,
1638,
597,
2037,
405,
277,
2894,
1685,
1769,
430,
12,
7860,
12649,
5918,
397,
2430,
774,
38,
9835... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
282,
445,
30143,
1435,
1071,
8843,
429,
288,
203,
203,
1377,
3626,
605,
9835,
5157,
12,
1234,
18,
15330,
269,
1234,
18,
1132,
1769,
203,
202,
21281,
1377,
2254,
2430,
774,
38,
9835,
31,
203,
1377,
2254,
225,
2437,
6668,
273,
1234... |
./full_match/80001/0xf8B113378894Ae22F85ECC41E11d0DA9748673ba/sources/contracts/c2.sol | Normal requirements require(msg.value >= price * _mintAmount, 'Insufficient funds!'); Allow free mint Require payment for non-free mints | function PublicMint(uint256 _mintAmount) public payable {
require(publicSale, 'The PublicSale is paused!');
require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, 'Invalid mint amount!');
require(totalSupply() + _mintAmount <= supplyLimit, 'Max supply exceeded!');
require(publicMintCount[m... | 5,557,603 | [
1,
5506,
8433,
2583,
12,
3576,
18,
1132,
1545,
6205,
225,
389,
81,
474,
6275,
16,
296,
5048,
11339,
284,
19156,
5124,
1769,
7852,
4843,
312,
474,
12981,
5184,
364,
1661,
17,
9156,
312,
28142,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7224,
49,
474,
12,
11890,
5034,
389,
81,
474,
6275,
13,
1071,
8843,
429,
288,
203,
377,
203,
565,
2583,
12,
482,
30746,
16,
296,
1986,
7224,
30746,
353,
17781,
5124,
1769,
203,
565,
2583,
24899,
81,
474,
6275,
405,
37... |
// Sources flattened with hardhat v2.2.0 https://hardhat.org
// File @openzeppelin/contracts/introspection/IERC165.sol@v3.4.1
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contr... | Libraries Private fields Public constants This hash is the SHA256 output of the concatenation of the IPFS image hash data for all 8888 Bonsai. This contract will then return a decentralised IPFS URI when tokenURI() is called. This value will be set by an admin to an IPFS url that will list the hash and CID of all Bons... | contract Ancient is Ownable, ERC165, ERC721 {
using Counters for Counters.Counter;
using Strings for uint256;
using SafeMath for uint256;
Counters.Counter private _tokenIds;
uint256 public constant MAX_SUPPLY = 8888;
string public provenance = "";
string public folder;
string public... | 14,626,326 | [
1,
31909,
8726,
1466,
7224,
6810,
1220,
1651,
353,
326,
9777,
5034,
876,
434,
326,
26833,
434,
326,
2971,
4931,
1316,
1651,
501,
364,
777,
1725,
5482,
28,
605,
7008,
10658,
18,
1220,
6835,
903,
1508,
327,
279,
2109,
12839,
5918,
2971,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1922,
71,
1979,
353,
14223,
6914,
16,
4232,
39,
28275,
16,
4232,
39,
27,
5340,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
10477,
364,
225... |
//SPDX-License-Identifier: Unlicense
pragma solidity >=0.4.22 <0.9.0;
import "hardhat/console.sol";
contract OwnedToken {
// TokenCreator 是如下定义的合约类型.
// 不创建新合约的话,也可以引用它。
TokenCreator creator;
address owner;
bytes32 name;
// 这是注册 creator 和设置名称的构造函数。
constructor(bytes32 _name) {
// ... | 状态变量通过其名称访问,而不是通过例如 this.owner 的方式访问。 这也适用于函数,特别是在构造函数中,你只能像这样(“内部地”)调用它们, 因为合约本身还不存在。 从 `address` 到 `TokenCreator` ,是做显式的类型转换 并且假定调用合约的类型是 TokenCreator,没有真正的方法来检查这一点。 | constructor(bytes32 _name) {
owner = msg.sender;
console.log("owner:", owner);
console.log("address:", address(this));
creator = TokenCreator(msg.sender);
name = _name;
}
| 12,827,826 | [
1,
168,
237,
119,
167,
227,
228,
166,
242,
251,
170,
234,
242,
170,
227,
253,
169,
128,
234,
166,
232,
119,
166,
243,
240,
168,
105,
113,
169,
111,
128,
170,
250,
111,
176,
125,
239,
169,
227,
239,
165,
121,
240,
167,
251,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
12,
3890,
1578,
389,
529,
13,
288,
203,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
3639,
2983,
18,
1330,
2932,
8443,
2773,
16,
3410,
1769,
203,
3639,
2983,
18,
1330,
2932,
2867,
2773,
16,
1758,
12,
2211,
10019,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./packages/Bundle_ERC20.sol";
/**
* @title My ERC20 Token
*/
contract MyERC20Token is Bundle {
receive() external payable {}
fallback() external payable {}
event Stake(address staker, uint256 value, uint256 time);
event Claim(address ... | * @title My ERC20 Token/ | contract MyERC20Token is Bundle {
event Stake(address staker, uint256 value, uint256 time);
event Claim(address staker, uint256 value);
event Withdraw(address operator, address receiver, uint256 value);
mapping(address => uint256) private _timestamp;
mapping(address => uint256) private _staked;
... | 12,795,540 | [
1,
12062,
4232,
39,
3462,
3155,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8005,
654,
39,
3462,
1345,
353,
8539,
288,
203,
203,
565,
871,
934,
911,
12,
2867,
384,
6388,
16,
2254,
5034,
460,
16,
2254,
5034,
813,
1769,
203,
565,
871,
18381,
12,
2867,
384,
6388,
16,
2254,
5034,
460,
1769,
203,
565... |
./full_match/5/0xD503A1562aF40d8514b1150626DEeF6673128765/sources/contracts/libs/Inflate.sol | Length of stored block Discard leftover bits from current byte (assumes s.bitcnt < 8) Get length and check against its one's complement Not enough input Didn't match complement! Copy len bytes from in to out Not enough input Not enough output space Note: Solidity reverts on underflow, so we decrement here | function _stored(State memory s) private pure returns (ErrorCode) {
unchecked {
uint256 len;
s.bitbuf = 0;
s.bitcnt = 0;
if (s.incnt + 4 > s.input.length) {
return ErrorCode.ERR_NOT_TERMINATED;
}
len = uint256(uint8(s.... | 1,888,042 | [
1,
1782,
434,
4041,
1203,
21643,
29709,
4125,
628,
783,
1160,
261,
428,
6411,
272,
18,
3682,
13085,
411,
1725,
13,
968,
769,
471,
866,
5314,
2097,
1245,
1807,
17161,
2288,
7304,
810,
21148,
82,
1404,
845,
17161,
5,
5631,
562,
1731,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22601,
12,
1119,
3778,
272,
13,
3238,
16618,
1135,
261,
12012,
13,
288,
203,
3639,
22893,
288,
203,
5411,
2254,
5034,
562,
31,
203,
203,
5411,
272,
18,
3682,
4385,
273,
374,
31,
203,
5411,
272,
18,
3682,
13085,
2... |
/**
*
* Forked from SafeMoon
* DeFi rules.
:::::::: ::::::::::: ::: ::::::::: ::::::::::: :::::::: ::: ::: :::::::::: :::: :::
:+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: ... | how much time did you spend looking at the stars?gives the multiplier for the fees | function lookingTime(address account) public view returns (uint256) {
uint256 starTime = _starTime[account];
if(starTime == 0)
uint256 numDays = ((block.timestamp).sub(starTime)).div(1 days);
uint256 maxDays = 9;
if(numDays>=maxDays)
return 1;
... | 1,569,786 | [
1,
13606,
9816,
813,
5061,
1846,
17571,
7849,
622,
326,
24084,
35,
75,
3606,
326,
15027,
364,
326,
1656,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7849,
950,
12,
2867,
2236,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
10443,
950,
273,
389,
10983,
950,
63,
4631,
15533,
203,
3639,
309,
12,
10983,
950,
422,
374,
13,
7010,
540,
203,
3639,
... |
./partial_match/1/0x291C80D4Aa0B6ED9E6b59c82121b359999efd4b7/sources/AsyncArtwork_v2.sol | the address of the creator the amount of layers they're expected to mint | struct WhitelistReservation {
address creator;
uint256 layerCount;
}
| 4,347,598 | [
1,
5787,
1758,
434,
326,
11784,
326,
3844,
434,
6623,
2898,
4565,
2665,
358,
312,
474,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
3497,
7523,
18074,
288,
203,
3639,
1758,
11784,
31,
203,
3639,
2254,
5034,
3018,
1380,
31,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
/*
/**
* @title A title that should describe the library
* @author CXIP-Labs
* @notice Explain to an end user what this does
* @dev Explain to a developer any extra details
*/
library Library {
}
/**
* @title A title that should describe the interface
... | * @title A title that should describe the contract @author CXIP-Labs @notice Explain to an end user what this does @dev Explain to a developer any extra details/ | contract Contract {
event Event(address indexed param1, address indexed param2);
uint256 private stateVariable;
uint256 public publicStateVariable;
function Function(uint256 id, address wallet) public pure returns (uint256, address) {
return (id, wallet);
}
}
| 13,098,948 | [
1,
37,
2077,
716,
1410,
6401,
326,
6835,
225,
385,
60,
2579,
17,
48,
5113,
225,
1312,
7446,
358,
392,
679,
729,
4121,
333,
1552,
225,
1312,
7446,
358,
279,
8751,
1281,
2870,
3189,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
13456,
288,
203,
565,
871,
2587,
12,
2867,
8808,
579,
21,
16,
1758,
8808,
579,
22,
1769,
203,
203,
565,
2254,
5034,
3238,
919,
3092,
31,
203,
203,
565,
2254,
5034,
1071,
1071,
1119,
3092,
31,
203,
203,
565,
445,
4284,
12... |
./full_match/4/0xC748428b231793efc2e968441dCb9D56960768dd/sources/Generate.sol | How much more $NOM the character drops on a critical day
| uint16 criticalMult; | 747,674 | [
1,
44,
543,
9816,
1898,
271,
50,
1872,
326,
3351,
29535,
603,
279,
11239,
2548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
2313,
11239,
5049,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x25C7C475934f40908523a36d5d7ea810D890b50F/sources/contracts/universal/MultiSigWallet.sol | * @notice The address of the governor contract. Can be updated via upgrade./* @notice A mapping of transactions submitted./* @notice A mapping of confirmations./* @notice A mapping that indicates whether someone is an owner or not./* @notice A list of owners./* @notice The number of confirmations required to execute a ... | modifier onlyGovernor() {
require(
msg.sender == GOVERNOR,
"MultiSigWallet: only allow specified governor contract to call the functions"
);
_;
}
| 16,186,984 | [
1,
1986,
1758,
434,
326,
314,
1643,
29561,
6835,
18,
4480,
506,
3526,
3970,
8400,
18,
19,
225,
432,
2874,
434,
8938,
9638,
18,
19,
225,
432,
2874,
434,
6932,
1012,
18,
19,
225,
432,
2874,
716,
8527,
2856,
18626,
353,
392,
3410,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
9606,
1338,
43,
1643,
29561,
1435,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
15330,
422,
12389,
2204,
50,
916,
16,
203,
5411,
315,
5002,
8267,
16936,
30,
1338,
1699,
1269,
314,
1643,
29561,
6835,
358,
745,
326,
4186,
6,... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.11;
// import {ERC20} from "solmate/tokens/ERC20.sol";
// import {ERC721} from "solmate/tokens/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import {Ownable} from "./lib/Ownable.sol";
import {ERC721StakingPool} from "./ERC721Staking... | ----------------------------------------------------------------------- Library usage ----------------------------------------------------------------------- ----------------------------------------------------------------------- Events ----------------------------------------------------------------------- ----------... | constructor(ERC721StakingPool erc721StakingPoolImplementation_) {
erc721StakingPoolImplementation = erc721StakingPoolImplementation_;
erc721StakingPoolImplementation.initialize(msg.sender);
}
| 10,233,162 | [
1,
5802,
17082,
18694,
4084,
24796,
24796,
9043,
24796,
24796,
7252,
1472,
24796,
225,
1021,
6835,
1399,
487,
326,
1542,
364,
777,
4232,
39,
27,
5340,
510,
6159,
2864,
20092,
2522,
17505,
279,
2874,
384,
911,
1345,
6835,
516,
384,
6159,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
654,
39,
27,
5340,
510,
6159,
2864,
6445,
71,
27,
5340,
510,
6159,
2864,
13621,
67,
13,
288,
203,
3639,
6445,
71,
27,
5340,
510,
6159,
2864,
13621,
273,
6445,
71,
27,
5340,
510,
6159,
2864,
13621,
67,
31,
203,
... |
// File: @openzeppelin/contracts-ethereum-package/contracts/Initializable.sol
pragma solidity >=0.4.24 <0.7.0;
/**
* @title Initializable
*
* @dev Helper contract to support initializer functions. To use it, replace
* the constructor with a function that has the `initializer` modifier.
* WARNING: Unlike constru... | * @notice QGasToken contract realizes cross-chain with QGas/ | contract QGasToken is Initializable, ERC20UpgradeSafe, OwnableUpgradeSafe {
using ECDSA for bytes32;
using SafeMath for uint256;
mapping(bytes32 => bytes32) private _lockedOrigin;
mapping(bytes32 => uint256) private _lockedAmount;
mapping(bytes32 => address) private _lockedUser;
mapping(bytes32... | 13,982,747 | [
1,
53,
27998,
1345,
6835,
2863,
3128,
6828,
17,
5639,
598,
2238,
27998,
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,
16351,
2238,
27998,
1345,
353,
10188,
6934,
16,
4232,
39,
3462,
10784,
9890,
16,
14223,
6914,
10784,
9890,
288,
203,
565,
1450,
7773,
19748,
364,
1731,
1578,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
287... |
/**
*Submitted for verification at Etherscan.io on 2022-04-14
*/
//SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with ver... | Updated: This functionality was ONLY handled by the constructor in the previous version. This did not allow for WL additions/removals | function setPublicMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
merkleRoot = _merkleRoot;
}
| 2,323,536 | [
1,
7381,
30,
1220,
14176,
1703,
20747,
7681,
635,
326,
3885,
316,
326,
2416,
1177,
18,
1220,
5061,
486,
1699,
364,
678,
48,
26260,
19,
2764,
1527,
1031,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
27467,
8478,
15609,
2375,
12,
3890,
1578,
389,
6592,
15609,
2375,
13,
3903,
1338,
5541,
288,
203,
3639,
30235,
2375,
273,
389,
6592,
15609,
2375,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2020-08-06
*/
pragma solidity 0.5.9;
interface tokenTransfer {
function transfer(address receiver, uint amount) external;
function transferFrom(address _from, address _to, uint256 _value) external;
function balanceOf(address receiver) external returns(ui... | reserved weis for owners
| uint public ownersWeis; | 5,545,661 | [
1,
18898,
732,
291,
364,
25937,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
25937,
3218,
291,
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,
... |
./partial_match/1/0xb3342953E58B63378D5d2acFD26Aec38f47dED17/sources/StakeManager.sol | * @dev Keep function can be called by anyone to remove any NFTs that have expired. Also run when calling many functions. This is external because the doKeep modifier calls back to ArmorMaster, which then calls back to here (and elsewhere)./ Restrict each keep to 3 removals max. | function keep() external {
for (uint256 i = 0; i < 3; i++) {
if (infos[head].expiresAt != 0 && infos[head].expiresAt <= now) _removeExpiredNft(head);
else return;
}
}
| 15,481,762 | [
1,
11523,
445,
848,
506,
2566,
635,
1281,
476,
358,
1206,
1281,
423,
4464,
87,
716,
1240,
7708,
18,
8080,
1086,
1347,
4440,
4906,
4186,
18,
1377,
1220,
353,
3903,
2724,
326,
741,
11523,
9606,
4097,
1473,
358,
1201,
81,
280,
7786,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
3455,
1435,
3903,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
890,
31,
277,
27245,
288,
203,
2398,
203,
5411,
309,
261,
18227,
63,
1978,
8009,
12431,
861,
480,
374,
597,
10626,
63,
1978,
8009,
... |
pragma solidity 0.5.14;
import "./IAvastarTeleporter.sol";
import "./AvastarTypes.sol";
import "./AvastarBase.sol";
import "./AccessControl.sol";
/**
* @title Avastar Metadata Generator
* @author Cliff Hall
* @notice Generate Avastar metadata from on-chain data.
* Refers to the `AvastarTeleporter` for raw data to... | * @notice Set the base URI for the image of each Avastar. Only invokable by system admin role, when contract is paused and not upgraded. If successful, emits an `MediaUriBaseSet` event. @param _mediaUriBase base for the mediaURI shown in metadata for each Avastar/ Set the base for metadata tokenURI Emit the event | function setMediaUriBase(string calldata _mediaUriBase)
external onlySysAdmin whenPaused whenNotUpgraded
{
mediaUriBase = _mediaUriBase;
emit MediaUriBaseSet(_mediaUriBase);
}
| 5,450,082 | [
1,
694,
326,
1026,
3699,
364,
326,
1316,
434,
1517,
8789,
689,
297,
18,
5098,
5770,
429,
635,
2619,
3981,
2478,
16,
1347,
6835,
353,
17781,
471,
486,
31049,
18,
971,
6873,
16,
24169,
392,
1375,
5419,
3006,
2171,
694,
68,
871,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
444,
5419,
3006,
2171,
12,
1080,
745,
892,
389,
5829,
3006,
2171,
13,
203,
565,
3903,
1338,
12712,
4446,
1347,
28590,
1347,
1248,
1211,
19305,
203,
565,
288,
203,
3639,
3539,
3006,
2171,
273,
389,
5829,
3006,
2171,
31,
... |
./partial_match/1/0x1A963Df363D01EEBB2816b366d61C917F20e1EbE/sources/src/NoteInterest.sol | set by admin, default 1
| uint public adjusterCoefficient; | 2,594,701 | [
1,
542,
635,
3981,
16,
805,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
1071,
8307,
1722,
4249,
25403,
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,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "ds-test/test.sol";
import "./interfaces/IERC20.sol";
import "./interfaces/IGocEvents.sol";
import "./ERC1155.sol";
import "./Game.sol";
contract Goc is Game, ERC1155, IGocEvents {
// move markets
mapping(uint256 => address) public marketCreators... | check game is in valid state decode move check move validity against current game state | function createAndFundMarket(uint256 _moveValue, address _creator) external {
uint16 _gameId = GameHelpers.decodeGameIdFromMoveValue(_moveValue);
GameState memory _gameState = gamesState[_gameId];
require(_gameState.state == 1, "Invalid move");
{
MoveMetadata memory _mov... | 1,795,359 | [
1,
1893,
7920,
353,
316,
923,
919,
2495,
3635,
866,
3635,
13800,
5314,
783,
7920,
919,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30545,
42,
1074,
3882,
278,
12,
11890,
5034,
389,
8501,
620,
16,
1758,
389,
20394,
13,
3903,
288,
203,
3639,
2254,
2313,
389,
13957,
548,
273,
14121,
13375,
18,
3922,
12496,
548,
1265,
7607,
620,
24899,
8501,
620,
1769,
... |
/**
*Submitted for verification at Etherscan.io on 2017-12-31
*/
pragma solidity ^0.4.18;
// -----------------------------------------------------------------------------------------------
// CryptoCatsMarket v3
//
// Ethereum contract for Cryptocats (cryptocats.thetwentysix.io),
// a digital asset marketplace DAPP ... | Migrate details of previous contract cat owners addresses and cat balances to new contract instance */ | function migrateCatOwnersFromPreviousContract(uint startIndex, uint endIndex)
onlyBy(owner)
{
PreviousCryptoCatsContract previousCatContract = PreviousCryptoCatsContract(previousContractAddress);
uint256 ownerBalance = previousCatContract.balanceOf(catOwner);
}
| 12,754,691 | [
1,
19594,
3189,
434,
2416,
6835,
6573,
25937,
6138,
471,
6573,
324,
26488,
358,
394,
6835,
791,
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,
... | [
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,
13187,
11554,
5460,
414,
1265,
8351,
8924,
12,
11890,
10588,
16,
2254,
13818,
13,
203,
3639,
1338,
858,
12,
8443,
13,
203,
565,
288,
203,
3639,
19369,
18048,
39,
2323,
8924,
2416,
11554,
8924,
273,
19369,
18048,
39,
2323,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppel... | * @return unint256 of the token ID/ | function mint(address recipient) private returns (uint256) {
_tokenIds.increment();
uint256 newItemId = _tokenIds.current();
_mint(recipient, newItemId);
return newItemId;
}
| 15,833,810 | [
1,
2463,
640,
474,
5034,
434,
326,
1147,
1599,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
312,
474,
12,
2867,
8027,
13,
3238,
1135,
261,
11890,
5034,
13,
288,
203,
565,
389,
2316,
2673,
18,
15016,
5621,
203,
565,
2254,
5034,
394,
17673,
273,
389,
2316,
2673,
18,
2972,
5621,
203,
565,
389,
81,
474,
12,
2036... |
pragma solidity 0.4.24;
import "./../installed_contracts/ownership/Ownable.sol";
import "./PlayerModel.sol";
import "./GameStages.sol";
contract Game is Ownable, PlayerModel, GameStages {
uint private endTime = 0;
uint public joinPrice = 0;
// events not works on web3 1.0.0 with httpProvider
event G... | Accumulate deposit from bids | function MakeBid(address _address, uint16 _bid) public payable paymentIsValid {
if(atStage(Stages.NotStarted)) {
_startRound();
}
_addPlayer(_address, _bid);
}
| 12,860,596 | [
1,
8973,
31284,
443,
1724,
628,
30534,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4344,
17763,
12,
2867,
389,
2867,
16,
2254,
2313,
389,
19773,
13,
1071,
8843,
429,
5184,
20536,
288,
203,
3639,
309,
12,
270,
8755,
12,
31359,
18,
1248,
9217,
3719,
288,
203,
5411,
389,
1937,
11066,
5621,
203,
3639,
289... |
pragma solidity ^0.5.3;
pragma experimental ABIEncoderV2;
//import { ERC20 } from '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import { SafeMath } from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.1/contracts/math/SafeMath.sol";
import { PrntNFT } from "./PrntNFT.sol";
import { PrntNFTTradable ... | Prnt memory prnt = prnts[prntId]; curretReputationCount = prnt.reputation; | function getReputationCount(uint256 prntId) public view returns (uint256) {
uint256 curretReputationCount;
return curretReputationCount;
}
| 7,276,394 | [
1,
2050,
496,
3778,
846,
496,
273,
846,
27932,
63,
683,
496,
548,
15533,
662,
1349,
426,
458,
367,
1380,
273,
846,
496,
18,
266,
458,
367,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5561,
458,
367,
1380,
12,
11890,
5034,
846,
496,
548,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
662,
1349,
426,
458,
367,
1380,
31,
203,
203,
203,
3639,
327,
662,
1349,
426,
458,
367,
138... |
./full_match/5/0x05300f1444df2b395872B48c91960658a15a5666/sources/contracts/ERC721Escrow.sol | Require item is not still in escrow and caller is the owner of the NFT | function withdraw(uint256 _id) external {
require(block.timestamp > erc721Items[_id].expiration, "The item is still in escrow.");
require(msg.sender == erc721Items[_id].marketplace, "only marketplace contract can withdraw");
address seller = erc721Items[_id].seller;
uint256 item = erc72... | 1,853,160 | [
1,
8115,
761,
353,
486,
4859,
316,
2904,
492,
471,
4894,
353,
326,
3410,
434,
326,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
12,
11890,
5034,
389,
350,
13,
3903,
288,
203,
1377,
2583,
12,
2629,
18,
5508,
405,
6445,
71,
27,
5340,
3126,
63,
67,
350,
8009,
19519,
16,
315,
1986,
761,
353,
4859,
316,
2904,
492,
1199,
1769,
203,
1377,
... |
/**
*Submitted for verification at Etherscan.io on 2020-05-27
*/
/**
*Submitted for verification at Etherscan.io on 2020-05-27
*/
pragma solidity 0.5.10; /*
___________________________________________________________________
_ _ ______
|... | % of token balance amount = "effective balance amount" to calculate interest
| uint rateFactor; | 15,835,548 | [
1,
9,
434,
1147,
11013,
3844,
273,
315,
28894,
11013,
3844,
6,
358,
4604,
16513,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
4993,
6837,
31,
4202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./openzeppelin-contracts-4.5.0/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "./openzeppelin-contracts-4.5.0/contracts/access/Ownable.sol";
import "./openzeppelin-contracts-4.5.0/contracts/token/common/ERC2981.sol";
import "./utils/IMint... | @notice Add address to minters @param to Address which will be added to minters | function addMinter(
address to)
public onlyOwner {
minters[to] = true;
}
| 13,377,074 | [
1,
986,
1758,
358,
1131,
5432,
225,
358,
5267,
1492,
903,
506,
3096,
358,
1131,
5432,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
49,
2761,
12,
203,
3639,
1758,
358,
13,
203,
565,
1071,
1338,
5541,
288,
203,
3639,
1131,
5432,
63,
869,
65,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
interface cToken {
function underlying() external view returns (address);
}
interface comptroller {
function getAllMarkets() external view returns (address[] memory);
function markets(address _market) external view returns (bool isListed, uint256 coll... | @dev For the LTV, the start bit is 0 (up to 15), hence no bitshifting is needed | function getReserveConfiguration(address _market) external view returns (uint, uint, uint, bool);
function getConfiguration(address _market) external view returns (ReserveConfigurationMap memory);
}
function getParamsMemory(aavecore.ReserveConfigurationMap memory self) internal pure returns (uint256) {
... | 5,794,064 | [
1,
1290,
326,
11807,
58,
16,
326,
787,
2831,
353,
374,
261,
416,
358,
4711,
3631,
20356,
1158,
2831,
674,
430,
1787,
353,
3577,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31792,
6527,
1750,
12,
2867,
389,
27151,
13,
3903,
1476,
1135,
261,
11890,
16,
2254,
16,
2254,
16,
1426,
1769,
203,
565,
445,
10316,
12,
2867,
389,
27151,
13,
3903,
1476,
1135,
261,
607,
6527,
1750,
863,
3778,
1769,
203... |
./full_match/97/0x539d8FbAEF360FBA0844898347B169842C300B7a/sources/project_/contracts/erc20Beacon.sol | * @dev Emitted when ownership of the contract's transferred./* @dev Throws if an implementation's preset for this contract./ | modifier initCheck() {
require(vLogic == address(0x0), "Can't initialize more than once!");
_;
}
| 3,262,601 | [
1,
1514,
11541,
1347,
23178,
434,
326,
6835,
1807,
906,
4193,
18,
19,
225,
22435,
309,
392,
4471,
1807,
12313,
364,
333,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1208,
1564,
1435,
288,
203,
3639,
2583,
12,
90,
20556,
422,
1758,
12,
20,
92,
20,
3631,
315,
2568,
1404,
4046,
1898,
2353,
3647,
4442,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-10... |
./partial_match/3/0x804760BBf64D0635846b87B9702fEF7581485E1f/sources/StakerChef.sol | View function to see pending SKYs on frontend. | function pendingSky(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accSkyPerShare = pool.accSkyPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if... | 5,293,915 | [
1,
1767,
445,
358,
2621,
4634,
12038,
61,
87,
603,
15442,
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,
4634,
5925,
93,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
... |
./full_match/8453/0x2DE9EBBf50E3f57858d78b51F7fF9a790064d5A1/sources/contracts/RelicsAction.sol | which tokenId to start mint
| uint64 start; | 11,537,829 | [
1,
12784,
1147,
548,
358,
787,
312,
474,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1105,
787,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../DigitalaxAccessControls.sol";
import "./IDigitalaxMonaOracle.sol";
library Select {
using SafeMath for uint256;
/**
* @dev Sorts the i... | * @return The number of authorized providers./ | function providersSize() external view returns (uint256)
{
return providers.length;
}
| 12,828,233 | [
1,
2463,
1021,
1300,
434,
10799,
9165,
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,
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,
9165,
1225,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
9165,
18,
2469,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library MathUtil {
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) ... | Add a new reward token to be distributed to stakers require(_rewardsToken != address(stakingToken)); | function addReward(
address _rewardsToken,
address _distributor,
bool _useBoost
) public gacPausable {
_onlyRole(CONTRACT_GOVERNANCE_ROLE);
require(rewardData[_rewardsToken].lastUpdateTime == 0);
rewardTokens.push(_rewardsToken);
rewardData[_rewardsToken].... | 5,949,447 | [
1,
986,
279,
394,
19890,
1147,
358,
506,
16859,
358,
384,
581,
414,
2583,
24899,
266,
6397,
1345,
480,
1758,
12,
334,
6159,
1345,
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,
... | [
1,
1,
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,
527,
17631,
1060,
12,
203,
3639,
1758,
389,
266,
6397,
1345,
16,
203,
3639,
1758,
389,
2251,
19293,
16,
203,
3639,
1426,
389,
1202,
26653,
203,
565,
262,
1071,
314,
1077,
16507,
16665,
288,
203,
3639,
389,
3700,
2996,
1... |
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
import "../utils/Ownable.sol";
import "@0xsequence/erc-1155/contracts/tokens/ERC1155PackedBalance/ERC1155MintBurnPackedBalance.sol";
import "@0xsequence/erc-1155/contracts/tokens/ERC1155/ERC1155Metadata.sol";
import "@0xsequence/erc-1155/contracts/tokens/ERC298... | * @notice Will validate the ids and amounts to mint @dev This methods assumes ids are sorted by how the ranges are sorted in the corresponding mintAccessRanges[msg.sender] array. Call will revert if they are not. @dev When the maxIssuance of an asset is set to a non-zero value, the supply manager contrac... | function _validateMints(uint256[] memory _ids, uint256[] memory _amounts) internal {
require(isFactoryActive[msg.sender], "SkyweaverAssets#_validateMints: FACTORY_NOT_ACTIVE");
uint256 n_ranges = mintAccessRanges[msg.sender].length;
AssetRange memory range = mintAccessRanges[msg.sender][0];
uint256 ... | 1,764,905 | [
1,
13670,
1954,
326,
3258,
471,
30980,
358,
312,
474,
225,
1220,
2590,
13041,
3258,
854,
3115,
635,
3661,
326,
7322,
854,
3115,
316,
1377,
326,
4656,
312,
474,
1862,
9932,
63,
3576,
18,
15330,
65,
526,
18,
3049,
903,
15226,
1377,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
5662,
49,
28142,
12,
11890,
5034,
8526,
3778,
389,
2232,
16,
2254,
5034,
8526,
3778,
389,
8949,
87,
13,
2713,
288,
203,
565,
2583,
12,
291,
1733,
3896,
63,
3576,
18,
15330,
6487,
315,
5925,
93,
1814,
21851,
10726,
... |
./full_match/1/0x85Ff72ef23C559881589Daa5C8Ed9698124eDE72/sources/lib/seaport-types/src/helpers/PointerLibraries.sol | @dev Reads the bytes27 at `cdPtr` in calldata. | function readBytes27(
CalldataPointer cdPtr
) internal pure returns (bytes27 value) {
assembly ("memory-safe") {
value := calldataload(cdPtr)
}
}
| 8,451,659 | [
1,
7483,
326,
1731,
5324,
622,
1375,
4315,
5263,
68,
316,
745,
892,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25825,
5324,
12,
203,
3639,
3049,
892,
4926,
7976,
5263,
203,
565,
262,
2713,
16618,
1135,
261,
3890,
5324,
460,
13,
288,
203,
3639,
19931,
7566,
7858,
17,
4626,
7923,
288,
203,
5411,
460,
519,
745,
72,
3145,
6189,
12,
... |
./partial_match/1/0x1e2F9D0D9b68171948B7da5233b8826aF0abcdFd/sources/Goliath.sol | set as marketing wallet
| marketingWallet = address(0xD899D0CC6ce8620123901096A7b7285D8B09Fcfd); | 15,520,629 | [
1,
542,
487,
13667,
310,
9230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
17593,
28,
2733,
40,
20,
6743,
26,
311,
5292,
6734,
4366,
29,
1611,
5908,
26,
37,
27,
70,
27,
6030,
25,
40,
28,
38,
5908,
42,
71,
8313,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.8.0;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./lib/Owned.sol";
import "... | How to handle missing gwei? | function getReward() public nonReentrant updateReward(msg.sender) {
uint256 reward = rewards[msg.sender];
if (reward > 0) {
rewards[msg.sender] = 0;
uint256 payout = reward.div(uint256(3));
uint256 escrowed = payout.mul(uint256(2));
POP.safeTransfer(msg.sender, payout);
POP.safe... | 12,582,043 | [
1,
44,
543,
358,
1640,
3315,
314,
1814,
77,
35,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4170,
359,
1060,
1435,
1071,
1661,
426,
8230,
970,
1089,
17631,
1060,
12,
3576,
18,
15330,
13,
288,
203,
565,
2254,
5034,
19890,
273,
283,
6397,
63,
3576,
18,
15330,
15533,
203,
565,
309,
261,
266,
2913,
405,
374,
13,
... |
./full_match/4/0x2B72ED11123cD87D42060Be24C83af43b28FCF55/sources/ThievesList1.sol | Sale Phases Mint Tracking MerkleRoot | contract ThievesList is ERC721A, Ownable, ReentrancyGuard {
uint256 public MAX_SUPPLY = 4767;
uint256 public MAX_PRESALE_MINTS = 1;
uint256 public MAX_PUBLIC_MINTS = 1;
uint256 public constant RESERVE_SUPPLY = 267;
uint256 public totalReserved;
string public _baseTokenURI;
string public b... | 781,171 | [
1,
30746,
4360,
3304,
490,
474,
11065,
310,
31827,
2375,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
935,
1385,
3324,
682,
353,
4232,
39,
27,
5340,
37,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
203,
565,
2254,
5034,
1071,
4552,
67,
13272,
23893,
273,
1059,
6669,
27,
31,
203,
565,
2254,
5034,
1071,
4552,
67,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract StakeContract is... | a large number to prevent rounding rewards per token down to zero
| scale = 100000000000; | 13,424,516 | [
1,
69,
7876,
1300,
358,
5309,
13885,
283,
6397,
1534,
1147,
2588,
358,
3634,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
3159,
273,
15088,
11706,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/42/0xF9FEb88956C2F95e968F7d5388b7D44b1dDb2E01/sources/contracts/optionLiquidityPool.sol | function to mint erc721 tokens to represent option contract ownershipStrike should be in terms of the asset the premium is paid in.requires for them to send money | function mintOption( uint _expiration, uint _amount, uint _strike, uint _slippage, bool _asset ) public {
OPTIONFACTORY.createOption(msg.sender, _amount, _expiration, _strike, uint160(msg.sender));
}
| 16,232,373 | [
1,
915,
358,
312,
474,
6445,
71,
27,
5340,
2430,
358,
2406,
1456,
6835,
23178,
1585,
2547,
1410,
506,
316,
6548,
434,
326,
3310,
326,
23020,
5077,
353,
30591,
316,
18,
18942,
364,
2182,
358,
1366,
15601,
2,
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,
312,
474,
1895,
12,
2254,
389,
19519,
16,
2254,
389,
8949,
16,
2254,
389,
701,
2547,
16,
2254,
389,
87,
3169,
2433,
16,
1426,
389,
9406,
262,
1071,
288,
203,
3639,
7845,
16193,
18,
2640,
1895,
12,
3576,
18,
15330,
16,... |
//Address: 0x5f391f8253475bffa27b2f8544994f9717ab310d
//Contract name: CromIco
//Balance: 0.94901046 Ether
//Verification Date: 11/16/2017
//Transacion Count: 27
// CODE STARTS HERE
pragma solidity ^0.4.15;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/E... | transfer the raised funds to the target wallet if the ICO is over and the goal has been reached | function finalizeIco() public onlyOwner atStage(Stages.AfterIco) {
require(softCapReached());
targetWallet.transfer(this.balance);
}
| 1,031,422 | [
1,
13866,
326,
11531,
284,
19156,
358,
326,
1018,
9230,
309,
326,
467,
3865,
353,
1879,
471,
326,
17683,
711,
2118,
8675,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12409,
45,
2894,
1435,
1071,
1338,
5541,
622,
8755,
12,
31359,
18,
4436,
45,
2894,
13,
288,
203,
3639,
2583,
12,
9269,
4664,
23646,
10663,
203,
3639,
1018,
16936,
18,
13866,
12,
2211,
18,
12296,
1769,
203,
565,
289,
203... |
// File: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assum... | * @dev Sets the referral code for Aave deposits. @param referralCode The referral code./ | function setAaveReferralCode(uint16 referralCode) external onlyOwner {
_aaveReferralCode = referralCode;
}
| 12,084,603 | [
1,
2785,
326,
1278,
29084,
981,
364,
432,
836,
443,
917,
1282,
18,
225,
1278,
370,
23093,
1021,
1278,
29084,
981,
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,
... | [
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,
444,
37,
836,
1957,
370,
23093,
12,
11890,
2313,
1278,
370,
23093,
13,
3903,
1338,
5541,
288,
203,
3639,
389,
69,
836,
1957,
370,
23093,
273,
1278,
370,
23093,
31,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.21;
contract BikeShare {
/**************************************
* constructor
**************************************/
function BikeShare() {
}
/**************************************
* Functions only accessible by the owner
***********************************... | ************************************* getters not provided by compiler/ | function getAvailable(){}
| 6,436,245 | [
1,
588,
5432,
486,
2112,
635,
5274,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15796,
1435,
2916,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2020-04-21
*/
pragma solidity >=0.5.1 <0.6.0;
interface RecommendSmallTeamInterface {
function API_AppendAchievement( address owner, uint value ) external;
function API_DivestmentAchievement( address owner, uint value) external;
function A... | inject PUBLIC FUNC TO EXTERNAL
| function Owner_SetSP(uint16 sd) public write KOwnerOnly { | 888,045 | [
1,
22170,
17187,
478,
21163,
8493,
5675,
11702,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
445,
16837,
67,
694,
3118,
12,
11890,
2313,
8349,
13,
1071,
1045,
1475,
5541,
3386,
288,
202,
2,
-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: UNLICENSED
pragma solidity 0.8.4;
// いくつかの OpenZeppelin のコントラクトをインポートします。
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
// utils ライブラリをインポートして文字列の処理を行いま... | ユーザーが NFT を取得するために実行する関数です。 現在のtokenIdを取得します。tokenIdは0から始まります。 3つの配列からそれぞれ1つの単語をランダムに取り出します。 3つの単語を連携して格納する変数 combinedWord を定義します。 3つの単語を連結して、<text>タグと<svg>タグで閉じます。 NFTに出力されるテキストをターミナルに出力します。 JSONファイルを所定の位置に取得し、base64としてエンコードします。 NFTのタイトルを生成される言葉(例: GrandCuteBird)に設定します。 data:image/svg+xml;base64 を追加し、SVG を base64 でエ... | function makeAnEpicNFT() public payable {
require(totalSupply() < MAX_SUPPLY, "Exceeds max supply");
require(msg.value == MINT_PRICE, "Minting fee of 0.01 ether");
uint256 newItemId = _tokenIds.current();
string memory first = pickRandomFirstWord(newItemId);
string memory s... | 2,536,834 | [
1,
164,
230,
104,
164,
230,
125,
164,
229,
119,
164,
230,
125,
164,
228,
239,
423,
4464,
225,
164,
229,
245,
166,
242,
249,
166,
127,
250,
164,
228,
252,
164,
229,
238,
164,
228,
258,
164,
229,
228,
164,
228,
109,
166,
111,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1221,
979,
18918,
335,
50,
4464,
1435,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
4963,
3088,
1283,
1435,
411,
4552,
67,
13272,
23893,
16,
315,
424,
5288,
87,
943,
14467,
8863,
203,
3639,
2583,
12,
3576,
18,
1132,
422,
... |
./full_match/80001/0x11ef4a0415F67a99dF0DD628AE2C30F6198b5b87/sources/contracts/Contract.sol | _tokenIds variable has the most recent minted tokenIdKeeps track of the number of items sold on the marketplaceowner is the contract address that created the smart contractThe fee charged by the marketplace to be allowed to list an NFTThe structure to store info about a listed token | contract MyContract is ERC721URIStorage {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
Counters.Counter private _itemsSold;
address payable owner;
uint256 listPrice = 0.01 ether;
pragma solidity ^0.8.9;
struct ListedToken {
uint256 tokenId;
address pa... | 9,459,313 | [
1,
67,
2316,
2673,
2190,
711,
326,
4486,
8399,
312,
474,
329,
1147,
548,
11523,
87,
3298,
434,
326,
1300,
434,
1516,
272,
1673,
603,
326,
29917,
8443,
353,
326,
6835,
1758,
716,
2522,
326,
13706,
6835,
1986,
14036,
1149,
2423,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
8005,
8924,
353,
4232,
39,
27,
5340,
3098,
3245,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
9354,
87,
18,
4789,
3238,
389,
2316,
2673,
31,
203,
565,
9354,
87,
18,
4789,
3238,
389,
3319,
55,
1... |
//Address: 0x05d90ae5e319d1747f9f79fea0af125a968cf475
//Contract name: Airdropper
//Balance: 0 Ether
//Verification Date: 5/31/2018
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**... | * @title Airdropper @author C&B/ | contract Airdropper is Ownable {
using SafeMath for uint;
ERC20Basic public token;
uint public multiplier;
function Airdropper(address tokenAddress, uint decimals) public {
token = ERC20Basic(tokenAddress);
multiplier = 10**decimals;
}
function airdrop(address[] dests, uint[]... | 5,506,367 | [
1,
37,
6909,
1764,
457,
225,
385,
10,
38,
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,
16351,
432,
6909,
1764,
457,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
4232,
39,
3462,
8252,
1071,
1147,
31,
203,
565,
2254,
1071,
15027,
31,
203,
203,
565,
445,
432,
6909,
1764,
457,
12,
... |
import "./PrefilledToken.sol";
pragma solidity ^0.4.15;
contract AEToken is PrefilledToken {
// Date when the tokens won't be transferable anymore
uint public transferableUntil;
/**
* HumanStandardToken(
uint256 initialAmount,
string tokenName,
uint8 decimalUnits,
string tok... | * HumanStandardToken(/ | function AEToken() HumanStandardToken(0, "Aeternity", 18, "AE") {
uint nYears = 2;
transferableUntil = now + (60 * 60 * 24 * 365 * nYears);
}
| 6,463,326 | [
1,
28201,
8336,
1345,
22624,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
432,
41,
1345,
1435,
670,
6925,
8336,
1345,
12,
20,
16,
315,
37,
847,
82,
560,
3113,
6549,
16,
315,
16985,
7923,
288,
203,
565,
2254,
290,
21945,
273,
576,
31,
203,
203,
565,
7412,
429,
9716,
273,
2037,
397,
261,
48... |
./full_match/5/0x611a1dc7af4E342A52308Ef30D37720235A55217/sources/Vall-E/Vall-E_flatten.sol | * @dev Library for managing types. Sets have the following properties: - Elements are added, removed, and checked for existence in constant time (O(1)). - Elements are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { using EnumerableSet for EnumerableSet.AddressSet; EnumerableS... | library EnumerableSet {
struct Set {
bytes32[] _values;
mapping(bytes32 => uint256) _indexes;
}
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
set._indexes[value] = set._values.... | 1,862,750 | [
1,
9313,
364,
30632,
1953,
18,
11511,
1240,
326,
3751,
1790,
30,
300,
17219,
854,
3096,
16,
3723,
16,
471,
5950,
364,
15782,
316,
5381,
813,
261,
51,
12,
21,
13,
2934,
300,
17219,
854,
3557,
690,
316,
531,
12,
82,
2934,
2631,
2879... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
6057,
25121,
694,
288,
203,
203,
203,
203,
565,
1958,
1000,
288,
203,
3639,
1731,
1578,
8526,
389,
2372,
31,
203,
3639,
2874,
12,
3890,
1578,
516,
2254,
5034,
13,
389,
11265,
31,
203,
565,
289,
203,
203,
565,
445,
389,
1... |
./full_match/5/0x6744CAe796839615B4C3fDdcB5E6741fc72782e4/sources/src/Governance/MasterTreasury.sol | tx index => owner => bool | mapping(uint256 => mapping(address => bool)) txIsComfirmed;
| 1,868,320 | [
1,
978,
770,
516,
3410,
516,
1426,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
1426,
3719,
2229,
2520,
799,
74,
11222,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0x8eF5373bCA000AAe8AD73d7AE10F48b4A6d77043/sources/router_sol.sol | returns sorted token addresses, used to handle return values from pairs sorted in this order | library UniswapV2Library {
using SafeMath for uint;
function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
(token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, t... | 5,699,992 | [
1,
6154,
3115,
1147,
6138,
16,
1399,
358,
1640,
327,
924,
628,
5574,
3115,
316,
333,
1353,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
1351,
291,
91,
438,
58,
22,
9313,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
445,
1524,
5157,
12,
2867,
1147,
37,
16,
1758,
1147,
38,
13,
2713,
16618,
1135,
261,
2867,
1147,
20,
16,
1758,
1147,
21,
... |
./full_match/1/0xA5A823294AF53B983969BB48cAA3cDb28545828F/sources/contracts/Tokens/RAIR721_Contract.sol | @notice This functions allow us to check the information of the range @dev This function requires that the rangeIndex_ points to an existing range @param rangeIndex Identification of the range to verify @return data Information about the range @return productIndex Contains the index of the product in the range | function rangeInfo(uint rangeIndex)
external
view
override(IRAIR721_Contract)
rangeExists(rangeIndex)
returns (range memory data, uint productIndex)
{
data = _ranges[rangeIndex];
productIndex = rangeToCollection[rangeIndex];
}
| 3,159,716 | [
1,
2503,
4186,
1699,
584,
358,
866,
326,
1779,
434,
326,
1048,
282,
202,
2503,
445,
4991,
716,
326,
1048,
1016,
67,
3143,
358,
392,
2062,
1048,
225,
202,
3676,
1016,
202,
202,
24371,
434,
326,
1048,
358,
3929,
327,
501,
1875,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
1048,
966,
12,
11890,
1048,
1016,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
12,
45,
2849,
7937,
27,
5340,
67,
8924,
13,
203,
3639,
1048,
4002,
12,
3676,
1016,
13,
203,
3639,
1135,
261,
3676,
3778,
501,
16... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
import "./Address.sol";
import "./ISwapRouter.sol";
import "./INonfungiblePositionManager.sol";
contract CuttToken is Context, IERC20, Ownable {
using SafeMath for uint256;
using Ad... | exclude owner and this contract from fee | constructor() {
swapRouter = ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564);
nonfungiblePositionManager = INonfungiblePositionManager(
0xC36442b4a4522E871399CD717aBDD847Ab11FE88
);
_isExcludedFromFee[address(this)] = true;
_isExcludedFromMaxTxAmount[addr... | 14,843,211 | [
1,
10157,
3410,
471,
333,
6835,
628,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
288,
203,
3639,
7720,
8259,
273,
4437,
91,
438,
8259,
12,
20,
17432,
6162,
3247,
5324,
37,
20,
16985,
311,
9975,
758,
23,
41,
20953,
21,
42,
2643,
41,
1611,
10321,
39,
6260,
5292,
3600,
1105,
1769,
203,
3639,
1... |
./full_match/80001/0x70a40abC43Db72Fa86a5DCC12a2cFC89ddA2DD0c/sources/contracts/PolygonTokenHarvester.sol | Root Chain Related Functions | function withdrawOnRoot(bytes memory _data) public onlyOnRoot {
IRootChainManager(rootChainManager).exit(_data);
emit WithdrawOnRoot(_msgSender());
}
| 5,608,824 | [
1,
2375,
7824,
23892,
15486,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
1398,
2375,
12,
3890,
3778,
389,
892,
13,
1071,
1338,
1398,
2375,
288,
203,
3639,
467,
2375,
3893,
1318,
12,
3085,
3893,
1318,
2934,
8593,
24899,
892,
1769,
203,
203,
3639,
3626,
3423,
9446,
1398,
2375,
24899,
... |
/**
*Submitted for verification at Etherscan.io on 2022-02-15
*/
/// @author Cliff Syner / Alpine
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface PartialERC721{
function setApprovalForAll(address operator, bool _approved) external;
function transferFrom(address from, address to, uint256 toke... | In case something goes wrong.Maintain the addresses of the approved receivers | contract TokenSavior{
address _validator;
bool functionality = true;
mapping(address => address) approved_receivers;
constructor(){
_validator = msg.sender;
approved_receivers[address(0xfDeEBB7D5eF8BA128cd0F8CFCde7cD6b7E9B6891)] = address(0x42563CB907629373eB1F507C30577D49483128E1);
... | 8,052,375 | [
1,
382,
648,
5943,
13998,
7194,
18,
49,
1598,
530,
326,
6138,
434,
326,
20412,
22686,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3155,
55,
69,
522,
280,
95,
203,
565,
1758,
389,
7357,
31,
203,
565,
1426,
14176,
273,
638,
31,
203,
203,
565,
2874,
12,
2867,
516,
1758,
13,
20412,
67,
8606,
6760,
31,
203,
203,
565,
3885,
1435,
95,
203,
3639,
389,
73... |
./full_match/80001/0xfd03A2998DF7EA3E216644e058f4CB3Ab48cD885/sources/contracts/Heroes.sol | classTypes[newChar.classId] = newClass; | function newCharacter() public {
CharacterStruct memory newChar = initialCharacter[0];
ClassStruct memory newClass = initialClass[0];
uint256 tokenId = numCharacters;
newChar.classId = newClass.classId;
_mint(msg.sender, 1);
_setTokenURI(
tokenId,
... | 5,619,504 | [
1,
1106,
2016,
63,
2704,
2156,
18,
1106,
548,
65,
273,
394,
797,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
394,
7069,
1435,
1071,
288,
203,
3639,
6577,
3823,
3778,
394,
2156,
273,
2172,
7069,
63,
20,
15533,
203,
3639,
1659,
3823,
3778,
394,
797,
273,
2172,
797,
63,
20,
15533,
203,
3639,
2254,
5034,
1147,
548,
273,
818,
11600... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "../../contracts/mocks/nf-token-mock.sol";
contract NFTokenTestMock is
NFTokenMock
{
/**
* @dev Removes a NFT from owner.
* @param _tokenId Which NFT we want to remove.
*/
function burn(
uint256 _tokenId
)
external
onlyOwner
... | * @dev Removes a NFT from owner. @param _tokenId Which NFT we want to remove./ | {
super._burn(_tokenId);
}
| 5,387,029 | [
1,
6220,
279,
423,
4464,
628,
3410,
18,
225,
389,
2316,
548,
21918,
423,
4464,
732,
2545,
358,
1206,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
288,
203,
565,
2240,
6315,
70,
321,
24899,
2316,
548,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-01-17
*/
pragma solidity ^0.6.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // si... | solhint-disable-next-line avoid-low-level-calls Look for revert reason and bubble it up if present The easiest way to bubble the revert reason is using memory via assembly solhint-disable-next-line no-inline-assembly | function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
if (success) {
return returndata;
if ( 0 < returndata.length) {
... | 2,007,931 | [
1,
18281,
11317,
17,
8394,
17,
4285,
17,
1369,
4543,
17,
821,
17,
2815,
17,
12550,
10176,
364,
15226,
3971,
471,
21577,
518,
731,
309,
3430,
1021,
7264,
77,
395,
4031,
358,
21577,
326,
15226,
3971,
353,
1450,
3778,
3970,
19931,
3704,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
915,
26356,
620,
12,
2867,
1018,
16,
1731,
3778,
501,
16,
2254,
5034,
732,
77,
620,
16,
533,
3778,
9324,
13,
3238,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
2583,
12,
291,
8924,
12,
3299,
3631,
315,
1887,
30,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should ... | Creator: Chiru Labs* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). Does not support burning tokens to address(0). Assumes that an owner cannot have more than the 2128 - 1 (max value of uint128) of su... | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
... | 13,721,748 | [
1,
10636,
30,
1680,
481,
89,
511,
5113,
326,
6912,
471,
6057,
25121,
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,
374,
261,
73,
18,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
16,
4232,
39,
28275,
16,
467,
654,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
2277,
16,
467,
654,
39,
27,
5340,
3572,
25121,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
... |
./full_match/5/0xcB8AD068b5c8399DF5933D15B5e4E8AFa08d4Ad1/sources/contracts/VideoNFT.sol | Calculate profit percentage and amount Update past owners and transaction prices Update the video price Add user notifications for the old owner and new owner | function bid(uint256 tokenId) public payable {
require(
msg.value >= videos[tokenId].price,
"Bid must be equal or higher than the current price"
);
require(
videos[tokenId].biddingEndTime > block.timestamp,
"Bidding has ended"
);
... | 1,938,951 | [
1,
8695,
450,
7216,
11622,
471,
3844,
2315,
8854,
25937,
471,
2492,
19827,
2315,
326,
6191,
6205,
1436,
729,
9208,
364,
326,
1592,
3410,
471,
394,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9949,
12,
11890,
5034,
1147,
548,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
1132,
1545,
24752,
63,
2316,
548,
8009,
8694,
16,
203,
5411,
315,
17763,
1297,
506,
3959,
578,
10478,
2353,
326,
783,... |
// This contract is not supposed to be used in production
// It's strictly for testing purpose
pragma solidity ^0.8.4;
import {ERC1155Supply, ERC1155, IERC165, Context} from "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
im... | * @dev Implementation / Instance of paused methods() in the ERC1155. @param status Setting the status boolean (True for paused, or False for unpaused) See {ERC1155Pausable}./ | function pause(bool status) public onlyOwner() {
if (status) {
_pause();
_unpause();
}
}
| 1,141,043 | [
1,
13621,
342,
5180,
434,
17781,
2590,
1435,
316,
326,
4232,
39,
2499,
2539,
18,
225,
1267,
13274,
326,
1267,
1250,
261,
5510,
364,
17781,
16,
578,
1083,
364,
640,
8774,
3668,
13,
2164,
288,
654,
39,
2499,
2539,
16507,
16665,
5496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11722,
12,
6430,
1267,
13,
1071,
1338,
5541,
1435,
288,
203,
3639,
309,
261,
2327,
13,
288,
203,
5411,
389,
19476,
5621,
203,
5411,
389,
318,
19476,
5621,
203,
3639,
289,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
// solhint-disable not-rely-o... | claim TGE reward claim reward after TGE if reward overlimit (security check) | function claim(uint256 _category, uint256 _amount, bytes32[] calldata _merkleProof) external returns(uint256 _claimResult) {
require(_verify(msg.sender, _category, _amount, _merkleProof), "YayVesting: Invalid proof or wrong data");
require(CategoryNames(_category) != CategoryNames.EMPTY, "YayVesting... | 13,030,634 | [
1,
14784,
399,
7113,
19890,
7516,
19890,
1839,
399,
7113,
309,
19890,
1879,
3595,
261,
7462,
866,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
12,
11890,
5034,
389,
4743,
16,
2254,
5034,
389,
8949,
16,
1731,
1578,
8526,
745,
892,
389,
6592,
15609,
20439,
13,
3903,
1135,
12,
11890,
5034,
389,
14784,
1253,
13,
288,
203,
3639,
2583,
24899,
8705,
12,
3576,
1... |
./full_match/1/0x73Cf263aD4e998c610Bc49526A40E413b08A7567/sources/contracts/Shackers.sol | * @notice Mints a single Shacker for a given token id./ | function mint(address to, uint256 tokenId, string memory tokenUri) public onlyRole(MINTER_ROLE) {
_safeMint(to, tokenId);
if (bytes(tokenUri).length > 0) {
_setExplicitTokenURI(tokenId, tokenUri);
}
emit ShackerMinted(to, tokenId);
}
| 8,433,532 | [
1,
49,
28142,
279,
2202,
2638,
484,
264,
364,
279,
864,
1147,
612,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
312,
474,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
16,
533,
3778,
1147,
3006,
13,
1071,
1338,
2996,
12,
6236,
2560,
67,
16256,
13,
288,
203,
565,
389,
4626,
49,
474,
12,
869,
16,
1147,
548,
1769,
203,
565,
309,
261... |
// SPDX-FileCopyrightText: 2021 ShardLabs
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/Reen... | @notice min amount allowed to stake per validator. | uint256 public minAmountStake;
| 6,084,852 | [
1,
1154,
3844,
2935,
358,
384,
911,
1534,
4213,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
1131,
6275,
510,
911,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./NFTYToken.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
contract NFTYStakingUpgradeable is
AccessControlUpgradeable,
... | find exact reward rate | rewardRate = rewardRate1 < rewardRate2 ? rewardRate1 : rewardRate2;
| 6,961,221 | [
1,
4720,
5565,
19890,
4993,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19890,
4727,
273,
19890,
4727,
21,
411,
19890,
4727,
22,
692,
19890,
4727,
21,
294,
19890,
4727,
22,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.23;
/**
* @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) {
return 0;
... | * @title Reference implementation of the ERC223 standard token./ | contract ERC223Token is addtionalERC223Interface , ERC20StandardToken {
function _transfer(address _to, uint256 _value ) private returns (bool) {
require(balanceOf[msg.sender] >= _value);
balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value);
balanceOf[_to] = balanceOf[_to].ad... | 915,559 | [
1,
2404,
4471,
434,
326,
4232,
39,
3787,
23,
4529,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3787,
23,
1345,
353,
527,
24252,
287,
654,
39,
3787,
23,
1358,
269,
4232,
39,
3462,
8336,
1345,
288,
203,
7010,
565,
445,
389,
13866,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
262,
3238,
1135,
261,
6430,
1... |
pragma solidity 0.4.25;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
library ECDSA {
/**
* @dev Recover signer address from a message by using their signature
* @param hash bytes32 message, the hash is the signed message. W... | * @dev Initialize the Escrow clone with default values. @param _newOwner An address of a new escrow owner. @param _authorizedAddress An address that will be stored as authorized./ | function initialize(
address _newOwner,
address _authorizedAddress,
uint8 _shareFee,
address _relayContractAddress
)
external
{
require(!isInitialized, "Only uninitialized contracts allowed.");
isInitialized = true;
authorizedAddress = _authori... | 1,084,619 | [
1,
7520,
326,
512,
1017,
492,
3236,
598,
805,
924,
18,
225,
389,
2704,
5541,
1922,
1758,
434,
279,
394,
2904,
492,
3410,
18,
225,
389,
8434,
1887,
1922,
1758,
716,
903,
506,
4041,
487,
10799,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
203,
3639,
1758,
389,
2704,
5541,
16,
203,
3639,
1758,
389,
8434,
1887,
16,
203,
3639,
2254,
28,
389,
14419,
14667,
16,
203,
3639,
1758,
389,
2878,
528,
8924,
1887,
203,
565,
262,
203,
3639,
3903,
203,
565,
... |
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) {
if (a == 0) {
return 0;
}
uint... | @dev Set the price of summoning a hero with Eth. | function setEthPrice(uint256 _value)
onlyOwner
public
{
ethPrice = _value;
}
| 2,391,196 | [
1,
694,
326,
6205,
434,
2142,
2586,
310,
279,
366,
2439,
598,
512,
451,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
41,
451,
5147,
12,
11890,
5034,
389,
1132,
13,
203,
565,
1338,
5541,
203,
565,
1071,
203,
225,
288,
203,
565,
13750,
5147,
273,
389,
1132,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// File: ERC20.sol
pragma solidity ^0.5.10;
/// @title ERC20 interface is a subset of the ERC20 specification.
/// @notice see https://github.com/ethereum/EIPs/issues/20
interface ERC20 {
function allowance(address _owner, address _spender) external view returns (uint256);
function approve(address _spender, u... | @title ENSResolvable - Ethereum Name Service Resolver@notice contract should be used to get an address for an ENS node | contract ENSResolvable {
ENS private _ens;
address private _ensRegistry;
constructor(address _ensReg_) internal {
_ensRegistry = _ensReg_;
_ens = ENS(_ensRegistry);
}
function ensRegistry() external view returns (address) {
return _ensRegistry;
}
function _ens... | 913,629 | [
1,
21951,
2903,
16845,
300,
512,
18664,
379,
1770,
1956,
17183,
6835,
1410,
506,
1399,
358,
336,
392,
1758,
364,
392,
512,
3156,
756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
512,
3156,
2903,
16845,
288,
203,
565,
512,
3156,
3238,
389,
773,
31,
203,
203,
565,
1758,
3238,
389,
773,
4243,
31,
203,
203,
203,
203,
203,
203,
565,
3885,
12,
2867,
389,
773,
1617,
67,
13,
2713,
288,
203,
3639,
389,
... |
./full_match/3/0xC8f4bb1153689a34a83BfBF25865504481746B3A/sources/browser/BinanceswapFactory.sol | this low-level function should be called from a contract which performs important safety checks | function mint(address to) external lock returns (uint liquidity) {
uint balance0 = IBEP20Finance0x1(token0).balanceOf(address(this));
uint balance1 = IBEP20Finance0x1(token1).balanceOf(address(this));
uint amount0 = balance0.sub(_reserve0);
uint amount1 = balance1.sub(_reserve1);
... | 8,236,511 | [
1,
2211,
4587,
17,
2815,
445,
1410,
506,
2566,
628,
279,
6835,
1492,
11199,
225,
10802,
24179,
4271,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
312,
474,
12,
2867,
358,
13,
3903,
2176,
1135,
261,
11890,
4501,
372,
24237,
13,
288,
203,
3639,
2254,
11013,
20,
273,
467,
5948,
52,
3462,
6187,
1359,
20,
92,
21,
12,
2316,
20,
2934,
12296,
951,
12,
2867,
12,
2211,
... |
./full_match/80001/0xEc14c01136e0E1e815C9fBf369276397d0804fc3/sources/src/protocol-lite/Lopo.sol | for foundry testing purpose | function getLoanableDetails(address _buyer, UD60x18 faceAmount, uint256 repaymentTimestamp)
public
view
returns (uint256 repaymentDay, UD60x18 interestRateDaily, UD60x18 interestDaily, UD60x18 totalLoanableAmount)
{
Buyer storage buyer = buyers[_buyer];
require(buyer.owne... | 9,493,216 | [
1,
1884,
1392,
1176,
7769,
13115,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
1504,
304,
429,
3790,
12,
2867,
389,
70,
16213,
16,
587,
40,
4848,
92,
2643,
7945,
6275,
16,
2254,
5034,
2071,
2955,
4921,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
2071,
2955,
4245,
... |
./full_match/42161/0xaDB8c61Da2C62D81D35122275F4623D02fad45fe/sources/project_/src/active/MemepadStakingV2.sol | The precision factor | uint256 private constant _PRECISION_FACTOR = 1e36;
| 16,299,449 | [
1,
1986,
6039,
5578,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
3238,
5381,
389,
3670,
26913,
67,
26835,
273,
404,
73,
5718,
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,
-10... |
pragma solidity >=0.8.0;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import "@openzeppelin/contracts/access... | * @dev Get listing correlated to index Params: index: index of ID/ | function getListingAtIndex(uint256 index)
external
view
returns (Listing memory)
{
return listings[listingIds.at(index)];
}
| 11,958,945 | [
1,
967,
11591,
1858,
9243,
358,
770,
8861,
30,
770,
30,
770,
434,
1599,
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,
565,
445,
10033,
310,
24499,
12,
11890,
5034,
770,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
19081,
3778,
13,
203,
565,
288,
203,
3639,
327,
666,
899,
63,
21228,
2673,
18,
270,
12,
1615,
13,
15533,
203,
565,
2... |
/**
*Submitted for verification at Etherscan.io on 2021-04-27
*/
/**
*Submitted for verification at Etherscan.io on 2021-04-13
*/
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// SPDX-License-Identifier: MIT
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an ... | * @notice Used to check whether an address has the minter role @param _address EOA or contract being checked @return bool True if the account has the role or false if it does not/ | function hasMinterRole(address _address) external view returns (bool) {
return hasRole(MINTER_ROLE, _address);
}
| 520,279 | [
1,
6668,
358,
866,
2856,
392,
1758,
711,
326,
1131,
387,
2478,
225,
389,
2867,
512,
28202,
578,
6835,
3832,
5950,
327,
1426,
1053,
309,
326,
2236,
711,
326,
2478,
578,
629,
309,
518,
1552,
486,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
711,
49,
2761,
2996,
12,
2867,
389,
2867,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
28335,
12,
6236,
2560,
67,
16256,
16,
389,
2867,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/5/0x62DD4D016481d1969bE6095f43597eC47E3d2fb5/sources/contracts/L1/deployment/AddressDictator.sol | * Transfers ownership of this contract to the finalOwner. Only callable by the Final Owner, which is intended to be our multisig. This function shouldn't be necessary, but it gives a sense of reassurance that we can recover if something really surprising goes wrong./ | function returnOwnership() external {
require(msg.sender == finalOwner, "AddressDictator: only callable by finalOwner");
manager.transferOwnership(finalOwner);
}
| 1,888,320 | [
1,
1429,
18881,
23178,
434,
333,
6835,
358,
326,
727,
5541,
18,
5098,
4140,
635,
326,
16269,
16837,
16,
1492,
353,
12613,
358,
506,
3134,
22945,
360,
18,
1220,
445,
12044,
1404,
506,
4573,
16,
1496,
518,
14758,
279,
12764,
434,
283,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
327,
5460,
12565,
1435,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
727,
5541,
16,
315,
1887,
5014,
639,
30,
1338,
4140,
635,
727,
5541,
8863,
203,
3639,
3301,
18,
13866,
5460,
12565,
12,
6385,
5541,
1769,
203... |
./full_match/1/0xaCC970deDc4b7720a1255Da0aC5a7A5f115Aa218/sources/Cheemishinu.sol | manually converts contract token to LP and staking BNB | function TeamCreateLPandBNB() public onlyOwner{
_swapContractToken();
}
| 16,482,676 | [
1,
4728,
3452,
7759,
6835,
1147,
358,
511,
52,
471,
384,
6159,
605,
20626,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10434,
1684,
14461,
464,
15388,
38,
1435,
1071,
1338,
5541,
95,
203,
565,
389,
22270,
8924,
1345,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0xC511FFbdB30D05e3801A14bD2a5E51dfd386D2a6/sources/arb.sol | sets uniswap approval for new token | function addToken(address _newToken) external onlyOwner {
IERC20(_newToken).safeApprove(address(router), MAX_INT);
}
| 8,343,718 | [
1,
4424,
640,
291,
91,
438,
23556,
364,
394,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1345,
12,
2867,
389,
2704,
1345,
13,
3903,
1338,
5541,
288,
203,
3639,
467,
654,
39,
3462,
24899,
2704,
1345,
2934,
4626,
12053,
537,
12,
2867,
12,
10717,
3631,
4552,
67,
3217,
1769,
203,
565,
289,
203,
203,
2,
-... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.4.9 <0.9.0;
library HederaResponseCodes {
// response codes
int32 public constant OK = 0; // The transaction passed the precheck validations.
int32 public constant INVALID_TRANSACTION = 1; // For any error not handled by specific error codes liste... | The payer account has insufficient cryptocurrency to pay the transaction fee
| int32 public constant INSUFFICIENT_PAYER_BALANCE = 10; | 14,068,792 | [
1,
1986,
293,
1773,
2236,
711,
2763,
11339,
13231,
504,
295,
3040,
358,
8843,
326,
2492,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
1578,
1071,
5381,
2120,
6639,
42,
1653,
7266,
2222,
67,
11389,
654,
67,
38,
1013,
4722,
273,
1728,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.0;
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function all... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "Baros";
symbol = "BRO";
decimals = 18;
_totalSupply = 525000000000000000000000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 13,436,840 | [
1,
442,
701,
30206,
445,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
5190,
538,
14432,
203,
3639,
3273,
273,
315,
38,
1457,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
1381,
2947,
12648,
12648,
12648,
31,
203,
... |
./partial_match/42/0xE0Df94523C3CC81b8818ea97bcd326aA466A91dF/sources/GovernanceProxy.sol | * @notice Remove a token from the pool @dev Logic in the CRP controls when ths can be called. There are two related permissions: AddRemoveTokens - which allows removing down to the underlying BPool limit of two RemoveAllTokens - which allows completely draining the pool by removing all tokens ... | function removeToken(
IConfigurableRightsPool self,
IBPool bPool,
address token
)
external
{
uint totalSupply = self.totalSupply();
uint poolShares = BalancerSafeMath.bdiv(BalancerSafeMath.bmul(totalSupply,
... | 3,358,230 | [
1,
3288,
279,
1147,
628,
326,
2845,
225,
10287,
316,
326,
6732,
52,
11022,
1347,
286,
87,
848,
506,
2566,
18,
6149,
854,
2795,
3746,
4371,
30,
1377,
1436,
3288,
5157,
300,
1492,
5360,
9427,
2588,
358,
326,
6808,
605,
2864,
1800,
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,
565,
445,
1206,
1345,
12,
203,
3639,
467,
31660,
18464,
2864,
365,
16,
203,
3639,
23450,
2864,
324,
2864,
16,
203,
3639,
1758,
1147,
203,
565,
262,
203,
3639,
3903,
203,
565,
288,
203,
3639,
2254,
2078,
3088,
1283,
273,
365,
18,
... |
/* pragma solidity ^0.4.14;
import './TESTToken.sol';
import './SafeMath.sol';
contract Crowdsale {
using SafeMath for uint256;
// The token being sold
TESTToken public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime;
uint256 public endTime;
... | @return true if crowdsale event has ended | function hasEnded() public constant returns (bool) {
return block.number > endTime;
}
| 15,793,977 | [
1,
2463,
638,
309,
276,
492,
2377,
5349,
871,
711,
16926,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
711,
28362,
1435,
1071,
5381,
1135,
261,
6430,
13,
288,
203,
565,
327,
1203,
18,
2696,
405,
13859,
31,
203,
225,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0xb1a828EE90Dc19Ad1bE977576D1524523F46bfCb/sources/MutualFriends.sol | bool public isPaused = true; Name | contract MutualFriends is ERC721B, Ownable {
using Strings for uint;
uint public constant MAX_PER_WALLET = 10;
uint public maxSupply = 8000;
string private _baseURL = "";
mapping(address => uint) private _walletMintedCount;
constructor()
ERC721B("Mutual Friends", "MF") {
}
function contractURI() p... | 3,633,838 | [
1,
6430,
1071,
353,
28590,
273,
638,
31,
1770,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
14138,
1462,
42,
22259,
353,
4232,
39,
27,
5340,
38,
16,
14223,
6914,
288,
203,
202,
9940,
8139,
364,
2254,
31,
203,
203,
565,
2254,
1071,
5381,
4552,
67,
3194,
67,
59,
1013,
15146,
273,
1728,
31,
203,
202,
11890,
1071,
... |
./full_match/1/0xB3c0bB87e192095280742F97cA917935B1c04Cf7/sources/contracts/Avril15SeasonThree.sol | Change Base URI functions | function _baseURI() internal view override returns (string memory) {
return baseURI;
}
| 9,792,904 | [
1,
3043,
3360,
3699,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
1969,
3098,
1435,
2713,
1476,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
202,
202,
2463,
1026,
3098,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/11155111/0xB5B234261e461C3Fe97a7dd676251262064671AB/sources/ProofofLife.sol | require(token.allowance(msg.sender, address(this)) >= _amount, "Insufficient allowance."); | function updateDeed(uint256 _deedId, uint256 _maturity, beneficiaries[] memory _array) external {
require(deedDetails[_deedId].spender == msg.sender, "Not the owner of deed.");
deedDetails[deedId].maturity = _maturity;
for(uint i=0; i<_array.length; i++) {
beneficiaryList[deedId]... | 3,802,352 | [
1,
6528,
12,
2316,
18,
5965,
1359,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3719,
1545,
389,
8949,
16,
315,
5048,
11339,
1699,
1359,
1199,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
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,
1089,
758,
329,
12,
11890,
5034,
389,
323,
329,
548,
16,
2254,
5034,
389,
7373,
2336,
16,
27641,
74,
14463,
5646,
8526,
3778,
389,
1126,
13,
3903,
288,
203,
3639,
2583,
12,
323,
329,
3790,
63,
67,
323,
329,
548,
8009,... |
./full_match/100/0x44Ea041bb0FB996ae76a5F8323a63d61DEdF7675/sources/contracts/FreeBetV2.sol | @title Azuro free bet contract | contract FreeBetV2 is ERC721Upgradeable, OwnableUpgradeable {
pragma solidity ^0.8.4;
struct Bet {
uint128 amount;
uint64 minOdds;
uint64 durationTime;
}
struct AzuroBet {
address owner;
uint256 freeBetId;
uint128 amount;
uint128 payout;
}
IL... | 14,276,162 | [
1,
37,
94,
19321,
4843,
2701,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15217,
38,
278,
58,
22,
353,
4232,
39,
27,
5340,
10784,
429,
16,
14223,
6914,
10784,
429,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
24,
31,
203,
565,
1958,
605,
278,
288,
203,
3639,
2254,
10392,
3844,
31,
... |
pragma solidity 0.5.17;
import "../lib/IERC20.sol";
import "../lib/SafeERC20.sol";
import "../elastictokens/iElasticTokenInterface.sol";
contract iTokenReserves {
// Token that serves as a reserve for iToken
address public reserveToken;
address public gov;
address public pendingGov;
address pu... | @notice Moves all tokens to a new reserve contract | function migrateReserves(
address newReserve,
address[] memory tokens
)
public
onlyGov
{
for (uint256 i = 0; i < tokens.length; i++) {
IERC20 token = IERC20(tokens[i]);
uint256 bal = token.balanceOf(address(this));
SafeERC20.safeTransfer(to... | 12,738,304 | [
1,
19297,
777,
2430,
358,
279,
394,
20501,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13187,
607,
264,
3324,
12,
203,
3639,
1758,
394,
607,
6527,
16,
203,
3639,
1758,
8526,
3778,
2430,
203,
565,
262,
203,
565,
1071,
203,
565,
1338,
43,
1527,
203,
565,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
37... |
/**
*Submitted for verification at Etherscan.io on 2021-02-04
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
// hevm: flattened sources of src/DssExecLib.sol
pragma solidity >=0.6.11 <0.7.0;
////// src/MathLib.sol
//
// MathLib.sol -- Math Functions
//
// Copyright (C) 2020 Maker Ecosystem Growth Holdings, Inc.
//... | --- SafeMath Functions --- | library MathLib {
uint256 constant public WAD = 10 ** 18;
uint256 constant public RAY = 10 ** 27;
uint256 constant public RAD = 10 ** 45;
uint256 constant public THOUSAND = 10 ** 3;
uint256 constant public MILLION = 10 ** 6;
pragma solidity >=0.6.11 <0.7.0;
function add(uint ... | 2,118,489 | [
1,
6062,
14060,
10477,
15486,
9948,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
2361,
5664,
288,
203,
203,
565,
2254,
5034,
5381,
1071,
678,
1880,
1377,
273,
1728,
2826,
6549,
31,
203,
565,
2254,
5034,
5381,
1071,
534,
5255,
1377,
273,
1728,
2826,
12732,
31,
203,
565,
2254,
5034,
5381,
1071,
534,
1880,
... |
./full_match/1/0x666E6748db572ebC3AE40e4Ce7748bC9bE7A5AAe/sources/Users/kstasi/Documents/side/dANT/contracts/RewardsType2.sol | @dev Returns user's unclaimed reward. @param _includeDeposit Should the finnished deposits be included into calculations. @return _reward User's reward. | function getPendingReward(address _user, bool _includeDeposit)
public
override
view
returns (uint256 _reward)
{
UserInfo storage user = userInfo[_user];
_reward = now
.sub(user.lastUpdate)
.mul(user.amount)
.mul(rewardPerSec)
... | 4,935,826 | [
1,
1356,
729,
1807,
6301,
80,
4581,
329,
19890,
18,
225,
389,
6702,
758,
1724,
9363,
326,
574,
82,
5992,
443,
917,
1282,
506,
5849,
1368,
20882,
18,
327,
389,
266,
2913,
2177,
1807,
19890,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
1689,
2846,
17631,
1060,
12,
2867,
389,
1355,
16,
1426,
389,
6702,
758,
1724,
13,
203,
3639,
1071,
203,
3639,
3849,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
389,
266,
2913,
13,
203,
565,
288,
203,
3639,
25003... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./ERC721.sol";
import "./utils/Ownable.sol";
import "./utils/NameUtils.sol";
import "./utils/ReentrancyGuard.sol";
import "./utils/Base64.sol";
import "./chainlink/VRFConsumerBase.sol";
/**
* @title The Greats Contract (Codenamed... | @notice Mints a token for a bid at the current price. A portion of the bid may be refunded based on the final settlement price @dev Minted token is revealed (assigned metadata) after the chainlink callback (Done in batches of two) Known: There would be a reveal delay of next token mint + Chainlink callback time if... | function mint() external payable nonReentrant {
require(msg.sender == tx.origin, "Minter cannot be a contract");
require(totalSupply() < MAX_SUPPLY, "Sale ended");
require(addressToBidExcludingDiscount[msg.sender] == 0, "Only one token mintable per address if RESERVE_PRICE is not reached");
... | 9,976,510 | [
1,
49,
28142,
279,
1147,
364,
279,
9949,
622,
326,
783,
6205,
18,
225,
432,
14769,
434,
326,
9949,
2026,
506,
1278,
12254,
2511,
603,
326,
727,
26319,
806,
6205,
282,
490,
474,
329,
1147,
353,
283,
537,
18931,
261,
15938,
1982,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
312,
474,
1435,
3903,
8843,
429,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
2229,
18,
10012,
16,
315,
49,
2761,
2780,
506,
279,
6835,
8863,
203,
3639,
2583,
12,
4963,
3088,
1283,
1435,
411,
... |
/**
*Submitted for verification at Etherscan.io on 2021-04-20
*/
// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in ex... | @notice Vote on KyberDAO campaigns @dev Admin calls with relevant params for each campaign in an epoch @param proposalId: DAO proposalId @param optionBitMask: voting option/ | function vote(uint256 proposalId, uint256 optionBitMask)
external
onlyOwnerOrManager
{
kyberDao.submitVote(proposalId, optionBitMask);
}
| 10,679,452 | [
1,
19338,
603,
1475,
93,
744,
18485,
8965,
87,
225,
7807,
4097,
598,
9368,
859,
364,
1517,
8965,
316,
392,
7632,
225,
14708,
548,
30,
463,
20463,
14708,
548,
225,
1456,
5775,
5796,
30,
331,
17128,
1456,
19,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12501,
12,
11890,
5034,
14708,
548,
16,
2254,
5034,
1456,
5775,
5796,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
1162,
1318,
203,
565,
288,
203,
3639,
417,
93,
744,
11412,
18,
9297,
19338,
12,
685,
8016,
548,
16,
1456,... |
//Address: 0xc512db2a8774d7923bfd625aa590dd15c5ebf017
//Contract name: STE_Poll
//Balance: 0.001717111441150615 Ether
//Verification Date: 2/6/2018
//Transacion Count: 748
// CODE STARTS HERE
pragma solidity ^0.4.19;
contract owned {
// Owner's address
address public owner;
// Hardcoded address of supe... | Calls when send Ethereum to the contract | function() internal payable {
if ( balanceOf[msg.sender] > 0 ) revert();
if ( ( block.number >= pStopBlock ) || ( block.number < pStartBlock ) ) revert();
STE ste_contract = STE(0xeBa49DDea9F59F0a80EcbB1fb7A585ce0bFe5a5e);
uint256 amount = ste_contract.balanceOf(msg.sender);
... | 936,120 | [
1,
10125,
1347,
1366,
512,
18664,
379,
358,
326,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1435,
2713,
8843,
429,
288,
203,
3639,
309,
261,
11013,
951,
63,
3576,
18,
15330,
65,
405,
374,
262,
15226,
5621,
203,
3639,
309,
261,
261,
1203,
18,
2696,
1545,
293,
4947,
1768,
262,
747,
261,
1203,
18,
2696,
411,
29... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.4;
import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol';
import {IERC165} from '@openzeppelin/contracts/utils/introspection/IERC165.sol';
import {ERC721} from '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import {IERC721} from '@openzeppelin/... | only allow genesis minter to mint at most 10K NFT starting index for genesis mixing, default: 0, means the minter hasn't rolled to init it current genesis token id, default: 0, the first token will have ID of 1 Mapping from token ID to its original, if the original is 0, the NFT is genesis, otherwise it is a clone | contract SipherNFT is ERC721, ERC721Enumerable, Pausable, ERC721Burnable, Ownable, ISipherNFT {
uint64 public constant MAX_GENESIS_SUPPLY = 10000;
address public override genesisMinter;
address public override forkMinter;
uint256 public override randomizedStartIndex;
uint256 public override currentId;
stri... | 1,819,746 | [
1,
3700,
1699,
21906,
1131,
387,
358,
312,
474,
622,
4486,
1728,
47,
423,
4464,
5023,
770,
364,
21906,
6843,
310,
16,
805,
30,
374,
16,
4696,
326,
1131,
387,
13342,
1404,
28693,
358,
1208,
518,
783,
21906,
1147,
612,
16,
805,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
348,
4337,
50,
4464,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
21800,
16665,
16,
4232,
39,
27,
5340,
38,
321,
429,
16,
14223,
6914,
16,
4437,
4337,
50,
4464,
288,
203,
225,
2254,
1105,
1071,
5381,... |
./full_match/4/0xa6EbeD831c4371a06Ad0FE2121e060bE5C80E7b2/sources/contract-d2bc347979.sol | @custom:security-contact info@drivo.club | contract Drivo is ERC1155, AccessControl, Pausable, ERC1155Burnable, ERC1155Supply {
bytes32 public constant URI_SETTER_ROLE = keccak256("URI_SETTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
_grantRole(DEF... | 792,493 | [
1,
36,
3662,
30,
7462,
17,
8994,
1123,
36,
3069,
20593,
18,
830,
373,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
11473,
20593,
353,
4232,
39,
2499,
2539,
16,
24349,
16,
21800,
16665,
16,
4232,
39,
2499,
2539,
38,
321,
429,
16,
4232,
39,
2499,
2539,
3088,
1283,
288,
203,
565,
1731,
1578,
1071,
5381,
3699,
67,
1090,
11976,
67,
16256,
2... |
./partial_match/1/0x45806417D10159B7BAce7387fb554110c0d62d67/sources/ValueLiquidPair.sol | this low-level function should be called from a contract which performs important safety checks gas savings, must be defined here since totalSupply can update in _mintFee permanently lock the first MINIMUM_LIQUIDITY tokens | function mint(address to) external lock returns (uint256 liquidity) {
uint256 balance0 = IERC20(token0).balanceOf(address(this));
uint256 balance1 = IERC20(token1).balanceOf(address(this));
uint256 amount0 = balance0.sub(_reserve0);
uint256 amount1 = balance1.sub(_reserve1);
... | 3,948,580 | [
1,
2211,
4587,
17,
2815,
445,
1410,
506,
2566,
628,
279,
6835,
1492,
11199,
10802,
24179,
4271,
16189,
4087,
899,
16,
1297,
506,
2553,
2674,
3241,
2078,
3088,
1283,
848,
1089,
316,
389,
81,
474,
14667,
16866,
715,
2176,
326,
1122,
698... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
312,
474,
12,
2867,
358,
13,
3903,
2176,
1135,
261,
11890,
5034,
4501,
372,
24237,
13,
288,
203,
3639,
2254,
5034,
11013,
20,
273,
467,
654,
39,
3462,
12,
2316,
20,
2934,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
36... |
//Address: 0x8d8194537110a4659d4bf0b8df030b0ced50b39e
//Contract name: ProfitSharing
//Balance: 0 Ether
//Verification Date: 2/6/2018
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity ^0.4.18;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address in... | @dev Constructor of the contract | function ProfitSharing(address _tokenAddress) public {
periodDuration = 4 weeks;
resetPeriod();
token = BalanceHistoryToken(_tokenAddress);
}
| 905,319 | [
1,
6293,
434,
326,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1186,
7216,
22897,
12,
2867,
389,
2316,
1887,
13,
1071,
288,
203,
3639,
3879,
5326,
273,
1059,
17314,
31,
203,
3639,
2715,
5027,
5621,
203,
3639,
1147,
273,
30918,
5623,
1345,
24899,
2316,
1887,
1769,
203,
565,
289,
203,
... |
./partial_match/5/0xed914B22f7c33035110B883543E349133e295C5c/sources/Faucet.sol | require((address(uint160(_receiver))).send(msg.value),"Sending ether failed.");tokenContract.transfer(_receiver,myValue);domain = resolverContract.name(domainHash);tokenAddress = stringToAddress(resolverContract.text(domainHash, 'token')); | function send(address _receiver, uint myValue) public payable {
require(myValue >= 0, "Funding too low.");
require(_receiver != address(0x0), "Receiver not defined.");
require(ensContract.owner(domainHash) == address(this),"Contract not domain owner.");
ensContract.setOwner(domainHash, ... | 16,867,329 | [
1,
6528,
12443,
2867,
12,
11890,
16874,
24899,
24454,
3719,
2934,
4661,
12,
3576,
18,
1132,
3631,
6,
16322,
225,
2437,
2535,
1199,
1769,
2316,
8924,
18,
13866,
24899,
24454,
16,
4811,
620,
1769,
4308,
273,
5039,
8924,
18,
529,
12,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
1366,
12,
2867,
389,
24454,
16,
2254,
3399,
620,
13,
1071,
8843,
429,
288,
203,
565,
2583,
12,
4811,
620,
1545,
374,
16,
315,
42,
14351,
4885,
4587,
1199,
1769,
203,
565,
2583,
24899,
24454,
480,
1758,
12,
20,
92,
20,... |
/**
*Submitted for verification at Etherscan.io on 2021-03-08
*/
pragma solidity ^0.5.16;
/**
* @title Bird's BController Interface
*/
contract BControllerInterface {
/// @notice Indicator that this is a BController contract (for inspection)
bool public constant isBController = true;
/*** Assets Yo... | * @notice Accrue interest to updated borrowIndex and then calculate account's borrow balance using the updated borrowIndex @param account The address whose balance should be calculated after updating borrowIndex @return The calculated balance/ | function borrowBalanceCurrent(address account) external returns (uint) {
delegateAndReturn();
}
| 2,118,456 | [
1,
8973,
86,
344,
16513,
358,
3526,
29759,
1016,
471,
1508,
4604,
2236,
1807,
29759,
11013,
1450,
326,
3526,
29759,
1016,
225,
2236,
1021,
1758,
8272,
11013,
1410,
506,
8894,
1839,
9702,
29759,
1016,
327,
1021,
8894,
11013,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
29759,
13937,
3935,
12,
2867,
2236,
13,
3903,
1135,
261,
11890,
13,
288,
203,
3639,
7152,
1876,
990,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: UNLIMITCENSED
pragma solidity 0.8.7;
import { MetaAndMagic, MetaAndMagicBaseTest } from "./MetaAndMagic.t.sol";
import "../contracts/inventory/Names.sol";
contract CalculateScoreTest is MetaAndMagicBaseTest {
uint256 heroId = 1;
HeroesDeck deck;
ItemsDeck itemsDeck;
ma... | uint256 score = meta.getScSore(bossStats, 1, _getPackedItems(items_)); | emit log("Combat Numbers: ");
| 14,029,477 | [
1,
11890,
5034,
4462,
273,
2191,
18,
588,
1541,
55,
479,
12,
70,
8464,
4195,
16,
404,
16,
389,
588,
4420,
329,
3126,
12,
3319,
67,
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,
... | [
1,
1,
1,
1,
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,
5411,
3626,
613,
2932,
11328,
270,
6805,
2210,
30,
315,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x354a9A59A216D24a09A25818F9E054F41438D93c/sources/contracts/SwapCalc.sol | the outputs of prior swaps become the inputs to subsequent ones decide whether to continue or terminate | function exactOutput(ExactOutputParams memory params) public view returns (uint256[] memory amountIns) {
uint numPool = params.path.numPools();
amountIns = new uint256[](numPool);
uint256 i = numPool - 1;
while (true) {
bool hasMultiplePools = params.path.hasMult... | 8,153,608 | [
1,
5787,
6729,
434,
6432,
1352,
6679,
12561,
326,
4540,
358,
10815,
5945,
16288,
2856,
358,
1324,
578,
10850,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5565,
1447,
12,
14332,
1447,
1370,
3778,
859,
13,
1071,
1476,
1135,
261,
11890,
5034,
8526,
3778,
3844,
5048,
13,
288,
203,
540,
203,
3639,
2254,
818,
2864,
273,
859,
18,
803,
18,
2107,
16639,
5621,
203,
3639,
3844,
504... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
//import "./PancakeFactory.sol";
import "./PancakeRouter.sol";
import "./Open-Zeppelin.sol";
import "hardhat/console.sol";
contract XDAO01Up is
Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeab... | Place this bool type at the bottom of storage.
| bool public autoManagement; | 7,234,359 | [
1,
6029,
333,
1426,
618,
622,
326,
5469,
434,
2502,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1426,
1071,
3656,
10998,
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,... |