file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity ^0.4.20;
/*
* Team UltimateGods presents..
* ====================================*
* ____ ___ _____
* | _ \ / _ \ | ____|
* | |_) | | | \| | _
* | __/| |_| || |_| |
* |_| \___/ |_____|
* *
* ========================... | -- APPLICATION ENTRY POINTS --/ add administrators here | function StrongHold()
public
{
administrators[0x72672f5a5f1f0d1bd51d75da8a61b3bcbf6efdd40888e7adb59869bd46b7490e] = false;
}
| 6,816,525 | [
1,
4625,
348,
7953,
560,
30,
225,
1493,
14148,
25516,
13803,
3217,
55,
1493,
19,
527,
30162,
3062,
2674,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3978,
932,
20586,
1435,
203,
3639,
1071,
203,
565,
288,
203,
3639,
30162,
3062,
63,
20,
92,
27,
5558,
9060,
74,
25,
69,
25,
74,
21,
74,
20,
72,
21,
16410,
10593,
72,
5877,
2414,
28,
69,
9498,
70,
23,
70,
7358,
74,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IPremiaBondingCurveUpgrade} from "./interface/IPremiaBondingCurveUpgrade.sol";
import {IERC20} from "@solidstate/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@solidstate/contracts/utils/SafeERC20.sol";
contract PremiaBondingCurveDeprecati... | * @title ERC20 interface/ | interface IERC20 is IERC20Internal {
function totalSupply () external view returns (uint256);
function balanceOf (
address account
) external view returns (uint256);
function allowance (
address holder,
address spender
) external view returns (uint256);
function approve (
address spender,... | 313,203 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
1560,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
353,
467,
654,
39,
3462,
3061,
288,
203,
225,
445,
2078,
3088,
1283,
1832,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
225,
445,
11013,
951,
261,
203,
565,
1758,
2236,
203,
225,
262,
3903,
1476,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
contract KeyInds {
//START Owner block
address private owner;
event OwnerSet(address indexed oldOwner, address indexed newOwner);
event Beacon();
modifier isOwner() {
require(msg.sender == owner, "Calle... | START banking_sector_liquidity_indicators | function get_liquidity_deficit() public view returns(string memory){
return banking_sector_liquidity_indicators.liquidity_deficit;
}
| 15,830,544 | [
1,
4625,
348,
7953,
560,
30,
10485,
11218,
310,
67,
5709,
280,
67,
549,
372,
24237,
67,
728,
24994,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
67,
549,
372,
24237,
67,
536,
335,
305,
1435,
1071,
1476,
1135,
12,
1080,
3778,
15329,
203,
3639,
327,
11218,
310,
67,
5709,
280,
67,
549,
372,
24237,
67,
728,
24994,
18,
549,
372,
24237,
67,
536,
335,
305,
31,
... |
/// @title Marketplace: A marketplace for listing and buying products
/// @author John McCrae
/// @notice This contract inherits EmergencyStop, a contract that implements the circuit breaker design pattern
/// @dev This contract requires solidity compiler version 0.5 or higher.
pragma solidity ^0.5.0;
/// @dev This c... | @param storeMan A mapping data type with key as address (store manager address) and value as struct Managers (store manager data) | mapping (address => Managers) public storeMan;
| 12,957,461 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
891,
1707,
5669,
432,
2874,
501,
618,
598,
498,
487,
1758,
261,
2233,
3301,
1758,
13,
471,
460,
487,
1958,
490,
11113,
261,
2233,
3301,
501,
13,
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,
565,
2874,
261,
2867,
516,
490,
11113,
13,
1071,
1707,
5669,
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,
-1... |
//Address: 0xba54a9aa2a711883aa5fc87ae9e7127ba405dac9
//Contract name: Reservation
//Balance: 0 Ether
//Verification Date: 8/20/2017
//Transacion Count: 84
// CODE STARTS HERE
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
fun... | * Crowdfund state machine management. We make it a function and do not assign the result to a variable, so there is no chance of the variable being stale./ | function getState() public constant returns (State) {
if (address(pricingStrategy) == 0)
return State.Preparing;
else if (block.timestamp < startsAt)
return State.PreFunding;
else if (block.timestamp <= endsAt && !isReservationFull())
return State.Funding;... | 5,432,901 | [
1,
4625,
348,
7953,
560,
30,
380,
385,
492,
2180,
1074,
919,
5228,
11803,
18,
1660,
1221,
518,
279,
445,
471,
741,
486,
2683,
326,
563,
358,
279,
2190,
16,
1427,
1915,
353,
1158,
17920,
434,
326,
2190,
3832,
14067,
18,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8997,
1435,
1071,
5381,
1135,
261,
1119,
13,
288,
203,
3639,
309,
261,
2867,
12,
683,
14774,
4525,
13,
422,
374,
13,
203,
5411,
327,
3287,
18,
1386,
12583,
31,
203,
3639,
469,
309,
261,
2629,
18,
5508,
411,
2542,
861,... |
pragma solidity ^0.4.11;
// ----------------------------------------------------------------------------
// OAX 'openANX Token' crowdfunding contract
//
// Refer to http://openanx.org/ for further information.
//
// Enjoy. (c) openANX and BokkyPooBah / Bok Consulting Pty Ltd 2017.
// The MIT Licence.
// -------------... | ---------------------------------------------------------------------------- Owned contract ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Current owner, and proposed new owner ---------------------------------------... | contract Owned {
address public owner;
address public newOwner;
function Owned() {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address _newOwner) onlyOwner {
newOwner = _newOwner;
}
... | 5,478,525 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
14223,
11748,
6835,
8879,
13849,
8879,
17082,
6562,
3410,
16,
471,
20084,
394,
3410,
8879,
17082,
8879,
17082,
11417,
300,
2683,
11784,
487,
326,
3410,
8879,
17082,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
11748,
288,
203,
203,
565,
1758,
1071,
3410,
31,
203,
565,
1758,
1071,
394,
5541,
31,
203,
203,
565,
445,
14223,
11748,
1435,
288,
203,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
203,
565,
9606,
... |
// pragma solidity ^0.4.25;
pragma solidity ^0.8.0;
import "../node_modules/openzeppelin-solidity/contracts/utils/math/SafeMath.sol";
// import "truffle/Console.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/*************************************************************************************... | TODO - refactor with str Airline
| address airlineAddress; | 12,543,001 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
300,
26627,
598,
609,
432,
481,
1369,
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... | [
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,
1758,
23350,
1369,
1887,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.0;
import "../../UpgradableModuleFactory.sol";
import "./POLYCappedSTOProxy.sol";
import "../../../libraries/Util.sol";
import "../../../interfaces/IBoot.sol";
/**
* @title Factory for deploying POLYCappedSTO module
*/
contract POLYCappedSTOFactory is UpgradableModuleFactory {
/**
* @... | * @notice Constructor @param _setupCost Setup cost of the module @param _usageCost Usage cost of the module @param _logicContract Contract address that contains the logic related to `description` @param _polymathRegistry Address of the Polymath registry @param _isCostInPoly true = cost in Poly, false = USD/ | {
name = "POLYCappedSTO";
title = "POLY - Capped STO";
description = "This smart contract creates a maximum number of tokens (i.e. hard cap) which the total aggregate of tokens acquired by all investors cannot exceed. Security tokens are sent to the investor upon reception of the funds (POLY... | 13,106,794 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11417,
632,
891,
389,
8401,
8018,
10939,
6991,
434,
326,
1605,
632,
891,
389,
9167,
8018,
10858,
6991,
434,
326,
1605,
632,
891,
389,
28339,
8924,
13456,
1758,
716,
1914,
326,
4058,
3746,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
508,
273,
315,
14232,
61,
4664,
1845,
31487,
14432,
203,
3639,
2077,
273,
315,
14232,
61,
300,
11200,
1845,
2347,
51,
14432,
203,
3639,
2477,
273,
315,
2503,
13706,
6835,
3414,
279,
4207,
1300,
434,
2430,
261,
... |
./partial_match/1/0xa52c0Bb1b802e9d6A483072d56fd22B58B964455/sources/contracts/mixins/nftDropMarket/NFTDropMarketCore.sol | @notice Requires the given NFT contract supports the interfaces currently required by this market for minting, and that it has granted this market the MINTER_ROLE. Must support the mint interface this market depends on. Must be an ERC-721 NFT collection. | modifier onlySupportedCollectionType(address nftContract) {
if (!nftContract.supportsInterface(type(INFTLazyMintedCollectionMintCountTo).interfaceId)) {
revert NFTDropMarketCore_Must_Support_Collection_Mint_Interface();
}
if (!nftContract.supportsERC165InterfaceUnchecked(type(IERC721).interfaceId)) ... | 2,625,051 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
16412,
326,
864,
423,
4464,
6835,
6146,
326,
7349,
4551,
1931,
635,
333,
13667,
364,
312,
474,
310,
16,
471,
716,
518,
711,
17578,
333,
13667,
326,
6989,
2560,
67,
16256,
18,
6753,
2865,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9606,
1338,
7223,
2532,
559,
12,
2867,
290,
1222,
8924,
13,
288,
203,
565,
309,
16051,
82,
1222,
8924,
18,
28064,
1358,
12,
723,
12,
706,
4464,
14443,
49,
474,
329,
2532,
49,
474,
1380,
774,
2934,
5831,
548,
3719,
288,
203... |
./full_match/1/0xCE938c27C04d4A638307D44e28515D4bcD28bD74/sources/contracts/f_x_/Treasury.sol | @inheritdoc ITreasury @dev If the current collateral ratio >= new collateral ratio, we should return 0. | function maxMintableXToken(uint256 _newCollateralRatio)
external
view
override
returns (uint256 _maxBaseIn, uint256 _maxXTokenMintable)
{
require(_newCollateralRatio > PRECISION, "collateral ratio too small");
StableCoinMath.SwapState memory _state = _loadSwapState();
(_maxBaseIn, _maxX... | 3,108,127 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
24142,
266,
345,
22498,
632,
5206,
971,
326,
783,
4508,
2045,
287,
7169,
1545,
394,
4508,
2045,
287,
7169,
16,
732,
1410,
327,
374,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
943,
49,
474,
429,
60,
1345,
12,
11890,
5034,
389,
2704,
13535,
2045,
287,
8541,
13,
203,
565,
3903,
203,
565,
1476,
203,
565,
3849,
203,
565,
1135,
261,
11890,
5034,
389,
1896,
2171,
382,
16,
2254,
5034,
389,
1896,
6... |
./full_match/41/0x76E8b6f2659ef7bd2dE023A7351A25A00a64231A/sources/contracts/PopsPool.sol | * @notice Calculate Performance fee. @param _user: User address @return Returns Performance fee./ | function calculatePerformanceFee(address _user) public view returns (uint256) {
UserInfo storage user = userInfo[_user];
if (user.shares > 0 && !user.locked && !freePerformanceFeeUsers[_user]) {
uint256 pool = balanceOf() + calculateTotalPendingPopsRewards();
uint256 totalAmo... | 16,372,132 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9029,
11217,
1359,
14036,
18,
632,
891,
389,
1355,
30,
2177,
1758,
632,
2463,
2860,
11217,
1359,
14036,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4604,
25024,
14667,
12,
2867,
389,
1355,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
1355,
15533,
203,
3639,
309,
261,
1355,
18,
30720,
405,
374,
597,
401,
1355,
18,... |
./full_match/1/0x7900c70a377f89DF29D1D1939469ae3B74c5B740/sources/contracts/lev_comp_v3_030.sol | ************ Very important function Input: amount we want to withdraw and whether we are happy to pay extra for Aave. cannot be more than we have Returns amount we were able to withdraw. notall if user has some balance left Deleverage position -> redeem our cTokens /If there is no deficit we dont need to adjust ... | function _withdrawSome(uint256 _amount) internal returns (bool notAll) {
(uint256 position, bool deficit) = _calculateDesiredPosition(_amount, false);
if (deficit && position > minWant) {
if (flashMintActive) {
position = position.sub(doFlashMint(deficit, position));
... | 4,962,345 | [
1,
4625,
348,
7953,
560,
30,
380,
1644,
14465,
776,
627,
10802,
445,
2741,
30,
3844,
732,
2545,
358,
598,
9446,
471,
2856,
732,
854,
5622,
2074,
358,
8843,
2870,
364,
432,
836,
18,
4202,
2780,
506,
1898,
2353,
732,
1240,
2860,
3844,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
1918,
9446,
17358,
12,
11890,
5034,
389,
8949,
13,
2713,
1135,
261,
6430,
486,
1595,
13,
288,
203,
3639,
261,
11890,
5034,
1754,
16,
1426,
1652,
335,
305,
13,
273,
389,
11162,
25683,
2555,
24899,
8949,
16,
629,
176... |
./partial_match/3/0x662827F57c3910C05F5460a19d7634907D4f2362/sources/LDBToken.sol | * @dev Mint tokens @param _to the address to mint to @param _value the token number to mint/ | function mint(address _to, uint256 _value) onlyMaintainer public returns (bool){
require(canMintCheck(_to, _value), "investor is not whitelisted");
uint oldBalance = balances[_to];
bool mintResult = super.mint(_to,_value);
uint newBalance = balances[_to];
if(oldBalance == 0 &... | 5,207,065 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
2430,
632,
891,
389,
869,
326,
1758,
358,
312,
474,
358,
632,
891,
389,
1132,
326,
1147,
1300,
358,
312,
474,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1338,
49,
1598,
1521,
1071,
1135,
261,
6430,
15329,
203,
3639,
2583,
12,
4169,
49,
474,
1564,
24899,
869,
16,
389,
1132,
3631,
315,
5768,
395,
280,
353,
486... |
/**
*Submitted for verification at Etherscan.io on 2021-09-20
*/
// SPDX-License-Identifier: AGPL-3.0
// The MegaPoker
//
// Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public Licens... | OSMs and Spotter addresses | contract PokingAddresses {
address constant eth = 0x81FE72B5A8d1A857d176C3E7d5Bd2679A9B85763;
address constant bat = 0xB4eb54AF9Cc7882DF0121d26c5b97E802915ABe6;
address constant btc = 0xf185d0682d50819263941e5f4EacC763CC5C6C42;
address constant knc = 0xf36B79B... | 15,393,105 | [
1,
4625,
348,
7953,
560,
30,
225,
5932,
6947,
471,
26523,
387,
6138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
453,
601,
310,
7148,
288,
203,
565,
1758,
5381,
13750,
5411,
273,
374,
92,
11861,
8090,
9060,
38,
25,
37,
28,
72,
21,
37,
7140,
27,
72,
28493,
39,
23,
41,
27,
72,
25,
38,
72,
5558,
7235,
37,
29,
38,
7140,
27,
4449,
... |
./full_match/288/0xcA1be42015f3d636A0E66bfb50E79DBF6679d706/sources/contracts/boba/L2NFT.sol | @dev This function should only be called by a NFT staking pool. | function exitingStaking(uint256 tokenId) external {
require(stakingPool[tokenId] == msg.sender, "Not called by the staking Pool.");
stakingPool[tokenId] = address(0);
}
| 7,103,869 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1220,
445,
1410,
1338,
506,
2566,
635,
279,
423,
4464,
384,
6159,
2845,
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,
565,
445,
15702,
510,
6159,
12,
11890,
5034,
1147,
548,
13,
3903,
288,
203,
3639,
2583,
12,
334,
6159,
2864,
63,
2316,
548,
65,
422,
1234,
18,
15330,
16,
315,
1248,
2566,
635,
326,
384,
6159,
8828,
1199,
1769,
203,
3639,
384,
6... |
pragma solidity >= 0.8.0;
interface myWallet {
function getBalance() external view returns(uint256);
function clear(bytes32) external;
}
interface userWallet is myWallet{
function insure(uint256,bytes32) external;
function getInsuredFlight(bytes32) external view returns (uint256);
}
interface airlineWa... | * @dev Transfers eligible payout funds to insuree/ | function pay
(address user
)
external
requireContractOwner
requireRegisteredUser(user)
requireIsOperational
returns(uint... | 1,753,129 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
5206,
2604,
18881,
21351,
293,
2012,
284,
19156,
358,
316,
2055,
73,
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,
8843,
203,
18701,
261,
2867,
729,
203,
18701,
262,
203,
18701,
3903,
203,
18701,
2583,
8924,
5541,
203,
18701,
2583,
10868,
1299,
12,
1355,
13,
203,
18701,
2583,
2520,
2988,
287,
203,
18701,
1135,
12,
11890,
13,
203,
565,... |
pragma solidity ^0.5.2;
import { Ownable } from "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import { StateSyncerVerifier } from "./bor/StateSyncerVerifier.sol";
import { StateReceiver } from "./bor/StateReceiver.sol";
import "./ChildToken.sol";
import "./ChildERC20.sol";
import "./ChildERC721.sol";
co... | for testnet updates remove for mainnet | function mapToken(address rootToken, address token, bool isErc721) public onlyOwner {
tokens[rootToken] = token;
isERC721[rootToken] = isErc721;
}
| 2,505,211 | [
1,
4625,
348,
7953,
560,
30,
225,
364,
1842,
2758,
4533,
1206,
364,
2774,
2758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
852,
1345,
12,
2867,
1365,
1345,
16,
1758,
1147,
16,
1426,
353,
41,
1310,
27,
5340,
13,
1071,
1338,
5541,
288,
203,
565,
2430,
63,
3085,
1345,
65,
273,
1147,
31,
203,
565,
353,
654,
39,
27,
5340,
63,
3085,
1345,
65,... |
./full_match/4/0x3AcF5b5B023f1399786F35179B130D820Fbd177C/sources/contracts/1_Storage.sol | Unlocks the contract for owner when _lockTime is exceeds | function unlock() public virtual {
require(
_previousOwner == msg.sender,
"You don't have permission to unlock"
);
require(now > _lockTime, "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
... | 808,634 | [
1,
4625,
348,
7953,
560,
30,
3967,
87,
326,
6835,
364,
3410,
1347,
389,
739,
950,
353,
14399,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7186,
1435,
1071,
5024,
288,
203,
3639,
2583,
12,
203,
5411,
389,
11515,
5541,
422,
1234,
18,
15330,
16,
203,
5411,
315,
6225,
2727,
1404,
1240,
4132,
358,
7186,
6,
203,
3639,
11272,
203,
3639,
2583,
12,
3338,
405,
389,... |
./full_match/1/0x0000000067149F4D5e7D2904179b8Fccca000539/sources/contracts/modules/utils/DelegateCashLib.sol | Cache the free memory pointer. Store the function selector of `checkDelegateForAll(address,address)`. Store the `delegate`. Store the `vault`. Arguments are evaulated last to first. The returndata is 1, which represents a bool true. The staticcall is successful. Restore the free memory pointer. | function checkDelegateForAll(address delegate, address vault) internal view returns (bool result) {
assembly {
let m := mload(0x40)
mstore(0x00, 0x9c395bc2)
mstore(0x20, delegate)
mstore(0x40, vault)
result := and(
eq(mload(0x00), ... | 9,791,612 | [
1,
4625,
348,
7953,
560,
30,
225,
4379,
326,
4843,
3778,
4407,
18,
4994,
326,
445,
3451,
434,
1375,
1893,
9586,
1290,
1595,
12,
2867,
16,
2867,
13,
8338,
4994,
326,
1375,
22216,
8338,
4994,
326,
1375,
26983,
8338,
13599,
854,
2113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
866,
9586,
1290,
1595,
12,
2867,
7152,
16,
1758,
9229,
13,
2713,
1476,
1135,
261,
6430,
563,
13,
288,
203,
3639,
19931,
288,
203,
5411,
2231,
312,
519,
312,
945,
12,
20,
92,
7132,
13,
203,
5411,
312,
2233,
12,
20,
9... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
pragma abicoder v2;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/interfaces/IERC721ReceiverUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"... | Backup redeem function, if one of the contracts in the registry becomes malformed for any reason, malicious or not; can still recover individual NFTs from the resort, without resorting to changing the registry. NB: exempt from strict fingerprint checking, in case the estate somehow got changed from under us due to DCL... | function redeemOne(
uint256 tokenId,
address contractAddress,
uint256 contractTokenId,
address to
) external {
require(_isApprovedOrOwner(msg.sender, tokenId), "EA");
if (contractAddress == DECENTRALAND_ESTATE) {
require(
decentralandE... | 12,026,310 | [
1,
4625,
348,
7953,
560,
30,
225,
11856,
283,
24903,
445,
16,
309,
1245,
434,
326,
20092,
316,
326,
4023,
12724,
17458,
364,
1281,
3971,
16,
27431,
28728,
578,
486,
31,
848,
4859,
5910,
7327,
423,
4464,
87,
628,
326,
400,
499,
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,
283,
24903,
3335,
12,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1758,
6835,
1887,
16,
203,
3639,
2254,
5034,
6835,
1345,
548,
16,
203,
3639,
1758,
358,
203,
565,
262,
3903,
288,
203,
3639,
2583,
24899,
291,
31639... |
./partial_match/42/0x7040CB186e1435777E4443881234285eE63DAd1e/sources/Verifier.sol | Compute the linear combination vk_x | function verify(uint256[] memory input, Proof memory proof) internal view returns (uint) {
uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;
VerifyingKey memory vk = verifyingKey();
require(input.length + 1 == vk.gamma_abc.length);
... | 3,316,682 | [
1,
4625,
348,
7953,
560,
30,
225,
8155,
326,
9103,
10702,
331,
79,
67,
92,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3929,
12,
11890,
5034,
8526,
3778,
810,
16,
1186,
792,
3778,
14601,
13,
2713,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
2254,
5034,
4556,
1313,
67,
8748,
67,
1518,
273,
576,
2643,
5482,
3247,
6030,
27,
2643,
5520,
532... |
pragma solidity ^0.4.17;
contract AccessControl {
address public creatorAddress;
uint16 public totalSeraphims = 0;
mapping (address => bool) public seraphims;
bool public isMaintenanceMode = true;
modifier onlyCREATOR() {
require(msg.sender == creatorAddress);
_;
}
modi... | events write functions | contract RetirePets is AccessControl, SafeMath {
address public petCardDataContract = 0xB340686da996b8B3d486b4D27E38E38500A9E926;
event EventNewPet(uint64 petID);
function DataContacts( address _petCardDataContract) onlyCREATOR external {
petCardDataContract = _petCardDataCo... | 11,917,696 | [
1,
4625,
348,
7953,
560,
30,
225,
2641,
1045,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17100,
577,
52,
2413,
353,
24349,
16,
14060,
10477,
288,
203,
203,
21281,
27699,
565,
1758,
1071,
293,
278,
6415,
751,
8924,
273,
374,
20029,
5026,
7677,
5292,
2414,
2733,
26,
70,
28,
38,
23,
72,
24,
5292,
70,
24,
40,
53... |
// SPDX-License-Identifier: MIT
// contract to manage the Bitgreen-Bridge
pragma solidity ^0.8.11;
contract BitgreenBridge {
// settings storage
address [10] keepers;
address [3] watchdogs;
address [3] watchcats;
uint8 threshold;
// address of the owner of the contract (the one allowed to change... | * @dev store configuration for Keepers @param Keepers is an array of address of the allowed keepers of the bridge transactions (max 10 keepers are allowed)/ store state | function setKeepers(address [10] memory Keepers) public {
require(msg.sender == owner,"Function accessible only to owner");
require(lockdown==false,"contract in lockdown, please try later");
uint i=0;
for(i=0;i<10;i++){
if(Keepers[i]==address(0)){
break;
... | 1,837,933 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1707,
1664,
225,
364,
10498,
414,
632,
891,
10498,
414,
353,
392,
526,
434,
1758,
434,
326,
2935,
3455,
414,
434,
326,
10105,
8938,
261,
1896,
1728,
3455,
414,
854,
2935,
13176,
1707,
919... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
11523,
414,
12,
2867,
306,
2163,
65,
3778,
10498,
414,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
10837,
2083,
12718,
1338,
358,
3410,
8863,
203,
3639,
2583,
12,
739,
2378,
631,
5743,
10837,
16... |
./full_match/43113/0xb30496ADD15e3AB389ae310dbD654BBA772010e1/sources/cross-tool/UniProxy.sol | * @dev Delegates execution to an implementation contract. It returns to the external caller whatever the implementation returns or forwards reverts./ delegate all other functions to current implementation | fallback () payable external {
(bool success, ) = implementation.delegatecall(msg.data);
assembly {
let free_mem_ptr := mload(0x40)
returndatacopy(free_mem_ptr, 0, returndatasize())
switch success
}
}
| 7,108,896 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
24117,
815,
4588,
358,
392,
4471,
6835,
18,
2597,
1135,
358,
326,
3903,
4894,
15098,
326,
4471,
1135,
578,
24578,
15226,
87,
18,
19,
7152,
777,
1308,
4186,
358,
783,
4471,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
5922,
1832,
8843,
429,
3903,
288,
203,
3639,
261,
6430,
2216,
16,
262,
273,
4471,
18,
22216,
1991,
12,
3576,
18,
892,
1769,
203,
203,
3639,
19931,
288,
203,
2868,
2231,
4843,
67,
3917,
67,
6723,
519,
312,
945,
12,
20,
92,
... |
pragma solidity 0.5.4;
import 'ROOT/IAugur.sol';
import 'ROOT/libraries/token/ERC20Token.sol';
import 'ROOT/libraries/math/SafeMathUint256.sol';
import 'ROOT/factories/IUniverseFactory.sol';
import 'ROOT/reporting/IUniverse.sol';
import 'ROOT/reporting/IMarket.sol';
import 'ROOT/reporting/IDisputeWindow.sol';
import '... | This signature is intended for the categorical market creation. We use two signatures for the same event because of stack depth issues which can be circumvented by maintaining order of paramaters | function logMarketCreated(uint256 _endTime, bytes32 _topic, string memory _extraInfo, IMarket _market, address _marketCreator, address _designatedReporter, uint256 _feeDivisor, int256[] memory _prices, IMarket.MarketType _marketType, bytes32[] memory _outcomes) public returns (bool) {
IUniverse _universe = ... | 7,292,896 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
3372,
353,
12613,
364,
326,
22237,
13667,
6710,
18,
1660,
999,
2795,
14862,
364,
326,
1967,
871,
2724,
434,
2110,
3598,
8296,
1492,
848,
506,
29951,
616,
329,
635,
11566,
3280,
1353,
434,
579,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
613,
3882,
278,
6119,
12,
11890,
5034,
389,
409,
950,
16,
1731,
1578,
389,
10476,
16,
533,
3778,
389,
7763,
966,
16,
467,
3882,
278,
389,
27151,
16,
1758,
389,
27151,
10636,
16,
1758,
389,
16934,
690,
13289,
16,
2254,
... |
pragma solidity 0.6.8;
// This file is MIT Licensed.
//
// Copyright 2017 Christian Reitwiessner
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitati... | * @return the negation of point p/ | function negate(G1Point memory p) internal pure returns (G1Point memory) {
uint256 P = 21888242871839275222246405745257275088696311157297823662689037894645226208583;
if (p.x == 0 && p.y == 0) {
return G1Point(0, 0);
}
return G1Point(p.x, P - (p.y % P));
}
| 15,814,035 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
326,
4251,
367,
434,
1634,
293,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15626,
12,
43,
21,
2148,
3778,
293,
13,
2713,
16618,
1135,
261,
43,
21,
2148,
3778,
13,
288,
203,
3639,
2254,
5034,
453,
273,
576,
2643,
5482,
3247,
6030,
27,
2643,
5520,
5324,
25,
3787,
23622,
1105,
6260,
5608,
25,
2... |
./full_match/11155111/0xdAE7e32ADc5d490a43cCba1f0c736033F2b4eFca/sources/contracts/vault/ProtocolFeesCollector.sol | * @dev This an auxiliary contract to the Vault, deployed by it during construction. It offloads some of the tasks the Vault performs to reduce its overall bytecode size. The current values for all protocol fee percentages are stored here, and any tokens charged as protocol fees are sent to this contract, where they may... | contract ProtocolFeesCollector is Authentication, ReentrancyGuard {
using SafeERC20 for IERC20;
IVault public immutable vault;
uint256 private _swapFeePercentage;
uint256 private _flashLoanFeePercentage;
event SwapFeePercentageChanged(uint256 newSwapFeePercentage);
event FlashLoanFeePercen... | 3,818,306 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1220,
392,
9397,
20606,
6835,
358,
326,
17329,
16,
19357,
635,
518,
4982,
16171,
18,
2597,
3397,
17135,
2690,
434,
326,
4592,
326,
17329,
11199,
358,
5459,
2097,
13914,
22801,
963,
18,
1021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4547,
2954,
281,
7134,
353,
8665,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
203,
565,
467,
12003,
1071,
11732,
9229,
31,
203,
203,
203,
565,
2254,
5034,
... |
pragma solidity ^0.5.10;
/** @title BitcoinSPV */
/** @author Summa (https://summa.one) */
import {BytesLib} from "./BytesLib.sol";
import {SafeMath} from "./SafeMath.sol";
library BTCUtils {
using BytesLib for bytes;
using SafeMath for uint256;
// The target at minimum Difficulty. Also the target of th... | The target at minimum Difficulty. Also the target of the genesis block | library BTCUtils {
using BytesLib for bytes;
using SafeMath for uint256;
uint256 public constant DIFF1_TARGET =
0xffff0000000000000000000000000000000000000000000000000000;
function determineVarIntDataLength(bytes memory _flag)
internal
pure
returns (uint8)
import {By... | 5,491,183 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
1018,
622,
5224,
13008,
21934,
18,
8080,
326,
1018,
434,
326,
21906,
1203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
605,
15988,
1989,
288,
203,
565,
1450,
5985,
5664,
364,
1731,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
1071,
5381,
3690,
2246,
21,
67,
16374,
273,
203,
3639,
374,
20431,
12648,
12648,... |
pragma solidity >= 0.5.0 <0.7.0;
// import "@aztec/protocol/contracts/ERC1724/ZkAsset.sol";
import "@aztec/protocol/contracts/ERC1724/ZkAssetMintable.sol";
// contract TestZkAsset is ZkAsset {
// }
contract TestZKAssetMintable is ZkAssetMintable {
}
| import "@aztec/protocol/contracts/ERC1724/ZkAsset.sol"; | import "@aztec/protocol/contracts/ERC1724/ZkAssetMintable.sol";
| 12,641,914 | [
1,
4625,
348,
7953,
560,
30,
225,
1930,
8787,
1561,
14537,
19,
8373,
19,
16351,
87,
19,
654,
39,
4033,
3247,
19,
62,
79,
6672,
18,
18281,
14432,
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,
5666,
8787,
1561,
14537,
19,
8373,
19,
16351,
87,
19,
654,
39,
4033,
3247,
19,
62,
79,
6672,
49,
474,
429,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xcccd6EC6F4705292f07eE4a9a8F1F120963358c5/sources/contracts/bridgeToken/adapters/ccip/CCIPBridgeAdapter.sol | *@notice Estimate bridge cost @param _dstChainId Destination chain id @param _amount Amount of BIFI to bridge out @param _to Address to receive funds on destination chain/ | function bridgeCost(uint256 _dstChainId, uint256 _amount, address _to) external override view returns (uint256 gasCost) {
IRouterClient.EVM2AnyMessage memory message = IRouterClient.EVM2AnyMessage(
abi.encode(address(this)),
abi.encode(_to, _amount),
new IRouterClient.EVM... | 4,982,834 | [
1,
4625,
348,
7953,
560,
30,
380,
36,
20392,
17787,
4988,
10105,
6991,
632,
891,
389,
11057,
3893,
548,
10691,
2687,
612,
632,
891,
389,
8949,
16811,
434,
605,
5794,
358,
10105,
596,
632,
891,
389,
869,
5267,
358,
6798,
284,
19156,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10105,
8018,
12,
11890,
5034,
389,
11057,
3893,
548,
16,
2254,
5034,
389,
8949,
16,
1758,
389,
869,
13,
3903,
3849,
1476,
1135,
261,
11890,
5034,
16189,
8018,
13,
288,
203,
3639,
467,
8259,
1227,
18,
41,
7397,
22,
2961,... |
./full_match/1/0x8e770C146F8A9F8AC5A66ac147178eA1191C6195/sources/contracts/HunterBidenInu.sol | * @dev Initializes the contract setting the deployer as the initial owner./ | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
constructor() {
_transferOwnership(_msgSender());
}
| 3,055,446 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10188,
3128,
326,
6835,
3637,
326,
7286,
264,
487,
326,
2172,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
445,
389,
5205,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,... |
./full_match/1/0xb57D345f87172dc7a5D81EF0f4619D43d91d4cc3/sources/contracts/Purchase.sol | * @dev Initializes the contract. @param _tamaToken address of tama token. @param _paymentWallet address of wallet used to transfer tama when purchase is made. @param _name domain name for EIP 712 Domain. @param _version version for EIP 712 Domain. @param _signer address of the signer. Requirements: - Tama token, signer... | function initialize(
address _tamaToken,
address _paymentWallet,
string calldata _name,
string calldata _version,
address _signer
) external initializer {
if (
(_tamaToken == address(0) || _paymentWallet == address(0)) ||
_signer == address... | 2,978,810 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10188,
3128,
326,
6835,
18,
632,
891,
389,
88,
20789,
1345,
1758,
434,
268,
20789,
1147,
18,
632,
891,
389,
9261,
16936,
1758,
434,
9230,
1399,
358,
7412,
268,
20789,
1347,
23701,
353,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1758,
389,
88,
20789,
1345,
16,
203,
3639,
1758,
389,
9261,
16936,
16,
203,
3639,
533,
745,
892,
389,
529,
16,
203,
3639,
533,
745,
892,
389,
1589,
16,
203,
3639,
1758,
389,
2977,
264,
203,
565,
... |
./full_match/1/0x1a9a81e6a0212fAAaDbF9bE818821200E77DEFeF/sources/VoteBribe.sol | vote_id => reward_token => reward_amount | contract BribeV2Vote {
vote constant VOTE = vote(0xE478de485ad2fe566d49342Cbd03E49ed7DB3356);
ve constant veCRV = ve(0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2);
uint constant desired_vote = 1;
mapping(uint => mapping(address => uint)) public reward_amount;
mapping(uint => uint) public snapshot... | 3,154,271 | [
1,
4625,
348,
7953,
560,
30,
225,
12501,
67,
350,
516,
19890,
67,
2316,
516,
19890,
67,
8949,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
605,
1902,
58,
22,
19338,
288,
203,
565,
12501,
5381,
776,
51,
1448,
273,
12501,
12,
20,
17432,
24,
8285,
323,
24,
7140,
361,
22,
3030,
4313,
26,
72,
7616,
5026,
22,
15237,
72,
4630,
41,
7616,
329,
27,
2290,
3707,
4313,
... |
// File: contracts/components/WRC20Protocol.sol
pragma solidity 0.4.26;
contract WRC20Protocol {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint supply);
is replaced with:
uint public totalSupply;
This automatically creates a getter function for... | * Math operations with safety checks/ | library SafeMath {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath mul overflow");
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (... | 1,112,224 | [
1,
4625,
348,
7953,
560,
30,
380,
2361,
5295,
598,
24179,
4271,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14060,
10477,
288,
203,
203,
97,
203,
203,
565,
445,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
69,
422,
374,
13,
288,
203,
5411,
327,
374,
31... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract RandomSpell is ERC721 {
uint256 public tokenCounter;
enum Spell{HASTE, TIME_STOP, MAZE, EVENT_HORIZON, SINGULARITY}
mapping(uint256 => Spell) public tokenIdToSpell;
mapping(uin... | _setTokenURI(newItemId, tokenURI); | function createSpell(address owner, uint256 amount, uint256 randomNumber)
external {
require(msg.sender == address(0x82a29BFDb765860FA50063607674493c53c44366), "Only authorized contracts can call this function");
emit Log(owner, randomNumber);
uint256 randomSeed = random... | 1,067,441 | [
1,
4625,
348,
7953,
560,
30,
225,
389,
542,
1345,
3098,
12,
2704,
17673,
16,
1147,
3098,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
752,
3389,
1165,
12,
2867,
3410,
16,
2254,
5034,
3844,
16,
2254,
5034,
2744,
1854,
13,
7010,
3639,
3903,
288,
203,
5411,
2583,
12,
3576,
18,
15330,
422,
1758,
12,
20,
92,
11149,
69,
5540,
15259,
4331,
6669,
8204,
4848,
... |
pragma ton-solidity >=0.50.0;
library Base58 {
uint8 constant PREFIX_edsig = 0;
uint8 constant PREFIX_tz1 = 1;
uint8 constant PREFIX_tz2 = 2;
uint8 constant PREFIX_tz3 = 3;
uint8 constant PREFIX_edpk = 4;
function encode(bytes source) internal pure returns (bytes) {
if (source.length =... | ERROR: type should be string, got " https:pytezos.baking-bad.org/tutorials/01.html#base58-encoding" | function b58encode(bytes source, uint8 prefix) internal pure returns (string) {
bytes src = "";
src.append(source);
return string(encode_check(src));
}
| 1,062,855 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
2074,
736,
94,
538,
18,
70,
6159,
17,
8759,
18,
3341,
19,
88,
22378,
87,
19,
1611,
18,
2620,
7,
1969,
8204,
17,
5999,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
324,
8204,
3015,
12,
3890,
1084,
16,
2254,
28,
1633,
13,
2713,
16618,
1135,
261,
1080,
13,
288,
203,
3639,
1731,
1705,
273,
1408,
31,
203,
203,
3639,
1705,
18,
6923,
12,
3168,
1769,
203,
3639,
327,
533,
12,
3015,
67,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
pragma experimental ABIEncoderV2;
contract ModelStorage {
address[] private _tokens;
address private _forge;
/**
* @dev This modifier allows only "Forge" to be executed.
*/
modifier OnlyForge() {
require(_forge == msg.sender, "MO... | * @dev Add a 'token' ERC20 to be used in the model./ | function addToken(address token_) internal returns (bool) {
for (uint256 i = 0; i < tokens().length; i++) {
if (token(i) == token_) {
return false;
}
}
_tokens.push(token_);
return true;
}
| 5,424,617 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1436,
279,
296,
2316,
11,
4232,
39,
3462,
358,
506,
1399,
316,
326,
938,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
1345,
12,
2867,
1147,
67,
13,
2713,
1135,
261,
6430,
13,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
2430,
7675,
2469,
31,
277,
27245,
288,
203,
5411,
309,
261,
2316,
12,
77,
13,
422,
11... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is ... | * @dev Internal function to invoke `onERC721Received` on a target address The call is not executed if the target address is not a contract @param _from address representing the previous owner of the given token ID @param _to target address that will receive the tokens @param _tokenId uint256 ID of the token to be trans... | function checkAndCallSafeTransfer(
address _from,
address _to,
uint256 _tokenId,
bytes _data
)
internal
returns (bool)
{
if (!_to.isContract()) {
return true;
}
bytes4 retval = ERC721Receiver(_to).onERC721Received(
... | 7,656,606 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
4356,
1375,
265,
654,
39,
27,
5340,
8872,
68,
603,
279,
1018,
1758,
1021,
745,
353,
486,
7120,
309,
326,
1018,
1758,
353,
486,
279,
6835,
632,
891,
389,
2080,
1758,
5123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30970,
1477,
9890,
5912,
12,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
2316,
548,
16,
203,
3639,
1731,
389,
892,
203,
565,
262,
203,
3639,
2713,
203,
3639,
1135,
261,
6... |
./full_match/80001/0xd344927F64197a5f7054847E8379F2316EDAa5b3/sources/contracts/DutchAuction/nft_auction.sol | uint256 PlayAuction;uint AuctionPaused; | struct Auction {
uint256 tokenId;
uint256 minprice;
uint256 start_DT;
uint256 end_DT;
uint256 AuctionPriceUpdated;
}
uint256 startingPrice;
IERC721 public nftContract;
uint256 public AuctionStart_DT;
uint256 public AuctionEnd_DT;
ui... | 5,622,326 | [
1,
4625,
348,
7953,
560,
30,
2254,
5034,
19592,
37,
4062,
31,
11890,
432,
4062,
28590,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1958,
432,
4062,
288,
203,
1850,
203,
3639,
2254,
5034,
1147,
548,
31,
203,
3639,
2254,
5034,
1131,
8694,
31,
203,
3639,
2254,
5034,
787,
67,
9081,
31,
203,
3639,
2254,
5034,
679,
67,
9081,
31,
203,
3639,
2254,
5034,
432,
... |
./partial_match/4/0xFFCAaE2a77254B4cd72356B27377408ab31155b4/sources/CallMarket.sol | * @dev Adds the incoming bid orders to its right position in the list/ we only exit this loop if we find the position to insert our data; | function insertBid(address sender, uint256 price, uint256 volume, uint256 auxprice) external
{
OrderStruct memory current = buyList[buyHead];
{
current = buyList[current.next];
}
{
buyListAddHead(sender, price, volume, auxprice);
}
{
... | 8,538,613 | [
1,
4625,
348,
7953,
560,
30,
380,
282,
632,
5206,
15605,
326,
6935,
9949,
11077,
358,
2097,
2145,
1754,
316,
326,
666,
19,
732,
1338,
2427,
333,
2798,
309,
732,
1104,
326,
1754,
358,
2243,
3134,
501,
31,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2243,
17763,
12,
2867,
5793,
16,
2254,
5034,
6205,
16,
2254,
5034,
3940,
16,
2254,
5034,
9397,
8694,
13,
3903,
7010,
565,
288,
203,
4202,
4347,
3823,
3778,
783,
273,
30143,
682,
63,
70,
9835,
1414,
15533,
203,
3639,
288... |
// Правила для изменения достоверности распознавания конкретных словоформ в русском словаре.
// Обычное предназначение этих правил - изменить равновероятные распознавания
// омонимичных форм жаль(безличный глагол)>жаль(императив),
// либо повлиять на выбор многословных форм в противовес
// выбору отдельных слов: [сле... | Экую несуразицу плетет этот мужик.
| wordforms_score экой { прилагательное }=-1 | 7,303,298 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
260,
145,
123,
146,
230,
146,
241,
225,
145,
126,
145,
118,
146,
228,
146,
230,
146,
227,
145,
113,
145,
120,
145,
121,
146,
233,
146,
230,
225,
145,
128,
145,
124,
145,
118,
146,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
1095,
9741,
67,
6355,
225,
146,
240,
145,
123,
145,
127,
145,
122,
288,
225,
145,
128,
146,
227,
145,
121,
145,
124,
145,
113,
145,
116,
145,
113,
146,
229,
145,
118,
145,
124,
146,
239,
145,
126,
145,
127,
145,
118,
289,
2... |
./full_match/4/0x9C880cfcAD3f25321275D06433827CEB4b3C1867/sources/Address.sol | * @dev Collection of functions related to the address type/ | library Address {
pragma solidity 0.8.4;
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
function isContract(address account) internal view returns (bool) {
u... | 12,382,375 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2200,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
5267,
288,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
24,
31,
203,
565,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
203,
3639,
2254,
5034,
963,
31,
203,
3639,
19931,
288,
203,
5411,
... |
./full_match/80001/0x2D9EaAb9C33d3389C344d4B7Fe813c08194cC3A5/sources/contracts/Contract.sol | msg is actually the global variable in solidity with various available methods
| uint256 amt = msg.value; | 5,613,309 | [
1,
4625,
348,
7953,
560,
30,
1234,
353,
6013,
326,
2552,
2190,
316,
18035,
560,
598,
11191,
2319,
2590,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
25123,
273,
1234,
18,
1132,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import {PercentageMath} from '../protocol/libraries/math/PercentageMath.sol';
import {SafeMath} from '../dependencies/openzeppelin/contracts/SafeMath.sol';
import {IERC20} from '../dependencies/openzeppelin/contracts/IERC20.... | * @dev Validates the liquidation action @param collateralReserve The reserve data of the collateral @param principalReserve The reserve data of the principal @param userConfig The user configuration @param userHealthFactor The user's health factor @param userStableDebt Total stable debt balance of the user @param userV... | function validateLiquidationCall(
DataTypes.ReserveData storage collateralReserve,
DataTypes.ReserveData storage principalReserve,
DataTypes.UserConfigurationMap storage userConfig,
uint256 userHealthFactor,
uint256 userStableDebt,
uint256 userVariableDebt
) internal view returns (uint256, s... | 68,335 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2364,
815,
326,
4501,
26595,
367,
1301,
632,
891,
4508,
2045,
287,
607,
6527,
1021,
20501,
501,
434,
326,
4508,
2045,
287,
632,
891,
8897,
607,
6527,
1021,
20501,
501,
434,
326,
8897,
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,
225,
445,
1954,
48,
18988,
350,
367,
1477,
12,
203,
565,
1910,
2016,
18,
607,
6527,
751,
2502,
4508,
2045,
287,
607,
6527,
16,
203,
565,
1910,
2016,
18,
607,
6527,
751,
2502,
8897,
607,
6527,
16,
203,
565,
1910,
2016,
18,
1299,... |
./partial_match/1/0x842738637f84b4Dac335b832d9890cf8e11DA214/sources/StakingDFL.sol | * @notice Approve `spender` to transfer up to `amount` from `src` @dev This will overwrite the approval amount for `spender` @param spender The address of the account which may transfer tokens @param amount The number of tokens that are approved (-1 means infinite) @return Whether or not the approval succeeded/ | function approve(address spender, uint256 amount) external returns (bool) {
require(spender != address(0), "cannot approve to the zero address");
address src = msg.sender;
transferAllowances[src][spender] = amount;
emit Approval(src, spender, amount);
return true;
}
| 2,804,088 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1716,
685,
537,
1375,
87,
1302,
264,
68,
358,
7412,
731,
358,
1375,
8949,
68,
628,
1375,
4816,
68,
632,
5206,
1220,
903,
6156,
326,
23556,
3844,
364,
1375,
87,
1302,
264,
68,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
5034,
3844,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
87,
1302,
264,
480,
1758,
12,
20,
3631,
315,
12892,
6617,
537,
358,
326,
3634,
1758,
8863,
203,
3639,
175... |
./partial_match/1/0xF13e21653AEB763595D5E4baA1dC115689Da49b9/sources/contracts/core/impl/ExchangeV3.sol | -- Initialization -- | function initialize(
address _loopring,
address _owner,
bytes32 _genesisMerkleRoot,
bytes32 _genesisMerkleAssetRoot
)
external
override
nonReentrant
onlyWhenUninitialized
{
require(address(0) != _owner, "ZERO_ADDRESS");
owne... | 4,025,292 | [
1,
4625,
348,
7953,
560,
30,
225,
1493,
26586,
1493,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
203,
3639,
1758,
389,
6498,
8022,
16,
203,
3639,
1758,
389,
8443,
16,
203,
3639,
1731,
1578,
389,
4507,
16786,
8478,
15609,
2375,
16,
203,
3639,
1731,
1578,
389,
4507,
16786,
8478,
15609,
6672,
2375,
203,
3639,
... |
./full_match/5/0x559385E8728b7d8C98B3910e5531D8C49F861c31/sources/project:/contracts/main/MentaportRegistry.sol | * @notice Get a project data @param _projectId Project Id to fetch @return total mints in the project/ | function getProjectTotalMints(
uint256 _projectId
)
public
view
returns (uint256)
{
return projects[_projectId].totalMinted;
}
| 1,916,317 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
279,
1984,
501,
632,
891,
389,
4406,
548,
5420,
3124,
358,
2158,
632,
2463,
2078,
312,
28142,
316,
326,
1984,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11080,
5269,
49,
28142,
12,
203,
3639,
2254,
5034,
389,
4406,
548,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
10137,
63,
67,
4406,
548,
8009,
... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'PawCoin' token contract
//
// Deployed to : 0x2ea5B77B8ca4598715955ad6eF80888b97d64882
// Symbol : AHLV
// Name : PawCoin
// Total supply: 100000000
// Decimals : 18
//
// Enjoy.
//
// (c... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract PawCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
function PawCoin() public {
symbol = "AHLV";
... | 15,357,058 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
453,
2219,
27055,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,
... |
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usuall... | * @dev returns pools whitelist @return pools whitelist/ | function poolWhitelist() external view override returns (address[] memory) {
uint256 length = _poolWhitelist.length();
address[] memory list = new address[](length);
for (uint256 i = 0; i < length; i++) {
list[i] = _poolWhitelist.at(i);
}
return list;
}
| 1,441,975 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1135,
16000,
10734,
632,
2463,
16000,
10734,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2845,
18927,
1435,
3903,
1476,
3849,
1135,
261,
2867,
8526,
3778,
13,
288,
203,
3639,
2254,
5034,
769,
273,
389,
6011,
18927,
18,
2469,
5621,
203,
3639,
1758,
8526,
3778,
666,
273,
394,
1758,
8526,
12,
2469,
1769,
203,
... |
// SPDX-License-Identifier: MIT
// This is a modified version of Beefy Finance's BeefyVaultV6.sol:
// https://github.com/beefyfinance/beefy-contracts/blob/b96151c4e7badc6ac721b35249c11d31fd527710/contracts/BIFI/vaults/BeefyVaultV6.sol
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
i... | * @dev Function to exit the system. The vault will withdraw the required tokens from the strategy and pay up the token holder. A proportional number of IOU tokens are burned in the process./ | function withdraw(uint256 _shares) public {
uint256 r = (balance().mul(_shares)).div(totalSupply());
_burn(msg.sender, _shares);
uint b = want().balanceOf(address(this));
if (b < r) {
uint _withdraw = r.sub(b);
strategy.withdraw(_withdraw);
uint _... | 12,974,300 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
2427,
326,
2619,
18,
1021,
9229,
903,
598,
9446,
326,
1931,
2430,
628,
326,
6252,
471,
8843,
731,
326,
1147,
10438,
18,
432,
23279,
287,
1300,
434,
1665,
57,
2430,
854,
18305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
389,
30720,
13,
1071,
288,
203,
3639,
2254,
5034,
436,
273,
261,
12296,
7675,
16411,
24899,
30720,
13,
2934,
2892,
12,
4963,
3088,
1283,
10663,
203,
3639,
389,
70,
321,
12,
3576,
18,
15330,
1... |
pragma solidity ^0.5.9;
import "./Standard/ERC20.sol";
import "./Standard/ERC165.sol";
import "./Util/SafeMath.sol";
contract DelightItem is ERC20, ERC165 {
using SafeMath for uint;
// The two addresses below are the addresses of the trusted smart contract, and don't need to be allowed.
// 아래 두 주소는 신뢰하는 스마트 계약의 ... | ERC20: The allowed spender sends the "amount" of tokens from the "from" to the "to".ERC20: 허락된 spender가 from으로부터 amount만큼의 토큰을 to에게 전송합니다. Blocks misuse of an address. 주소 오용 차단 Delight and DPlay trading post can transmit any tokens. Delight와 DPlay 교역소는 모든 토큰을 전송할 수 있습니다. | function transferFrom(address from, address to, uint amount) external returns (bool success) {
require(checkAddressMisused(to) != true);
require(amount <= balances[from]);
require(
msg.sender == delightItemManager ||
msg.sender == dplayTradingPost ||
amount <= allowed[from][msg.sender]
);... | 1,822,986 | [
1,
4625,
348,
7953,
560,
30,
4232,
39,
3462,
30,
1021,
2935,
17571,
264,
9573,
326,
315,
8949,
6,
434,
2430,
628,
326,
315,
2080,
6,
358,
326,
315,
869,
9654,
654,
39,
3462,
30,
225,
174,
250,
235,
172,
256,
126,
172,
243,
255,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
3844,
13,
3903,
1135,
261,
6430,
2216,
13,
288,
203,
1082,
203,
202,
202,
6528,
12,
1893,
1887,
11729,
3668,
12,
869,
13,
480,
638,
1769,
203,
1082,
203,
202,
202,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.5.16;
import "./JCollateralCapErc20.sol";
import "./JErc20.sol";
import "./Joetroller.sol";
interface CERC20Interface {
function underlying() external view returns (address);
}
contract FlashloanLender is ERC3156FlashLenderInterface {
/**
* @noti... | * @notice underlying token to jToken mapping/* @notice C.R.E.A.M. joetroller address/* @dev Throws if called by any account other than the owner./ | modifier onlyOwner() {
require(msg.sender == owner, "not owner");
_;
}
| 1,041,960 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
6808,
1147,
358,
525,
1345,
2874,
20308,
632,
20392,
385,
18,
54,
18,
41,
18,
37,
18,
49,
18,
525,
83,
278,
1539,
1758,
20308,
632,
5206,
22435,
309,
2566,
635,
1281,
2236,
1308,
2353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9606,
1338,
5541,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
16,
315,
902,
3410,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev R... | Accrued protocol fees in terms of token0 | uint256 public protocolFees0;
| 9,506 | [
1,
4625,
348,
7953,
560,
30,
225,
15980,
86,
5957,
1771,
1656,
281,
316,
6548,
434,
1147,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
1771,
2954,
281,
20,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import "../balancer/BFactory.sol";
import "../libraries/SafeMathUint256.sol";
import "./AbstractMarketFactoryV3.sol";
import "../balancer/BNum.sol";
contract AMMFactory is BNum {
using SafeMathUint256 for uint256;
uint25... | Returns an array of token values for the outcomes of the market, relative to the first outcome. So the first outcome is 10**18 and all others are higher or lower. Prices can be derived due to the fact that the total of all outcome shares equals one collateral, possibly with a scaling factor, Pool does not exist. Do no... | function tokenRatios(AbstractMarketFactoryV3 _marketFactory, uint256 _marketId)
external
view
returns (uint256[] memory)
{
BPool _pool = pools[address(_marketFactory)][_marketId];
if (_pool == BPool(0)) {
return new uint256[](0);
}
AbstractMar... | 12,875,583 | [
1,
4625,
348,
7953,
560,
30,
225,
2860,
392,
526,
434,
1147,
924,
364,
326,
29867,
434,
326,
13667,
16,
3632,
358,
326,
1122,
12884,
18,
6155,
326,
1122,
12884,
353,
1728,
636,
2643,
471,
777,
10654,
854,
10478,
578,
2612,
18,
2301,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1147,
29635,
7441,
12,
7469,
3882,
278,
1733,
58,
23,
389,
27151,
1733,
16,
2254,
5034,
389,
27151,
548,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
8526,
3778,
13,
203,
565,
288,
203,
3639,... |
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimiza... | @dev withdraw DKL balance from owner to wallet input @param _walletAddress is wallet address of receiver DKL the sold tokens must be left transfer dekla to receiver notify event to receiver | function withdrawDekla(address _withdrawWallet, bytes _sig) external validToken onlyCLevel {
bytes32 hashedTx = withdrawDeklaHashing(_withdrawWallet, nonces[msg.sender]);
require(signedCLevel(hashedTx, _sig));
nonces[msg.sender]++;
uint256 balance = token.balanceOf(this);
r... | 938,833 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
598,
9446,
31176,
48,
11013,
628,
3410,
358,
9230,
810,
632,
891,
389,
19177,
1887,
353,
9230,
1758,
434,
5971,
31176,
48,
326,
272,
1673,
2430,
1297,
506,
2002,
7412,
443,
79,
11821,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
758,
79,
11821,
12,
2867,
389,
1918,
9446,
16936,
16,
1731,
389,
7340,
13,
3903,
923,
1345,
1338,
39,
2355,
288,
203,
3639,
1731,
1578,
14242,
4188,
273,
598,
9446,
758,
79,
11821,
2310,
310,
24899,
1918,
944... |
pragma solidity ^0.5.0;
// It's important to avoid vulnerabilities due to numeric overflow bugs
// OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs
// More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmetic/
impor... | Allow SafeMath functions to be called for all uint256 types (similar to "prototype" in Javascript)
| using SafeMath for uint8; | 1,806,591 | [
1,
4625,
348,
7953,
560,
30,
225,
7852,
14060,
10477,
4186,
358,
506,
2566,
364,
777,
2254,
5034,
1953,
261,
22985,
358,
315,
18541,
6,
316,
22326,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1450,
14060,
10477,
364,
2254,
28,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42161/0x517f963c9E4f51663f3f7443ee45fe78715E3171/sources/contracts/MyToken.sol | Set the contract owner address to 0x8F145aa77c707Ba657A8F7f958c010880F7Ff1f2 during deployment | function initialize() public initializer {
__ERC20_init("AiHQianLan", "HQL");
__ERC20Pausable_init();
__Ownable_init();
__UUPSUpgradeable_init();
_mint(_msgSender(), TOTAL_SUPPLY - BUG_BOUNTY_SUPPLY - TEAM_SUPPLY - FOUNDATION_SUPPLY);
_mint(BUG_BOUNTY_PROGRAM_ADDRESS... | 16,307,464 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
6835,
3410,
1758,
358,
374,
92,
28,
42,
30379,
7598,
4700,
71,
7301,
27,
38,
69,
9222,
27,
37,
28,
42,
27,
74,
29,
8204,
71,
1611,
6840,
3672,
42,
27,
42,
74,
21,
74,
22,
4982,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
1435,
1071,
12562,
288,
203,
3639,
1001,
654,
39,
3462,
67,
2738,
2932,
37,
77,
44,
53,
2779,
48,
304,
3113,
315,
44,
2024,
8863,
203,
3639,
1001,
654,
39,
3462,
16507,
16665,
67,
2738,
5621,
203,
3639,
1001,
54... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract VintageShop is ERC721URIStorage, Ownable {
using SafeMath fo... | * @dev Admin verifies a user by assigning isSeller verified to a seller @param _userAddress address of user to be assigned as seller/ | function assignAsSeller(address _userAddress) isAdmin(msg.sender) external {
if(users[_userAddress].isSeller){
User storage user = users[_userAddress];
user.isSellerVerified = true;
emit SellerVerified("seller verified successfully", _userAddress);
}
else{
revert("user is not a se... | 12,592,705 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7807,
20761,
279,
729,
635,
28639,
353,
22050,
13808,
358,
279,
29804,
632,
891,
389,
1355,
1887,
1758,
434,
729,
358,
506,
6958,
487,
29804,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2683,
1463,
22050,
12,
2867,
389,
1355,
1887,
13,
23467,
12,
3576,
18,
15330,
13,
3903,
288,
203,
565,
309,
12,
5577,
63,
67,
1355,
1887,
8009,
291,
22050,
15329,
203,
1377,
2177,
2502,
729,
273,
3677,
63,
67,
1355,
1... |
// "SPDX-License-Identifier: MIT"
pragma solidity ^0.7.4;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import './Hash.sol';
// interface IERC20 {
// function transfer(address recipient, uint256 amount) external returns (bool);
// function transferFrom(address sender, address recipient, uint256 am... | solhint-disable-next-line no-inline-assembly | function _delegate(address implementation) internal {
assembly {
calldatacopy(0, 0, calldatasize())
let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
switch result
}
}
| 14,103,929 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
10047,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
22216,
12,
2867,
4471,
13,
2713,
288,
203,
3639,
19931,
288,
203,
5411,
745,
892,
3530,
12,
20,
16,
374,
16,
745,
13178,
554,
10756,
203,
5411,
2231,
563,
519,
7152,
1991,
12,
31604,
9334,
4471,
16,
374,
16,
745,... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.2;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceO... | Seven iterations should be enough
| r = (r + x / r) >> 1; | 322,489 | [
1,
4625,
348,
7953,
560,
30,
225,
3265,
3995,
11316,
1410,
506,
7304,
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,
436,
273,
261,
86,
397,
619,
342,
436,
13,
1671,
404,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.6.4;
pragma experimental ABIEncoderV2;
import "../curation/ICuration.sol";
import "../epochs/IEpochManager.sol";
import "../governance/Governed.sol";
import "../token/IGraphToken.sol";
import "../upgrades/GraphProxy.sol";
import "../upgrades/GraphUpgradeable.sol";
import "./IStaking.sol";
import ".... | * @dev Withdraw indexer tokens once the thawing period has passed./ Get tokens available for withdraw and update balance Return tokens to the indexer | function withdraw() external override {
address indexer = msg.sender;
Stakes.Indexer storage indexerStake = stakes[indexer];
uint256 tokensToWithdraw = indexerStake.withdrawTokens();
require(tokensToWithdraw > 0, "Staking: no tokens available to withdraw");
require(token.tr... | 5,377,315 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3423,
9446,
12635,
2430,
3647,
326,
286,
2219,
310,
3879,
711,
2275,
18,
19,
968,
2430,
2319,
364,
598,
9446,
471,
1089,
11013,
2000,
2430,
358,
326,
12635,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1435,
3903,
3849,
288,
203,
3639,
1758,
12635,
273,
1234,
18,
15330,
31,
203,
3639,
934,
3223,
18,
20877,
2502,
12635,
510,
911,
273,
384,
3223,
63,
24541,
15533,
203,
203,
3639,
2254,
5034,
2430,
774,
1190,
... |
./full_match/80001/0xe3cf301c3051E32806dcBCe195dB1426565f87Cf/sources/spai-nft-model-erc1155.sol | * Create a Chainlink request to retrieve API response, find the target data which is located in a list/ Set the URL to perform the GET request on Set the request HTTP path req.add("get", string(abi.encodePacked(_inferenceBaseURI, modelId, "?i=", input))); Required parameter for Chainlink to know how to parse the respon... | function _spiderwebPredictionRequest(uint256 modelId, string memory input) private returns (bytes32 requestId) {
Chainlink.Request memory req = buildChainlinkRequest(
jobId,
address(this),
this.linkFulfillPredictionRequest.selector
);
string memory target... | 9,469,308 | [
1,
4625,
348,
7953,
560,
30,
380,
1788,
279,
7824,
1232,
590,
358,
4614,
1491,
766,
16,
1104,
326,
1018,
501,
1492,
353,
13801,
316,
279,
666,
19,
1000,
326,
1976,
358,
3073,
326,
4978,
590,
603,
1000,
326,
590,
2239,
589,
1111,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1752,
3585,
4875,
20766,
691,
12,
11890,
5034,
25468,
16,
533,
3778,
810,
13,
3238,
1135,
261,
3890,
1578,
14459,
13,
288,
203,
3639,
7824,
1232,
18,
691,
3778,
1111,
273,
1361,
3893,
1232,
691,
12,
203,
5411,
1384... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// From Open Zeppelin contracts: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol
/**
* @dev String operations.
*/
library LibStrings {
/**
* @dev Converts a `uint256` to its ASCII `string` representation.... | * @dev Converts a `uint256` to its ASCII `string` representation./ Inspired by OraclizeAPI's implementation - MIT licence https:github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol | function strWithUint(string memory _str, uint256 value) internal pure returns (string memory) {
bytes memory buffer;
unchecked {
if (value == 0) {
return string(abi.encodePacked(_str, "0"));
}
uint256 temp = value;
uint256 digits;
... | 975,450 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20377,
279,
1375,
11890,
5034,
68,
358,
2097,
11768,
1375,
1080,
68,
4335,
18,
19,
657,
1752,
2921,
635,
531,
354,
830,
554,
2557,
1807,
4471,
300,
490,
1285,
328,
335,
802,
2333,
30,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
609,
1190,
5487,
12,
1080,
3778,
389,
701,
16,
2254,
5034,
460,
13,
2713,
16618,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
1731,
3778,
1613,
31,
203,
3639,
22893,
288,
203,
5411,
309,
261,
1132,
422,
374,
13,
288,
20... |
./full_match/42/0xe0Ab69528526a07c03335B64487cFD5fD7273501/sources/index.sol | @dev Factory ensures that the tokens are sorted. | constructor(bytes memory _deployData, address _masterDeployer) {
(address[] memory _tokens, uint136[] memory _weights, uint256 _swapFee) = abi.decode(
_deployData,
(address[], uint136[], uint256)
);
require(_tokens.length == _weights.length, "INVALID_ARRAYS");
... | 9,572,382 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
7822,
11932,
716,
326,
2430,
854,
3115,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
3890,
3778,
389,
12411,
751,
16,
1758,
389,
7525,
10015,
264,
13,
288,
203,
3639,
261,
2867,
8526,
3778,
389,
7860,
16,
2254,
26959,
8526,
3778,
389,
9727,
16,
2254,
5034,
389,
22270,
14667,
13,
273,
24126,
18,
392... |
//SPDX-License-Identifier: UNLICENSED
// Solidity files have to start with this pragma.
// It will be used by the Solidity compiler to validate its version.
pragma solidity >=0.5.0 <0.9.0;
// We import this library to be able to use console.log
import "hardhat/console.sol";
/* EIP-20: ERC-20 Token Standard
* https:... | ERC-20: Standard Functions ERC-20: Standard Events | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address _owner) external view returns (uint256 balance);
function transfer(address _to, uint256 _value)
external
returns (bool success);
function transferFrom(
address _from,
... | 12,543,202 | [
1,
4625,
348,
7953,
560,
30,
225,
4232,
39,
17,
3462,
30,
8263,
15486,
4232,
39,
17,
3462,
30,
8263,
9043,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
389,
8443,
13,
3903,
1476,
1135,
261,
11890,
5034,
11013,
1769,
203,
203,
5... |
./partial_match/1/0x2bac101F9769AEfF63c63EFfB4189152e833649F/sources/FraxswapPair.sol | @notice convenience function to execute virtual orders. Note that this already happensbefore most interactions with the AMM blockTimestamp is valid then execute the long term orders otherwise noop | function executeVirtualOrders(uint256 blockTimestamp) public override lock {
if(longTermOrders.lastVirtualOrderTimestamp < blockTimestamp && blockTimestamp <= block.timestamp){
executeVirtualOrdersInternal(blockTimestamp);
}
}
| 9,269,220 | [
1,
4625,
348,
7953,
560,
30,
632,
20392,
13553,
445,
358,
1836,
5024,
11077,
18,
3609,
716,
333,
1818,
10555,
5771,
4486,
23877,
598,
326,
432,
8206,
1203,
4921,
353,
923,
1508,
1836,
326,
1525,
2481,
11077,
3541,
17065,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
1836,
6466,
16528,
12,
11890,
5034,
1203,
4921,
13,
1071,
3849,
2176,
288,
203,
3639,
309,
12,
5748,
4065,
16528,
18,
2722,
6466,
2448,
4921,
411,
1203,
4921,
597,
1203,
4921,
1648,
1203,
18,
5508,
15329,
203,
5411,
1836,... |
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint2... | * @dev See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`./ | function transfer(address recipient, uint256 amount) public returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| 2,801 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
3462,
17,
13866,
5496,
29076,
30,
300,
1375,
20367,
68,
2780,
506,
326,
3634,
1758,
18,
300,
326,
4894,
1297,
1240,
279,
11013,
434,
622,
4520,
1375,
8949,
8338,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
8027,
16,
2254,
5034,
3844,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
389,
13866,
24899,
3576,
12021,
9334,
8027,
16,
3844,
1769,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-... |
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address p... | * @title Interface for contracts conforming to ERC-721/ | contract ERC721Interface {
function ownerOf(uint256 _tokenId) public view returns (address _owner);
function transferFrom(address _from, address _to, uint256 _tokenId) public;
function supportsInterface(bytes4) public view returns (bool);
}
| 5,541,565 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
6682,
364,
20092,
20156,
310,
358,
4232,
39,
17,
27,
5340,
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,
16351,
4232,
39,
27,
5340,
1358,
288,
203,
565,
445,
3410,
951,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
1135,
261,
2867,
389,
8443,
1769,
203,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
50... |
./full_match/8453/0xf9cFB8a62f50e10AdDE5Aa888B44cF01C5957055/sources/contracts/libraries/helpers/Errors.sol | 'There is not enough collateral to cover a new borrow'
| string internal constant VL_OUT_OF_CAPACITY = "10"; | 11,549,324 | [
1,
4625,
348,
7953,
560,
30,
225,
296,
9828,
353,
486,
7304,
4508,
2045,
287,
358,
5590,
279,
394,
29759,
11,
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,
565,
533,
2713,
5381,
776,
48,
67,
5069,
67,
3932,
67,
17296,
30041,
273,
315,
2163,
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,... |
pragma solidity 0.6.8;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABLES... | * @dev Modifier that requires the "ContractOwner" account to be the function caller/ | modifier requireContractOwner() {
require(contractOwner == msg.sender, "Caller is not contract owner");
_;
}
| 14,054,282 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12832,
716,
4991,
326,
315,
8924,
5541,
6,
2236,
358,
506,
326,
445,
4894,
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,
... | [
1,
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,
2583,
8924,
5541,
1435,
288,
203,
3639,
2583,
12,
16351,
5541,
422,
1234,
18,
15330,
16,
315,
11095,
353,
486,
6835,
3410,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.5.3;
import "./ERC20Basic.sol";
import "./SafeMath.sol";
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev to... | * @title Standard ERC20 token @dev Implementation of the basic standard token./ | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][... | 12,979,207 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
8263,
4232,
39,
3462,
1147,
632,
5206,
25379,
434,
326,
5337,
4529,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8263,
1345,
353,
4232,
39,
3462,
16,
7651,
1345,
288,
203,
203,
225,
2874,
261,
2867,
516,
2874,
261,
2867,
516,
2254,
5034,
3719,
2713,
2935,
31,
203,
203,
203,
225,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
... |
./full_match/4/0x6d20CBCEF3D856Cdf2f7b67935D283cDde7A5ADE/sources/ceshi721.sol | * @dev Destroys `tokenId`. The approval is cleared when the token is burned. Requirements: - `tokenId` must exist. Emits a {Transfer} event./ | function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
address from = address(uint160(prevOwnershipPacked));
if (approvalCheck) {
bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
... | 805,036 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
2316,
548,
8338,
1021,
23556,
353,
16054,
1347,
326,
1147,
353,
18305,
329,
18,
29076,
30,
300,
1375,
2316,
548,
68,
1297,
1005,
18,
7377,
1282,
279,
288,
5912,
97,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
389,
70,
321,
12,
11890,
5034,
1147,
548,
16,
1426,
23556,
1564,
13,
2713,
5024,
288,
203,
3639,
2254,
5034,
2807,
5460,
12565,
4420,
329,
273,
389,
2920,
329,
5460,
12565,
951,
12,
2316,
548,
1769,
203,
203,
3639,
1758... |
pragma solidity 0.4.18;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, ... | @title Interface for contract that receives verification results/ External functions | contract IVerifiable {
function receiveVerification(uint256 _jobId, uint256 _claimId, uint256 _segmentNumber, bool _result) external;
}
| 6,074,828 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
6682,
364,
6835,
716,
17024,
11805,
1686,
19,
11352,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
16351,
467,
3945,
8424,
288,
203,
565,
445,
6798,
13483,
12,
11890,
5034,
389,
4688,
548,
16,
2254,
5034,
389,
14784,
548,
16,
2254,
5034,
389,
9273,
1854,
16,
1426,
389,
2088,
13,
3903,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-... |
./full_match/97/0x5290FF14b12B3b569502D26BE762bA21E42E4435/sources/contracts/ZamzamDAO.sol | * @dev Emitted when a donation is made to projectId `projectId` by a donor `donor` by calling {donate}. `tokenAmount` is the amount of tokens donated./ | event Donation(uint256 indexed projectId, address indexed donor, uint256 tokenAmount);
| 3,265,160 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
512,
7948,
1347,
279,
2727,
367,
353,
7165,
358,
9882,
1375,
4406,
548,
68,
635,
279,
2727,
280,
1375,
19752,
280,
68,
635,
4440,
288,
19752,
340,
5496,
1375,
2316,
6275,
68,
353,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
871,
7615,
367,
12,
11890,
5034,
8808,
9882,
16,
1758,
8808,
2727,
280,
16,
2254,
5034,
1147,
6275,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity 0.5.17;
import "../libraries/operator/GroupSelection.sol";
contract GroupSelectionStub {
using GroupSelection for GroupSelection.Storage;
GroupSelection.Storage groupSelection;
constructor(uint256 groupSize) public {
groupSelection.groupSize = groupSize;
}
function addTick... | * @dev Gets an index of the highest ticket value (tail)./ | function getTail() public view returns (uint256) {
return groupSelection.tail;
}
| 2,477,538 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
392,
770,
434,
326,
9742,
9322,
460,
261,
13101,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3181,
671,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
1041,
6233,
18,
13101,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.25;
contract FOMOEvents {
// fired whenever a player registers a name
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affilia... | round timer starts at this
| uint256 public rndInit_ = 60 minutes; | 12,594,767 | [
1,
4625,
348,
7953,
560,
30,
225,
3643,
5441,
2542,
622,
333,
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,
565,
2254,
5034,
1071,
20391,
2570,
67,
273,
4752,
6824,
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,
... |
pragma solidity ^0.4.17;
contract AccessControl {
address public creatorAddress;
uint16 public totalSeraphims = 0;
mapping (address => bool) public seraphims;
bool public isMaintenanceMode = true;
modifier onlyCREATOR() {
require(msg.sender == creatorAddress);
_;
}
modifi... | The reserved balance is the total balance outstanding on all open leaderboards.We keep track of this figure to prevent the developers from pulling out money currently pledged | uint public contractReservedBalance;
| 113,213 | [
1,
4625,
348,
7953,
560,
30,
1021,
8735,
11013,
353,
326,
2078,
11013,
20974,
603,
777,
1696,
30052,
87,
18,
3218,
3455,
3298,
434,
333,
7837,
358,
5309,
326,
21701,
628,
6892,
310,
596,
15601,
4551,
293,
1259,
2423,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
6835,
10435,
13937,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
interface IRouter ... | 1e18 == 100% of share | function emergencyWithdraw() external onlyVault {
if (mode) withdrawWBTCETH(1e18, 0);
else withdrawUSDCETH(1e18, 0);
uint WETHAmt = WETH.balanceOf(address(this));
WETH.safeTransfer(vault, WETHAmt);
watermark = 0;
emit EmergencyWithdraw(WETHAmt);
}
| 5,716,870 | [
1,
4625,
348,
7953,
560,
30,
225,
404,
73,
2643,
422,
2130,
9,
434,
7433,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
801,
24530,
1190,
9446,
1435,
3903,
1338,
12003,
288,
203,
3639,
309,
261,
3188,
13,
598,
9446,
59,
38,
56,
1441,
2455,
12,
21,
73,
2643,
16,
374,
1769,
203,
3639,
469,
598,
9446,
3378,
40,
1441,
2455,
12,
21,
73,
2... |
./full_match/1/0x959eCbacc9CfAa5BA63406fDe9A238895B30257d/sources/browser/ValueLiquid-newcore/StakePoolCreator.sol | Safe reward transfer, just in case if rounding error causes pool to not have enough reward amount | function getReward(uint8 _pid, address _account) public override {
updateReward(_pid);
UserInfo storage user = userInfo[_account];
RewardPoolInfo storage rewardPool = rewardPoolInfo[_pid];
uint256 _pendingReward = user.amount.mul(rewardPool.accRewardPerShare).div(1e18).sub(user.rewar... | 3,865,732 | [
1,
4625,
348,
7953,
560,
30,
225,
14060,
19890,
7412,
16,
2537,
316,
648,
309,
13885,
555,
14119,
2845,
358,
486,
1240,
7304,
19890,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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,
4170,
359,
1060,
12,
11890,
28,
389,
6610,
16,
1758,
389,
4631,
13,
1071,
3849,
288,
203,
3639,
1089,
17631,
1060,
24899,
6610,
1769,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
4631,
15533,
203,
3639,
534,
359,
10... |
/**
*Submitted for verification at Etherscan.io on 2022-03-04
*/
// File: contracts/ThecosomataETH.sol
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s ... | Approve for max capacity | ) {
require(_BTRFLY != address(0), "Invalid BTRFLY address");
BTRFLY = _BTRFLY;
require(_WETH != address(0), "Invalid WETH address");
WETH = _WETH;
require(_CURVEPOOL != address(0), "Invalid POOL address");
CURVEPOOL = _CURVEPOOL;
require(_TREASURY != addre... | 2,365,830 | [
1,
4625,
348,
7953,
560,
30,
225,
1716,
685,
537,
364,
943,
7519,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
262,
288,
203,
3639,
2583,
24899,
38,
4349,
42,
7076,
480,
1758,
12,
20,
3631,
315,
1941,
605,
4349,
42,
7076,
1758,
8863,
203,
3639,
605,
4349,
42,
7076,
273,
389,
38,
4349,
42,
7076,
31,
203,
203,
3639,
2583,
24899,
59,
... |
./full_match/1/0x7d42e2a27cEa65240cBEF5b4AC5738C71bE7112E/sources/Letters.sol | Emit batch mint event | emit TransferBatch(msg.sender, address(0x0), _to, _ids, _amounts);
| 17,001,228 | [
1,
4625,
348,
7953,
560,
30,
225,
16008,
2581,
312,
474,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18356,
12279,
4497,
12,
3576,
18,
15330,
16,
1758,
12,
20,
92,
20,
3631,
389,
869,
16,
389,
2232,
16,
389,
8949,
87,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./inter... | tracks location of each Dragon in Flight | mapping(uint256 => uint256) public flightIndices;
| 10,005,417 | [
1,
4625,
348,
7953,
560,
30,
225,
13933,
2117,
434,
1517,
28425,
265,
316,
3857,
750,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
1071,
25187,
8776,
31,
7010,
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,
... |
./partial_match/1/0x07Cd2E45386dA2FF8F2db716E733b6f48511a118/sources/SDLGaugeDistributor.sol | * @notice Updates all gauge rewards (bypasses update threshold)/ | function updateGaugeRewards() external {
uint256 period = block.timestamp - lastUpdated > WEEK ? WEEK : block.timestamp - lastUpdated;
for (uint256 i = 0; i < gauges.length; i++) {
_refreshGaugeReward(i, period);
}
lastUpdated = block.timestamp;
}
| 9,354,775 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15419,
777,
13335,
283,
6397,
261,
29604,
281,
1089,
5573,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1089,
18941,
17631,
14727,
1435,
3903,
288,
203,
3639,
2254,
5034,
3879,
273,
1203,
18,
5508,
300,
1142,
7381,
405,
26664,
692,
26664,
294,
1203,
18,
5508,
300,
1142,
7381,
31,
203,
203,
3639,
364,
261,
11890,
5034,
277,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.10;
/// ------------ IMPORTS ------------
import {ReentrancyGuard} from "@rari-capital/solmate/src/utils/ReentrancyGuard.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IER... | @notice Emitted when an offer is canceled @param tokenContract The ERC-721 token address of the canceled offer @param tokenId The ERC-721 token ID of the canceled offer @param id The ID of the canceled offer @param offer The metadata of the canceled offer | event OfferCanceled(address indexed tokenContract, uint256 indexed tokenId, uint256 indexed id, Offer offer);
| 1,777,170 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
512,
7948,
1347,
392,
10067,
353,
17271,
632,
891,
1147,
8924,
1021,
4232,
39,
17,
27,
5340,
1147,
1758,
434,
326,
17271,
10067,
632,
891,
1147,
548,
1021,
4232,
39,
17,
27,
5340,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
871,
25753,
23163,
12,
2867,
8808,
1147,
8924,
16,
2254,
5034,
8808,
1147,
548,
16,
2254,
5034,
8808,
612,
16,
25753,
10067,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// Sources flattened with hardhat v2.4.3 https://hardhat.org
// File contracts/solidity/contracts-v1/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.8;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are genera... | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | contract Ownable is Context, Initializable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
function initOwnable() internal virtual initializer {
address msgSender = _msgSender();
_owner = msgSender;
... | 2,517,749 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
2525,
805,
16,
326,
3410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14223,
6914,
353,
1772,
16,
10188,
6934,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
203,
3639,
1758,
8808,
2416,
5541,
16,
203,
3639,
1758,
8808,
394,
5541,
203,
565,
1... |
./full_match/137/0x982f04030754c25808A6032AaBA43157Ac627467/sources/contracts/CaesiumTreasury.sol | Delays change to sCAES address
| uint public sCAESQueue; | 4,697,068 | [
1,
4625,
348,
7953,
560,
30,
225,
6603,
8271,
2549,
358,
272,
3587,
3991,
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,
... | [
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,
2254,
1071,
272,
3587,
3991,
3183,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer... | @notice returns the trader of the given orderID. Trader is the one who signs the message and does the actual trading. | function orderTrader(bytes32 _orderID) external view returns (address) {
return orders[_orderID].trader;
}
| 1,044,491 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1135,
326,
1284,
765,
434,
326,
864,
1353,
734,
18,
2197,
765,
353,
326,
1245,
10354,
21588,
326,
883,
471,
1552,
326,
3214,
1284,
7459,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1353,
1609,
765,
12,
3890,
1578,
389,
1019,
734,
13,
3903,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
11077,
63,
67,
1019,
734,
8009,
313,
1143,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzep... | check whether ancestorToken is descendantToken's ancestor | function _isAncestor(
NFT memory descendantToken,
NFT memory ancestorToken
) internal view returns (bool) {
if (!_checkItemsExists(descendantToken)) {
return false;
}
if (_isRootToken(descendantToken)) {
return false;
}
(address _... | 12,577,850 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
2856,
9731,
1345,
353,
17465,
1345,
1807,
9731,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
291,
15637,
12,
203,
3639,
423,
4464,
3778,
17465,
1345,
16,
203,
3639,
423,
4464,
3778,
9731,
1345,
203,
565,
262,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
309,
16051,
67,
1893,
3126,
4002,
12,
26236,
970,... |
// SPDX-License-Identifier: LGPL-3.0
pragma solidity ^0.8.9;
import "./BDERC1155Tradable.sol";
import "./IWarrior.sol";
import "./IRegion.sol";
//Import ERC1155 standard for utilizing FAME tokens
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Ho... | *@notice Fetch the current FAME balance held within the Loot Chest Smart Contract@return balance The current FAME Token Balance/ | function getContractFAMEBalance() public view returns (uint balance) {
return FAMEContract.balanceOf(address(this),FAMETokenID);
}
| 13,683,531 | [
1,
4625,
348,
7953,
560,
30,
380,
36,
20392,
8065,
326,
783,
478,
1642,
11013,
15770,
3470,
326,
511,
1632,
1680,
395,
19656,
13456,
36,
2463,
11013,
1021,
783,
478,
1642,
3155,
30918,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
8924,
42,
1642,
13937,
1435,
1071,
1476,
1135,
261,
11890,
11013,
13,
288,
203,
3639,
327,
478,
1642,
8924,
18,
12296,
951,
12,
2867,
12,
2211,
3631,
42,
1642,
1345,
734,
1769,
203,
565,
289,
203,
203,
2,
-100,
-... |
/**
*Submitted for verification at Etherscan.io on 2021-12-14
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
// File: interfaces/IExodusAuthority.sol
pragma solidity =0.7.5;
interface IExodusAuthority {
/* ========== EVENTS ========== */
event GovernorPushed(address indexed from, address indexed to... | * @notice stake EXO to enter warmup @param _to address @param _amount uint @param _claim bool @param _rebasing bool @return uint/ | function stake(
address _to,
uint256 _amount,
bool _rebasing,
bool _claim
) external returns (uint256) {
EXO.safeTransferFrom(msg.sender, address(this), _amount);
if (_claim && warmupPeriod == 0) {
return _send(_to, _amount, _rebasing);
Cla... | 1,842,886 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
384,
911,
5675,
51,
358,
6103,
22975,
416,
632,
891,
389,
869,
1758,
632,
891,
389,
8949,
2254,
632,
891,
389,
14784,
1426,
632,
891,
389,
266,
9157,
310,
1426,
632,
2463,
2254,
19,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
384,
911,
12,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1426,
389,
266,
9157,
310,
16,
203,
3639,
1426,
389,
14784,
203,
565,
262,
3903,
1135,
261,
11890,
5034,
13,
288,
203,
3639... |
./full_match/8453/0x7870837ffe670E62d4e601393D454f1b8649F7f9/sources/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol | * @dev Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens./ | function depositFor(address account, uint256 amount) public virtual returns (bool) {
SafeERC20Upgradeable.safeTransferFrom(underlying, _msgSender(), address(this), amount);
_mint(account, amount);
return true;
}
| 11,543,954 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7852,
279,
729,
358,
443,
1724,
6808,
2430,
471,
312,
474,
326,
4656,
1300,
434,
5805,
2430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
1290,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
1071,
5024,
1135,
261,
6430,
13,
288,
203,
3639,
14060,
654,
39,
3462,
10784,
429,
18,
4626,
5912,
1265,
12,
9341,
6291,
16,
389,
3576,
12021,
9334,
1758,
12,
... |
./full_match/43114/0x2953B82Dc7CEc0c7b28c17313B04219Db97a38a9/sources/contracts/3_Ballot.sol | * @notice Withdraws from MasterChef to Vault without caring about rewards. @dev EMERGENCY ONLY. Only callable by the contract admin./ | function emergencyWithdraw() external onlyAdmin {
IMasterChef(masterchef).emergencyWithdraw(5);
}
| 4,619,287 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3423,
9446,
87,
628,
13453,
39,
580,
74,
358,
17329,
2887,
5926,
310,
2973,
283,
6397,
18,
632,
5206,
7141,
654,
16652,
16068,
20747,
18,
5098,
4140,
635,
326,
6835,
3981,
18,
19,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
801,
24530,
1190,
9446,
1435,
3903,
1338,
4446,
288,
203,
3639,
6246,
2440,
39,
580,
74,
12,
7525,
343,
10241,
2934,
351,
24530,
1190,
9446,
12,
25,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {FeeSharingSystem} from "./FeeSharingSystem.sol";
import {FeeSharingSetter} from "./FeeSharingSetter.sol";
import {TokenSplitter} from "./TokenSplitter.sol";
/**
* @title OperatorContro... | * @title FeeSharingSetter @notice It receives LooksRare protocol fees and owns the FeeSharingSystem contract. It can plug to AMMs for converting all received currencies to WETH./ Operator role Min duration for each fee-sharing period (in blocks) Max duration for each fee-sharing period (in blocks) Reward convertor (too... | contract FeeSharingSetter is ReentrancyGuard, AccessControl {
using EnumerableSet for EnumerableSet.AddressSet;
using SafeERC20 for IERC20;
bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
uint256 public immutable MIN_REWARD_DURATION_IN_BLOCKS;
uint256 public immutable MAX_REWA... | 13,787,302 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
30174,
22897,
8465,
632,
20392,
2597,
17024,
10176,
87,
54,
834,
1771,
1656,
281,
471,
29065,
326,
30174,
22897,
3163,
6835,
18,
2597,
848,
15852,
358,
20653,
6947,
364,
14540,
777,
5079,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30174,
22897,
8465,
353,
868,
8230,
12514,
16709,
16,
24349,
288,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.6;
// CONTRACT FOR CUSTOMER RELATED OPERATIONS
contract SCFCustomerOperations {
// BookingStatus of customer
enum SCFBookingStatus {INITIATED, CONFIRMED, AIRLINE_CANCELLED_REFUND_COMPLETED, USER_CANCELLED_REFUND_COMPLETED, CLAIM_REFUND_COMPLE... | Get function: Gets the seat price for the category | function getSeatPrice(uint8 _seatCategory) public view returns (uint) {
return (_seatPriceList[SCFSeatCategory(_seatCategory)]);
}
| 6,369,706 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
445,
30,
11881,
326,
695,
270,
6205,
364,
326,
3150,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11979,
270,
5147,
12,
11890,
28,
389,
307,
270,
4457,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
261,
67,
307,
270,
14417,
63,
2312,
42,
1761,
270,
4457,
24899,
307,
270,
4457,
13,
19226,
377,
203,
565... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {ERC721} from "@solidstate/contracts/token/ERC721/ERC721.sol";
import {ERC721BaseStorage} from "@solidstate/contracts/token/ERC721/base/ERC721BaseStorage.sol";
import {OwnableInternal} from "@solidstate/contracts/access/OwnableInternal.sol";
import {VRFCo... | * @inheritdoc ERC721MetadataInternal/ | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
}
| 73,668 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
10093,
4232,
39,
27,
5340,
2277,
3061,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
2713,
5024,
3849,
288,
203,
3639,
2240,
6315,
5771,
1345,
5912,
12,
2080,
16,
358,
16,
11... |
// SPDX-License-Identifier: MIT
//
// https://cryptomarketpool.com/erc20-token-solidity-smart-contract/
pragma solidity ^0.8.0;
interface ERC20 {
function totalSupply() external pure returns (uint _totalSupply);
function balanceOf(address _owner) external view returns(uint balance);
function transfer(address _t... | shows how much a spender has the approval to spend to a specific address | function allowance(address _owner, address _spender) external view returns(uint remaining) {
return __allowances[_owner][_spender];
}
| 12,732,480 | [
1,
4625,
348,
7953,
560,
30,
225,
17975,
3661,
9816,
279,
17571,
264,
711,
326,
23556,
358,
17571,
358,
279,
2923,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
3903,
1476,
1135,
12,
11890,
4463,
13,
288,
203,
565,
327,
1001,
5965,
6872,
63,
67,
8443,
6362,
67,
87,
1302,
264,
15533,
203,
225,
289,
203,
2,
-1... |
./partial_match/1/0x03269162bc0d600F8F515130d7E3DD2C570e41eA/sources/TF2048.sol | * @dev ERC721 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug. IMPORTANT: This contract does not include public pause and unpause fun... | abstract contract ERC721Pausable is ERC721, Pausable {
function _beforeTokenTransfer(
address from,
address to,
uint256 firstTokenId,
uint256 batchSize
) internal virtual override {
super._beforeTokenTransfer(from, to, firstTokenId, batchSize);
require(!paused(... | 15,587,168 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4232,
39,
27,
5340,
1147,
598,
6790,
16665,
1147,
29375,
16,
312,
474,
310,
471,
18305,
310,
18,
19256,
364,
22456,
4123,
487,
5309,
310,
1284,
5489,
3180,
326,
679,
434,
392,
9873,
3879,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
27,
5340,
16507,
16665,
353,
4232,
39,
27,
5340,
16,
21800,
16665,
288,
203,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1122,
1345,
548,
... |
./full_match/1/0x06B51c826A683Be184632D5a492FaCDa108d228e/sources/browser/UniswapProxy.sol | Sell some ETH and get refund | function ethToTokenSwapOutput(
uint256 tokens_bought,
uint256 deadline,
address _exchange)
external
onlyTrigger
returns (uint256) {
require(deadline > block.timestamp, 'Overdue.');
IUniswapExchange exchange = IUniswapExchange(_exchange);... | 8,285,708 | [
1,
4625,
348,
7953,
560,
30,
348,
1165,
2690,
512,
2455,
471,
336,
16255,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13750,
774,
1345,
12521,
1447,
12,
203,
3639,
2254,
5034,
2430,
67,
1075,
9540,
16,
7010,
3639,
2254,
5034,
14096,
16,
7010,
3639,
1758,
389,
16641,
13,
203,
3639,
3903,
203,
3639,
1338,
6518,
203,
3639,
1135,
261,
11890,... |
./partial_match/1/0xB10daee1FCF62243aE27776D7a92D39dC8740f95/sources/lib/prb-math/src/ud60x18/Helpers.sol | @notice Implements the greater than operation (>) in the UD60x18 type. | function gt(UD60x18 x, UD60x18 y) pure returns (bool result) {
result = x.unwrap() > y.unwrap();
}
| 9,308,671 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
29704,
326,
6802,
2353,
1674,
261,
23429,
316,
326,
587,
40,
4848,
92,
2643,
618,
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,
915,
9879,
12,
12587,
4848,
92,
2643,
619,
16,
587,
40,
4848,
92,
2643,
677,
13,
16618,
1135,
261,
6430,
563,
13,
288,
203,
565,
563,
273,
619,
18,
318,
4113,
1435,
405,
677,
18,
318,
4113,
5621,
203,
97,
203,
2,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when d... | * @dev Collection of functions related to the address type/ | library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
function isContract(address account) internal view returns (bool) {
uint256 si... | 1,386,140 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2200,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
5267,
288,
203,
2398,
203,
203,
565,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
203,
3639,
2254,
5034,
963,
31,
203,
3639,
19931,
288,
203,
5411,
963,
519,
1110,
7000,
554,
12,
4631,
1... |