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/1/0x471580a65c098E0344c812b6dB292347e0208B67/sources/contracts/UpEthereum.sol | wallet marketing bnb
| uint256 marketing; | 3,147,371 | [
1,
4625,
348,
7953,
560,
30,
225,
9230,
13667,
310,
324,
6423,
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,
2254,
5034,
13667,
310,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0x8dAD991154aDbFd79a5638d8967DeFE93E90cF6A/sources/src/contracts/ContractOpenablePack721.sol | @dev Stores assets within the contract. | function createOrAddERC721Bundle(
IERC721Upgradeable contractAddress,
uint256[] calldata _tokenIds,
uint256 packId,
uint256 amountPerOpen,
bool isUpdate
) internal returns (uint256 supplyToMint) {
uint256 sumOfRewardUnits = _tokenIds.length;
require(sumOfR... | 861,205 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
20296,
455,
7176,
3470,
326,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
1162,
986,
654,
39,
27,
5340,
3405,
12,
203,
3639,
467,
654,
39,
27,
5340,
10784,
429,
6835,
1887,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
389,
2316,
2673,
16,
203,
3639,
2254,
5034,
2298,
548,
16,
203,
3639,
... |
./full_match/4/0x625e2cc532d8b80D69D12132D8F63a3157bbc2A0/sources/contracts/ERC721Lending.sol | get salary amount to send to fees collector address if salary exists cancel salary and send only initial worth collateral amount check if lending entry has fees send collected fees to collecting contract address | function claimBorrowerCollateral(address tokenAddress, uint256 tokenId) public {
require(lentERC721List[tokenAddress][tokenId].borrower != address(0), 'Claim: Cannot claim if stopped');
require(lentERC721List[tokenAddress][tokenId].lender == msg.sender, 'Claim: Cannot claim not owned lend');
uint256 _bor... | 790,589 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
12814,
814,
3844,
358,
1366,
358,
1656,
281,
8543,
1758,
309,
12814,
814,
1704,
3755,
12814,
814,
471,
1366,
1338,
2172,
26247,
4508,
2045,
287,
3844,
866,
309,
328,
2846,
1241,
711,
1656,
281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7516,
38,
15318,
264,
13535,
2045,
287,
12,
2867,
1147,
1887,
16,
2254,
5034,
1147,
548,
13,
1071,
288,
203,
565,
2583,
12,
80,
319,
654,
39,
27,
5340,
682,
63,
2316,
1887,
6362,
2316,
548,
8009,
70,
15318,
264,
480,
... |
pragma solidity 0.5.8;
// From: https://github.com/mixbytes/solidity/blob/master/contracts/ownership/multiowned.sol
// Copyright (C) 2017 MixBytes, LLC
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// Unless required by applicab... | multi-sig function modifier: the operation must have an intrinsic hash in order that later attempts can be realised as the same underlying operation and thus count as confirmations. | modifier onlyManyOwners(bytes32 _operation) {
if (confirmAndCheck(_operation)) {
_;
}
| 13,119,924 | [
1,
4625,
348,
7953,
560,
30,
225,
3309,
17,
7340,
445,
9606,
30,
326,
1674,
1297,
1240,
392,
28871,
1651,
316,
1353,
716,
5137,
7531,
848,
506,
2863,
5918,
487,
326,
1967,
6808,
1674,
471,
12493,
1056,
487,
6932,
1012,
18,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
20597,
1338,
5594,
5460,
414,
12,
3890,
1578,
389,
7624,
13,
288,
203,
202,
202,
430,
261,
10927,
31151,
24899,
7624,
3719,
288,
203,
1082,
202,
67,
31,
203,
202,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.2;
// 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,... | The lowest direct purchase price that will be accepted The lowest auction bid that will be accepted The last bid on the auction. 0 if no bid has been made The address of the last bider on the auction. 0 if no bid has been made The timestamp when this auction started The timestamp at which this auction ends The addre... | struct Sale {
uint256 price;
uint256 reserve;
uint256 lastBid;
address lastBidder;
uint256 auctionStarted;
uint256 auctionEnds;
address startReferrer;
address bidReferrer;
}
| 6,352,955 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
11981,
2657,
23701,
6205,
716,
903,
506,
8494,
1021,
11981,
279,
4062,
9949,
716,
903,
506,
8494,
1021,
1142,
9949,
603,
326,
279,
4062,
18,
225,
374,
309,
1158,
9949,
711,
2118,
7165,
1021,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
348,
5349,
288,
203,
3639,
2254,
5034,
6205,
31,
203,
3639,
2254,
5034,
20501,
31,
203,
3639,
2254,
5034,
1142,
17763,
31,
203,
3639,
1758,
1142,
17763,
765,
31,
203,
3639,
2254,
5034,
279,
4062,
9217,
31,
203,
3639,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
contract Market {
enum Categories {ART, GAME, DEFI}
struct Auction {
address payable seller;
uint minBid;
Categories category;
uint endDate;
address payable highestBidAddress;
... | reimburse previous bidder | function createBid(address _tokenAddress, uint _tokenId) external payable {
Auction storage auction = auctions[_tokenAddress][_tokenId];
require(auction.endDate != 0, 'auction does not exist');
require(auction.endDate >= block.timestamp, 'auction is finished');
require(
auction.highestBidAmount ... | 1,839,855 | [
1,
4625,
348,
7953,
560,
30,
283,
381,
70,
295,
307,
2416,
9949,
765,
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,
225,
445,
752,
17763,
12,
2867,
389,
2316,
1887,
16,
2254,
389,
2316,
548,
13,
3903,
8843,
429,
288,
203,
565,
432,
4062,
2502,
279,
4062,
273,
279,
4062,
87,
63,
67,
2316,
1887,
6362,
67,
2316,
548,
15533,
203,
565,
2583,
12,
... |
./full_match/421613/0x733E9d0188F1f1fdC2C473A9ADa7864173a4dee0/sources/src/Games/Slot.sol | Checks if the symbols on reel 1 and 2 are the same | function _callback(
uint256 _id,
uint256[] calldata _randomNumbers
) external {
require(
msg.sender == address(supraRouter),
"only supra router can call this function"
);
Bet storage bet = bets[_id];
uint8[3][] memory _reels = new uint8[3]... | 11,565,194 | [
1,
4625,
348,
7953,
560,
30,
225,
13074,
309,
326,
7963,
603,
283,
292,
404,
471,
576,
854,
326,
1967,
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,
3394,
12,
203,
3639,
2254,
5034,
389,
350,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
389,
9188,
10072,
203,
565,
262,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
15330,
422,
1758,
12,
2859,
354,
8259,
3... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.11;
import "../../oracles/PeriodicAccumulationOracle.sol";
contract PeriodicAccumulationOracleStub is PeriodicAccumulationOracle {
struct Config {
bool needsUpdateOverridden;
bool needsUpdate;
}
Config public config;
constructor(
... | Always keep the liquidity accumulator updated so that we don't have to do so in our tests. Always keep the price accumulator updated so that we don't have to do so in our tests. | function _update(address token) internal virtual override returns (bool) {
string memory
bytes memory
return super._update(token);
}
| 5,532,633 | [
1,
4625,
348,
7953,
560,
30,
225,
14178,
3455,
326,
4501,
372,
24237,
13514,
3526,
1427,
716,
732,
2727,
1404,
1240,
358,
741,
1427,
316,
3134,
7434,
18,
14178,
3455,
326,
6205,
13514,
3526,
1427,
716,
732,
2727,
1404,
1240,
358,
741,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2725,
12,
2867,
1147,
13,
2713,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
5411,
533,
3778,
203,
203,
5411,
1731,
3778,
203,
203,
3639,
327,
2240,
6315,
2725,
12,
2316,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2022-03-18
*/
pragma solidity ^0.8.9;
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are... | * @dev Burns `tokenId`. See {ERC721A-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator./ | function burn(uint256 tokenId) public virtual {
TokenOwnership memory prevOwnership = ownershipOf(tokenId);
bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
getApproved(tokenId) == _msgSender() ||
isApprovedForAll(prevOwnership.addr, _msgSender()));
r... | 2,067,098 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
605,
321,
87,
1375,
2316,
548,
8338,
2164,
288,
654,
39,
27,
5340,
37,
17,
67,
70,
321,
5496,
29076,
30,
300,
1021,
4894,
1297,
4953,
1375,
2316,
548,
68,
578,
506,
392,
20412,
3726,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
11890,
5034,
1147,
548,
13,
1071,
5024,
288,
203,
3639,
3155,
5460,
12565,
3778,
2807,
5460,
12565,
273,
23178,
951,
12,
2316,
548,
1769,
203,
203,
3639,
1426,
353,
31639,
1162,
5541,
273,
261,
67,
3576,
12021,... |
./full_match/1/0xbD4F293f92fE967FA39E731ddcDc561BE2215560/sources/contracts/MERM.sol | In case of any possible future sales | function mint(uint256 quantity) external payable callerIsUser nonReentrant {
uint256 ts = totalSupply();
require(saleActive, "The sale is not active");
require(quantity <= MAX_PER_ADDRESS, "Invalid number of tokens");
require(ts.add(quantity) <= STAGE_TOKEN_LIMIT, "Purchase would exc... | 16,456,231 | [
1,
4625,
348,
7953,
560,
30,
225,
657,
648,
434,
1281,
3323,
3563,
272,
5408,
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,
312,
474,
12,
11890,
5034,
10457,
13,
3903,
8843,
429,
4894,
2520,
1299,
1661,
426,
8230,
970,
288,
203,
3639,
2254,
5034,
3742,
273,
2078,
3088,
1283,
5621,
203,
3639,
2583,
12,
87,
5349,
3896,
16,
315,
1986,
272,
5349... |
./partial_match/5/0x4e55E5eB8a81fAAdbCfa296A310aE55209e94d19/sources/CompoundLens.sol | Calculate the amount that was *actually* transferred | uint balanceAfter = BEP20Interface(underlying).balanceOf(address(this));
| 16,871,245 | [
1,
4625,
348,
7953,
560,
30,
225,
9029,
326,
3844,
716,
1703,
380,
621,
3452,
14,
906,
4193,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
11013,
4436,
273,
9722,
52,
3462,
1358,
12,
9341,
6291,
2934,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import '@openzeppelin/contracts/token/ERC721/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import '@openzeppelin/contracts/utils/Counters.so... | This same contract is used as a treasury: DAI are sent to this contract which are in turn sent as royalties to templates creators | function _payout(address _addressToPay, uint256 _amountToPay) internal {
royaltiesToken.transfer(_addressToPay, _amountToPay);
emit PayoutSent(_addressToPay, _amountToPay);
}
| 968,667 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
1967,
6835,
353,
1399,
487,
279,
9787,
345,
22498,
30,
463,
18194,
854,
3271,
358,
333,
6835,
1492,
854,
316,
7005,
3271,
487,
721,
93,
2390,
606,
358,
5539,
1519,
3062,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
84,
2012,
12,
2867,
389,
2867,
774,
9148,
16,
2254,
5034,
389,
8949,
774,
9148,
13,
2713,
288,
203,
565,
721,
93,
2390,
606,
1345,
18,
13866,
24899,
2867,
774,
9148,
16,
389,
8949,
774,
9148,
1769,
203,
203,
565,... |
pragma solidity ^0.5.17;
interface IERC20 {
function TOTALSUPPLY3() external view returns (uint256); //inject NONSTANDARD NAMING
function BALANCEOF367(address account) external view returns (uint256); //inject NONSTANDARD NAMING
function TR... | inject NONSTANDARD NAMING
| function _FREEWETH537(uint wad) internal { | 12,996,899 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
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,
565,
445,
389,
42,
862,
7245,
1584,
44,
25,
6418,
12,
11890,
341,
361,
13,
2713,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
//Address: 0x897c6cf1996edfb2126703dcecf038df646298fa
//Contract name: TradersWallet
//Balance: 0.03 Ether
//Verification Date: 8/22/2017
//Transacion Count: 6
// CODE STARTS HERE
pragma solidity ^0.4.15;
contract etherDelta {
function deposit() payable;
function withdraw(uint amount);
function depositT... | deposit tokens to etherdelta | function EtherDeltaDepositToken(address tokenAddress, uint amount) payable external {
require(msg.sender==owner);
ethDelta.depositToken(tokenAddress, amount);
}
| 12,686,164 | [
1,
4625,
348,
7953,
560,
30,
225,
443,
1724,
2430,
358,
225,
2437,
9878,
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,
512,
1136,
9242,
758,
1724,
1345,
12,
2867,
1147,
1887,
16,
2254,
3844,
13,
8843,
429,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
631,
8443,
1769,
203,
3639,
13750,
9242,
18,
323,
1724,
1345,
12,
2316,
1887,
16,
... |
//Address: 0x4E86721a4e00D7167c11D9CfD2480403Bb630378
//Contract name: ChangeCoinCrowdsale
//Balance: 0 Ether
//Verification Date: 9/16/2017
//Transacion Count: 5287
// CODE STARTS HERE
pragma solidity ^0.4.16;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization... | * @dev Calculates the amount of bonus coins the buyer gets @param tokens uint the amount of tokens you get according to current rate @return uint the amount of bonus tokens the buyer gets/ add bonus 20% in first 24hours, 15% in first week, 10% in 2nd week | function bonusAmmount(uint256 tokens) internal returns(uint256) {
uint256 bonus5 = tokens /20;
return bonus5 * 4;
return bonus5 * 3;
return bonus5 * 2;
return 0;
}
| 2,540,427 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26128,
326,
3844,
434,
324,
22889,
276,
9896,
326,
27037,
5571,
632,
891,
2430,
2254,
326,
3844,
434,
2430,
1846,
336,
4888,
358,
783,
4993,
632,
2463,
2254,
326,
3844,
434,
324,
22889,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
324,
22889,
9864,
4778,
12,
11890,
5034,
2430,
13,
2713,
1135,
12,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
324,
22889,
25,
273,
2430,
342,
3462,
31,
203,
1377,
327,
324,
22889,
25,
380,
1059,
31,
203,
1377,
327,
3... |
./partial_match/1/0x744F4A490Ef4A37163942a42D3FE557203e194D1/sources/TokenConverter.sol | * @dev constructor function. set FNX minePool contract address./ | function setParameter(address _cfnxAddress,address _fnxAddress,uint256 _timeSpan,uint256 _dispatchTimes,uint256 _txNum) onlyOwner public{
if (_cfnxAddress != address(0))
cfnxAddress = _cfnxAddress;
if (_fnxAddress != address(0))
fnxAddress = _fnxAddress;
... | 4,303,077 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3885,
445,
18,
444,
478,
17106,
312,
558,
2864,
6835,
1758,
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,
... | [
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,
6690,
12,
2867,
389,
71,
4293,
92,
1887,
16,
2867,
389,
4293,
92,
1887,
16,
11890,
5034,
389,
957,
6952,
16,
11890,
5034,
389,
10739,
10694,
16,
11890,
5034,
389,
978,
2578,
13,
1338,
5541,
1071,
95,
203,
3639,
309,
2... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.5.16;
contract JoetrollerErrorReporter {
enum Error {
NO_ERROR,
UNAUTHORIZED,
JOETROLLER_MISMATCH,
INSUFFICIENT_SHORTFALL,
INSUFFICIENT_LIQUIDITY,
INVALID_CLOSE_FACTOR,
INVALID_COLLATERAL_FACTOR,
... | Calculate the number of seconds elapsed since the last accrual */ | uint256 timestampDelta = sub_(currentBlockTimestamp, accrualBlockTimestampPrior);
| 1,810,014 | [
1,
4625,
348,
7953,
560,
30,
225,
9029,
326,
1300,
434,
3974,
9613,
3241,
326,
1142,
4078,
86,
1462,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
2858,
9242,
273,
720,
67,
12,
2972,
1768,
4921,
16,
4078,
86,
1462,
1768,
4921,
25355,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* Jetoken is looking to fully disrupt the decentralized world with our
new initial Token offering.
If you've an entrepreneurial vision come and join us on our way to success
*/
pragma solidity ^0.8.0;
// SPDX-License-Identifier: Unlicensed
interface IERC20 {
function totalSupply() external view returns (uint... | this method is responsible for taking all fee, if takeFee is true | function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!takeFee)
removeAllFee();
_transferStandard(sender, recipient, amount);
if(!takeFee)
restoreAllFee();
}
| 11,702,387 | [
1,
4625,
348,
7953,
560,
30,
333,
707,
353,
14549,
364,
13763,
777,
14036,
16,
309,
4862,
14667,
353,
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,
... | [
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,
2316,
5912,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
16,
6430,
4862,
14667,
13,
3238,
288,
203,
3639,
309,
12,
5,
22188,
14667,
13,
203,
5411,
12787,
14667,
5621,
203,
540,
203,
203,
5411,
389,
13866,
... |
./full_match/1/0xA9045AC9360EA09EEBC34d015EB66b2001746351/sources/contracts/Interfaces.sol | Token id order check
| require (ids[i] == mintedCount + i + 1, "Token id not in order"); | 9,715,932 | [
1,
4625,
348,
7953,
560,
30,
3155,
612,
1353,
866,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2583,
261,
2232,
63,
77,
65,
422,
312,
474,
329,
1380,
397,
277,
397,
404,
16,
315,
1345,
612,
486,
316,
1353,
8863,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
.&&&&&&&&&&&%
&&&&&&&&&&&&&
&&&&&&&&&&&&&
%%%&&&&&&&&&%
... | @notice Represents a permit to transfer NFT on behave of token owner. A signed transfer voucher can be used only by voucher transfer role for a limited of time. | struct TransferVoucher {
uint256 tokenID;
address owner;
uint256 expirationTime;
uint256 amount;
uint256 nonce;
mapping(uint256 => uint256) internal _tokenAmounts;
mapping(uint256 => uint256) internal _transferAmounts;
event MintVoucherGasUsage(
addres... | 229,934 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
868,
6706,
87,
279,
21447,
358,
7412,
423,
4464,
603,
31085,
434,
1147,
3410,
18,
432,
6726,
7412,
331,
14329,
848,
506,
1399,
1338,
635,
331,
14329,
7412,
2478,
364,
279,
13594,
434,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1958,
12279,
19585,
288,
203,
3639,
2254,
5034,
1147,
734,
31,
203,
3639,
1758,
3410,
31,
203,
3639,
2254,
5034,
7686,
950,
31,
203,
3639,
2254,
5034,
3844,
31,
203,
3639,
2254,
5034,
7448,
31,
203,
203,
203,
565,
2874,
12,
... |
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
import "../openzeppelin/ERC20.sol";
import "../openzeppelin/SafeERC20.sol";
import "../openzeppelin/SafeMath.sol";
import "./LiquidityMiningStorageV2.sol";
import "./IRewardTransferLogic.sol";
import "./ILiquidityMiningV2.sol";
/// @notice This contract is a n... | * @notice returns list of UserInfo for the given user for each pool token @param _user the address of the user/ | function getUserInfoList(address _user) external view returns (PoolUserInfo[] memory) {
uint256 length = poolInfoList.length;
PoolUserInfo[] memory userInfoList = new PoolUserInfo[](length);
for (uint256 i = 0; i < length; i++) {
userInfoList[i] = _getPoolUserInfo(i, _user);
}
return userInfoList;
}
| 15,797,203 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1135,
666,
434,
25003,
364,
326,
864,
729,
364,
1517,
2845,
1147,
632,
891,
389,
1355,
326,
1758,
434,
326,
729,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4735,
17914,
12,
2867,
389,
1355,
13,
3903,
1476,
1135,
261,
2864,
21015,
8526,
3778,
13,
288,
203,
202,
202,
11890,
5034,
769,
273,
2845,
17914,
18,
2469,
31,
203,
202,
202,
2864,
21015,
8526,
3778,
16753,
682,
273,
39... |
pragma solidity ^0.4.24;
import "./IProductStorage.sol";
import "./IAffiliateStorage.sol";
import "./IEscrow.sol";
import "./IFeePolicy.sol";
import "../common/Manageable.sol";
import "../common/SafeMathLib.sol";
import "../common/UsePermille.sol";
import "../token/IERC20Token.sol";
/**@dev Calculates fee details. Ta... | discount permille [0-1000] (X from the docs)
| uint16 public discount; | 12,703,661 | [
1,
4625,
348,
7953,
560,
30,
225,
12137,
4641,
14120,
306,
20,
17,
18088,
65,
261,
60,
628,
326,
3270,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2254,
2313,
1071,
12137,
31,
5375,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.21;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// ----------------------------------------------------------------------------
contract ERC20Interfa... | ------------------------------------------------------------------------ send ERC20 Token to multi address ------------------------------------------------------------------------ | function multiTransfer(address[] _addresses, uint256[] amounts) public returns (bool success){
for (uint256 i = 0; i < _addresses.length; i++) {
transfer(_addresses[i], amounts[i]);
}
return true;
}
| 141,114 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
1366,
4232,
39,
3462,
3155,
358,
3309,
1758,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3309,
5912,
12,
2867,
8526,
389,
13277,
16,
2254,
5034,
8526,
30980,
13,
1071,
1135,
261,
6430,
2216,
15329,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
13277,
18,
2469,
31,
277,
27245,
288,
203,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token... | * @dev Purchases a listing from the marketplace. @param _collection The address of the collection that the listing is from. @param _listingKey The key of the listing to be purchased./ | function purchaseListing(
address _collection,
uint _listingKey
) public payable nonReentrant {
uint price = listing[_listingKey].price;
uint precision = listing[_listingKey].precision;
uint feeStaker = calculateStakerFee(price, precision);
uint feeDeveloper = cal... | 13,071,055 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
14466,
343,
3304,
279,
11591,
628,
326,
29917,
18,
632,
891,
389,
5548,
1021,
1758,
434,
326,
1849,
716,
326,
11591,
353,
628,
18,
632,
891,
389,
21228,
653,
1021,
498,
434,
326,
11591,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
23701,
19081,
12,
203,
3639,
1758,
389,
5548,
16,
203,
3639,
2254,
389,
21228,
653,
203,
565,
262,
1071,
8843,
429,
1661,
426,
8230,
970,
288,
203,
3639,
2254,
6205,
273,
11591,
63,
67,
21228,
653,
8009,
8694,
31,
203,
... |
./partial_match/1/0x9680223F7069203E361f55fEFC89B7c1A952CDcc/sources/Inventory.sol | templateId we are looking for
| uint256 templateId = allItems[_tokenId].templateId; | 4,116,290 | [
1,
4625,
348,
7953,
560,
30,
225,
1542,
548,
732,
854,
7849,
364,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
1542,
548,
273,
777,
3126,
63,
67,
2316,
548,
8009,
3202,
548,
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,
... |
pragma solidity ^0.6.0;
import "./interfaces/IERC20.sol";
import "./VRFConsumerBase.sol";
import "@openzeppelin/contracts/utils/Address.sol";
// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
cont... | * @dev Settles the lottery, the winners are calculated based on the random number generated. The Admin fee is calculated and transferred back to Admin `adminAddress`. Emits an {WinnersGenerated} event indicating that the winners for the lottery have been generated. Emits {LotterySettled} event indicating that the winni... | function settleLottery() external {
require(
isRandomNumberGenerated,
"Lottery Configuration still in progress. Please try in a short while"
);
require(
lotteryStatus == LotteryStatus.INPROGRESS,
"The Lottery is not started or closed"
)... | 12,624,504 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1000,
88,
1040,
326,
17417,
387,
93,
16,
326,
5657,
9646,
854,
8894,
2511,
603,
326,
2744,
1300,
4374,
18,
1021,
7807,
14036,
353,
8894,
471,
906,
4193,
1473,
358,
7807,
1375,
3666,
1887,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5929,
48,
352,
387,
93,
1435,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
353,
8529,
1854,
7823,
16,
203,
5411,
315,
48,
352,
387,
93,
4659,
4859,
316,
4007,
18,
7801,
775,
316,
279,
3025,
1323,
6,
203,
3639,
11... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarvest;
uint256 maxDebtPerHarvest;
uint256 lastReport;
uin... | Curve gauge contract, most are tokenized, held by Yearn's voter
| address public gauge; | 413,582 | [
1,
4625,
348,
7953,
560,
30,
225,
22901,
13335,
6835,
16,
4486,
854,
26073,
16,
15770,
635,
1624,
73,
1303,
1807,
331,
20005,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
1071,
13335,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.5.16;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uin... | * @dev Standard ERC20 token with burning and optional functions implemented. For full specification of ERC-20 standard see:/ | contract AFFS is ERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor(string memory name, string memory symbol, uint8 decimals, uint256 totalSupply, address tokenOwnerAddress) public payable {
_name = name;
_symbol = symbol;
_decimals = decimals... | 10,312,325 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8263,
4232,
39,
3462,
1147,
598,
18305,
310,
471,
3129,
4186,
8249,
18,
2457,
1983,
7490,
434,
4232,
39,
17,
3462,
4529,
2621,
27824,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
2246,
55,
353,
4232,
39,
3462,
288,
203,
203,
565,
533,
3238,
389,
529,
31,
203,
565,
533,
3238,
389,
7175,
31,
203,
565,
2254,
28,
3238,
389,
31734,
31,
203,
203,
203,
565,
3885,
12,
1080,
3778,
508,
16,
533,
377... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
import "../client/node_modules/@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract PardnaConfig {
// ARRAYS
User[] public users;
Pardna[] public pardnas;
// MAPPINGS
mapping (address => uint256[]) public pardnasParticipati... | TODO: JMD-Pegged Token
| require(_throwAmount <= 10 ether, "Throw amount cannot exceed 10 ether"); | 2,544,721 | [
1,
4625,
348,
7953,
560,
30,
2660,
30,
804,
6188,
17,
52,
1332,
2423,
3155,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
24899,
12849,
6275,
1648,
1728,
225,
2437,
16,
315,
8282,
3844,
2780,
9943,
1728,
225,
2437,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0xE26C010f7F26D71A605CB084049200978587075a
//Contract name: CrowdServe
//Balance: 0 Ether
//Verification Date: 6/8/2018
//Transacion Count: 1
// CODE STARTS HERE
/*
In all states except the Ending state:
Anyone can contribute and receive tokens at a ratio of 1 token : 1 ETH.
Contributors can burn ... | This gives contributors a guaranteed minimum time to recall their funds
| uint public minPreviewInterval; | 950,481 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
14758,
13608,
13595,
279,
15403,
5224,
813,
358,
20895,
3675,
284,
19156,
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,
... | [
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,
2254,
1071,
1131,
11124,
4006,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2022-01-03
*/
// Dependency file: @openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
... | internal mint function, incrementing token | function mint(address _to) internal {
_safeMint(_to, tokenIdTracker.current());
tokenIdTracker.increment();
}
| 7,927,174 | [
1,
4625,
348,
7953,
560,
30,
225,
2713,
312,
474,
445,
16,
5504,
310,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
312,
474,
12,
2867,
389,
869,
13,
2713,
288,
203,
3639,
389,
4626,
49,
474,
24899,
869,
16,
1147,
548,
8135,
18,
2972,
10663,
203,
3639,
1147,
548,
8135,
18,
15016,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
pragma solidity ^0.6.0;
interface CHIInterface {
function mint(uint256 value) external;
function free(uint256 value) external returns (uint256);
function balanceOf(address) external view returns (uint);
function approve(address, uint256) external;
}
contract ChiHelpers {
/**
* @dev CHI token... | * @dev CHI token Address/ | function getCHIAddress() internal pure returns (address) {
return 0x0000000000004946c0e9F43F4Dee607b0eF1fA1c;
}
| 576,658 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6469,
45,
1147,
5267,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
1792,
45,
1887,
1435,
2713,
16618,
1135,
261,
2867,
13,
288,
203,
3639,
327,
374,
92,
12648,
2787,
7616,
8749,
71,
20,
73,
29,
42,
8942,
42,
24,
758,
73,
4848,
27,
70,
20,
73,
42,
21,
29534,
21,
71,
31,
203,
... |
// File contracts/interfaces/IwsOHM.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.0;
interface IwsOHM {
function wOHMTosOHM( uint _amount ) external view returns ( uint );
function sOHMTowOHM( uint _amount ) external view returns ( uint );
}
// File contracts/interfaces/IERC20.sol
/... | * @notice returns amount of sOHM (agnoatic or regular) a NFT has to claim @param _id uint @param _agnostic bool @return uint/ | function getUnderlyingForNFT(uint _id, bool _agnostic) public view returns (uint) {
(,,,,, uint _tier) = IIncooom(incooom).getCardInfo(_id);
Tiers memory tier = tiers[_tier];
if(_agnostic){
return tier.agnosticSOHMEach - agnositcAmountClaimed[_id];
return IwsOHM(wsO... | 363,888 | [
1,
4625,
348,
7953,
560,
30,
380,
282,
632,
20392,
1135,
3844,
434,
272,
51,
44,
49,
261,
346,
2135,
2126,
578,
6736,
13,
279,
423,
4464,
711,
358,
7516,
282,
632,
891,
389,
350,
2254,
282,
632,
891,
389,
346,
11388,
1426,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10833,
765,
6291,
1290,
50,
4464,
12,
11890,
389,
350,
16,
1426,
389,
346,
11388,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
203,
3639,
261,
30495,
16,
2254,
389,
88,
2453,
13,
273,
467,
382,
2894,
4252,
12,
267,... |
pragma solidity ^0.4.20;
contract POMDA {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghands() {
require(myDividends(true) >... | -- APPLICATION ENTRY POINTS --/ | function POMDA()
public
{
}
| 7,835,003 | [
1,
4625,
348,
7953,
560,
30,
225,
1493,
14148,
25516,
13803,
3217,
55,
1493,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
453,
1872,
9793,
1435,
203,
482,
203,
95,
203,
540,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42220/0xD7A4Db11DAF3F3E0Bdd5767d86DA0c835de621CF/sources/Xeggo/interfaces/IXeggo.sol | * @title IXeggo @author Xeggo/ | interface IXeggo {
event CreateStream(
uint256 indexed streamId,
address indexed sender,
address indexed recipient,
uint256 deposit,
address tokenAddress,
uint256 startTime,
uint256 stopTime
);
event WithdrawFromStream(uint256 indexed streamId, addres... | 16,335,537 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
467,
60,
1332,
3240,
632,
4161,
1139,
1332,
3240,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
60,
1332,
3240,
288,
203,
565,
871,
1788,
1228,
12,
203,
3639,
2254,
5034,
8808,
21035,
16,
203,
3639,
1758,
8808,
5793,
16,
203,
3639,
1758,
8808,
8027,
16,
203,
3639,
2254,
5034,
443,
1724,
16,
203,
3639,
1758,
1147,... |
/* Owned.sol
Pacio Core Ltd https://www.pacio.io
2017.03.04 djh Originally created
2017.08.16 Brought into use for Pacio token sale use
2017.08.22 Logging revised
Owned is a Base Contract for contracts that are:
• "owned"
• can have their owner changed by a call to ChangeOwner() by the owner
• can be paus... | can only be called once
| require(totalSupply == 0); | 12,650,260 | [
1,
4625,
348,
7953,
560,
30,
225,
848,
1338,
506,
2566,
3647,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2583,
12,
4963,
3088,
1283,
422,
374,
1769,
6647,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-26
*/
pragma solidity ^0.6.12;
/*
_ _ _ _____ _
| | | | | | / __ \ (_)
| | | |_ __ __ _ _ __ _ __ ... | Obtain Art status for user | function getArtStatus(uint _tokenid)public view returns(uint)
{
uint temp;
temp = artenabled[_tokenid];
return temp;
}
| 7,957,636 | [
1,
4625,
348,
7953,
560,
30,
24850,
9042,
1267,
364,
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,
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,
336,
4411,
1482,
12,
11890,
389,
2316,
350,
13,
482,
1476,
1135,
12,
11890,
13,
203,
565,
288,
203,
3639,
2254,
1906,
31,
203,
3639,
1906,
273,
419,
2253,
1116,
63,
67,
2316,
350,
15533,
203,
3639,
327,
1906,
31,
203,... |
./full_match/4/0x0A7a3f0696c36E5c3452915dbB1b3115c3A37680/sources/browser/3_Ballot.sol | sending all the tokens to Ownerfiring event which logs this transaction | constructor() public{
_balanceOf[owner] = _totalSupply;
emit Transfer(address(0), owner, _totalSupply);
}
| 671,067 | [
1,
4625,
348,
7953,
560,
30,
5431,
777,
326,
2430,
358,
16837,
74,
11256,
871,
1492,
5963,
333,
2492,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
95,
203,
3639,
389,
12296,
951,
63,
8443,
65,
273,
389,
4963,
3088,
1283,
31,
203,
540,
203,
3639,
3626,
12279,
12,
2867,
12,
20,
3631,
3410,
16,
389,
4963,
3088,
1283,
1769,
203,
565,
289,
203,
377,
203,... |
/*
Write the CharitySplitter contract. The contract must be owned by a single address that
can add and remove charities dynamically. Upon receiving ETH the contract must split it
equally and transfer the resulting amount to the charities.
*/
pragma solidity ^0.6.1;
contract CharitySplitter {
address public o... | Maintain the total count of charities added, including those that are subsequently deleted. This serves the indexing of the `charities` mapping | uint256 public totalCharitiesCount;
| 15,795,344 | [
1,
4625,
348,
7953,
560,
30,
225,
490,
1598,
530,
326,
2078,
1056,
434,
1149,
1961,
3096,
16,
6508,
5348,
716,
854,
10815,
715,
4282,
18,
1220,
26255,
326,
14403,
434,
326,
1375,
3001,
1961,
68,
2874,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
2156,
1961,
1380,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/97/0xfd30123f41b7c0aa0bAc32C3103eb8A52D73022C/sources/contracts/tree.sol | ** @dev _origin: NFT合约地址 @dev amount:购买的数量/ | function buyNFTCard(address _origin, uint256 amount) public payable {
require(regiestedNFTs[_origin].status == 1, "origin not regist");
payPrice(_origin, amount);
uint256[] memory tokenIDs = new uint256[](amount);
for (uint i=0; i<amount; i++) {
tokenIDs[i] = mintOne(_or... | 5,033,772 | [
1,
4625,
348,
7953,
560,
30,
2826,
632,
5206,
389,
10012,
176,
125,
253,
423,
4464,
166,
243,
235,
168,
123,
104,
166,
255,
113,
166,
256,
227,
632,
5206,
3844,
176,
125,
253,
169,
117,
260,
165,
122,
113,
168,
253,
231,
167,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
50,
4464,
6415,
12,
2867,
389,
10012,
16,
2254,
5034,
3844,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
1574,
77,
3149,
50,
4464,
87,
63,
67,
10012,
8009,
2327,
422,
404,
16,
315,
10012,
486,
960,
376,
8863,... |
./full_match/1/0x004048e3974D9FA7e1095c03B99F307A03E0e310/sources/Playshare/stakepool.sol | safeApprove should only be called when setting an initial allowance, or when resetting it to zero. To increase and decrease it, use 'safeIncreaseAllowance' and 'safeDecreaseAllowance' solhint-disable-next-line max-line-length | function safeApprove(IERC20 token, address spender, uint256 value) internal {
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));... | 3,019,427 | [
1,
4625,
348,
7953,
560,
30,
225,
4183,
12053,
537,
1410,
1338,
506,
2566,
1347,
3637,
392,
2172,
1699,
1359,
16,
578,
1347,
30691,
518,
358,
3634,
18,
2974,
10929,
471,
20467,
518,
16,
999,
296,
4626,
382,
11908,
7009,
1359,
11,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4183,
12053,
537,
12,
45,
654,
39,
3462,
1147,
16,
1758,
17571,
264,
16,
2254,
5034,
460,
13,
2713,
288,
203,
565,
2583,
12443,
1132,
422,
374,
13,
747,
261,
2316,
18,
5965,
1359,
12,
2867,
12,
2211,
3631,
17571,
264,... |
/**
*Submitted for verification at Etherscan.io on 2021-03-17
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes call... | * @notice From address sends value to address./ | However, this function can only be performed by a spender
who is entitled to withdraw through the aprove function.
function transferFrom(address from, address to, uint256 value) public virtual override returns (bool) {
require(value <= _balances[from]);
require(value <= _allowed[... | 13,104,425 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
6338,
1758,
9573,
460,
358,
1758,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10724,
16,
333,
445,
848,
1338,
506,
9591,
635,
279,
17571,
264,
7010,
2868,
10354,
353,
3281,
305,
1259,
358,
598,
9446,
3059,
326,
513,
303,
537,
445,
18,
7010,
225,
445,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
22... |
pragma solidity ^0.8.5;
import "./interfaces/ICToken.sol";
import "./interfaces/ITrigger.sol";
/**
* @notice Defines a trigger that is toggled if the Compound exchange rate decreases between consecutive checks. Under
* normal operation, this value should only increase
*/
contract CompoundExchangeRate is ITrigger {... | * @notice Set the value of a parameter @param _name Name of the variable to set @param _value Value to set the parameter to/ | function set(bytes32 _name, uint256 _value) external {
if (_name == "totalReserves") totalReserves = _value;
if (_name == "totalBorrows") totalBorrows = _value;
if (_name == "totalSupply") totalSupply = _value;
if (_name == "exchangeRateStored") exchangeRateStored = _value;
if (_name == "cash") ca... | 6,992,429 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1000,
326,
460,
434,
279,
1569,
632,
891,
389,
529,
1770,
434,
326,
2190,
358,
444,
632,
891,
389,
1132,
1445,
358,
444,
326,
1569,
358,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
444,
12,
3890,
1578,
389,
529,
16,
2254,
5034,
389,
1132,
13,
3903,
288,
203,
565,
309,
261,
67,
529,
422,
315,
4963,
607,
264,
3324,
7923,
2078,
607,
264,
3324,
273,
389,
1132,
31,
203,
565,
309,
261,
67,
529,
422,... |
//Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
import "./EnumerableMap.sol";
import "./ERC721Enumerable.sol";
contract FrankiesMansion is ERC721Enumerable, Ownable {... | * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden in child contracts./ | function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
| 34,717 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3360,
3699,
364,
20303,
288,
2316,
3098,
5496,
8953,
635,
805,
16,
848,
506,
31736,
316,
1151,
20092,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1969,
3098,
1435,
2713,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
1026,
3098,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/42/0x05722b2C4dd21770ac8c6a8077ADA0828266672f/sources/Implementation.sol | * @dev The Ownable constructor sets the original `owner` of the contract to the sender account./ | constructor() internal {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _owner);
}
| 3,297,447 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
14223,
6914,
3885,
1678,
326,
2282,
1375,
8443,
68,
434,
326,
6835,
358,
326,
5793,
2236,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
3885,
1435,
2713,
288,
203,
565,
389,
8443,
273,
1234,
18,
15330,
31,
203,
565,
3626,
14223,
9646,
5310,
1429,
4193,
12,
2867,
12,
20,
3631,
389,
8443,
1769,
203,
225,
289,
203,
21281,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
library SafeMath {
function ADD718(uint256 a, uint256 b) internal pure returns (uint256) { //inject NONSTANDARD NAMING... | allow pool to get tokens
| IERC20(corbAddress).APPROVE929(unirouter956, amountTokenDesired ); | 15,883,856 | [
1,
4625,
348,
7953,
560,
30,
1699,
2845,
358,
336,
2430,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
3850,
70,
1887,
2934,
2203,
3373,
3412,
29,
5540,
12,
318,
77,
10717,
29,
4313,
16,
3844,
1345,
25683,
11272,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x51D32FB6c763878F44f93907d7f88FD9eF370595/sources/ChronosCore.sol | @notice Set the parameters for the next game. @param _price The price of wagers for the next game. @param _timeout The timeout in seconds for the next game. @param _minimumTimeout The minimum timeout in seconds for the next game. @param _numberOfWagersToMinimumTimeout The number of wagers required to move to the minim... | function setNextGame(uint256 _price, uint256 _timeout, uint256 _minimumTimeout, uint256 _numberOfWagersToMinimumTimeout) external onlyCFO {
require(_timeout >= _minimumTimeout);
nextPrice = _price;
nextTimeout = _timeout;
nextMinimumTimeout = _minimumTimeout;
nextNumberO... | 4,400,236 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
326,
1472,
364,
326,
1024,
7920,
18,
632,
891,
389,
8694,
1021,
6205,
434,
341,
346,
414,
364,
326,
1024,
7920,
18,
632,
891,
389,
4538,
1021,
2021,
316,
3974,
364,
326,
1024,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27674,
12496,
12,
11890,
5034,
389,
8694,
16,
2254,
5034,
389,
4538,
16,
2254,
5034,
389,
15903,
2694,
16,
2254,
5034,
389,
2696,
951,
59,
346,
414,
774,
13042,
2694,
13,
3903,
1338,
39,
3313,
288,
203,
3639,
2583,
2489... |
./partial_match/1/0x04A39FB8D3C74745BA0E40248d01B893a4835845/sources/FannyVault.sol | struct Deposit { uint256 amountCORE; uint256 startedLockedTime; uint256 amountTimeLocked; bool withdrawed; } Loop over all deposits | function withdrawAllWithdrawableCORE() lock public {
uint256 lenghtUserDeposits = user.deposits.length;
require(user.amountCredit > 0, "Nothing to withdraw 1");
require(lenghtUserDeposits > 0, "No deposits");
uint256 withdrawableCORE;
uint256 creditPenalty;
for (uint... | 4,226,486 | [
1,
4625,
348,
7953,
560,
30,
225,
1958,
4019,
538,
305,
288,
377,
2254,
5034,
3844,
15715,
31,
377,
2254,
5034,
5746,
8966,
950,
31,
377,
2254,
5034,
3844,
950,
8966,
31,
377,
1426,
598,
9446,
329,
31,
289,
9720,
1879,
777,
443,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1595,
1190,
9446,
429,
15715,
1435,
2176,
1071,
288,
203,
3639,
2254,
5034,
562,
75,
647,
1299,
758,
917,
1282,
273,
729,
18,
323,
917,
1282,
18,
2469,
31,
203,
3639,
2583,
12,
1355,
18,
8949,
16520,
405,
3... |
./full_match/80001/0x72c82aefeDFC77A782E503cAe33E4917F6641251/sources/contracts/WAYSPACE.sol | @notice This allows the user to purchase a edition edition at the given price in the contract. | function purchaseBundle(uint256 _quantity)
external
payable
onlyPublicSaleActive
onlyValidPrice(bundlePrice, _quantity)
returns (uint256)
{
uint8 songIdOne = 1;
uint8 songIdTwo = 2;
_purchase(_quantity, songIdOne);
uint256 firstMintedTokenI... | 843,209 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1220,
5360,
326,
729,
358,
23701,
279,
28432,
28432,
622,
326,
864,
6205,
316,
326,
6835,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
23701,
3405,
12,
11890,
5034,
389,
16172,
13,
203,
3639,
3903,
203,
3639,
8843,
429,
203,
3639,
1338,
4782,
30746,
3896,
203,
3639,
1338,
1556,
5147,
12,
9991,
5147,
16,
389,
16172,
13,
203,
3639,
1135,
261,
11890,
5034,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/TokenTimelock.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
// The spookylock leverages using openzeppelin timelock for maximum s... | Attempts to release tokens. This is done safely with OpenZeppelin which checks the proper time has passed. To see their code go to: https:github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/utils/TokenTimelock.sol | function release(uint lock) external {
Locks[lock].release();
}
| 5,407,205 | [
1,
4625,
348,
7953,
560,
30,
225,
6020,
9585,
358,
3992,
2430,
18,
1220,
353,
2731,
15303,
598,
3502,
62,
881,
84,
292,
267,
1492,
4271,
326,
5338,
813,
711,
2275,
18,
2974,
2621,
3675,
981,
1960,
358,
30,
2333,
30,
6662,
18,
832,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3992,
12,
11890,
2176,
13,
3903,
288,
203,
3639,
3488,
87,
63,
739,
8009,
9340,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.11;
import "./RLP.sol";
contract ProvethVerifier {
using RLP for RLP.RLPItem;
using RLP for RLP.Iterator;
using RLP for bytes;
uint256 constant TX_ROOT_HASH_INDEX = 4;
struct UnsignedTransaction {
uint256 nonce;
uint256 gasprice;
uint256 startgas;
... | we want the value stored in this node
| } else if (stackIndexes[i] == 16) { | 6,404,811 | [
1,
4625,
348,
7953,
560,
30,
225,
732,
2545,
326,
460,
4041,
316,
333,
756,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
289,
469,
309,
261,
3772,
8639,
63,
77,
65,
422,
2872,
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,
-... |
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.6.12;
import "./BaseJumpRateModelV2.sol";
import "./Interfaces/InterestRateModelInterface.sol";
/**
* @title MOAR's JumpRateModel Contract V2 for V2 mTokens
* @notice Supports only for V2 mTokens
*/
contract JumpRateModelV2 is BaseJumpRateModelV2 {
... | * @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor... | library SafeMath {
}
pragma solidity ^0.6.12;
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (u... | 84,775 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4266,
10422,
1879,
348,
7953,
560,
1807,
30828,
5295,
598,
3096,
9391,
4271,
18,
27443,
5295,
316,
348,
7953,
560,
2193,
603,
9391,
18,
1220,
848,
17997,
563,
316,
22398,
16,
2724,
5402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
10477,
288,
203,
97,
203,
683,
9454,
18035,
560,
3602,
20,
18,
26,
18,
2138,
31,
203,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
225... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/introspection/IERC165.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/con... | @notice Events for the contract @notice Structure for Bundle Item Listing | struct Listing {
address[] nfts;
uint256[] tokenIds;
uint256[] quantities;
address payToken;
uint256 price;
uint256 startingTime;
}
| 32,346 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
9043,
364,
326,
6835,
632,
20392,
13348,
364,
8539,
4342,
987,
310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1958,
987,
310,
288,
203,
3639,
1758,
8526,
290,
1222,
87,
31,
203,
3639,
2254,
5034,
8526,
1147,
2673,
31,
203,
3639,
2254,
5034,
8526,
10251,
1961,
31,
203,
3639,
1758,
8843,
1345,
31,
203,
3639,
2254,
5034,
6205,
31,
203,... |
./partial_match/4/0x7d8151FAB5D6742F1c574fff472B6794062C2D0C/sources/_superfluid-finance/ethereum-contracts/contracts/interfaces/misc/IResolver.sol | * @dev Abstraction for a address resolver contract @author Superfluid/ | interface IResolver {
function get(string calldata name) external view returns (address);
pragma solidity >= 0.5.0;
}
| 8,755,701 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9771,
701,
1128,
364,
279,
1758,
5039,
6835,
632,
4161,
14845,
2242,
1911,
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,
4301,
288,
203,
203,
565,
445,
336,
12,
1080,
745,
892,
508,
13,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
683,
9454,
18035,
560,
1545,
374,
18,
25,
18,
20,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
pragma solidity ^0.5.2;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint2... | Multiply the minimumBidMultiplier by maxNaturalUnit to get minimumBid | return _auction.maxNaturalUnit.mul(minimumBidMultiplier);
| 12,804,797 | [
1,
4625,
348,
7953,
560,
30,
225,
5991,
1283,
326,
5224,
17763,
23365,
635,
943,
23779,
3766,
2802,
358,
336,
5224,
17763,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
327,
389,
69,
4062,
18,
1896,
23779,
3766,
2802,
18,
16411,
12,
15903,
17763,
23365,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
abstract contract IManager {
function last(address) virtual public returns (uint);
function cdpCan(address, uint, address) virtual public view returns (uint);
function ilks(uint) virtual public view returns (b... | @dev Edited so it always first approves 0 and then the value, because of non standard tokens | function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
| 3,218 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
15328,
329,
1427,
518,
3712,
1122,
6617,
3324,
374,
471,
1508,
326,
460,
16,
2724,
434,
1661,
4529,
2430,
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,
4183,
12053,
537,
12,
203,
3639,
467,
654,
39,
3462,
1147,
16,
203,
3639,
1758,
17571,
264,
16,
203,
3639,
2254,
5034,
460,
203,
565,
262,
2713,
288,
203,
3639,
389,
1991,
6542,
990,
12,
2316,
16,
24126,
18,
3015,
119... |
./partial_match/4/0x84E2A08Ca86f3fC7eBD81f3AD87f07a45FDC3230/sources/maci-contracts/sol/MACI.sol | Save the commitment to the per voice credit spent voice credits for the next batch | currentPerVOSpentVoiceCreditsCommitment = _newPerVOSpentVoiceCreditsCommitment;
| 8,754,548 | [
1,
4625,
348,
7953,
560,
30,
225,
7074,
326,
23274,
358,
326,
1534,
15063,
12896,
26515,
15063,
6197,
1282,
364,
326,
1024,
2581,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
783,
2173,
16169,
3389,
319,
14572,
24201,
1282,
5580,
475,
273,
389,
2704,
2173,
16169,
3389,
319,
14572,
24201,
1282,
5580,
475,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42/0x5a0D266e24DB9B04784EB6D6593E1734A147FB50/sources/MdxToken.sol | @notice A record of each accounts delegate | abstract contract DelegateERC20 is ERC20 {
mapping (address => address) internal _delegates;
struct Checkpoint {
uint32 fromBlock;
uint256 votes;
}
mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;
mapping (address => uint32) public numCheckpoints;
b... | 3,319,081 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
432,
1409,
434,
1517,
9484,
7152,
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,
17801,
6835,
27687,
654,
39,
3462,
353,
4232,
39,
3462,
288,
203,
565,
2874,
261,
2867,
516,
1758,
13,
2713,
389,
3771,
1332,
815,
31,
203,
203,
565,
1958,
25569,
288,
203,
3639,
2254,
1578,
628,
1768,
31,
203,
3639,
2254,
5034,
... |
//Address: 0xf04436b2edaa1b777045e1eefc6dba8bd2aebab8
//Contract name: TokenSale
//Balance: 0 Ether
//Verification Date: 12/19/2017
//Transacion Count: 31982
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/... | add a new whitelistOperator | function addWhitelistOperator(address _address)
public
onlyOwner
{
whitelistOperators[_address] = true;
}
| 7,325,640 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
279,
394,
10734,
5592,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
18927,
5592,
12,
2867,
389,
2867,
13,
203,
3639,
1071,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
10734,
24473,
63,
67,
2867,
65,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
// Inspired on Timelock.sol from Compound.
// Special thanks to BoringCrypto and Mudit Gupta for their feedback.
pragma solidity ^0.8.0;
import "../access/AccessControl.sol";
import "./RevertMsgExtractor.sol";
import "./IsContract.sol";
interface ITimelock {
struct Call {
... | @dev Compute the hash for a proposal | function hash(Call[] calldata functionCalls)
external pure returns (bytes32 txHash)
{
return _hash(functionCalls, 0);
}
| 5,412,722 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
8155,
326,
1651,
364,
279,
14708,
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,
1651,
12,
1477,
8526,
745,
892,
445,
10125,
13,
203,
3639,
3903,
16618,
1135,
261,
3890,
1578,
2229,
2310,
13,
203,
565,
288,
203,
3639,
327,
389,
2816,
12,
915,
10125,
16,
374,
1769,
203,
565,
289,
203,
203,
2,
-100,... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "../Governance.sol";
contract MockGovernance is Governance {
uint256 public time = block.timestamp;
function setTimestamp(uint256 time_) public {
time = time_;
}
function getBlockTimestamp() internal override... | solium-disable-next-line security/no-block-members | function getBlockTimestamp() internal override view returns (uint256) {
return time;
}
| 12,641,647 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
5077,
17,
8394,
17,
4285,
17,
1369,
4373,
19,
2135,
17,
2629,
17,
7640,
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,
225,
445,
11902,
4921,
1435,
2713,
3849,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
813,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/314/0x7b7f1f85F599b63432F5D782041c25Dad354f999/sources/node_modules/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol | * @dev Stores a new beacon in the EIP1967 beacon slot./ | function _setBeacon(address newBeacon) private {
if (newBeacon.code.length == 0) {
revert ERC1967InvalidBeacon(newBeacon);
}
StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;
address beaconImplementation = IBeacon(newBeacon).implementation();
if (beacon... | 8,082,536 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20296,
455,
279,
394,
29203,
316,
326,
512,
2579,
3657,
9599,
29203,
4694,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
542,
1919,
16329,
12,
2867,
394,
1919,
16329,
13,
3238,
288,
203,
3639,
309,
261,
2704,
1919,
16329,
18,
710,
18,
2469,
422,
374,
13,
288,
203,
5411,
15226,
4232,
39,
3657,
9599,
1941,
1919,
16329,
12,
2704,
1919,
... |
// File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to... | * @dev Checks if `kiAddress` is a valid KiChain address./ | function isValidKiAddress(string memory kiAddress) public override pure returns(bool){
if(strlen(kiAddress) != KI_ADDRESS_LEN){
return false;
}
slice memory kiAddressSlice = toSlice(kiAddress);
return startsWith(kiAddressSlice, toSlice("ki"));
}
| 11,866,012 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13074,
309,
1375,
15299,
1887,
68,
353,
279,
923,
1475,
77,
3893,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4908,
47,
77,
1887,
12,
1080,
3778,
29027,
1887,
13,
1071,
3849,
16618,
1135,
12,
6430,
15329,
203,
1377,
309,
12,
10835,
12,
15299,
1887,
13,
480,
1475,
45,
67,
15140,
67,
13017,
15329,
203,
3639,
327,
629,
31,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "./ERC1967Proxy.sol";
/**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially b... | * @dev Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`/ | function admin() external ifAdmin returns (address _admin) {
_admin = _getAdmin();
}
| 5,900,373 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
783,
3981,
18,
5219,
30,
5098,
326,
3981,
848,
745,
333,
445,
18,
2164,
288,
3886,
4446,
17,
588,
3886,
4446,
5496,
399,
2579,
30,
2974,
336,
333,
460,
7712,
848,
855,
5122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3981,
1435,
3903,
309,
4446,
1135,
261,
2867,
389,
3666,
13,
288,
203,
3639,
389,
3666,
273,
389,
588,
4446,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.11;
import './zeppeline/ownership/Ownable.sol';
import "./zeppeline/drafts/Counters.sol";
contract Deposit is Ownable {
using Counters for Counters.Counter;
using SafeMath for uint256;
/*
Events
*/
// this event invoke when someone want to cashout funds to plastic card
// this event should bee... | **WARN** -- DEPRECATEDTODO Validator key can be added here to prove (submit) transaction from FIAT processor. It 's not neccerily, as we could just use the blockchain validation itself, but do it in more transcendent way FIXME : change onlyOwner to onlyValidator Do some conversion for amount (FIXME) ... FIXME : use in... | function cashInSubmit(string memory uuid) public onlyOwner {
IRequest memory irq;
irq = InRequest[uuid];
require(irq.executed == false, "transaction is already executed! (reentrancy guard)");
address payable _user = irq.user_wallet;
uint amount = irq.amount;
_user.transfer(amount);
irq.exec... | 1,826,825 | [
1,
4625,
348,
7953,
560,
30,
225,
2826,
27999,
636,
1493,
2030,
14838,
6241,
9150,
498,
848,
506,
3096,
2674,
358,
450,
537,
261,
9297,
13,
2492,
628,
4011,
789,
6659,
18,
2597,
296,
87,
486,
290,
557,
2750,
3220,
16,
487,
732,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
915,
276,
961,
382,
11620,
12,
1080,
3778,
3822,
13,
1071,
1338,
5541,
288,
203,
565,
467,
691,
3778,
9482,
85,
31,
203,
565,
9482,
85,
273,
657,
691,
63,
7080,
15533,
203,
565,
2583,
12,
481,
85,
18,
4177,
4817,
422,
629,
16... |
./full_match/80001/0xB1260A9eb66fD7abb54aE814a3725c16c9A9e38d/sources/contracts/drop/SonicaERC721Drop.sol | @dev Collects and distributes the primary sale value of NFTs being claimed. | function _collectPriceOnClaim(
address _primarySaleRecipient,
uint256 _quantityToClaim,
address _currency,
uint256 _pricePerToken
) internal override {
if (_pricePerToken == 0) {
return;
}
address saleRecipient = _primarySaleRecipient == addre... | 5,608,308 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
9302,
87,
471,
1015,
1141,
326,
3354,
272,
5349,
460,
434,
423,
4464,
87,
3832,
7516,
329,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
14676,
5147,
1398,
9762,
12,
203,
3639,
1758,
389,
8258,
30746,
18241,
16,
203,
3639,
2254,
5034,
389,
16172,
774,
9762,
16,
203,
3639,
1758,
389,
7095,
16,
203,
3639,
2254,
5034,
389,
8694,
2173,
1345,
203,
565,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, s... | Data structure that defines the elements of stakedToken | contract illogics is IIllogics, ERC721Enumerable, Ownable, VRFConsumerBase {
struct StakedToken {
address ownerOfNFT;
uint256 timestamp;
uint256 lastRerollPeriod;
}
struct Sale {
string description;
bool saleStatus;
uint256 price;
uint256 supply;
... | 13,679,397 | [
1,
4625,
348,
7953,
560,
30,
225,
1910,
3695,
716,
11164,
326,
2186,
434,
384,
9477,
1345,
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,
16351,
14254,
1330,
2102,
353,
23076,
80,
1330,
2102,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
16,
776,
12918,
5869,
2171,
288,
203,
203,
565,
1958,
934,
9477,
1345,
288,
203,
3639,
1758,
3410,
951,
50,
4464,
31,
203... |
pragma solidity 0.5.7;
pragma experimental ABIEncoderV2;
import "./Ownable.sol";
import "./SafeMath.sol";
/**
* @dev Contract module which provides an authorisation control mechanism, where
* there is an 'owner' that can grant access to a specific 'reader'.
* The 'reader' can request access to an 'owner'.
*/
con... | * @dev Approves authorisation by the sender to the '_reader'./ | function approveAuthorisation(address _reader) public {
requestAuthorisationStructs[_reader].requested[_msgSender()] = false;
_authorise(_msgSender(), _reader);
}
| 6,394,166 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1716,
685,
3324,
2869,
10742,
635,
326,
5793,
358,
326,
2070,
10530,
10332,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6617,
537,
3594,
10742,
12,
2867,
389,
10530,
13,
1071,
288,
203,
3639,
590,
3594,
10742,
3823,
87,
63,
67,
10530,
8009,
19065,
63,
67,
3576,
12021,
1435,
65,
273,
629,
31,
203,
3639,
389,
4161,
784,
24899,
3576,
12021,... |
./partial_match/1/0x015C7C7A7D65bbdb117C573007219107BD7486f9/sources/InstantRefundRelay.sol | * @param _depositor Depositor address Sets the depositors index if necessary./ | function getDepositorIndex(address _depositor) internal returns(uint) {
if(depositors[_depositor] == 0) {
uniqueDepositors = uniqueDepositors + 1;
depositors[_depositor] = uniqueDepositors;
}
return depositors[_depositor];
}
| 3,920,219 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
389,
323,
1724,
280,
4019,
538,
1811,
1758,
11511,
326,
443,
1724,
1383,
770,
309,
4573,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
758,
1724,
280,
1016,
12,
2867,
389,
323,
1724,
280,
13,
2713,
1135,
12,
11890,
13,
288,
203,
3639,
309,
12,
323,
1724,
1383,
63,
67,
323,
1724,
280,
65,
422,
374,
13,
288,
203,
5411,
3089,
758,
1724,
1383,
273... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.9;
import { IERC20 } from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import { IClearingHouse } from '../../interfaces/IClearingHouse.sol';
import { IClearingHouseView } from '../../interfaces/clearinghouse/IClearingHouseView.sol';
import { IVQuote } fr... | @inheritdoc IClearingHouseView | function getPoolInfo(uint32 poolId) public view returns (Pool memory) {
return protocol.pools[poolId];
}
| 13,068,419 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
4756,
5968,
44,
3793,
1767,
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,
28575,
966,
12,
11890,
1578,
2845,
548,
13,
1071,
1476,
1135,
261,
2864,
3778,
13,
288,
203,
3639,
327,
1771,
18,
27663,
63,
6011,
548,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/**
* References:
* https://eips.ethereum.org/EIPS/eip-20
* https://github.com/ethereum/EIPs/issues/20
* https://github.com/OpenZeppelin/openzeppelin-solidity
*/
/**
* @dev Math operations with safety checks
*/
library SafeMath {
/**
* @dev Multiplies two numbers... | Set the symbol for display purposes
| symbol = _tokenSymbol; | 1,055,559 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
3273,
364,
2562,
13694,
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,
3273,
273,
389,
2316,
5335,
31,
1171,
9079,
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,
... |
./partial_match/1/0x938837793Baded6F21eCb1bA9d84d8a96899EE44/sources/Governance.sol | * @notice Propose delisting the tokenAddress from the whitelist. The proposer needs to commit minimum deposit amount./ | function proposeUpdateCoreParameters(
uint32 preVoteLength,
uint32 totalVoteLength,
uint32 expirationLength,
uint16 minVoteE4,
uint16 minVoteCoreE4,
uint16 minCommitE4
) external override {
bytes32 proposeId = keccak256(
abi.encode(
... | 16,158,459 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1186,
4150,
1464,
376,
310,
326,
1147,
1887,
628,
326,
10734,
18,
1021,
450,
5607,
4260,
358,
3294,
5224,
443,
1724,
3844,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
450,
4150,
1891,
4670,
2402,
12,
203,
3639,
2254,
1578,
675,
19338,
1782,
16,
203,
3639,
2254,
1578,
2078,
19338,
1782,
16,
203,
3639,
2254,
1578,
7686,
1782,
16,
203,
3639,
2254,
2313,
1131,
19338,
41,
24,
16,
203,
363... |
./partial_match/4/0xB0eB5E91eF1b3c1816756e1463cab5E372AaeC15/sources/HypeCoin.sol | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "HypeCoin";
symbol = "HC";
decimals = 0;
_totalSupply = 1000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 8,695,867 | [
1,
4625,
348,
7953,
560,
30,
380,
735,
701,
30206,
445,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
44,
388,
27055,
14432,
203,
3639,
3273,
273,
315,
23408,
14432,
203,
3639,
15105,
273,
374,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
15088,
31,
203,
203,
3639,
324,
26488,
6... |
./partial_match/1/0xe904e50514C5EF0f4C15C9BA44D358eD38f5a024/sources/Governance.sol | 0.05 * 10**4 is 5%
| _minimumVoteE4 = minVoteE4; | 4,039,267 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
18,
6260,
380,
1728,
636,
24,
353,
1381,
9,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
15903,
19338,
41,
24,
273,
1131,
19338,
41,
24,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @notice See [repo](https://github.com/tagupta/Proxy-Contract) for origincal contract code
* @author Tanu Gupta (github/tagupta)
*/
contract Storage {
mapping(string => uint) _uintStorage;
mapping(string => address) _addressStorage;
mapping(string ... | * @author Tanu Gupta (github/tagupta)/ | contract Storage {
mapping(string => uint) _uintStorage;
mapping(string => address) _addressStorage;
mapping(string => string) _stringStorage;
mapping(string => bool) _boolStorage;
mapping(string => bytes4) _bytesStorage;
address public owner;
bool public _initialized;
pragma solidity ^0.8.0;
} | 7,230,820 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
4161,
399,
304,
89,
611,
3648,
69,
261,
6662,
19,
2692,
3648,
69,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
16351,
5235,
288,
203,
225,
2874,
12,
1080,
516,
2254,
13,
389,
11890,
3245,
31,
203,
225,
2874,
12,
1080,
516,
1758,
13,
389,
2867,
3245,
31,
203,
225,
2874,
12,
1080,
516,
533,
13,
389,
1080,
3245,
31,
203,
225,
2874,
12,
1... |
// Implementation of the U42 Token Specification -- see "U42 Token Specification.md"
//
// Standard ERC-20 methods and the SafeMath library are adapated from OpenZeppelin's standard contract types
// as at https://github.com/OpenZeppelin/openzeppelin-solidity/commit/5daaf60d11ee2075260d0f3adfb22b1c536db983
// note ... | mapping of application addresses to service structs | mapping (address => mapping (uint32 => Service)) services;
| 12,876,120 | [
1,
4625,
348,
7953,
560,
30,
2874,
434,
2521,
6138,
358,
1156,
8179,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
6770,
261,
2867,
516,
2874,
261,
11890,
1578,
516,
1956,
3719,
4028,
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,
-... |
pragma solidity ^0.6.0;
import "../utils/GasBurner.sol";
import "../interfaces/IAToken.sol";
import "../interfaces/ILendingPool.sol";
import "../interfaces/ILendingPoolAddressesProvider.sol";
import "../utils/SafeERC20.sol";
/// @title Basic compound interactions through the DSProxy
contract AaveBasicProxy is GasBur... | we will withdraw exactly the srcAmount, as fee we keep before selling take out the fee wee need to pay and sell the rest set protocol fee left to eth balance of this address but if destAddr is eth or weth, this also includes that value so we need to substract it if its eth we need to send it to the basic proxy, if not... | function repay(ExchangeData memory _exchangeData, address _market, uint256 _gasCost, address _proxy, uint256 _rateMode, uint _aaveFlashlLoanFee) internal {
uint valueToWithdraw = _exchangeData.srcAmount;
_exchangeData.srcAmount = _exchangeData.srcAmount - _aaveFlashlLoanFee;
(, uint swapped... | 476,140 | [
1,
4625,
348,
7953,
560,
30,
225,
732,
903,
598,
9446,
8950,
326,
1705,
6275,
16,
487,
14036,
732,
3455,
1865,
357,
2456,
4862,
596,
326,
14036,
732,
73,
1608,
358,
8843,
471,
357,
80,
326,
3127,
444,
1771,
14036,
2002,
358,
13750,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
11688,
751,
3778,
389,
16641,
751,
16,
1758,
389,
27151,
16,
2254,
5034,
389,
31604,
8018,
16,
1758,
389,
5656,
16,
2254,
5034,
389,
5141,
2309,
16,
2254,
389,
69,
836,
11353,
80,
1504,
304,
14667,
13,
... |
// SPDX-License-Identifier: MIT
// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can... | * @title Access Uniswap @notice Add and remove liquidity to Uniswap/ Pointers to Uniswap contracts | contract UniswapStrategy is BasePairLPStrategy {
using SafeERC20 for IERC20;
using OndoSaferERC20 for IERC20;
IUniswapV2Router02 public immutable uniRouter02;
address public immutable uniFactory;
string public constant name = "Ondo UniswapV2 Simple Strategy";
constructor(
address _registry,
addre... | 1,545,922 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
5016,
1351,
291,
91,
438,
632,
20392,
1436,
471,
1206,
4501,
372,
24237,
358,
1351,
291,
91,
438,
19,
7107,
87,
358,
1351,
291,
91,
438,
20092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1351,
291,
91,
438,
4525,
353,
3360,
4154,
14461,
4525,
288,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
225,
1450,
2755,
2896,
55,
69,
586,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
... |
pragma solidity 0.8.7; //SPDX-License-Identifier: UNLICENSED
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppel... | Withdraw without caring about rewards. EMERGENCY ONLY. | function emergencyWithdraw(uint256 _pid) external nonReentrant {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
uint256 amount = user.amount;
user.amount = 0;
user.rewardDebt = 0;
user.rewardLockedUp = 0;
pool.lpTok... | 7,214,403 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
2887,
5926,
310,
2973,
283,
6397,
18,
7141,
654,
16652,
16068,
20747,
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,
801,
24530,
1190,
9446,
12,
11890,
5034,
389,
6610,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.4;
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... | Allow _spender to withdraw from your account, multiple times, up to the _value amount. If this function is called again it overwrites the current allowance with _value. | function approve(address _spender, uint256 _amount)public override returns (bool success) {
allowed[msg.sender][_spender] = _amount;
emit Approval(msg.sender, _spender, _amount);
return true;
}
| 340,136 | [
1,
4625,
348,
7953,
560,
30,
225,
7852,
389,
87,
1302,
264,
358,
598,
9446,
628,
3433,
2236,
16,
3229,
4124,
16,
731,
358,
326,
389,
1132,
3844,
18,
971,
333,
445,
353,
2566,
3382,
518,
28151,
326,
783,
1699,
1359,
598,
389,
1132,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
8949,
13,
482,
225,
3849,
1135,
225,
261,
6430,
2216,
13,
288,
203,
3639,
2935,
63,
3576,
18,
15330,
6362,
67,
87,
1302,
264,
65,
273,
389,
8949,
31,
203... |
pragma solidity ^0.4.24;
import "./queue.sol";
import "./login.sol";
contract assign is login,queue{
struct arbitration {
mapping(address => uint) flag; //flag为仲裁师对某订单的评估状态,当评估后,该状态flag=1,不允许再次评估
uint tick;
uint sum;
}
mapping(address => uint) values; ... | flag为仲裁师对某订单的评估状态,当评估后,该状态flag=1,不允许再次评估
| mapping(address => uint) flag; | 12,887,923 | [
1,
4625,
348,
7953,
560,
30,
2982,
165,
121,
123,
165,
124,
115,
169,
101,
228,
166,
121,
235,
166,
112,
122,
167,
258,
243,
169,
111,
100,
166,
240,
248,
168,
253,
231,
169,
112,
231,
165,
125,
113,
168,
237,
119,
167,
227,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
2874,
12,
2867,
516,
2254,
13,
565,
2982,
31,
1171,
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... |
/*
▒███████▒ ▒█████ ███▄ ▄███▓ ▄▄▄▄ ██▓█████
▒ ▒ ▒ ▄▀░▒██▒ ██▒ ▓██▒▀█▀ ██▒ ▓█████▄ ▒▓██▓█ ▀
░ ▒ ▄▀▒░ ▒██░ ██▒ ▓██ ▓██░ ▒██▒ ▄██░▒██▒███
▄▀▒ ░▒██ ██░ ▒██ ▒██ ▒██░█▀ ░██▒▓█ ▄
▒███████▒░ ████▓▒░▒▒██▒ ░██▒▒░▓█ ▀█▓ ░██░▒████
░▒▒ ▓░▒░▒░ ▒░▒░▒░ ░░ ▒░ ░ ░░░▒▓███▀▒ ░▓ ░░ ▒░
░ ▒ ▒ ░ ▒ ░ ▒ ▒░ ░░... | List staked Zombiez | function depositsOf(address account) external view returns (uint256[] memory) {
EnumerableSet.UintSet storage depositSet = _deposits[account];
uint256[] memory tokenIds = new uint256[] (depositSet.length());
for (uint256 i; i < depositSet.length(); i++) {
tokenIds[i] = depositSet.at(i);
}
... | 10,017,911 | [
1,
4625,
348,
7953,
560,
30,
225,
987,
384,
9477,
2285,
16659,
1385,
94,
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,
225,
445,
443,
917,
1282,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
8526,
3778,
13,
288,
203,
565,
6057,
25121,
694,
18,
5487,
694,
2502,
443,
1724,
694,
273,
389,
323,
917,
1282,
63,
4631,
15533,
203,
565,
2... |
./full_match/80001/0x1edb10fE0e4dd752EE7b935bDEBc7c5496DF5724/sources/wTFC_flat.sol | * @dev Appends a byte to the end of the buffer. Resizes if doing so would exceed the capacity of the buffer. @param buf The buffer to append to. @param data The data to append. @return The original buffer./ | function appendInt(
buffer memory buf,
uint data,
uint len
)
internal
pure
returns(
buffer memory
)
{
return writeInt(buf, buf.buf.length, data, len);
}
| 5,642,559 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6181,
87,
279,
1160,
358,
326,
679,
434,
326,
1613,
18,
1124,
3128,
309,
9957,
1427,
4102,
9943,
326,
7519,
434,
326,
1613,
18,
632,
891,
1681,
1021,
1613,
358,
714,
358,
18,
632,
891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
714,
1702,
12,
203,
3639,
1613,
3778,
1681,
16,
203,
3639,
2254,
501,
16,
203,
3639,
2254,
562,
203,
565,
262,
203,
565,
2713,
203,
565,
16618,
203,
565,
1135,
12,
203,
3639,
1613,
3778,
203,
565,
262,
203,
565,
288,
... |
pragma solidity ^0.4.17;
import "./PayrollInterface.sol";
import "github.com/ConsenSys/Tokens/contracts/HumanStandardToken.sol";
import "github.com/pipermerriam/ethereum-datetime/contracts/DateTime.sol";
import "github.com/Dexaran/ERC223-token-standard/token/ERC223/ERC223_receiving_contract.sol";
/**
* @title Payrol... | * If employee @dev Check if the sender is in the employee list, on fail revert./ | modifier ifEmployee(){
if(!(employeeIds[msg.sender] > 0)){
revert();
}
_;
}
| 12,603,193 | [
1,
4625,
348,
7953,
560,
30,
380,
971,
24539,
1340,
632,
5206,
2073,
309,
326,
5793,
353,
316,
326,
24539,
1340,
666,
16,
603,
2321,
15226,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
309,
41,
27520,
1435,
95,
203,
3639,
309,
12,
5,
12,
351,
2817,
1340,
2673,
63,
3576,
18,
15330,
65,
405,
374,
3719,
95,
203,
5411,
15226,
5621,
203,
3639,
289,
203,
3639,
389,
31,
203,
565,
289,
203,
377,
203,
2,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-02
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ... | * @dev First checks if a sale is valid by checking that the hash has not been cancelled or already completed and that the correct address has given the signature. If both checks pass we mark the hash as complete and emit an event./ | function _markHashSold(
address seller,
uint256 version,
uint256 nonce,
uint256 tokenId,
uint256[4] memory pricesAndTimestamps,
uint256 salePrice,
bytes memory signature
) internal {
bytes32 hash = _hashToCheckForSale(
seller,
... | 15,379,566 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
5783,
4271,
309,
279,
272,
5349,
353,
923,
635,
6728,
716,
326,
1651,
711,
486,
2118,
13927,
578,
1818,
5951,
471,
716,
326,
3434,
1758,
711,
864,
326,
3372,
18,
971,
3937,
4271,
1342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
3355,
2310,
55,
1673,
12,
203,
3639,
1758,
29804,
16,
203,
3639,
2254,
5034,
1177,
16,
203,
3639,
2254,
5034,
7448,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
2254,
5034,
63,
24,
65,
3778,
19827,
1876,
... |
pragma solidity 0.5.0;
contract SocialMusic {
struct User {
bytes32 name;
uint256 age;
string state; // A short description of who they are or how they feel
string[] musicRecommendations;
address[] following;
}
mapping(address => User) public users;
address[] pub... | Returns the array of users | function getUsersList() public view returns(address[] memory) {
return userList;
}
| 6,391,532 | [
1,
4625,
348,
7953,
560,
30,
225,
2860,
326,
526,
434,
3677,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
27564,
682,
1435,
1071,
1476,
1135,
12,
2867,
8526,
3778,
13,
288,
203,
3639,
327,
729,
682,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
.oooooo. o8o o8o
d8P' `Y8b `"' `"'
888 .ooooo. oooo ooo. .oo. oooo ooo oooo .oooo.o .ooooo.
888 d88' `88b `888 `888P"Y88b `88. .8' `888 d88( "8 d88' `88b
8... | * @notice Allows the creator to revoke the vesting. Tokens already vested remain in the contract, the rest are returned to the creator./ | function revoke() public onlyCreator {
require(!revoked, "ERR__ALREADY_REVOKED");
uint256 balance = token.balanceOf(address(this));
uint256 unreleased = releasableAmount();
uint256 refund = balance - unreleased;
revoked = true;
token.safeTransfer(creator, refund);
emit Revoked();
}
| 207,745 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
326,
11784,
358,
18007,
326,
331,
10100,
18,
13899,
1818,
331,
3149,
7232,
316,
326,
6835,
16,
326,
3127,
854,
2106,
358,
326,
11784,
18,
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,
0,
0,
0,
0,
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,
18007,
1435,
1071,
1338,
10636,
288,
203,
565,
2583,
12,
5,
9083,
14276,
16,
315,
9712,
972,
1013,
20305,
67,
862,
17691,
2056,
8863,
203,
565,
2254,
5034,
11013,
273,
1147,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
20... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "../../ConverterVersion.sol";
import "../../interfaces/IConverter.sol";
import "../../interfaces/IConverterAnchor.sol";
impo... | * @dev returns the recent average rate of 1 reserve token 0 in reserve token 1 units @param averageRateInfoData the average rate to use for the calculation @return recent average rate between the reserves/ get the previous average rate and its update-time get the elapsed time since the previous average rate was calcula... | function calcRecentAverageRate(uint256 averageRateInfoData) private view returns (uint256) {
uint256 prevAverageRateT = decodeAverageRateT(averageRateInfoData);
uint256 prevAverageRateN = decodeAverageRateN(averageRateInfoData);
uint256 prevAverageRateD = decodeAverageRateD(averageRateInfoDa... | 12,547,193 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1135,
326,
8399,
8164,
4993,
434,
404,
20501,
1147,
374,
316,
20501,
1147,
404,
4971,
632,
891,
8164,
4727,
966,
751,
326,
8164,
4993,
358,
999,
364,
326,
11096,
632,
2463,
8399,
8164,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7029,
17076,
17115,
4727,
12,
11890,
5034,
8164,
4727,
966,
751,
13,
3238,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
2807,
17115,
4727,
56,
273,
2495,
17115,
4727,
56,
12,
15621,
4727,
966,
751,
1769,
... |
./partial_match/1/0xF2d93df6fB89e51756d915004211a0a29755BB2b/sources/Include.sol | * @dev Allows the current governor to transfer control of the contract to a newGovernor. @param newGovernor The address to transfer governorship to./ | function transferGovernorship_(address newGovernor) public governance {
_transferGovernorship(newGovernor);
}
| 10,999,749 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
326,
783,
314,
1643,
29561,
358,
7412,
3325,
434,
326,
6835,
358,
279,
394,
43,
1643,
29561,
18,
632,
891,
394,
43,
1643,
29561,
1021,
1758,
358,
7412,
314,
1643,
29561,
3261,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
43,
1643,
29561,
3261,
67,
12,
2867,
394,
43,
1643,
29561,
13,
1071,
314,
1643,
82,
1359,
288,
203,
3639,
389,
13866,
43,
1643,
29561,
3261,
12,
2704,
43,
1643,
29561,
1769,
203,
565,
289,
203,
203,
2,
-100,
-10... |
./full_match/1/0xFD23F971696576331fCF96f80a20B4D3b31ca5b2/sources/contracts/VaultRegistry.sol | @inheritdoc IVaultRegistry | function stagedProtocolGovernanceTimestamp() external view returns (uint256) {
return _stagedProtocolGovernanceTimestamp;
}
| 9,802,533 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
12003,
4243,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
384,
11349,
5752,
43,
1643,
82,
1359,
4921,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
334,
11349,
5752,
43,
1643,
82,
1359,
4921,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "./IUniswapRouter.sol";
import "./IMasterchef.sol";
contract Stra... | * @dev Tokens Used: {wbnb} - Required for liquidity routing when doing swaps. {ramen} - Token that the strategy maximizes. The same token that users deposit in the vault./* @dev Third Party Contracts: {unirouter} - PancakeSwap unirouter {masterchef} - MasterChef contract./* @dev Ramen Contracts: {vault} - Address of th... | constructor(address _vault) public {
vault = _vault;
IERC20(ramen).safeApprove(masterchef, uint(-1));
IERC20(ramen).safeApprove(unirouter, uint(-1));
IERC20(wbnb).safeApprove(unirouter, uint(-1));
}
| 2,526,039 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13899,
10286,
30,
288,
9464,
6423,
97,
300,
10647,
364,
4501,
372,
24237,
7502,
1347,
9957,
1352,
6679,
18,
288,
1940,
275,
97,
300,
3155,
716,
326,
6252,
30547,
3128,
18,
1021,
1967,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2867,
389,
26983,
13,
1071,
288,
203,
3639,
9229,
273,
389,
26983,
31,
203,
203,
3639,
467,
654,
39,
3462,
12,
1940,
275,
2934,
4626,
12053,
537,
12,
7525,
343,
10241,
16,
2254,
19236,
21,
10019,
203,
3639,
467,
... |
pragma solidity ^0.8.2;
// SPDX-License-Identifier: MIT
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability w... | _sendToCharity(tCharity, sender); | function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
uint256 currentRate = _getRate();
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tBurn, uint256 tCharity) = _getValues(tAmount);
uint256 rBur... | 6,038,211 | [
1,
4625,
348,
7953,
560,
30,
389,
4661,
774,
2156,
560,
12,
88,
2156,
560,
16,
5793,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
20240,
16461,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
268,
6275,
13,
3238,
288,
203,
3639,
2254,
5034,
783,
4727,
273,
225,
389,
588,
4727,
5621,
203,
3639,
261,
11890,
5034,
436,
6275,
16,
2254,
503... |
./full_match/80001/0xd278A4A079e656a6bCDdD8a3144f9851becB906e/sources/project_/contracts/extensions/non-fungible-jade/JadeBasePriceUpgradeable.sol | * @notice Price for create 'Jade' nft/* @param baseJadePrice Initial value for `_baseJadePrice`/ | function __JadeBasePrice_init(uint256 baseJadePrice) internal onlyInitializing {
_setJadeBasePrice(baseJadePrice);
}
| 5,641,092 | [
1,
4625,
348,
7953,
560,
30,
380,
282,
632,
20392,
20137,
364,
752,
296,
46,
2486,
11,
290,
1222,
20308,
282,
632,
891,
1026,
46,
2486,
5147,
10188,
460,
364,
1375,
67,
1969,
46,
2486,
5147,
68,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1001,
46,
2486,
2171,
5147,
67,
2738,
12,
11890,
5034,
1026,
46,
2486,
5147,
13,
2713,
1338,
29782,
288,
203,
3639,
389,
542,
46,
2486,
2171,
5147,
12,
1969,
46,
2486,
5147,
1769,
203,
565,
289,
203,
203,
2,
-100,
-10... |
./full_match/44787/0xdc1c2cB0388cc02F0843ED69FB77c3348aD556C0/sources/contracts/registry/ReverseRegistrarUpgradeable.sol | * @dev Sets the `name()` record for the reverse ENS record associated with the calling account. First updates the resolver to the default reverse resolver if necessary. @param name The name to set for this address. @return The ENS node hash of the reverse record./ | function setName(string memory name) public returns (bytes32) {
bytes32 _node = _claimWithResolver(
msg.sender,
address(this),
address(defaultResolver)
);
defaultResolver.setName(_node, name);
return _node;
}
| 13,268,200 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
1375,
529,
20338,
1409,
364,
326,
4219,
512,
3156,
1409,
3627,
598,
326,
4440,
2236,
18,
5783,
4533,
326,
5039,
358,
326,
805,
4219,
5039,
309,
4573,
18,
632,
891,
508,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
6788,
12,
1080,
3778,
508,
13,
1071,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
1731,
1578,
389,
2159,
273,
389,
14784,
1190,
4301,
12,
203,
5411,
1234,
18,
15330,
16,
203,
5411,
1758,
12,
2211,
3631,
203,
5411,
1758,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error... | *********************************************************** External functions / Distribute LON directly without swap Update lastTimeBuyback No need to swap, transfer feeToken directly Transfer fee token from strategy contracts to distributor Buyback Transfer fee token from distri... | function buyback(address _feeTokenAddr, uint256 _amount, uint256 _minLonAmount) external whenNotPaused only_EOA_or_Self {
FeeToken storage feeToken = feeTokens[_feeTokenAddr];
if (_feeTokenAddr == LON_TOKEN_ADDR) {
require(feeToken.enable, "fee token is not enabled");
requir... | 879,702 | [
1,
4625,
348,
7953,
560,
30,
20210,
19482,
636,
10402,
11352,
4186,
8227,
342,
3035,
887,
511,
673,
5122,
2887,
7720,
2315,
31323,
38,
9835,
823,
2631,
1608,
358,
7720,
16,
7412,
14036,
1345,
5122,
12279,
14036,
1147,
628,
6252,
20092,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
823,
12,
2867,
389,
21386,
1345,
3178,
16,
2254,
5034,
389,
8949,
16,
2254,
5034,
389,
1154,
15927,
6275,
13,
3903,
1347,
1248,
28590,
1338,
67,
41,
28202,
67,
280,
67,
10084,
288,
203,
3639,
30174,
1345,
2502,
1... |
./partial_match/1/0x26A7aC3e22e56aa1d23Ba3702e835104D77Db94E/sources/home/david/rypc-v1.2.0/contracts/RariFundToken.sol | * @dev Initializer for RariFundToken./ | function initialize() public initializer {
ERC20Detailed.initialize("Rari Yield Pool Token", "RYPT", 18);
ERC20Mintable.initialize(msg.sender);
ERC20Pausable.initialize(msg.sender);
}
| 15,913,403 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4378,
3926,
364,
534,
12954,
42,
1074,
1345,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
1435,
1071,
12562,
288,
203,
3639,
4232,
39,
3462,
40,
6372,
18,
11160,
2932,
54,
12954,
31666,
8828,
3155,
3113,
315,
9590,
1856,
3113,
6549,
1769,
203,
3639,
4232,
39,
3462,
49,
474,
429,
18,
11160,
12,
3576,
18... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"... | EMERGENCY USE ONLY, THERE IS NO PLANNED PUBLIC SALE | function publicMint(uint256 _count) public payable saleIsOpen noContract {
uint256 total = totalSupply();
require(publicSaleOpen, "Public sale not open yet");
require(total + _count <= MAX_ELEMENTS, "Max limit");
require(_count <= tierOneMaxMint, "Exceeds number");
require(ms... | 1,672,679 | [
1,
4625,
348,
7953,
560,
30,
225,
7141,
654,
16652,
16068,
14988,
20747,
16,
399,
4298,
4437,
3741,
453,
11074,
50,
2056,
17187,
17127,
900,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1071,
49,
474,
12,
11890,
5034,
389,
1883,
13,
1071,
8843,
429,
272,
5349,
2520,
3678,
1158,
8924,
288,
203,
3639,
2254,
5034,
2078,
273,
2078,
3088,
1283,
5621,
203,
3639,
2583,
12,
482,
30746,
3678,
16,
315,
4782,
272... |
./partial_match/42/0xbb93390573F60d47F0bbbC91754df7f6821D277f/sources/DYDXERC3156.sol | * @dev From ERC-3156. The amount of currency available to be lended. @param token The loan currency. @return The amount of `token` that can be borrowed./ | function flashSupply(address token) external view override returns (uint256) {
return tokensRegistered[token] == true ? IERC20(token).balanceOf(address(soloMargin)) : 0;
}
| 3,491,081 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6338,
4232,
39,
17,
23,
28946,
18,
1021,
3844,
434,
5462,
2319,
358,
506,
562,
785,
18,
632,
891,
1147,
1021,
28183,
5462,
18,
632,
2463,
1021,
3844,
434,
1375,
2316,
68,
716,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9563,
3088,
1283,
12,
2867,
1147,
13,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2430,
10868,
63,
2316,
65,
422,
638,
692,
467,
654,
39,
3462,
12,
2316,
2934,
12296,
951,
12,
2867,
12,
87,
1285... |
pragma solidity ^0.8.0;
interface IERC721 {
function ownerOf(uint256 tokenId) external view returns (address owner);
}
// Forked from KnitCapPunkCheck
contract LoomlockTrait {
function balanceOf(address owner) external view returns (uint256) {
uint16[1455] memory ids = [7,21,23,24,65,70,76,81,83,97,10... | Forked from KnitCapPunkCheck | contract LoomlockTrait {
function balanceOf(address owner) external view returns (uint256) {
uint16[1455] memory ids = [7,21,23,24,65,70,76,81,83,97,105,122,126,133,154,170,171,176,179,181,189,191,198,221,237,247,264,269,277,287,291,294,298,304,340,348,349,352,361,364,365,369,370,373,407,414,416,421,457,458... | 15,235,124 | [
1,
4625,
348,
7953,
560,
30,
225,
27599,
329,
628,
1475,
82,
305,
4664,
52,
1683,
1564,
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,
16351,
3176,
362,
739,
15525,
288,
203,
565,
445,
11013,
951,
12,
2867,
3410,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
2313,
63,
3461,
2539,
65,
3778,
3258,
273,
306,
27,
16,
5340,
16,
4366,
16,
3247,
1... |
// SPDX-License-Identifier: MIT
/**
* Author: Lambdalf the White
*/
pragma solidity 0.8.10;
import "../../../interfaces/IERC20Metadata.sol";
import "../ERC20Base.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
abstract contract ERC20BaseMetadata is IERC20Metadata, ERC20Bas... | * @dev Interface for the optional metadata functions from the ERC20 standard./ Token name Token symbol | abstract contract ERC20BaseMetadata is IERC20Metadata, ERC20Base {
string private _name;
string private _symbol;
function _initERC20BaseMetadata( string memory name_, string memory symbol_ ) internal {
_name = name_;
_symbol = symbol_;
}
function name() external view virtual returns ( string memory ) {
... | 13,119,004 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
364,
326,
3129,
1982,
4186,
628,
326,
4232,
39,
3462,
4529,
18,
19,
3155,
508,
3155,
3273,
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,
17801,
6835,
4232,
39,
3462,
2171,
2277,
353,
467,
654,
39,
3462,
2277,
16,
4232,
39,
3462,
2171,
288,
203,
202,
1080,
3238,
389,
529,
31,
203,
203,
202,
1080,
3238,
389,
7175,
31,
203,
203,
203,
203,
202,
915,
389,
2738,
654,
... |