file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/100/0xdB915c418B850c5556eEdd49e5b56E35Bec9708a/sources/concFr.sol | @notice Cancels membership proposal in `DAO` and returns `tribute` deposit to `applicant` in `wETH9` or native asset. @param proposalId # associated with `DAO` proposal. @param unwrap Flags whether to return `wETH9` or native asset to `applicant`. @dev Can only be called by `applicant` associated with `proposalId`. Ca... | function cancelMembershipProposal(uint256 proposalId, bool unwrap) external {
App storage app = applications[proposalId];
require(msg.sender == app.applicant, "NOT_APPLICANT");
dao.cancelProposal(proposalId);
dao.withdrawBalance(address(wETH9), app.tribute);
... | 14,275,326 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10347,
87,
12459,
14708,
316,
1375,
18485,
68,
471,
1135,
1375,
887,
68,
443,
1724,
358,
1375,
438,
1780,
970,
68,
316,
1375,
91,
1584,
44,
29,
68,
578,
6448,
3310,
18,
632,
891,
14708... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3755,
13447,
14592,
12,
11890,
5034,
14708,
548,
16,
1426,
11014,
13,
3903,
288,
203,
3639,
4677,
2502,
595,
273,
12165,
63,
685,
8016,
548,
15533,
7010,
540,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
595,
18,
438,
178... |
contract Throw {
modifier sentValue() {
require(msg.value > 0);
_;
}
constructor() public payable sentValue {
// require(msg.value > 0);
//if (msg.value == 0)
// throw;
}
function otherFunction() public payable sentValue {
// require(msg.value > 0);
}
... | require(msg.value > 0); | function otherFunction() public payable sentValue {
}
| 6,345,208 | [
1,
4625,
348,
7953,
560,
30,
225,
2583,
12,
3576,
18,
1132,
405,
374,
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,
565,
445,
1308,
2083,
1435,
1071,
8843,
429,
3271,
620,
288,
203,
565,
289,
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,
-10... |
./full_match/222000222/0x1f53E116c31F171e59f45f0752AEc5d1F5aA3714/sources/contracts/libraries/MELDLibrary.sol | performs chained getAmountOut calculations on any number of pairs | function getAmountsOut(
address factory,
uint256 amountIn,
address[] memory path
) internal view returns (uint256[] memory amounts) {
require(path.length >= 2, "MELDLibrary: INVALID_PATH");
amounts = new uint256[](path.length);
amounts[0] = amountIn;
for (... | 13,222,754 | [
1,
4625,
348,
7953,
560,
30,
225,
11199,
20269,
24418,
1182,
20882,
603,
1281,
1300,
434,
5574,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
24418,
87,
1182,
12,
203,
3639,
1758,
3272,
16,
203,
3639,
2254,
5034,
3844,
382,
16,
203,
3639,
1758,
8526,
3778,
589,
203,
565,
262,
2713,
1476,
1135,
261,
11890,
5034,
8526,
3778,
30980,
13,
288,
203,
3639,
2583,
12,... |
./full_match/1/0xF647f29860335E064fAc9f1Fe28BC8C9fd5331b0/sources/contracts/ERC721A-OCMfers.sol | * @dev Transfers `tokenId` from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event./ Th... | function transferFrom(
address from,
address to,
uint256 tokenId
) public payable virtual override {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();
(uint2... | 16,475,328 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
1375,
2316,
548,
68,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
29076,
30,
300,
1375,
2080,
68,
2780,
506,
326,
3634,
1758,
18,
300,
1375,
869,
68,
2780,
506,
326,
3634,
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,
565,
445,
7412,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
1071,
8843,
429,
5024,
3849,
288,
203,
3639,
2254,
5034,
2807,
5460,
12565,
4420,
329,
273,
389,
2920,... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT130594' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT130594
// Name : ADZbuzz Ew.com Community Token
// Total suppl... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract ADZbuzzCommunityToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
... | 10,226,510 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
6835,
11738,
62,
70,
9510,
12136,
13352,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
3639,
533,
1071,
3273,
31,
203,
3639,
533,
1071,
225,
508,
31,
203,
3639,
2254,
28,
1071,
15105,
31,
203... |
./partial_match/1/0x015C7C7A7D65bbdb117C573007219107BD7486f9/sources/InstantRefundRelay.sol | * @param _relayTx A relay tx containing the job to execute @param _gasRefund Gas amount to refund @dev Only authorised relayer can execute relay jobs and they are refunded gas at the end of the call. Critically, if the relay job fails, we can simply catch exception and continue with the refund./ The msg.sender chec... | function execute(RelayTx calldata _relayTx, uint _gasRefund) external {
uint gasStarted = gasleft();
require(relayers[msg.sender], "Relayer must call this function.");
require(gasleft() > _relayTx.gasLimit.div(63).add(_relayTx.gasLimit).add(1000), "Not enough gas supplied.");
(boo... | 3,920,248 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
389,
2878,
528,
4188,
432,
18874,
2229,
4191,
326,
1719,
358,
1836,
632,
891,
389,
31604,
21537,
31849,
3844,
358,
16255,
632,
5206,
5098,
2869,
5918,
1279,
1773,
848,
1836,
18874,
6550,
471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
12,
27186,
4188,
745,
892,
389,
2878,
528,
4188,
16,
2254,
389,
31604,
21537,
13,
3903,
288,
203,
3639,
2254,
16189,
9217,
273,
16189,
4482,
5621,
203,
203,
3639,
2583,
12,
2878,
3907,
63,
3576,
18,
15330,
6487,
3... |
./partial_match/1/0xc380c6640FB0562A101AAf6862f278c0A172e067/sources/UniswapV3Medianizer.sol | @notice Fetches time-weighted average tick using Uniswap V3 oracle @notice Updated from OracleLibrary code to allow for setting an end timestamp to the TWAP @param pool Address of Uniswap V3 pool that we want to observe @param periodStartSecondsAgo Number of seconds in the past to start calculating time-weighted avera... | function consult(
address pool,
uint32 periodStartSecondsAgo,
uint32 periodEndSecondsAgo
) internal view returns (int24 timeWeightedAverageTick) {
require(periodStartSecondsAgo != 0, "BP");
uint32 period = periodStartSecondsAgo - periodEndSecondsAgo;
uint32[] me... | 2,710,987 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
8065,
281,
813,
17,
30890,
8164,
4024,
1450,
1351,
291,
91,
438,
776,
23,
20865,
632,
20392,
19301,
628,
28544,
9313,
981,
358,
1699,
364,
3637,
392,
679,
2858,
358,
326,
24722,
2203,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
27710,
12,
203,
3639,
1758,
2845,
16,
203,
3639,
2254,
1578,
3879,
1685,
6762,
2577,
83,
16,
203,
3639,
2254,
1578,
3879,
1638,
6762,
2577,
83,
203,
565,
262,
2713,
1476,
1135,
261,
474,
3247,
813,
6544,
329,
17115,
626... |
./full_match/4/0x919febb6648cE9015dC71E924FedFc91A56b9a0b/sources/contracts/Comptroller.sol | * @notice Add the market to the borrower's "assets in" for liquidity calculations @param cToken The market to enter @param borrower The address of the account to modify @return Success indicator for whether the market was entered/ market is not listed, cannot join already joined | function addToMarketInternal(CToken cToken, address borrower) internal returns (Error) {
Market storage marketToJoin = markets[address(cToken)];
if (!marketToJoin.isListed) {
return Error.MARKET_NOT_LISTED;
}
if (marketToJoin.accountMembership[borrower] == true) {
... | 770,119 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1436,
326,
13667,
358,
326,
29759,
264,
1807,
315,
9971,
316,
6,
364,
4501,
372,
24237,
20882,
632,
891,
276,
1345,
1021,
13667,
358,
6103,
632,
891,
29759,
264,
1021,
1758,
434,
326,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
9604,
3882,
278,
3061,
12,
1268,
969,
276,
1345,
16,
1758,
29759,
264,
13,
2713,
1135,
261,
668,
13,
288,
203,
3639,
6622,
278,
2502,
13667,
774,
4572,
273,
2267,
2413,
63,
2867,
12,
71,
1345,
13,
15533,
203,
203,
363... |
pragma solidity ^0.6.0;
//solidity version might change so code will change accordingly
contract TodoList {
uint256 public taskCount = 0;
// Making a struct as class or something related to make
// object that will store our necessary data
struct Task {
uint256 id;
string content;
... | solidity version might change so code will change accordingly Making a struct as class or something related to make object that will store our necessary data | contract TodoList {
uint256 public taskCount = 0;
struct Task {
uint256 id;
string content;
bool completed;
}
event TaskCreated(uint256 id, string content, bool completed);
event TaskCompleted(uint256 id, bool completed);
mapping(uint256 => Task) public task;
cons... | 12,677,442 | [
1,
4625,
348,
7953,
560,
30,
18035,
560,
1177,
4825,
2549,
1427,
981,
903,
2549,
15905,
490,
6159,
279,
1958,
487,
667,
578,
5943,
3746,
358,
1221,
733,
716,
903,
1707,
3134,
4573,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
399,
7370,
682,
288,
203,
565,
2254,
5034,
1071,
1562,
1380,
273,
374,
31,
203,
565,
1958,
3837,
288,
203,
3639,
2254,
5034,
612,
31,
203,
3639,
533,
913,
31,
203,
3639,
1426,
5951,
31,
203,
565,
289,
203,
203,
203,
565,... |
/*
Copyright (c) 2020 Fuel Labs
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | Select Root Producer | function selectRootProducer(transactionRoot) -> rootProducer {
rootProducer := load32(transactionRoot, 0)
}
| 12,672,898 | [
1,
4625,
348,
7953,
560,
30,
225,
6766,
7450,
21123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
445,
2027,
2375,
12140,
12,
7958,
2375,
13,
317,
1365,
12140,
288,
203,
7734,
1365,
12140,
519,
1262,
1578,
12,
7958,
2375,
16,
374,
13,
203,
5411,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: Unlicense
// ICompound.sol
// This is free and unencumbered software released into the public domain.
// Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commerc... | from https:github.com/compound-finance/compound-protocol/blob/master/contracts/CTokenInterfaces.sol for non cETH only for cETH only for non cETH only for cETH only only in cETH non cETH only | interface IcERC20 is IERC20 {
function redeem(uint redeemTokens) external returns (uint);
function borrow(uint borrowAmount) external returns (uint);
function repayBorrow(uint repayAmount) external returns (uint);
function repayBorrow() external payable;
function repayBorrowBehalf(address borrower, uint r... | 7,292,194 | [
1,
4625,
348,
7953,
560,
30,
225,
628,
2333,
30,
6662,
18,
832,
19,
22585,
17,
926,
1359,
19,
22585,
17,
8373,
19,
10721,
19,
7525,
19,
16351,
87,
19,
1268,
969,
10273,
18,
18281,
364,
1661,
276,
1584,
44,
1338,
364,
276,
1584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
71,
654,
39,
3462,
353,
467,
654,
39,
3462,
288,
203,
225,
445,
283,
24903,
12,
11890,
283,
24903,
5157,
13,
3903,
1135,
261,
11890,
1769,
203,
203,
225,
445,
29759,
12,
11890,
29759,
6275,
13,
3903,
1135,
261,
11890,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './Ownable.sol';
contract eVote is Ownable{
mapping (address => bool) public isVotedMapping;
uint participantCount;
modifier onlyAllowed() {
require(!isVotedMapping[msg.sender], "You already voted!");
_;
}
mapping (s... | function to cast vote - one add one vote | function castVote(string memory _name) public onlyAllowed{
participantMapping[_name] += 1;
isVotedMapping[msg.sender] = true;
}
| 12,969,308 | [
1,
4625,
348,
7953,
560,
30,
282,
445,
358,
4812,
12501,
300,
1245,
527,
1245,
12501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4812,
19338,
12,
1080,
3778,
389,
529,
13,
1071,
1338,
5042,
95,
203,
3639,
14188,
3233,
63,
67,
529,
65,
1011,
404,
31,
203,
3639,
353,
58,
16474,
3233,
63,
3576,
18,
15330,
65,
273,
638,
31,
203,
565,
289,
203,
20... |
./full_match/44787/0x0e7B5EeaC601d73394fbf39EF00fF8F3FBa12495/sources/Contracts/AuctionSPU.sol | @notice End the auction @dev Once ended only no more bids are allowed , no transfers are done yet | function endAuction() external onlyOwner auctionStarted {
require(block.timestamp >= endAt, "Not Ended");
require(!ended, "Already Ended");
ended = true;
emit EndAuction(highestBidder, highestBid);
}
| 13,241,388 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4403,
326,
279,
4062,
632,
5206,
12419,
16926,
1338,
1158,
1898,
30534,
854,
2935,
269,
1158,
29375,
854,
2731,
4671,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
679,
37,
4062,
1435,
3903,
1338,
5541,
279,
4062,
9217,
288,
203,
3639,
2583,
12,
2629,
18,
5508,
1545,
679,
861,
16,
315,
1248,
1374,
785,
8863,
203,
3639,
2583,
12,
5,
3934,
16,
315,
9430,
1374,
785,
8863,
203,
203,... |
./partial_match/3/0xD4Bcc3f1C483Ea10fDb97523357CA660E6B3c71E/sources/KittyContract.sol | @notice Transfers the ownership of an NFT from one address to another address @dev Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. ... | function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId,
bytes calldata _data
) external onlyApproved(_tokenId) notZeroAddress(_to) {
require(_from == _ownerOf(_tokenId), "from address not kitty owner");
_safeTransfer(_from, _to, _tokenId, _data);
... | 5,083,839 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2604,
18881,
326,
23178,
434,
392,
423,
4464,
628,
1245,
1758,
358,
4042,
1758,
632,
5206,
22435,
3308,
1375,
3576,
18,
15330,
68,
353,
326,
783,
3410,
16,
392,
10799,
225,
3726,
16,
578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4183,
5912,
1265,
12,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
2316,
548,
16,
203,
3639,
1731,
745,
892,
389,
892,
203,
565,
262,
3903,
1338,
31639,
24899,
2316,
548,
... |
pragma solidity ^0.4.0;
/*
# # ( )
___#_#___|__
_ |____________| _
_=====| | | | | |==== _
=====| |.---------------------------. | |====
<----------------... | Checking that the owner is not sending the ship to himself
| require (msg.sender != _receiver); | 1,837,537 | [
1,
4625,
348,
7953,
560,
30,
225,
24471,
716,
326,
3410,
353,
486,
5431,
326,
24316,
358,
366,
381,
2890,
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,
... | [
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,
3639,
2583,
261,
3576,
18,
15330,
480,
389,
24454,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract Z_ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint2... | cryptocurrency exchange office ether address, for monitorig purpose | address[] public cryptocurrency_exchange_company_accounts;
| 13,028,544 | [
1,
4625,
348,
7953,
560,
30,
225,
13231,
504,
295,
3040,
7829,
3397,
1812,
225,
225,
2437,
1758,
16,
364,
6438,
360,
13115,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
8526,
1071,
13231,
504,
295,
3040,
67,
16641,
67,
16840,
67,
13739,
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,
-1... |
pragma solidity ^0.4.24;
// v1.0
import "../../lib/ownership/Upgradable.sol";
import "../../lib/lifecycle/Destructible.sol";
import "../bondage/BondageInterface.sol";
import "./ArbiterInterface.sol";
import "../database/DatabaseInterface.sol";
contract Arbiter is Destructible, ArbiterInterface, Upgradable {
// C... | @dev get last subscription block number | function getPreBlockEnd(
address providerAddress,
address subscriberAddress,
bytes32 endpoint
)
public
view
returns (uint96)
{
return uint96(db.getNumber(keccak256(abi.encodePacked('subscriptions', providerAddress, subscriberAddress, endpoint, 'preBloc... | 1,003,847 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
336,
1142,
4915,
1203,
1300,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12822,
1768,
1638,
12,
203,
3639,
1758,
2893,
1887,
16,
203,
3639,
1758,
9467,
1887,
16,
203,
3639,
1731,
1578,
2494,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
10525,
13,
203,
565,
28... |
./full_match/11155111/0xc2A92e838E6E9e4300a50D0FC27d5c7e5A799483/sources/src/DripsDeployer.sol | @notice Computes the deterministic address of a contract deployed by a deployer. The contract doesn't need to be deployed yet, it's a hypothetical address. @param salt The salt used for deployment. @param deployer The address of the deployer of the proxy and the contract. @return addr The deployed contract's address. | function computeAddress(bytes32 salt, address deployer) internal pure returns (address addr) {
(, addr) = _computeAddress(salt, deployer);
}
| 3,795,540 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
14169,
281,
326,
25112,
1758,
434,
279,
6835,
19357,
635,
279,
7286,
264,
18,
1021,
6835,
3302,
1404,
1608,
358,
506,
19357,
4671,
16,
518,
1807,
279,
28350,
278,
1706,
1758,
18,
632,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3671,
1887,
12,
3890,
1578,
4286,
16,
1758,
7286,
264,
13,
2713,
16618,
1135,
261,
2867,
3091,
13,
288,
203,
3639,
261,
16,
3091,
13,
273,
389,
9200,
1887,
12,
5759,
16,
7286,
264,
1769,
203,
565,
289,
203,
203,
2,
... |
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... | prevent the same answer from awarding twice
| if(solution != 0x0) revert(); | 13,003,813 | [
1,
4625,
348,
7953,
560,
30,
5309,
326,
1967,
5803,
628,
279,
2913,
310,
13605,
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,
2868,
309,
12,
13385,
480,
374,
92,
20,
13,
15226,
5621,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x6A55dBe285643bb8194153b65a38eB2a3a0E49Ed/sources/Bats.sol | * @dev Returns number of stages./ | function getNumberStages() external view override returns (uint256) {
return _mintStages.length;
}
| 2,769,131 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
1300,
434,
20298,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18491,
31359,
1435,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
81,
474,
31359,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/80001/0x2f6D46E2fe6D996cee9E7fA5b120a0a14d5FEd58/sources/LuckyTickets.sol | maps the winners to there winnings
| mapping(address => uint256) public winnings; | 5,691,132 | [
1,
4625,
348,
7953,
560,
30,
225,
7565,
326,
5657,
9646,
358,
1915,
5657,
82,
899,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
5657,
82,
899,
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/1/0x9aBbF467Ac8459Ea5C084e219CAD3F59CAFb99E4/sources/EasyBid.sol | user user hasLiveBid to true | bidder[msg.sender].hasLiveBid = true;
| 2,820,411 | [
1,
4625,
348,
7953,
560,
30,
729,
729,
711,
12328,
17763,
358,
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,
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,
9949,
765,
63,
3576,
18,
15330,
8009,
5332,
12328,
17763,
273,
638,
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,
-... |
/**
*Submitted for verification at Etherscan.io on 2021-06-30
*/
// SPDX-License-Identifier: Unlicense
pragma solidity^0.8.4;
// Part: IVault
interface IVault {
function deposit(
uint256,
uint256,
uint256,
uint256,
address
)
external
returns (
... | * @notice Calculates the vault's total holdings of token0 and token1 - in other words, how much of each token the vault would hold if it withdrew all its liquidity from Uniswap./ | function getTotalAmounts() public view override returns (uint256 total0, uint256 total1) {
(uint256 baseAmount0, uint256 baseAmount1) = getPositionAmounts(baseLower, baseUpper);
(uint256 limitAmount0, uint256 limitAmount1) = getPositionAmounts(limitLower, limitUpper);
total0 = getBalance0().... | 310,243 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
26128,
326,
9229,
1807,
2078,
6887,
899,
434,
1147,
20,
471,
1147,
21,
300,
316,
1308,
4511,
16,
3661,
9816,
434,
1517,
1147,
326,
9229,
4102,
6887,
309,
518,
598,
72,
16052,
777,
2097,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12831,
6275,
87,
1435,
1071,
1476,
3849,
1135,
261,
11890,
5034,
2078,
20,
16,
2254,
5034,
2078,
21,
13,
288,
203,
3639,
261,
11890,
5034,
1026,
6275,
20,
16,
2254,
5034,
1026,
6275,
21,
13,
273,
14441,
6275,
87,
12,
... |
// File: contracts/interfaces/IUniswapRouterV2Minimal.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.12;
// used by ST contract to auto-harvest sushi as USDC
interface IUniswapV2Router02Minimal {
//function factory() external pure returns (address);
//function WETH() external pure returns (address);... | used by ST contract to auto-harvest sushi as USDCfunction factory() external pure returns (address);function WETH() external pure returns (address); | interface IUniswapV2Router02Minimal {
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
pragma solidity >=0.6.12;
}
| 945,265 | [
1,
4625,
348,
7953,
560,
30,
225,
1399,
635,
2347,
6835,
358,
3656,
17,
30250,
26923,
272,
1218,
77,
487,
11836,
5528,
915,
3272,
1435,
3903,
16618,
1135,
261,
2867,
1769,
915,
678,
1584,
44,
1435,
3903,
16618,
1135,
261,
2867,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5831,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
2930,
2840,
288,
203,
565,
445,
7720,
14332,
5157,
1290,
5157,
12,
203,
3639,
2254,
3844,
382,
16,
203,
3639,
2254,
3844,
1182,
2930,
16,
203,
3639,
1758,
8526,
745,
892,
589,
1... |
./partial_match/1/0x0A451c98F69372b27E3Ba13f4D0e594CF3119201/sources/SmolCoin.sol | Anti-bot and anti-whale mappings and variables | contract SmolCoin is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingAddress;
address public devW... | 15,764,293 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
9425,
355,
27055,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
31,... |
./partial_match/1/0x8f9A8Dc65A423C7Dec9261aA6010DB738407C879/sources/PumpFarm.sol | Address of LP token contract.
| IERC20 lpToken; | 3,584,959 | [
1,
4625,
348,
7953,
560,
30,
225,
5267,
434,
511,
52,
1147,
6835,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
654,
39,
3462,
12423,
1345,
31,
7734,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.18;
import "../../contracts/apps/AragonApp.sol";
contract AppStubConditionalRecovery is AragonApp {
function allowRecoverability(address token) public view returns (bool) {
// Doesn't allow to recover ether
return token != address(0);
}
} | Doesn't allow to recover ether | function allowRecoverability(address token) public view returns (bool) {
return token != address(0);
}
| 13,140,773 | [
1,
4625,
348,
7953,
560,
30,
225,
9637,
82,
1404,
1699,
358,
5910,
225,
2437,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
1699,
27622,
2967,
12,
2867,
1147,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
202,
202,
2463,
1147,
480,
1758,
12,
20,
1769,
203,
202,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol";
import "@openzeppelin/contracts/access/AccessControlEnu... | @dev if owner wants to transfer contract ether balance to own account. | function transferBalanceTo(address _to,uint256 _value) public {
require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "ERC20: must have admin role to tranfer balance");
require(_value <= address(this).balance);
payable(_to).transfer(_value);
}
| 5,931,334 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
309,
3410,
14805,
358,
7412,
6835,
225,
2437,
11013,
358,
4953,
2236,
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,
... | [
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,
7412,
13937,
774,
12,
2867,
389,
869,
16,
11890,
5034,
389,
1132,
13,
1071,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
315,
654,
39,
3462,
30,
1297,
1240,
3... |
/**
TELEGRAM: https://t.me/shibionicETH
TWITTER: https://twitter.com/shibionicETH
WEBSITE: https://shibionicinu.com/
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
abstract contract Context {
function _msgSender() internal view returns (address payable) {
return payable(msg.sende... | Ownership moved to in-contract for customizability. UNI ROUTER | contract ShibionicInu is Context, IERC20 {
address private _owner;
mapping (address => uint256) private _tOwned;
mapping (address => bool) lpPairs;
uint256 private timeSinceLastPair = 0;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _is... | 1,652,817 | [
1,
4625,
348,
7953,
560,
30,
225,
14223,
9646,
5310,
10456,
358,
316,
17,
16351,
364,
1679,
452,
2967,
18,
19462,
534,
5069,
654,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
2638,
495,
285,
335,
382,
89,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
88,
5460,
329,
31,
203,
565,
2874,
261,
2867,
516,
1... |
./full_match/1/0xd15563162301EcD765bFB54eBd0809b21932C506/sources/contracts/openzeppelin/Math.sol | * @dev Standard math utilities missing in the Solidity language./ | library Math {
enum Rounding {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(
uint256 a,
uint256 b,
bool roundUp
) internal pure returns (uint256) {
return roundUp ? divUp(a, b) : divDown(a, b);
}
function divDown(uint256 a, u... | 3,876,916 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8263,
4233,
22538,
3315,
316,
326,
348,
7953,
560,
2653,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
2361,
288,
203,
203,
225,
2792,
11370,
310,
288,
203,
225,
289,
203,
203,
225,
445,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
279,
380,
324,
31,
20... |
// SPDX-License-Identifier: None
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
// initializing the CFA Library
import "../interfaces/ISwapReceiver.sol";
contract TSwaps is ERC721, Ownable{
uint public index = 0;
address... | note this will need to use an oracle to get USD value | function _mintReceiver(address _receiver, uint _amountUnderlying) internal{
_mint(_receiver,index);
asset memory a =asset(_amountUnderlying, _amountUnderlying, address(0));
_updateReceiverAssetsOwed(index,a);
index++;
}
| 12,592,798 | [
1,
4625,
348,
7953,
560,
30,
225,
4721,
333,
903,
1608,
358,
999,
392,
20865,
358,
336,
587,
9903,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12952,
12,
2867,
389,
24454,
16,
2254,
389,
8949,
14655,
6291,
13,
2713,
95,
203,
3639,
389,
81,
474,
24899,
24454,
16,
1615,
1769,
7010,
3639,
3310,
3778,
279,
273,
9406,
24899,
8949,
14655,
6291,
16,
389... |
./full_match/42/0x06f88e5D06008226De3F6E65619E7a36aa503e9C/sources/TGK.sol | * @dev Interface of the ERC20 standard as defined in the EIP./ | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint2... | 9,585,086 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
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,
5831,
467,
654,
39,
3462,
288,
203,
21281,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
7412,
... |
./partial_match/1/0xE6AbFcABE24F06197a7A20dc9c81c251f2862430/sources/LoopringAmmPool.sol | Check if we can still use this join | function _calculateJoinAmounts(
AmmData.Context memory ctx,
AmmData.PoolJoin memory join
)
private
pure
returns(
bool slippageOK,
uint96 mintAmount,
uint96[] memory amounts
)
{
amounts = ne... | 3,662,177 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
732,
848,
4859,
999,
333,
1233,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
11162,
4572,
6275,
87,
12,
203,
3639,
3986,
81,
751,
18,
1042,
225,
3778,
225,
1103,
16,
203,
3639,
3986,
81,
751,
18,
2864,
4572,
3778,
225,
1233,
203,
3639,
262,
203,
3639,
3238,
203,
3639,
16618,
203,
3639,
11... |
// File: @openzeppelin/contracts/utils/StorageSlot.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library h... | * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). Emits a {BeaconUpgraded} event./ | function _upgradeBeaconToAndCall(
address newBeacon,
bytes memory data,
bool forceCall
) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(
IBeacon(newBeac... | 13,512,507 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11217,
29203,
8400,
598,
3312,
3875,
745,
18,
3609,
30,
1220,
28844,
326,
1758,
434,
326,
29203,
16,
518,
1552,
486,
8400,
326,
4471,
7542,
316,
326,
29203,
261,
5946,
288,
10784,
429,
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,
1,
1... | [
1,
565,
445,
389,
15097,
1919,
16329,
774,
1876,
1477,
12,
203,
3639,
1758,
394,
1919,
16329,
16,
203,
3639,
1731,
3778,
501,
16,
203,
3639,
1426,
2944,
1477,
203,
565,
262,
2713,
288,
203,
3639,
389,
542,
1919,
16329,
12,
2704,
191... |
/**
*Submitted for verification at Etherscan.io on 2022-04-10
*/
/**
Welcome...You have found yourself a $GEM!
6% Buy + Sell Tax - 2% LP + 4% Marketing
Liquidity Locked for 3 Months Shortly After Launch
100% Stealth Launch
100% Safe
You have found this $GEM...You are safe...hold it, shill it and take care of it lik... | address routerAddress =0x8178b2B32E553ad96Ff19C8546F1340651b0C784;max wallet holding of 1% Cooldown & timer functionality | contract TEST is IBEP20, Auth {
using SafeMath for uint256;
using Address for address;
address rewardToken = address(this);
address DEAD = 0x000000000000000000000000000000000000dEaD;
address ZERO = 0x0000000000000000000000000000000000000000;
string constant _name = "GEM";
string consta... | 7,716,216 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
4633,
1887,
273,
20,
92,
28,
4033,
28,
70,
22,
38,
1578,
41,
2539,
23,
361,
10525,
42,
74,
3657,
39,
28,
6564,
26,
42,
3437,
7132,
9222,
21,
70,
20,
39,
27,
5193,
31,
1896,
9230,
19918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
22130,
353,
467,
5948,
52,
3462,
16,
3123,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
1758,
19890,
1345,
273,
1758,
12,
2211,
1769,
203,
565,
1758,
2030,
188... |
./partial_match/1/0xADa6E33aa65590934870bFD204Fe8efe9c6Aa4bC/sources/contracts/0.4.24/interfaces/IBeaconReportReceiver.sol | * @title Interface defining a callback that the quorum will call on every quorum reached/ | interface IBeaconReportReceiver {
function processLidoOracleReport(uint256 _postTotalPooledEther,
uint256 _preTotalPooledEther,
uint256 _timeElapsed) external;
}
| 4,023,823 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
6682,
9364,
279,
1348,
716,
326,
31854,
903,
745,
603,
3614,
31854,
8675,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
1919,
16329,
4820,
12952,
288,
203,
565,
445,
1207,
48,
22954,
23601,
4820,
12,
11890,
5034,
389,
2767,
5269,
52,
22167,
41,
1136,
16,
203,
19694,
2254,
5034,
389,
1484,
5269,
52,
22167,
41,
1136,
16,
203,
19694,
2254,
... |
./full_match/3/0xCc42A7E6757FcB9da9eCf109285AF2871E0eeE39/sources/browser/Barn.sol | number of Ape staked in the Barn | uint256 public totalApeStaked;
| 8,151,471 | [
1,
4625,
348,
7953,
560,
30,
225,
1300,
434,
432,
347,
384,
9477,
316,
326,
605,
1303,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
2254,
5034,
1071,
2078,
37,
347,
510,
9477,
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,
-1... |
pragma solidity ^0.4.25;
/**
*
* Best Multiplier - profitable financial game
* Honest, fully automated smart quick turn contract with a jackpot system
*
* Web - https://bestmultiplier.biz
* Telegram channel - https://t.me/bestMultiplierNews
* Telegram chat - https://t.me/bestMultiplier
... | This function makes the game restart on a specific date when it is stopped or in waiting mode (Available only to managers) | function restart(uint _time) public {
require(MANAGER == msg.sender || RESERVE_MANAGER == msg.sender);
require(!isRunning());
require(_time >= now + 10 minutes);
totalInvested = 0;
delete jackpot;
}
| 12,980,970 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
445,
7297,
326,
7920,
7870,
603,
279,
2923,
1509,
1347,
518,
353,
9627,
578,
316,
7336,
1965,
261,
5268,
1338,
358,
21103,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7870,
12,
11890,
389,
957,
13,
1071,
288,
203,
203,
3639,
2583,
12,
19402,
422,
1234,
18,
15330,
747,
2438,
2123,
3412,
67,
19402,
422,
1234,
18,
15330,
1769,
203,
3639,
2583,
12,
5,
291,
7051,
10663,
203,
3639,
2583,
... |
// File: contracts/lib/ownership/Ownable.sol
pragma solidity ^0.4.24;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner,address indexed newOwner);
/// @dev The Ownable constructor sets the original `owner` of the contract to the sender account.
... | time allowed before, close and judge. if time expired, allow unbond from all curves
| uint256 public ttl; | 2,486,197 | [
1,
4625,
348,
7953,
560,
30,
225,
813,
2935,
1865,
16,
1746,
471,
525,
27110,
18,
309,
813,
7708,
16,
1699,
640,
26425,
628,
777,
24106,
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,
... | [
1,
1,
1,
1,
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,
2254,
5034,
1071,
6337,
31,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xefbA8DAA3483b1F4a2C7E07bF10e2e57bbA552bd/sources/WLP.sol | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
WE ALL PEPE FAMS
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 2,793,673 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
288,
203,
6950,
8061,
16628,
1423,
478,
2192,
55,
203,
203,
203,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
327,
1234,
18,
15330,
31,
203,
289,
203,
203,
445,
389,
3576,
751,
... |
./full_match/1/0x68c4cc21378301cfdd5702D66D58a036D7bAFE28/sources/src/RealitioForeignArbitrationProxyWithAppeals.sol | * @notice Returns the sum of withdrawable amount. @dev This function is O(n) where n is the total number of rounds. @dev This could exceed the gas limit, therefore this function should be used only as a utility and not be relied upon by other contracts. @param _arbitrationID The ID of the arbitration. @param _beneficia... | function getTotalWithdrawableAmount(
uint256 _arbitrationID,
address payable _beneficiary,
uint256 _contributedTo
) external view override returns (uint256 sum) {
address requester = arbitrationIDToRequester[_arbitrationID];
ArbitrationRequest storage arbitration = arbitr... | 8,333,673 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
2142,
434,
598,
9446,
429,
3844,
18,
632,
5206,
1220,
445,
353,
531,
12,
82,
13,
1625,
290,
353,
326,
2078,
1300,
434,
21196,
18,
632,
5206,
1220,
3377,
9943,
326,
16189,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
12831,
1190,
9446,
429,
6275,
12,
203,
3639,
2254,
5034,
389,
297,
3682,
7034,
734,
16,
203,
3639,
1758,
8843,
429,
389,
70,
4009,
74,
14463,
814,
16,
203,
3639,
2254,
5034,
389,
591,
11050,
774,
203,
565,
262,
3903,
... |
/**
*Submitted for verification at Etherscan.io on 2022-01-07
*/
/**
*Submitted for verification at Etherscan.io on 2022-01-06
*/
// 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, ... | 5% commission cut If buyer sent more than price, we send them back their rest of funds | function _trade(uint _id) internal {
address payable _buyer = payable(msg.sender);
address payable _owner = payable(ownerOf(_id));
_transfer(_owner, _buyer, _id);
uint _commissionValue = price[_id] / 20 ;
uint _sellerValue = price[_id] - _commissionValue;
_owner.tr... | 627,901 | [
1,
4625,
348,
7953,
560,
30,
225,
1381,
9,
1543,
19710,
6391,
971,
27037,
3271,
1898,
2353,
6205,
16,
732,
1366,
2182,
1473,
3675,
3127,
434,
284,
19156,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
20077,
12,
11890,
389,
350,
13,
2713,
288,
203,
3639,
1758,
8843,
429,
389,
70,
16213,
273,
8843,
429,
12,
3576,
18,
15330,
1769,
203,
3639,
1758,
8843,
429,
389,
8443,
273,
8843,
429,
12,
8443,
951,
24899,
350,
... |
pragma solidity ^0.5.6;
/**
* @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.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be ap... | bytes4(keccak256('totalSupply()')) == 0x18160ddd bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63/* @dev Constructor function./ register the supported interface to confo... | constructor () public {
_registerInterface(_INTERFACE_ID_KIP17_ENUMERABLE);
}
| 1,015,951 | [
1,
4625,
348,
7953,
560,
30,
1377,
1731,
24,
12,
79,
24410,
581,
5034,
2668,
4963,
3088,
1283,
11866,
3719,
422,
374,
92,
2643,
16874,
449,
72,
377,
1731,
24,
12,
79,
24410,
581,
5034,
2668,
2316,
951,
5541,
21268,
12,
2867,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
1832,
1071,
288,
203,
3639,
389,
4861,
1358,
24899,
18865,
67,
734,
67,
47,
2579,
4033,
67,
16509,
654,
2782,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2022-03-29
*/
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;
////// lib/openzeppelin-contracts/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
/* pragma solidity ^0... | move tokens from burn fee to dead address permanently | function swapBackAndBurn() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForMarketing +
tokensForDev;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return... | 10,905,824 | [
1,
4625,
348,
7953,
560,
30,
225,
3635,
2430,
628,
18305,
14036,
358,
8363,
1758,
16866,
715,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
2711,
1876,
38,
321,
1435,
3238,
288,
203,
3639,
2254,
5034,
6835,
13937,
273,
11013,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
2254,
5034,
2078,
5157,
774,
12521,
273,
2430,
1290,
48,
18988,
24237,
397,
203,
5411,... |
./full_match/43113/0xDe54Fb7dCB51fa489E970A603C96842fb20E22b4/sources/TestContract.sol | * @dev See {IERC721-safeTransferFrom}./ | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public payable virtual override {
require(
msg.value > 0,
"no og minter reward"
);
safeTransferFrom(from, to, tokenId, "");
}
| 7,124,264 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
17,
4626,
5912,
1265,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
5912,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
1071,
8843,
429,
5024,
3849,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
1132,
405,
374,
16... |
./partial_match/1/0x1e64C539Ec4fc926297D3CD9A316Ad006f78df1f/sources/Strategy.sol | dai to ntrumpuint256 outAmount = bpool.calcOutGivenIn(balanceD, weightD, balanceN, weightN, lotSizeBuy, swapFee);decimal changes make this harder. 1e21 = 18 + 18 - 15return(true,false);decimal changes make this harder. 1e21 = 18 + 18 - 15return(false, true); | function sellOrBuy() public view returns (bool _buy, bool _sell){
address[] memory path = new address[](2);
path[0] = address(want);
path[1] = address(ntrump);
uint256[] memory amounts = sushiswapRouter.getAmountsOut(lotSizeBuy, path);
uint256 outAmount = am... | 4,369,508 | [
1,
4625,
348,
7953,
560,
30,
5248,
77,
358,
290,
313,
2801,
11890,
5034,
596,
6275,
273,
324,
6011,
18,
12448,
1182,
6083,
382,
12,
12296,
40,
16,
3119,
40,
16,
11013,
50,
16,
3119,
50,
16,
17417,
1225,
38,
9835,
16,
7720,
14667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
80,
1162,
38,
9835,
1435,
1071,
1476,
1135,
261,
6430,
389,
70,
9835,
16,
1426,
389,
87,
1165,
15329,
203,
540,
203,
540,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
3639,
589,
63,
... |
./partial_match/1/0x4591DBfF62656E7859Afe5e45f6f47D3669fBB28/sources/DebtToken.sol | * @dev Returns the fee applied when doing flash loans. This function calls the {_flashFee} function which returns the fee applied when doing flash loans. @param token The token to be flash loaned. @param amount The amount of tokens to be loaned. @return The fees applied to the corresponding flash loan./ | function flashFee(address token, uint256 amount) external view returns (uint256) {
return token == address(this) ? _flashFee(amount) : 0;
}
| 2,611,453 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
14036,
6754,
1347,
9957,
9563,
437,
634,
18,
1220,
445,
4097,
326,
288,
67,
13440,
14667,
97,
445,
1492,
1135,
326,
14036,
6754,
1347,
9957,
9563,
437,
634,
18,
632,
891,
1147,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
9563,
14667,
12,
2867,
1147,
16,
2254,
5034,
3844,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
1147,
422,
1758,
12,
2211,
13,
692,
389,
13440,
14667,
12,
8949,
13,
294,
374,
31,
203,
565,
289,
203... |
./full_match/42/0xf4920775dFfaF99ABcCEb6dc14cBC8228Fea9554/sources/coin_in_sc.sol | Current generic swap function | function swap_1(
uint256 _amountIn,
uint256 _amountOutMin,
address _inputToken,
address _outputToken,
address _pair
) external payable onlyOwner {
uint[] memory amounts = _getAmountsOut(_pair, _amountIn, _inputToken, _outputToken);
require(amounts[1] >= _a... | 9,575,444 | [
1,
4625,
348,
7953,
560,
30,
225,
6562,
5210,
7720,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7720,
67,
21,
12,
203,
3639,
2254,
5034,
389,
8949,
382,
16,
203,
3639,
2254,
5034,
389,
8949,
1182,
2930,
16,
203,
3639,
1758,
389,
2630,
1345,
16,
203,
3639,
1758,
389,
2844,
1345,
16,
203,
3639,
1758,
389,
6017,
20... |
// File: contracts/utility/interfaces/IOwned.sol
pragma solidity 0.4.26;
/*
Owned contract interface
*/
contract IOwned {
// this function isn't abstract since the compiler emits automatically generated getter functions as external
function owner() public view returns (address) {this;}
function trans... | * @dev returns the convertible token at a given index @param _index index @return convertible token at the given index/ | function getConvertibleToken(uint _index) external view returns (address) {
return IBancorConverterRegistryData(addressOf(BANCOR_CONVERTER_REGISTRY_DATA)).getConvertibleToken(_index);
}
| 7,309,796 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1135,
326,
1765,
1523,
1147,
622,
279,
864,
770,
632,
891,
389,
1615,
770,
632,
2463,
1765,
1523,
1147,
622,
326,
864,
770,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
2723,
1523,
1345,
12,
11890,
389,
1615,
13,
3903,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
23450,
304,
3850,
5072,
4243,
751,
12,
2867,
951,
12,
38,
1258,
9428,
67,
2248,
2204,
2560,
67,
5937,
25042,
67,
4... |
pragma solidity ^0.4.18;
contract ERC721 {
// Required methods
function totalSupply() public view returns (uint256 total);
function balanceOf(address _owner) public view returns (uint256 balance);
function ownerOf(uint256 _tokenId) external view returns (address owner);
function approve(address _to... | @dev Number of times to loop through various skills Array containing trait strings for easy referencing Define array to mask skills string to extract appropriate attributes | contract skillScience {
uint256 public numLoops;
uint128[] public traitStrings;
function maskArray() internal {
uint128 baseMask = 0xFFFF0000000000000000000000000000;
for(uint256 i = 0; i < numLoops; i++) {
uint128 thisMask = baseMask >> (4 * i);
traitStrings.pus... | 12,984,896 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3588,
434,
4124,
358,
2798,
3059,
11191,
15667,
87,
1510,
4191,
13517,
2064,
364,
12779,
24509,
13184,
526,
358,
3066,
15667,
87,
533,
358,
2608,
5505,
1677,
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,
0,
0,
0,
0,
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,
15667,
1541,
6254,
288,
203,
203,
565,
2254,
5034,
1071,
818,
31409,
31,
203,
203,
565,
2254,
10392,
8526,
1071,
13517,
7957,
31,
203,
203,
565,
445,
3066,
1076,
1435,
2713,
288,
203,
203,
3639,
2254,
10392,
1026,
5796,
273,... |
// Sources flattened with hardhat v2.9.3 https://hardhat.org
// File @openzeppelin/contracts/utils/EnumerableSet.sol@v3.4.1
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
pragma experimental ABIEncoderV2;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[set... | * @notice Returns the index + 1 of the pool address in the registry @param poolAddress address to look for/* @notice Returns the index + 1 of the pool name in the registry @param poolName pool name in bytes32 format to look for/ Functions */* @notice Add a new pool to the registry @param inputData PoolInputData struct ... | interface IMasterRegistry {
function poolsIndexOfPlusOne(address poolAddress)
external
returns (uint256);
function poolsIndexOfNamePlusOne(bytes32 poolName)
external
returns (uint256);
function addPool(PoolInputData memory inputData) external payable;
function addCom... | 13,694,340 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
770,
397,
404,
434,
326,
2845,
1758,
316,
326,
4023,
632,
891,
2845,
1887,
1758,
358,
2324,
364,
20308,
632,
20392,
2860,
326,
770,
397,
404,
434,
326,
2845,
508,
316,
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,
6246,
2440,
4243,
288,
203,
203,
565,
445,
16000,
31985,
13207,
3335,
12,
2867,
2845,
1887,
13,
203,
3639,
3903,
203,
3639,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
16000,
31985,
461,
13207,
3335,
12,
3890,
1578,
264... |
./partial_match/1/0x5AdA07Ff0d2772E202776be8a8EC69ac3345050f/sources/OracleLibrary.sol | @notice Given a pool, it returns the tick value as of the start of the current block @param pool Address of Uniswap V3 pool @return The tick that the pool was in at the start of the current block 2 observations are needed to reliably calculate the block starting tick If the latest observation occurred in the past, the... | function getBlockStartingTickAndLiquidity(address pool) internal view returns (int24, uint128) {
unchecked {
(
,
int24 tick,
uint16 observationIndex,
uint16 observationCardinality,
,
,
) ... | 3,955,278 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
16803,
279,
2845,
16,
518,
1135,
326,
4024,
460,
487,
434,
326,
787,
434,
326,
783,
1203,
632,
891,
2845,
5267,
434,
1351,
291,
91,
438,
776,
23,
2845,
632,
2463,
1021,
4024,
716,
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,
565,
445,
11902,
11715,
6264,
1876,
48,
18988,
24237,
12,
2867,
2845,
13,
2713,
1476,
1135,
261,
474,
3247,
16,
2254,
10392,
13,
288,
203,
3639,
22893,
288,
203,
5411,
261,
203,
7734,
269,
203,
7734,
509,
3247,
4024,
16,
203,
773... |
//Address: 0x0348b55abd6e1a99c6ebc972a6a4582ec0bceb5c
//Contract name: PromissoryToken
//Balance: 23.298072903130000015 Ether
//Verification Date: 1/24/2017
//Transacion Count: 342
// CODE STARTS HERE
pragma solidity ^0.4.8;
//This contract is backed by the constitution of superDAO deployed at : .
//The constitutio... | * @notice Backer `_bacherAddr.address()` is redeeming `_amount` superDAO Tokens @dev Check if backer tokens have been claimed but not redeemed, then redeem them @param _amount The total number of redeemable tokens @param _backerAddr The address of the backer @return True if tokens were successfully redeemed else false/ | function redeem(uint _amount, address _backerAddr) returns(bool){
if (backersRedeemed[_backerAddr] == true) {
return false;
}
uint totalTokens = 0;
for (uint i = 0; i < backers[_backerAddr].length; i++) {
if (backers[_backerAddr][i].claimed == false) {
... | 6,464,545 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4297,
264,
1375,
67,
70,
27779,
3178,
18,
2867,
20338,
353,
283,
24903,
310,
1375,
67,
8949,
68,
2240,
18485,
13899,
632,
5206,
2073,
309,
1473,
264,
2430,
1240,
2118,
7516,
329,
1496,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
283,
24903,
12,
11890,
389,
8949,
16,
1758,
389,
823,
264,
3178,
13,
1135,
12,
6430,
15329,
203,
3639,
309,
261,
823,
414,
426,
24903,
329,
63,
67,
823,
264,
3178,
65,
422,
638,
13,
288,
203,
5411,
327,
629,
31,
203... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.0;
import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
impor... | @notice Remove old service that can call useFunds. Gelato Governance @param _service Old service to remove | function removeWhitelistedService(address _service) external onlyOwner {
require(_whitelistedServices.contains(_service), "TaskTreasury: addWhitelistedService: !whitelisted");
_whitelistedServices.remove(_service);
}
| 2,486,615 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3581,
1592,
1156,
716,
848,
745,
999,
42,
19156,
18,
611,
292,
31093,
611,
1643,
82,
1359,
632,
891,
389,
3278,
18613,
1156,
358,
1206,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
18927,
329,
1179,
12,
2867,
389,
3278,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
20409,
329,
5676,
18,
12298,
24899,
3278,
3631,
315,
2174,
56,
266,
345,
22498,
30,
527,
18927,
329,
1179,
30,
401,
20409,
... |
./partial_match/1/0x1A963Df363D01EEBB2816b366d61C917F20e1EbE/sources/src/ComptrollerG7.sol | * @notice Validates repayBorrow and reverts on rejection. May emit logs. @param cToken Asset being repaid @param payer The address repaying the borrow @param borrower The address of the borrower @param actualRepayAmount The amount of underlying being repaid/ Shh - currently unused Shh - we don't ever want this hook to ... | function repayBorrowVerify(
address cToken,
address payer,
address borrower,
uint256 actualRepayAmount,
uint256 borrowerIndex
)
external
override
{
cToken;
payer;
borrower;
actualRepayAmount;
borrowerIndex;
... | 2,595,034 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2364,
815,
2071,
528,
38,
15318,
471,
15226,
87,
603,
283,
3710,
18,
16734,
3626,
5963,
18,
632,
891,
276,
1345,
10494,
3832,
2071,
20736,
632,
891,
293,
1773,
1021,
1758,
2071,
528,
310... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2071,
528,
38,
15318,
8097,
12,
203,
3639,
1758,
276,
1345,
16,
203,
3639,
1758,
293,
1773,
16,
203,
3639,
1758,
29759,
264,
16,
203,
3639,
2254,
5034,
3214,
426,
10239,
6275,
16,
203,
3639,
2254,
5034,
29759,
264,
1016... |
./full_match/5/0xB3fF7D09c4871cfCfea4e1520e6565092B213AaB/sources/contracts/claim/interfaces/IVotesLite.sol | an account's current voting power an total current voting power a weighting factor used to convert token holdings to voting power (eg in basis points) | interface IVotesLite {
function getVotes(address account) external view returns (uint256);
function getTotalVotes() external view returns (uint256);
function getVoteFactor(address account) external view returns (uint256);
}
| 1,862,465 | [
1,
4625,
348,
7953,
560,
30,
225,
392,
2236,
1807,
783,
331,
17128,
7212,
392,
2078,
783,
331,
17128,
7212,
279,
3119,
310,
5578,
1399,
358,
1765,
1147,
6887,
899,
358,
331,
17128,
7212,
261,
1332,
316,
10853,
3143,
13,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
21602,
6366,
20291,
288,
203,
565,
445,
11031,
6366,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
12831,
29637,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
11031,
1168,
6837,
... |
./full_match/1/0xC783cB069e0CAcaF4f1c8592Df903582d980739D/sources/browser/etfx_daiPool_v2__1_.sol | total 25000 00000000 first month = 12500 / 30days = 416 | contract ETFXDAIV2Pool is ERC20, ReentrancyGuard, Ownable {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
mapping(address => uint256) private startStaking;
mapping(address => uint256) private rewards;
uint256 public halvingBlock;
address constant private AAVE... | 4,827,470 | [
1,
4625,
348,
7953,
560,
30,
225,
2078,
6969,
3784,
374,
17877,
1122,
3138,
273,
2593,
12483,
342,
5196,
9810,
225,
273,
1059,
2313,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4518,
25172,
9793,
8188,
22,
2864,
353,
4232,
39,
3462,
16,
868,
8230,
12514,
16709,
16,
14223,
6914,
288,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
225,
1450,
5267,
364,
1758,
31,
203,
225,
... |
// File: contracts/utils/Address.sol
pragma solidity 0.5.17;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function re... | * @dev Enabled ability for tokens to be withdrawn by buyers after the sale has ended successfully. contractIndex: index of the token sale. See tokenSales variable/require(tokenSaleInfo.receiveAddress == msg.sender, "endTokenSale: can only be called by funding owner"); flag that allows ends this funding round also ... | On a successful sale (softcap reached by time, or hardcap reached), this function:
1. Creates uniswap pair if not created.
2. adds token liquidity to uniswap pair.
3. burns tokens if hardcap was not met
function endTokenSale(uint256... | 12,179,972 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
14666,
7123,
364,
2430,
358,
506,
598,
9446,
82,
635,
30143,
414,
1839,
326,
272,
5349,
711,
16926,
4985,
18,
1377,
6835,
1016,
30,
770,
434,
326,
1147,
272,
5349,
18,
2164,
1147,
23729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5397,
2755,
279,
6873,
272,
5349,
261,
9269,
5909,
8675,
635,
813,
16,
578,
7877,
5909,
8675,
3631,
333,
445,
30,
203,
5397,
404,
18,
10210,
640,
291,
91,
438,
3082,
309,
486,
2522,
18,
203,
5397,
576,
18,
4831,
1147,
4501,
372... |
import './_Exponential.sol';
import './_DSValue.sol';
pragma solidity ^0.5.10;
contract _PriceOracle is _Exponential {
/**
* @dev flag for whether or not contract is paused
*
*/
bool public paused;
uint public constant numBlocksPerPeriod = 240; // approximately 1 hour: 60 seconds/minut... | re-used for intermediate errors We add 1 for currentPeriod so that it can never be zero and there's no ambiguity about an unset value. (It can be a problem in tests with low block numbers.) let's explicitly set to 0 rather than relying on default of declaration Verify movement is within max swing of pending anchor (cu... | function setPriceInternal(address asset, uint requestedPriceMantissa) internal returns (uint) {
Error err;
SetPriceLocalVars memory localVars;
localVars.currentPeriod = (block.number / numBlocksPerPeriod) + 1;
localVars.pendingAnchorMantissa = pendingAnchors[asset];
if (addr... | 1,836,791 | [
1,
4625,
348,
7953,
560,
30,
225,
283,
17,
3668,
364,
12110,
1334,
1660,
527,
404,
364,
783,
5027,
1427,
716,
518,
848,
5903,
506,
3634,
471,
1915,
1807,
1158,
13232,
8810,
560,
2973,
392,
2646,
460,
18,
261,
7193,
848,
506,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
444,
5147,
3061,
12,
2867,
3310,
16,
2254,
3764,
5147,
49,
970,
21269,
13,
2713,
1135,
261,
11890,
13,
288,
203,
3639,
1068,
393,
31,
203,
3639,
1000,
5147,
2042,
5555,
3778,
1191,
5555,
31,
203,
3639,
1191,
5555,
18,
... |
./full_match/44787/0x0913Ee6847C6225C836431B8bDC16172fb2a52Df/sources/home/boyd/git/keyko/celo-ubi-contract/contracts/UBIController.sol | * @notice Reconciles cUSD built up in reconciliation account and sends to pre-configured custodian/ | function reconcile() external onlyOwner nonReentrant whenNotPaused {
reconciliationAccount.reconcile();
}
| 13,241,508 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
868,
11504,
1449,
276,
3378,
40,
6650,
731,
316,
19078,
16278,
2236,
471,
9573,
358,
675,
17,
16449,
276,
641,
369,
2779,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27163,
1435,
3903,
1338,
5541,
1661,
426,
8230,
970,
1347,
1248,
28590,
288,
203,
3639,
19078,
16278,
3032,
18,
266,
11504,
398,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
๏ปฟ// ะกะพัะตัะฐะตะผะพััั ะณะปะฐะณะพะปะพะฒ (ะธ ะพัะณะปะฐะณะพะปัะฝัั
ัะฐััะตะน ัะตัะธ) ั ะฟัะตะดะปะพะถะฝัะผ
// ะฟะฐััะตัะฝะพะผ.
// LC->07.08.2018
facts ะณะป_ะฟัะตะดะป language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ะะ_ะะะค(v) ะธะฝัะธะฝะธัะธะฒ:v{}, ะณะปะฐะณะพะป:v{}
#region ะัะตะดะปะพะณ_ะ
// ------------------- ะก ะะ ะะะะะะะ 'ะ' -----------------------... | ะฒัะฟัััะธัั ะฝะฐ ัะฒะพะฑะพะดั
| rus_verbs:ะฒัะฟัััะธัั{}, | 5,486,173 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
115,
146,
238,
145,
128,
146,
230,
146,
228,
146,
229,
145,
121,
146,
229,
146,
239,
225,
145,
126,
145,
113,
225,
146,
228,
145,
115,
145,
127,
145,
114,
145,
127,
145,
117,
146,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8010,
67,
502,
2038,
30,
145,
115,
146,
238,
145,
128,
146,
230,
146,
228,
146,
229,
145,
121,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0xdbc61a1685C6F70c11cBb7da70338352b1Fa4d51/sources/DigiDaigakuGiantDragons.sol | * @title InitializableOperatorFilterer @notice Abstract contract whose initializer function automatically registers and optionally subscribes to or copies another registrant's entries in the OperatorFilterRegistry. @dev This smart contract is meant to be inherited by token contracts so they can use the foll... | abstract contract InitializableOperatorFilterer is IOperatorFiltererInitializer {
error OperatorNotAllowed(address operator);
IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
}
modifier onlyAllowedOperator(address from)... | 15,729,324 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
225,
10188,
6934,
5592,
1586,
264,
632,
20392,
4115,
6835,
8272,
12562,
445,
6635,
10285,
471,
8771,
10189,
281,
358,
578,
13200,
4042,
540,
17450,
970,
1807,
3222,
316,
326,
11097,
1586,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
10188,
6934,
5592,
1586,
264,
353,
1665,
457,
639,
1586,
264,
14729,
288,
203,
565,
555,
11097,
19354,
12,
2867,
3726,
1769,
203,
203,
565,
1665,
457,
639,
1586,
4243,
1071,
5381,
25500,
67,
11126,
67,
5937,
25042,
273... |
pragma solidity 0.4.24;
/**
* @dev Pulled from OpenZeppelin: https://git.io/vbaRf
* When this is in a public release we will switch to not vendoring this file
*
* @title Eliptic curve signature operations
*
* @dev Based on https://gist.github.com/axic/5b33912c6f61ae6fd96d6c4a47afde6d
*/
librar... | * @notice Revoke an attestation @dev Link is included in dataHash and cannot be directly connected to a BloomID @param _link bytes string embedded in dataHash to link revocation/ | function revokeAttestationFor(
address _sender,
bytes32 _link,
bytes32 _nonce,
bytes _delegationSig
) external {
validateRevokeForSig(_sender, _link, _nonce, _delegationSig);
revokeAttestationForUser(_link, _sender);
}
| 880,706 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
23863,
392,
2403,
395,
367,
632,
5206,
4048,
353,
5849,
316,
501,
2310,
471,
2780,
506,
5122,
5840,
358,
279,
605,
17810,
734,
632,
891,
389,
1232,
1731,
533,
7488,
316,
501,
2310,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
18007,
3075,
395,
367,
1290,
12,
203,
565,
1758,
389,
15330,
16,
203,
565,
1731,
1578,
389,
1232,
16,
203,
565,
1731,
1578,
389,
12824,
16,
203,
565,
1731,
389,
3771,
1332,
367,
8267,
203,
565,
262,
3903,
288,
203,
13... |
pragma solidity ^0.4.16;//800000000, "Revizor Coin", "RR"
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimal... | * Destroy tokens from other account Remove `_value` tokens from the system irreversibly on behalf of `_from`. @param _from the address of the sender @param _value the amount of money to burn/ | function burnFrom(address _from, uint256 _value) public returns (bool success) {
Burn(_from, _value);
return true;
}
| 2,202,855 | [
1,
4625,
348,
7953,
560,
30,
380,
15701,
2430,
628,
1308,
2236,
3581,
1375,
67,
1132,
68,
2430,
628,
326,
2619,
9482,
266,
2496,
24755,
603,
12433,
6186,
434,
1375,
67,
2080,
8338,
632,
891,
389,
2080,
326,
1758,
434,
326,
5793,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
1265,
12,
2867,
389,
2080,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
605,
321,
24899,
2080,
16,
389,
1132,
1769,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
202,
203,
202,... |
./full_match/1/0x79a4B5e5f2eF56027fF0e28Ba057fCF141C00509/sources/contracts/UniswapOracle/UniswapAnchoredView.sol | * @notice Get the underlying price of a cToken @dev Implements the PriceOracle interface for Compound v2. @param cToken The cToken address for price retrieval @return Price denominated in USD, with 18 decimals, for the given cToken address/ Comptroller needs prices in the format: ${raw price} * 1e(36 - baseUnit) Since ... | function getUnderlyingPrice(address cToken) external returns (uint) {
TokenConfig memory config = getTokenConfigByCToken(cToken);
return mul(1e30, priceInternal(config)) / config.baseUnit;
}
| 8,331,522 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
326,
6808,
6205,
434,
279,
276,
1345,
632,
5206,
29704,
326,
20137,
23601,
1560,
364,
21327,
331,
22,
18,
632,
891,
276,
1345,
1021,
276,
1345,
1758,
364,
6205,
22613,
632,
2463,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10833,
765,
6291,
5147,
12,
2867,
276,
1345,
13,
3903,
1135,
261,
11890,
13,
288,
203,
3639,
3155,
809,
3778,
642,
273,
9162,
809,
858,
1268,
969,
12,
71,
1345,
1769,
203,
3639,
327,
14064,
12,
21,
73,
5082,
16,
6205,... |
// "SPDX-License-Identifier: Apache-2.0"
pragma solidity ^0.7.0;
/**
* Commit: https://github.com/atpar/actus-dictionary/commit/b85b9b378967de6bfc4d8b6687b520c48bce9890
* Date: 2020-10-06
*/
// IPS
enum P {D, W, M, Q, H, Y} // P=[D=Days, W=Weeks, M=Months, Q=Quarters, H=Halfyear, Y=Year]
enum S {LONG, SHORT} // S=... | enum GuaranteedExposure {NO, NI, MV} not implemented enum InterestCalculationBase {NT, NTIED, NTL} not implemented enum PenaltyType {O, A, N, I} enum PrepaymentEffect {N, A, M} not implemented | enum RedeemableByIssuer {Y, N}
| 13,076,420 | [
1,
4625,
348,
7953,
560,
30,
225,
2792,
6467,
30164,
424,
11291,
288,
3417,
16,
423,
45,
16,
25324,
97,
225,
486,
8249,
2792,
5294,
395,
13989,
2171,
288,
1784,
16,
20064,
29229,
16,
423,
5967,
97,
225,
486,
8249,
2792,
453,
275,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
7924,
868,
24903,
429,
858,
16667,
288,
61,
16,
423,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "./WhitelistRoles.sol";
import "./interfaces/IWhitelistRolesWithManager.sol";
import "../access-control-registry/interfaces/IAccessControlRegistry.sol";
/// @title Contract that implements AccessControlRegistry roles for a whitelist
/// contract controlled... | @dev Returns if the account has the whitelist expiration extender role or is the manager @param account Account address @return If the account has the whitelist extender role or is the manager | function hasWhitelistExpirationExtenderRoleOrIsManager(address account)
internal
view
returns (bool)
{
return
manager == account ||
IAccessControlRegistry(accessControlRegistry).hasRole(
whitelistExpirationExtenderRole,
acco... | 12,983,376 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
309,
326,
2236,
711,
326,
10734,
7686,
2133,
264,
2478,
578,
353,
326,
3301,
632,
891,
2236,
6590,
1758,
632,
2463,
971,
326,
2236,
711,
326,
10734,
2133,
264,
2478,
578,
353,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
711,
18927,
12028,
2482,
2345,
2996,
1162,
2520,
1318,
12,
2867,
2236,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
203,
5411,
3301,
422,
2236,
747,
203,
5411,
467... |
./partial_match/4/0x0E69BcCfBC7D80457A6a7A6F12e0279bc964c518/sources/OneSplitAudit.sol | @notice Calculate expected returning amount of `destToken` @param fromToken (IERC20) Address of token or `address(0)` for Ether @param destToken (IERC20) Address of token or `address(0)` for Ether @param amount (uint256) Amount for `fromToken` @param parts (uint256) Number of pieces source volume could be splitted, wo... | function getExpectedReturn(
IERC20 fromToken,
IERC20 destToken,
uint256 amount,
uint256 parts,
)
public
view
returns(
uint256 returnAmount,
uint256[] memory distribution
)
{
(returnAmount, , distribution) = getEx... | 8,591,284 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
9029,
2665,
5785,
3844,
434,
1375,
10488,
1345,
68,
632,
891,
628,
1345,
261,
45,
654,
39,
3462,
13,
5267,
434,
1147,
578,
1375,
2867,
12,
20,
22025,
364,
512,
1136,
632,
891,
1570,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
336,
6861,
990,
12,
203,
3639,
467,
654,
39,
3462,
628,
1345,
16,
203,
3639,
467,
654,
39,
3462,
1570,
1345,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
2140,
16,
203,
565,
262,
203,
3639,
1071,
203,
... |
pragma solidity ^0.4.24;
/***
* https://templeofeth.io
*
* Tribal Warfare.
*
* A timer countdown - starts 12 mins.
* 6 Tribal masks flipping
* Price increase by 35% per flip
* TMPL tokens 10%
* Dev fee: 5 %
* 110% previous owner.
* 5% goes into current pot.
* 5% goes into next pot.
* Each mas... | allow donations to the pots for seeding etc. | function () public payable {
currentPot = currentPot + SafeMath.div(msg.value,2);
nextPot = nextPot + SafeMath.div(msg.value,2);
}
| 2,479,624 | [
1,
4625,
348,
7953,
560,
30,
225,
1699,
2727,
1012,
358,
326,
5974,
87,
364,
5009,
310,
5527,
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,
225,
445,
1832,
1071,
8843,
429,
288,
203,
1377,
783,
18411,
273,
783,
18411,
397,
14060,
10477,
18,
2892,
12,
3576,
18,
1132,
16,
22,
1769,
203,
1377,
1024,
18411,
273,
1024,
18411,
397,
14060,
10477,
18,
2892,
12,
3576,
18,
113... |
pragma solidity ^0.4.24;
import '../openzeppelin-solidity-master/contracts/token/ERC721/ERC721Full.sol';
import "../openzeppelin-solidity-master/contracts/ownership/Ownable.sol";
contract LuxOrders is ERC721Full, Ownable {
//state variables
//tokenid index
uint256 public orderIndex;
//total raised in... | event when token is redeemed | event RedeemedToken (uint256 _tokenId, bytes32 _buyerId, address _buyerAddress);
| 2,548,021 | [
1,
4625,
348,
7953,
560,
30,
871,
1347,
1147,
353,
283,
24903,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
868,
24903,
329,
1345,
261,
11890,
5034,
389,
2316,
548,
16,
1731,
1578,
389,
70,
16213,
548,
16,
1758,
389,
70,
16213,
1887,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: U-U-U-UPPPPP!!!
pragma solidity ^0.7.4;
import "./TokensRecoverable.sol";
import "./IERC31337.sol";
import "./IUniswapV2Router02.sol";
import "./IERC20.sol";
import "./RootedTransferGate.sol";
import "./IUniswapV2Factory.sol";
import "./SafeMath.sol";
import "./SafeERC20.sol";
import "./ILi... | Removes liquidity, buys from either pool, sets a temporary dump tax | function removeBuyAndTax(uint256 amount, address token, uint16 tax, uint256 time) public override liquidityControllerOnly()
{
gate.setUnrestricted(true);
amount = removeLiq(token, amount);
buyRootedToken(token, amount);
gate.setDumpTax(tax, time);
gate.setUnrestricted(fal... | 14,338,771 | [
1,
4625,
348,
7953,
560,
30,
225,
20284,
4501,
372,
24237,
16,
25666,
1900,
628,
3344,
2845,
16,
1678,
279,
6269,
4657,
5320,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
38,
9835,
1876,
7731,
12,
11890,
5034,
3844,
16,
1758,
1147,
16,
2254,
2313,
5320,
16,
2254,
5034,
813,
13,
1071,
3849,
4501,
372,
24237,
2933,
3386,
1435,
203,
565,
288,
203,
3639,
12611,
18,
542,
984,
29306,
12,... |
./full_match/1/0x9be5Db4fA390cf2DaF373b67b11A1331a19cD05e/sources/browser/ivory.sol | ERROR: type should be string, got " https:docs.balancer.finance/smart-contracts/interfaces" | interface BPool {
function isPublicSwap() external view returns (bool);
function isFinalized() external view returns (bool);
function isBound(address t) external view returns (bool);
function getNumTokens() external view returns (uint);
function getCurrentTokens() external view returns (address[] m... | 8,288,560 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
8532,
18,
18770,
18,
926,
1359,
19,
26416,
17,
16351,
87,
19,
15898,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
605,
2864,
288,
203,
203,
565,
445,
19620,
12521,
1435,
3903,
1476,
1135,
261,
6430,
1769,
203,
565,
445,
29200,
1235,
1435,
3903,
1476,
1135,
261,
6430,
1769,
203,
565,
445,
353,
3499,
12,
2867,
268,
13,
3903,
1476,
1135,
... |
./full_match/43114/0xab2722118FE0197b9E34889540d3922F2d2735dE/sources/JoeTest.sol | calculates the CREATE2 address for a pair without making any external calls | function pairFor(
address factory,
address tokenA,
address tokenB
) internal pure returns (address pair) {
(address token0, address token1) = sortTokens(tokenA, tokenB);
pair = address(
bytes20(
keccak256(
abi.encodePacked(
... | 4,621,674 | [
1,
4625,
348,
7953,
560,
30,
225,
17264,
326,
13278,
22,
1758,
364,
279,
3082,
2887,
10480,
1281,
3903,
4097,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3082,
1290,
12,
203,
3639,
1758,
3272,
16,
203,
3639,
1758,
1147,
37,
16,
203,
3639,
1758,
1147,
38,
203,
565,
262,
2713,
16618,
1135,
261,
2867,
3082,
13,
288,
203,
3639,
261,
2867,
1147,
20,
16,
1758,
1147,
21,
13,
... |
pragma solidity ^0.4.25;
/**
*
* World War Goo - Competitive Idle Game
*
* https://ethergoo.io
*
*/
contract PremiumFactories {
Bankroll constant bankroll = Bankroll(0x66a9f1e53173de33bec727ef76afa84956ae1b25);
address owner;
constructor() public {
owner = msg.se... | Edge case for initial listing
| if (now > factory.lastFlipTime) { | 5,432,320 | [
1,
4625,
348,
7953,
560,
30,
225,
11342,
648,
364,
2172,
11591,
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,
309,
261,
3338,
405,
3272,
18,
2722,
28535,
950,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity 0.5.15;
pragma experimental ABIEncoderV2;
import 'ROOT/libraries/ReentrancyGuard.sol';
import 'ROOT/libraries/math/SafeMathUint256.sol';
import 'ROOT/ICash.sol';
import 'ROOT/sidechain/interfaces/ISideChainShareToken.sol';
import 'ROOT/sidechain/interfaces/ISideChainProfitLoss.sol';
import 'ROOT/tradi... | If someone is filling their own order with CASH both ways we just return the CASH Bring in cash from both parties | function tradeMakerTokensForFillerTokens(Data memory _data) internal returns (uint256) {
uint256 _numberOfCompleteSets = _data.creator.sharesToBuy.min(_data.filler.sharesToBuy);
if (_numberOfCompleteSets == 0) {
return 0;
}
if (_data.creator.participantAddress == _data.f... | 14,114,536 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
18626,
353,
25740,
3675,
4953,
1353,
598,
6425,
2664,
3937,
16226,
732,
2537,
327,
326,
6425,
2664,
605,
8022,
316,
276,
961,
628,
3937,
1087,
606,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18542,
12373,
5157,
1290,
8026,
264,
5157,
12,
751,
3778,
389,
892,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
389,
2696,
951,
6322,
2785,
273,
389,
892,
18,
20394,
18,
30720,
774,
38,
9835,
18,
... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owne... | * @dev transfer token "from" address "to" address One must to approve the amount of tokens which can be spend from the "from" account.This can be done using externalTokenApprove. @param _externalToken the address of the Token Contract @param _from address of the account to send from @param _to address of the ... | function externalTokenTransferFrom(StandardToken _externalToken, address _from, address _to, uint _value,address _avatar)
external
onlyRegisteredScheme(_avatar)
onlySubjectToConstraint("externalTokenTransferFrom",_avatar)
returns(bool)
{
emit ExternalTokenTransferFrom(msg.sender, _extern... | 12,119,815 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7412,
1147,
315,
2080,
6,
1758,
315,
869,
6,
1758,
1377,
6942,
1297,
358,
6617,
537,
326,
3844,
434,
2430,
1492,
848,
506,
17571,
628,
326,
1377,
315,
2080,
6,
2236,
18,
2503,
848,
506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
3903,
1345,
5912,
1265,
12,
8336,
1345,
389,
9375,
1345,
16,
1758,
389,
2080,
16,
1758,
389,
869,
16,
2254,
389,
1132,
16,
2867,
389,
19660,
13,
203,
565,
3903,
203,
565,
1338,
10868,
9321,
24899,
19660,
13,
203,
565,
... |
./full_match/1/0xCA5b0AE1d104030a9B8F879523508EFd86c14483/sources/@animoca/ethereum-contracts/contracts/token/ERC721/interfaces/IERC721.sol | @title ERC721 Non-Fungible Token Standard, basic interface (functions). @dev See https://eips.ethereum.org/EIPS/eip-721 @dev This interface only contains the standard functions. See IERC721Events for the events. @dev Note: The ERC-165 identifier for this interface is 0x80ac58cd. | interface IERC721 {
function approve(address to, uint256 tokenId) external;
function setApprovalForAll(address operator, bool approved) external;
function transferFrom(address from, address to, uint256 tokenId) external;
function safeTransferFrom(address from, address to, uint256 tokenId) external;
... | 17,197,401 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
4232,
39,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
16,
5337,
1560,
261,
10722,
2934,
632,
5206,
2164,
2333,
2207,
73,
7146,
18,
546,
822,
379,
18,
3341,
19,
41,
2579,
55,
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,
1,
1... | [
1,
5831,
467,
654,
39,
27,
5340,
288,
203,
565,
445,
6617,
537,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
3903,
31,
203,
203,
565,
445,
444,
23461,
1290,
1595,
12,
2867,
3726,
16,
1426,
20412,
13,
3903,
31,
203,
203,
565,
44... |
./partial_match/3/0xe1087ba15F6Aa446304C2F9671a50e0aD5C06060/sources/testcontract.sol | Uniswap srcToken => dstTokenIUniswapV2Router01 uniswapRouter = IUniswapV2Router01(uniswapAddress); Approve Uniswap to spend tokenssrcToken.transferFrom(msg.sender, address(this), amount); Setup transfer uniswap.swapExactTokensForTokens(amount, minOuts[0], path, address(this), now + 300); As you can see I changed the a... | function runTokenUniswapTransfer(uint amount, address srcTokenAddress, address dstTokenAddress) public {
IERC20 srcToken = IERC20(srcTokenAddress);
IERC20 dstToken = IERC20(dstTokenAddress);
srcToken.approve(address(uniswapRouter), amount);
address[] memory path = new address[](2);
path[0] = addr... | 5,065,445 | [
1,
4625,
348,
7953,
560,
30,
1351,
291,
91,
438,
1705,
1345,
516,
3046,
1345,
45,
984,
291,
91,
438,
58,
22,
8259,
1611,
640,
291,
91,
438,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
8259,
1611,
12,
318,
291,
91,
438,
1887,
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,
225,
445,
1086,
1345,
984,
291,
91,
438,
5912,
12,
11890,
3844,
16,
1758,
1705,
1345,
1887,
16,
1758,
3046,
1345,
1887,
13,
1071,
288,
203,
565,
467,
654,
39,
3462,
1705,
1345,
273,
467,
654,
39,
3462,
12,
4816,
1345,
1887,
176... |
/**
* @title TEND token
* @version 2.0
* @author Validity Labs AG <info@validitylabs.org>
*
* The TTA tokens are issued as participation certificates and represent
* uncertificated securities within the meaning of article 973c Swiss CO. The
* issuance of the TTA tokens has been governed by a prospectus is... | * @dev Internal function that ensures `_amount` is multiple of the granularity @param _amount The quantity that wants to be checked/ | function requireMultiple(uint256 _amount) internal view {
require(_amount.div(granularity).mul(granularity) == _amount);
}
| 12,540,948 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
716,
11932,
1375,
67,
8949,
68,
353,
3229,
434,
326,
25380,
632,
891,
389,
8949,
1021,
10457,
716,
14805,
358,
506,
5950,
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,
1,
0,
0,
0,
0,
0,
0,
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,
2583,
8438,
12,
11890,
5034,
389,
8949,
13,
2713,
1476,
288,
203,
3639,
2583,
24899,
8949,
18,
2892,
12,
75,
27234,
2934,
16411,
12,
75,
27234,
13,
422,
389,
8949,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-... |
./full_match/3/0x86ECD3151c87a443a132051B8B5800a2F9Ec1256/sources/contracts/TheDudesV5.sol | * @dev Returns whether `spender` is allowed to manage `tokenId`. Requirements: - `tokenId` must exist./ | function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = TheDudesERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isAp... | 8,152,301 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
2856,
1375,
87,
1302,
264,
68,
353,
2935,
358,
10680,
1375,
2316,
548,
8338,
29076,
30,
300,
1375,
2316,
548,
68,
1297,
1005,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
291,
31639,
1162,
5541,
12,
2867,
17571,
264,
16,
2254,
5034,
1147,
548,
13,
2713,
1476,
5024,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
1808,
12,
2316,
548,
3631,
315,
654,
39,
27,
5340,
30,
3726,
843,
3... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgrad... | Used by pools when user redeems | function pool_burn_from(address b_address, uint256 b_amount) external onlyPools {
burnFrom(b_address, b_amount);
emit BdStableBurned(b_address, msg.sender, b_amount);
}
| 6,416,320 | [
1,
4625,
348,
7953,
560,
30,
225,
10286,
635,
16000,
1347,
729,
283,
323,
7424,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2845,
67,
70,
321,
67,
2080,
12,
2867,
324,
67,
2867,
16,
2254,
5034,
324,
67,
8949,
13,
3903,
1338,
16639,
288,
203,
3639,
18305,
1265,
12,
70,
67,
2867,
16,
324,
67,
8949,
1769,
203,
203,
3639,
3626,
605,
72,
3091... |
./full_match/5/0x7f58aBD810cF051E4Ea73F3e8f28a91ce943d343/sources/contracts/OLORaffleMaster.sol | Will need to reset - after lucky draw is completed | RaffleTicket[] public unsoldTicketHistoryOLO1;
| 1,874,840 | [
1,
4625,
348,
7953,
560,
30,
9980,
1608,
358,
2715,
300,
1839,
328,
9031,
93,
3724,
353,
5951,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
534,
7329,
298,
13614,
8526,
1071,
16804,
1673,
13614,
5623,
51,
1502,
21,
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,
-... |
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
// Libraries
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "../../util/ECDSALib.sol";
// Interfaces
import "../../interfaces/loans/ILoanData.sol";
import "../../interfaces/loans/ILoanTermsConsensus.sol";
import "../../in... | ****************************************************************************************************/* WARNING **/* THIS CONTRACT IS AN UPGRADEABLE FACET! **/* --------------... | contract LoanTermsConsensus is ILoanTermsConsensus, LoanStorage {
using SafeMath for uint256;
using NumbersList for NumbersList.Values;
using NumbersLib for uint256;
using Address for address;
using AddressArrayLib for AddressArrayLib.AddressArray;
@notice Checks if the number of responses ... | 5,398,130 | [
1,
4625,
348,
7953,
560,
30,
19756,
5021,
636,
5549,
14,
4766,
2398,
9744,
4766,
2398,
2826,
20308,
17311,
20676,
8020,
2849,
1268,
4437,
8175,
7376,
24554,
1639,
2782,
478,
6312,
56,
5,
11794,
2826,
20308,
225,
8879,
1271,
7620,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3176,
304,
11673,
9054,
9781,
353,
467,
1504,
304,
11673,
9054,
9781,
16,
3176,
304,
3245,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
6805,
2210,
682,
364,
6805,
2210,
682,
18,
1972,
31,
203,
5... |
./partial_match/1/0x8281f2bECfF37326Eb6cBE33527434611558B031/sources/Riskpool2.sol | change: no longer view to allow for log entries in derived contracts | function bundleMatchesApplication(
IBundle.Bundle memory bundle,
IPolicy.Application memory application
) public override virtual view returns(bool isMatching);
function _afterArchive() internal view override {
uint256 riskpoolId = getId();
require(
_instanceSe... | 4,154,062 | [
1,
4625,
348,
7953,
560,
30,
225,
2549,
30,
1158,
7144,
1476,
358,
1699,
364,
613,
3222,
316,
10379,
20092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3440,
6869,
3208,
12,
203,
3639,
467,
3405,
18,
3405,
3778,
3440,
16,
7010,
3639,
467,
2582,
18,
3208,
3778,
2521,
203,
565,
262,
1071,
3849,
5024,
1476,
1135,
12,
6430,
353,
9517,
1769,
203,
203,
565,
445,
389,
5205,
... |
pragma solidity ^0.4.18;
contract DSSafeAddSub {
function safeToAdd(uint a, uint b) internal returns (bool) {
return (a + b >= a);
}
function safeAdd(uint a, uint b) internal returns (uint) {
if (!safeToAdd(a, b)) throw;
return a + b;
}
function safeToSubtract(uint a, uint... | checks only treasury address is calling/ | modifier onlyCasino {
if (msg.sender != casino) throw;
_;
}
uint probabilityDivisor = 10000000;
uint constant public houseEdgeDivisor = 1000;
uint constant public maxNumber = 30;
uint constant public minNumber = 5;
bool public gamePaused;
address public owner;
bool ... | 10,757,289 | [
1,
4625,
348,
7953,
560,
30,
225,
4271,
1338,
9787,
345,
22498,
1758,
353,
4440,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
39,
345,
15020,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
8697,
15020,
13,
604,
31,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
565,
2254,
11331,
7244,
12385,
273,
2130,
11706,
31,
203,
203,
565,
2254,
5... |
./full_match/80001/0xB5E7bb79bCFd916b319b3320C63B98e617BFd023/sources/project_/contracts/Roles.sol | @title Roles @author Stobox Technologies Inc. @notice A contract for assigning and managing roles when interacting with a security tokenlist of addresses which will be assigned important roles (see contract {Roles}): * address[0] - superAdmin * address[1] - financialManager * address[2] - complianceOfficer * address[3... | abstract contract Roles is AccessControlEnumerable {
bytes32 public constant FINANCIAL_MANAGER_ROLE =
keccak256("FINANCIAL_MANAGER_ROLE");
bytes32 public constant COMPLIANCE_MANAGER_ROLE =
keccak256("COMPLIANCE_MANAGER_ROLE");
bytes32 public constant RECOVERY_MANAGER_ROLE =
keccak256... | 842,557 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
19576,
632,
4161,
20296,
2147,
30960,
27854,
15090,
18,
632,
20392,
432,
6835,
364,
28639,
471,
30632,
4900,
1347,
16592,
310,
598,
279,
4373,
1147,
1098,
434,
6138,
1492,
903,
506,
6958,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19576,
353,
24349,
3572,
25121,
288,
203,
565,
1731,
1578,
1071,
5381,
17563,
1258,
39,
6365,
67,
19402,
67,
16256,
273,
203,
3639,
417,
24410,
581,
5034,
2932,
7263,
1258,
39,
6365,
67,
19402,
67,
16256,
8863,
203,
56... |
pragma solidity ^0.4.24;
/*
* __/\\\\\\\\\\\__/\\\\____________/\\\\__/\\\________/\\\_____/\\\\\\\\\\\\_
* _\/////\\\///__\/\\\\\\________/\\\\\\_\/\\\_____/\\\//____/\\\//////////__
* _____\/\\\_____\/\\\//\\\____/\\\//\\\_\/\\\__/\\\//______/\\\_____________
* _____\/\\\_____\/\\\\///\\\/\\\/_\/... | used by deadRate / 100
| round_[rID_].deadRate = 10; | 12,946,340 | [
1,
4625,
348,
7953,
560,
30,
225,
1399,
635,
8363,
4727,
342,
2130,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3643,
67,
63,
86,
734,
67,
8009,
22097,
4727,
273,
1728,
31,
1377,
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.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 function... | * @notice Internal function to get the min value of two. @param a The first value @param b The second value @return The min one/ | function min(uint a, uint b) internal pure returns (uint) {
if (a < b) {
return a;
}
return b;
}
| 5,855,065 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3186,
445,
358,
336,
326,
1131,
460,
434,
2795,
18,
632,
891,
279,
1021,
1122,
460,
632,
891,
324,
1021,
2205,
460,
632,
2463,
1021,
1131,
1245,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
1131,
12,
11890,
279,
16,
2254,
324,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
203,
3639,
309,
261,
69,
411,
324,
13,
288,
203,
5411,
327,
279,
31,
203,
3639,
289,
203,
3639,
327,
324,
31,
203,
565,
289,
203,
203,... |
// SPDX-License-Identifier: ISC
pragma solidity ^0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC777/ERC777.sol";
/// @title Cryptopia Token
/// @notice Game currency used in Cryptoipa
/// @dev Implements the ERC777 standard
/// @author Frank Bonnet - <[emailย protected]>
contract CryptopiaToken is ERC777 {
... | * @dev See {IERC777-isOperatorFor}./ | function isOperatorFor(address operator, address tokenHolder) public view virtual override returns (bool) {
return
operator == tokenHolder ||
(_defaultOperators[operator] && !_revokedDefaultOperators[tokenHolder][operator]) ||
_operators[tokenHolder][operator];
}
| 111,946 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
14509,
17,
291,
5592,
1290,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
5592,
1290,
12,
2867,
3726,
16,
1758,
1147,
6064,
13,
1071,
1476,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
203,
5411,
3726,
422,
1147,
6064,
747,
203,
5411,
261,
67,
1886,
24473,
63,
9497,
65,
597,
4... |
pragma solidity 0.6.7;
import "./../openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./../openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./../openzeppelin/contracts/access/Ownable.sol";
import "./../openzeppelin/contracts/math/SafeMath.sol";
import "./../openzeppelin/contracts/utils/Counters.sol";
i... | reward per second = totalReward/period
| uint256 rewardUnit; | 13,435,222 | [
1,
4625,
348,
7953,
560,
30,
225,
19890,
1534,
2205,
273,
2078,
17631,
1060,
19,
6908,
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,
202,
202,
11890,
5034,
19890,
2802,
31,
377,
1082,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/97/0x6cDF86d2bf813dd4FE0F652635781bC86A83C01C/sources/project_/contracts/PancakePair.sol | if fee is on, mint liquidity equivalent to 8/25 of the growth in sqrt(k) | function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {
address feeTo = IPancakeFactory(factory).feeTo();
feeOn = feeTo != address(0);
if (feeOn) {
if (_kLast != 0) {
uint rootK = Math.sqrt(uint(_reserve0).mul(_reserve1));
... | 3,269,312 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
14036,
353,
603,
16,
312,
474,
4501,
372,
24237,
7680,
358,
1725,
19,
2947,
434,
326,
13334,
451,
316,
5700,
12,
79,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
14667,
12,
11890,
17666,
389,
455,
6527,
20,
16,
2254,
17666,
389,
455,
6527,
21,
13,
3238,
1135,
261,
6430,
14036,
1398,
13,
288,
203,
3639,
1758,
14036,
774,
273,
2971,
19292,
911,
1733,
12,
6848,
2934,
... |
./full_match/1/0x0FA5B5fE2Da77eA8bc33CC0F29209E5e8B7D1174/sources/contracts/vegeta.sol | @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for executi... | abstract contract Context {
No Telegram but there is a Discord. NARUTO will be the New, Fresher Saitama Inu, Floki and all of the above.
pragma solidity ^0.8.0;
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns ... | 16,609,921 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
288,
203,
2631,
31256,
1496,
1915,
353,
279,
3035,
901,
18,
423,
985,
11806,
903,
506,
326,
1166,
16,
478,
455,
1614,
348,
1540,
20789,
657,
89,
16,
478,
383,
15299,
471,
777,
434,
326,
5721,
18,
7010,
203,
6... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./lib/ColorUtils.sol";
import "./DixelSVGGenerator.sol";
import "./DixelArt.sol";... | Mint NFT to the user | dixelArt.mint(msgSender, getPixelColors(), updatedPixelCount, reserveForRefund, uint96(totalPrice));
| 5,448,799 | [
1,
4625,
348,
7953,
560,
30,
225,
490,
474,
423,
4464,
358,
326,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
302,
3556,
4411,
18,
81,
474,
12,
3576,
12021,
16,
1689,
3556,
12570,
9334,
3526,
9037,
1380,
16,
20501,
1290,
21537,
16,
2254,
10525,
12,
4963,
5147,
10019,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.18;
import "contracts/Interface/RequestTrackerInterface.sol";
import "contracts/Library/GroveLib.sol";
import "contracts/Library/MathLib.sol";
/**
* @title RequestTracker
* @dev The API for the GroveLib backend that keeps track of transaction requests.
*/
contract RequestTracker is RequestTrac... | Add the given request./ | function addRequest(address request, uint startWindow)
public returns (bool)
{
requestsByAddress[msg.sender].insert(bytes32(request), MathLib.safeCastSigned(startWindow));
return true;
}
| 2,517,596 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
326,
864,
590,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
691,
12,
2867,
590,
16,
2254,
787,
3829,
13,
7010,
3639,
1071,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
3285,
858,
1887,
63,
3576,
18,
15330,
8009,
6387,
12,
3890,
1578,
12,
2293,
3631,
2361,
5664,
18,
4626... |
./full_match/100/0x1df2C2fF8cF7239D6988a14fb25D19B6C2F0f80C/sources/contracts/SimpleAuction.sol | Parameters of the auction. Times are either absolute unix timestamps (seconds since 1970-01-01) or time periods in seconds. Current state of the auction. Allowed withdrawals of previous bids Set to true at the end, disallows any change. By default initialized to `false`. Events that will be emitted on changes. The fol... | contract SimpleAuction {
address payable public beneficiary;
uint public auctionEndTime;
address public highestBidder;
uint public highestBid;
mapping(address => uint) pendingReturns;
bool ended;
event HighestBidIncreased(address bidder, uint amount);
event AuctionEnded(address winne... | 14,287,734 | [
1,
4625,
348,
7953,
560,
30,
225,
7012,
434,
326,
279,
4062,
18,
399,
4485,
854,
3344,
4967,
9753,
11267,
261,
7572,
3241,
5342,
7301,
17,
1611,
17,
1611,
13,
578,
813,
12777,
316,
3974,
18,
6562,
919,
434,
326,
279,
4062,
18,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4477,
37,
4062,
288,
203,
565,
1758,
8843,
429,
1071,
27641,
74,
14463,
814,
31,
203,
565,
2254,
1071,
279,
4062,
25255,
31,
203,
203,
565,
1758,
1071,
9742,
17763,
765,
31,
203,
565,
2254,
1071,
9742,
17763,
31,
203,
203,... |
pragma solidity 0.8.9;
// ๊ฒ์ฆ
// ์ด๋๋ฆฌ์์ด ์๋ ๋ฐ๋ฅธ ๋คํธ์ํฌ ์ํฉ ๊ฐ์ .
// ์๋ขฐ์
์ฒด๊ฐ ๊ฒ์ฆ์์ฒญ์ ํจ
// ๊ฒ์ฆ์
์ฒด๊ฐ ์ด๋ฒคํธ๋ฅผ ๋ฐ์์ ์ค๋ฌธ์กฐ์ฌ ์ฐธ๊ฐ์์ ์ํธํ๋ ๊ณต๊ฐํค๋ก ์ํธํ ํ ํ ๊ธฐ๋ก
// ์๊ฐ์ด ์ง๋๋ฉด ์๋์ ์ผ๋ก ๊ธฐ๋ก ํ์ธ
// ์๋ขฐ์
์ฒด ํด๋ผ์ด์ธํธ์์ ์ค๋ฌธ์กฐ์ฌ ์ฐธ๊ฐ์์ ์ํธํ๋ ๊ณต๊ฐํค๋ก VC ์ํธํ ํ ํ ๋์กฐ.
// (์๋ขฐ์
์ฒด๊ฐ ์๋๋ฐ ์์ฒญํด๋ ํ์ธ ๋ชปํ๊ฒ(์ ์ฌ ์์ง์์ฆ๋ช
))
// ์กฐ์๋์๋์ง ํ์ธ
// VC๋ฐ์ดํฐ๊ฐ ์ง๊ธ์ ๋จ์ํ์ง๋ง ๊ฒ์ฆ๊ธฐ๊ด์์ ID ๊ฐ์ ๊ฐ์ด ๋ฐํํ๋ค๋ ๊ฐ์ (์๋ขฐ์
์ฒด๊ฐ ๋๋ ค ๋ง์ถ์ง ๋ชปํ๊ฒ)
contrac... | ์ด ์ ๋ณด๋ฅผ ๊ฐ๊ณ encryptForCompany[verificationRecodes.length] ๊ฒ์ | function approval(string memory _surveyUser, string memory _VCName)public returns(uint){
emit Approval (verificationRecodes.length, _surveyUser, tx.origin, _VCName);
verificationRecodes.push(verificationRecode(verificationRecodes.length, _surveyUser, tx.origin, block.timestamp));
return... | 5,360,005 | [
1,
4625,
348,
7953,
560,
30,
282,
225,
173,
256,
117,
225,
173,
259,
248,
172,
116,
117,
172,
103,
125,
225,
171,
113,
249,
171,
116,
259,
7347,
1290,
12627,
63,
27726,
5650,
1145,
18,
2469,
65,
225,
171,
115,
227,
173,
230,
236... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
445,
23556,
12,
1080,
3778,
389,
21448,
1299,
16,
533,
3778,
389,
13464,
461,
13,
482,
1135,
12,
11890,
15329,
203,
540,
3626,
1716,
685,
1125,
261,
27726,
5650,
1145,
18,
2469,
16,
389,
21448,
1299,
16,
225,
2229,
18,
10012... |
pragma solidity ^0.4.24;
contract owned {
address public owner;
constructor () public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
int... | Public variables of the token This creates an array with all balances This generates a public event on the blockchain that will notify clients | contract ERC20 is owned {
string public name = "Intcoex coin";
string public symbol = "ITX";
uint8 public decimals = 18;
uint256 public totalSupply = 200000000 * 10 ** uint256(decimals);
bool public released = false;
address public ICO_Contract;
mapping (address => uint256) public balance... | 7,022,852 | [
1,
4625,
348,
7953,
560,
30,
225,
7224,
3152,
434,
326,
1147,
1220,
3414,
392,
526,
598,
777,
324,
26488,
1220,
6026,
279,
1071,
871,
603,
326,
16766,
716,
903,
5066,
7712,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
353,
16199,
288,
203,
565,
533,
1071,
508,
273,
315,
1702,
2894,
338,
13170,
14432,
203,
565,
533,
1071,
3273,
273,
315,
1285,
60,
14432,
203,
565,
2254,
28,
1071,
15105,
273,
6549,
31,
203,
565,
2254,
5034... |
./partial_match/1/0x7A6425C9b3F5521BFa5d71Df710A2FB80508319b/sources/Exchange.sol | @dev Verifies signature using logic defined by Wallet contract. @param hash Any 32 byte hash. @param walletAddress Address that should have signed the given hash and defines its own signature verification method. @param signature Proof that the hash has been signed by signer. @return True if the a... | contract ITransactions {
function executeTransaction(
uint256 salt,
address signerAddress,
bytes data,
bytes signature
)
external;
}
| 4,477,640 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6160,
5032,
3372,
1450,
4058,
2553,
635,
20126,
6835,
18,
632,
891,
1651,
5502,
3847,
1160,
1651,
18,
632,
891,
9230,
1887,
5267,
716,
1410,
1240,
6726,
326,
864,
1651,
8227,
471,
11164,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
14186,
288,
203,
203,
565,
445,
1836,
3342,
12,
203,
3639,
2254,
5034,
4286,
16,
203,
3639,
1758,
10363,
1887,
16,
203,
3639,
1731,
501,
16,
203,
3639,
1731,
3372,
203,
565,
262,
203,
3639,
3903,
31,
203,
97,
203,
2... |
./full_match/42220/0x5F9bF6c204e7Ce85d2996a7797c51B1B29eF262f/sources/contracts/community/CommunityAdminImplementation.sol | * @dev Funds an existing community if it hasn't enough funds/ | function fundCommunity() external override onlyCommunities {
ICommunity _community = ICommunity(msg.sender);
uint256 _balance = cUSD.balanceOf(msg.sender);
require(
_balance < _community.minTranche(),
"CommunityAdmin::fundCommunity: this community has enough funds"
... | 16,320,622 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
478,
19156,
392,
2062,
19833,
309,
518,
13342,
1404,
7304,
284,
19156,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
284,
1074,
12136,
13352,
1435,
3903,
3849,
1338,
12136,
318,
1961,
288,
203,
3639,
467,
12136,
13352,
389,
20859,
273,
467,
12136,
13352,
12,
3576,
18,
15330,
1769,
203,
3639,
2254,
5034,
389,
12296,
273,
276,
3378,
40,
1... |
/**
*Submitted for verification at Etherscan.io on 2021-05-22
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are g... | * Total supply 100 million 25 million FaizPay 25 million Faiz 25 million Stefan 25 million Gosia/ | contract OpenBankingCoin is ERC20, ERC20Burnable {
constructor() ERC20("OpenBankingCoin", "OBC") {
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
} | 14,993,541 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
10710,
14467,
2130,
312,
737,
285,
225,
6969,
312,
737,
285,
478,
69,
452,
9148,
225,
6969,
312,
737,
285,
478,
69,
452,
225,
6969,
312,
737,
285,
7780,
74,
304,
225,
6969,
312,
737,
285,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3502,
16040,
310,
27055,
353,
4232,
39,
3462,
16,
4232,
39,
3462,
38,
321,
429,
288,
203,
203,
565,
3885,
1435,
4232,
39,
3462,
2932,
3678,
16040,
310,
27055,
3113,
315,
5704,
39,
7923,
225,
288,
203,
565,
289,
203,
377,
... |