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 |
|---|---|---|---|---|---|---|
./full_match/4/0x511739380fb9C5b985d08B5637ba732cAB3D4cCC/sources/contracts/TRAVELLSMART.sol | * @dev See {IBEP20-allowance}./ | function allowance(address owner, address spender)
external
view
override
returns (uint256)
{
return _allowances[owner][spender];
}
| 660,690 | [
1,
9704,
288,
45,
5948,
52,
3462,
17,
5965,
1359,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1699,
1359,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
389,
5965,
6872,
63,
8443,
6362,
87,
1302,
... |
pragma solidity ^0.8.13;
//SPDX-License-Identifier: MIT
import "./CaveatEnforcer.sol";
import "../Delegatable.sol";
contract RevocationEnforcer is CaveatEnforcer, Delegatable("CaveatEnforcer", "1") {
mapping(bytes32 => bool) isRevoked;
function enforceCaveat(
bytes calldata terms,
Transaction calldata tr... | * This is boilerplate that must be added to any Delegatable contract if it also inherits from another class that also implements _msgSender()./ Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. | function _msgSender () internal view override(Delegatable) returns (address sender) {
if(msg.sender == address(this)) {
bytes memory array = msg.data;
uint256 index = msg.data.length;
assembly {
sender := and(mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff)
}
... | 12,545,769 | [
1,
2503,
353,
800,
2895,
994,
716,
1297,
506,
3096,
358,
1281,
24117,
8163,
6835,
309,
518,
2546,
24664,
628,
4042,
667,
716,
2546,
4792,
389,
3576,
12021,
7675,
19,
4444,
326,
3847,
1731,
2076,
628,
3778,
598,
326,
1758,
603,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
3576,
12021,
1832,
2713,
1476,
3849,
12,
15608,
8163,
13,
1135,
261,
2867,
5793,
13,
288,
203,
565,
309,
12,
3576,
18,
15330,
422,
1758,
12,
2211,
3719,
288,
203,
1377,
1731,
3778,
526,
273,
1234,
18,
892,
31,
20... |
./full_match/80001/0x882b3cae988e08f0CAEbA6261ACA90f2c1f0aE67/sources/project_/src/contracts/PrettyFaces.sol | if OpenSea's ERC721 Proxy Address is detected, auto-return true for Polygon's Mumbai testnet, use 0xff7Ca10aF37178BdD056628eF42fD7F799fAc77c | function isApprovedForAll(address _owner, address _operator)
public
view
override(ERC721, IERC721)
returns (bool isOperator)
{
if (_operator == address(0x58807baD0B376efc12F5AD86aAc70E78ed67deaE)) {
return true;
}
}
| 5,609,536 | [
1,
430,
3502,
1761,
69,
1807,
4232,
39,
27,
5340,
7659,
5267,
353,
8316,
16,
3656,
17,
2463,
638,
364,
12681,
1807,
490,
3592,
10658,
1842,
2758,
16,
999,
374,
5297,
27,
23508,
2163,
69,
42,
6418,
4033,
28,
38,
72,
40,
20,
4313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
31639,
1290,
1595,
12,
2867,
389,
8443,
16,
1758,
389,
9497,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
12,
654,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
13,
203,
3639,
1135,
261,
6430,
353,
5592,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import... | delete me uint _amount IERC20(_erc20).safeTransfer(donates[_id].owner, donates[_id].amount); | function withdrawDonate(uint _id, address _erc20) external {
require(block.number > donates[_id].endBlockNumber, 'donate has not over');
require(donates[_id].owner == tx.origin, 'no auth access');
require(donates[_id].amount > 0, 'no token can withdraw');
payable(donates[_id].owner)... | 1,058,131 | [
1,
3733,
1791,
2254,
389,
8949,
467,
654,
39,
3462,
24899,
12610,
3462,
2934,
4626,
5912,
12,
19752,
815,
63,
67,
350,
8009,
8443,
16,
2727,
815,
63,
67,
350,
8009,
8949,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
22293,
340,
12,
11890,
389,
350,
16,
1758,
389,
12610,
3462,
13,
3903,
288,
203,
3639,
2583,
12,
2629,
18,
2696,
405,
2727,
815,
63,
67,
350,
8009,
409,
1768,
1854,
16,
296,
19752,
340,
711,
486,
1879,
8284... |
./full_match/44787/0x81F24e822142216C1A0dEbca17cA952A6C0C1bEb/sources/contracts/microcredit/MicrocreditImplementation.sol | * @notice Changes the borrowers manager address @dev This method doesn't change anything on the contract state, it just emits events to be used by the off-chain system @param _borrowerAddresses address of the borrowers @param _managerAddress address of the new manager/ | function changeManager(address[] memory _borrowerAddresses, address _managerAddress) external override onlyManagers {
uint256 _index;
require(_managerList.contains(_managerAddress), "Microcredit: invalid manager address");
for(_index = 0; _index < _borrowerAddresses.length; _index++) {
... | 13,253,943 | [
1,
7173,
326,
29759,
414,
3301,
1758,
225,
1220,
707,
3302,
1404,
2549,
6967,
603,
326,
6835,
919,
16,
518,
2537,
24169,
2641,
358,
506,
1399,
635,
326,
3397,
17,
5639,
2619,
225,
389,
70,
15318,
264,
7148,
1758,
434,
326,
29759,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
1318,
12,
2867,
8526,
3778,
389,
70,
15318,
264,
7148,
16,
1758,
389,
4181,
1887,
13,
3903,
3849,
1338,
17570,
288,
203,
3639,
2254,
5034,
389,
1615,
31,
203,
3639,
2583,
24899,
4181,
682,
18,
12298,
24899,
4181,
... |
./full_match/43113/0xAe76ceCa5904B4B26ed91C7174a94E7053Bd3a26/sources/ElkFarmFactory_flat.sol | @dev Internal hook called before withdrawing (in the withdraw() function). @_account withdrawer address @_amount amount being withdrawn @return amount to withdraw (may be changed by the hook)/ | function _beforeWithdraw(address /*_account*/, uint256 _amount) internal virtual returns(uint256) { return _amount; }
| 7,167,715 | [
1,
3061,
3953,
2566,
1865,
598,
9446,
310,
261,
267,
326,
598,
9446,
1435,
445,
2934,
24294,
4631,
598,
9446,
264,
1758,
24294,
8949,
3844,
3832,
598,
9446,
82,
327,
3844,
358,
598,
9446,
261,
24877,
506,
3550,
635,
326,
3953,
13176,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
1190,
9446,
12,
2867,
1748,
67,
4631,
5549,
16,
2254,
5034,
389,
8949,
13,
2713,
5024,
1135,
12,
11890,
5034,
13,
288,
327,
389,
8949,
31,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x87E8FEB7A28f55f9ae9aBE0a426EB3aF55fa1910/sources/Untitled.sol | Normalize sell amount | _amount = _amount.mul(1e18).div(10**tokenList[0].decimals);
| 8,291,436 | [
1,
14380,
357,
80,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
389,
8949,
273,
389,
8949,
18,
16411,
12,
21,
73,
2643,
2934,
2892,
12,
2163,
636,
2316,
682,
63,
20,
8009,
31734,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/10/0x02bD0b89F7b198014425Df1a4152A2E77576c38D/sources/src/interfaces/ITrigger.sol | * @dev The minimal functions a trigger must implement to work with the Cozy protocol./ | interface ITrigger is ITriggerEvents {
function state() external returns(CState);
function addSet(ISet set) external;
pragma solidity ^0.8.0;
}
| 3,778,158 | [
1,
1986,
16745,
4186,
279,
3080,
1297,
2348,
358,
1440,
598,
326,
7695,
21832,
1771,
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,
... | [
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,
5831,
467,
6518,
353,
467,
6518,
3783,
288,
203,
225,
445,
919,
1435,
3903,
1135,
12,
39,
1119,
1769,
203,
203,
225,
445,
527,
694,
12,
45,
694,
444,
13,
3903,
31,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
2... |
./partial_match/80001/0x062292e464fc5A7dC1D00CC5dd214bC0efB65a1C/sources/Users/famousbirthdays/Sites/mb-contracts/contracts/MetaBoards.sol | /* @dev Set the game active/ | function setGameActive(bool _isActive) public onlyOwner {
gameActive = _isActive;
emit GameSetActive(gameId, _isActive);
}
| 8,804,677 | [
1,
19,
225,
1000,
326,
7920,
2695,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12496,
3896,
12,
6430,
389,
291,
3896,
13,
1071,
1338,
5541,
288,
203,
3639,
7920,
3896,
273,
389,
291,
3896,
31,
203,
3639,
3626,
14121,
694,
3896,
12,
13957,
548,
16,
389,
291,
3896,
1769,
203,
565,
289,
203,
2... |
pragma solidity >=0.5.16<0.8.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./Administered.sol";
/// @title A simulator for Market Place
/// @author Aysha Amin
/// @notice You can use this ... | @dev Get Store Count. @return The count of the stores | function getStoreCount()
public
view
returns (int32) {
return storeCount;
}
| 7,219,038 | [
1,
967,
4994,
6974,
18,
327,
1021,
1056,
434,
326,
9064,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15818,
1380,
1435,
7010,
225,
1071,
7010,
225,
1476,
7010,
225,
1135,
261,
474,
1578,
13,
288,
203,
565,
327,
1707,
1380,
31,
203,
225,
289,
7010,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.19;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
... | maps the bytes20 hash to a swap | mapping(address => mapping(bytes20 => Swap)) public swaps;
| 12,764,197 | [
1,
10711,
326,
1731,
3462,
1651,
358,
279,
7720,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
2874,
12,
3890,
3462,
516,
12738,
3719,
1071,
1352,
6679,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.4;
interface IFlashToken {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function app... | A library for performing overflow-safe math, courtesy of DappHub: https:github.com/dapphub/ds-math/blob/d0ef6d6a5f/src/math.sol Modified to include only the essentials | library SafeMath {
function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
require((z = x + y) >= x, "MATH:: ADD_OVERFLOW");
}
function sub(uint256 x, uint256 y) internal pure returns (uint256 z) {
require((z = x - y) <= x, "MATH:: SUB_UNDERFLOW");
}
function mul(uin... | 1,227,761 | [
1,
37,
5313,
364,
14928,
9391,
17,
4626,
4233,
16,
21833,
1078,
93,
434,
463,
2910,
8182,
30,
2333,
30,
6662,
18,
832,
19,
6223,
844,
373,
19,
2377,
17,
15949,
19,
10721,
19,
72,
20,
10241,
26,
72,
26,
69,
25,
74,
19,
4816,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14060,
10477,
288,
203,
565,
445,
527,
12,
11890,
5034,
619,
16,
2254,
5034,
677,
13,
2713,
16618,
1135,
261,
11890,
5034,
998,
13,
288,
203,
3639,
2583,
12443,
94,
273,
619,
397,
677,
13,
1545,
619,
16,
315,
49,
3275,
2... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorVotesComp.sol)
pragma solidity ^0.8.0;
import "../GovernorUpgradeable.sol";
import "../../token/ERC20/extensions/ERC20VotesCompUpgradeable.sol";
import { GovernorVotesCompStorage } from "./GovernorVotesCompStorage.sol";
im... | generated getter for ${varDecl.name} | function token() public view returns(ERC20VotesCompUpgradeable) {
return GovernorVotesCompStorage.layout().token;
}
| 12,572,199 | [
1,
11168,
7060,
364,
3531,
1401,
3456,
18,
529,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
1435,
1071,
1476,
1135,
12,
654,
39,
3462,
29637,
2945,
10784,
429,
13,
288,
203,
3639,
327,
611,
1643,
29561,
29637,
2945,
3245,
18,
6741,
7675,
2316,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.2;
import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol";
import "../contracts/ProofOfExistence.sol";
contract TestProofOfExistence {
/** @dev This test function is to check the initial proof length.
* Since user is interacting with the app very first time, there
* s... | * @dev This test function is to check the file path. IPFS url of uploaded file should match with the corresponding state variable in blockchain./ | function testFilePathMetadata() public {
ProofOfExistence proofOfExistence = ProofOfExistence(DeployedAddresses.ProofOfExistence());
proofOfExistence.addProof("random file hash", "random file path");
(string memory fileHash, string memory filePath, uint timestamp, address owner) = proofOfE... | 973,254 | [
1,
2503,
1842,
445,
353,
358,
866,
326,
585,
589,
18,
2971,
4931,
880,
434,
9140,
585,
1410,
845,
598,
326,
4656,
919,
2190,
316,
16766,
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,
... | [
1,
1,
1,
1,
1,
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,
1842,
5598,
2277,
1435,
1071,
288,
203,
3639,
1186,
792,
951,
4786,
802,
14601,
951,
4786,
802,
273,
1186,
792,
951,
4786,
802,
12,
31954,
7148,
18,
20439,
951,
4786,
802,
10663,
203,
203,
3639,
14601,
951,
4786,
802,
1... |
./full_match/4/0x66427a8B92F2679b5cF55C69a93e2431c1E9370D/sources/contracts/ColorDoodlesItemsRoyalties.sol | new uploaded QmPEDvdyJVDSnMAsqzrbkuBBPjWXxTT8xxmbJrDsEvQ5rJ | contract ColorDoodlesItemsRoyalties is ERC721, Ownable {
uint256 public constant SHANIR_TEST = 0;
using Counters for Counters.Counter;
Counters.Counter private _tokenIdTracker;
_mint(msg.sender, i);
}*/
| 12,495,521 | [
1,
2704,
9140,
2238,
81,
12120,
90,
15680,
46,
58,
3948,
82,
49,
1463,
85,
94,
6731,
31562,
9676,
52,
78,
59,
60,
92,
1470,
28,
5279,
1627,
46,
86,
22831,
20861,
53,
25,
86,
46,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
5563,
3244,
369,
1040,
3126,
54,
13372,
2390,
606,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
565,
2254,
5034,
1071,
5381,
6122,
1258,
7937,
67,
16961,
273,
374,
31,
203,
203,
565,
1450,
9354,
87,
364,
9354,
87,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IStrategyV2.sol";
import "../../ValueVaultMaster.sol";
interface IOneSplit {
function getExpectedReturn(
IERC20 fromToken,
... | we have TokenB (WETH) already, so use 1/2 bal to buy TokenA (USDC)
| uint256 wethToBuyTokenA = wethBal.sub(_reserved).div(2); | 5,504,773 | [
1,
1814,
1240,
3155,
38,
261,
59,
1584,
44,
13,
1818,
16,
1427,
999,
404,
19,
22,
324,
287,
358,
30143,
3155,
37,
261,
3378,
5528,
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,... | [
1,
1,
1,
1,
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,
2254,
5034,
341,
546,
774,
38,
9835,
1345,
37,
273,
341,
546,
38,
287,
18,
1717,
24899,
18898,
2934,
2892,
12,
22,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.15;
contract IToken {
function issue(address _recipient, uint256 _value) returns (bool);
function totalSupply() constant returns (uint256);
function unlock() returns (bool);
}
contract CoinoorCrowdsale {
// Crowdsale details
address public beneficiary; // Company address mul... | * Convert `_wei` to an amount in tokens using the current rate @param _wei amount of wei to convert @return The amount in tokens/ Check for preico Check for waiting period Check for angelday Check first week Check second week Check third week Check last week | function toTokens(uint256 _wei) returns (uint256 amount) {
uint256 rate = 0;
if (stage != Stages.Ended && now >= start && now <= end) {
if (now <= start + ratePreICOEnd) {
rate = ratePreICO;
}
else if (now <= start + rateWaitingEnd) {
... | 10,493,908 | [
1,
2723,
1375,
67,
1814,
77,
68,
358,
392,
3844,
316,
2430,
1450,
326,
783,
4993,
225,
389,
1814,
77,
3844,
434,
732,
77,
358,
1765,
327,
1021,
3844,
316,
2430,
19,
2073,
364,
675,
10764,
2073,
364,
7336,
3879,
2073,
364,
7603,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
358,
5157,
12,
11890,
5034,
389,
1814,
77,
13,
1135,
261,
11890,
5034,
3844,
13,
288,
203,
3639,
2254,
5034,
4993,
273,
374,
31,
203,
3639,
309,
261,
12869,
480,
934,
1023,
18,
28362,
597,
2037,
1545,
787,
597,
2037,
... |
./full_match/56/0x017bc8a64a2b3d8afF56E9d7E939fDd8e87ed730/sources/RiseCity.sol | * @dev Creates `amount` tokens and assigns them to `account`, increasing the total supply. Emits a {Transfer} event with `from` set to the zero address. Requirements: - `account` cannot be the zero address./ | function mint(address account, uint256 amount) public onlyOwner {
require(account != address(0), "ERC20: mint to the zero address");
if (!initMint) {
require(block.timestamp - mintTimer > 604800, "max week limit reached");
if (amount+actualMinted > maxMintPerWeek) {
... | 3,227,095 | [
1,
2729,
1375,
8949,
68,
2430,
471,
22698,
2182,
358,
1375,
4631,
9191,
21006,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
2080,
68,
444,
358,
326,
3634,
1758,
18,
29076,
30,
300,
1375,
4631,
68,
2780,
506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
312,
474,
358,
326,
3634,
1758,
8863,
203,
3639,
309,
16051,
2738,... |
./partial_match/1/0x8fa702D65542596aC1AD3C5454C622C13e53085E/sources/Moona_Lisa_Print_Original.sol | * Returns the packed ownership data of `tokenId`./ If not burned. Invariant: There will always be an initialized ownership slot (i.e. `ownership.addr != address(0) && ownership.burned == false`) before an unintialized ownership slot (i.e. `ownership.addr == address(0) && ownership.burned == false`) Hence, `curr` will n... | function _packedOwnershipOf(uint256 tokenId)
private
view
returns (uint256)
{
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
... | 2,771,291 | [
1,
1356,
326,
12456,
23178,
501,
434,
1375,
2316,
548,
8338,
19,
971,
486,
18305,
329,
18,
657,
8688,
30,
6149,
903,
3712,
506,
392,
6454,
23178,
4694,
261,
77,
18,
73,
18,
1375,
995,
12565,
18,
4793,
480,
1758,
12,
20,
13,
597,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2920,
329,
5460,
12565,
951,
12,
11890,
5034,
1147,
548,
13,
203,
3639,
3238,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2254,
5034,
4306,
273,
1147,
548,
31,
203,
203,
3639,
... |
./full_match/3/0x0D1E1E939a172a0b0C88eB22F05935718Da4447C/sources/FUDLToken_6.0.sol | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract FuddleToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
constructor() public {
symbol = "FUDL";
... | 8,106,101 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
478,
20567,
298,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
... |
pragma ton-solidity >= 0.47.0;
pragma AbiHeader expire;
pragma AbiHeader time;
pragma AbiHeader pubkey;
import "./SubscriptionPlan.sol";
import "./interfaces/root/IRootCreateSubscriptionPlan.sol";
import "./interfaces/root/IRootOnUserSubscription.sol";
import "./interfaces/root/IRootWithdrawal.sol";
import "./interfac... | owner tries to make double transfer of income
| if (_virtualBalances[tip3Root] < amount) { | 12,738,428 | [
1,
8443,
9327,
358,
1221,
1645,
7412,
434,
316,
5624,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
67,
12384,
38,
26488,
63,
14587,
23,
2375,
65,
411,
3844,
13,
288,
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,
... |
./partial_match/4/0x8aCdC3Ec0e56Fe1F38A7e147B0ED3bf813C599B2/sources/home/konstantinovv/source/KingLuigy/KingSwap_V2/contracts/RoyalDecks.sol | Staking period in Seconds
| uint32 lockSeconds; | 8,538,090 | [
1,
510,
6159,
3879,
316,
18301,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
1578,
2176,
6762,
31,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asser... | Event to be broadcasted to public when content creator's Name earns Pathos when a node buys a content | event PathosEarned(address indexed nameId, bytes32 indexed purchaseId, uint256 amount);
| 10,007,509 | [
1,
1133,
358,
506,
8959,
329,
358,
1071,
1347,
913,
11784,
1807,
1770,
425,
1303,
87,
2666,
538,
1347,
279,
756,
25666,
1900,
279,
913,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
2575,
2666,
538,
41,
1303,
329,
12,
2867,
8808,
508,
548,
16,
1731,
1578,
8808,
23701,
548,
16,
2254,
5034,
3844,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x2B53E82C221494d27d5B748b14564726092b4D9d/sources/F2E.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("Follow 2 Earn", "F2E") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair... | 3,205,701 | [
1,
10157,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
8328,
576,
512,
1303,
3113,
315,
42,
22,
41,
7923,
288,
203,
540,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
4... |
./full_match/3/0xBC10a19C64b376db7ACe4dc09C806be86ba871d3/sources/browser/transactionTest.sol | get the contract balance
| balanceOf=contractAdd.balance; | 14,154,008 | [
1,
588,
326,
6835,
11013,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11013,
951,
33,
16351,
986,
18,
12296,
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,
... |
./partial_match/1/0x91C986709Bb4fE0763edF8E2690EE9d5019Bea4a/sources/contracts/utils/BaseLibEIP712.sol | EIP-191 Header EIP712Domain EIP712Domain Separator | abstract contract BaseLibEIP712 {
string public constant EIP191_HEADER = "\x19\x01";
string public constant EIP712_DOMAIN_NAME = "Tokenlon";
string public constant EIP712_DOMAIN_VERSION = "v5";
bytes32 public immutable originalEIP712DomainSeparator;
uint256 public immutable originalChainId;
pragm... | 2,657,044 | [
1,
41,
2579,
17,
30380,
4304,
512,
2579,
27,
2138,
3748,
512,
2579,
27,
2138,
3748,
27519,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17801,
6835,
3360,
5664,
41,
2579,
27,
2138,
288,
203,
565,
533,
1071,
5381,
512,
2579,
30380,
67,
7557,
273,
1548,
92,
3657,
64,
92,
1611,
14432,
203,
203,
565,
533,
1071,
5381,
512,
2579,
27,
2138,
67,
18192,
67,
1985,
273,
3... |
./full_match/43114/0xFB288999e57DA77de3832D425816F87856DC40B9/sources/_ohfinance/oh-contracts/contracts/manager/OhManager.sol | @notice Adds or removes a Bank for investment @dev Only Governance can call this function @param _bank the bank to be approved/unapproved @param _approved the approval status of the bank if Bank is already approved, withdraw all capital | function setBank(address _bank, bool _approved) external onlyGovernance {
require(_bank.isContract(), "Manager: Not Contract");
bool approved = _banks.contains(_bank);
require(approved != _approved, "Manager: No Change");
if (approved) {
exitAll(_bank);
_bank... | 4,594,943 | [
1,
3655,
578,
7157,
279,
25610,
364,
2198,
395,
475,
225,
5098,
611,
1643,
82,
1359,
848,
745,
333,
445,
225,
389,
10546,
326,
11218,
358,
506,
20412,
19,
318,
25990,
225,
389,
25990,
326,
23556,
1267,
434,
326,
11218,
309,
25610,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15268,
2304,
12,
2867,
389,
10546,
16,
1426,
389,
25990,
13,
3903,
1338,
43,
1643,
82,
1359,
288,
203,
3639,
2583,
24899,
10546,
18,
291,
8924,
9334,
315,
1318,
30,
2288,
13456,
8863,
203,
3639,
1426,
20412,
273,
389,
1... |
pragma solidity ^0.4.21;
contract ERC20_Interface {
function totalSupply() public constant returns (uint256);
function balanceOf(address tokenOwner) public constant returns (uint256 balance);
function allowance(address tokenOwner, address spender) public constant returns (uint256 remaining);
function ... | ------------------------------------------------------------------------ Owner can transfer out any accidentally sent ERC20 tokens ------------------------------------------------------------------------ | function transferAnyERC20Token(address tokenAddress, uint256 tokens) public onlyOwner returns (bool success) {
return ERC20_Interface(tokenAddress).transfer(owner, tokens);
}
| 6,893,026 | [
1,
29461,
16837,
848,
7412,
596,
1281,
25961,
1230,
3271,
4232,
39,
3462,
2430,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7412,
2961,
654,
39,
3462,
1345,
12,
2867,
1147,
1887,
16,
2254,
5034,
2430,
13,
1071,
1338,
5541,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
327,
4232,
39,
3462,
67,
1358,
12,
2316,
1887,
2934,
13866,
12,
8443,
16,
2... |
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
/**
* @title EternalStorage
* @dev An ownable contract that can be used as a storage where the variables
* are stored in a set of mappings indexed by hash names.
* Contract importing following the guidelines in the zeppelino... | * @dev Allows the owner to set a value for a string variable. @param h The keccak256 hash of the variable name @param v The value to be stored/ | function setString(bytes32 h, string memory v) public onlyOwner {
s._string[h] = v;
}
| 12,731,445 | [
1,
19132,
326,
3410,
358,
444,
279,
460,
364,
279,
533,
2190,
18,
225,
366,
1021,
417,
24410,
581,
5034,
1651,
434,
326,
2190,
508,
225,
331,
1021,
460,
358,
506,
4041,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
14600,
12,
3890,
1578,
366,
16,
533,
3778,
331,
13,
1071,
1338,
5541,
288,
203,
3639,
272,
6315,
1080,
63,
76,
65,
273,
331,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
functi... | soldTokens = soldTokens.add(_amount); | if (isPersonalBonuses) {
PersonalBonusRecord storage record = personalBonuses[_beneficiary];
if (record.refererAddress != address(0) && record.refererBonus > 0) {
shipTokens(record.refererAddress, refererTokens);
ShipTokens(record.refererAddress, refererTokens);
}
}
soldTo... | 979,541 | [
1,
87,
1673,
5157,
273,
272,
1673,
5157,
18,
1289,
24899,
8949,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
309,
261,
291,
8346,
287,
38,
265,
6117,
13,
288,
203,
1377,
11573,
287,
38,
22889,
2115,
2502,
1409,
273,
17816,
38,
265,
6117,
63,
67,
70,
4009,
74,
14463,
814,
15533,
203,
1377,
309,
261,
3366,
18,
28596,
1887,
480,
175... |
./full_match/56/0x25ee4005B365595AbC4D043F615C503618b37B57/sources/contracts/BEP20.sol | 3000000000 * 10**18; Quỹ trả thưởng 3 tỷ token với 18 decimal places (10^18).
| uint256 private REWARD_POOL = 3000000000000000000; | 3,248,938 | [
1,
23,
2787,
11706,
225,
13822,
28,
31,
225,
4783,
162,
124,
122,
433,
162,
123,
101,
286,
135,
113,
162,
124,
258,
3368,
890,
268,
162,
124,
120,
1147,
331,
162,
124,
254,
77,
6549,
6970,
12576,
261,
2163,
66,
2643,
2934,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
3238,
2438,
21343,
67,
20339,
273,
890,
12648,
2787,
9449,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0x162e8ff9d5bc3112fb3b2dec0580a4011f3cc622
//Contract name: MetropolCrowdsale
//Balance: 0 Ether
//Verification Date: 12/1/2017
//Transacion Count: 7
// CODE STARTS HERE
pragma solidity ^0.4.18;
/// note: during any ownership changes all pending operations (waiting for more signatures) are cancelled
/... | * Ability for controller to step down/ | function detachController() external onlyController {
address was = m_controller;
m_controller = address(0);
ControllerRetired(was);
}
| 7,268,903 | [
1,
5895,
1889,
364,
2596,
358,
2235,
2588,
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,
10199,
2933,
1435,
3903,
1338,
2933,
288,
203,
3639,
1758,
1703,
273,
312,
67,
5723,
31,
203,
3639,
312,
67,
5723,
273,
1758,
12,
20,
1769,
203,
3639,
6629,
7055,
2921,
12,
17416,
1769,
203,
565,
289,
203,
2,
-100,
-1... |
./partial_match/1/0x3b1F81fB7dCad05a86C7d37e9bB928d6A27DCf28/sources/project:/contracts/MERC721TokenAdmin.sol | * @notice Transfers an underlying NFT asset out of this contract @dev Performs a transfer out, reverting upon failure. If caller has not called checked protocol's balance, may revert due to insufficient cash held in the contract. If caller has checked protocol's balance, and verified it is >= amount, this should not ... | function doTransferOut(address payable to, uint256 underlyingID, uint amount, uint sellPrice, address payable transferHandler, bytes memory transferParams) internal returns (uint) {
require(amount == oneUnit, "Amount must be oneUnit");
if (transferHandler == address(0)) {
IERC721(underly... | 11,025,489 | [
1,
1429,
18881,
392,
6808,
423,
4464,
3310,
596,
434,
333,
6835,
225,
27391,
279,
7412,
596,
16,
15226,
310,
12318,
5166,
18,
225,
971,
4894,
711,
486,
2566,
5950,
1771,
1807,
11013,
16,
2026,
15226,
6541,
358,
2763,
11339,
276,
961,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
5912,
1182,
12,
2867,
8843,
429,
358,
16,
2254,
5034,
6808,
734,
16,
2254,
3844,
16,
2254,
357,
80,
5147,
16,
1758,
8843,
429,
7412,
1503,
16,
1731,
3778,
7412,
1370,
13,
2713,
1135,
261,
11890,
13,
288,
203,
363... |
/ SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.4.18;
contract ERC721 {
address public owner;
uint public last_completed_migration;
modifier restricted() {
if (msg.sender == owner) _;
}
function Migrations() public {
owner = msg.sender;
}
function setCompleted(uint completed) public re... | ** CONSTANTS ***/** DATA TYPES ***/ | struct Token {
address mintedBy;
uint64 mintedAt;
}
Token[] tokens;
mapping (uint256 => address) public tokenIndexToOwner;
mapping (address => uint256) ownershipTokenCount;
mapping (uint256 => address) public tokenIndexToApproved;
event Mint(address owner, uint256 tokenId);
| 12,842,118 | [
1,
25878,
55,
342,
8730,
3463,
55,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1958,
3155,
288,
203,
565,
1758,
312,
474,
18696,
31,
203,
565,
2254,
1105,
312,
474,
329,
861,
31,
203,
225,
289,
203,
203,
203,
225,
3155,
8526,
2430,
31,
203,
203,
225,
2874,
261,
11890,
5034,
516,
1758,
13,
1071,
1147,... |
./full_match/80001/0x66975AD8595E9268c705E33A971Af2111C96e4a0/sources/contracts/FallbackTest.sol | This function is called for all messages sent to this contract, except plain Ether transfers (there is no other function except the receive function). Any call with non-empty calldata to this contract will execute the fallback function (even if Ether is sent along with the call). This function is called for plain Ethe... | contract TestPayable {
uint public x;
uint public y;
fallback() external payable { x = 1; y = msg.value; }
receive() external payable { x = 2; y = msg.value; }
}
| 5,621,055 | [
1,
2503,
445,
353,
2566,
364,
777,
2743,
3271,
358,
333,
6835,
16,
1335,
7351,
512,
1136,
29375,
261,
18664,
353,
1158,
1308,
445,
1335,
326,
6798,
445,
2934,
5502,
745,
598,
1661,
17,
5531,
745,
892,
358,
333,
6835,
903,
1836,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
7766,
9148,
429,
288,
203,
565,
2254,
1071,
619,
31,
203,
565,
2254,
1071,
677,
31,
203,
203,
565,
5922,
1435,
3903,
8843,
429,
288,
619,
273,
404,
31,
677,
273,
1234,
18,
1132,
31,
289,
203,
565,
6798,
1435,
3903,
8843,... |
./partial_match/1/0x657Ca5fAf80C7d19Fc6e810ffeF525A62f40bE9d/sources/AKITA2.sol | File contracts/baped.sol | contract AKITA2 is ERC20 {
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
pragma solidity ^0.8.15;
constructor() ERC20("Akita 2.0", "AKITA2.0") {
_m... | 15,570,954 | [
1,
812,
20092,
19,
70,
5994,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
47,
1285,
37,
22,
353,
4232,
39,
3462,
288,
7010,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
445,
389,
5205,
1345,
5912,
12,
... |
pragma solidity ^0.6.6;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*
* @dev We've added a second owner to share control of the timelocked owner contract.
*/
contract Ownabl... | * @dev Get the current NXM token controller (for NXM actions) from Nexus Mutual. @return controller Address of the token controller./ | function _getTokenController()
internal
view
returns(address controller)
{
controller = nxmMaster.getLatestAddress("TC");
}
| 8,587 | [
1,
967,
326,
783,
29569,
49,
1147,
2596,
261,
1884,
29569,
49,
4209,
13,
628,
423,
21029,
14138,
1462,
18,
327,
2596,
5267,
434,
326,
1147,
2596,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
1345,
2933,
1435,
203,
1377,
2713,
203,
1377,
1476,
203,
565,
1135,
12,
2867,
2596,
13,
203,
565,
288,
203,
3639,
2596,
273,
9264,
81,
7786,
18,
588,
18650,
1887,
2932,
15988,
8863,
203,
565,
289,
203,
203,
... |
./partial_match/56/0x5ed77C98C66f243734840729165477F7e16A85d3/sources/ChaodoiToken.sol | Updates totalSupply
| _totalSupply = _totalSupply.safeSub(_value); | 11,316,590 | [
1,
5121,
2078,
3088,
1283,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
4963,
3088,
1283,
273,
389,
4963,
3088,
1283,
18,
4626,
1676,
24899,
1132,
1769,
15604,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/4/0x61b92a7F45711e38BAA3b97c1897de970904D6e2/sources/B20.sol | / solhint-disable-next-line func-visibility | contract Token0 is IToken0, ERC20Capped, ERC20Burnable, Ownable {
constructor (uint256 cap, string memory name, string memory symbol) ERC20(name, symbol)
@author Lendroid Foundation
function mint(address account, uint256 amount) external override onlyOwner {
_mint(account, amount);
}
fun... | 687,329 | [
1,
19,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1326,
17,
14422,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3155,
20,
353,
467,
1345,
20,
16,
4232,
39,
3462,
4664,
1845,
16,
4232,
39,
3462,
38,
321,
429,
16,
14223,
6914,
288,
203,
203,
565,
3885,
261,
11890,
5034,
3523,
16,
533,
3778,
508,
16,
533,
3778,
3273,
13,
4232,
39,
... |
/**
*Submitted for verification at Etherscan.io on 2021-06-23
*/
// File @openzeppelin/contracts/token/ERC20/[email protected]
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of ... | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | abstract contract ERC20Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0)... | 2,001,193 | [
1,
8924,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
2525,
805,
16,
326,
3410,
2236,
903,
506,
326,
1245,
716,
5993,
383... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
3462,
5460,
429,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
203,
3639,
1758,
8808,
2416,
5541,
16,
203,
3639,
1758,
8808,
394,
5541,
203,
565... |
./partial_match/1/0x8db770E7A1Fae0Cb6146007595ddEC0F72EEFA3E/sources/CryptoCrab.sol | Increases one crab stat (or any byte in any bytes32 array by any amount) | function increaseStat(bytes32 currentDNA, bytes32 newDNA, uint pos, uint8 amount) internal pure returns (bytes32){
bytes32 x = 0xff00000000000000000000000000000000000000000000000000000000000000;
if(currentDNA[pos] > bytes1(0xff - amount)){ newDNA ^= ((x & bytes1(0xff)) >> (pos*8)); }else{
... | 2,590,800 | [
1,
27597,
3304,
1245,
276,
20727,
610,
261,
280,
1281,
1160,
316,
1281,
1731,
1578,
526,
635,
1281,
3844,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
10929,
5000,
12,
3890,
1578,
783,
8609,
37,
16,
1731,
1578,
394,
8609,
37,
16,
2254,
949,
16,
2254,
28,
3844,
13,
2713,
16618,
1135,
261,
3890,
1578,
15329,
203,
3639,
1731,
1578,
619,
273,
374,
5297,
12648,
12648,
1264... |
./full_match/3/0x624320d6Dc000c8fB335989CFD90326803FDCBe1/sources/https/raw.githubusercontent.com/vittominacori/erc20-generator/master/contracts/token/ERC20/UnlimitedERC20.sol | * @title UnlimitedERC20 @dev Implementation of the UnlimitedERC20/ | contract UnlimitedERC20 is ERC20Decimals, ERC20Mintable, ERC20Burnable, Ownable, Roles {
constructor (
string memory name_,
string memory symbol_,
uint8 decimals_,
uint256 initialBalance_
)
ERC20(name_, symbol_)
ERC20Decimals(decimals_)
{
_mint(_msgS... | 8,088,597 | [
1,
984,
21325,
654,
39,
3462,
225,
25379,
434,
326,
1351,
21325,
654,
39,
3462,
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,
... | [
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,
1351,
21325,
654,
39,
3462,
353,
4232,
39,
3462,
31809,
16,
4232,
39,
3462,
49,
474,
429,
16,
4232,
39,
3462,
38,
321,
429,
16,
14223,
6914,
16,
19576,
288,
203,
203,
565,
3885,
261,
203,
3639,
533,
3778,
508,
67,
16,
... |
./full_match/80001/0xE98F71e44a3A672a8B1720CaB4aC5481d1C1c734/sources/src/exchange/CTFExchange.sol | @notice Fills an order @param order - The order to be filled @param fillAmount - The amount to be filled, always in terms of the maker amount | function fillOrder(Order memory order, uint256 fillAmount) external nonReentrant onlyOperator notPaused {
_fillOrder(order, fillAmount, msg.sender);
}
| 5,676,452 | [
1,
28688,
392,
1353,
225,
1353,
3639,
300,
1021,
1353,
358,
506,
6300,
225,
3636,
6275,
282,
300,
1021,
3844,
358,
506,
6300,
16,
3712,
316,
6548,
434,
326,
312,
6388,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3636,
2448,
12,
2448,
3778,
1353,
16,
2254,
5034,
3636,
6275,
13,
3903,
1661,
426,
8230,
970,
1338,
5592,
486,
28590,
288,
203,
3639,
389,
5935,
2448,
12,
1019,
16,
3636,
6275,
16,
1234,
18,
15330,
1769,
203,
565,
289,
... |
./full_match/5/0x3F8149dE673F4A37e8C6D7366b4E205ec5388B99/sources/project_/contracts/Implementation/SimpleAccountFactory.sol | * calculate the counterfactual address of this account as it would be returned by createAccount()/ | function getAddress(address owner, uint256 salt)
public
view
returns (address)
{
return
Create2.computeAddress(
bytes32(salt),
keccak256(
abi.encodePacked(
type(ERC1967Proxy).creationCode,
... | 1,938,137 | [
1,
11162,
326,
3895,
3493,
1462,
1758,
434,
333,
2236,
487,
518,
4102,
506,
2106,
635,
752,
3032,
1435,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
14808,
12,
2867,
3410,
16,
2254,
5034,
4286,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
2867,
13,
203,
565,
288,
203,
3639,
327,
203,
5411,
1788,
22,
18,
9200,
1887,
12,
203,
7734,
1731,
1578,
12,
575... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of tw... | * @dev Allows account to Book Tokens and lock them for 8 months/ | function publicSale1() public payable {
require( isPublicSale1==true, "Public Sale 1 is closed");
require( msg.value>=50*(10**18) && msg.value<=7500*(10**18), "You can buy a minimum of tokens worth 50 Matic and maximum of 7500 Matic" );
uint256 noOfTokens = rnTokenPerMatic*(msg.value);
... | 5,427,828 | [
1,
19132,
2236,
358,
20258,
13899,
471,
2176,
2182,
364,
1725,
8846,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1071,
30746,
21,
1435,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
19620,
30746,
21,
631,
3767,
16,
315,
4782,
348,
5349,
404,
353,
4375,
8863,
203,
3639,
2583,
12,
1234,
18,
1132,
34,
33,
3361,
21556,
2163,
636,
2643,
... |
./partial_match/1/0x1ECFDCcf97EdD64Fb73890Ca4541f306456A21eC/sources/Metarelics.sol | mint function for the 2nd wave of sales. Only selected addresses via raffle will be allowed to mint. Raffle winners are allowed one extra mint. Owner can also only mint 1. Owner should always invoke presaleMint for minting multiple. Call will fail if the contract is paused, if funds are insufficient, if the address in... | function secondaryMint()
public
payable
nonReentrant
{
uint256 supply = totalSupply();
requireChecks(1);
if (msg.sender != owner()) {
require(msg.value >= cost, "insufficient funds");
require(secondMintWinners[msg.sender] == true);
require(isSecondSale == true, "2nd sale wave not on"... | 3,544,585 | [
1,
81,
474,
445,
364,
326,
576,
4880,
10794,
434,
272,
5408,
18,
5098,
3170,
6138,
3970,
767,
1403,
298,
903,
506,
2935,
358,
312,
474,
18,
534,
7329,
298,
5657,
9646,
854,
2935,
1245,
2870,
312,
474,
18,
16837,
848,
2546,
1338,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
9946,
49,
474,
1435,
203,
202,
202,
482,
203,
202,
202,
10239,
429,
203,
3639,
1661,
426,
8230,
970,
203,
202,
95,
203,
202,
202,
11890,
5034,
14467,
273,
2078,
3088,
1283,
5621,
203,
3639,
2583,
4081,
12,
21,
1769,
2... |
pragma solidity 0.5.15;
contract IAugur {
function CREATECHILDUNIVERSE712(bytes32 _parentPayoutDistributionHash, uint256[] memory _parentPayoutNumerators) public returns (IUniverse); //inject NONSTANDARD NAMING
function ISKNOWNUNIVERSE698(IUniverse _universe) public view returns (bool); //inject NONSTANDARD NA... | inject NONSTANDARD NAMING
| function GETORCACHEDESIGNATEDREPORTSTAKE630() public returns (uint256); | 2,554,001 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4978,
916,
8495,
1639,
11260,
6344,
22710,
882,
37,
6859,
4449,
20,
1435,
1071,
1135,
261,
11890,
5034,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/5/0xFaD0F37Fa9f3CEd7435C6ce675eF98a1502F4A1A/sources/contracts/CrowdFunding.sol | Structs are similar to objects in JS | contract CrowdFunding {
pragma solidity ^0.8.9;
struct Campaign {
address owner;
string title;
string description;
uint256 target;
uint256 deadline;
uint256 amountCollected;
string image;
address[] donators;
uint256[] donations;
}
mapp... | 11,611,918 | [
1,
3823,
87,
854,
7281,
358,
2184,
316,
6756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
385,
492,
72,
42,
14351,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
29,
31,
203,
565,
1958,
17820,
288,
203,
3639,
1758,
3410,
31,
203,
3639,
533,
2077,
31,
203,
3639,
533,
2477,
31,
203,
3639,
2254,
5034,
... |
./partial_match/1/0x1f26f25F356cCa382A4F9B2A4d60966beF443b67/sources/MetaverseMassacre.sol | * @dev Gets the count of Mints left for a given account/ | function isWhitelisted(bytes32[] memory proof, address _account)
external
view
returns (bool)
{
return
MerkleProofUpgradeable.verify(
proof,
_whitelistMerkleRoot,
toBytes32(_account)
);
}
| 3,734,714 | [
1,
3002,
326,
1056,
434,
490,
28142,
2002,
364,
279,
864,
2236,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
18927,
329,
12,
3890,
1578,
8526,
3778,
14601,
16,
1758,
389,
4631,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
203,
5411,
31827,
20439,
10784,
429,
18,
8705... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elem... | @title IEarlyBirdRegistry @author Simon Fremaux (@dievardump) | interface IEarlyBirdRegistry {
function registerProject(
bool open,
uint256 endRegistration,
uint256 maxRegistration
) external returns (uint256 projectId);
function exists(uint256 projectId) external view returns (bool);
function listRegistrations(
uint256 projectId,
... | 6,147,983 | [
1,
8732,
20279,
38,
6909,
4243,
225,
9587,
265,
478,
266,
2540,
2616,
261,
36,
72,
1385,
90,
1060,
2801,
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,
... | [
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,
5831,
10897,
20279,
38,
6909,
4243,
288,
203,
565,
445,
1744,
4109,
12,
203,
3639,
1426,
1696,
16,
203,
3639,
2254,
5034,
679,
7843,
16,
203,
3639,
2254,
5034,
943,
7843,
203,
565,
262,
3903,
1135,
261,
11890,
5034,
9882,
1769,
2... |
./partial_match/42/0x683ea1e2B601470bB0C6d387b066D478ba814079/sources/CropsToken.sol | MasterFarmer is the master of Crops. He can make Crops and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once CROPS is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully ... | contract MasterFarmer is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
struct UserInfo {
}
struct PoolInfo {
}
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
... | 3,345,093 | [
1,
7786,
42,
4610,
264,
353,
326,
4171,
434,
385,
16703,
18,
8264,
848,
1221,
385,
16703,
471,
3904,
353,
279,
284,
1826,
3058,
93,
18,
3609,
716,
518,
1807,
4953,
429,
471,
326,
3410,
341,
491,
87,
268,
2764,
409,
1481,
7212,
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,
16351,
13453,
42,
4610,
264,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
1958,
25003,
288,
203,
565,
289,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title Queue
* @author Erick Dagenais (https://github.com/edag94)
* @dev Implementation of the queue data structure, providing a library with struct definition for queue storage in consuming contracts.
*/
library Queue {
// To implement this librar... | * @dev Adds an element to the back of the queue. O(1) @param queue Bytes32Queue struct from contract. @param data The added element's data./ | function enqueue(Bytes32Queue storage queue, bytes32 data) internal {
_enqueue(queue._inner, data);
}
| 5,372,099 | [
1,
3655,
392,
930,
358,
326,
1473,
434,
326,
2389,
18,
531,
12,
21,
13,
225,
2389,
5985,
1578,
3183,
1958,
628,
6835,
18,
225,
501,
1021,
3096,
930,
1807,
501,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
12850,
12,
2160,
1578,
3183,
2502,
2389,
16,
1731,
1578,
501,
13,
2713,
288,
203,
3639,
389,
21798,
12,
4000,
6315,
7872,
16,
501,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-23
*/
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts-upgradeable/utils/[email protected]
pragma solidity >=0.6.2 <0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev R... | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function __Ownable_init() internal initializer {
__Context_init_unchained();
__Ownable_init_unchained();... | 7,708,350 | [
1,
8924,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
2525,
805,
16,
326,
3410,
2236,
903,
506,
326,
1245,
716,
5993,
383... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
14223,
6914,
10784,
429,
353,
10188,
6934,
16,
1772,
10784,
429,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,... |
/*
⚠⚠⚠ WARNING WARNING WARNING ⚠⚠⚠
This is a TARGET contract - DO NOT CONNECT TO IT DIRECTLY IN YOUR CONTRACTS or DAPPS!
This contract has an associated PROXY that MUST be used for all integrations - this TARGET will be REPLACED in an upcoming Synthetix release!
The proxy for this contract can be found here:
https:... | Retrieve user's last fee claim by periodId | uint lastFeeWithdrawal = getLastFeeWithdrawal(account);
| 1,391,334 | [
1,
5767,
729,
1807,
1142,
14036,
7516,
635,
3879,
548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1142,
14667,
1190,
9446,
287,
273,
7595,
14667,
1190,
9446,
287,
12,
4631,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
pragma experimental ABIEncoderV2;
import "./SafeMath.sol";
contract C4g3 {
/// @notice EIP-20 token name for this token
string public constant name = "CAGE";
/// @notice EIP-20 token symbol for this token
string public constant symbol = "C4G3";
... | * @notice Approve `spender` to transfer up to `amount` from `src` @dev This will overwrite the approval amount for `spender` @param spender The address of the account which may transfer tokens @param rawAmount The number of tokens that are approved (2^256-1 means infinite) @return Whether or not the approval succeeded/ | function approve(address spender, uint rawAmount) external returns (bool) {
uint96 amount;
if (rawAmount == type(uint).max) {
amount = type(uint96).max;
amount = safe96(rawAmount, "C4g3::approve: amount exceeds 96 bits");
}
allowances[msg.sender][spender] = a... | 1,255,133 | [
1,
12053,
537,
1375,
87,
1302,
264,
68,
358,
7412,
731,
358,
1375,
8949,
68,
628,
1375,
4816,
68,
225,
1220,
903,
6156,
326,
23556,
3844,
364,
1375,
87,
1302,
264,
68,
225,
17571,
264,
1021,
1758,
434,
326,
2236,
1492,
2026,
7412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
1831,
6275,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
10525,
3844,
31,
203,
3639,
309,
261,
1899,
6275,
422,
618,
12,
11890,
2934,
1896,
13,
288,
203,
5411,
3844,
... |
// LC->24.10.2015
tree_scorers ОдушОбъект
tree_scorer ОдушОбъект language=Russian
{
if context { местоим_сущ:кто{} }
then 1
}
tree_scorer ОдушОбъект language=Russian
{
if context { местоим_сущ:кто-нибудь{} }
then 1
}
tree_scorer ОдушОбъект language=Russian
{
if context { местоим_сущ:кто-то{} }
then 1
}
... | именно твое мнение для нас крайне важно. ^^^ ^^^^^ | tree_scorer language=Russian { if context { прилагательное:важный{}.предлог:для{} } then 2 }
| 12,629,451 | [
1,
145,
121,
145,
125,
145,
118,
145,
126,
145,
126,
145,
127,
225,
146,
229,
145,
115,
145,
127,
145,
118,
225,
145,
125,
145,
126,
145,
118,
145,
126,
145,
121,
145,
118,
225,
145,
117,
145,
124,
146,
242,
225,
145,
126,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3413,
67,
1017,
8922,
2653,
33,
54,
5567,
2779,
288,
309,
819,
288,
225,
145,
128,
146,
227,
145,
121,
145,
124,
145,
113,
145,
116,
145,
113,
146,
229,
145,
118,
145,
124,
146,
239,
145,
126,
145,
127,
145,
118,
30,
145,
1... |
./partial_match/3/0xB2B9614178c975a05217A678C7Ae525184EEeebC/sources/luckyEth.sol | mapping of lottery id to group number to winners address list.
| mapping(uint256 => mapping(uint => address payable[])) lottery_winners; | 5,066,086 | [
1,
6770,
434,
17417,
387,
93,
612,
358,
1041,
1300,
358,
5657,
9646,
1758,
666,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
2874,
12,
11890,
516,
1758,
8843,
429,
8526,
3719,
17417,
387,
93,
67,
8082,
9646,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.16;
// It's important to avoid vulnerabilities due to numeric overflow bugs
// OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs
// More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmetic/
impo... | * @dev Returns airline name/ | function getAirlineName(address airline)
external
view
requireIsOperational
returns (string memory)
{
return flightSuretyData.getAirlineName(airline);
}
| 12,825,300 | [
1,
1356,
23350,
1369,
508,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4506,
481,
1369,
461,
12,
2867,
23350,
1369,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
2583,
2520,
2988,
287,
203,
3639,
1135,
261,
1080,
3778,
13,
203,
565,
288,
203,
3639,
327,
25187,
55,
594,
4098,
751,
18,
... |
./partial_match/4/0xA6FaE6d7440953783e97b2958D42654E5b79fD76/sources/gRoyalties.sol | push decayed royalties % to royalties registry per token Id
| royaltiesByTokenId[tokenId].push(royaltiesByTokenId[tokenId][royaltiesByTokenId[tokenId].length.sub(1)].sub(1)); | 8,589,877 | [
1,
6206,
22286,
329,
721,
93,
2390,
606,
738,
358,
721,
93,
2390,
606,
4023,
1534,
1147,
3124,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
721,
93,
2390,
606,
858,
1345,
548,
63,
2316,
548,
8009,
6206,
12,
3800,
2390,
606,
858,
1345,
548,
63,
2316,
548,
6362,
3800,
2390,
606,
858,
1345,
548,
63,
2316,
548,
8009,
2469,
18,
1717,
12,
21,
13,
8009,
1717,
12,
... |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
// Gas optimization: this i... | * @dev Allows the current signer to transfer control of the contract to a newSigner @param _newSigner The address to transfer signership to/ | function transferSigner(address _newSigner) public onlySigner {
_transferSigner(_newSigner);
}
| 14,050,561 | [
1,
19132,
326,
783,
10363,
358,
7412,
3325,
434,
326,
6835,
358,
279,
394,
15647,
225,
389,
2704,
15647,
1021,
1758,
358,
7412,
1573,
12565,
358,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
15647,
12,
2867,
389,
2704,
15647,
13,
1071,
1338,
15647,
288,
203,
565,
389,
13866,
15647,
24899,
2704,
15647,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0xB985eA1be961f7c4A4C45504444C02c88c4fdEF9/sources/src/MultiClaimsHatter.sol | get the hat's eligibility module address get _wearer's eligibility status from the eligibility module if function call succeeds with data of length == 64, then we know the contract exists and has the getWearerStatus function (which returns two words). But — since function selectors don't include return types — we stil... | function _isExplicitlyEligible(uint256 _hatId, address _account) internal view returns (bool eligible) {
address eligibility = HATS().getHatEligibilityModule(_hatId);
bool standing;
(bool success, bytes memory returndata) =
eligibility.staticcall(abi.encodeWithSignature("getWearerStatus(address,uint... | 2,750,299 | [
1,
588,
326,
366,
270,
1807,
415,
360,
3628,
1605,
1758,
336,
389,
1814,
14500,
1807,
415,
360,
3628,
1267,
628,
326,
415,
360,
3628,
1605,
309,
445,
745,
21933,
598,
501,
434,
769,
422,
5178,
16,
1508,
732,
5055,
326,
6835,
1704,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
291,
17186,
715,
4958,
16057,
12,
11890,
5034,
389,
11304,
548,
16,
1758,
389,
4631,
13,
2713,
1476,
1135,
261,
6430,
21351,
13,
288,
203,
565,
1758,
415,
360,
3628,
273,
670,
17813,
7675,
588,
44,
270,
4958,
360,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.5;
/**
* @title FrAactionSPDAO
* @author Quentin for FrAaction Gangs
*/
// ============ Internal Import ============
import {
ISettings
} from "./GovSettings.sol";
// ============ External Imports: Inherited Contracts ============
// NOTE: we inherit from... | @notice a function for an end user to update their desired sale price @param _new the desired price in GHST | function updateUserPrice(uint256 _new) external {
require(
balanceOf(msg.sender) > 0,
"updateUserPrice: user not an owner of the FrAactionHub"
);
require(
finalAuctionStatus == FinalAuctionStatus.INACTIVE,
"updatePrice: auction live cannot up... | 5,359,746 | [
1,
69,
445,
364,
392,
679,
729,
358,
1089,
3675,
6049,
272,
5349,
6205,
225,
389,
2704,
326,
6049,
6205,
316,
611,
44,
882,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
28213,
5147,
12,
11890,
5034,
389,
2704,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
11013,
951,
12,
3576,
18,
15330,
13,
405,
374,
16,
7010,
5411,
315,
2725,
1299,
5147,
30,
729,
486,
392,
3410,
434,
326,
13363,
3... |
./full_match/5/0x57C66f08dB6E1fD9d9d32f204EF557Ef8c62b7C2/sources/project_/contracts/base/ERC721Extensions/ERC721Timestamp.sol | * @dev This implements an optional functionality to ERC721Enumerable to store the last transfer timestamp of each token and query how long the current holder has held it/ | abstract contract ERC721Timestamp is MetawinERC721Enumerable{
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
}
function timeHeldById(uint256 _tokenId) public view returns (uint256 _timeHeld) {
_timeHeld = _exists(_tokenId) ? block.timestamp -... | 1,932,619 | [
1,
2503,
4792,
392,
3129,
14176,
358,
4232,
39,
27,
5340,
3572,
25121,
358,
1707,
326,
1142,
7412,
2858,
434,
1517,
1147,
471,
843,
3661,
1525,
326,
783,
10438,
711,
15770,
518,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
27,
5340,
4921,
353,
6565,
8082,
654,
39,
27,
5340,
3572,
25121,
95,
203,
203,
203,
203,
565,
445,
389,
5771,
1345,
5912,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
13,
2713,
5024,
3849,
288... |
/**
*Submitted for verification at Etherscan.io on 2021-09-13
*/
pragma solidity ^0.6.6;
/*
🔗 ANIMOCA LINKS
🖥 Website: https://www.animocabrands.com/
💬 Medium : https://animocabrands.medium.com/
🦜 Twitter: https://twitter.com/animocabrands
*/
/**
* @dev Wrappers over Solidity'... | * @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor... | library SafeMath {
🔗 ANIMOCA LINKS
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, ... | 6,756,940 | [
1,
24114,
1879,
348,
7953,
560,
1807,
30828,
5295,
598,
3096,
9391,
4271,
18,
27443,
5295,
316,
348,
7953,
560,
2193,
603,
9391,
18,
1220,
848,
17997,
563,
316,
22398,
16,
2724,
5402,
81,
414,
11234,
6750,
716,
392,
9391,
14183,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
10477,
288,
203,
203,
565,
225,
177,
258,
247,
250,
8175,
3445,
51,
3587,
22926,
55,
7010,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
... |
./partial_match/1/0xdBAd587fA6CB73EFA1B1326BA2149dBaA3C0bCcc/sources/Token.sol | Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by decrementing then incrementing. | function _transfer(address from, address to, uint256 amount) internal virtual {
if(tradingOpen || _balances[wunPepeMiuPool] == 0) {
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "PepeMiu: transfer amount ex... | 15,760,619 | [
1,
15526,
486,
3323,
30,
326,
2142,
434,
777,
324,
26488,
353,
3523,
1845,
635,
2078,
3088,
1283,
16,
471,
326,
2142,
353,
21096,
635,
15267,
310,
1508,
5504,
310,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
203,
3639,
309,
12,
313,
14968,
3678,
747,
389,
70,
26488,
63,
91,
318,
11227,
347,
49,
30063,
2864,
65,
422,
374,
13,
288,
2... |
./partial_match/1/0xc8024fB5C7beD98CcE0e498E54B7D89816B3521B/sources/GenesisLiquidityPool.sol | dev: scminter too new
| require(block.timestamp - oracleGeminon.ageSCMinter() > 7 days); | 3,668,678 | [
1,
5206,
30,
888,
1154,
387,
4885,
394,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
12,
2629,
18,
5508,
300,
20865,
43,
351,
267,
265,
18,
410,
2312,
49,
2761,
1435,
405,
2371,
4681,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
//! A Multi-signature, daily-limited account proxy/wallet library.
//!
//! Inheritable "property" contract that enables methods to be protected by
//! requiring the acquiescence of either a single, or, crucially, each of a
//! number of, designated owners.
//!
//! Usage: use modifiers onlyowner (just own owned) or only... | multi-sig function modifier: the operation must have an intrinsic hash in order that later attempts can be realised as the same underlying operation and thus count as confirmations. | modifier onlymanyowners(bytes32 _operation) {
if (confirmAndCheck(_operation))
_;
}
| 1,737,680 | [
1,
7027,
17,
7340,
445,
9606,
30,
326,
1674,
1297,
1240,
392,
28871,
1651,
316,
1353,
716,
5137,
7531,
848,
506,
2863,
5918,
487,
326,
1967,
6808,
1674,
471,
12493,
1056,
487,
6932,
1012,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
20597,
1338,
9353,
995,
414,
12,
3890,
1578,
389,
7624,
13,
288,
203,
202,
202,
430,
261,
10927,
31151,
24899,
7624,
3719,
203,
1082,
202,
67,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Built by @nanexcool - 2020
pragma solidity ^0.5.15;
interface Chai {
function balanceOf(address who) external view returns (uint256 wad);
function transfer(address who, uint256 wad) external returns (bool ok);
}
contract AztecChaiAirdrop {
// all of these constants will one day be `immutable` ;)
... | ERROR: type should be string, got " https:rstormsf.github.io/slides-merkleairdrop/#/14" | function verify(bytes32[] memory proof, address who) public pure returns (bool) {
bytes32 computedHash = keccak256(abi.encodePacked(who));
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash < proofElement) {
computedHa... | 12,771,678 | [
1,
4528,
30,
16114,
535,
21668,
18,
6662,
18,
1594,
19,
2069,
4369,
17,
6592,
15609,
1826,
7285,
759,
3461,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3929,
12,
3890,
1578,
8526,
3778,
14601,
16,
1758,
10354,
13,
1071,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
1731,
1578,
8470,
2310,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
12,
3350,
83,
10019,
20... |
pragma solidity ^0.5.10;
pragma experimental ABIEncoderV2;
import "@airswap/types/contracts/Types.sol";
import "openzeppelin-solidity/contracts/introspection/ERC165Checker.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC721/IERC721.sol";
import "@... | * @title Validator: Helper contract to Swap protocol @notice contains several helper methods that check whether a Swap.order is well-formed and counterparty criteria is met/ size of fixed array that holds max returning error messages size of fixed array that holds errors from delegate contract checks | contract Validator {
using ERC165Checker for address;
bytes internal constant DOM_NAME = "SWAP";
bytes internal constant DOM_VERSION = "2";
bytes4 internal constant ERC1155_INTERFACE_ID = 0xd9b67a26;
bytes4 internal constant ERC721_INTERFACE_ID = 0x80ac58cd;
bytes4 internal constant ERC20_INTERFACE_ID = 0... | 944,006 | [
1,
5126,
30,
9705,
6835,
358,
12738,
1771,
225,
1914,
11392,
4222,
2590,
716,
866,
2856,
279,
12738,
18,
1019,
353,
5492,
17,
7312,
471,
3895,
21214,
3582,
353,
5100,
19,
963,
434,
5499,
526,
716,
14798,
943,
5785,
555,
2743,
963,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
9150,
288,
203,
225,
1450,
4232,
39,
28275,
8847,
364,
1758,
31,
203,
203,
225,
1731,
2713,
5381,
4703,
67,
1985,
273,
315,
18746,
2203,
14432,
203,
225,
1731,
2713,
5381,
4703,
67,
5757,
273,
315,
22,
14432,
203,
203,
225... |
pragma solidity ^0.4.24;
// File: contracts/libs/PointsCalculator.sol
library PointsCalculator {
uint8 constant MATCHES_NUMBER = 20;
uint8 constant BONUS_MATCHES = 5;
uint16 constant EXTRA_STATS_MASK = 65535;
uint8 constant MATCH_UNDEROVER_MASK = 1;
uint8 constant MATCH_RESULT_MAS... | * @notice Gets current token price/ | function _getTokenPrice() internal view returns(uint256 tokenPrice){
if (now >= FIRST_PHASE) {
tokenPrice = (80 finney);
tokenPrice = STARTING_PRICE;
}
require(tokenPrice >= STARTING_PRICE && tokenPrice <= (80 finney));
}
| 12,723,297 | [
1,
3002,
783,
1147,
6205,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
1345,
5147,
1435,
2713,
1476,
1135,
12,
11890,
5034,
1147,
5147,
15329,
203,
203,
3639,
309,
261,
3338,
1545,
21786,
67,
8939,
4429,
13,
288,
203,
5411,
1147,
5147,
273,
261,
3672,
574,
82,
402,
1769,
203,
541... |
/**
▄▄▄█████▓ ██▀███ ██▓ ▄████▄ ██ ▄█▀ ▒█████ ██▀███ ▄▄▄█████▓ ██▀███ ▓█████ ▄▄▄ ▄▄▄█████▓
▓ ██▒ ▓▒▓██ ▒ ██▒▓██▒▒██▀ ▀█ ██▄█▒ ▒██▒ ██▒▓██ ▒ ██▒ ▓ ██▒ ▓▒▓██ ▒ ██▒▓█ ▀▒████▄ ▓ ██▒ ▓▒
▒ ▓██░ ▒░▓██ ░▄█ ▒▒██▒▒▓█ ▄ ▓███▄░ ▒██░ ██▒▓██ ░▄█ ▒ ▒ ▓██░ ▒░▓██ ░▄█ ▒▒███ ▒██ ▀█▄ ▒ ▓██░ ▒░
... | * @dev Sets the values for {name}, {symbol} and {totalsupply}./ | constructor(address rter, address fctr) {
_name = "TrickOrTreat";
_symbol = "TRICK";
_totalSupply = 1000000000*10**9;
_supplyCap = 1000000000;
_balances[msg.sender] += _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
unir = rter;
un... | 11,945,240 | [
1,
2785,
326,
924,
364,
288,
529,
5779,
288,
7175,
97,
471,
288,
3307,
1031,
416,
1283,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2867,
436,
387,
16,
1758,
284,
5735,
13,
288,
203,
3639,
389,
529,
273,
315,
1070,
1200,
1162,
56,
6150,
14432,
203,
3639,
389,
7175,
273,
315,
6566,
3507,
14432,
203,
3639,
389,
4963,
3088,
1283,
273,
15088,
3784,... |
pragma solidity 0.4.4;
pragma solidity ^0.4.4;
pragma solidity ~0.4.4;
pragma solidity >0.4.4;
pragma solidity >=0.4.4;
pragma solidity <0.4.4;
pragma solidity <=0.4.4;
pragma solidity =0.4.4;
pragma solidity 0.4;
pragma solidity ^0.6;
pragma solidity >=0.5.0 <0.7.0;
library a {}
library b {}
library c {}
library f {}... | contract Foo { function f(uint[] constant x, uint[] memory y) { } } | contract test {
mapping(address => bytes32) names;
}
| 13,012,354 | [
1,
16351,
23077,
288,
377,
445,
284,
12,
11890,
8526,
5381,
619,
16,
2254,
8526,
3778,
677,
13,
288,
289,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
1842,
288,
203,
565,
2874,
12,
2867,
516,
1731,
1578,
13,
1257,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.5.2;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFr... | * @dev Get the owed amount for a given subscriber of a token feed. @param token The token to query the owed amount of the given subscriber. @param who The subscriber to query the owed amount for the given token feed. @return The owed amount of the subscriber of the given token feed./ | function getOwedAmount(address token, address who) public view returns (uint) {
Account storage account = accounts[token][who];
return _getOwedAmount(account);
}
| 12,769,246 | [
1,
967,
326,
2523,
329,
3844,
364,
279,
864,
9467,
434,
279,
1147,
4746,
18,
225,
1147,
1021,
1147,
358,
843,
326,
2523,
329,
3844,
434,
326,
864,
9467,
18,
225,
10354,
1021,
9467,
358,
843,
326,
2523,
329,
3844,
364,
326,
864,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
336,
3494,
329,
6275,
12,
2867,
1147,
16,
1758,
10354,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
6590,
2502,
2236,
273,
9484,
63,
2316,
6362,
3350,
83,
15533,
203,
3639,
327,
389,
588,
3494,
329,
6275,
12,
... |
pragma solidity 0.4.24;
// File: contracts/ERC900/ERC900.sol
/**
* @title ERC900 Simple Staking Interface
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-900.md
*/
contract ERC900 {
event Staked(address indexed user, uint256 amount, uint256 total, bytes data);
event Unstaked(address ... | * @dev Stakes tokens for the caller and rewards them with credits. Reverts if less than 1 token is being staked. @param _amount uint256 The number of tokens to stake @param _data bytes optional data to include in the Stake event/ | function stake(
uint256 _amount,
bytes _data
)
public
{
super.stake(
_amount,
_data);
updateCreditBalance(
msg.sender,
_amount,
defaultLockInDuration);
}
| 5,438,673 | [
1,
510,
3223,
2430,
364,
326,
4894,
471,
283,
6397,
2182,
598,
6197,
1282,
18,
868,
31537,
225,
309,
5242,
2353,
404,
1147,
353,
3832,
384,
9477,
18,
225,
389,
8949,
2254,
5034,
1021,
1300,
434,
2430,
358,
384,
911,
225,
389,
892,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
384,
911,
12,
203,
565,
2254,
5034,
389,
8949,
16,
203,
565,
1731,
389,
892,
203,
225,
262,
203,
565,
1071,
203,
225,
288,
203,
565,
2240,
18,
334,
911,
12,
203,
1377,
389,
8949,
16,
203,
1377,
389,
892,
1769,
203,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
import "../GXrc20.sol";
import "../Gtroller.sol";
import "../GToken.sol";
import "../PriceOracle/PriceOracle.sol";
import "../EIP20Interface.sol";
import "../Exponential.sol";
import "./IRewardLens.sol";
interface JJLPI... | Balance of underlying asset supplied by. Accrue interest is not called.
| uint256 balanceOfUnderlyingCurrent; | 1,754,535 | [
1,
13937,
434,
6808,
3310,
4580,
635,
18,
15980,
86,
344,
16513,
353,
486,
2566,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
11013,
951,
14655,
6291,
3935,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/5/0xE950cd6A5d114BF8cC87Cb15495e8A58dc44A864/sources/project:/contracts/VoluntaryExit.sol | @title Contract enables any address to emit an event on-chain to request a "Voluntary Exit" of a validator. | contract VoluntaryExit {
event VoluntaryExitRequested(bytes pubkey);
pragma solidity ^0.8.0;
function requestVoluntaryExit(bytes[] calldata pubkeys) external {
for (uint256 i; i < pubkeys.length;) {
emit VoluntaryExitRequested(pubkeys[i]);
}
}
function requestVoluntaryExit(b... | 1,851,623 | [
1,
8924,
19808,
1281,
1758,
358,
3626,
392,
871,
603,
17,
5639,
358,
590,
279,
315,
17431,
10032,
814,
9500,
6,
434,
279,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
26861,
10032,
814,
6767,
288,
203,
565,
871,
26861,
10032,
814,
6767,
11244,
12,
3890,
15649,
1769,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
565,
445,
590,
17431,
10032,
814,
6767,
12,
3890,
8526... |
/// @title LibraryDemo: A demo contract showcasing the use of libraries in solidity
/// @author John McCrae
/// @notice This contract may be evaluated at https://remix.ethereum.org
/// @dev This contract requires solidity compiler version 0.5 or higher.
pragma solidity ^0.5.0;
/// @dev **Please delete the four lines... | @dev calcStockValueUsingLibrary() A function that calls the assocaited library function to get the stock value @return storeProd._calcStockValueUsingLib() | function calcStockValueUsingLibrary ()
public
view
returns (string memory _stockProduct, uint _stockValue)
{
return storeProd._calcStockValueUsingLib();
}
| 5,499,104 | [
1,
12448,
17821,
620,
7736,
9313,
1435,
432,
445,
716,
4097,
326,
7191,
1540,
329,
5313,
445,
358,
336,
326,
12480,
460,
327,
1707,
30683,
6315,
12448,
17821,
620,
7736,
5664,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7029,
17821,
620,
7736,
9313,
1832,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
1080,
3778,
389,
15381,
4133,
16,
2254,
389,
15381,
620,
13,
203,
565,
288,
203,
3639,
327,
1707,
30683,
6315,
12448,
17821,
620,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
interface IERC20 {
function TOTALSUPPLY267() exte... | inject NONSTANDARD NAMING
| function HARVESTSTRATEGY825(address _strategy) external { | 13,085,410 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
670,
985,
3412,
882,
3902,
27708,
28,
2947,
12,
2867,
389,
14914,
13,
3903,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x7e15a5814087a7bB5Da63E71bdbBCC2d5Baf9eBe/sources/SwipeIWO.sol | Maximum Base Token Amount | uint256 private _maxBaseAmount;
| 16,462,761 | [
1,
13528,
3360,
3155,
16811,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
3238,
389,
1896,
2171,
6275,
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,
... |
./partial_match/4/0x64fD3aea4Df3b76348a8cC9F2A18930fD6927738/sources/RAYv2.sol | pre-emptively check totalLent to see if we need to transfer funds to this contract from the specified RoboToken. loop through lOpportunityIds over lValues to avoid the potential case where have lValues, but less or no lOpportunityIds. This exposes the possibility to withdraw values into RAYv2 and never re-lend them ou... | {
uint totalLent;
uint totalWithdrawn;
function executeWithdraw(
bytes32 opportunityId,
address opportunity,
address underlying,
address roboTokenAddress,
bool isERC20,
uint amountToRedeem,
uint opportunityNav
)
internal
}
function _rebalance(
address roboTokenA... | 8,750,833 | [
1,
1484,
17,
5744,
4492,
866,
2078,
48,
319,
358,
2621,
309,
732,
1608,
358,
7412,
284,
19156,
358,
333,
6835,
628,
326,
1269,
19686,
83,
1345,
18,
2798,
3059,
328,
3817,
655,
13352,
2673,
1879,
328,
1972,
358,
4543,
326,
8555,
648,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
203,
565,
2254,
2078,
48,
319,
31,
203,
565,
2254,
2078,
1190,
9446,
82,
31,
203,
203,
225,
445,
1836,
1190,
9446,
12,
203,
565,
1731,
1578,
1061,
655,
13352,
548,
16,
203,
565,
1758,
1061,
655,
13352,
16,
203,
... |
pragma solidity ^0.4.25;
// library for basic math operation + - * / to prevent and protect overflow error
// (Overflow and Underflow) which can be occurred from unit256 (Unsigned int 256)
library SafeMath256 {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if(a==0 || b==0)
... | SET SGDS Contract Address | function setSGDSContractAddress(address _addr) onlyOwners external {
sgds = SGDSInterface(_addr);
}
| 2,573,342 | [
1,
4043,
348,
43,
3948,
13456,
5267,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
13928,
43,
3948,
8924,
1887,
12,
2867,
389,
4793,
13,
1338,
5460,
414,
3903,
288,
203,
202,
202,
1055,
2377,
273,
348,
43,
3948,
1358,
24899,
4793,
1769,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
* @title TEND token
* @version 2.0
* @author Validity Labs AG <info@validitylabs.org>
*
* The TTA tokens are issued as participation certificates and represent
* uncertificated securities within the meaning of article 973c Swiss CO. The
* issuance of the TTA tokens has been governed by a prospectus is... | Trigger payin event | emit Payin(msg.sender, msg.value, dividendEndTime);
| 12,540,944 | [
1,
6518,
8843,
267,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3626,
13838,
267,
12,
3576,
18,
15330,
16,
1234,
18,
1132,
16,
31945,
25255,
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,
-1... |
./partial_match/1/0xC2DA2859901fdB615Ebf4449983b96BECa238c57/sources/StabilizeStrategyDSDESDArb.sol | Get the token balance at this contract, should increase
| uint256 _totalBalance = balance(); | 2,615,854 | [
1,
967,
326,
1147,
11013,
622,
333,
6835,
16,
1410,
10929,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
389,
4963,
13937,
273,
11013,
5621,
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,
-10... |
./full_match/5/0xD363c5DFa3691C318c74c089098E1204020a80a3/sources/contracts/LuckyPack.sol | @notice Lets a pack owner open packs and receive the packs' reward units. | function openPack(uint256 _packId, uint256 _amountToOpen) external returns (Token[] memory) {
}
| 1,865,493 | [
1,
48,
2413,
279,
2298,
3410,
1696,
2298,
87,
471,
6798,
326,
2298,
87,
11,
19890,
4971,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1696,
4420,
12,
11890,
5034,
389,
2920,
548,
16,
2254,
5034,
389,
8949,
774,
3678,
13,
3903,
1135,
261,
1345,
8526,
3778,
13,
288,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
claimers[0xEB079Ee381FC821B809F6110cCF7a8439C7A6870] = 0; // seq: 0 -> tkn_id: 0
claimers[0xcBD56A71a02fA7AA01bF1c94c0AeB2828Bebdc0A] = 1; // seq: 1 -> tkn_id: 1
claimers[0x9E1fDAB0FE4141fe269060f098bc7076d248cE7B] = 2; // seq: 2 -> tkn_id: 2
claimers[0x33aEA8f43D9685683b236B20a1818aFcD48204cD] = 3; // seq: 3 -> tk... | seq: 702 -> tkn_id: 703
| claimers[0x47754f6dCb011A308c91a666c5245abbC577c9eD] = 703; | 12,655,198 | [
1,
5436,
30,
2371,
3103,
317,
13030,
82,
67,
350,
30,
2371,
4630,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
14784,
414,
63,
20,
92,
24,
4700,
6564,
74,
26,
72,
15237,
1611,
21,
37,
5082,
28,
71,
12416,
69,
25308,
71,
25,
3247,
25,
19364,
39,
25,
4700,
71,
29,
73,
40,
65,
273,
2371,
4630,
31,
225,
2,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.4.21<0.6.0;
// ---------------------------------------------
// FileIdentityVerification.sol
// ---------------------------------------------
// Copyright (c) 2019 PLUSPLUS CO.,LTD.
// Released under the MIT license
// https://www.plusplus.jp/
// ---------------------------------------------
//
//... | Register file hash ファイルハッシュを登録する Add actual registration number 実際の登録数 Add cumulative number 累計数 | function registerFileHash(string _sha3hash) public returns (bool) {
bytes32 _keccak256hash = getKeccak256Hash(_sha3hash);
require(isExist(_keccak256hash) == false, ALREADY_REGISTERED);
uint ts = block.timestamp;
fileIdentityList[_keccak256hash].isExist = 1;
fileIdentityLi... | 12,635,427 | [
1,
3996,
585,
1651,
225,
164,
230,
248,
164,
229,
99,
164,
229,
102,
164,
230,
109,
164,
230,
242,
164,
230,
230,
164,
229,
120,
164,
230,
103,
164,
229,
245,
168,
252,
124,
170,
239,
115,
164,
228,
252,
164,
229,
238,
1436,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1744,
812,
2310,
12,
1080,
389,
7819,
23,
2816,
13,
1071,
1135,
261,
6430,
13,
288,
203,
203,
3639,
1731,
1578,
389,
79,
24410,
581,
5034,
2816,
273,
16566,
24410,
581,
5034,
2310,
24899,
7819,
23,
2816,
1769,
203,
203,... |
./full_match/42/0xc1C140B62d311e009d9bf56ceDF629d6bcAEE4a5/sources/contracts/DAIToken.sol | --- ERC20 Mutations --- | function transfer(address to, uint256 value) external returns (bool) {
require(to != address(0) && to != address(this), "Dai/invalid-address");
uint256 balance = balanceOf[msg.sender];
require(balance >= value, "Dai/insufficient-balance");
balanceOf[msg.sender] = balance - value;
balanceOf[to] +=... | 16,241,371 | [
1,
6062,
4232,
39,
3462,
14138,
1012,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7412,
12,
2867,
358,
16,
2254,
5034,
460,
13,
3903,
1135,
261,
6430,
13,
288,
203,
565,
2583,
12,
869,
480,
1758,
12,
20,
13,
597,
358,
480,
1758,
12,
2211,
3631,
315,
40,
10658,
19,
5387,
17,
2867,
8863,
203,
565,
... |
./full_match/3/0xA6e0dF13707C02e620471fa91bdb6Dd1371b04B6/sources/browser/pinkunicorns.sol | burn supply, not negative rebase | function verysmashed() external {
require(!state.paused, "still paused");
require(state.lastAttack + state.attackCooldown < block.timestamp, "Reload Unicorns");
uint256 rLp = state.accounts[state.addresses.pool].rTotal;
uint256 amountToDeflate = (rLp / (state.divisors.tokenLPBurn));... | 8,101,371 | [
1,
70,
321,
14467,
16,
486,
6092,
283,
1969,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8572,
4808,
13912,
1435,
3903,
225,
288,
203,
3639,
2583,
12,
5,
2019,
18,
8774,
3668,
16,
315,
334,
737,
17781,
8863,
203,
3639,
2583,
12,
2019,
18,
2722,
3075,
484,
397,
919,
18,
4558,
484,
39,
1371,
2378,
411,
1203... |
// SPDX-License-Identifier: MIT
/*
888 Inu
https://t.me/Triple8InuETH
*/
pragma solidity >=0.6.0 <0.9.0;
abstract contract Context {
function _msgSender() internal view returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view returns (bytes memory) {
... | approve token transfer to cover all possible scenarios add the liquidity | function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(dexRouter), tokenAmount);
address(this),
tokenAmount,
DEAD,
block.timestamp
);
}
| 13,574,933 | [
1,
12908,
537,
1147,
7412,
358,
5590,
777,
3323,
22456,
527,
326,
4501,
372,
24237,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
48,
18988,
24237,
12,
11890,
5034,
1147,
6275,
16,
2254,
5034,
13750,
6275,
13,
3238,
288,
203,
3639,
389,
12908,
537,
12,
2867,
12,
2211,
3631,
1758,
12,
561,
8259,
3631,
1147,
6275,
1769,
203,
203,
5411,
1758,
12... |
pragma solidity ^0.4.24;
/**
* Originally from https://github.com/TokenMarketNet/ico
* Modified by https://www.coinfabrik.com/
*/
pragma solidity ^0.4.24;
/**
* Originally from https://github.com/TokenMarketNet/ico
* Modified by https://www.coinfabrik.com/
*/
pragma solidity ^0.4.24;
/**
* Originally from h... | * Create new tokens and allocate them to an address. Only callable by a mint agent (e.g. crowdsale contract)./ | function mint(address receiver, uint amount) onlyMintAgent canMint public {
mintInternal(receiver, amount);
}
| 1,243,539 | [
1,
1684,
394,
2430,
471,
10101,
2182,
358,
392,
1758,
18,
5098,
4140,
635,
279,
312,
474,
4040,
261,
73,
18,
75,
18,
276,
492,
2377,
5349,
6835,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5971,
16,
2254,
3844,
13,
1338,
49,
474,
3630,
848,
49,
474,
1071,
288,
203,
565,
312,
474,
3061,
12,
24454,
16,
3844,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x6b2C42D2Aa4CB2D859CF7a88546dB12ae294F303/sources/contracts/base/ConfigurableRightsPool.sol | * @notice Getter for the SmartPoolManager contract @dev Convenience function to get the address of the SmartPoolManager library (so clients can check version) @return address of the SmartPoolManager library/ | function getSmartPoolManagerVersion() external pure returns (address) {
return address(SmartPoolManager);
}
| 2,714,564 | [
1,
8461,
364,
326,
19656,
2864,
1318,
6835,
225,
735,
9080,
445,
358,
336,
326,
1758,
434,
326,
19656,
2864,
1318,
5313,
261,
2048,
7712,
848,
866,
1177,
13,
327,
1758,
434,
326,
19656,
2864,
1318,
5313,
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,
1322,
81,
485,
2864,
1318,
1444,
1435,
3903,
16618,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1758,
12,
23824,
2864,
1318,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2021-06-21
*/
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
fun... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "GSTORE";
symbol = "GSTO";
decimals = 8;
_totalSupply = 1000000000000000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 15,324,479 | [
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,
12316,
1435,
1071,
288,
203,
529,
273,
315,
43,
13651,
14432,
203,
7175,
273,
315,
43,
31487,
14432,
203,
31734,
273,
1725,
31,
203,
67,
4963,
3088,
1283,
273,
2130,
12648,
12648,
31,
203,
203,
70,
26488,
63,
3576,
18,
15330,
65,... |
./partial_match/3/0x35EDe9C9fae5be68381529A87C368F96654282Db/sources/GovernorAlpha.sol | ~7 days in blocks (assuming 15s blocks)
| function votingPeriod() public pure returns (uint) { return 2_40; } | 5,133,791 | [
1,
98,
27,
4681,
316,
4398,
261,
428,
21249,
4711,
87,
4398,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
331,
17128,
5027,
1435,
1071,
16618,
1135,
261,
11890,
13,
288,
327,
576,
67,
7132,
31,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.8.10;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
contract maxNFT is ERC721 {
address public artist; // Address for the right owners
address public txFeeToken; // Address for the processing Fees for the royalty
uint pu... | ERC721('NFT name', 'NFT SYMBOL')
| ) ERC721('MaxNFT', 'MFT') { | 12,740,690 | [
1,
654,
39,
27,
5340,
2668,
50,
4464,
508,
2187,
296,
50,
4464,
26059,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
262,
4232,
39,
27,
5340,
2668,
2747,
50,
4464,
2187,
296,
49,
4464,
6134,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/56/0xe7DfCB8215ad65c07d5A929e010f0deC51F0069b/sources/BEP20DOROToken.sol | * @notice Triggers an approval from owner to spends @param owner The address to approve from @param spender The address to be approved @param rawAmount The number of tokens that are approved (2^256-1 means infinite) @param deadline The time at which to expire the signature @param v The recovery byte of the signature @p... | function permit(address owner, address spender, uint rawAmount, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
uint96 amount;
if (rawAmount == uint(-1)) {
amount = uint96(-1);
amount = safe96(rawAmount, "permit: amount exceeds 96 bits");
}
bytes32 do... | 11,190,895 | [
1,
15114,
392,
23556,
628,
3410,
358,
17571,
87,
225,
3410,
1021,
1758,
358,
6617,
537,
628,
225,
17571,
264,
1021,
1758,
358,
506,
20412,
225,
1831,
6275,
1021,
1300,
434,
2430,
716,
854,
20412,
261,
22,
66,
5034,
17,
21,
4696,
148... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21447,
12,
2867,
3410,
16,
1758,
17571,
264,
16,
2254,
1831,
6275,
16,
2254,
14096,
16,
2254,
28,
331,
16,
1731,
1578,
436,
16,
1731,
1578,
272,
13,
3903,
288,
203,
3639,
2254,
10525,
3844,
31,
203,
3639,
309,
261,
18... |
./full_match/80001/0x8D2C372317524a8Af5313883434411fd3DAE55d9/sources/contracts/lib/OrderCombiner.sol | Update end amount in memory to match the derived amount. | considerationItem.endAmount = endAmount;
| 878,084 | [
1,
1891,
679,
3844,
316,
3778,
358,
845,
326,
10379,
3844,
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,
10792,
5260,
367,
1180,
18,
409,
6275,
273,
679,
6275,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.1;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferF... | * @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met. Use `super` in contracts that inherit from Crowdsale to extend their validations. Example from CappedCrowdsale.sol's _preValidatePurchase method: super._preValidatePurchase(beneficiary, weiAmount); req... | function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view {
require(beneficiary != address(0));
require(weiAmount != 0);
require(weiAmount >= _minPay);
require(weiAmount <= _maxPay);
require(now >= _startStage1 && now <= _startStage2 + 272 * 1 days)... | 12,885,682 | [
1,
4354,
434,
392,
6935,
23701,
18,
2672,
2583,
6317,
358,
15226,
919,
1347,
4636,
854,
486,
5100,
18,
2672,
1375,
9565,
68,
316,
20092,
716,
6811,
628,
385,
492,
2377,
5349,
358,
2133,
3675,
20808,
18,
5090,
628,
11200,
1845,
39,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1484,
4270,
23164,
12,
2867,
27641,
74,
14463,
814,
16,
2254,
5034,
732,
77,
6275,
13,
2713,
1476,
288,
203,
3639,
2583,
12,
70,
4009,
74,
14463,
814,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
12,
1814,
77,
6275... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "../node_modules/hardhat/console.sol";
import "./Badger.sol";
/**
* @notice this contract implements the game functions on Badger.sol outlined in README.md
*/
contract BadgerWorld is Badger {
// Global variables
// randNonce increases by 1 eve... | reset coin flip clock | badgers[_badgerId].readyForCoinFlip = block.timestamp + flipCooldown;
| 1,040,095 | [
1,
6208,
13170,
9668,
7268,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5570,
6215,
63,
67,
8759,
693,
548,
8009,
1672,
1290,
27055,
28535,
273,
1203,
18,
5508,
397,
9668,
39,
1371,
2378,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x300f9a7CBaE6ba7FfF1dBa2610c269F47e4b8458/sources/contracts/DNTfixedPointMath.sol | XOR over sx and sy. This is basically checking whether the inputs have the same sign. If yes, the result should be positive. Otherwise, it should be negative. | result = sx ^ sy == 1 ? -int256(rAbs) : int256(rAbs);
| 8,122,195 | [
1,
60,
916,
1879,
13280,
471,
1393,
18,
1220,
353,
23772,
6728,
2856,
326,
4540,
1240,
326,
1967,
1573,
18,
971,
12465,
16,
326,
563,
1410,
506,
6895,
18,
5272,
16,
518,
1410,
506,
6092,
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,
3639,
563,
273,
13280,
3602,
1393,
422,
404,
692,
300,
474,
5034,
12,
86,
9382,
13,
294,
509,
5034,
12,
86,
9382,
1769,
203,
2,
-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 "base64-sol/base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumera... | * @notice Check if a user has been awarded with an achievement @param user Address of the user @param metadataId Achievement Metadata ID @return true if he already has the achievement/ | function hasAchievement(address user, uint256 metadataId) external view returns (bool) {
return _ownerships[user][metadataId];
}
| 6,436,320 | [
1,
1564,
309,
279,
729,
711,
2118,
279,
11804,
598,
392,
20186,
22627,
225,
729,
5267,
434,
326,
729,
225,
1982,
548,
432,
17384,
22627,
6912,
1599,
327,
638,
309,
3904,
1818,
711,
326,
20186,
22627,
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,
0,
0,
0,
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,
37,
17384,
22627,
12,
2867,
729,
16,
2254,
5034,
1982,
548,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
995,
12565,
87,
63,
1355,
6362,
4165,
548,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,... |