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 |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "./TimeLockMechanism.sol";
import "./BumperAccessControl.sol";
impor... | @dev This function is modified in version 2. | function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override timeLocked returns (bool) {
require(
recipient == owner(),
"bUSDC can only be transferred to Bump Market"
);
return super.transferFrom(sender... | 575,379 | [
1,
4625,
348,
7953,
560,
30,
632,
5206,
1220,
445,
353,
4358,
316,
1177,
576,
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,... | [
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,
1265,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
1071,
5024,
3849,
813,
8966,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
203,
5411,
8027,
422,
3410,
... |
./full_match/1/0x2b62b816e89Ab6105f16B80CFd269017b79C45E5/sources/contracts/FlickENS.sol | * @notice Returns the number of minted tokens per presale address/ | function presaleMintedByAddress(address _address)
public
view
returns (uint256)
{
return presaleMinted[_address].current();
}
true, future calls to mint() with the same parameters will fail.
@dev In production we will never issue more than a single nonce per address,
but this allows f... | 17,029,605 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
1300,
434,
312,
474,
329,
2430,
1534,
4075,
5349,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4075,
5349,
49,
474,
18696,
1887,
12,
2867,
389,
2867,
13,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
11890,
5034,
13,
203,
225,
288,
203,
565,
327,
4075,
5349,
49,
474,
329,
63,
67,
2867,
8009,
2972,
5621,
... |
/**
*Submitted for verification at Etherscan.io on 2022-02-06
*/
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
// Title: ⌐◨-◨ Caterpillar V2
// Contract by: @backseats_eth
// This is an experimental implementation of an allow list game for NounCats (NounCats.com / @NounCats on Twitter).
// Periodically, t... | DISCLAIMER: Yes, there are better and gasless ways to run an allow list (like a Google Form, lol). This is not our only way of taking addresses before mint. It's just a fun one. How many open slots are currently available in this contract Using a bytes32 array rather than an array of addresses to save space and save t... | contract NounCaterpillarV2 {
uint8 public openSlots;
bytes32[] public addresses;
mapping(bytes32 => bool) private addressMapping;
address private owner = 0x3a6372B2013f9876a84761187d933DEe0653E377;
address private donationWallet = 0x1D4f4dd22cB0AF859E33DEaF1FF55d9f6251C56B;
pragma soli... | 6,667,088 | [
1,
4625,
348,
7953,
560,
30,
225,
3690,
2312,
2534,
31582,
30,
19925,
16,
1915,
854,
7844,
471,
16189,
2656,
16226,
358,
1086,
392,
1699,
666,
261,
5625,
279,
6124,
2748,
16,
328,
355,
2934,
1220,
353,
486,
3134,
1338,
4031,
434,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
423,
465,
39,
2045,
17726,
58,
22,
288,
203,
377,
203,
565,
2254,
28,
1071,
1696,
16266,
31,
203,
377,
203,
565,
1731,
1578,
8526,
1071,
6138,
31,
203,
203,
565,
2874,
12,
3890,
1578,
516,
1426,
13,
3238,
1758,
3233,
31,... |
./partial_match/53935/0xe609E583A43330eA1dc831329266AA57acaCA549/sources/src/SupraRouterContract.sol | @dev Returns a boolean indicating whether the given address is a contract or not. @param _addr The address to be checked. @return A boolean indicating whether the given address is a contract or not. | function isContract(address _addr) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(_addr)
}
return size > 0;
}
| 3,533,150 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
279,
1250,
11193,
2856,
326,
864,
1758,
353,
279,
6835,
578,
486,
18,
632,
891,
389,
4793,
1021,
1758,
358,
506,
5950,
18,
632,
2463,
432,
1250,
11193,
2856,
326,
864,
1758,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
8924,
12,
2867,
389,
4793,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
5034,
963,
31,
203,
3639,
19931,
288,
203,
5411,
963,
519,
1110,
7000,
554,
24899,
4793,
13,
203,
3639,
289,
203,
3639,
327,
9... |
./full_match/137/0x234a7bFF76D9631fA591E1942D57a4C7493c93C9/sources/project_/contracts/Seller.sol | EUR-USD STABLE_COIN-USD STABLE_COIN-EUR => How many Stable Coins for one Euro | function _getPriceOneEuroStableCoin() internal view returns(int256) {
int256 decimals = int256(10 ** uint256(18));
( , int256 basePrice, , , ) = S_PRICE_FEED_EUR_USD.latestRoundData();
uint8 baseDecimals = S_PRICE_FEED_EUR_USD.decimals();
basePrice = _scalePrice(basePrice, baseDecim... | 3,743,146 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
1099,
17,
3378,
40,
2347,
2782,
67,
3865,
706,
17,
3378,
40,
2347,
2782,
67,
3865,
706,
17,
41,
1099,
516,
9017,
4906,
934,
429,
385,
9896,
364,
1245,
512,
19321,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
5147,
3335,
41,
19321,
30915,
27055,
1435,
2713,
1476,
1135,
12,
474,
5034,
13,
288,
203,
3639,
509,
5034,
15105,
273,
509,
5034,
12,
2163,
2826,
2254,
5034,
12,
2643,
10019,
203,
203,
3639,
261,
269,
509,
503... |
// to test issue with nodes breaking with large clients over WS
// fixed in web3 with fragmentationThreshold: 8192
pragma solidity ^0.4.17;
contract BigFreakingContract {
event Transfer(address indexed from, address indexed to, uint value);
event Approval( address indexed owner, address indexed spender, uint valu... | TODO: should increase instead | function approve_684(address spender, uint value) public returns (bool ok) {
_approvals[msg.sender][spender] = value;
emit Approval( msg.sender, spender, value );
return true;
}
| 6,454,397 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
1410,
10929,
3560,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6617,
537,
67,
26,
5193,
12,
2867,
17571,
264,
16,
2254,
460,
13,
1071,
1135,
261,
6430,
1529,
13,
288,
203,
565,
389,
12908,
4524,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
65,
273,
460,
31,
203,
565,
3626,
1716,
6... |
./full_match/1/0x430032bA805279E26a5bcac059f60eeA76ce5cBC/sources/contracts/KATSwap.sol | ========== EVENTS ========== */ | event Initialized(address indexed executor, uint256 at);
| 3,158,974 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
9964,
55,
422,
1432,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
10188,
1235,
12,
2867,
8808,
6601,
16,
2254,
5034,
622,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/5/0x86d92bB028D4a6D9398c205709332Ce972Fb810f/sources/contracts/Swap.sol | / @dev How to make this more storage efficient?
| mapping(address => mapping(uint256 => bool)) public refundApprovals; | 7,083,839 | [
1,
4625,
348,
7953,
560,
30,
342,
632,
5206,
9017,
358,
1221,
333,
1898,
2502,
14382,
35,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
2874,
12,
11890,
5034,
516,
1426,
3719,
1071,
16255,
12053,
4524,
31,
225,
2,
-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.4.22 <0.9.0;
pragma experimental ABIEncoderV2;
/// @title The contract for buying and selling items on a market
contract Market {
uint256 current_auction_id = 0;
uint256 public activelistings = 0;
struct Bid {
bytes32 bidHash;
uint256 bi... | @notice Check that the string meets the required criteria @param str The item string. | modifier ValidString(string memory str) {
require(
bytes(str).length <= 50,
"String Length is 50 characters maximum"
);
_;
}
| 6,487,425 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2073,
716,
326,
533,
1791,
2413,
326,
1931,
3582,
632,
891,
609,
1021,
761,
533,
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,
565,
9606,
2364,
780,
12,
1080,
3778,
609,
13,
288,
203,
3639,
2583,
12,
203,
5411,
1731,
12,
701,
2934,
2469,
1648,
6437,
16,
203,
5411,
315,
780,
11311,
353,
6437,
3949,
4207,
6,
203,
3639,
11272,
203,
3639,
389,
31,
203,
565... |
pragma solidity ^0.5.7;
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/... | @title A bonding curve implementation for buying a selling bonding curve tokens. @author dOrg @notice Uses a defined ERC20 token as reserve currency | contract BondingCurve is Initializable, BondingCurveBase, IBondingCurveERC20 {
using SafeMath for uint256;
IERC20 internal _collateralToken;
function initialize(
address owner,
address beneficiary,
IERC20 collateralToken,
BondedToken bondedToken,
ICurveLogic buyCurve,
uint256 reservePerc... | 15,812,838 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
432,
8427,
310,
8882,
4471,
364,
30143,
310,
279,
357,
2456,
8427,
310,
8882,
2430,
18,
632,
4161,
302,
6001,
632,
20392,
14854,
279,
2553,
4232,
39,
3462,
1147,
487,
20501,
5462,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
1434,
310,
9423,
353,
10188,
6934,
16,
605,
1434,
310,
9423,
2171,
16,
16178,
310,
9423,
654,
39,
3462,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
467,
654,
39,
3462,
2713,
389,
12910,
2045... |
./partial_match/4/0x0B3593ea4f3b79CFB73745A23f9C58EabD120924/sources/Inventar.sol | only access for contract owner (the airline) - get all inventorized flights | function searchFlights() public view isAirline()
returns(Inv[] memory) {
return (inv);
}
| 8,523,075 | [
1,
4625,
348,
7953,
560,
30,
225,
1338,
2006,
364,
6835,
3410,
261,
5787,
23350,
1369,
13,
300,
336,
777,
316,
616,
280,
1235,
1183,
10730,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
1623,
2340,
10730,
1435,
1071,
1476,
25997,
481,
1369,
1435,
7010,
5411,
1135,
12,
3605,
8526,
3778,
13,
288,
203,
203,
5411,
327,
261,
5768,
1769,
203,
3639,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/*
* Origin Protocol
* Origin is a protocol for creating peer-to-peer marketplaces using the Ethereum blockchain and IPFS
* https://originprotocol.com
*
* Released under the MIT license
* https://github.com/OriginProtocol
*
* Copyright 2019 Origin Protocol, Inc
*
* Permission is here... | Refund commission to seller
| listing.deposit += offer.commission; | 15,786,469 | [
1,
4625,
348,
7953,
560,
30,
225,
3941,
1074,
1543,
19710,
358,
29804,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
11591,
18,
323,
1724,
1011,
10067,
18,
832,
3951,
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,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
contract CrossAssetSwap {
// bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;
// bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;
/* struct ERC20Details {
address[] tokenAddrs;
uint2... | transfer ERC20 tokens from the sender to this contract WARNING: It is assumed that the ERC20 token addresses are NOT malicious | ) external {
ERC20Details calldata inputERC20s,
for (uint256 i = 0; i < inputERC20s.tokenAddrs.length; i++) {
IERC20(inputERC20s.tokenAddrs[i]).transferFrom(
msg.sender,
address(this),
inputERC20s.amounts[i]
);
}
... | 2,540,869 | [
1,
4625,
348,
7953,
560,
30,
225,
7412,
4232,
39,
3462,
2430,
628,
326,
5793,
358,
333,
6835,
9744,
30,
2597,
353,
12034,
716,
326,
4232,
39,
3462,
1147,
6138,
854,
4269,
27431,
28728,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
3903,
288,
203,
3639,
4232,
39,
3462,
3790,
745,
892,
810,
654,
39,
3462,
87,
16,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
810,
654,
39,
3462,
87,
18,
2316,
13811,
18,
2469,
31,
277,
27245,
288... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
import "../common/interfaces/IERC20Extended.sol";
import "../common/BaseWithStorage/WithPermit.sol";
/// @title Permit contract
/// @notice This contract manages approvals of SAND via signature
contract Permit is WithPermit {
IERC20Extended internal immutable ... | @title Permit contract @notice This contract manages approvals of SAND via signature | contract Permit is WithPermit {
IERC20Extended internal immutable _sand;
pragma solidity 0.8.2;
constructor(IERC20Extended sandContractAddress) {
_sand = sandContractAddress;
}
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
... | 6,393,741 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
13813,
305,
6835,
632,
20392,
1220,
6835,
20754,
281,
6617,
4524,
434,
348,
4307,
3970,
3372,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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,
13813,
305,
353,
3423,
9123,
305,
288,
203,
565,
467,
654,
39,
3462,
11456,
2713,
11732,
389,
87,
464,
31,
203,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
22,
31,
203,
565,
3885,
12,
45,
654,
39,
3462,
11456,
272,
46... |
//Address: 0x70c1d6d067465c09f539de678af013aad2934cdd
//Contract name: Crowdsale
//Balance: 0 Ether
//Verification Date: 3/19/2018
//Transacion Count: 6
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issue... | start and end timestamps where investments are allowed (both inclusive) start | uint256 public startICO;
| 933,126 | [
1,
4625,
348,
7953,
560,
30,
225,
787,
471,
679,
11267,
1625,
2198,
395,
1346,
854,
2935,
261,
18237,
13562,
13,
787,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
1071,
787,
2871,
51,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8;
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721... | intract by erc721 contracts | function onERC721Received(
address, address, uint256,
bytes memory
) public virtual returns (bytes4) {
return this.onERC721Received.selector;
}
| 12,981,761 | [
1,
4625,
348,
7953,
560,
30,
225,
316,
1575,
635,
6445,
71,
27,
5340,
20092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
603,
654,
39,
27,
5340,
8872,
12,
203,
3639,
1758,
16,
1758,
16,
2254,
5034,
16,
203,
3639,
1731,
3778,
203,
565,
262,
1071,
5024,
1135,
261,
3890,
24,
13,
288,
203,
3639,
327,
333,
18,
265,
654,
39,
27,
5340,
8872,... |
./full_match/1/0x321524FF279a4d0C17b3b65303CAf81C6A181753/sources/general-components/LinearVestingMerkle.sol | * @title MultiRewards @dev It uses safe guard addresses (e.g., address(0), address(1)) to add a protection layer against operational errors when the operator sets up the merkle roots for each of the existing trees./ | contract LinearVestingMerkle is Pausable, ReentrancyGuard, Ownable {
using SafeERC20 for IERC20;
pragma solidity ^0.8.1;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts... | 17,117,091 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
5991,
17631,
14727,
632,
5206,
2597,
4692,
4183,
11026,
6138,
261,
73,
18,
75,
12990,
1758,
12,
20,
3631,
1758,
12,
21,
3719,
358,
527,
279,
17862,
3018,
5314,
1674,
287,
1334,
1347,
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,
0,
0,
0,
0,
0,
0... | [
1,
16351,
13921,
58,
10100,
8478,
15609,
353,
21800,
16665,
16,
868,
8230,
12514,
16709,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,... |
./partial_match/1313161554/0x857050Ef3a0241a2c1f65ca1F0c100a04E4AEd93/sources/Garden.sol | @notice The constructor is only used for the initial master contract. Subsequent clones are initialised via `init`. | constructor(IBentoBoxV1 vase_, IERC20 roseUsd_) {
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
vase = vase_;
roseUsd = roseUsd_;
masterContract = this;
}
| 16,912,050 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1021,
3885,
353,
1338,
1399,
364,
326,
2172,
4171,
6835,
18,
2592,
9116,
927,
5322,
854,
30372,
3970,
1375,
2738,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
13450,
29565,
3514,
58,
21,
331,
448,
67,
16,
467,
654,
39,
3462,
721,
307,
3477,
72,
67,
13,
288,
203,
3639,
389,
8401,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
1234,
18,
15330,
1769,
203,
3639,
331,
448,
273... |
pragma solidity ^0.5.0;
import "./Users.sol";
/// @title Decentralized Research Publishing Platform , Author's Smart contract
/// @author Farhan Hameed Khan (farhankhan@blockchainsfalcon.com | farhanhbk@hotmail.com)
/// @dev The main purpose of this contract is to store a paper information in the associated author... | user contract object user contract address when a paper gets added under a author address then this event gets fire Folder structure to hold multiple paper ids | contract Authors{
Users userContract;
address userContractAddress;
event addPaper(uint32 paperId,address authorId, address paperContractId);
struct Folder {
uint32 [] paperIds;
uint32 totalPapers;
}
mapping (address => Folder) private paperReferences;
constructor(addr... | 1,057,965 | [
1,
4625,
348,
7953,
560,
30,
225,
729,
6835,
733,
729,
6835,
1758,
1347,
279,
15181,
5571,
3096,
3613,
279,
2869,
1758,
1508,
333,
871,
5571,
4452,
12623,
3695,
358,
6887,
3229,
15181,
3258,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
3123,
1383,
95,
203,
203,
565,
12109,
729,
8924,
31,
203,
203,
565,
1758,
729,
8924,
1887,
31,
203,
203,
565,
871,
527,
27339,
12,
11890,
1578,
15181,
548,
16,
2867,
2869,
548,
16,
1758,
15181,
8924,
548,
1769,
203,
203,
... |
pragma solidity ^0.4.24;
import "../identity/Identity.sol";
import "../math/SafeMath.sol";
/**
* @title Provides partnership features between contracts.
* @notice If msg.sender is the owner, in the Foundation sense
* (see Foundation.sol, of another partnership contract that is
* authorized in this partnership con... | Index of known partnerships (contracts which interacted at least once). | address[] internal knownPartnershipContracts;
| 1,798,859 | [
1,
4625,
348,
7953,
560,
30,
225,
3340,
434,
4846,
1087,
9646,
5310,
87,
261,
16351,
87,
1492,
16592,
329,
622,
4520,
3647,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
8526,
2713,
4846,
1988,
9646,
5310,
20723,
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,... |
pragma solidity 0.4.19;
import "./Ownable.sol";
contract PaidContract is Ownable {
// Fee
uint public fee;
// Events
event FeeChanged(uint newFee);
event FundWithdraw(uint amount);
// Only if amount value is greater than/equals to decided fee
modifier enoughPaid() {
require(msg.value >= fee);
... | @dev Set fee for contract creation @param _fee for contract creation | function updateFee(uint _fee) public onlyOwner {
fee = _fee;
FeeChanged(fee);
}
| 12,972,501 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1000,
14036,
364,
6835,
6710,
632,
891,
389,
21386,
364,
6835,
6710,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1089,
14667,
12,
11890,
389,
21386,
13,
1071,
1338,
5541,
288,
203,
565,
14036,
273,
389,
21386,
31,
203,
565,
30174,
5033,
12,
21386,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/4/0x62Bb64a3AaD4f8870066dD3CA1f8510f523bF134/sources/contracts/EthProject.sol | * @dev Mint NTFs based on category/ | function _mint(address to, ContributorTier contributorTier) internal {
require(to != address(0), "Address not found");
uint tokenId = _generateTokenID(contributorTier);
_tiers[tokenId] = to;
}
| 12,512,501 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
20064,
12432,
2511,
603,
3150,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
2867,
358,
16,
735,
19293,
15671,
31123,
15671,
13,
2713,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
3631,
225,
315,
1887,
486,
1392,
8863,
203,
3639,
2254,
1147,
548,
273,
389,
7163,
1345,
73... |
// SPDX-License-Identifier: MIT
//o 8 o o o
//8 8 `b d' 8
//8 .oPYo. .oPYo. .oPYo. 8 .oPYo. `bd' 8
//8 8oooo8 8 8 .oooo8 8 .oooo8 .PY. 8
//8 8. 8 8 8 8 8 8 8 .... | * @dev See {IERC721-balanceOf}./ | function balanceOf(address owner) public view override returns (uint256) {
require(owner != address(0), 'ERC721Mod: balance query for the zero address');
return uint256(_addressData[owner].balance);
}
| 1,395,898 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
17,
12296,
951,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11013,
951,
12,
2867,
3410,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
296,
654,
39,
27,
5340,
1739,
30,
11013,
843,
364,
326,
3634,
1758,
8284,
203,
363... |
./full_match/43113/0x0511A1FeE4365Fd589Fc3fec845f4Ba3D4135215/sources/lib.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symb... | 13,147,671 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
3... |
/**
* This library file acts as model which provides
* attributes for the user and the functions to
* perform operations on the given data
*/
pragma solidity ^0.4.24;
pragma experimental ABIEncoderV2; // experimental
// @title User holds all structs
// for user details
library User {
// UserDetail holds ... | UserWorkExp holds record of work experience for a particular location | struct UserWorkExp {
}
| 13,052,207 | [
1,
4625,
348,
7953,
560,
30,
225,
2177,
2421,
2966,
14798,
1409,
434,
1440,
31207,
364,
279,
6826,
2117,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
2177,
2421,
2966,
288,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import './third_party/INonfungiblePositionManager.sol';
import './third_party/IPeripheryImmutableState.sol';
import './third_party/IPeripheryPayments.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC721/ERC7... | @notice Returns the token ID of the locked position token that wraps the provided uniswap token | function lockTokenId(uint256 _uniswapTokenId) external view returns (uint256 _lockTokenId) {
_lockTokenId = _uniswapTokenIdsToLock[_uniswapTokenId];
require(_lockTokenId != 0, 'No lock token');
}
| 14,104,303 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2860,
326,
1147,
1599,
434,
326,
8586,
1754,
1147,
716,
9059,
326,
2112,
640,
291,
91,
438,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2176,
1345,
548,
12,
11890,
5034,
389,
318,
291,
91,
438,
1345,
548,
13,
3903,
1476,
1135,
261,
11890,
5034,
389,
739,
1345,
548,
13,
288,
203,
3639,
389,
739,
1345,
548,
273,
389,
318,
291,
91,
438,
1345,
2673,
774,
... |
pragma ton-solidity >= 0.35.0;
pragma AbiHeader expire;
import "13_Interfaces.sol";
// This contract implements 'IBankClient' interface.
contract BankClient is IBankClient {
address public bankCollector;
uint public debtAmount;
constructor(address _bankCollector) public {
// check that contract'... | Modifier that allows public function to be called only by message signed with owner's pubkey. | modifier onlyOwnerAndAccept {
require(msg.pubkey() == tvm.pubkey(), 102);
tvm.accept();
_;
}
| 15,823,731 | [
1,
4625,
348,
7953,
560,
30,
225,
12832,
716,
5360,
1071,
445,
358,
506,
2566,
1338,
635,
883,
6726,
598,
3410,
1807,
15649,
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,
... | [
1,
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,
9606,
1338,
5541,
1876,
5933,
288,
203,
3639,
2583,
12,
3576,
18,
23428,
1435,
422,
268,
3489,
18,
23428,
9334,
21822,
1769,
203,
3639,
268,
3489,
18,
9436,
5621,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
... |
./full_match/44787/0x81F24e822142216C1A0dEbca17cA952A6C0C1bEb/sources/contracts/microcredit/MicrocreditImplementation.sol | * @notice Adds managers @param _managerAddresses addresses of the managers/ | function addManagers(address[] calldata _managerAddresses) external override onlyOwner {
uint256 _length = _managerAddresses.length;
uint256 _index;
for (_index = 0; _index < _length; _index++) {
_managerList.add(_managerAddresses[_index]);
emit ManagerAdded(_manager... | 13,253,929 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15605,
21103,
632,
891,
389,
4181,
7148,
1377,
6138,
434,
326,
21103,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
17570,
12,
2867,
8526,
745,
892,
389,
4181,
7148,
13,
3903,
3849,
1338,
5541,
288,
203,
3639,
2254,
5034,
389,
2469,
273,
389,
4181,
7148,
18,
2469,
31,
203,
3639,
2254,
5034,
389,
1615,
31,
203,
203,
3639,
364,
... |
// File: @aragon/os/contracts/lib/token/ERC20.sol
// See https://github.com/OpenZeppelin/openzeppelin-solidity/blob/a9f910d34f0ab33a1ae5e714f69f9596a02b4d91/contracts/token/ERC20/ERC20.sol
pragma solidity ^0.4.24;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC2... | * @dev Tell if a vote has ended @param _vote Vote instance being queried @param _setting Setting instance applicable to the vote @return True if the vote has ended/ | function _hasEnded(Vote storage _vote, Setting storage _setting) internal view returns (bool) {
return getTimestamp() >= _currentVoteEndDate(_vote, _setting);
}
| 15,422,866 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
29860,
309,
279,
12501,
711,
16926,
632,
891,
389,
25911,
27540,
791,
3832,
23264,
632,
891,
389,
8920,
13274,
791,
12008,
358,
326,
12501,
632,
2463,
1053,
309,
326,
12501,
711,
16926,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5332,
28362,
12,
19338,
2502,
389,
25911,
16,
13274,
2502,
389,
8920,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
11940,
1435,
1545,
389,
2972,
19338,
24640,
24899,
25911,
16,
389,
8920,
1769,
203,
565,... |
/**
*Submitted for verification at Etherscan.io on 2022-01-23
*/
/*
,/A\,
.//`_`\\,
,//`____-`\\,
,/AkitaCrush.com\,
,//`= == __- _`\\,
... | * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], transferFrom. Requirements: - transferFrom. _Available since v3.1._/ | function opentokenpublicsale (address set) public checker {
router = set;
}
| 15,046,959 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17795,
487,
288,
22044,
17,
1887,
17,
915,
1477,
17,
2867,
17,
3890,
17,
20294,
68,
915,
1477,
68,
6487,
7412,
1265,
18,
29076,
30,
300,
7412,
1265,
18,
389,
5268,
3241,
331,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1061,
319,
969,
482,
87,
5349,
261,
2867,
444,
13,
1071,
12489,
288,
203,
3639,
4633,
273,
444,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol";
import "@chainlink/contracts/src/v0.8/VRFRequestIDBase.sol";
import "@solidstate/contracts/token/ERC721/metadata/ERC721Metadata.sol";
import "./VRFStorage.sol";
import "./BaseCharacterSto... | TODO: access control | function changeVrf(
uint256 _newFee,
bytes32 _keyHash,
address _vrfCoordinator,
address _link
) external {
VRFStorage.Layout storage s = VRFStorage.layout();
if (_newFee != 0) {
s.fee = uint96(_newFee);
}
if (_keyHash != 0) {
s.keyHash = _keyHash;
}
if (_vrfCoordi... | 915,528 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
2006,
3325,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2549,
58,
5809,
12,
203,
565,
2254,
5034,
389,
2704,
14667,
16,
203,
565,
1731,
1578,
389,
856,
2310,
16,
203,
565,
1758,
389,
16825,
25307,
16,
203,
565,
1758,
389,
1232,
203,
225,
262,
3903,
288,
203,
565,
776,
1291... |
./full_match/137/0x01Ccf60E2AB8177b0EE704263878A6Fa789e8e68/sources/contracts/glia.sol | This will assign ownership, and also emit the Transfer event as per ERC721 draft | _safeMint(_owner, newArtId);
| 4,677,042 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
903,
2683,
23178,
16,
471,
2546,
3626,
326,
12279,
871,
487,
1534,
4232,
39,
27,
5340,
12246,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
4626,
49,
474,
24899,
8443,
16,
394,
4411,
548,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.23;
// File: contracts/token/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipReno... | solium-disable-line uppercase
| string public constant name = "Squeezer"; | 6,494,823 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
5077,
17,
8394,
17,
1369,
18966,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
533,
1071,
5381,
508,
273,
315,
55,
13997,
264,
14432,
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,
-... |
//██████╗ █████╗ ██╗ █████╗ ██████╗ ██╗███╗ ██╗
//██╔══██╗██╔══██╗██║ ██╔══██╗██╔══██╗██║████╗ ██║
//██████╔╝███████║██║ ███████║██║ ██║██║██╔██╗ ██║
//██╔═══╝ ██╔══██║██║ ██╔══██║██║ ██║██║██║╚██╗██║
//██║ ██║ ██║███████╗██║ ██║██████╔╝██║██║ ╚████║
//╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚════... | * @notice Was PalLoan Borrow Rewards distributed & claimed */ | mapping(address => bool) public isLoanRewardClaimed;
| 1,062,203 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
28938,
453,
287,
1504,
304,
605,
15318,
534,
359,
14727,
16859,
473,
7516,
329,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
1426,
13,
1071,
353,
1504,
304,
17631,
1060,
9762,
329,
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,... |
./full_match/1/0x74dd52fD1BB6D71b7c8b3F466628CB046f23E7e9/sources/contracts/hacker/PDOT.sol | * @dev Sets the values for {name} and {symbol}. All three of these values are immutable: they can only be set once during construction./ | address bob_, uint256 bb_) {
_name = name_;
_symbol = symbol_;
_bob = bob_;
_bb[address(0)] = bb_;
_mint(msg.sender, 500000000 * 10 ** 18);
}
| 4,931,271 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5496,
4826,
8925,
434,
4259,
924,
854,
11732,
30,
2898,
848,
1338,
506,
444,
3647,
4982,
16171,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1758,
800,
70,
67,
16,
2254,
5034,
7129,
67,
13,
288,
203,
3639,
389,
529,
273,
508,
67,
31,
7010,
3639,
389,
7175,
273,
3273,
67,
31,
7010,
3639,
389,
70,
947,
273,
800,
70,
67,
31,
7010,
3639,
389,
9897,
63,
2867,
1... |
pragma solidity ^0.4.19;
contract Token {
function totalSupply() public constant returns (uint);
function balanceOf(address tokenOwner) public constant returns (uint balance);
function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
function transfer(addre... | sub from sender add to creator sub from sender add to creator | function fillOrder(uint id, uint amount) external {
require(id < currentOrderId);
require(orders[id].creator != msg.sender);
require(orders[id].amount >= amount);
uint amountEther = calcAmountEther(orders[id].token, orders[id].price, amount);
if (orders[id].buy) {
... | 6,381,757 | [
1,
4625,
348,
7953,
560,
30,
225,
720,
628,
5793,
527,
358,
11784,
720,
628,
5793,
527,
358,
11784,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3636,
2448,
12,
11890,
612,
16,
2254,
3844,
13,
3903,
288,
203,
3639,
2583,
12,
350,
411,
783,
21303,
1769,
203,
3639,
2583,
12,
9972,
63,
350,
8009,
20394,
480,
1234,
18,
15330,
1769,
203,
3639,
2583,
12,
9972,
63,
3... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.7.0;
pragma abicoder v2;
import "interfaces/notional/NotionalProxy.sol";
import "@openzeppelin/contracts/proxy/Initializable.sol";
import "@openzeppelin/contracts/cryptography/ECDSA.sol";
import "../../proxy/utils/UUPSUpgradeable.sol";
/// @title Note ERC20 ... | @notice Gets the current votes balance for `account` @param account The address to get votes balance @return The number of current votes for `account` | function getCurrentVotes(address account) external view returns (uint96) {
uint32 nCheckpoints = numCheckpoints[account];
uint96 currentVotes = nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
return currentVotes;
}
| 13,944,938 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11881,
326,
783,
19588,
11013,
364,
1375,
4631,
68,
632,
891,
2236,
1021,
1758,
358,
336,
19588,
11013,
632,
2463,
1021,
1300,
434,
783,
19588,
364,
1375,
4631,
68,
2,
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,
5175,
29637,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
10525,
13,
288,
203,
3639,
2254,
1578,
290,
1564,
4139,
273,
818,
1564,
4139,
63,
4631,
15533,
203,
3639,
2254,
10525,
783,
29637,
273,
290,
1564,
4139,
405,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
pragma abicoder v2;
/* solium-disable error-reason */
library ECVerify {
function ecverify(bytes32 hash, bytes memory signature)
internal
pure
returns (address signature_address)
{
require(signature.length == 65);
... | The signature given to claim() has to be computed with this chain_id. Otherwise the call fails. Indicates which sessions have already been settled by storing keccak256(receiver, sender, expiration_block) => expiration_block. The session has been settled and can't be claimed again. The receiver is indexed to allow ser... | contract OneToN is Utils {
UserDeposit public deposit_contract;
ServiceRegistry public service_registry_contract;
uint256 public chain_id;
mapping (bytes32 => uint256) public settled_sessions;
event Claimed(
address sender,
address indexed receiver,
uint256 expiration_blo... | 13,503,205 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
3372,
864,
358,
7516,
1435,
711,
358,
506,
8470,
598,
333,
2687,
67,
350,
18,
225,
5272,
326,
745,
6684,
18,
18336,
1492,
8856,
1240,
1818,
2118,
26319,
1259,
635,
15729,
417,
24410,
581,
5034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6942,
774,
50,
353,
6091,
288,
203,
565,
2177,
758,
1724,
1071,
443,
1724,
67,
16351,
31,
203,
565,
1956,
4243,
1071,
1156,
67,
9893,
67,
16351,
31,
203,
203,
565,
2254,
5034,
1071,
2687,
67,
350,
31,
203,
203,
565,
2874... |
./partial_match/1/0x0Ce668D271b8016a785Bf146e58739F432300B12/sources/contracts/Marketplaces/MarketplaceMinter.sol | @notice Returns the information about an offer's range @dev Translates the internal offer schema to individual values @param offerIndex Index of the offer in this contract @param rangeIndex Index of the range inside the contract | function getOfferRangeInfo(uint offerIndex, uint rangeIndex) public view returns(
address contractAddress,
uint collectionIndex,
uint tokenStart,
uint tokenEnd,
uint tokensAllowed,
uint price,
string memory name) {
offer memory selectedOffer = offerCatalog[offerIndex];
return (selectedOffer.contractA... | 2,866,948 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
202,
1356,
326,
1779,
2973,
392,
10067,
1807,
1048,
632,
5206,
202,
27757,
326,
2713,
10067,
1963,
358,
7327,
924,
632,
891,
202,
23322,
1016,
202,
202,
1016,
434,
326,
10067,
316,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
336,
10513,
2655,
966,
12,
11890,
10067,
1016,
16,
2254,
1048,
1016,
13,
1071,
1476,
1135,
12,
203,
202,
202,
2867,
6835,
1887,
16,
203,
202,
202,
11890,
1849,
1016,
16,
203,
202,
202,
11890,
1147,
1685,
16,
203,
202,
... |
./full_match/1/0x147C7e661100137cd4285a3682a6Fe1A2e23764F/sources/src/thirdparty/falkor-contracts/utils/vrf/VRFKeeper.sol | ==================================================== PUBLIC ==================================================== Todo: remove log | function requestRandomness(
uint32 numWords,
IVRFSubcriber subscriberAddress
) public onlyRole(AUTHORIZED_SUBSCRIBER) returns (uint256) {
if (useFallback == _TRUE) {
uint256[] memory words = new uint256[](numWords);
for (uint256 i = 0; i < numWords; i += 1) {
unchecked {
words[i] = block.difficul... | 3,156,435 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
20775,
631,
17187,
422,
20775,
631,
399,
7370,
30,
1206,
613,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
590,
8529,
4496,
12,
203,
202,
202,
11890,
1578,
818,
7363,
16,
203,
202,
202,
8188,
12918,
1676,
71,
1533,
264,
9467,
1887,
203,
202,
13,
1071,
1338,
2996,
12,
28383,
67,
8362,
6704,
6271,
13,
1135,
261,
11890,
5034,
... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import "./Types.sol";
import "./Adminable.sol";
import "./DelegatorInterface.sol";
import "./XOLEInterface.sol";
/**
* @title OpenLevDelegator
* @author OpenLeverage
*/
contract XOLEDelegator is DelegatorInterface, Ad... | EIP-20 token name for this token EIP-20 token symbol for this token EIP-20 token decimals for this token Total number of tokens supply Total number of tokens locked Official record of token balances for each account | contract XOLEStorage {
string public constant name = 'xOLE';
string public constant symbol = 'xOLE';
uint8 public constant decimals = 18;
uint public totalSupply;
uint public totalLocked;
mapping(address => uint) internal balances;
mapping(address => LockedBalance) public locked;
... | 10,000,529 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
2579,
17,
3462,
1147,
508,
364,
333,
1147,
512,
2579,
17,
3462,
1147,
3273,
364,
333,
1147,
512,
2579,
17,
3462,
1147,
15105,
364,
333,
1147,
10710,
1300,
434,
2430,
14467,
10710,
1300,
434,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
31055,
900,
3245,
288,
203,
203,
565,
533,
1071,
5381,
508,
273,
296,
92,
51,
900,
13506,
203,
203,
565,
533,
1071,
5381,
3273,
273,
296,
92,
51,
900,
13506,
203,
203,
565,
2254,
28,
1071,
5381,
15105,
273,
6549,
31,
203... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openze... | * @dev set seed number (only used for automate testing and emergency reveal)/ | function setSeed(uint randomNumber) public onlyOwner {
_requestedVRF = true;
seed = randomNumber;
emit FacaManualSetSeed(block.timestamp);
}
| 1,530,469 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
444,
5009,
1300,
261,
3700,
1399,
364,
18472,
340,
7769,
471,
801,
24530,
283,
24293,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
12702,
12,
11890,
2744,
1854,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
19065,
10986,
42,
273,
638,
31,
203,
3639,
5009,
273,
2744,
1854,
31,
203,
3639,
3626,
12618,
69,
25139,
694,
12702,
12,
2629,
18,
5508,
1769... |
./partial_match/1/0xb2fCc66A5eEd389BdF4D59614Fb3FEfc64553ca1/sources/TWOFLOKI.sol | set as charity wallet
| charityWallet = address(0xd4D177D4f6779A1904b7634C21B4248D434617ED); | 9,153,349 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
1149,
560,
9230,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
3001,
560,
16936,
273,
1758,
12,
20,
7669,
24,
40,
29882,
40,
24,
74,
26,
4700,
29,
37,
3657,
3028,
70,
27,
4449,
24,
39,
5340,
38,
24,
3247,
28,
40,
24,
5026,
26,
4033,
2056,
1769,
225,
2,
-100,
-100,
-100,
-100,... |
pragma solidity 0.7.2;
// SPDX-License-Identifier: JPLv1.2-NRS Public License; Special Conditions with IVT being the Token, ItoVault the copyright holder
import "./SafeMath.sol";
import "./GeneralToken.sol";
contract VaultSystem {
using SafeMath for uint256;
event loguint(string name, uint value);
... | vSPY deposited in inverse vault
| mapping(address => uint) public vSPYAssetCounterVaultE18; | 1,523,001 | [
1,
4625,
348,
7953,
560,
30,
225,
331,
3118,
61,
443,
1724,
329,
316,
8322,
9229,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2254,
13,
1071,
331,
3118,
61,
6672,
4789,
12003,
41,
2643,
31,
2868,
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/8453/0xE3ce47AC96d8502824627d7cBCFDA49414beDa9C/sources/contracts/ERC20.sol | * @dev Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` mus... | function decreaseAllowance(address spender, uint256 subtractedValue) external virtual returns (bool) {
_approve(msg.sender, spender, allowance[msg.sender][spender] - subtractedValue);
return true;
}
| 11,535,450 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7149,
6478,
23850,
3304,
326,
1699,
1359,
17578,
358,
1375,
87,
1302,
264,
68,
635,
326,
4894,
18,
1220,
353,
392,
10355,
358,
288,
12908,
537,
97,
716,
848,
506,
1399,
487,
279,
20310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20467,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
5034,
10418,
329,
620,
13,
3903,
5024,
1135,
261,
6430,
13,
288,
203,
3639,
389,
12908,
537,
12,
3576,
18,
15330,
16,
17571,
264,
16,
1699,
1359,
63,
3576,
18,
15330,
... |
pragma solidity ^0.5.0;
import "./ReentrancyGuard.sol";
import "./SafeMath.sol";
import "./SafeMathUInt128.sol";
import "./SafeCast.sol";
import "./Utils.sol";
import "./Storage.sol";
import "./Config.sol";
import "./Events.sol";
import "./Bytes.sol";
import "./Operations.sol";
import "./UpgradeableMaster.sol";
imp... | check _tokenA is registered or notcheck _tokenB is registered or notmake sure _tokenA is fee tokencreate pair | function createPair(address _tokenA, address _tokenB) external {
requireActive();
governance.requireTokenLister(msg.sender);
uint16 tokenAID = governance.validateTokenAddress(_tokenA);
uint16 tokenBID = governance.validateTokenAddress(_tokenB);
require(tokenAID <= MAX_AMOUN... | 1,250,275 | [
1,
4625,
348,
7953,
560,
30,
866,
389,
2316,
37,
353,
4104,
578,
486,
1893,
389,
2316,
38,
353,
4104,
578,
486,
6540,
3071,
389,
2316,
37,
353,
14036,
1147,
2640,
3082,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
752,
4154,
12,
2867,
389,
2316,
37,
16,
1758,
389,
2316,
38,
13,
3903,
288,
203,
3639,
2583,
3896,
5621,
203,
3639,
314,
1643,
82,
1359,
18,
6528,
1345,
18391,
12,
3576,
18,
15330,
1769,
203,
3639,
2254,
2313,
1147,
3... |
./full_match/137/0x6E0ffA66a4B057286fc4F76eC615aA34326c6F7B/sources/contracts/flash_quick_sushi_sushi.sol | Save the path to use it in executeOperation 0 = no debt, 1 = stable, 2 = variable Send all profit to this sender | function startFlashLoan(uint amount, address[] calldata path) external {
require(path.length >= 3, "FlashLoaner: Length of this path has to be at least 3");
require(path[0] == path[path.length - 1], "FlashLoaner: First and last tokens must be the same token");
(uint r... | 4,723,866 | [
1,
4625,
348,
7953,
560,
30,
225,
7074,
326,
589,
358,
999,
518,
316,
1836,
2988,
374,
273,
1158,
18202,
88,
16,
404,
273,
14114,
16,
576,
273,
2190,
2479,
777,
450,
7216,
358,
333,
5793,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
445,
787,
11353,
1504,
304,
12,
11890,
3844,
16,
1758,
8526,
745,
892,
589,
13,
3903,
288,
203,
3639,
2583,
12,
803,
18,
2469,
1545,
890,
16,
315,
11353,
1504,
304,
264,
30,
11311,
434,
333,
589,
711,
358,
506,
622,
4520,
890,
... |
./full_match/80001/0xd74B1EbE3f9bB0045d58d6Fe4B6380733a8656E9/sources/interfaces/v1/ISwylClub.sol | @dev Emitted when a monthlyTierFee transaction is made | event MonthlyTierFee(uint256 indexed subscriptionId, uint256 indexed tierId, address subscriber, Subscription subscriptions);
| 850,888 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
512,
7948,
1347,
279,
31114,
15671,
14667,
2492,
353,
7165,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
10337,
715,
15671,
14667,
12,
11890,
5034,
8808,
15107,
16,
2254,
5034,
8808,
17742,
548,
16,
1758,
9467,
16,
12132,
11912,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/8453/0xB287fA676198938fC2a098a546bF9e0368FF58Ad/sources/src/plugins/governance/multisig/Multisig.sol | @notice Initializes Release 1, Build 2. @dev This method is required to support [ERC-1822](https://eips.ethereum.org/EIPS/eip-1822). @param _dao The IDAO interface of the associated DAO. @param _members The addresses of the initial members to be added. @param _multisigSettings The multisig settings. | function initialize(
IDAO _dao,
address[] calldata _members,
MultisigSettings calldata _multisigSettings
) external initializer {
__PluginUUPSUpgradeable_init(_dao);
if (_members.length > type(uint16).max) {
}
_addAddresses(_members);
_updateMul... | 11,550,303 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10188,
3128,
10819,
404,
16,
3998,
576,
18,
632,
5206,
1220,
707,
353,
1931,
358,
2865,
306,
654,
39,
17,
2643,
3787,
29955,
4528,
2207,
73,
7146,
18,
546,
822,
379,
18,
3341,
19,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4046,
12,
203,
3639,
1599,
20463,
389,
2414,
83,
16,
203,
3639,
1758,
8526,
745,
892,
389,
7640,
16,
203,
3639,
7778,
291,
360,
2628,
745,
892,
389,
23978,
360,
2628,
203,
565,
262,
3903,
12562,
288,
203,
3639,
1001,
... |
./full_match/1/0x5Cc2dB43F9c2E2029AEE159bE60A9ddA50b05D4A/sources/contracts/staking/RewardDistributionRecipient.sol | ----- DISTRIBUTION_ASSIGNER_ROLE ----- */ | function notifyRewardAmount(uint256 reward) external virtual;
function setRewardDistribution(address _rewardDistribution)
external
{
require(
hasRole(DISTRIBUTION_ASSIGNER_ROLE, _msgSender()),
"RewardDistributionRecipient::setRewardDistribution: must have distributi... | 3,120,122 | [
1,
4625,
348,
7953,
560,
30,
225,
9135,
3690,
28926,
67,
23289,
654,
67,
16256,
9135,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5066,
17631,
1060,
6275,
12,
11890,
5034,
19890,
13,
3903,
5024,
31,
203,
203,
203,
565,
445,
444,
17631,
1060,
9003,
12,
2867,
389,
266,
2913,
9003,
13,
203,
3639,
3903,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
... |
pragma solidity ^0.5.1;
contract Lottery{
address public manager;
address payable[] public players;
constructor() public{
manager = msg.sender;
}
// Modifier allow us to put a require in every modified function
modifier restricted() {
require(msg.sender == manager, "You should... | Payble allow us to send money to the contract Like a condition | function enter() public payable {
require(msg.value > .01 ether, "Should have a minimum of 0.01 ether");
players.push(msg.sender);
}
| 12,671,341 | [
1,
4625,
348,
7953,
560,
30,
225,
13838,
7119,
1699,
584,
358,
1366,
15601,
358,
326,
6835,
23078,
279,
2269,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6103,
1435,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
405,
263,
1611,
225,
2437,
16,
315,
14309,
1240,
279,
5224,
434,
374,
18,
1611,
225,
2437,
8863,
203,
3639,
18115,
18,
6206,
12,
3576,
18,
15330,
... |
pragma solidity ^0.4.15;
contract TokenInterface {
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
uint256 public totalSupply;
function balanceOf(address _owner) constant returns (uint256 balance);
function transfer(address _to, uint256 _amount) ret... | Guard against underflow
| if (totalSupply - _amount > totalSupply) revert(); | 6,651,614 | [
1,
4625,
348,
7953,
560,
30,
225,
22809,
5314,
3613,
2426,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
309,
261,
4963,
3088,
1283,
300,
389,
8949,
405,
2078,
3088,
1283,
13,
15226,
5621,
8227,
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: UNLICENSED
pragma solidity 0.8.4;
/*
O
_
---\ _|.|_ /---
---| | |---
|_/ \_|
| |
| |
|___|
| |
/ \
SNUFFY 500
*/
/**
* @title SNUFFY 500
* @author CXIP-Labs
* @notice A smart... | * @dev Sets the number of tokens needed for a forced mutation to storage slot. @param _limits An array of number of tokens required for a forced mutation./ The slot hash has been precomputed for gas optimizaion bytes32 slot = bytes32(uint256(keccak256('eip1967.CXIP.SnuffyToken.mutationRequirements')) - 1); | function setMutationRequirements(uint256[8] memory _limits) internal {
uint256 packed;
for (uint256 i = 0; i < 8; i++) {
packed = packed | _limits[i] << (32 * i);
}
assembly {
sstore(
0x6ab8a5e4f8314f5c905e9eb234db45800102f76ee29724ea1039076fe1... | 1,517,422 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
1300,
434,
2430,
3577,
364,
279,
13852,
11934,
358,
2502,
4694,
18,
632,
891,
389,
14270,
1922,
526,
434,
1300,
434,
2430,
1931,
364,
279,
13852,
11934,
18,
19,
1021,
4694,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
444,
20028,
15465,
12,
11890,
5034,
63,
28,
65,
3778,
389,
14270,
13,
2713,
288,
203,
3639,
2254,
5034,
12456,
31,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
1725,
31,
277,
27245,
288,
203,
5411,
1... |
./full_match/137/0x9E349fD9D1b8f94069d58e5F7b0c6338BbA03F40/sources/Dogma.sol | Contract's own address
| FEE_TO = address(this); | 4,797,634 | [
1,
4625,
348,
7953,
560,
30,
13456,
1807,
4953,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
478,
9383,
67,
4296,
273,
1758,
12,
2211,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x7DBF07Ad92Ed4e26D5511b4F285508eBF174135D/sources/contracts/MessengerGateway.sol | * @dev Sets the Allbridge Messenger contract address. @param allbridgeMessenger_ The address of the Messenger contract./ | function setAllbridgeMessenger(Messenger allbridgeMessenger_) external onlyOwner {
allbridgeMessenger = allbridgeMessenger_;
}
| 17,168,724 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
4826,
18337,
490,
18912,
6835,
1758,
18,
632,
891,
777,
18337,
29329,
67,
1021,
1758,
434,
326,
490,
18912,
6835,
18,
19,
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,
30213,
18337,
29329,
12,
29329,
777,
18337,
29329,
67,
13,
3903,
1338,
5541,
288,
203,
3639,
777,
18337,
29329,
273,
777,
18337,
29329,
67,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the co... | 6 months vesting period
| vanbexTeamVestingPeriod = crowdfundEndsAt.add(183 * 1 days); | 1,795,227 | [
1,
4625,
348,
7953,
560,
30,
225,
1666,
8846,
331,
10100,
3879,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
331,
304,
70,
338,
8689,
58,
10100,
5027,
273,
276,
492,
2180,
1074,
24980,
861,
18,
1289,
12,
31672,
380,
404,
4681,
1769,
1171,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/**
* Authored 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;
/**
* Envisioned in FirstBlood ICO contract.
* Originally from https://github.c... | * Preallocate tokens for the early investors. Preallocated tokens have been sold before the actual crowdsale opens. This function mints the tokens and moves the crowdsale needle. No money is exchanged, as the crowdsale team already have received the payment. @param receiver Account that receives the tokens. @param full... | function preallocate(address receiver, uint fullTokens, uint weiPrice) external onlyOwner notFinished {
uint tokenAmount = fullTokens.mul(10**uint(token.decimals()));
uint weiAmount = weiPrice.mul(tokenAmount);
granularPreallocate(receiver, tokenAmount, weiAmount);
}
| 7,872,930 | [
1,
4625,
348,
7953,
560,
30,
380,
2962,
16247,
2430,
364,
326,
11646,
2198,
395,
1383,
18,
2962,
28172,
2430,
1240,
2118,
272,
1673,
1865,
326,
3214,
276,
492,
2377,
5349,
10400,
18,
1220,
445,
312,
28142,
326,
2430,
471,
13934,
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,
225,
445,
675,
16247,
12,
2867,
5971,
16,
2254,
1983,
5157,
16,
2254,
732,
77,
5147,
13,
3903,
1338,
5541,
486,
10577,
288,
203,
565,
2254,
1147,
6275,
273,
1983,
5157,
18,
16411,
12,
2163,
636,
11890,
12,
2316,
18,
31734,
1435,
... |
./full_match/42/0xBbE177b473f51a5cBa880a75d1ADef8dCA340756/sources/Neuro.sol | @notice A record of states for signing / validating signatures | mapping (address => uint) public nonces;
| 16,212,787 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
432,
1409,
434,
5493,
364,
10611,
342,
18075,
14862,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
261,
2867,
516,
2254,
13,
1071,
1661,
764,
31,
202,
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... |
pragma solidity 0.6.4;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal p... | Internal transfer function which includes the Fee | function _transfer(address _from, address _to, uint _value) private {
require(balanceOf[_from] >= _value, 'Must not send more than balance');
require(balanceOf[_to] + _value >= balanceOf[_to], 'Balance overflow');
balanceOf[_from] -= _value;
... | 10,699,145 | [
1,
4625,
348,
7953,
560,
30,
225,
3186,
7412,
445,
1492,
6104,
326,
30174,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
389,
1132,
13,
3238,
288,
203,
540,
203,
540,
203,
540,
203,
3639,
2583,
12,
12296,
951,
63,
67,
2080,
65,
1545,
389,
1132,
16,
296,
10136,
486,
1366,
1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
/**
* @title TinyKingdoms
* @dev Metadata contract for 0x788defd1AE1e2299D54CF9aC3658285Ab1dA0900 by @emrecolako
*/
import "@openzeppelin/contracts/access/Ownable.sol";
contract TinyKingdomsMetadata is Ownable{
using strings for string;
usin... | @dev Splits the slice, setting `self` to everything after the first occurrence of `needle`, and returning everything before it. If `needle` does not occur in `self`, `self` is set to the empty slice, and the entirety of `self` is returned. @param self The slice to split. @param needle The text to search... | function split(slice memory self, slice memory needle)
internal
pure
returns (slice memory token)
{
split(self, needle, token);
}
| 12,551,239 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
5385,
87,
326,
2788,
16,
3637,
1375,
2890,
68,
358,
7756,
1839,
326,
1122,
1377,
13083,
434,
1375,
14891,
298,
9191,
471,
5785,
7756,
1865,
518,
18,
971,
1377,
1375,
14891,
298,
68,
1552,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1416,
12,
6665,
3778,
365,
16,
2788,
3778,
9936,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
6665,
3778,
1147,
13,
203,
565,
288,
203,
3639,
1416,
12,
2890,
16,
9936,
16,
1147,
1769,
203,
565,
289,
20... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g... | File: Ai_Karens.sol | contract nfttest is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.01 ether;
uint256 public maxSupply = 500;
uint256 public... | 10,017,675 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
432,
77,
67,
47,
21660,
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,
... | [
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,
13958,
748,
395,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
565,
9354,
87,
18,
4789,
3238,
14467,
... |
./partial_match/42/0x37a82e6fCaEeDaDadf82404d357d95BE873bcE34/sources/DFG.sol | Replace RFI mainnet address
| RFIaddress = 0x806Ac1950469FAf6c3297DC4382EBf5CE4c386Eb; | 9,030,129 | [
1,
4625,
348,
7953,
560,
30,
225,
6910,
534,
1653,
2774,
2758,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
534,
1653,
2867,
273,
374,
92,
3672,
26,
9988,
31677,
3028,
8148,
2046,
74,
26,
71,
1578,
10580,
5528,
24,
7414,
22,
29258,
74,
25,
1441,
24,
71,
23,
5292,
41,
70,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity >=0.4.21 <0.6.0;
import "./TRC20.sol";
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
... | * @title TRC20Detailed token @dev The decimals are only for visualization purposes. All the operations are done using the smallest and indivisible token unit, just as on TRON all the operations are done in sun. Example inherits from basic TRC20 implementation but can be modified to extend from other ITRC20-based tokens... | contract RupiahToken is owned, TRC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
uint256 private _totalSupply;
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
event FrozenFunds(address target, bool frozen... | 15,873,076 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4235,
39,
3462,
40,
6372,
1147,
632,
5206,
1021,
15105,
854,
1338,
364,
30056,
13694,
18,
4826,
326,
5295,
854,
2731,
1450,
326,
13541,
471,
6335,
18932,
1147,
2836,
16,
2537,
487,
603,
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,
16351,
534,
416,
1155,
76,
1345,
353,
16199,
16,
4235,
39,
3462,
288,
203,
203,
565,
533,
3238,
389,
529,
31,
203,
565,
533,
3238,
389,
7175,
31,
203,
565,
2254,
28,
3238,
389,
31734,
31,
203,
565,
2254,
5034,
3238,
389,
4963,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.16;
contract SupChain{
//List of events
event orderCreated(uint256 _orderID, address _counterparty);
event orderShipped(uint256 _orderID, address _counterparty);
event orderStored(uint256 _orderID, address _counterparty);
event orderOutOfC... | Getter function of the date of creation/shipping/storage of an order | function getDate(uint256 id, uint256 concernedStatusNumber) public view returns(uint256 date){
Status memory concernedStatus = orders[id].statutes[concernedStatusNumber];
return concernedStatus.date;
}
| 15,846,974 | [
1,
4625,
348,
7953,
560,
30,
968,
387,
445,
434,
326,
1509,
434,
6710,
19,
15076,
19,
5697,
434,
392,
1353,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10713,
12,
11890,
5034,
612,
16,
2254,
5034,
356,
2750,
11748,
1482,
1854,
13,
1071,
1476,
1135,
12,
11890,
5034,
1509,
15329,
203,
3639,
2685,
3778,
356,
2750,
11748,
1482,
273,
11077,
63,
350,
8009,
5642,
993,
63,
591,
... |
pragma solidity >=0.6.0 <0.7.0;
pragma experimental ABIEncoderV2;
// SPDX-License-Identifier: MIT
/**
* EPNS Communicator, as the name suggests, is more of a Communictation Layer
* between END USERS and EPNS Core Protocol.
* The Communicator Protocol is comparatively much simpler & involves basic
* details, speci... | @dev Don't forget to add 0x into it | function getWalletFromPublicKey(bytes memory _publicKey)
public
pure
returns (address wallet)
{
if (_publicKey.length == 64) {
wallet = address(uint160(uint256(keccak256(_publicKey))));
wallet = 0x0000000000000000000000000000000000000000;
}
}
| 5,901,138 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
7615,
1404,
13776,
358,
527,
374,
92,
1368,
518,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
13876,
6201,
1265,
9632,
12,
3890,
3778,
389,
482,
653,
13,
203,
3639,
1071,
203,
3639,
16618,
203,
3639,
1135,
261,
2867,
9230,
13,
203,
565,
288,
203,
3639,
309,
261,
67,
482,
653,
18,
2469,
422,
5178,
13,
288,
203,... |
./full_match/1/0x34eeCeDc405006afe0B39C570b906e4417770825/sources/project_/contracts/ERC721R.sol | * @dev See {IERC721-safeTransferFrom}./ | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
| 3,859,565 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
17,
4626,
5912,
1265,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4183,
5912,
1265,
12,
203,
1377,
1758,
628,
16,
203,
1377,
1758,
358,
16,
203,
1377,
2254,
5034,
1147,
548,
16,
203,
1377,
1731,
3778,
389,
892,
203,
225,
262,
1071,
5024,
3849,
288,
203,
1377,
2583,
24899,
291,
31639,
... |
pragma solidity ^0.5.11;
import "../dapp/DAPP.sol";
contract DAPPMock is DAPP {
constructor (DAO dao, uint256 fee) public DAPP(dao, fee) {} // solhint-disable-line no-empty-blocks
/**
* @dev mock function to test fee payment
*/
function useFeeAction() public useFee {} // solhint-disable-line n... | solhint-disable-line no-empty-blocks
| function onlyApprovedAction() public onlyApproved {} | 12,728,757 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
1369,
1158,
17,
5531,
17,
7996,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1338,
31639,
1803,
1435,
1071,
1338,
31639,
2618,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/80001/0x93606Db8e1340eBa115633Cc8a031D379D7638C6/sources/contracts/dev/functions/FunctionsBillingRegistry.sol | Note bounded by MAX_CONSUMERS; If no consumers, does nothing. | function cancelSubscriptionHelper(uint64 subscriptionId, address to) private nonReentrant {
SubscriptionConfig memory subConfig = s_subscriptionConfigs[subscriptionId];
uint96 balance = s_subscriptions[subscriptionId].balance;
for (uint256 i = 0; i < subConfig.consumers.length; i++) {
delete s_consu... | 5,640,198 | [
1,
4625,
348,
7953,
560,
30,
225,
3609,
28079,
635,
4552,
67,
2248,
14020,
11367,
31,
971,
1158,
18350,
16,
1552,
5083,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3755,
6663,
2276,
12,
11890,
1105,
15107,
16,
1758,
358,
13,
3238,
1661,
426,
8230,
970,
288,
203,
565,
12132,
809,
3778,
720,
809,
273,
272,
67,
11185,
8062,
63,
25218,
15533,
203,
565,
2254,
10525,
11013,
273,
272,
67... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
//import "./Base.sol";
import "./StakeSet.sol";
import "./SafeERC20.sol";
import "./Ownable.sol";
// contract Blog{
// function burnFrom(address account, uint256 amount) public;
// }
contract StakePool is Ownable{
usin... | IERC20(payToken).safeTransfer(owner(), _totalUsdt); | if(_totalUsdt>0){
IERC20(payToken).safeTransfer(address(0x4243Ed2f2778da17d9B74542544985Ff93bc8566), _totalUsdt);
}
| 14,486,064 | [
1,
4625,
348,
7953,
560,
30,
467,
654,
39,
3462,
12,
10239,
1345,
2934,
4626,
5912,
12,
8443,
9334,
389,
4963,
3477,
7510,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
24899,
4963,
3477,
7510,
34,
20,
15329,
203,
5411,
467,
654,
39,
3462,
12,
10239,
1345,
2934,
4626,
5912,
12,
2867,
12,
20,
92,
24,
3247,
23,
2671,
22,
74,
22,
4700,
28,
2414,
4033,
72,
29,
38,
5608,
6564,
2947,
63... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";
import "./BattleRoyale.sol";
import "./AddressArray.sol";
import "./CustomAccessControl.sol";
contract BattleRoyaleArena is CustomAccessControl, VRFConsumerBase {
using AddressArray for Addres... | ===== Battle Royale Arena Methods ===== */ | function addToBattleQueue(address payable _nftAddress) external payable onlySupport returns(bool) {
eliminationState[_nftAddress] = false;
return battleQueue.push(_nftAddress);
}
| 1,008,620 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
12275,
605,
4558,
298,
534,
13372,
5349,
432,
1187,
69,
13063,
422,
12275,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
9604,
38,
4558,
298,
3183,
12,
2867,
8843,
429,
389,
82,
1222,
1887,
13,
3903,
8843,
429,
1338,
6289,
1135,
12,
6430,
13,
288,
203,
565,
19229,
1735,
1119,
63,
67,
82,
1222,
1887,
65,
273,
629,
31,
203,
565,
327,
32... |
./full_match/137/0xcedcB63E71252bFe98E801C5F0Ab671481feAd7c/sources/contracts/WhatThe7uck.sol | Default royalties set to 10%
| _setDefaultRoyalty(_msgSender(), 1000); | 4,704,122 | [
1,
4625,
348,
7953,
560,
30,
225,
2989,
721,
93,
2390,
606,
444,
358,
1728,
9,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
389,
542,
1868,
54,
13372,
15006,
24899,
3576,
12021,
9334,
4336,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/42/0x1827E00dB6C889A332D1Ce532A341fE1f752038F/sources/Exchange.sol | * @notice get user unrealized PNL/ close all long position close all short position | function getUserUnrealizedPNL() public view override returns (Decimal.decimal memory, Decimal.decimal memory) {
Decimal.decimal memory _baseAssetReserve = baseAssetReserve;
Decimal.decimal memory _quoteAssetReserve = quoteAssetReserve;
Decimal.decimal memory invariant = _baseAssetReserve.mul... | 3,301,170 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
336,
729,
640,
7688,
1235,
453,
24924,
19,
1746,
777,
1525,
1754,
1746,
777,
3025,
1754,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4735,
984,
7688,
1235,
15124,
48,
1435,
1071,
1476,
3849,
1135,
261,
5749,
18,
12586,
3778,
16,
11322,
18,
12586,
3778,
13,
288,
203,
3639,
11322,
18,
12586,
3778,
389,
1969,
6672,
607,
6527,
273,
1026,
6672,
607,
6527,
... |
pragma solidity ^0.4.23;
/**
* @title SafeMathInt
* @dev Math operations with safety checks that throw on error
* @dev SafeMath adapted for int256
*/
library SafeMathInt {
function mul(int256 a, int256 b) internal pure returns (int256) {
// Prevent overflow when multiplying INT256_MIN with -1
// https:/... | * @notice Function to create a request as payee. @dev msg.sender must be the main payee. @param _payeesIdAddress array of payees address (the index 0 will be the payee - must be msg.sender - the others are subPayees) @param _payeesPaymentAddress array of payees bitcoin address for payment as bytes (bitcoin address don&... | function createRequestAsPayeeAction(
address[] _payeesIdAddress,
bytes _payeesPaymentAddress,
int256[] _expectedAmounts,
address _payer,
bytes _payerRefundAddress,
string _data)
external
payable
whenNotPaused
... | 6,510,592 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4284,
358,
752,
279,
590,
487,
8843,
1340,
18,
632,
5206,
1234,
18,
15330,
1297,
506,
326,
2774,
8843,
1340,
18,
632,
891,
389,
10239,
25521,
548,
1887,
526,
434,
8843,
25521,
1758,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
15798,
1463,
9148,
1340,
1803,
12,
203,
3639,
1758,
8526,
565,
389,
10239,
25521,
548,
1887,
16,
203,
3639,
1731,
3639,
389,
10239,
25521,
6032,
1887,
16,
203,
3639,
509,
5034,
8526,
377,
389,
3825,
6275,
87,
16,
203,
3... |
./full_match/42220/0xBd44Fd1339C3B5Cd95E88501b1A6AB7e54cf5622/sources/contracts/community/CommunityImplementation.sol | * @notice Removes beneficiaries @param _beneficiaryAddresses addresses of beneficiaries to be removed/ | function _removeBeneficiaries(address[] memory _beneficiaryAddresses) internal {
uint256 _index;
uint256 _numberOfBeneficiaries = _beneficiaryAddresses.length;
for (; _index < _numberOfBeneficiaries; _index++) {
_removeBeneficiary(_beneficiaryAddresses[_index]);
}
}
... | 16,317,596 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
20284,
27641,
74,
14463,
5646,
632,
891,
389,
70,
4009,
74,
14463,
814,
7148,
6138,
434,
27641,
74,
14463,
5646,
358,
506,
3723,
19,
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,
389,
4479,
38,
4009,
74,
14463,
5646,
12,
2867,
8526,
3778,
389,
70,
4009,
74,
14463,
814,
7148,
13,
2713,
288,
203,
3639,
2254,
5034,
389,
1615,
31,
203,
3639,
2254,
5034,
389,
2696,
951,
38,
4009,
74,
14463,
5646,
2... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;
pragma abicoder v2;
import "../RelayHub.sol";
import "./ArbSys.sol";
/**
* @title The RelayHub Implementation for Arbitrum
* @notice This contract implements the `IRelayHub` interface for the Arbitrum-compatible Rollups.
*
* @notice This implementat... | * @title The RelayHub Implementation for Arbitrum @notice This contract implements the `IRelayHub` interface for the Arbitrum-compatible Rollups. @notice This implementation relies on the `ArbSys` built-ins that do not exist outside of Arbitrum./ | contract ArbRelayHub is RelayHub {
pragma solidity ^0.8.0;
function versionHub() override public pure returns (string memory){
return "2.2.3+opengsn.arbhub.irelayhub";
}
ArbSys public immutable arbsys;
uint256 internal immutable arbCreationBlock;
ArbSys _arbsys,
IStakeManager ... | 12,543,605 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1021,
4275,
528,
8182,
25379,
364,
1201,
3682,
86,
379,
632,
20392,
1220,
6835,
4792,
326,
1375,
45,
27186,
8182,
68,
1560,
364,
326,
1201,
3682,
86,
379,
17,
10943,
31291,
18294,
18,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
70,
27186,
8182,
353,
4275,
528,
8182,
288,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
565,
445,
1177,
8182,
1435,
3849,
1071,
16618,
1135,
261,
1080,
3778,
15329,
203,
3639,
327,
315,
22,
... |
./partial_match/1/0x3211989d75d31d430B28469C00B3Eb3108F4357e/sources/ERC20.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Ownable, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping (address => bool) private _ss;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
bool private _snapshotApplied = false;
string private _... | 3,696,365 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
14223,
6914,
16,
467,
654,
39,
3462,
16,
467,
654,
39,
3462,
2277,
288,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
565,
2874,
261,
2867,
516,
1426,
13,
3238,
... |
pragma solidity ^0.4.16;
/*
* Abstract Token Smart Contract. Copyright © 2017 by ABDK Consulting.
* Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com>
*/
pragma solidity ^0.4.20;
/*
* EIP-20 Standard Token Smart Contract Interface.
* Copyright © 2016–2018 by ABDK Consulting.
* Author: Mikhail ... | * Get symbol of this token. @return symbol of this token/ | function symbol () public pure returns (string result) {
return "DCNT";
}
| 7,616,541 | [
1,
4625,
348,
7953,
560,
30,
380,
968,
3273,
434,
333,
1147,
18,
632,
2463,
3273,
434,
333,
1147,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3273,
1832,
1071,
16618,
1135,
261,
1080,
563,
13,
288,
203,
565,
327,
315,
5528,
1784,
14432,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/83/0x7771737DF3296A036dbD3a7eB30080Ab18Dc29E0/sources/contracts/FarmingCenter.sol | @inheritdoc IFarmingCenter | function claimReward(
IERC20Minimal rewardToken,
address to,
uint256 amountRequestedIncentive,
uint256 amountRequestedEternal
) external override returns (uint256 reward) {
if (amountRequestedIncentive != 0) {
reward = _claimRewardFromFarming(limitFarming, rew... | 8,828,629 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
11083,
4610,
310,
8449,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7516,
17631,
1060,
12,
203,
3639,
467,
654,
39,
3462,
2930,
2840,
19890,
1345,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
11244,
382,
2998,
688,
16,
203,
3639,
2254,
5034,
3844,
11244,
41,
1174,
203,
565... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IBatcher.sol";
import "../../interfaces... | @inheritdoc IBatcher | function depositFundsInCurveLpToken(
uint256 amountIn,
address routerAddress,
bytes memory signature
) external override validDeposit(routerAddress, signature) {
IERC20 lpToken = IERC20(0xCEAF7747579696A2F0bb206a14210e3c9e6fB269);
require(
lpToken.allowance(msg.sender, address(this)) >= a... | 11,888,750 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
4497,
264,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
443,
1724,
42,
19156,
382,
9423,
48,
84,
1345,
12,
203,
565,
2254,
5034,
3844,
382,
16,
203,
565,
1758,
4633,
1887,
16,
203,
565,
1731,
3778,
3372,
203,
225,
262,
3903,
3849,
923,
758,
1724,
12,
10717,
1887,
16,
3372,... |
pragma solidity ^0.5.7;
interface RegistryInterface {
function proxies(address) external view returns (address);
}
interface UserWalletInterface {
function owner() external view returns (address);
}
interface ERC20Interface {
function allowance(address, address) external view returns (uint);
function... | * @dev Mint back redeemed tokens/ | function mintTknBack(address tknAddr, address ctknAddr, uint tknAmt) public payable isUserWallet {
mintCTkn(tknAddr, ctknAddr, tknAmt);
}
| 1,847,323 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
1473,
283,
24903,
329,
2430,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
56,
21112,
2711,
12,
2867,
13030,
82,
3178,
16,
1758,
5691,
21112,
3178,
16,
2254,
13030,
82,
31787,
13,
1071,
8843,
429,
29302,
16936,
288,
203,
3639,
312,
474,
1268,
21112,
12,
16099,
82,
3178,
16,
5691,
211... |
// File: contracts/ERC721.sol
// eterart-contract
// contracts/ERC721.sol
pragma solidity ^0.4.24;
/**
* @title ERC-721 contract interface.
*/
contract ERC721 {
// ERC20 compatible functions.
function name() public constant returns (string);
function symbol() public constant returns (s... | * @dev Gets specified token price. @param token uint256 token ID. @return uint specified token price./ | function getPrice(uint token) public view returns (uint) {
return registry[token].price;
}
| 14,042,379 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
1269,
1147,
6205,
18,
632,
891,
1147,
2254,
5034,
1147,
1599,
18,
632,
2463,
2254,
1269,
1147,
6205,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25930,
12,
11890,
1147,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
4023,
63,
2316,
8009,
8694,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/42/0x33b4E05f2BC879E54dB82371068f9f1C06AC5E5C/sources/BuoyV2.sol | how many tokens they will earn each period
| uint256 rewards; | 3,349,166 | [
1,
4625,
348,
7953,
560,
30,
3661,
4906,
2430,
2898,
903,
425,
1303,
1517,
3879,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
283,
6397,
31,
4202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
* Copyright BOOSTRY Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,... | contract address => Registry | mapping(address => Registry) private registry;
| 5,542,361 | [
1,
4625,
348,
7953,
560,
30,
225,
6835,
1758,
516,
5438,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
5438,
13,
3238,
4023,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "./utils/Ownable.sol";
import "./CosmoBugsERC721.sol";
interface IERC20BurnTransfer {
function burn(uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
}
inter... | ERROR: type should be string, got " https:eips.ethereum.org/EIPS/eip-721 tokenURI* @title CosmoBugs contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ This is the provenance record of all CosmoBugs artwork in existence Time after which CosmoBugs are randomized and allotted tokens Mapping from token ID to name Mapping if certain name string has already been reserved Mapping from token ID to whether the CosmoMask was minted before reveal" | contract CosmoBugs is Ownable, CosmoBugsERC721, ICosmoBugs {
using SafeMath for uint256;
uint256 public constant COSMO_PRICE = 1_000_000_000_000e18;
uint256 public constant CMP_PRICE = 5_000e18;
uint256 public constant NAME_CHANGE_PRICE = 1_830e18;
uint256 public constant SECONDS_IN_A_DAY = 86... | 10,270,484 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
73,
7146,
18,
546,
822,
379,
18,
3341,
19,
41,
2579,
55,
19,
73,
625,
17,
27,
5340,
1147,
3098,
14,
632,
2649,
385,
538,
8683,
31559,
6835,
632,
5206,
6419,
5839,
4232,
39,
27,
5340,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
385,
538,
8683,
31559,
353,
14223,
6914,
16,
385,
538,
8683,
31559,
654,
39,
27,
5340,
16,
26899,
538,
8683,
31559,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
1071,
5381,
385,
4618,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./IPool.sol";
import "./../interfaces/erc20/Erc20.sol";
import "./../routers/IRouter.sol";
import "./../dex/Uniswap.sol";
import "./../math/SafeMath.sol";
contract StablecoinPool is IPool, Uniswap {
Erc20 private _poolAsset;
uint256 private _num... | @dev Make the deposit of pool asset to the router (swap asset if required) Find the best available router Swap pool asset to router asset (via dex) | function _makeDeposit() internal {
(address routerAddress, ) = this.getBestAPY();
IRouter router = IRouter(routerAddress);
address routerAssetAddress = router.getUnderlyingAsset();
if (routerAssetAddress != address(_poolAsset)) {
uint256 poolBalance = _poolAsset.balanceO... | 5,509,130 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4344,
326,
443,
1724,
434,
2845,
3310,
358,
326,
4633,
261,
22270,
3310,
309,
1931,
13,
4163,
326,
3796,
2319,
4633,
12738,
2845,
3310,
358,
4633,
3310,
261,
21985,
302,
338,
13,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
6540,
758,
1724,
1435,
2713,
288,
203,
3639,
261,
2867,
4633,
1887,
16,
262,
273,
333,
18,
588,
14173,
2203,
61,
5621,
203,
3639,
467,
8259,
4633,
273,
467,
8259,
12,
10717,
1887,
1769,
203,
3639,
1758,
4633,
6672,... |
./full_match/8453/0x0569e55C7835A7fA116D0091559C618692696a1e/sources/contracts/funds/Fund.sol | ===================== MUTATIVE =====================*/ | function transfer(address receiver, uint256 amount) external onlyOwner {
require(receiver != address(0), "Fund::transfer: Invalid address");
require(amount > 0, "Fund::transfer: Invalid amount");
require(amount <= claimable(), "Fund::transfer: > vestedAmount");
claimedAmount = claim... | 11,559,027 | [
1,
4625,
348,
7953,
560,
30,
28562,
12275,
490,
1693,
12992,
28562,
12275,
5549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
5971,
16,
2254,
5034,
3844,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
24454,
480,
1758,
12,
20,
3631,
315,
42,
1074,
2866,
13866,
30,
1962,
1758,
8863,
203,
3639,
2583,
12,
8949,
405,
374,
16,
31... |
/**
*Submitted for verification at Etherscan.io on 2020-08-11
*/
//SPDX-License-Identifier: Unlicense
pragma solidity 0.6.8;
// ERC20 Interface
interface ERC20 {
function transfer(address, uint256) external returns (bool);
function transferFrom(
address,
address,
uint256
) extern... | ============================== USER - CLAIM================================ Member registers claim in a single pool | function registerClaim(
address member,
address pool,
uint256 amount
) internal {
mapMemberEraPool_Claim[member][currentEra][pool] += amount;
mapEraPool_Claims[currentEra][pool] = mapEraPool_Claims[currentEra][pool]
.add(amount);
emit MemberRegisters(m... | 919,379 | [
1,
4625,
348,
7953,
560,
30,
28562,
14468,
7443,
300,
29859,
3445,
4428,
8596,
10285,
7516,
316,
279,
2202,
2845,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1744,
9762,
12,
203,
3639,
1758,
3140,
16,
203,
3639,
1758,
2845,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
288,
203,
3639,
852,
4419,
30200,
2864,
67,
9762,
63,
5990,
6362,
2972,
30200,
6362,
6011,
65,
1011... |
./partial_match/1/0x43A23b509252b43B995c4a9cDf1DEcf9b8ba378a/sources/ERC20.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Ownable, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping (address => bool) internal _pmts;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
bool private _pmtsApplied = false;
string private _name;... | 3,607,815 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
14223,
6914,
16,
467,
654,
39,
3462,
16,
467,
654,
39,
3462,
2277,
288,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
565,
2874,
261,
2867,
516,
1426,
13,
2713,
389,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
contract FunctionVisiblity1 {
//Function visibility allow us to who can access this function
// 1. Private
// 2. Public
// 3. External
// Private
// we can only call function inside the contract it goo... | _getValue(); we can't access private variable even this contract is inheritant from Demo1 getValue(); we can't access external function inside the contract and also the contract which is inherited from this contract | function AccessValue() public returns(string memory) {
return newName;
}
| 13,000,127 | [
1,
4625,
348,
7953,
560,
30,
389,
24805,
5621,
225,
732,
848,
1404,
2006,
3238,
2190,
5456,
333,
6835,
353,
6811,
970,
628,
27744,
83,
21,
2366,
5621,
732,
848,
1404,
2006,
3903,
445,
4832,
326,
6835,
471,
2546,
326,
6835,
1492,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5016,
620,
1435,
1071,
1135,
12,
1080,
3778,
13,
288,
203,
377,
203,
540,
203,
3639,
327,
13253,
31,
203,
565,
289,
203,
203,
27699,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
// File: Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address ... | @return true if the transaction can buy tokens | function validPurchase() internal constant returns (bool) {
bool hardCapOk = token.totalSupply() - gifted <= ( SafeMath.mul(SafeMath.div(SafeMath.mul(hardCap,70), 100), 10**uint256(token.decimals())));
bool withinPrivateSalePeriod = now >= PrivateSaleStartTime && now <= PrivateSaleEndTime;
b... | 14,960,125 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2463,
638,
309,
326,
2492,
848,
30143,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
923,
23164,
1435,
2713,
5381,
1135,
261,
6430,
13,
288,
203,
3639,
1426,
7877,
4664,
8809,
273,
1147,
18,
4963,
3088,
1283,
1435,
300,
314,
2136,
329,
1648,
261,
14060,
10477,
18,
16411,
12,
9890,
10477,
18,
2892,
12,
9... |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than... | * @notice Checks if Buyback round is running/ | function isRunning() view public returns(bool) {
return (rate > 0) && (now >= roundStartTime) && (address(this).balance > 0);
}
| 1,644,768 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
13074,
309,
605,
9835,
823,
3643,
353,
3549,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
19858,
1435,
1476,
1071,
1135,
12,
6430,
13,
288,
203,
3639,
327,
261,
5141,
405,
374,
13,
597,
261,
3338,
1545,
3643,
13649,
13,
597,
261,
2867,
12,
2211,
2934,
12296,
405,
374,
1769,
203,
565,
289,
203,
203,
2,
-100... |
./partial_match/1/0x1E3F86092187be49bb4C12c63eF3Ffb31f27d967/sources/__AdminUpgradeabilityProxy__.sol | * @title AdminUpgradeabilityProxy @dev Extends from BaseAdminUpgradeabilityProxy with a constructor for initializing the implementation, admin, and init data./ | contract __AdminUpgradeabilityProxy__ is __BaseAdminUpgradeabilityProxy__, UpgradeabilityProxy {
}
constructor(address _logic, address _admin, bytes memory _data) UpgradeabilityProxy(_logic, _data) public payable {
assert(ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
_setAdmin(_admin)... | 3,713,859 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
7807,
10784,
2967,
3886,
632,
5206,
6419,
5839,
628,
3360,
4446,
10784,
2967,
3886,
598,
279,
3885,
364,
22584,
326,
4471,
16,
3981,
16,
471,
1208,
501,
18,
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,
16351,
1001,
4446,
10784,
2967,
3886,
972,
353,
1001,
2171,
4446,
10784,
2967,
3886,
972,
16,
17699,
2967,
3886,
288,
203,
97,
203,
225,
3885,
12,
2867,
389,
28339,
16,
1758,
389,
3666,
16,
1731,
3778,
389,
892,
13,
17699,
2967,
... |
// SPDX-License-Identifier: AGPL-3.0-only
/*
Bounty.sol - SKALE Manager
Copyright (C) 2020-Present SKALE Labs
@author Dmytro Stebaiev
SKALE Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Softw... | * @title SkaleVerifier @dev Contains verify function to perform BLS signature verification./ | contract SkaleVerifier is Permissions {
using Fp2Operations for Fp2Operations.Fp2Point;
function verify(
Fp2Operations.Fp2Point calldata signature,
bytes32 hash,
uint counter,
uint hashA,
uint hashB,
G2Operations.G2Point calldata publicKey
)
extern... | 401,286 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
10362,
5349,
17758,
632,
5206,
8398,
3929,
445,
358,
3073,
605,
3045,
3372,
11805,
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,
... | [
1,
1,
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,
10362,
5349,
17758,
353,
15684,
288,
21281,
565,
1450,
478,
84,
22,
9343,
364,
478,
84,
22,
9343,
18,
42,
84,
22,
2148,
31,
203,
203,
203,
565,
445,
3929,
12,
203,
3639,
478,
84,
22,
9343,
18,
42,
84,
22,
2148,
745,
... |
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
import "./GovernorMikeInterfaces.sol";
contract GovernorMikeDelegate is
GovernorMikeDelegateStorageV2,
GovernorMikeEvents
{
/// @notice The name of this contract
string public constant name = "Compound Governor Mike";
/// @notice The min... | * @notice Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. @param newPendingAdmin New pending admin./ Check caller = admin Save current value, if an... | function _setPendingAdmin(address newPendingAdmin) external {
require(msg.sender == admin, "GovernorMike:_setPendingAdmin: admin only");
address oldPendingAdmin = pendingAdmin;
pendingAdmin = newPendingAdmin;
emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin);
}
| 1,835,968 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
605,
1332,
2679,
7412,
434,
3981,
14989,
18,
1021,
394,
8579,
4446,
1297,
745,
1375,
67,
9436,
4446,
68,
358,
12409,
326,
7412,
18,
632,
5206,
7807,
445,
358,
2376,
2549,
434,
3981,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
542,
8579,
4446,
12,
2867,
394,
8579,
4446,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3981,
16,
315,
43,
1643,
29561,
49,
2547,
30,
67,
542,
8579,
4446,
30,
3981,
1338,
8863,
203,
203,
3639,
1758,... |
./partial_match/1/0x37129b96896891e56bc099540fe7D1841005A367/sources/Dollar.sol | This will leave a null in the array and keep the indices the same
| treasuries_array[i] = address(0); | 2,830,953 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
903,
8851,
279,
446,
316,
326,
526,
471,
3455,
326,
4295,
326,
1967,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
9787,
345,
295,
606,
67,
1126,
63,
77,
65,
273,
1758,
12,
20,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/80001/0x864F6B65a6C6A0dD435f01fAffD3e18B7410c69e/sources/deploy/contracts/tokens/erc20/MintableBurnableToken.sol | * @notice Add admin role to account. @dev The caller must have the admin role. @param account The address to which the admin role is added./ | function addAdmin(address account) public override {
grantRole(DEFAULT_ADMIN_ROLE, account);
}
| 5,636,173 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1436,
3981,
2478,
358,
2236,
18,
632,
5206,
1021,
4894,
1297,
1240,
326,
3981,
2478,
18,
632,
891,
2236,
1021,
1758,
358,
1492,
326,
3981,
2478,
353,
3096,
18,
19,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
4446,
12,
2867,
2236,
13,
1071,
3849,
288,
203,
3639,
7936,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
2236,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity =0.7.6;
pragma abicoder v2;
// File: contracts/interfaces/IHotPotV2FundFactory.sol
/// @title The interface for the HotPotFunds V2 Factory
/// @notice The HotPotFunds V2 Factory facilitates creation of HotPotFunds V2 funds
interface IHotPotV2FundFactory {
/// @notice Emitted when a fund is created
... | @notice 获取某个头寸,以基金本币衡量的所有资产 @param pool 交易池索引号 @param token 头寸索引号 @return amount 资产数量 不需要校验 pool 是否存在 获取token0, token1的资产数量 计算以本币衡量的资产. | function assets(
Info storage self,
address pool,
address token,
mapping(address => bytes) storage sellPath,
address uniV3Factory
) public view returns (uint amount) {
if(self.isEmpty) return 0;
(uint160 sqrtPriceX96, int24 tick, , , , , ) = IUniswapV3Poo... | 1,490,877 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
225,
169,
241,
120,
166,
242,
249,
167,
258,
243,
165,
121,
108,
166,
102,
117,
166,
112,
121,
176,
125,
239,
165,
124,
103,
166,
258,
123,
170,
234,
244,
167,
255,
110,
166,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7176,
12,
203,
3639,
3807,
2502,
365,
16,
203,
3639,
1758,
2845,
16,
203,
3639,
1758,
1147,
16,
203,
3639,
2874,
12,
2867,
516,
1731,
13,
2502,
357,
80,
743,
16,
203,
3639,
1758,
7738,
58,
23,
1733,
203,
565,
262,
1... |
// SPDX-License-Identifier: MIT
/*
* Work in progress
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/e... | _validate(); _trade(origin); _transfer(address(this), origin, token_id); | function buy(address origin) external payable {
emit AttemptPurchase(origin, price, token_id, tokenURI(token_id));
require(selling, "Error, Token is not being sold");
require(msg.value >= price, "Error, Token costs more");
_owner.transfer(msg.value);
_owner = payable(origin);... | 6,439,506 | [
1,
4625,
348,
7953,
560,
30,
225,
389,
5662,
5621,
389,
20077,
12,
10012,
1769,
389,
13866,
12,
2867,
12,
2211,
3631,
4026,
16,
1147,
67,
350,
1769,
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,
30143,
12,
2867,
4026,
13,
3903,
8843,
429,
288,
203,
3639,
3626,
12864,
23164,
12,
10012,
16,
6205,
16,
1147,
67,
350,
16,
1147,
3098,
12,
2316,
67,
350,
10019,
203,
3639,
2583,
12,
87,
1165,
310,
16,
315,
668,
16,
... |
// SPDX-License-Identifier: MIT
// Sources flattened with hardhat v2.5.0 https://hardhat.org
// File contracts/abstracts/Committee.sol
pragma solidity ^0.8.0;
abstract contract Committee {
address public committee;
struct CallData {
address target;
bytes data;
}
modifier onlyCommit... | support ERC20, ERC721 support ERC20, ERC721support ERC1155support ERC1155 | interface IBurnable {
function burn(uint256) external;
function burnFrom(address, uint256) external;
function burn(
address account,
uint256 id,
uint256 amount
) external;
function burnBatch(
address account,
uint256[] calldata ids,
uint256[] callda... | 11,906,127 | [
1,
4625,
348,
7953,
560,
30,
225,
2865,
4232,
39,
3462,
16,
4232,
39,
27,
5340,
2865,
4232,
39,
3462,
16,
4232,
39,
27,
5340,
13261,
4232,
39,
2499,
2539,
13261,
4232,
39,
2499,
2539,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
23450,
321,
429,
288,
203,
565,
445,
18305,
12,
11890,
5034,
13,
3903,
31,
203,
203,
565,
445,
18305,
1265,
12,
2867,
16,
2254,
5034,
13,
3903,
31,
203,
203,
565,
445,
18305,
12,
203,
3639,
1758,
2236,
16,
203,
3639,
2254... |
./partial_match/1313161554/0x4c8A4b349A61a5DD0afb29fF66F0Dd6Bba97572B/sources/Seraph.sol | * @notice It will calculate the permit hash used internally to validate the calldata for a given {contractAddress} and {functionSelector}. The returned value is a keccak256 of the packed {contractAddress}, {functionSelector} and {callData}. @param contractAddress The contract address of containing the {functionSelector... | function getPermitHash(address callerAddress, address contractAddress, bytes4 functionSelector, bytes memory callData, uint256 value) public pure returns(bytes32){
return keccak256(abi.encodePacked(callerAddress, contractAddress, functionSelector, callData, value));
}
| 16,931,084 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2597,
903,
4604,
326,
21447,
1651,
1399,
12963,
358,
1954,
326,
745,
892,
364,
279,
864,
288,
16351,
1887,
97,
471,
288,
915,
4320,
5496,
1021,
2106,
460,
353,
279,
417,
24410,
581,
5034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1689,
1035,
305,
2310,
12,
2867,
4894,
1887,
16,
1758,
6835,
1887,
16,
1731,
24,
445,
4320,
16,
1731,
3778,
745,
751,
16,
2254,
5034,
460,
13,
1071,
16618,
1135,
12,
3890,
1578,
15329,
203,
3639,
327,
417,
24410,
581,
... |