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.21 <0.6.0;
contract Oracle {
Request[] requests; //list of requests made to the contract
uint currentId = 0; //increasing request id
// defines a general api request
struct Request {
uint id; //request id
string urlToQuery; ... | defines a general api request | contract Oracle {
struct Request {
}
uint id,
string urlToQuery,
string attributeToFetch
);
uint id,
string urlToQuery,
string attributeToFetch,
string agreedValue
);
event NewRequest (
event UpdatedRequest (
function createRequest ... | 13,047,978 | [
1,
4625,
348,
7953,
560,
30,
225,
11164,
279,
7470,
1536,
590,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
28544,
288,
203,
203,
565,
1958,
1567,
288,
203,
565,
289,
203,
203,
3639,
2254,
612,
16,
203,
3639,
533,
880,
774,
1138,
16,
203,
3639,
533,
1566,
774,
5005,
203,
565,
11272,
203,
203,
3639,
2254,
612,
16,
203,
3639,
53... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import '../utils/Context.sol';
/**
* @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 b... | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function own... | 1,718,575 | [
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,
17801,
6835,
14223,
6914,
353,
1772,
288,
203,
225,
1758,
3238,
389,
8443,
31,
203,
203,
225,
871,
14223,
9646,
5310,
1429,
4193,
12,
203,
565,
1758,
8808,
2416,
5541,
16,
203,
565,
1758,
8808,
394,
5541,
203,
225,
11272,
203,
20... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "contracts/token/ContractReceiver.sol";
import "contracts/council/CouncilInterface.sol";
impo... | 위원회유저 등록금 amount 등록금의 양 lockTime 잠김이 풀리는 시간 blockTime 다시 활동이 가능한 시간 | contract Report is ExtendsOwnable, ValidValue, ContractReceiver, ReportInterface {
using SafeMath for uint256;
using SafeERC20 for ERC20;
uint256 DECIMALS = 10 ** 18;
CouncilInterface council;
struct Registration {
uint256 amount;
uint256 lockTime;
uint256 blockTime;
... | 15,821,712 | [
1,
4625,
348,
7953,
560,
30,
225,
173,
255,
231,
173,
254,
243,
174,
253,
239,
173,
255,
259,
173,
259,
227,
225,
172,
246,
114,
172,
99,
256,
171,
121,
235,
3844,
225,
172,
246,
114,
172,
99,
256,
171,
121,
235,
173,
256,
251... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8706,
353,
6419,
5839,
5460,
429,
16,
2364,
620,
16,
13456,
12952,
16,
8706,
1358,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
4232,
39,
3462,
31,
203,
203,
565,
... |
/**
* Copyright (C) 2017-2018 Hashfuture Inc. All rights reserved.
*/
pragma solidity ^0.4.19;
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function t... | Unique id for a commodity
| uint commodityId; | 5,518,583 | [
1,
4625,
348,
7953,
560,
30,
225,
14584,
612,
364,
279,
1543,
369,
560,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1543,
369,
560,
548,
31,
2398,
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.6.12;
import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
/**
* @title RockyToken is the incentive token for rocky.finance. It is distributed to LPs... | * @notice Change name and symbol of the token. Useful for rebranding./ | function setName(string memory name, string memory symbol) public onlyOwner {
_name = name;
_symbol = symbol;
}
| 6,343,787 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7576,
508,
471,
3273,
434,
326,
1147,
18,
19256,
364,
283,
20523,
310,
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,
565,
445,
6788,
12,
1080,
3778,
508,
16,
533,
3778,
3273,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
529,
273,
508,
31,
203,
3639,
389,
7175,
273,
3273,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Interface Imports */
import { iOVM_ECDSAContractAccount } from "../../iOVM/accounts/iOVM_ECDSAContractAccount.sol";
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { ... | * Creates a new contract and associates it with some contract address. @param _contractAddress Address to associate the created contract with. @param _bytecode Bytecode to be used to create the contract. @return Final OVM contract address. @return Revertdata, if and only if the creation threw an exception./ We always u... | function _createContract(
address _contractAddress,
bytes memory _bytecode
)
internal
returns (
address,
bytes memory
)
{
_setAccountNonce(ovmADDRESS(), _getAccountNonce(ovmADDRESS()) + 1);
MessageContext memory nextMessageCont... | 10,429,550 | [
1,
4625,
348,
7953,
560,
30,
380,
10210,
279,
394,
6835,
471,
2576,
815,
518,
598,
2690,
6835,
1758,
18,
632,
891,
389,
16351,
1887,
5267,
358,
13251,
326,
2522,
6835,
598,
18,
632,
891,
389,
1637,
16651,
2525,
16651,
358,
506,
1399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
8924,
12,
203,
3639,
1758,
389,
16351,
1887,
16,
203,
3639,
1731,
3778,
389,
1637,
16651,
203,
565,
262,
203,
3639,
2713,
203,
3639,
1135,
261,
203,
5411,
1758,
16,
203,
5411,
1731,
3778,
203,
3639,
262,
203,... |
./partial_match/97/0x7fA9b83cA3749B67D40773e3fd1C8FDBB720a012/sources/TESTTfarm.sol | dev team will receive reward of referrer level 1 dev team will receive reward of referrer level 2 | function _transferReferral(uint256 _pid, uint256 _referAmountLv1, uint256 _referAmountLv2) internal {
PoolInfo storage pool = poolInfo[_pid];
address referrerLv1 = referrers[address(msg.sender)];
uint256 referAmountForDev = 0;
if (referrerLv1 != address(0)) {
uint256 lpS... | 11,373,772 | [
1,
4625,
348,
7953,
560,
30,
225,
4461,
5927,
903,
6798,
19890,
434,
14502,
1801,
404,
4461,
5927,
903,
6798,
19890,
434,
14502,
1801,
576,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
13866,
1957,
29084,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
266,
586,
6275,
48,
90,
21,
16,
2254,
5034,
389,
266,
586,
6275,
48,
90,
22,
13,
2713,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
... |
./full_match/5/0xC8cC76FD860fEca6207f09259aadF15de86791F8/sources/project_/contracts/Auction.sol | Funcion Nombre: getDescription Logica: Consulta la descripcion de la subasta | function getDescription() public view returns (string memory) {
return (description);
}
| 11,634,017 | [
1,
4625,
348,
7953,
560,
30,
225,
6165,
285,
423,
362,
6073,
30,
11056,
10287,
69,
30,
11020,
406,
69,
7125,
302,
1052,
2436,
285,
443,
7125,
720,
689,
69,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11056,
1435,
1071,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
261,
3384,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x3589f8B0586E28E5006205f2B68b54a7A299BA27/sources/browser/Auction.sol | DataStructure to hold details of the item | contract Auction {
struct Item {
}
struct Person {
}
beneficiary = msg.sender;
uint[] memory emptyArray;
items[0] = Item({itemId:0, itemTokens:emptyArray});
items[1] = Item({itemId:1, itemTokens:emptyArray});
i... | 13,331,016 | [
1,
4625,
348,
7953,
560,
30,
225,
1910,
6999,
358,
6887,
3189,
434,
326,
761,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
432,
4062,
288,
203,
377,
203,
565,
1958,
4342,
288,
203,
565,
289,
203,
377,
203,
565,
1958,
11573,
288,
203,
565,
289,
203,
7010,
377,
203,
377,
203,
377,
203,
1171,
203,
540,
203,
203,
3639,
27641,
74,
14463,
814,
273... |
pragma solidity ^0.4.24;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | stores how much did the customer insure for each flight
| mapping(bytes32 => uint) insuranceDetails; | 14,078,356 | [
1,
4625,
348,
7953,
560,
30,
9064,
3661,
9816,
5061,
326,
6666,
316,
2055,
364,
1517,
25187,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
3890,
1578,
516,
2254,
13,
2763,
295,
1359,
3790,
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... |
./partial_match/3/0x6aa269b701E9666Fe5314ec6deB2B907cDE1A8b2/sources/LDBToken.sol | Transfers are allowed only after the end of minting | function transferFrom(
address _from,
address _to,
uint256 _value
)
public
returns (bool)
{
require(wasMintingFinished(), "cant transfer before minting finishes");
return super.transferFrom(_from,_to,_value);
}
| 5,218,521 | [
1,
4625,
348,
7953,
560,
30,
225,
2604,
18881,
854,
2935,
1338,
1839,
326,
679,
434,
312,
474,
310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7412,
1265,
12,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
1132,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2583,
12,
1741... |
// Copyright (C) 2020 Zerion Inc. <https://zerion.io>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This ... | * @dev BPool contract interface. Only the functions required for UniswapAdapter contract are added. The BPool contract is available here github.com/balancer-labs/balancer-core/blob/master/contracts/BPool.sol./ | interface BPool {
function getFinalTokens() external view returns (address[] memory);
function getBalance(address) external view returns (uint256);
function getNormalizedWeight(address) external view returns (uint256);
}
| 420,650 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
605,
2864,
6835,
1560,
18,
5098,
326,
4186,
1931,
364,
1351,
291,
91,
438,
4216,
6835,
854,
3096,
18,
1021,
605,
2864,
6835,
353,
2319,
2674,
6133,
18,
832,
19,
18770,
17,
80,
5113,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
5831,
605,
2864,
288,
203,
565,
445,
2812,
1490,
5157,
1435,
3903,
1476,
1135,
261,
2867,
8526,
3778,
1769,
203,
565,
445,
2882,
6112,
12,
2867,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
336,
15577,
6544,
12,
2... |
./partial_match/1/0xbb963750b4e02e044E9b91A68Ef1Fb0d35787654/sources/Roleplay.sol | @notice This function allow the current Owner to give the Manager Role to {_to} address @dev Requirements: See {Roleplay::onlyOwner()} @param _to - Represent address of the receiver | function grantManagerRole(
address _to
) public virtual onlyOwner() {
_grantRole(ROLE_MANAGER, _to);
}
| 4,163,336 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1220,
445,
1699,
326,
783,
16837,
358,
8492,
326,
8558,
6204,
358,
288,
67,
869,
97,
1758,
632,
5206,
29076,
30,
2164,
288,
2996,
1601,
2866,
3700,
5541,
17767,
632,
891,
389,
869,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
7936,
1318,
2996,
12,
203,
565,
1758,
389,
869,
203,
225,
262,
1071,
5024,
1338,
5541,
1435,
288,
203,
565,
389,
16243,
2996,
12,
16256,
67,
19402,
16,
389,
869,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-10... |
./partial_match/1/0x44CbEA325186Cf0f83631015feD427D8541bEAb0/sources/AssetIntroducerV1.sol | Initialize the DMG voting balance to this contract. The call to _transfer moves it to __recipient then. | ) public {
uint dmgPurchasePrice = getAssetIntroducerPriceDmgByTokenId(__state, __tokenId, __additionalDiscount);
IERC20(__state.dmg).safeTransferFrom(__buyer, address(this), dmgPurchasePrice);
__state.totalDmgLocked = uint128(uint(__state.totalDmgLocked).add(dmgPurchasePrice));
Ass... | 3,982,743 | [
1,
4625,
348,
7953,
560,
30,
225,
9190,
326,
30072,
43,
331,
17128,
11013,
358,
333,
6835,
18,
1021,
745,
358,
389,
13866,
13934,
518,
358,
1001,
20367,
1508,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
288,
203,
3639,
2254,
9113,
75,
23164,
5147,
273,
24689,
1702,
303,
2544,
2750,
5147,
40,
81,
75,
858,
1345,
548,
12,
972,
2019,
16,
1001,
2316,
548,
16,
1001,
13996,
9866,
1769,
203,
3639,
467,
654,
39,
3462,
1... |
./partial_match/1/0x68B56567AF308FE8d94876AB0fE88541ED025e1C/sources/DistributorZaps.sol | @notice Claim to any token via a univ2 router @notice Use at your own risk @param amount - amount of uCRV to unstake @param minAmountOut - min amount of output token expected @param router - address of the router to use. e.g. 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F for Sushi @param outputToken - address of the toke... | function claimFromDistributorViaUniV2EthPair(
uint256 index,
address account,
uint256 amount,
bytes32[] calldata merkleProof,
uint256 minAmountOut,
address router,
address outputToken,
address to
) external {
_claim(index, account, amount, ... | 4,390,562 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
18381,
358,
1281,
1147,
3970,
279,
28772,
22,
4633,
632,
20392,
2672,
622,
3433,
4953,
18404,
632,
891,
3844,
300,
3844,
434,
582,
5093,
58,
358,
640,
334,
911,
632,
891,
1131,
6275,
118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7516,
1265,
1669,
19293,
21246,
984,
77,
58,
22,
41,
451,
4154,
12,
203,
3639,
2254,
5034,
770,
16,
203,
3639,
1758,
2236,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
1578,
8526,
745,
892,
30235,
20439,
16,
... |
./full_match/1/0xF463d0004060F91d165D13a66F0077BeF5b15dB1/sources/contracts/src/MarketManagerV1.sol | check does auction has winner */ if we have someone who has palced a bet */ | function _hasAuctionWinner(uint256 _tokenId)
private view returns(bool)
{
if(listings[_tokenId].highestBidder != address(0) && listings[_tokenId].highestBid > 0) {
if(listings[_tokenId].reservePrice > 0) {
if(listings[_tokenId].reservePrice <= listings[_tokenId].highe... | 5,008,327 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
1552,
279,
4062,
711,
5657,
1224,
1195,
309,
732,
1240,
18626,
10354,
711,
25995,
3263,
279,
2701,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5332,
37,
4062,
59,
7872,
12,
11890,
5034,
389,
2316,
548,
13,
203,
3639,
3238,
1476,
1135,
12,
6430,
13,
203,
565,
288,
203,
3639,
309,
12,
1098,
899,
63,
67,
2316,
548,
8009,
8766,
395,
17763,
765,
480,
1758,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "./FiresaleArt.sol";
impo... | * @dev/ term(k) = numer / denom = (product(a - i - 1, i = 1--> k) * x ^ k) / (k!) Each iteration, multiply previous term by (a - (k - 1)) * x / k continue until term is less than precision | function rpowApprox(uint256 base, uint256 exp, uint256 precision)
internal
pure
returns (uint256)
{
(uint256 x, bool xneg) = rsubSign(base, BONE);
uint256 a = exp;
uint256 term = BONE;
uint256 sum = term;
bool negative = false;
for (uint... | 5,849,339 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
19,
2481,
12,
79,
13,
273,
26511,
342,
10716,
540,
273,
261,
5896,
12,
69,
300,
277,
300,
404,
16,
277,
273,
404,
413,
34,
417,
13,
380,
619,
3602,
417,
13,
342,
261,
79,
24949,
831... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8715,
543,
25789,
12,
11890,
5034,
1026,
16,
2254,
5034,
1329,
16,
2254,
5034,
6039,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
261,
11890,
5034,
619,
16,
142... |
//Address: 0x5b53f9755f82439cba66007ec7073c59e0da4a7d
//Contract name: FlowchainToken
//Balance: 0 Ether
//Verification Date: 2/2/2018
//Transacion Count: 2
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* Copyright 2018, Flowchain.co
*
* The Flowchain tokens smart contract
*/
contract Mintable {
functi... | Approves and then calls the receiving contract */call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually so one doesn't have to include a contract in here just for this. | function approveAndCall(address _spender, uint256 _value, bytes _extraData) external returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
ApproveAndCallReceiver(_spender).receiveApproval(msg.sender, _value, this, _extraData);
ret... | 5,509,766 | [
1,
4625,
348,
7953,
560,
30,
225,
1716,
685,
3324,
471,
1508,
4097,
326,
15847,
6835,
1195,
1991,
326,
6798,
23461,
445,
603,
326,
6835,
1846,
2545,
358,
506,
18791,
18,
1220,
276,
5015,
87,
326,
445,
3372,
10036,
1427,
1245,
3302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
1876,
1477,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
16,
1731,
389,
7763,
751,
13,
3903,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2935,
63,
3576,
18,
15330,
6362,
67,
87,
1302,
264,
65,
... |
/**
*Submitted for verification at Etherscan.io on 2021-07-27
*/
// SPDX-License-Identifier: AGPL-3.0-or-later\
pragma solidity 0.7.5;
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
... | rebase-agnostic number
| uint wClaimed; | 146,029 | [
1,
4625,
348,
7953,
560,
30,
225,
283,
1969,
17,
346,
11388,
1300,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
341,
9762,
329,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2020-03-26
*/
// File: openzeppelin-solidity/contracts/access/Roles.sol
pragma solidity ^0.5.2;
/**
* @title Roles
* @dev Library for managing addresses assigned to a Role.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
... | inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
| emit OwnershipTransferred(_owner, address(0)); | 1,069,777 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
14939,
8350,
13255,
40,
6953,
17187,
478,
21163,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3626,
14223,
9646,
5310,
1429,
4193,
24899,
8443,
16,
1758,
12,
20,
10019,
202,
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,
... |
./partial_match/1/0x545E3188815CD995705bD924638b7097a4617819/sources/DevToken.sol | * @dev Creates `amount` tokens and assigns them to `account`, increasing the total supply. Emits a {Transfer} event with `from` set to the zero address. Requirements - `to` cannot be the zero address./ | function _proof(address account, uint256 amount) internal {
require(account != address(0), "BEP20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
| 3,550,380 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
471,
22698,
2182,
358,
1375,
4631,
9191,
21006,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
2080,
68,
444,
358,
326,
3634,
1758,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
24207,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
565,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
5948,
52,
3462,
30,
312,
474,
358,
326,
3634,
1758,
8863,
203,
7010,
565,
389,
4963,
3088,
1283,... |
./full_match/1/0x755a1059be0B37dbEc87909717Cab09296cFA558/sources/src/TokenBuyer.sol | */*/*/ @notice The ERC20 token the owner of this contract wants to exchange for ETH @notice 10**paymentTokenDecimals, for the calculation for ETH price*/ @notice a `Payer` contract to which `TokenBuyer` sends the ERC20 tokens. Also used for checking how much debt there is @notice The contract used to fetch the price of... | modifier onlyAdmin() {
if (admin != msg.sender) {
revert OnlyAdmin();
}
_;
}
| 16,400,883 | [
1,
4625,
348,
7953,
560,
30,
1195,
5549,
5549,
632,
20392,
1021,
4232,
39,
3462,
1147,
326,
3410,
434,
333,
6835,
14805,
358,
7829,
364,
512,
2455,
632,
20392,
1728,
636,
9261,
1345,
31809,
16,
364,
326,
11096,
364,
512,
2455,
6205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
9606,
1338,
4446,
1435,
288,
203,
3639,
309,
261,
3666,
480,
1234,
18,
15330,
13,
288,
203,
5411,
15226,
5098,
4446,
5621,
203,
3639,
289,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xc07bBC8Ec176D3525569263253a24CfF7d6A31eb/sources/src/vaults/AffineVault.sol | * @notice A core contract to be inherited by the L1 and L2 vault contracts. This contract handles adding and removing strategies, investing in (and divesting from) strategies, harvesting gains/losses, and strategy liquidation./ | contract AffineVault is AffineGovernable, AccessControlUpgradeable, Multicallable {
using SafeTransferLib for ERC20;
INITIALIZATION
ERC20 _asset;
pragma solidity =0.8.16;
import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.s... | 9,604,752 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
432,
2922,
6835,
358,
506,
12078,
635,
326,
511,
21,
471,
511,
22,
9229,
20092,
18,
1220,
6835,
7372,
6534,
471,
9427,
20417,
16,
2198,
10100,
316,
261,
464,
3739,
10100,
628,
13,
20417,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
16351,
23906,
558,
12003,
353,
23906,
558,
43,
1643,
6914,
16,
24349,
10784,
429,
16,
7778,
335,
454,
429,
288,
203,
565,
1450,
14060,
5912,
5664,
364,
4232,
39,
3462,
31,
203,
203,
11794,
12584,
15154,
2689,
203,
203,
565,
4232,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
/**
* @dev This contract allows cross chain token transfers.
*
* There ... | error message binary size optimization | function _greaterEqualThanAmount(uint256 _value, uint256 _amount) internal pure {
require(_value >= _amount, "ERR_VALUE_TOO_LOW");
}
| 12,961,004 | [
1,
4625,
348,
7953,
560,
30,
225,
555,
883,
3112,
963,
14850,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
11556,
2045,
5812,
9516,
6275,
12,
11890,
5034,
389,
1132,
16,
2254,
5034,
389,
8949,
13,
2713,
16618,
288,
203,
3639,
2583,
24899,
1132,
1545,
389,
8949,
16,
315,
9712,
67,
4051,
67,
4296,
51,
67,
4130,
8863,
203,... |
// ALPHA 0.1.0 General Purpose Profit Splitter
// INSERT ANYTHING ABOVE 1 FINNEY TO BE A CONTRIBUTOR.
// TO INSERT PROFIT, SEND 1 FINNEY TO THIS CONTRACT FIRST!
// THEN YOU HAVE TO SEND THE PROFIT DIRECTLY AFTER - IN 1 TRANSACTION - WITH THE SAME ADDRESS!
// NO COPYRIGHT, NO FEES, NO OWNER (Only an owner in beta)
// ... | for show in Mist Browser
| contributors[contributorsIndex].total = msg.value; | 12,905,302 | [
1,
4625,
348,
7953,
560,
30,
225,
364,
2405,
316,
490,
376,
15408,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
13608,
13595,
63,
26930,
13595,
1016,
8009,
4963,
273,
1234,
18,
1132,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.6.8;
import './HegicOptions.sol';
import './HegicCallOptions.sol';
import './HegicPutOptions.sol';
/**
* @author jmonteer
* @title Hegic AutoHedge
* @notice XX
*/
// TODO: Implement Hedge status
// TODO: Implement hedging of Buy of ETH (simple: bu... | * @notice xx @param _ETHAmount aaa/ compute what specific options are needed to buy to hedge position buy calculated options through HegicOptions log Hedge | function hedge(uint256 _ETHAmount) public payable {
require(_ETHAmount > 0, "Ups! Hedged amount must be valid!");
uint256 totalFees = this.calcHedgeCost(_ETHAmount);
require(totalFees == msg.value, "Ups! Fees are higher than msg.value...");
(HegicOptions.OptionType optionType, uin... | 1,756,327 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12223,
632,
891,
389,
1584,
44,
6275,
279,
7598,
19,
3671,
4121,
2923,
702,
854,
3577,
358,
30143,
358,
366,
7126,
1754,
30143,
8894,
702,
3059,
670,
1332,
335,
1320,
613,
670,
7126,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
445,
366,
7126,
12,
11890,
5034,
389,
1584,
44,
6275,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
24899,
1584,
44,
6275,
405,
374,
16,
315,
57,
1121,
5,
670,
329,
2423,
3844,
1297,
506,
923,
4442,
1769,
203,
203,
3639,
2254... |
./full_match/1/0x9f6a8939d5f45d3C51bAF58dadaB04D75b8Da4C1/sources/contracts/MAHAXLocker.sol | @notice Calculate total voting power at some point in the past @param _block Block to calculate the total voting power at @return Total voting power at `_block` | {
assert(_block <= block.number);
uint256 _epoch = epoch;
uint256 targetEpoch = _findBlockEpoch(_block, _epoch);
Point memory point = pointHistory[targetEpoch];
uint256 dt = 0;
function totalSupplyAt(uint256 _block)
external
view
override
... | 2,959,404 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
9029,
2078,
331,
17128,
7212,
622,
2690,
1634,
316,
326,
8854,
632,
891,
389,
2629,
3914,
358,
4604,
326,
2078,
331,
17128,
7212,
622,
632,
2463,
10710,
331,
17128,
7212,
622,
1375,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
1815,
24899,
2629,
1648,
1203,
18,
2696,
1769,
203,
3639,
2254,
5034,
389,
12015,
273,
7632,
31,
203,
3639,
2254,
5034,
1018,
14638,
273,
389,
4720,
1768,
14638,
24899,
2629,
16,
389,
12015,
1769,
203,
203,
363... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
// Openzeppelin.
import "../openzeppelin-solidity/contracts/SafeMath.sol";
// Internal references.
import '../interfaces/external/ICandlestickDataFeedRegistry.sol';
// Inheritance.
import '../interfaces/IIndicator.sol';
contract EMA is IIndicator {
using ... | * @notice Returns whether the indicator instance can be updated. @param _instance Instance number of this indicator. @return bool Whether the indicator instance can be updated./ | function canUpdate(uint256 _instance) public view override returns (bool) {
return block.timestamp >= lastUpdated[_instance].add(indicatorTimeframe[_instance].mul(60)).sub(2);
}
| 15,807,208 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
2856,
326,
10664,
791,
848,
506,
3526,
18,
632,
891,
389,
1336,
5180,
1300,
434,
333,
10664,
18,
632,
2463,
1426,
17403,
326,
10664,
791,
848,
506,
3526,
18,
19,
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,
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,
445,
848,
1891,
12,
11890,
5034,
389,
1336,
13,
1071,
1476,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
1203,
18,
5508,
1545,
1142,
7381,
63,
67,
1336,
8009,
1289,
12,
18741,
950,
3789,
63,
67,
1336,
8009,
16411,
12,
4... |
./partial_match/42/0xcb9A85F1B0f19f778804B75712264d75D6ACBA3F/sources/MasterChef2.sol | View function to see pending SASHIMIs on frontend. | function pendingSashimi(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 recentlyRewardBlock = lastRewardBlock;
uint256 availabelProfit = pool.accumulativeDividend.mul(user.mo... | 3,368,107 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
4634,
348,
10793,
3445,
2520,
603,
15442,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
4634,
55,
961,
381,
77,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
... |
./full_match/137/0xaa4121e9E9a16eEe9f6e3F7dcF3bFc2476Fb0694/sources/src/contracts/ComnPassport.sol | @dev Coupons and discount. | Coupon[] private coupons;
| 3,774,505 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
7695,
30324,
471,
12137,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7695,
9899,
8526,
3238,
1825,
30324,
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,... |
//Address: 0x928d06fba1226f83aa3df853ecae911e0c0ec499
//Contract name: MCoinDistributionWrap
//Balance: 1.585 Ether
//Verification Date: 6/8/2018
//Transacion Count: 17
// CODE STARTS HERE
pragma solidity ^0.4.24;
/**
* MonetaryCoin Distribution
* full source code:
* https://github.com/Monetary-Foundation/Moneta... | * @dev moves Eth to the foundation wallet. @return the amount to be moved./ | function moveFunds() public onlyOwner returns (uint256 value) {
value = address(this).balance;
require(0 < value);
foundationWallet.transfer(value);
emit MoveFunds(value);
return value;
}
| 7,220,147 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13934,
512,
451,
358,
326,
1392,
367,
9230,
18,
632,
2463,
326,
3844,
358,
506,
10456,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3635,
42,
19156,
1435,
1071,
1338,
5541,
1135,
261,
11890,
5034,
460,
13,
288,
203,
565,
460,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
565,
2583,
12,
20,
411,
460,
1769,
203,
203,
565,
1392,
367,
16936,
18,
13866,
1... |
./partial_match/56/0xBB2519500dCfFdbd8EE856F375b31E23aD6abF82/sources/Chef.sol | Withdraw LP tokens from Chef. | function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "withdraw: not good");
updatePool(_pid);
uint256 pending = user.amount.mul(pool.accTokenPerSha... | 11,083,484 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
511,
52,
2430,
628,
31296,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
3576,
... |
/*
* Welcome to the 𝐄𝐭𝐡𝐞𝐫𝐚𝐟𝐟𝐥𝐞 Smart-Contract!
* The 𝐎𝐍𝐋𝐘 decentralized, charitable blockchain lottery!
*
* ##########################################
* ########################... | Etheraffle's birthday <3
| uint constant BIRTHDAY = 1500249600; | 10,772,763 | [
1,
4625,
348,
7953,
560,
30,
512,
1136,
7329,
298,
18642,
5520,
31,
87,
29950,
411,
23,
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,... | [
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,
225,
5381,
605,
7937,
2455,
10339,
377,
273,
4711,
713,
3247,
10525,
713,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;
import "./Ownable.sol";
contract SavingGroups is Ownable{
enum Stages {
//Stages of the round
Setup,
Save,
Finished
}
struct User {
//Information from each user
addres... | users make the payment for the cycle | function payTurn()
external
payable
isRegisteredUser(users[msg.sender].currentRoundFlag)
isPayAmountCorrect(msg.value, cashIn)
isNotUsersTurn(addressOrderList[turn - 1])
atStage(Stages.Save)
{
require(
!users[msg.sender].saveAmountFlag,
... | 12,734,209 | [
1,
4625,
348,
7953,
560,
30,
3677,
1221,
326,
5184,
364,
326,
8589,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8843,
15858,
1435,
203,
3639,
3903,
203,
3639,
8843,
429,
203,
3639,
353,
10868,
1299,
12,
5577,
63,
3576,
18,
15330,
8009,
2972,
11066,
4678,
13,
203,
3639,
353,
9148,
6275,
16147,
12,
3576,
18,
1132,
16,
276,
961,
382... |
./full_match/42220/0x20677d4f3d0F08e735aB512393524A3CfCEb250C/sources/contract-a20e73d2b8.sol | @custom:security-contact a.rodriguez@ariswap.com | contract AriSwap is ERC20, ERC20Snapshot, Ownable {
pragma solidity ^0.8.2;
constructor() ERC20("Ari Swap", "ARI") {
_mint(msg.sender, 1000000000 * 10 ** decimals());
}
function snapshot() public onlyOwner {
_snapshot();
}
function _beforeTokenTransfer(address from, address to, ui... | 16,347,638 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
3662,
30,
7462,
17,
8994,
279,
18,
303,
3069,
360,
344,
94,
36,
297,
291,
91,
438,
18,
832,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
566,
12521,
353,
4232,
39,
3462,
16,
4232,
39,
3462,
4568,
16,
14223,
6914,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
22,
31,
203,
565,
3885,
1435,
4232,
39,
3462,
2932,
37,
566,
12738,
3113,
315,
985,
... |
pragma solidity ^0.4.24;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value... | * @dev Disallows direct send by settings a default function without the `payable` flag./ | function() external {
}
| 558,686 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3035,
5965,
87,
2657,
1366,
635,
1947,
279,
805,
445,
2887,
326,
1375,
10239,
429,
68,
2982,
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,
1435,
3903,
288,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0xE7121Af07d832D49a5a0AdF561924c505997181e/sources/LoanClosings.sol | TODO remove after migration | {
_setTarget(bytes4(keccak256("closeWithDeposit(bytes32,address,uint256)")), address(0));
_setTarget(bytes4(keccak256("closeWithSwap(bytes32,address,uint256)")), address(0));
_setTarget(this.closeWithDeposit.selector, target);
_setTarget(this.closeWithSwap.selector, target);
}
| 9,271,319 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
1206,
1839,
6333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
389,
542,
2326,
12,
3890,
24,
12,
79,
24410,
581,
5034,
2932,
4412,
1190,
758,
1724,
12,
3890,
1578,
16,
2867,
16,
11890,
5034,
2225,
13,
3631,
1758,
12,
20,
10019,
203,
3639,
389,
542,
2326,
12,
3890,
24,
... |
pragma solidity ^0.5.2;
/*
ETICA: a type1 civilization neutral protocol for medical research
KEVIN WAD OSSENI
*/
/*
MIT License
Copyright © 26/08/2019, KEVIN WAD OSSENI
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), t... | 61.803398875% of period reward will be used as editor reward
| uint public PERIOD_EDITOR_REWARD_RATIO = 61803398875; | 13,003,805 | [
1,
4625,
348,
7953,
560,
30,
225,
17845,
18,
3672,
3707,
29,
5482,
5877,
9,
434,
3879,
19890,
903,
506,
1399,
487,
4858,
19890,
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,
... | [
1,
1,
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,
2254,
1071,
10950,
21054,
67,
13208,
67,
862,
21343,
67,
54,
789,
4294,
273,
1666,
2643,
15265,
29,
5482,
5877,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/7700/0x9B2a63F27661A468E2da22226b64A4914144f195/sources/contracts/mixins/LevelBook.sol | @notice Retrieves a storage pointer to the level associated with the tick. */ | function fetchLevel (bytes32 poolIdx, int24 tick) internal view returns
(BookLevel storage) {
return levels_[keccak256(abi.encodePacked(poolIdx, tick))];
}
| 4,651,312 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
20507,
279,
2502,
4407,
358,
326,
1801,
3627,
598,
326,
4024,
18,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2158,
2355,
261,
3890,
1578,
2845,
4223,
16,
509,
3247,
4024,
13,
2713,
1476,
1135,
203,
3639,
261,
9084,
2355,
2502,
13,
288,
203,
3639,
327,
7575,
67,
63,
79,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
12,
60... |
./partial_match/5/0xbF5B1c4958bFaB69710C20AB1fd7A67F2377EA8B/sources/contracts/test.sol | XfLobbyEnter (auto-generated event)/ XfLobbyExit (auto-generated event)/ DailyDataUpdate (auto-generated event)/ Claim (auto-generated event)/ ClaimAssist (auto-generated event)/ StakeStart (auto-generated event)/ StakeGoodAccounting(auto-generated event)/ StakeEnd ... | struct StakeCache {
uint40 _stakeId;
uint256 _stakedHearts;
uint256 _stakeShares;
uint256 _lockedDay;
uint256 _stakedDays;
uint256 _unlockedDay;
bool _isAutoStake;
}
| 16,836,558 | [
1,
4625,
348,
7953,
560,
30,
282,
1139,
74,
48,
947,
1637,
10237,
1377,
261,
6079,
17,
11168,
871,
13176,
225,
1139,
74,
48,
947,
1637,
6767,
4202,
261,
6079,
17,
11168,
871,
13176,
225,
463,
12857,
751,
1891,
282,
261,
6079,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
1958,
934,
911,
1649,
288,
203,
3639,
2254,
7132,
389,
334,
911,
548,
31,
203,
3639,
2254,
5034,
389,
334,
9477,
5256,
485,
87,
31,
203,
3639,
2254,
5034,
389,
334,
911,
24051,
31,
203,
3639,
2254,
5034,
389,
15091,
4245,
... |
/*
Copyright 2017 Dharma Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... | * Returns the terms contract parameters of a given issuance/ | function getTermsContractParameters(bytes32 agreementId)
public
view
onlyExtantEntry(agreementId)
returns (bytes32)
{
return registry[agreementId].termsContractParameters;
}
| 1,013,238 | [
1,
4625,
348,
7953,
560,
30,
380,
2860,
326,
6548,
6835,
1472,
434,
279,
864,
3385,
89,
1359,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3181,
5044,
8924,
2402,
12,
3890,
1578,
19602,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1338,
2482,
970,
1622,
12,
31135,
548,
13,
203,
3639,
1135,
261,
3890,
1578,
13,
203,
565,
288,
203,
3639,
327,
4023,
... |
//Address: 0x5401bb4729bd7f025b97399c3c92854ec299f81a
//Contract name: LOCIsale
//Balance: 0 Ether
//Verification Date: 12/17/2017
//Transacion Count: 4695
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/is... | this will be a timestamp that is calculated based on the # of hours a tranche rate is to be active for should be a % number between 0 and 100 should be 1, 2, 3, 4, etc... amount raised during tranche in wei amount sold during tranche in wei | struct DiscountTranche {
uint256 end;
uint8 discount;
uint8 round;
uint256 roundWeiRaised;
uint256 roundTokensSold;
}
DiscountTranche[] internal discountTranches;
uint8 internal currentDiscountTrancheIndex = 0;
uint8 internal discountTrancheLength = 0;
ev... | 5,362,987 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
903,
506,
279,
2858,
716,
353,
8894,
2511,
603,
326,
468,
434,
7507,
279,
13637,
18706,
4993,
353,
358,
506,
2695,
364,
1410,
506,
279,
738,
1300,
3086,
374,
471,
2130,
1410,
506,
404,
16,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
3035,
1883,
17730,
18706,
288,
203,
3639,
2254,
5034,
679,
31,
203,
3639,
2254,
28,
12137,
31,
203,
3639,
2254,
28,
3643,
31,
203,
3639,
2254,
5034,
3643,
3218,
77,
12649,
5918,
31,
203,
3639,
2254,
5034,
3643,
5157,
5... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
import "@uniswap/v2-periphery/contracts/libraries/UniswapV2Library.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-core/contracts/interfaces... | going from borrowed asset to new asset
| address[] memory swapPath = new address[](2); | 12,762,661 | [
1,
4625,
348,
7953,
560,
30,
225,
8554,
628,
29759,
329,
3310,
358,
394,
3310,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1758,
8526,
3778,
7720,
743,
273,
394,
1758,
8526,
12,
22,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/5/0x92D45A52c573849896d6D4Dff66819B95Cd94fe7/sources/contracts/CrowdFunding.sol | is everything working? | function createCampaigns(address _owner, string memory _title, string memory _description, uint256 _target, uint256 _deadline, string memory _image) public returns (uint256){
Campaign storage campaign = campaigns[numberOfCampaigns];
require(campaign.deadline < block.timestamp, "the deadline should ... | 1,905,026 | [
1,
4625,
348,
7953,
560,
30,
225,
353,
7756,
5960,
35,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13432,
87,
12,
2867,
389,
8443,
16,
533,
3778,
389,
2649,
16,
533,
3778,
389,
3384,
16,
2254,
5034,
389,
3299,
16,
2254,
5034,
389,
22097,
1369,
16,
533,
3778,
389,
2730,
13,
1071,
1135,
261,
11890,
5034,
15329,
... |
./full_match/97/0x9efe8bC635cA64c9A84B9C62a9Ea04cA1983F486/sources/project_/contracts/NFTlendingBorrowing.sol | Accept Bid by NFT ownerCalculating Aconomy Fee transfering Amount to NFT Owner transfering Amount to Protocol Owner | function AcceptBid(uint256 _NFTid, uint256 _bidId) external nonReentrant {
require(!Bids[_NFTid][_bidId].withdrawn, "Already withdrawn");
require(NFTdetails[_NFTid].listed, "It's not listed for Borrowing");
require(!NFTdetails[_NFTid].bidAccepted);
require(!Bids[_NFTid][_bidId].bidAc... | 5,020,628 | [
1,
4625,
348,
7953,
560,
30,
225,
8662,
605,
350,
635,
423,
4464,
3410,
30238,
432,
591,
362,
93,
30174,
7412,
310,
16811,
358,
423,
4464,
16837,
7412,
310,
16811,
358,
4547,
16837,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8662,
17763,
12,
11890,
5034,
389,
50,
4464,
350,
16,
2254,
5034,
389,
19773,
548,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
5,
38,
2232,
63,
67,
50,
4464,
350,
6362,
67,
19773,
548,
8009,
1918,
9446,
... |
//Address: 0x221535cbced4c264e53373d81b73c29d010832a5
//Contract name: MooToken
//Balance: 0 Ether
//Verification Date: 3/29/2018
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity ^0.4.17;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* fu... | Allows admin to suspend the sale. | function suspend() external onlyAdmin returns(bool) {
if (suspended == true) {
return false;
}
suspended = true;
SaleSuspended();
return true;
}
| 12,941,936 | [
1,
4625,
348,
7953,
560,
30,
225,
25619,
3981,
358,
20413,
326,
272,
5349,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20413,
1435,
3903,
1338,
4446,
1135,
12,
6430,
13,
288,
203,
3639,
309,
261,
87,
22942,
422,
638,
13,
288,
203,
5411,
327,
629,
31,
203,
3639,
289,
203,
3639,
21850,
273,
638,
31,
203,
3639,
348,
5349,
55,
22942,
5621... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "../../common/implementation/FixedPoint.sol";
// Simple contract used to withdraw liquidations using a DSProxy from legacy contracts (1.2.2 and below).
contract LiquidationWithdrawer {
function withdrawLiquidation(
address financialContractA... | Pushes the verified price for a requested query. Delete from the array. Instead of shifting the queries over, replace the contents of `indexToReplace` with the contents of the last index (unless it is the last index). | function pushPrice(
bytes32 identifier,
uint256 time,
int256 price
) external {
verifiedPrices[identifier][time] = Price(true, price, getCurrentTime());
QueryIndex storage queryIndex = queryIndices[identifier][time];
require(queryIndex.isValid, "Can't push prices... | 99,273 | [
1,
4625,
348,
7953,
560,
30,
225,
8547,
281,
326,
13808,
6205,
364,
279,
3764,
843,
18,
2504,
628,
326,
526,
18,
17561,
434,
699,
430,
1787,
326,
6218,
1879,
16,
1453,
326,
2939,
434,
1375,
1615,
774,
5729,
68,
598,
326,
2939,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1817,
5147,
12,
203,
3639,
1731,
1578,
2756,
16,
203,
3639,
2254,
5034,
813,
16,
203,
3639,
509,
5034,
6205,
203,
565,
262,
3903,
288,
203,
3639,
13808,
31862,
63,
5644,
6362,
957,
65,
273,
20137,
12,
3767,
16,
6205,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
/**
* @title Represents an ownable resource.
*/
contract Ownable {
address internal _owner;
event OwnershipTransferred(address previousOwner, address newOwner);
/**
* Constructor
* @param addr The owner of the smart contract
*/
c... | * @notice Defines the interface for whitelisting addresses./ | interface IAddressWhitelist {
function enableAddress (address addr) external;
function disableAddress (address addr) external;
function isWhitelistedAddress (address addr) external view returns (bool);
event OnAddressEnabled(address addr);
event OnAddressDisabled(address addr);
}
| 1,408,369 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
18003,
281,
326,
1560,
364,
10734,
310,
6138,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
5831,
467,
1887,
18927,
288,
203,
565,
445,
4237,
1887,
261,
2867,
3091,
13,
3903,
31,
203,
203,
565,
445,
4056,
1887,
261,
2867,
3091,
13,
3903,
31,
203,
203,
565,
445,
353,
18927,
329,
1887,
261,
2867,
3091,
13,
3903,
1476,
1... |
pragma solidity ^0.6.12;
/**
* @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 Returns the amount of tokens owned by `account`.
... | No rebalance implementation for lower fees and faster swaps Check balance may charge withdrawal fee | function withdraw(uint _shares) public {
uint r = _shares;
_burn(msg.sender, _shares);
uint b = token.balanceOf(address(this));
if (b < r) {
uint _withdraw = r.sub(b);
Controller(controller).withdraw(address(this), _withdraw);
uint _after = token.... | 7,945,222 | [
1,
4625,
348,
7953,
560,
30,
225,
2631,
283,
12296,
4471,
364,
2612,
1656,
281,
471,
12063,
1352,
6679,
2073,
11013,
2026,
13765,
598,
9446,
287,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
389,
30720,
13,
1071,
288,
203,
3639,
2254,
436,
273,
389,
30720,
31,
203,
3639,
389,
70,
321,
12,
3576,
18,
15330,
16,
389,
30720,
1769,
203,
203,
3639,
2254,
324,
273,
1147,
18,
12296,
951,
12,... |
./partial_match/42220/0x7ef2EA0939Fa35f3fA78616E3E12246324739203/sources/lib/staked-celo/contracts/Manager.sol | * @notice Calculates how many votes should be withdrawn from each deprecated group. @param withdrawal The total amount of votes that needs to be withdrawn. @return deprecatedGroupsWithdrawn The array of deprecated groups to be withdrawn from. @return deprecatedWithdrawalsPerGroup The amount of votes to withdraw from th... | function getDeprecatedGroupsWithdrawalDistribution(uint256 withdrawal)
internal
returns (
address[] memory deprecatedGroupsWithdrawn,
uint256[] memory deprecatedWithdrawalsPerGroup,
uint256 numberDeprecatedGroupsWithdrawn,
uint256 remainingWithdrawal
... | 3,497,690 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
26128,
3661,
4906,
19588,
1410,
506,
598,
9446,
82,
628,
1517,
6849,
1041,
18,
632,
891,
598,
9446,
287,
1021,
2078,
3844,
434,
19588,
716,
4260,
358,
506,
598,
9446,
82,
18,
632,
2463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
13534,
3621,
1190,
9446,
287,
9003,
12,
11890,
5034,
598,
9446,
287,
13,
203,
3639,
2713,
203,
3639,
1135,
261,
203,
5411,
1758,
8526,
3778,
6849,
3621,
1190,
9446,
82,
16,
203,
5411,
2254,
5034,
8526,
3778,
6849,
... |
./partial_match/1/0x9662833c1FC8f2AfF8569816208E8f7653eC8af4/sources/YouAreTheChampion.sol | * @dev Mints `tokenId` and transfers it to `to`. WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible Requirements: - `tokenId` must not exist. - `to` cannot be the zero address. Emits a {Transfer} event./ Check that tokenId was not minted by `_beforeTokenTransfer` hook Will not overflow unle... | function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId, 1);
require(!_exists(tokenId), "ERC721: token alre... | 2,889,536 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
28142,
1375,
2316,
548,
68,
471,
29375,
518,
358,
1375,
869,
8338,
9744,
30,
10858,
434,
333,
707,
353,
19169,
477,
11349,
16,
999,
288,
67,
4626,
49,
474,
97,
17334,
3323,
29076,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
81,
474,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
3631,
315,
654,
39,
27,
5340,
30,
312,
474,
358,
326,
3634,
1758,
8863,
203,
3639,
2583,
12,
... |
pragma solidity ^0.4.19;
contract CrowdsaleTokenInterface {
uint public decimals;
function addLockAddress(address addr, uint lock_time) public;
function mint(address _to, uint256 _amount) public returns (bool);
function finishMinting() public returns (bool);
}
contract CrowdsaleLimit {
usin... | low level token purchase function Unwanted state | function buyTokensCrowdsale(address receiver) internal /*stopInEmergency allowCrowdsaleAmountLimit payable*/ {
uint256 weiAmount = msg.value;
uint256 tokenAmount= 0;
if(getState() == State.PreFunding) {
if (weiAmount < PRESALE_ETH_IN_WEI_ACCEPTED_MIN) revert();
if((PRESALE_ETH_IN_WEI_FUND_MAX > 0) && ((presa... | 5,424,307 | [
1,
4625,
348,
7953,
560,
30,
225,
4587,
1801,
1147,
23701,
445,
1351,
25861,
919,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30143,
5157,
39,
492,
2377,
5349,
12,
2867,
5971,
13,
2713,
1748,
5681,
382,
1514,
24530,
1699,
39,
492,
2377,
5349,
6275,
3039,
8843,
429,
5549,
288,
203,
202,
11890,
5034,
732,
77,
6275,
273,
1234,
18,
1132,
31,
203,
... |
// SPDX-License-Identifier: MIT
pragma experimental ABIEncoderV2;
pragma solidity ^0.6.0;
pragma solidity ^0.6.0;
pragma solidity ^0.6.0;
pragma solidity ^0.6.2;
pragma solidity ^0.6.0;
pragma solidity ^0.6.0;
pragma solidity ^0.6.0;
pragma solidity ^0.6.0;
pragma solidity ^0.6.0;
pragma solidity ^0.6.0;
pragma solidi... | TokenFarm.solcontract TokenFarm is Ownable {contract HodlerPool is Ownable, TokenWrapper, RewardDistributionRecipient {using SafeERC20 for IERC20;string public name = "Dapp Token Farm";IERC20 public rewardToken = IERC20(address(0)); HRS TokenHrsToken public rewardToken;IERC20 private stakingToken = IERC20(address(0));... | contract HodlerPool is BaseHodlerPool {
using SafeMath for uint256;
using SafeERC20 for HrsToken;
using Library for Library.staker;
string public name = "Hodler Pool";
HrsToken private stakingToken;
address private devFundAccount;
uint private stakerLevelNULL = 999999;
uint256[] privat... | 1,527,289 | [
1,
4625,
348,
7953,
560,
30,
3155,
42,
4610,
18,
18281,
16351,
3155,
42,
4610,
353,
14223,
6914,
288,
16351,
670,
369,
749,
2864,
353,
14223,
6914,
16,
3155,
3611,
16,
534,
359,
1060,
9003,
18241,
288,
9940,
14060,
654,
39,
3462,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
670,
369,
749,
2864,
353,
3360,
44,
369,
749,
2864,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
670,
5453,
1345,
31,
203,
565,
1450,
18694,
364,
18694,
18,
334,
6388,
... |
./full_match/5/0xB1a73115267B8E225C992b8a0d5378e27AD3ec5e/sources/contracts/drop1.1.sol | parts[1] e parts[2] | function tokenURI(uint256 tokenId) override public view returns (string memory){
string[8] memory parts;
uint256 rand = random(string(abi.encodePacked(parts[0], toString(tokenId))));
uint256 greatness = rand % 1000;
if (greatness > 910) {
parts[1] = "Text 1 un... | 7,073,661 | [
1,
4625,
348,
7953,
560,
30,
225,
2140,
63,
21,
65,
425,
2140,
63,
22,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
3849,
1071,
1476,
1135,
261,
1080,
3778,
15329,
203,
3639,
533,
63,
28,
65,
3778,
2140,
31,
203,
203,
203,
203,
3639,
2254,
5034,
5605,
273,
2744,
12,
1080,
12,
21457,
18,
3... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// '0xLitecoin Token' contract
// Mineable ERC20 Token using Proof Of Work
//
// Symbol : 0xLTC
// Name : 0xLitecoin Token
// Total supply: 84,000,000.00
// Decimals : 8
//
// ----... | help debug mining software | function checkMintSolution(uint256 nonce, bytes32 challenge_digest, bytes32 challenge_number, uint testTarget) public view returns (bool success) {
bytes32 digest = keccak256(challenge_number,msg.sender,nonce);
if(uint256(digest) > testTarget) revert();
return (digest == challenge... | 2,058,318 | [
1,
4625,
348,
7953,
560,
30,
2809,
1198,
1131,
310,
17888,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
445,
866,
49,
474,
16135,
12,
11890,
5034,
7448,
16,
1731,
1578,
12948,
67,
10171,
16,
1731,
1578,
12948,
67,
2696,
16,
2254,
1842,
2326,
13,
1071,
1476,
1135,
261,
6430,
2216,
13,
288,
203,
203,
1850,
1731,
1578,
5403,
273... |
./partial_match/1/0x52Acbed747CEd4062640892e822483A42f32E6D2/sources/src/SfrxEthFraxOracle.sol | @title SfrxEthFraxOracle @author Jon Walch (Frax Finance) https://github.com/jonwalch @notice Drop in replacement for a chainlink oracle for price of sfrxEth in ETH ==================================================================== View Helpers ==================================================================== | contract SfrxEthFraxOracle is FraxOracle {
pragma solidity ^0.8.19;
import { FraxOracle, ConstructorParams as FraxOracleParams } from "src/abstracts/FraxOracle.sol";
constructor(FraxOracleParams memory params) FraxOracle(params) {}
function description() external pure override returns (string memory _descr... | 2,727,326 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
348,
4840,
17432,
451,
42,
354,
92,
23601,
632,
4161,
804,
265,
678,
287,
343,
261,
42,
354,
92,
9458,
1359,
13,
2333,
2207,
6662,
18,
832,
19,
78,
265,
91,
287,
343,
632,
20392,
1089... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
348,
4840,
17432,
451,
42,
354,
92,
23601,
353,
478,
354,
92,
23601,
288,
203,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
3657,
31,
203,
203,
203,
203,
5666,
288,
478,
354,
92,
23601,
16,
11417,
1370,
487,
... |
./full_match/42/0x315004Bd1003F2cd95A8Dc806Bb6cc02FD251CEa/sources/contracts/Test.sol | to borrow 100 units of x asset
| uint256 borrowAmt = 100 * 1e18; | 9,579,706 | [
1,
4625,
348,
7953,
560,
30,
225,
358,
29759,
2130,
4971,
434,
619,
3310,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
29759,
31787,
273,
2130,
380,
404,
73,
2643,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;
import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {
SafeERC20
} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {GnosisAuction} from ... | *********************************************** EVENTS/*********************************************** STRUCTS/* @notice Initialization parameters for the vault. @param _owner is the owner of the vault with critical permissions @param _feeRecipient is the address to recieve vault performance and management fees @para... | struct InitParams {
address _owner;
address _keeper;
address _feeRecipient;
uint256 _managementFee;
uint256 _performanceFee;
string _tokenName;
string _tokenSymbol;
address _optionsPremiumPricer;
address _strikeSelection;
uint32 _premiu... | 13,897,980 | [
1,
4625,
348,
7953,
560,
30,
20210,
1644,
11345,
225,
9964,
55,
19,
5021,
1644,
27243,
225,
7128,
9749,
55,
20308,
632,
20392,
26586,
1472,
364,
326,
9229,
18,
632,
891,
389,
8443,
353,
326,
3410,
434,
326,
9229,
598,
11239,
4371,
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,
1958,
4378,
1370,
288,
203,
3639,
1758,
389,
8443,
31,
203,
3639,
1758,
389,
79,
9868,
31,
203,
3639,
1758,
389,
21386,
18241,
31,
203,
3639,
2254,
5034,
389,
17381,
14667,
31,
203,
3639,
2254,
5034,
389,
16092,
1359,
14667,
... |
./full_match/5/0xE463999917Dcd586ab8ca4733fC5ACdD18cede8e/sources/contracts/PayrollNFT.sol | * @dev - It is possible to obtain whether userId is minted or not. - userIdがmintされているかどうか取得できます。/ | function getMintedUserId(string calldata userId) external view returns (bool) {
return _isSignatureMinted[userId];
}
| 7,052,493 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
300,
2597,
353,
3323,
358,
7161,
2856,
6249,
353,
312,
474,
329,
578,
486,
18,
300,
6249,
164,
228,
239,
81,
474,
164,
228,
248,
164,
229,
239,
164,
228,
104,
164,
228,
231,
164,
229,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2108,
474,
329,
10502,
12,
1080,
745,
892,
6249,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
291,
5374,
49,
474,
329,
63,
18991,
15533,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x63840797dA38b446e28C8d911fA685D4D653fD63/sources/ParkingToken.sol | ------------------------------------------------------------------------ Transfer the balance from token owner's account to `to` account - Owner's account must have sufficient balance to transfer - 0 value transfers are allowed ------------------------------------------------------------------------ | function transfer(address to, uint tokens) public onlyOwner returns (bool success) {
require(to != address(0));
require(tokens > 0);
require(balances[msg.sender] >= tokens);
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(toke... | 15,579,427 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
12279,
326,
11013,
628,
1147,
3410,
1807,
2236,
358,
1375,
869,
68,
2236,
300,
16837,
1807,
2236,
1297,
1240,
18662,
11013,
358,
7412,
300,
374,
460,
29375,
854,
2935,
8879,
17082,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
358,
16,
2254,
2430,
13,
1071,
1338,
5541,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
12,
7860,
405,
374,
1769,
203,
3639,
2583,
12,
70,
26488,... |
./full_match/44787/0x170Ed13b2671cB96c9F6CBd0099691C0046Ed026/sources/contracts/StarNFT.sol | emit Test(owner,_amount); | starToken.transfer(owner, _amount);
| 13,268,271 | [
1,
4625,
348,
7953,
560,
30,
225,
3626,
7766,
12,
8443,
16,
67,
8949,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10443,
1345,
18,
13866,
12,
8443,
16,
389,
8949,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xc51972112f899b9D02A2716e44FA4CcD1F066D55/sources/HashMe.sol | Function for the owner to configure a new round | function configureNewRound(uint256 maxLimit, uint256 depositSize) public onlyOwner {
RoundInfo memory newRound = RoundInfo({
maxLimit: maxLimit,
depositSize: depositSize,
currentTotal: 0,
isComplete: false
});
rounds.push(newRound);
cur... | 9,709,060 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
364,
326,
3410,
358,
5068,
279,
394,
3643,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5068,
1908,
11066,
12,
11890,
5034,
943,
3039,
16,
2254,
5034,
443,
1724,
1225,
13,
1071,
1338,
5541,
288,
203,
3639,
11370,
966,
3778,
394,
11066,
273,
11370,
966,
12590,
203,
5411,
943,
3039,
30,
943,
3039,
16,
203,
5... |
// SPDX-License-Identifier: BSD-4-Clause
pragma solidity 0.8.3;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./IOddzLiquidityPool.sol";
import "../Option/IOddzOption.sol";
/**
* @title Oddz USD Liquidity Pool
* @notice Accumulates liquidi... | * @title Oddz USD Liquidity Pool @notice Accumulates liquidity in USD from LPs/ | interface IOddzLiquidityPoolManager {
pragma solidity 0.8.3;
struct LockedLiquidity {
uint256 _amount;
uint256 _premium;
bool _locked;
address[] _pools;
uint256[] _share;
}
struct LiquidityParams {
uint256 _amount;
uint256 _expiration;
address... | 13,080,649 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
531,
449,
94,
587,
9903,
511,
18988,
24237,
8828,
632,
20392,
15980,
5283,
815,
4501,
372,
24237,
316,
587,
9903,
628,
511,
18124,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
1665,
449,
94,
48,
18988,
24237,
2864,
1318,
288,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
23,
31,
203,
565,
1958,
3488,
329,
48,
18988,
24237,
288,
203,
3639,
2254,
5034,
389,
8949,
31,
203,
3639,
2254,
5034,
389,
14... |
pragma solidity ^0.4.18;
/// @title SafeMath library
library SafeMath {
function mul(uint a, uint b) internal constant returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal constant returns (uint) {
uint c = a / b;
retu... | @dev Get max number @param a First number @param b Second number @return The bigger one :) | function max(uint a, uint b) pure internal returns(uint) {
return (a > b) ? a : b;
}
| 6,409,574 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
968,
943,
1300,
632,
891,
279,
5783,
1300,
632,
891,
324,
7631,
1300,
632,
2463,
1021,
18983,
1245,
294,
13,
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,
225,
445,
943,
12,
11890,
279,
16,
2254,
324,
13,
16618,
2713,
1135,
12,
11890,
13,
288,
203,
565,
327,
261,
69,
405,
324,
13,
692,
279,
294,
324,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.4;
// ERC1155Supply: Extension of ERC1155 that adds tracking of total supply per id
import "ERC1155MintBurnPackedBalance.sol";
import "ERC1155Metadata.sol";
import "SafeMath.sol";
import "Ownable.sol";
contract Frogs_ERC1155PBL is ERC1155MintBurnPackedBalance, ERC11... | max allowable tokens
| uint256 public constant MAX_TOKENS = 5000; | 1,135,153 | [
1,
4625,
348,
7953,
560,
30,
225,
943,
30727,
2430,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5381,
4552,
67,
8412,
55,
273,
20190,
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,
-1... |
./partial_match/4/0xFbABD992E7B2a263c820844AeBEE0Fd4214dF487/sources/FatCrowdSale.sol | ensure that user is whitelisted
| require(!whiteList.isWhiteListed(msg.sender),"FatMaker: no permistion"); | 8,515,950 | [
1,
4625,
348,
7953,
560,
30,
225,
3387,
716,
729,
353,
26944,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
5,
14739,
682,
18,
291,
13407,
682,
329,
12,
3576,
18,
15330,
3631,
6,
42,
270,
12373,
30,
1158,
4641,
376,
285,
8863,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x2B7F2621DB4007f99775d1B4039Ded661F347b3c/sources/contracts/ZodiakBeings.sol | * @notice Set the base URI/ | function setImgUri(string memory _imgUri) external onlyOwner {
imgUri = _imgUri;
}
| 9,722,940 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1000,
326,
1026,
3699,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
12804,
3006,
12,
1080,
3778,
389,
6081,
3006,
13,
3903,
1338,
5541,
288,
203,
3639,
3774,
3006,
273,
389,
6081,
3006,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// Copyright (C) 2020 Zerion Inc. <https://zerion.io>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This ... | Copyright (C) 2020 Zerion Inc. <https:zerion.io> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in... | interface ERC20 {
function approve(address, uint256) external returns (bool);
function transfer(address, uint256) external returns (bool);
function transferFrom(
address,
address,
uint256
) external returns (bool);
function name() external view returns (string memory);
... | 39,048 | [
1,
4625,
348,
7953,
560,
30,
225,
25417,
261,
39,
13,
26599,
20,
2285,
264,
285,
15090,
18,
411,
4528,
30,
24355,
285,
18,
1594,
34,
1220,
5402,
353,
4843,
17888,
30,
1846,
848,
5813,
887,
518,
471,
19,
280,
5612,
518,
3613,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
4232,
39,
3462,
288,
203,
565,
445,
6617,
537,
12,
2867,
16,
2254,
5034,
13,
3903,
1135,
261,
6430,
1769,
203,
203,
565,
445,
7412,
12,
2867,
16,
2254,
5034,
13,
3903,
1135,
261,
6430,
1769,
203,
203,
565,
445,
7412,
1265... |
pragma solidity ^0.5.8;
/**
*
* Manages data storage for a single CypherPoker hand (round), and provides some publicly-available utility functions.
*
* (C)opyright 2016
*
* This source code is protected by copyright and distributed under license.
* Please see the root LICENSE file for terms and conditions.
*
... | * Sets or resets a result value for an agreed player in the 'results' array. @param playerAddress The address of the player to set the result for. @param result The result value to set. If 0 the entry is removed from the 'results' array./ | function set_result(address playerAddress, uint256 result) public onlyAuthorized {
if (result == 0) {
delete results[playerAddress];
results[playerAddress] = result;
}
}
| 15,866,879 | [
1,
4625,
348,
7953,
560,
30,
380,
11511,
578,
20063,
279,
563,
460,
364,
392,
1737,
15656,
7291,
316,
326,
296,
4717,
11,
526,
18,
632,
891,
7291,
1887,
1021,
1758,
434,
326,
7291,
358,
444,
326,
563,
364,
18,
632,
891,
563,
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,
202,
915,
444,
67,
2088,
12,
2867,
7291,
1887,
16,
2254,
5034,
563,
13,
1071,
1338,
15341,
288,
203,
202,
202,
430,
261,
2088,
422,
374,
13,
288,
203,
9506,
1430,
1686,
63,
14872,
1887,
15533,
203,
1082,
202,
4717,
63,
14872,
1... |
./full_match/97/0x91E8A7Cb1f2f4B23768Cf03EDC5ec0E2C30E01Bc/sources/contracts/bomerang/Final/BoomArtBase.sol | on-chain whitelist setting ================================================================================ | function validate(address recipient) private view returns (bool) {
return _whitelist[recipient];
}
| 3,269,701 | [
1,
4625,
348,
7953,
560,
30,
225,
603,
17,
5639,
10734,
3637,
422,
9917,
26678,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1954,
12,
2867,
8027,
13,
3238,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
20409,
63,
20367,
15533,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.5.16;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
... | @return total amount of tokens | function totalSupply() external view returns (uint256 supply) {}
| 5,399,778 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2463,
2078,
3844,
434,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
14467,
13,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x1693252149b3eB4349fF1698609299D3966E8160/sources/contracts/SushiBar.sol | SushiBar is the coolest bar in town. You come in with some Sushi, and leave with more! The longer you stay, the more Sushi you get. This contract handles swapping to and from xSushi, SushiSwap's staking token. Define the Sushi token contract | contract NETHBar is ERC20("NETHBar", "NEINS"){
using SafeMath for uint256;
IERC20 public neth;
constructor(IERC20 _neth) public {
neth = _neth;
}
function enter(uint256 _amount) public {
uint256 totalSushi = neth.balanceOf(address(this));
uint256 totalShares = totalSupply(... | 14,161,415 | [
1,
4625,
348,
7953,
560,
30,
225,
348,
1218,
77,
5190,
353,
326,
27367,
395,
4653,
316,
358,
91,
82,
18,
4554,
12404,
316,
598,
2690,
348,
1218,
77,
16,
471,
8851,
598,
1898,
5,
1021,
7144,
1846,
23449,
16,
326,
1898,
348,
1218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15351,
44,
5190,
353,
4232,
39,
3462,
2932,
14843,
44,
5190,
3113,
315,
5407,
706,
55,
7923,
95,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
467,
654,
39,
3462,
1071,
290,
546,
31,
203,
203,
203,
565,
38... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import {L2ArbitrumMessenger} from "./L2ArbitrumMessenger.sol";
import {IMigrator} from "../../interfaces/IMigrator.sol";
import "../../proxy/ManagerProxyTarget.sol";
import "@openzeppelin/contracts/proxy/Clones.sol";
interface IBondingManager {
function bondF... | * @notice Sets L1Migrator @param _l1MigratorAddr L1Migrator address/ | function setL1Migrator(address _l1MigratorAddr)
external
onlyControllerOwner
{
l1MigratorAddr = _l1MigratorAddr;
emit L1MigratorUpdate(_l1MigratorAddr);
}
| 7,295,229 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
511,
21,
25483,
639,
632,
891,
389,
80,
21,
25483,
639,
3178,
511,
21,
25483,
639,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
48,
21,
25483,
639,
12,
2867,
389,
80,
21,
25483,
639,
3178,
13,
203,
3639,
3903,
203,
3639,
1338,
2933,
5541,
203,
565,
288,
203,
3639,
328,
21,
25483,
639,
3178,
273,
389,
80,
21,
25483,
639,
3178,
31,
203,
3... |
./partial_match/1/0x0aD3023F1FA7172a86d9867F519cF5642C4f81EA/sources/XPLUS.sol | if any account belongs to _isExcludedFromFee account then remove the fee | function _tokenTransfer(
address from,
address to,
uint256 amount
) private returns (bool) {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amoun... | 2,827,806 | [
1,
4625,
348,
7953,
560,
30,
309,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2316,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
... |
pragma solidity ^0.5.0;
import "./Token.sol";
contract EthSwap {
using SafeMath for uint256;
string public name = "EthSwap Instant Exchange";
Token public token;
uint256 public rate = 100;
event TokensPurchased(
address buyer,
address from,
address token,
... | Sets the token exchange rate Requires there be enough tokens available for purchase Transfers purchased tokens to buyer Emits TokensPurchased event | function buyTokens() public payable {
uint256 tokenAmount = msg.value.mul(rate);
require(token.balanceOf(address(this)) >= tokenAmount, 'All tokens have been purchased!');
token.transfer(msg.sender, tokenAmount);
emit TokensPurchased(msg.sender, address(this), address(token), toke... | 13,025,709 | [
1,
4625,
348,
7953,
560,
30,
225,
11511,
326,
1147,
7829,
4993,
16412,
1915,
506,
7304,
2430,
2319,
364,
23701,
2604,
18881,
5405,
343,
8905,
2430,
358,
27037,
7377,
1282,
13899,
10262,
343,
8905,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
5157,
1435,
1071,
8843,
429,
288,
203,
3639,
2254,
5034,
1147,
6275,
273,
1234,
18,
1132,
18,
16411,
12,
5141,
1769,
203,
203,
3639,
2583,
12,
2316,
18,
12296,
951,
12,
2867,
12,
2211,
3719,
1545,
1147,
6275,
16,... |
./full_match/84531/0x8190930bBf0Ad41F8f85Bc0cDC0a9bc43a07438a/sources/ApetimismLaunchpadNFT.sol | Constants Internal Public Variables | contract ApetimismLaunchpadNFT is ERC721AQueryable, Ownable, ReentrancyGuard /*, ERC2981*/ {
event Received(address, uint);
event RoundChanged(uint8);
event TotalMintedChanged(uint256);
string private ERR_INVALID_SIGNATURE = "Invalid sig";
string private ERR_DUP_NONCE = "Dup nonce";
string private ERR_UNM... | 11,502,775 | [
1,
4625,
348,
7953,
560,
30,
225,
5245,
3186,
7224,
23536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1716,
278,
381,
6228,
9569,
6982,
50,
4464,
353,
4232,
39,
27,
5340,
37,
1138,
429,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
1748,
16,
4232,
39,
5540,
11861,
5549,
288,
203,
225,
871,
21066,
12,
2867,
16,
2254,
1769,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.2;
pragma experimental ABIEncoderV2;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {ICo... | * @dev settle vault 0 and withdraw all locked collateral/ this action will always use vault id 1 | function _settleGammaVault() internal {
IController.ActionArgs[] memory actions = new IController.ActionArgs[](1);
actions[0] = IController.ActionArgs(
IController.ActionType.SettleVault,
);
controller.operate(actions);
}
| 12,547,312 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
444,
5929,
9229,
374,
471,
598,
9446,
777,
8586,
4508,
2045,
287,
19,
333,
1301,
903,
3712,
999,
9229,
612,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
542,
5929,
31300,
12003,
1435,
2713,
288,
203,
565,
467,
2933,
18,
1803,
2615,
8526,
3778,
4209,
273,
394,
467,
2933,
18,
1803,
2615,
8526,
12,
21,
1769,
203,
565,
4209,
63,
20,
65,
273,
467,
2933,
18,
1803,
2615... |
./full_match/80001/0x8d08b1A62755237FC3e610535d4c66aC3382AF76/sources/project_/contracts/QBEMetadata.sol | CenterSticker by tokenId | mapping(uint256 => CenterSticker) public tokenCenterSticker;
| 865,466 | [
1,
4625,
348,
7953,
560,
30,
225,
25766,
510,
5448,
635,
1147,
548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
25766,
510,
5448,
13,
1071,
1147,
8449,
510,
5448,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.7.6;
import "./Ownable.sol";
interface IPlugFactory {
function registerNewPlug(address) external;
function getUserBalance(uint256, address) external returns(uint256);
function chargePlug(uint256, address[] memory, uint256[] memory) external;
function dischargePlug(uint256, address[]... | function tokenWant() external view returns(address);function tokenStrategy() external view returns(address);function tokenReward() external view returns(address); | interface IPLUGV2 {
function upgradePlug(uint256) external;
function chargePlug(address[] memory, uint256[] memory) external;
function dischargePlug(address[] memory, uint256[] memory) external;
function donateToPlug(address[] memory, uint256[] memory) external;
function rebalancePlug() external;
... | 14,100,093 | [
1,
4625,
348,
7953,
560,
30,
445,
1147,
59,
970,
1435,
3903,
1476,
1135,
12,
2867,
1769,
915,
1147,
4525,
1435,
3903,
1476,
1135,
12,
2867,
1769,
915,
1147,
17631,
1060,
1435,
3903,
1476,
1135,
12,
2867,
1769,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
2971,
11778,
25269,
22,
288,
203,
565,
445,
8400,
1749,
637,
12,
11890,
5034,
13,
3903,
31,
203,
565,
445,
13765,
1749,
637,
12,
2867,
8526,
3778,
16,
2254,
5034,
8526,
3778,
13,
3903,
31,
203,
565,
445,
1015,
16385,
1749,
... |
./full_match/11155111/0xF88Dc8546CFd43A4E57c5F901d262e410Dfb29A7/sources/contracts/myToken.sol | Can use seconds, minutes, hours, days, etc
| addressTime[msg.sender] = block.timestamp + 1 minutes; | 3,842,558 | [
1,
4625,
348,
7953,
560,
30,
225,
4480,
999,
3974,
16,
6824,
16,
7507,
16,
4681,
16,
5527,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
950,
63,
3576,
18,
15330,
65,
273,
1203,
18,
5508,
397,
404,
6824,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.16 <0.7.0;
import '@openzeppelin/contracts/math/SafeMath.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
import '../interfaces/IWETH.sol';
import '../interfaces/IBalancer.sol';
import '../i... | @notice Purchases Trib using Eth. | function _purchaseTrib() internal {
uint256 amountIn = msg.value;
require(
IERC20(weth).balanceOf(address(this)) != 0,
'TribRouter: Weth deposit failed.'
);
require(
_purchase(msg.sender, amountIn),
'TribRouter: Trib purchase failed.'
);
}
| 7,218,558 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
14466,
343,
3304,
840,
495,
1450,
512,
451,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
12688,
12104,
1070,
495,
1435,
2713,
288,
203,
565,
2254,
5034,
3844,
382,
273,
1234,
18,
1132,
31,
203,
565,
2583,
12,
203,
1377,
467,
654,
39,
3462,
12,
91,
546,
2934,
12296,
951,
12,
2867,
12,
2211,
3719,
480,... |
./full_match/1/0x508f72F2cAe1a1B2bF25B05b5Ddf4be869b6A6DC/sources/contracts/nft/Evolution.sol | burn nft => evolution nft => true | contract Evolution is SafeOwnable, Verifier {
event NewEvolutionDirection(IBurnableERC721 burnNFT, IERC721 evolutionNFT, bool avaliable);
event Evoluted(address user, IBurnableERC721 burnNFT, uint[] burnNftId, IERC721 evolutionNFT, uint evolutionNftId);
mapping(IBurnableERC721 => mapping(IERC721 => bool))... | 16,477,554 | [
1,
4625,
348,
7953,
560,
30,
18305,
290,
1222,
516,
2113,
5889,
290,
1222,
516,
638,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
30964,
5889,
353,
14060,
5460,
429,
16,
6160,
1251,
288,
203,
203,
565,
871,
1166,
20861,
5889,
8212,
12,
13450,
321,
429,
654,
39,
27,
5340,
18305,
50,
4464,
16,
467,
654,
39,
27,
5340,
2113,
5889,
50,
4464,
16,
1426,
2... |
// SPDX-License-Identifier: Apache 2.0
// Copyright © 2021 Anton "BaldyAsh" Grigorev. All rights reserved.
pragma solidity ^0.8.0;
import "./NFTERC721Upgrade.sol";
import "../init/NFTInitCommon.sol";
import "../../../interfaces/INFTStaticMethods.sol";
import "../../../../common/interfaces/IERC721Metadata.sol";
import... | * @title ERC-721 Non-Fungible Token Standard, optional metadata extension/ | contract NFTERC721Metadata is IERC721Metadata, INFTERC721MetadataStaticMethods, NFTERC721Upgrade {
using NFTInitCommon for *;
using StringUtils for *;
function name_() external view override returns (string memory) {
return name();
}
function symbol_() external view override returns (stri... | 12,780,512 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
17,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
16,
3129,
1982,
2710,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
423,
42,
2560,
39,
27,
5340,
2277,
353,
467,
654,
39,
27,
5340,
2277,
16,
27114,
2560,
39,
27,
5340,
2277,
5788,
4712,
16,
423,
42,
2560,
39,
27,
5340,
10784,
288,
203,
565,
1450,
423,
4464,
2570,
6517,
364,
380,
31,
2... |
./full_match/43114/0xA57B3342D20e04414A16107338580A86CD915494/sources/test/a.sol | event SetVaultAddress(address indexed user, address indexed newAddress); | event UpdateEmissionRate(address indexed user, uint256 thunderPerBlock);
| 4,509,013 | [
1,
4625,
348,
7953,
560,
30,
225,
871,
1000,
12003,
1887,
12,
2867,
8808,
729,
16,
1758,
8808,
394,
1887,
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,... | [
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,
871,
2315,
1514,
19710,
4727,
12,
2867,
8808,
729,
16,
2254,
5034,
286,
9341,
2173,
1768,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity >= 0.6.2 < 0.7.0;
import "./Owned.sol";
import "./StandardToken.sol";
import "./Authority.sol";
import "./Controlled.sol";
//投票合约
contract Ballot is StandardToken,
Controlled,
Authority {
//合约创建的时候执行,执行合约的人是第一个owner
constructor() public {
// owner = msg.sender;
}
//ballot
str... | 目前获胜编号 proporsals; index0 = true;index1 = false; | function winningProposal() public view returns(uint _winningProposal) {
require(!iflastvotefinish, "myvote error3 : no vote runing right now");
uint winningCount = 0;
for (uint prop = 0; prop < proporsals.length; prop++) {
if (winningCount < proporsals[prop].voteCount) {
... | 12,701,315 | [
1,
4625,
348,
7953,
560,
30,
225,
168,
254,
111,
166,
236,
240,
169,
241,
120,
169,
230,
255,
168,
125,
249,
166,
242,
120,
2270,
1383,
1031,
31,
770,
20,
273,
638,
31,
1615,
21,
273,
629,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
5657,
2093,
14592,
1435,
1071,
1476,
1135,
12,
11890,
389,
8082,
2093,
14592,
13,
288,
203,
3639,
2583,
12,
5,
430,
2722,
25911,
13749,
16,
315,
4811,
25911,
555,
23,
294,
225,
1158,
12501,
1086,
310,
2145,
2037,
8863,
... |
/**
* Source Code first verified at https://etherscan.io on Friday, April 26, 2019
(UTC) */
pragma solidity >=0.4.21 <0.6.0;
/**
* @title SafeMath
* Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a,... | * Function to mint tokens @param _to The address that will receive the minted tokens. @param _amount The amount of tokens to mint. @return A boolean that indicates if the operation was successful./ | function mint(address _to, uint256 _amount) onlyOwner public returns (bool) {
require(_totalSupply.add(_amount) <= cap);
_totalSupply = _totalSupply.add(_amount);
_balances[_to] = _balances[_to].add(_amount);
emit Mint(_to, _amount);
emit Transfer(address(0), _to, _amount);
... | 1,824,353 | [
1,
4625,
348,
7953,
560,
30,
380,
4284,
358,
312,
474,
2430,
632,
891,
389,
869,
1021,
1758,
716,
903,
6798,
326,
312,
474,
329,
2430,
18,
632,
891,
389,
8949,
1021,
3844,
434,
2430,
358,
312,
474,
18,
632,
2463,
432,
1250,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1338,
5541,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
4963,
3088,
1283,
18,
1289,
24899,
8949,
13,
1648,
3523,
1769,
203,
203,
3639,
389,
4963,
... |
pragma solidity ^0.5.1;
contract Token {
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Transfer_data( address indexed _to, uint256 _value,string data);
event data_Marketplace(string data);
function transfer(address _to, uint256 _value) public returns (bool ... | Update total supply (1000 for example) (CHANGE THIS)
| totalSupply = 1000000000000000000000; | 1,020,485 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
2078,
14467,
261,
18088,
364,
3454,
13,
261,
14473,
20676,
13,
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,
2078,
3088,
1283,
273,
2130,
12648,
12648,
3784,
31,
7682,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0xa1a5143b4044cC3B710FfB8D7130b24a542536f0/sources/lib/forge-std/src/safeconsole.sol | Selector of `log(uint256,address,address,bool)`. | function log(uint256 p0, address p1, address p2, bool p3) internal pure {
bytes32 m0;
bytes32 m1;
bytes32 m2;
bytes32 m3;
bytes32 m4;
assembly {
m0 := mload(0x00)
m1 := mload(0x20)
m2 := mload(0x40)
m3 := mload(0x60)
... | 16,053,160 | [
1,
4625,
348,
7953,
560,
30,
225,
11703,
434,
1375,
1330,
12,
11890,
5034,
16,
2867,
16,
2867,
16,
6430,
13,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
613,
12,
11890,
5034,
293,
20,
16,
1758,
293,
21,
16,
1758,
293,
22,
16,
1426,
293,
23,
13,
2713,
16618,
288,
203,
3639,
1731,
1578,
312,
20,
31,
203,
3639,
1731,
1578,
312,
21,
31,
203,
3639,
1731,
1578,
312,
22,
... |
pragma solidity 0.5.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 balanceOf(address account) external view retur... | * dev 락 상태에서도 거래 가능한 언락 계정/* dev 계정 별로 lock value 만큼 잔고가 잠김 dev - 값이 0 일 때 : 잔고가 0 이어도 되므로 제한이 없는 것임. dev - 값이 LOCK_MAX 일 때 : 잔고가 uint256 의 최대값이므로 아예 잠긴 것임./ | constructor() public {
unlockTo(msg.sender, "");
}
| 7,390,065 | [
1,
4625,
348,
7953,
560,
30,
380,
4461,
225,
172,
256,
126,
225,
173,
230,
228,
174,
230,
255,
173,
250,
243,
173,
231,
255,
172,
242,
231,
225,
171,
114,
113,
172,
257,
251,
225,
171,
113,
227,
172,
237,
103,
174,
248,
255,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
1435,
1071,
288,
203,
203,
3639,
7186,
774,
12,
3576,
18,
15330,
16,
225,
1408,
1769,
203,
203,
565,
289,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x3318074aD502B7dee59463595fba226653944522/sources/EscapeVerifier.sol | solium-disable-next-line security/no-inline-assembly The address of the lookupTables must be 0. This is guaranteed by the ABI, as long as it is the first storage variable. This is an assumption in the implementation, and can be removed if the lookup table address is taken into account. | public {
lookupTables = tables;
assembly {
if gt(lookupTables_slot, 0) {
revert(0, 0)
}
}
}
The Merkle commitment uses the Pedersen hash variation described next:
- **Input:** A vector of 504 bits :math:`b_i`
The followi... | 2,770,711 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
5077,
17,
8394,
17,
4285,
17,
1369,
4373,
19,
2135,
17,
10047,
17,
28050,
1021,
1758,
434,
326,
3689,
6905,
1297,
506,
374,
18,
1220,
353,
15403,
635,
326,
10336,
45,
16,
487,
1525,
487,
518... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
1071,
288,
203,
3639,
3689,
6905,
273,
4606,
31,
203,
203,
3639,
19931,
288,
203,
5411,
309,
9879,
12,
8664,
6905,
67,
14194,
16,
374,
13,
288,
203,
7734,
15226,
12,
20,
16,
374,
13,
203,
5411,
289,
203,
203,
3639,
289,
... |
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 sho... | * Set the starting index for the collection/ Just a sanity case in the worst case if this function is called late (EVM only stores last 256 block hashes) Prevent default sequence | function setStartingIndex() public {
require(startingIndex == 0, "Starting index is already set");
require(startingIndexBlock != 0, "Starting index block must be set");
startingIndex = uint(blockhash(startingIndexBlock)) % MAX_BANANAS;
if (block.number.sub(startingIndexBlock... | 264,451 | [
1,
4625,
348,
7953,
560,
30,
380,
1000,
326,
5023,
770,
364,
326,
1849,
19,
12526,
279,
16267,
648,
316,
326,
22952,
648,
309,
333,
445,
353,
2566,
26374,
261,
41,
7397,
1338,
9064,
1142,
8303,
1203,
9869,
13,
19412,
805,
3102,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
11715,
1016,
1435,
1071,
288,
203,
3639,
2583,
12,
18526,
1016,
422,
374,
16,
315,
11715,
770,
353,
1818,
444,
8863,
203,
3639,
2583,
12,
18526,
1016,
1768,
480,
374,
16,
315,
11715,
770,
1203,
1297,
506,
444,
8863... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.6;
interface IMirrorWriteRaceOracle {
function verify(
address account,
uint256 index,
bytes32[] calldata merkleProof
) external returns (bool);
}
interface IERC721Receiver {
function onERC721Received(
address... | * @title Heroes @author MirrorXYZ A example of a sybil-resistant fair-mint NFT, using merkle proofs./ The address of the $WRITE Race Oracle for identity. | contract Heroes {
string public constant name = "Heroes";
string public constant symbol = "HEROES";
address immutable oracle;
mapping(address => bool) public claimed;
uint256 nextTokenId = 1;
string[] private firstNames = [
"Orie",
"Guadalupe",
"Nyx",
"Gertrude",
... | 10,441,417 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
670,
2439,
281,
632,
4161,
490,
8299,
23479,
432,
3454,
434,
279,
1393,
70,
330,
17,
455,
17175,
284,
1826,
17,
81,
474,
423,
4464,
16,
1450,
30235,
14601,
87,
18,
19,
1021,
1758,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
670,
2439,
281,
288,
203,
565,
533,
1071,
5381,
508,
273,
315,
44,
2439,
281,
14432,
203,
565,
533,
1071,
5381,
3273,
273,
315,
3891,
51,
3991,
14432,
203,
565,
1758,
11732,
20865,
31,
203,
565,
2874,
12,
2867,
516,
1426,
... |
./partial_match/8453/0xb5C7882e37359572FD1cCFAA276e7Fdf70145D42/sources/IceCreamFarm.sol | @notice Update burn admin address. @param _newBurnAdmin The new burn admin address. | function updateBurnAdmin(address _newBurnAdmin) external onlyOwner {
require(_newBurnAdmin != address(0), "MasterChefV2: Burn admin address must be valid");
require(_newBurnAdmin != burnAdmin, "MasterChefV2: Burn admin address is the same with current address");
address _oldAdmin = burnAdmin... | 16,708,566 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2315,
18305,
3981,
1758,
18,
632,
891,
389,
2704,
38,
321,
4446,
1021,
394,
18305,
3981,
1758,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
38,
321,
4446,
12,
2867,
389,
2704,
38,
321,
4446,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
2704,
38,
321,
4446,
480,
1758,
12,
20,
3631,
315,
7786,
39,
580,
74,
58,
22,
30,
605,
321,
3981,
1758,
129... |
// SPDX-License-Identifier: GPLv3
pragma solidity 0.7.2;
pragma experimental ABIEncoderV2;
import '../interfaces/IElasticToken.sol';
import '../libraries/ElasticMath.sol';
import '../core/ElasticDAO.sol';
import '../models/DAO.sol';
import '../models/Ecosystem.sol';
import '../models/Token.sol';
import '../models/To... | * @dev Moves @param _amount tokens from @param _from to @param _to using the allowance mechanism. @param _amount is then deducted from the caller's allowance Returns a boolean value indicating whether the operation succeeded Emits a {Transfer} event @return bool/ | function transferFrom(
address _from,
address _to,
uint256 _amount
) external override nonReentrant returns (bool) {
require(msg.sender == _from || _amount <= _allowances[_from][msg.sender], 'ERC20: Bad Caller');
if (msg.sender != _from && _allowances[_from][msg.sender] != uint256(-1)) {
... | 10,474,395 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
10829,
632,
891,
389,
8949,
2430,
628,
632,
891,
389,
2080,
358,
632,
891,
389,
869,
1450,
326,
1699,
1359,
12860,
18,
632,
891,
389,
8949,
353,
1508,
11140,
853,
329,
628,
326,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
7412,
1265,
12,
203,
565,
1758,
389,
2080,
16,
203,
565,
1758,
389,
869,
16,
203,
565,
2254,
5034,
389,
8949,
203,
225,
262,
3903,
3849,
1661,
426,
8230,
970,
1135,
261,
6430,
13,
288,
203,
565,
2583,
12,
3576,
18,
... |
./full_match/137/0xD6e87CE87382854e4817c9a8331C8F2341bc7264/sources/hh.sol | * @dev Returns the subtraction of two unsigned integers, reverting with custom message on overflow (when the result is negative). CAUTION: This function is deprecated because it requires allocating memory for the error message unnecessarily. For custom revert reasons use {trySub}. Counterpart to Solidity's `-` operator... | ... | 3,755,719 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
720,
25693,
434,
2795,
9088,
12321,
16,
15226,
310,
598,
1679,
883,
603,
9391,
261,
13723,
326,
563,
353,
6092,
2934,
6425,
13269,
30,
1220,
445,
353,
6849,
2724,
518,
4991,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
28524,
28524,
28524,
28524,
28524,
28524,
28524,
28524,
28524,
28524,
28524,
28524,
540,
445,
720,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
16,
533,
3778,
9324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
28524,
28524,
2... |
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./lib/token/BEP20/IBEP20.sol";
import "./lib/token/BEP20/SafeBEP20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "./ArcaneItems.sol";
/** @title ArcaneIte... | * @dev Mint NFTs from the ArcaneItems contract. Users can specify what itemId they want to mint. Users can claim once. There is a limit on how many are distributed. It requires RUNE balance to be > 0./ | function mint(
address _tokenReceiver,
string calldata _tokenURI,
uint16 _itemId,
uint256 _tokenId
) external onlyMinter returns (uint256) {
uint256 tokenId =
arcaneItems.mint(_tokenReceiver, _tokenURI, _itemId, _tokenId);
return tokenId;
}
| 13,070,038 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
423,
4464,
87,
628,
326,
1201,
4169,
73,
3126,
6835,
18,
12109,
848,
4800,
4121,
18424,
2898,
2545,
358,
312,
474,
18,
12109,
848,
7516,
3647,
18,
6149,
353,
279,
1800,
603,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
203,
3639,
1758,
389,
2316,
12952,
16,
203,
3639,
533,
745,
892,
389,
2316,
3098,
16,
203,
3639,
2254,
2313,
389,
1726,
548,
16,
203,
3639,
2254,
5034,
389,
2316,
548,
203,
565,
262,
3903,
1338,
49,
2761... |
./full_match/4/0x3f781F7E515eCEb0aB3f8269C77909b79552c402/sources/browser/buy.sol | car.owner.transfer(msg.value); 0xd589cD6DC26e663E6b767C07fc796B02bfA352ab 0xd589cD6DC26e663E6b767C07fc796B02bfA352ab | function reserved () public payable
inState(carState.Ready)
{
car.cartenant = msg.sender;
car.balance += msg.value;
car.startdate=block.timestamp;
state = carState.reserved;
emit ereserved(car.cartenant,msg.value ,car.startdate);
}
... | 792,945 | [
1,
4625,
348,
7953,
560,
30,
5926,
18,
8443,
18,
13866,
12,
3576,
18,
1132,
1769,
374,
7669,
25,
6675,
71,
40,
26,
5528,
5558,
73,
26,
4449,
41,
26,
70,
6669,
27,
39,
8642,
7142,
7235,
26,
38,
3103,
17156,
37,
4763,
22,
378,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
445,
8735,
1832,
1071,
8843,
429,
203,
4202,
316,
1119,
12,
9815,
1119,
18,
8367,
13,
203,
3639,
288,
203,
3639,
5926,
18,
11848,
6602,
273,
1234,
18,
15330,
31,
203,
377,
5926,
18,
12296,
1011,
1234,
18,
1132,
31,
203,
5... |
./full_match/1/0xDb8d79C775452a3929b86ac5DEaB3e9d38e1c006/sources/contracts/manifold/lazyclaim/ERC1155LazyPayableClaim.sol | * See {IERC1155LazyPayableClaim-airdrop}./ Fetch the claim | function airdrop(address creatorContractAddress, uint256 instanceId, address[] calldata recipients,
uint256[] calldata amounts) external override creatorAdminRequired(creatorContractAddress) {
require(recipients.length == amounts.length, "Unequal number of recipients and amounts provided");
... | 3,204,528 | [
1,
4625,
348,
7953,
560,
30,
380,
2164,
288,
45,
654,
39,
2499,
2539,
14443,
9148,
429,
9762,
17,
1826,
7285,
5496,
19,
8065,
326,
7516,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
279,
6909,
1764,
12,
2867,
11784,
8924,
1887,
16,
2254,
5034,
17608,
16,
1758,
8526,
745,
892,
12045,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
30980,
13,
3903,
3849,
11784,
4446,
3705,
12,
20394,
8924,
1887,
13,
288,
... |
./full_match/1/0x1d372cfD924880E5C1E3900D4E6aE41B6cF4dfF3/sources/contracts/flattened/Degov.sol | * @notice Initialize the token with policy address and pool for the token distribution @param degovDaiLpPool_ Address of the pool contract where newly minted degov tokens are sent./ | function initialize(address degovDaiLpPool_) external initializer {
_mint(degovDaiLpPool_, TOTAL_SUPPLY);
}
| 8,353,102 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9190,
326,
1147,
598,
3329,
1758,
471,
2845,
364,
326,
1147,
7006,
632,
891,
5843,
1527,
40,
10658,
48,
84,
2864,
67,
5267,
434,
326,
2845,
6835,
1625,
10894,
312,
474,
329,
5843,
1527,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
12,
2867,
5843,
1527,
40,
10658,
48,
84,
2864,
67,
13,
3903,
12562,
288,
203,
3639,
389,
81,
474,
12,
9923,
1527,
40,
10658,
48,
84,
2864,
67,
16,
399,
19851,
67,
13272,
23893,
1769,
203,
565,
289,
203,
203,
2... |
pragma solidity ^0.4.24;
import "./Owned.sol";
import "./SGDz.sol";
import "./StashFactory.sol";
import "./Bank.sol";
contract GridlockQueue is Owned {// Regulator node (MAS) should be the owner
function GridlockQueue() {
owner = msg.sender;
agentState = AgentState.Normal;
/* default conf... | Note that this modifier is only added to resolution method, so if nobody has started to resolve then one can still join even if time's up. | mapping(address => uint) lastPingTime;
| 14,123,210 | [
1,
4625,
348,
7953,
560,
30,
225,
3609,
716,
333,
9606,
353,
1338,
3096,
358,
7861,
707,
16,
1427,
309,
290,
947,
973,
711,
5746,
358,
2245,
1508,
1245,
848,
4859,
1233,
5456,
309,
813,
1807,
731,
18,
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,
2874,
12,
2867,
516,
2254,
13,
1142,
17223,
950,
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,
-10... |