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/4/0x52A03107EA9439CbdEe771CC7AEeDb6cbB912691/sources/verified-sources/0x967fC599318E1aBAdf66d133B76e6C0D884C6839/sources/CryptoFarmToken-main/contracts/DividendPayingToken.sol | @dev Internal function that transfer tokens from one address to another. Update magnifiedDividendCorrections to keep dividends unchanged. @param from The address to transfer from. @param to The address to transfer to. @param value The amount to be transferred. | function _transfer(address from, address to, uint256 value) internal {
super._transfer(from, to, value);
int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe();
magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection);
magnifiedDividendCorrectio... | 687,900 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3186,
445,
716,
7412,
2430,
628,
1245,
1758,
358,
4042,
18,
2315,
28160,
939,
7244,
26746,
20884,
87,
358,
3455,
3739,
350,
5839,
14827,
18,
632,
891,
628,
1021,
1758,
358,
7412,
628,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
225,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
460,
13,
2713,
288,
203,
565,
2240,
6315,
13866,
12,
2080,
16,
358,
16,
460,
1769,
203,
203,
565,
509,
5034,
389,
4527,
20884,
273,
28160,
939,
7244,
26746,
21... |
// Smart contract used for the EatMeCoin Crowdsale
//
// @author: Pavel Metelitsyn, Geejay101
// April 2018
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal returns (... | set individual stage2Crowd cap | function setMaxStage2AllocationPerInvestor(uint256 _cap) public onlyController {
maxStage2AllocationPerInvestor = _cap;
}
| 5,375,152 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
7327,
6009,
22,
39,
492,
72,
3523,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
10851,
8755,
22,
17353,
2173,
3605,
395,
280,
12,
11890,
5034,
389,
5909,
13,
1071,
1338,
2933,
288,
203,
1377,
943,
8755,
22,
17353,
2173,
3605,
395,
280,
273,
389,
5909,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-... |
/*
Copyright (c) 2019 WhaleChat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, subl... | stop re-entrancy attack
| require(!withdrawn[msg.sender]); | 12,831,854 | [
1,
4625,
348,
7953,
560,
30,
225,
2132,
283,
17,
8230,
12514,
13843,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
5,
1918,
9446,
82,
63,
3576,
18,
15330,
19226,
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... |
pragma solidity 0.4.24;
import "zeppelin-solidity/contracts/lifecycle/Destructible.sol";
import "./Managed.sol";
import "./DonationCore.sol";
// Todo
// Destroy Proxy once goal is met
contract Proxy {
Heritage heritage;
uint256 donationId;
constructor(uint256 _donationId) public payable {
require(msg.val... | Make a DAI donation based on Id. Lookup the original donation Must be a DAI donation token Cannot donate to deleted token/null address A goal of 0 is uncapped It must not have reached it's goal | function makeDAIDonation(uint256 _donationId, uint256 _amount)
public
whenNotPaused
donationIdIsValid(_donationId)
returns (uint256)
{
require(_amount > 0);
uint256 donationId = donations[_donationId].donationId;
require(isDai[donationId]);
require(donationBeneficiary[donationId] != ... | 12,734,385 | [
1,
4625,
348,
7953,
560,
30,
225,
4344,
279,
463,
18194,
2727,
367,
2511,
603,
3124,
18,
8834,
326,
2282,
2727,
367,
6753,
506,
279,
463,
18194,
2727,
367,
1147,
14143,
2727,
340,
358,
4282,
1147,
19,
2011,
1758,
432,
17683,
434,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1221,
9793,
734,
265,
367,
12,
11890,
5034,
389,
19752,
367,
548,
16,
2254,
5034,
389,
8949,
13,
203,
565,
1071,
203,
565,
1347,
1248,
28590,
203,
565,
2727,
367,
548,
20536,
24899,
19752,
367,
548,
13,
203,
565,
1135,
... |
pragma solidity ^0.4.11;
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividin... | creates the token to be sold. override this method to have crowdsale of a specific mintable token. | function createTokenContract() internal returns (BitplusToken) {
return new BitplusToken();
}
| 10,570,469 | [
1,
4625,
348,
7953,
560,
30,
225,
3414,
326,
1147,
358,
506,
272,
1673,
18,
3849,
333,
707,
358,
1240,
276,
492,
2377,
5349,
434,
279,
2923,
312,
474,
429,
1147,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1345,
8924,
1435,
2713,
1135,
261,
5775,
10103,
1345,
13,
288,
203,
565,
327,
394,
6539,
10103,
1345,
5621,
203,
225,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.6;
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and n... | total assets is always >= bal | uint shares = _calcSharesToWithdraw(need, total - bal, totalShares);
| 1,703,113 | [
1,
4625,
348,
7953,
560,
30,
225,
2078,
7176,
353,
3712,
1545,
324,
287,
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,
2254,
24123,
273,
389,
12448,
24051,
774,
1190,
9446,
12,
14891,
16,
2078,
300,
324,
287,
16,
2078,
24051,
1769,
203,
2,
-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.7.4;
import "../Utilities.sol";
import "../Tellor.sol";
/**
* @title Utilities Tests
* @dev These are the getter function for the code functions in the
* Utility contract
*/
contract UtilitiesTest is Utilities,Tellor{
/**
* @dev Constructor to set extens... | * @title Utilities Tests @dev These are the getter function for the code functions in the Utility contract/ | contract UtilitiesTest is Utilities,Tellor{
pragma solidity 0.7.4;
constructor(address _ext) Tellor(_ext){
}
function testgetMax5(uint256[51] memory requests)
public
pure
returns (uint256[5] memory _max, uint256[5] memory _index)
{
(_max, _index) = _getMax5(requests);
... | 14,079,995 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
26703,
7766,
87,
632,
5206,
8646,
854,
326,
7060,
445,
364,
326,
981,
4186,
316,
326,
13134,
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,... | [
1,
1,
1,
1,
1,
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,
16351,
26703,
4709,
353,
26703,
16,
21009,
280,
95,
203,
203,
683,
9454,
18035,
560,
374,
18,
27,
18,
24,
31,
203,
565,
3885,
12,
2867,
389,
408,
13,
29860,
280,
24899,
408,
15329,
203,
565,
289,
203,
203,
565,
445,
1842,
588,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
/*
_
8 8 D D
8 8 D D
8 8 ... | * @dev Returns the amount of tokens in existence./* @dev Returns the amount of tokens owned by `account`./* @dev Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event./* @dev Returns the remaining number of tokens that `spen... | abstract contract ReentrancyGuard {
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
function _afterTokenTransfer(
address from,
... | 12,058,378 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
3844,
434,
2430,
316,
15782,
18,
20308,
632,
5206,
2860,
326,
3844,
434,
2430,
16199,
635,
1375,
4631,
8338,
20308,
632,
5206,
490,
10829,
1375,
8949,
68,
2430,
628,
326,
4894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
868,
8230,
12514,
16709,
288,
203,
203,
565,
2254,
5034,
3238,
5381,
389,
4400,
67,
12278,
2056,
273,
404,
31,
203,
565,
2254,
5034,
3238,
5381,
389,
12278,
2056,
273,
576,
31,
203,
203,
565,
2254,
5034,
3238,
389,
2... |
./full_match/1/0xD9909a6fAb1260a352fBB010D058698b5DeeA018/sources/contracts/Satoshigoat.sol | @dev Sale Data@dev Properties ----------- RESTRICTORS ----------- | contract Satoshigoat is ERC721A, SquadOwnable, ReentrancyGuard {
uint256 public constant MAX_NUM_TOKENS = 1;
pragma solidity ^0.8.4;
modifier onlyValidTokenID(uint256 tid) {
if (tid != 0)
revert DataError("tid OOB");
_;
}
modifier notEqual(string memory str1, string memory str2) {
if(_stringsEqual(st... | 9,664,673 | [
1,
4625,
348,
7953,
560,
30,
632,
5206,
348,
5349,
1910,
36,
5206,
6183,
300,
15392,
8392,
2259,
1268,
14006,
300,
15392,
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,
16351,
25793,
17636,
17626,
270,
353,
4232,
39,
27,
5340,
37,
16,
348,
21733,
5460,
429,
16,
868,
8230,
12514,
16709,
288,
203,
202,
203,
202,
11890,
5034,
1071,
5381,
4552,
67,
6069,
67,
8412,
55,
273,
404,
31,
203,
203,
203,
... |
./full_match/1/0x4A20F53E612E6Ab515A46EcA9dd36a290a2287F7/sources/contracts/protocol/core/callable/structs/Waterfall.sol | Settle all past due tranches as well as the last tranche. @param currentTrancheIndex - Index of the current tranche. All previous tranches are due. | function settleReserves(Waterfall storage w, uint256 currentTrancheIndex) internal {
uint256 uncalledCapitalTrancheIdx = w.uncalledCapitalTrancheIndex();
Tranche storage uncalledCapitalTranche = w.getTranche(uncalledCapitalTrancheIdx);
uncalledCapitalTranche.settleReserves();
for (uint256 i = 0; i < c... | 9,813,967 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
5929,
777,
8854,
6541,
13637,
11163,
487,
5492,
487,
326,
1142,
13637,
18706,
18,
632,
891,
783,
17730,
18706,
1016,
300,
3340,
434,
326,
783,
13637,
18706,
18,
4826,
2416,
13637,
11163,
854,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
5929,
607,
264,
3324,
12,
24064,
25602,
2502,
341,
16,
2254,
5034,
783,
17730,
18706,
1016,
13,
2713,
288,
203,
565,
2254,
5034,
6301,
4502,
4664,
7053,
17730,
18706,
4223,
273,
341,
18,
551,
4502,
4664,
7053,
17730,... |
./partial_match/56/0xcaC1160176E87DF4315A43f8C56Ed75Aa90020DE/sources/BitparaTRY.sol | * @dev Burns a specific amount of tokens. @param _value The amount of token to be burned./ | function burn(uint256 _value) onlyOwner public returns (bool) {
require(_value > 0);
require(_value <= balances[owner]);
balances[owner] = balances[owner].sub(_value);
tokensIssuedTotal = tokensIssuedTotal.sub(_value);
Burn(owner, _value);
return true;
}
| 11,131,122 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
605,
321,
87,
279,
2923,
3844,
434,
2430,
18,
632,
891,
389,
1132,
1021,
3844,
434,
1147,
358,
506,
18305,
329,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18305,
12,
11890,
5034,
389,
1132,
13,
1338,
5541,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
1132,
405,
374,
1769,
203,
3639,
2583,
24899,
1132,
1648,
324,
26488,
63,
8443,
19226,
203,
3639,
324,
26488,
63,
... |
./full_match/5/0xDC84C4e0326a81eeCffb2B9411d777E67d6aDac0/sources/DigitalNFT.sol | * @dev Mints a new NFT. @param _to The address that will own the minted NFT./check EIP712 signature from artist that validates the [ uri , artist, and KeypassToken ] | function mint( address _to, address artist, address keypassToken, string memory uri, uint256 maxCopies, uint256 expirationBlock, address currencyToken, uint256 currencyAmount, bytes memory signature) external returns(bool) {
bytes32 sigHash = getTypedDataHash(artist,keypassToken, uri, maxCopies, expiration... | 11,596,665 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
28142,
279,
394,
423,
4464,
18,
632,
891,
389,
869,
1021,
1758,
716,
903,
4953,
326,
312,
474,
329,
423,
4464,
18,
19,
1893,
512,
2579,
27,
2138,
3372,
628,
15469,
716,
11964,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
312,
474,
12,
1758,
389,
869,
16,
1758,
15469,
16,
1758,
498,
5466,
1345,
16,
533,
3778,
2003,
16,
2254,
5034,
943,
15670,
16,
2254,
5034,
7686,
1768,
16,
1758,
5462,
1345,
16,
2254,
5034,
5462,
6275,
16,
1731,
3778,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "./openzeppelin/token/ERC721/ERC721.sol";
import "hardhat/console.sol";
abstract contract ArtManager {
constructor() {}
struct ArtInfo {
address owner;
address collection;
uint256 artTokenId;
string url;
}
... | rewrite protection write | function _updateMetadata(uint256 tokenId, string memory metadataUrl)
internal
{
require(
_tokenArtHistory[tokenId].length > 0,
"history should not be empty"
);
string memory url = _tokenArtHistory[tokenId][_tokenActiveArt[tokenId]]
.url;
... | 7,289,844 | [
1,
4625,
348,
7953,
560,
30,
225,
10738,
17862,
1045,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2725,
2277,
12,
11890,
5034,
1147,
548,
16,
533,
3778,
1982,
1489,
13,
203,
3639,
2713,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
389,
2316,
4411,
5623,
63,
2316,
548,
8009,
2469,
405,
374,
16,
203,
5411,
31... |
pragma solidity ^0.5.12;
// Library & interfaces
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";
import "./interface/ICERC20.sol";
// Contracts
import "@openzeppelin/upgrades/contracts/Initializable.sol";... | * @notice Get Cherrydai balance for liquidity provider @param _provider liquidity provider address @return CherryDai balance/ | function cherryDaiBalanceOf(address _provider) public view returns (uint256) {
return cherryDai.balanceOf(_provider);
}
| 1,044,708 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
1680,
21938,
2414,
77,
11013,
364,
4501,
372,
24237,
2893,
632,
891,
389,
6778,
4501,
372,
24237,
2893,
1758,
632,
2463,
1680,
21938,
40,
10658,
11013,
19,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
462,
21938,
40,
10658,
13937,
951,
12,
2867,
389,
6778,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
462,
21938,
40,
10658,
18,
12296,
951,
24899,
6778,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
... |
/* VotingToken.sol */
pragma solidity >=0.4.0 <0.7.0;
/* <Summary>
This library repersents a voting token. This is used to cast votes.
*/
library VotingToken {
struct Token {
uint votedTime; // The time when the voter votes
bool vote; // The decision of the voter
bool voted; // If the v... | Get what the voter voted | function getVote(Token storage self) external view returns (bool) {
return self.vote;
}
| 6,375,359 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
4121,
326,
331,
20005,
331,
16474,
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,
202,
915,
11031,
1168,
12,
1345,
2502,
365,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
202,
202,
2463,
365,
18,
25911,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/56/0xA1f3Fbce0b2924afe69550784B02847360b09256/sources/FinanceToken.sol | FIN with Governance. | contract FinanceToken is BEP20('FinanceSwap Token', 'FIN') {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
constructor(address _treasury) public {
treasury = _treasury;
_mint(treasu... | 11,163,329 | [
1,
4625,
348,
7953,
560,
30,
225,
17563,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
9458,
1359,
1345,
353,
9722,
52,
3462,
2668,
6187,
1359,
12521,
3155,
2187,
296,
7263,
6134,
288,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
81,
474,
... |
//SPDX-License-Identifier: UNLICENSED
// Solidity files have to start with this pragma.
// It will be used by the Solidity compiler to validate its version.
pragma solidity ^0.8.0;
// We import this library to be able to use console.log
import "hardhat/console.sol";
import "./Verifier.sol";
import "./NFTGame.sol";
im... | TODO: change distribution from linear to gaussian way
| uint randomIndex = randomResult % length; | 12,712,135 | [
1,
4625,
348,
7953,
560,
30,
2660,
30,
2549,
7006,
628,
9103,
358,
21490,
4031,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
2744,
1016,
273,
2744,
1253,
738,
769,
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,
... |
pragma solidity ^ 0.4.21;
pragma solidity ^0.4.10;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
asse... | @notice Failsafe transfer tokens for the team to given account | function withdrawTokens()onlyOwner public returns(bool) {
require(this.transfer(owner, balances[this]));
uint256 bonusTokens = balances[address(bonusScheme)];
balances[address(bonusScheme)] = 0;
balances[owner] = balances[owner].add(bonusTokens);
emit Transfer(address(bonusScheme), owner, bonusTokens);
... | 931,847 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
8911,
4626,
7412,
2430,
364,
326,
5927,
358,
864,
2236,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
598,
9446,
5157,
1435,
3700,
5541,
1071,
1135,
12,
6430,
13,
288,
203,
202,
202,
6528,
12,
2211,
18,
13866,
12,
8443,
16,
324,
26488,
63,
2211,
5717,
1769,
203,
202,
202,
11890,
5034,
324,
22889,
5157,
273,
324,
26488,
... |
/*
WeiFund v1.0
This contract creates a crowdfunding platform. Start, donate to, payout and
refund crowdfunding campaigns on Ethereum.
If the campaign goal is reached or surpassed by stated expiry, all raised
funds will be paid out to the campaign's beneficiary. If the campaign goal is
not reached by the stated ex... | @notice Operators (the user address); Get the number of campaigns a user has started @dev This will return a user object that contains the number of campaigns a user has started. Use the userCampaigns method to the ID's to the crowdfunding campaigns that they have started. | mapping (address => Operator) public operators;
| 7,320,939 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
7692,
3062,
261,
5787,
729,
1758,
1769,
968,
326,
1300,
434,
8965,
87,
279,
729,
711,
5746,
632,
5206,
1220,
903,
327,
279,
729,
733,
716,
1914,
326,
1300,
434,
8965,
87,
279,
729,
711... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2874,
261,
2867,
516,
11097,
13,
1071,
12213,
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,
... |
./full_match/1/0xEe9156C93ebB836513968F92B4A67721f3cEa08a/sources/browser/Untitled6.sol | Total reward potential
| uint256 unclaimedReward; | 3,157,881 | [
1,
4625,
348,
7953,
560,
30,
225,
10710,
19890,
8555,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
6301,
80,
4581,
329,
17631,
1060,
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,
... |
./full_match/1/0xd8b132A0abA610D0AaA18716A2b26e14141f112C/sources/contracts/peer-to-pool/LoanProposalImpl.sol | Note: case where "last lender" converts @dev: use remainder (rather than pro-rata) to mitigate potential rounding errors @dev: increment repayment idx (no need to do repay with 0 amount) @dev: if "last lender" converts in last period then send remaining collateral back to borrower | function exerciseConversion() external {
(, uint256 lenderContribution) = _checkIsLender();
_checkStatus(DataTypesPeerToPool.LoanStatus.LOAN_DEPLOYED);
uint256 repaymentIdx = _checkAndGetCurrRepaymentIdx();
mapping(uint256 => bool)
storage lenderExercisedConversionPerRepa... | 17,176,327 | [
1,
4625,
348,
7953,
560,
30,
225,
3609,
30,
648,
1625,
315,
2722,
328,
2345,
6,
7759,
632,
5206,
30,
999,
10022,
261,
86,
4806,
2353,
450,
17,
86,
396,
13,
358,
20310,
360,
340,
8555,
13885,
1334,
632,
5206,
30,
5504,
2071,
2955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24165,
6814,
1435,
3903,
288,
203,
3639,
261,
16,
2254,
5034,
328,
2345,
442,
4027,
13,
273,
389,
1893,
2520,
48,
2345,
5621,
203,
3639,
389,
1893,
1482,
12,
751,
2016,
6813,
774,
2864,
18,
1504,
304,
1482,
18,
1502,
... |
./full_match/44787/0xACBFb0AcE735d17485C99929BBe4Fdce33dcF5f5/sources/contracts/prize-pool/PrizePool.sol | @title Escrows assets and deposits them into a yield source. Exposes interest to Prize Strategy. Users deposit and withdraw from this contract to participate in Prize Pool. @notice Accounting is managed using Controlled Tokens, whose mint and burn functions can only be called by this contract. @dev Must be inherited... | abstract contract PrizePool is PrizePoolInterface, OwnableUpgradeable, ReentrancyGuardUpgradeable, TokenControllerInterface, IERC721ReceiverUpgradeable {
using SafeMathUpgradeable for uint256;
using SafeCastUpgradeable for uint256;
using SafeERC20Upgradeable for IERC20Upgradeable;
using SafeERC20Upgradeable for... | 13,243,865 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
512,
1017,
3870,
7176,
471,
443,
917,
1282,
2182,
1368,
279,
2824,
1084,
18,
225,
1312,
10522,
16513,
358,
2301,
554,
19736,
18,
225,
12109,
443,
1724,
471,
598,
9446,
628,
333,
6835,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
2301,
554,
2864,
353,
2301,
554,
2864,
1358,
16,
14223,
6914,
10784,
429,
16,
868,
8230,
12514,
16709,
10784,
429,
16,
3155,
2933,
1358,
16,
467,
654,
39,
27,
5340,
12952,
10784,
429,
288,
203,
225,
1450,
14060,
10477,... |
./full_match/3/0x624320d6Dc000c8fB335989CFD90326803FDCBe1/sources/https/raw.githubusercontent.com/vittominacori/erc20-generator/master/contracts/token/ERC20/UnlimitedERC20.sol | * @title UnlimitedERC20 @dev Implementation of the UnlimitedERC20/ | contract UnlimitedERC20 is ERC20Decimals, ERC20Mintable, ERC20Burnable, Ownable, Roles {
constructor (
string memory name_,
string memory symbol_,
uint8 decimals_,
uint256 initialBalance_
)
ERC20(name_, symbol_)
ERC20Decimals(decimals_)
{
_mint(_msgS... | 8,088,597 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1351,
21325,
654,
39,
3462,
632,
5206,
25379,
434,
326,
1351,
21325,
654,
39,
3462,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1351,
21325,
654,
39,
3462,
353,
4232,
39,
3462,
31809,
16,
4232,
39,
3462,
49,
474,
429,
16,
4232,
39,
3462,
38,
321,
429,
16,
14223,
6914,
16,
19576,
288,
203,
203,
565,
3885,
261,
203,
3639,
533,
3778,
508,
67,
16,
... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/introspection/IERC165.sol
/**
* @title IERC165
* @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
*/
interface IERC165 {
/**
* @notice Query if a contract implements an interface
* @param interfaceId The interfa... | * @dev Internal function to remove a token ID from the list of a given address @param _from address representing the previous owner of the given token ID @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address/ To prevent a gap in the array, we store the last token in the index o... | function _removeTokenFrom(ERC721Data storage self, address _from, uint256 _tokenId) internal {
require(ownerOf(self, _tokenId) == _from);
self.ownedTokensCount[_from] = self.ownedTokensCount[_from].sub(1);
self.tokenOwner[_tokenId] = address(0);
uint256 tokenIndex = self.ownedTokens... | 7,284,009 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
1206,
279,
1147,
1599,
628,
326,
666,
434,
279,
864,
1758,
632,
891,
389,
2080,
1758,
5123,
326,
2416,
3410,
434,
326,
864,
1147,
1599,
632,
891,
389,
2316,
548,
2254,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
4479,
1345,
1265,
12,
654,
39,
27,
5340,
751,
2502,
365,
16,
1758,
389,
2080,
16,
2254,
5034,
389,
2316,
548,
13,
2713,
288,
203,
3639,
2583,
12,
8443,
951,
12,
2890,
16,
389,
2316,
548,
13,
422,
389,
2080,
176... |
./partial_match/1/0x90c3F762e4AD84e105f172a44C526280498A5eb8/sources/Punk.sol | solhint-disable-next-line avoid-low-level-calls Look for revert reason and bubble it up if present The easiest way to bubble the revert reason is using memory via assembly solhint-disable-next-line no-inline-assembly | function _functionCallWithValue(
address target,
bytes memory data,
uint256 weiValue,
string memory errorMessage
) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
data
);
if (success) {
re... | 2,713,407 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
4543,
17,
821,
17,
2815,
17,
12550,
10176,
364,
15226,
3971,
471,
21577,
518,
731,
309,
3430,
1021,
7264,
77,
395,
4031,
358,
21577,
326,
15226,
3971,
353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
389,
915,
26356,
620,
12,
203,
3639,
1758,
1018,
16,
203,
3639,
1731,
3778,
501,
16,
203,
3639,
2254,
5034,
732,
77,
620,
16,
203,
3639,
533,
3778,
9324,
203,
565,
262,
3238,
1135,
261,
3890,
3778,
13,
288,
203,
3639,... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Safe maths
// -----------------------------------... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and an initial fixed supply ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Cons... | contract CTADevilleToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
function CTADevilleToken()... | 14,704,389 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
392,
2172,
5499,
14467,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
385,
9833,
8870,
14120,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
... |
// This used to work in pre-0.6.0.
library Lib {
function min(uint, uint) public returns (uint);
}
contract Test {
function f() public {
uint t = Lib.min(12, 7);
}
}
// ----
// TypeError: (53-100): Library functions must be implemented if declared.
| This used to work in pre-0.6.0. | library Lib {
function min(uint, uint) public returns (uint);
}
| 12,759,728 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
1399,
358,
1440,
316,
675,
17,
20,
18,
26,
18,
20,
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... | [
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,
12083,
10560,
288,
203,
565,
445,
1131,
12,
11890,
16,
2254,
13,
1071,
1135,
261,
11890,
1769,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/* ProposalManager.sol */
pragma solidity >=0.4.0 <0.7.0;
import "../contracts/UserManager.sol";
import "../contracts/Proposal.sol";
import "../contracts/Person.sol";
/* <Summary>
This contract manages all active proposal. All functions will be called
by the voters except for ConcludeProposal which will be call... | Allows a voter to cast a vote on a proposal Checks if the sender is a voter | function CastVote(address _oldAccount, address _newAccount, bool choice) external {
require(temp.ContainsVoter(msg.sender), "Invalid Voter");
}
| 6,426,955 | [
1,
4625,
348,
7953,
560,
30,
225,
25619,
279,
331,
20005,
358,
4812,
279,
12501,
603,
279,
14708,
13074,
309,
326,
5793,
353,
279,
331,
20005,
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,
202,
915,
19782,
19338,
12,
2867,
389,
1673,
3032,
16,
1758,
389,
2704,
3032,
16,
1426,
6023,
13,
3903,
288,
203,
202,
202,
6528,
12,
5814,
18,
10846,
58,
20005,
12,
3576,
18,
15330,
3631,
315,
1941,
776,
20005,
8863,
203,
202,
... |
./partial_match/62320/0x5F234B6b82F5fF67Eeb4aB5D676c50ac9A07D009/sources/contracts/MedianDeltaBreaker.sol | * @notice Checks whether or not the conditions have been met for the specifed rate feed to be reset. @return resetBreaker A bool indicating whether or not this breaker can be reset for the given rate feed./ | function shouldReset(address rateFeedID) external view returns (bool resetBreaker) {
return !shouldTrigger(rateFeedID);
}
| 11,034,492 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
225,
13074,
2856,
578,
486,
326,
4636,
1240,
2118,
5100,
1850,
364,
326,
857,
430,
329,
4993,
4746,
358,
506,
2715,
18,
632,
2463,
225,
2715,
22660,
432,
1426,
11193,
2856,
578,
486,
185... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
445,
1410,
7013,
12,
2867,
4993,
8141,
734,
13,
3903,
1476,
1135,
261,
6430,
2715,
22660,
13,
288,
203,
565,
327,
401,
13139,
6518,
12,
5141,
8141,
734,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.16;
pragma experimental "v0.5.0";
pragma experimental "ABIEncoderV2";
library ExactMath {
uint constant internal UINT_ZERO = 0;
uint constant internal UINT_ONE = 1;
uint constant internal UINT_TWO = 2;
uint constant internal UINT_MAX = ~uint(0);
uint constant internal UINT_MI... | Calculates and returns 'self - other' The function will throw if the operation would result in an underflow. | function exactSub(uint self, uint other) internal pure returns (uint diff) {
require(other <= self);
diff = self - other;
}
| 12,874,915 | [
1,
4625,
348,
7953,
560,
30,
225,
26128,
471,
1135,
296,
2890,
300,
1308,
11,
1021,
445,
903,
604,
309,
326,
1674,
4102,
563,
316,
392,
3613,
2426,
18,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5565,
1676,
12,
11890,
365,
16,
2254,
1308,
13,
2713,
16618,
1135,
261,
11890,
3122,
13,
288,
203,
3639,
2583,
12,
3011,
1648,
365,
1769,
203,
3639,
3122,
273,
365,
300,
1308,
31,
203,
565,
289,
203,
203,
2,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint... | Cliff Period the cliff period has not ended, no tokens to draw down Schedule complete | function _availableDrawDownAmount(address _beneficiary) internal view returns (uint256 _amount) {
if (_getNow() <= start.add(cliffDuration)) {
return 0;
}
if (_getNow() > end) {
return vestedAmount[_beneficiary].sub(totalDrawn[_beneficiary]);
}
ui... | 428,599 | [
1,
4625,
348,
7953,
560,
30,
225,
3905,
3048,
12698,
326,
927,
3048,
3879,
711,
486,
16926,
16,
1158,
2430,
358,
3724,
2588,
10674,
3912,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5699,
6493,
4164,
6275,
12,
2867,
389,
70,
4009,
74,
14463,
814,
13,
2713,
1476,
1135,
261,
11890,
5034,
389,
8949,
13,
288,
203,
203,
3639,
309,
261,
67,
588,
8674,
1435,
1648,
787,
18,
1289,
12,
830,
3048,
5326... |
pragma solidity ^0.6.0;
... | inject NONSTANDARD NAMING
| string private constant _symbol95 = "BFC"; | 13,137,534 | [
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,
533,
3238,
5381,
389,
7175,
8778,
273,
315,
38,
4488,
14432,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @author: manifold.xyz
import "@manifoldxyz/libraries-solidity/contracts/access/AdminControlUpgradeable.sol";
import "./ERC721CollectionBase.sol";
/**
* ERC721 Collection Drop Contract Implementation
*/
contract ERC721CollectionImplementation is ERC721Co... | * @dev ERC721 Collection Interface/ | interface IERC721Collection is ICollectionBase, IERC165 {
event Unveil(uint256 collectibleId, address tokenAddress, uint256 tokenId);
struct CollectionState {
uint16 tokenMax;
uint256 tokenPrice;
uint16 tokenRemaining;
uint16 purchaseLimit;
uint16 presalePurchaseLimit... | 14,426,648 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4232,
39,
27,
5340,
2200,
6682,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
27,
5340,
2532,
353,
467,
2532,
2171,
16,
467,
654,
39,
28275,
288,
203,
203,
565,
871,
1351,
537,
330,
12,
11890,
5034,
3274,
1523,
548,
16,
1758,
1147,
1887,
16,
2254,
5034,
1147,
548,
1769,
203,
203,
203,... |
/// base.sol -- basic ERC20 implementation
// Copyright (C) 2015, 2016, 2017 DappHub, LLC
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at ... | Update total_tokens_traded
| uint this_tranche_tokens_total = add(wmul(current_tranche_t,price), wmul(dai_amount_left, final_trade_price)); | 1,816,022 | [
1,
4625,
348,
7953,
560,
30,
2315,
2078,
67,
7860,
67,
2033,
785,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
11890,
333,
67,
13171,
18706,
67,
7860,
67,
4963,
273,
527,
12,
91,
16411,
12,
2972,
67,
13171,
18706,
67,
88,
16,
8694,
3631,
341,
16411,
12,
2414,
77,
67,
8949,
67,
4482,
16,
727,
67,
20077,
67,
8694,
10019,
225,
... |
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
// assert(b > 0); // Solidity autom... | Denominator of the %(totalSupply) cost of a license
| uint256 public licenseCostDenominator; | 2,485,576 | [
1,
4625,
348,
7953,
560,
30,
225,
22453,
26721,
434,
326,
8975,
4963,
3088,
1283,
13,
6991,
434,
279,
8630,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
8630,
8018,
8517,
26721,
31,
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... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/IHyperswapRouter.sol";
import "./interfaces/IUniswapV2Pair.sol";
import "./interfaces/IUniswapV2Router.sol";
import "./interfaces/IVault.sol";
import "./lib/TransferHelper.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import... | @token - swap Native to this token @amount - amount of native token | function _swapNativeForToken(address token, uint256 amount, address recipient, address routerAddr) private returns (uint256) {
address[] memory path;
IUniswapV2Router router = IUniswapV2Router(routerAddr);
if (tokenBridgeForRouter[token][routerAddr] != address(0)) {
path = new a... | 12,639,308 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2316,
300,
7720,
16717,
358,
333,
1147,
632,
8949,
300,
3844,
434,
6448,
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,
... | [
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,
389,
22270,
9220,
1290,
1345,
12,
2867,
1147,
16,
2254,
5034,
3844,
16,
1758,
8027,
16,
1758,
4633,
3178,
13,
3238,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
1758,
8526,
3778,
589,
31,
203,
3639,
467,
984,
291,
91,
... |
./full_match/1/0x7af62458e41E2F490D2Df54A8FeDc56fFedB8c17/sources/lib/solady/src/utils/SafeTransferLib.sol | @dev Sends `amount` of ERC20 `token` from `from` to `to`. Reverts upon failure. The `from` account must have at least `amount` approved for the current contract to manage. @solidity memory-safe-assembly Store the function selector of `transferFrom(address,address,uint256)`. Set success to whether the call reverted, if... | function safeTransferFrom(address token, address from, address to, uint256 amount) internal {
assembly {
mstore(0x00, 0x23b872dd)
if iszero(
or(eq(mload(0x00), 1), iszero(returndatasize())),
call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
... | 3,203,075 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2479,
87,
1375,
8949,
68,
434,
4232,
39,
3462,
1375,
2316,
68,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
868,
31537,
12318,
5166,
18,
1021,
1375,
2080,
68,
2236,
1297,
1240,
622,
4520,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4183,
5912,
1265,
12,
2867,
1147,
16,
1758,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
3639,
19931,
288,
203,
203,
5411,
312,
2233,
12,
20,
92,
713,
16,
374,
92,
4366,
70,
28,
9060,
449,
13,
203,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
interface Calculator {
function getResult() external pure returns (uint256);
function getData() external pure returns (uint256);
}
contract ContractD is Calculator {
function getResult() external pure override retu... | ContractA a = new ContractA();b.compute(5,6);b.increment(5);a.getResult();return a.getData(); | function checkFunctionA() public returns (uint256){
ContractB b = new ContractB();
}
| 12,832,543 | [
1,
4625,
348,
7953,
560,
30,
13456,
37,
279,
273,
394,
13456,
37,
5621,
70,
18,
9200,
12,
25,
16,
26,
1769,
70,
18,
15016,
12,
25,
1769,
69,
18,
588,
1253,
5621,
2463,
279,
18,
588,
751,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
2083,
37,
1435,
1071,
1135,
261,
11890,
5034,
15329,
203,
3639,
13456,
38,
324,
273,
394,
13456,
38,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x430A0B288f75Fc501CC9B09F8691C754fA919e4e/sources/contracts/ERC1410Standard.sol | Declare the RedeemedByPartition event Declare the IssuedByPartition event | contract ERC1410Standard is ERC1410Operator {
using SafeMath for uint256;
event RedeemedByPartition(
bytes32 indexed partition,
address indexed operator,
address indexed from,
uint256 value
);
event IssuedByPartition(
bytes32 indexed partition,
address i... | 1,865,202 | [
1,
4625,
348,
7953,
560,
30,
225,
16110,
834,
326,
868,
24903,
18696,
7003,
871,
16110,
834,
326,
9310,
5957,
858,
7003,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
16351,
4232,
39,
3461,
2163,
8336,
353,
4232,
39,
3461,
2163,
5592,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
868,
24903,
18696,
7003,
12,
203,
3639,
1731,
1578,
8808,
3590,
16,
203,
3639,
1758,
... |
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,... | * @dev withdraw any owned balance/ | function withdraw() ifNotPaused public {
uint256 amount = balances[msg.sender];
if (amount > 0) {
balances[msg.sender] = 0;
msg.sender.transfer(amount);
Withdraw(msg.sender, amount);
}
}
| 6,352,987 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
598,
9446,
1281,
16199,
11013,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1435,
309,
1248,
28590,
1071,
288,
203,
3639,
2254,
5034,
3844,
273,
324,
26488,
63,
3576,
18,
15330,
15533,
203,
3639,
309,
261,
8949,
405,
374,
13,
288,
203,
5411,
324,
26488,
63,
3576,
18,
15330,
65,
273,
... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "../../interfaces/ExchangeInterface.sol";
import "../../loggers/DefisaverLogger.sol";
import "../../utils/Discount.sol";
import "../../interfaces/Spotter.sol";
import "../../interfaces/Jug.sol";
import "../../interfaces/DaiJoin.sol";
import "../../inte... | @notice Paybacks Dai debt @dev If the _daiAmount is bigger than the whole debt, returns extra Dai @param _cdpId Id of the CDP @param _ilk Ilk of the CDP @param _daiAmount Amount of Dai to payback @param _owner Address that owns the DSProxy that owns the CDP | function paybackDebt(uint _cdpId, bytes32 _ilk, uint _daiAmount, address _owner) internal {
address urn = manager.urns(_cdpId);
uint wholeDebt = getAllDebt(VAT_ADDRESS, urn, urn, _ilk);
if (_daiAmount > wholeDebt) {
ERC20(DAI_ADDRESS).transfer(_owner, sub(_daiAmount, wholeDebt)... | 12,573,312 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
13838,
823,
87,
463,
10658,
18202,
88,
632,
5206,
971,
326,
389,
2414,
77,
6275,
353,
18983,
2353,
326,
7339,
18202,
88,
16,
1135,
2870,
463,
10658,
632,
891,
389,
4315,
84,
548,
3124,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8843,
823,
758,
23602,
12,
11890,
389,
4315,
84,
548,
16,
1731,
1578,
389,
330,
79,
16,
2254,
389,
2414,
77,
6275,
16,
1758,
389,
8443,
13,
2713,
288,
203,
3639,
1758,
18412,
273,
3301,
18,
321,
87,
24899,
4315,
84,
... |
pragma solidity ^0.4.24;
import "./Ownable.sol";
/**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract CryptoKats is Ownable {
/// @dev The Birth event is fired whenever a new kitten comes into existence. This obv... | TODO: return the color, generation, motherId, and fatherId | function getKat(uint256 katId) public view returns (uint32 color, uint16 generation, uint256 motherId, uint256 fatherId) {
}
| 1,792,456 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
327,
326,
2036,
16,
9377,
16,
312,
3011,
548,
16,
471,
284,
4806,
548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
16566,
270,
12,
11890,
5034,
417,
270,
548,
13,
1071,
1476,
1135,
261,
11890,
1578,
2036,
16,
2254,
2313,
9377,
16,
2254,
5034,
312,
3011,
548,
16,
2254,
5034,
284,
4806,
548,
13,
288,
203,
225,
289,
203,
203,
2,
-100... |
./full_match/44787/0x1C539F46bFFB76d9173D67e1422349f5310F3600/sources/ToshaVault_flat.sol | * @notice Deposits funds into the Tosha Vault @param _amount: number of tokens to deposit (in Tosha token)/ | function deposit(uint256 _amount) external nonReentrant {
require(_amount > 0, "ToshaVault: Nothing to deposit");
uint256 pool = underlyingTokenBalance();
token.safeTransferFrom(msg.sender, address(this), _amount);
uint256 currentShares = 0;
if (totalShares != 0) {
... | 13,284,414 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4019,
538,
1282,
284,
19156,
1368,
326,
399,
538,
3395,
17329,
632,
891,
389,
8949,
30,
1300,
434,
2430,
358,
443,
1724,
261,
267,
399,
538,
3395,
1147,
13176,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
12,
11890,
5034,
389,
8949,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
315,
56,
538,
3395,
12003,
30,
13389,
358,
443,
1724,
8863,
203,
203,
3639,
2254,
5034,
2845,
273,
... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.6.12;
import "../utility/TokenHandler.sol";
import "../utility/ContractRegistryClient.sol";
import "./interfaces/IConverter.sol";
import "./interfaces/IConverterFactory.sol";
import "./interfaces/IConverterRegistry.sol";
import "./interfaces/IC... | * @dev checks whether or not a given value is a converter anchor of a given convertible token @param _convertibleToken convertible token @param _value value @return true if the given value is an anchor of the given convertible token, false if not/ | function isConvertibleTokenAnchor(IERC20Token _convertibleToken, address _value) public view override returns (bool) {
return IConverterRegistryData(addressOf(CONVERTER_REGISTRY_DATA)).isConvertibleTokenSmartToken(_convertibleToken, _value);
}
| 5,387,337 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4271,
2856,
578,
486,
279,
864,
460,
353,
279,
6027,
6984,
434,
279,
864,
1765,
1523,
1147,
632,
891,
389,
6283,
1523,
1345,
1765,
1523,
1147,
632,
891,
389,
1132,
460,
632,
2463,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
353,
2723,
1523,
1345,
11605,
12,
45,
654,
39,
3462,
1345,
389,
6283,
1523,
1345,
16,
1758,
389,
1132,
13,
1071,
1476,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
467,
5072,
4243,
751,
12,
2867,
951,
12,
2248,
220... |
./partial_match/1/0xCa93A5d889e445CECb42E5386f7d516511d2820f/sources/MasternodedToken.sol | * @dev Retrieve the `totalSupply` at the end of `timepoint`. Note, this value is the sum of all balances. It is NOT the sum of all the delegated votes! Requirements: - `timepoint` must be in the past/ | function getPastTotalSupply(uint256 timepoint) public view virtual override returns (uint256) {
require(timepoint < clock(), "ERC20Votes: future lookup");
return _checkpointsLookup(_totalSupplyCheckpoints, timepoint);
}
| 2,647,068 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10708,
326,
1375,
4963,
3088,
1283,
68,
622,
326,
679,
434,
1375,
957,
1153,
8338,
3609,
16,
333,
460,
353,
326,
2142,
434,
777,
324,
26488,
18,
2597,
353,
4269,
326,
2142,
434,
777,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
1689,
689,
5269,
3088,
1283,
12,
11890,
5034,
813,
1153,
13,
1071,
1476,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
957,
1153,
411,
7268,
9334,
315,
654,
39,
3462,
29637,
30,
3563,
3689,
8863,
203... |
// SPDX-License-Identifier: MIT-open-group
pragma solidity ^0.8.0;
import "../../lib/openzeppelin/token/ERC20/ERC20.sol";
import "./utils/Admin.sol";
import "./utils/Mutex.sol";
import "./utils/MagicEthTransfer.sol";
import "./utils/EthSafeTransfer.sol";
import "./math/Sigmoid.sol";
contract MadByte is ERC20, Admin,... | Internal function that does the deposit in the Madnet Chain for user using BN addresses, i.e emit the event DepositReceivedBN. All the Madbytes sent to this function are burned. copying state to save gas | function _depositBN(uint256 to0_, uint256 to1_, uint256 to2_, uint256 to3_, uint256 amount_) internal returns (uint256) {
require(amount_ > 0, "MadByte: The deposit amount must be greater than zero!");
require(_destroyTokens(amount_), "MadByte: Transfer failed!");
uint256 depositID = _deposi... | 13,041,068 | [
1,
4625,
348,
7953,
560,
30,
225,
3186,
445,
716,
1552,
326,
443,
1724,
316,
326,
490,
361,
2758,
7824,
364,
729,
1450,
605,
50,
6138,
16,
277,
18,
73,
3626,
326,
871,
4019,
538,
305,
8872,
15388,
18,
4826,
326,
490,
361,
3890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
323,
1724,
15388,
12,
11890,
5034,
358,
20,
67,
16,
2254,
5034,
358,
21,
67,
16,
2254,
5034,
358,
22,
67,
16,
2254,
5034,
358,
23,
67,
16,
2254,
5034,
3844,
67,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
... |
/* _____________________________________________________________________________
GaussVault: Initial Token Distribution and Time Lock Controller
MIT License. (c) 2021 Gauss Gang Inc.
_____________________________________________________________________________
*/
// SPDX-License-Identifier: MIT
prag... | The initializer sets internal the values of for the Gauss(GANG) token and _senderAddress | as well as calling the internal functions that create a Vesting Lock contract for each Pool of tokens. */
function __GaussVault_init_unchained(address gaussGANGAddress) internal initializer {
_senderAddress = address(this);
_gaussToken = IBEP20(gaussGANGAddress);
_previouslyLocke... | 7,220,177 | [
1,
4625,
348,
7953,
560,
30,
282,
1021,
12562,
1678,
2713,
326,
924,
434,
364,
326,
611,
10325,
12,
43,
3388,
13,
1147,
471,
389,
15330,
1887,
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,
5411,
487,
5492,
487,
4440,
326,
2713,
4186,
716,
752,
279,
776,
10100,
3488,
6835,
364,
1517,
8828,
434,
2430,
18,
1195,
203,
565,
445,
1001,
43,
10325,
12003,
67,
2738,
67,
4384,
8707,
12,
2867,
314,
10325,
43,
3388,
1887,
13,
... |
pragma solidity >=0.5.5 <0.6.0;
pragma experimental ABIEncoderV2;
... | Swap is expired -> can go to REFUNDED inject NONSTANDARD NAMING
| uint256 public constant expired653 = 4; | 7,293,358 | [
1,
4625,
348,
7953,
560,
30,
225,
12738,
353,
7708,
317,
848,
1960,
358,
20557,
2124,
7660,
202,
22170,
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,
... | [
1,
1,
1,
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,
2254,
5034,
1071,
5381,
7708,
26,
8643,
273,
1059,
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,
-... |
./full_match/11155111/0x9cEdc0546C8516D7429c1E90004f877EC790b2d1/sources/project_/contracts/MasterMultiSig.sol | call has been separated into its own function in order to take advantage of the Solidity's code generator to produce a loop that copies tx.data into memory. | function external_call(
address destination,
uint256 value,
bytes memory data
) internal returns (bool) {
bool result;
assembly {
result := call(
gas(),
destination,
value,
d,
0,
... | 3,802,574 | [
1,
4625,
348,
7953,
560,
30,
225,
745,
711,
2118,
8936,
1368,
2097,
4953,
445,
316,
1353,
358,
4862,
1261,
7445,
410,
434,
326,
348,
7953,
560,
1807,
981,
4456,
358,
11402,
279,
2798,
716,
13200,
2229,
18,
892,
1368,
3778,
18,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3903,
67,
1991,
12,
203,
3639,
1758,
2929,
16,
203,
3639,
2254,
5034,
460,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
2713,
1135,
261,
6430,
13,
288,
203,
3639,
1426,
563,
31,
203,
3639,
19931,
288,
203,
5411,
563... |
/**
*Submitted for verification at Etherscan.io on 2020-08-19
*/
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░█... | if no reserve or a new pair is createdif no reserve or a new pair is createdif no reserve or a new pair is createdif no reserve or a new pair is created | function exchangeTokensV1(
address _FromTokenContractAddress,
address _ToUnipoolToken0,
address _ToUnipoolToken1,
uint256 _amount
) internal returns (uint256 token0Bought, uint256 token1Bought) {
IUniswapV2Pair pair = IUniswapV2Pair(
UniSwapV2FactoryAddress.ge... | 1,498,302 | [
1,
4625,
348,
7953,
560,
30,
309,
1158,
20501,
578,
279,
394,
3082,
353,
2522,
430,
1158,
20501,
578,
279,
394,
3082,
353,
2522,
430,
1158,
20501,
578,
279,
394,
3082,
353,
2522,
430,
1158,
20501,
578,
279,
394,
3082,
353,
2522,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7829,
5157,
58,
21,
12,
203,
3639,
1758,
389,
1265,
1345,
8924,
1887,
16,
203,
3639,
1758,
389,
774,
984,
625,
1371,
1345,
20,
16,
203,
3639,
1758,
389,
774,
984,
625,
1371,
1345,
21,
16,
203,
3639,
2254,
5034,
389,
... |
./full_match/1/0xD3A63a423dBd9005A2eaa9CE74DDF39802Cf161d/sources/contracts/SNFT.sol | * Used to accept a buy offer, receive the locked ETH, and transfer the requested amount of shares to the buyer. sha256_of_the_nft_data = sha256( nft_data ) offer_slot = The slot number in which the offer is located (starting at 0). requested_amount = Confirms the amount of shares about to be transfer... | function accept_buy_offer( uint256 sha256_of_the_nft_data, uint offer_slot, uint requested_amount, uint wei_offered ) external nonReentrant
{
NFT storage nft = nfts[ sha256_of_the_nft_data ];
make_sure_nft_is_valid_and_finalized( nft );
require( offer_slot < BUY_OFFER_SLOT_COUNT, SLOT_U... | 17,164,989 | [
1,
4625,
348,
7953,
560,
30,
380,
10286,
358,
2791,
279,
30143,
10067,
16,
6798,
326,
8586,
512,
2455,
16,
471,
7412,
326,
3764,
3844,
434,
24123,
358,
326,
27037,
18,
282,
6056,
5034,
67,
792,
67,
5787,
67,
82,
1222,
67,
892,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2791,
67,
70,
9835,
67,
23322,
12,
2254,
5034,
6056,
5034,
67,
792,
67,
5787,
67,
82,
1222,
67,
892,
16,
2254,
10067,
67,
14194,
16,
2254,
3764,
67,
8949,
16,
2254,
732,
77,
67,
23322,
329,
262,
3903,
1661,
426,
823... |
./full_match/5/0xe9DD80b8345ff6791e0287016F828250c2eE2376/sources/contracts/CrowdFunding.sol | test to see if eveything is okay?? | function createCampaign(address _owner, string memory _title, string memory _description, uint256 _target, uint256 _deadline, string memory _image) public returns(uint256) {
Campaign storage campaign = campaigns[numberOfCampaigns];
require(campaign.deadline < block.timestamp, "The deadline should be... | 11,586,913 | [
1,
4625,
348,
7953,
560,
30,
1842,
358,
2621,
309,
2113,
402,
4274,
353,
21194,
14646,
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,
13432,
12,
2867,
389,
8443,
16,
533,
3778,
389,
2649,
16,
533,
3778,
389,
3384,
16,
2254,
5034,
389,
3299,
16,
2254,
5034,
389,
22097,
1369,
16,
533,
3778,
389,
2730,
13,
1071,
1135,
12,
11890,
5034,
13,
288,
203... |
//! The Secret Store document key shadow retrieval service contract.
//!
//! Copyright 2017 Svyatoslav Nikolsky, Parity Technologies Ltd.
//!
//! Licensed under the Apache License, Version 2.0 (the "License");
//! you may not use this file except in compliance with the License.
//! You may obtain a copy of the License ... | When document key personal-portion retrieval request is received. | event DocumentKeyPersonalRetrievalRequested(bytes32 serverKeyId, bytes requesterPublic);
| 1,000,744 | [
1,
4625,
348,
7953,
560,
30,
225,
5203,
1668,
498,
17816,
17,
17564,
22613,
590,
353,
5079,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2575,
4319,
653,
8346,
287,
27356,
11244,
12,
3890,
1578,
1438,
14140,
16,
1731,
19961,
4782,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/43113/0xc8cEE725b2d6Ef04bC54373697c89215513EDc2D/sources/contracts/TestAvax.sol | disperse amount to all holders, for *possible* cex integration !!BEWARE!!: you will reflect YOUR TOKENS when you call this. | function reflectFromYouToEveryone(uint256 amount) external alive(25){
address sender = _msgSender();
uint256 rate = ratio();
require(!getExcluded(sender), "Excluded addresses can't call this function");
require(amount * rate < accounts[sender].nTotal, "too much");
accounts[se... | 7,148,037 | [
1,
4625,
348,
7953,
560,
30,
225,
1015,
457,
307,
3844,
358,
777,
366,
4665,
16,
364,
380,
12708,
14,
276,
338,
12040,
401,
5,
5948,
28499,
8548,
30,
1846,
903,
3037,
1624,
51,
1099,
14275,
55,
1347,
1846,
745,
333,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3037,
1265,
6225,
774,
21465,
476,
12,
11890,
5034,
3844,
13,
3903,
13714,
12,
2947,
15329,
203,
3639,
1758,
5793,
273,
389,
3576,
12021,
5621,
203,
3639,
2254,
5034,
4993,
273,
7169,
5621,
203,
3639,
2583,
12,
5,
588,
... |
pragma solidity 0.4.25;
contract StandardToken {
/* Data structures */
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
uint256 public totalSupply;
/* Events */
event Transfer(address indexed from, address indexed to, uint256 value);
... | Storage */ Modifiers */ Only emission address to do this action | modifier isCrowdfundingContract() {
if (msg.sender != emissionContractAddress) {
revert();
}
_;
}
| 7,211,994 | [
1,
4625,
348,
7953,
560,
30,
225,
5235,
1195,
3431,
3383,
1195,
5098,
801,
19710,
1758,
358,
741,
333,
1301,
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,
9606,
25249,
492,
2180,
14351,
8924,
1435,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
801,
19710,
8924,
1887,
13,
288,
203,
5411,
15226,
5621,
203,
3639,
289,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
... |
// // SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "hardhat/console.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/Acces... | * @dev Emitted in `unlock` when the user unbinded his locked tokens/ | event TokensUnlocked(uint256 amount, uint256 time, address indexed sender);
| 490,665 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
512,
7948,
316,
1375,
26226,
68,
1347,
326,
729,
640,
4757,
785,
18423,
8586,
2430,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
871,
13899,
7087,
329,
12,
11890,
5034,
3844,
16,
2254,
5034,
813,
16,
1758,
8808,
5793,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0x492B6F8A53D1c42cC2DD352788a6C02c557BE9F5/sources/contracts/integrations/curve/common/Stablz3CRVMetaPoolIntegration.sol | @notice Get the CRV to 3CRV swap params @return swapParams Swap params for CRV to 3CRV | function getCRVTo3CRVSwapParams() public pure returns (uint[3][4] memory swapParams) {
swapParams[0][0] = 1;
swapParams[0][2] = 3;
swapParams[1][0] = 2;
swapParams[1][2] = 3;
swapParams[2][0] = 2;
swapParams[2][2] = 7;
return swapParams;
}
| 3,190,064 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
326,
6732,
58,
358,
890,
5093,
58,
7720,
859,
632,
2463,
7720,
1370,
12738,
859,
364,
6732,
58,
358,
890,
5093,
58,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1927,
54,
58,
774,
23,
5093,
58,
12521,
1370,
1435,
1071,
16618,
1135,
261,
11890,
63,
23,
6362,
24,
65,
3778,
7720,
1370,
13,
288,
203,
3639,
7720,
1370,
63,
20,
6362,
20,
65,
273,
404,
31,
203,
3639,
7720,
1370,
6... |
./full_match/1/0xe4B7FAF7FF04Dca787F14d611dA27Be1C307A671/sources/IntotheGimmeverseContract.sol | * @dev Mints tokens to an address in batch. fee may or may not be required @param _to address of the future owner of the token @param _amount number of tokens to mint/ | function mintToMultiple(address _to, uint256 _amount) public payable {
require(onlyERC20MintingMode == false, "Only minting with ERC-20 tokens is enabled.");
require(_amount >= 1, "Must mint at least 1 token");
require(_amount <= maxBatchSize, "Cannot mint more than max mint per transaction"... | 8,443,357 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
28142,
2430,
358,
392,
1758,
316,
2581,
18,
14036,
2026,
578,
2026,
486,
506,
1931,
632,
891,
389,
869,
1758,
434,
326,
3563,
3410,
434,
326,
1147,
632,
891,
389,
8949,
1300,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
774,
8438,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3700,
654,
39,
3462,
49,
474,
19154,
422,
629,
16,
315,
3386,
312,
474,
310,
598,
4232,
39,
17,
3462... |
./partial_match/1/0x415D88576623f0c283Fa4512a6c3B8be68966A1a/sources/InvitePool.sol | *关系绑定由用户直接调用直接调用/绑定关系为了可以给测试事件抛出方便,允许重复绑定上级邀请人必须已绑定上级(创世地址除外) | function bind(address _superUser) public {
require(msg.sender != address(0) || _superUser != address(0), "0x0 not allowed");
require(userInfo[msg.sender].superUser == address(0), "already bind");
require(msg.sender != _superUser, "do not bind yourself");
if (!god[_superUser]) {
... | 3,958,602 | [
1,
4625,
348,
7953,
560,
30,
380,
166,
232,
116,
168,
116,
124,
168,
124,
244,
166,
111,
253,
168,
247,
114,
168,
247,
106,
167,
235,
120,
168,
254,
117,
167,
241,
103,
169,
113,
230,
168,
247,
106,
168,
254,
117,
167,
241,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1993,
12,
2867,
389,
9565,
1299,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
480,
1758,
12,
20,
13,
747,
389,
9565,
1299,
480,
1758,
12,
20,
3631,
315,
20,
92,
20,
486,
2935,
8863,
203,
203,
3639,
2583,
12,... |
./full_match/1/0x4D9f950161346325CBdD88Cfb469f3378D1d94C6/sources/contracts/rewards/YOPRewards.sol | @notice Claim reward tokens for the caller across all the vaults and staking contract and send the rewards to the given address. @param _to The address to send the rewards to | function claimAll(address _to) external whenNotPaused {
_updateStateForVaults(vaultAddresses.values(), _msgSender().addressToBytes32());
uint256[] memory stakeIds;
if (stakingContract != address(0)) {
stakeIds = IStaking(stakingContract).stakesFor(_msgSender());
}
_updateStateForStaking(stak... | 5,017,066 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
18381,
19890,
2430,
364,
326,
4894,
10279,
777,
326,
9229,
87,
471,
384,
6159,
6835,
471,
1366,
326,
283,
6397,
358,
326,
864,
1758,
18,
632,
891,
389,
869,
1021,
1758,
358,
1366,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7516,
1595,
12,
2867,
389,
869,
13,
3903,
1347,
1248,
28590,
288,
203,
565,
389,
2725,
1119,
1290,
12003,
87,
12,
26983,
7148,
18,
2372,
9334,
389,
3576,
12021,
7675,
2867,
21033,
1578,
10663,
203,
565,
2254,
5034,
8526,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import { IHashes } from "./IHashes.sol";
import { LibDeactivateToken } from "./LibDeactivateToken.sol";
import { LibEIP712 } from "./LibEIP712.sol";
import { LibSignature } from "./LibSignature.sol";
import { SafeMath } from "@openzeppelin/contracts/utils/math/Saf... | * @notice Constructor for the Hashes token. Initializes the state. @param _mintFee Minting fee @param _reservedAmount Reserved number of Hashes @param _governanceCap Number of hashes qualifying for governance @param _baseTokenURI The initial base token URI./ Compute and save the hash (temporary till redemption) Mint th... | constructor(uint256 _mintFee, uint256 _reservedAmount, uint256 _governanceCap, string memory _baseTokenURI) ERC721("Hashes", "HASH") Ownable() {
reservedAmount = _reservedAmount;
activationFee = _mintFee;
mintFee = _mintFee;
governanceCap = _governanceCap;
for (uint i = 0; i ... | 5,820,629 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11417,
364,
326,
2474,
281,
1147,
18,
10188,
3128,
326,
919,
18,
632,
891,
389,
81,
474,
14667,
490,
474,
310,
14036,
632,
891,
389,
18898,
6275,
16237,
1300,
434,
2474,
281,
632,
891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
12,
11890,
5034,
389,
81,
474,
14667,
16,
2254,
5034,
389,
18898,
6275,
16,
2254,
5034,
389,
75,
1643,
82,
1359,
4664,
16,
533,
3778,
389,
1969,
1345,
3098,
13,
4232,
39,
27,
5340,
2932,
14455,
3113,
315,
15920,
7923,
... |
./full_match/11155111/0x8aC3508aDB6ab3653baB898d00Eee55af66ef175/sources/project:/contracts/UniswapV2ERC20.sol | keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); | contract UniswapV2ERC20 is IUniswapV2ERC20 {
using SafeMath for uint;
string public constant name = 'MTASwap';
string public constant symbol = 'MTAS';
uint8 public constant decimals = 18;
uint public totalSupply;
mapping(address => uint) public balanceOf;
mapping(address => mapping(address... | 3,817,518 | [
1,
4625,
348,
7953,
560,
30,
225,
417,
24410,
581,
5034,
2932,
9123,
305,
12,
2867,
3410,
16,
2867,
17571,
264,
16,
11890,
5034,
460,
16,
11890,
5034,
7448,
16,
11890,
5034,
14096,
2225,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1351,
291,
91,
438,
58,
22,
654,
39,
3462,
353,
467,
984,
291,
91,
438,
58,
22,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
5381,
508,
273,
296,
17741,
91,
438,
13506,
203... |
// hevm: flattened sources of src/strategies/strategy-curve-scrv-v1.sol
pragma solidity >=0.4.23 >=0.6.0 <0.7.0 >=0.6.2 <0.7.0 >=0.6.7 <0.7.0;
////// src/interfaces/controller.sol
// SPDX-License-Identifier: MIT
/* pragma solidity ^0.6.0; */
interface IController {
function jars(address) external view returns (a... | Manually change this function to view on the abi This is due to 'gauge'.claimable_token function Which fucks everything up stablecoin we want to convert to Return amounts CRV | function getExpectedRewards()
public
returns (
)
{
(address to, ) = getMostPremiumStablecoin();
uint256 _to;
uint256 _pickleBurn;
uint256 _retAmount;
uint256 _crv = ICurveGauge(gauge).claimable_tokens(address(this));
if (_crv > 0) {
... | 1,220,645 | [
1,
4625,
348,
7953,
560,
30,
225,
8660,
3452,
2549,
333,
445,
358,
1476,
603,
326,
24126,
1220,
353,
6541,
358,
296,
75,
8305,
10332,
14784,
429,
67,
2316,
445,
21918,
284,
9031,
87,
7756,
731,
14114,
12645,
732,
2545,
358,
1765,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
6861,
17631,
14727,
1435,
203,
3639,
1071,
203,
3639,
1135,
261,
203,
3639,
262,
203,
565,
288,
203,
3639,
261,
2867,
358,
16,
262,
273,
2108,
669,
23890,
5077,
30915,
12645,
5621,
203,
203,
3639,
2254,
5034,
389,
... |
./full_match/80001/0xD8F9B8539C7078cA467296e6c31dc8661D0217F2/sources/contracts/CrowdFunding.sol | The call to `exactInputSingle` executes the swap. | amountOut = campaign.swapRouter.exactInputSingle(params);
| 5,555,630 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
745,
358,
1375,
17165,
1210,
5281,
68,
11997,
326,
7720,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3844,
1182,
273,
8965,
18,
22270,
8259,
18,
17165,
1210,
5281,
12,
2010,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal... | @dev Grant tokens to a specified address. @param _to address The holder address. @param _value uint The amount of tokens to be granted. @param _start uint The beginning of the vesting period. @param _cliff uint Duration of the cliff period (when the first installment is made). @param _end uint The end of the vesting p... | function grantTo(address _to, uint _value, uint _start, uint _cliff, uint _end,
uint _installmentLength, bool _revokable)
external onlyOwner {
require(_to != address(0));
require(_value > 0);
require(grants[_to].value == 0);
require(_start <= _cliff && _cliff <= _e... | 13,107,583 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
19689,
2430,
358,
279,
1269,
1758,
18,
632,
891,
389,
869,
1758,
1021,
10438,
1758,
18,
632,
891,
389,
1132,
2254,
1021,
3844,
434,
2430,
358,
506,
17578,
18,
632,
891,
389,
1937,
2254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7936,
774,
12,
2867,
389,
869,
16,
2254,
389,
1132,
16,
2254,
389,
1937,
16,
2254,
389,
830,
3048,
16,
2254,
389,
409,
16,
203,
3639,
2254,
389,
5425,
475,
1782,
16,
1426,
389,
9083,
601,
429,
13,
203,
3639,
3903,
1... |
./full_match/1/0x49F137f60B5A7FbAD577D16f33cFe6Be743C8c06/sources/contracts/Auditor.sol | @notice Allow/rejects seizing of assets. @dev This function can be called externally, but only will have effect when called from a market. @param repayMarket market from where the debt will be repaid. @param seizeMarket market where the assets will be seized. if markets are listed, they also point to the same Auditor | function checkSeize(Market repayMarket, Market seizeMarket) external view {
if (!markets[seizeMarket].isListed || !markets[repayMarket].isListed) revert MarketNotListed();
}
| 3,005,765 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
7852,
19,
24163,
87,
695,
6894,
434,
7176,
18,
632,
5206,
1220,
445,
848,
506,
2566,
18885,
1230,
16,
1496,
1338,
903,
1240,
5426,
1347,
2566,
628,
279,
13667,
18,
632,
891,
2071,
528,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
1761,
554,
12,
3882,
278,
2071,
528,
3882,
278,
16,
6622,
278,
695,
554,
3882,
278,
13,
3903,
1476,
288,
203,
565,
309,
16051,
3355,
2413,
63,
307,
554,
3882,
278,
8009,
291,
682,
329,
747,
401,
3355,
2413,
63,
... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2020, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | will revert if msg.sender is not whitelisted | function outboundTransfer(
address _token,
address _to,
uint256 _amount,
uint256 _maxGas,
uint256 _gasPriceBid,
bytes calldata _data
) public payable virtual override onlyWhitelisted returns (bytes memory) {
super.outboundTransfer(_token, _to, _amount, _ma... | 13,084,333 | [
1,
4625,
348,
7953,
560,
30,
225,
903,
15226,
309,
1234,
18,
15330,
353,
486,
26944,
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,
11663,
5912,
12,
203,
3639,
1758,
389,
2316,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
1896,
27998,
16,
203,
3639,
2254,
5034,
389,
31604,
5147,
17763,
16,
203,... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
contract DSMath {
function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
require((z = x + y) >= x, "");
}
function sub(uint256 x, uint256 y) internal pure returns (uint256 z) {
r... | @inheritdoc ActionBase | function executeAction(
bytes[] memory _callData,
bytes[] memory _subData,
uint8[] memory _paramMapping,
bytes32[] memory _returnValues
) public payable virtual override returns (bytes32) {
Params memory inputData = parseInputs(_callData);
inputData.amount0Desire... | 163,897 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
4382,
2171,
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,
1836,
1803,
12,
203,
3639,
1731,
8526,
3778,
389,
1991,
751,
16,
203,
3639,
1731,
8526,
3778,
389,
1717,
751,
16,
203,
3639,
2254,
28,
8526,
3778,
389,
891,
3233,
16,
203,
3639,
1731,
1578,
8526,
3778,
389,
2463,
1972,
... |
pragma solidity 0.4.25;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/token/ERC20/ERC20.sol
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/... | Restrict functionaly to the official Transfer Agent. | modifier onlyTransferAgent {
require(msg.sender == transferAgent, "You must be the Transfer Agent to execute this function.");
_;
}
| 2,545,272 | [
1,
4625,
348,
7953,
560,
30,
225,
1124,
5792,
445,
3450,
358,
326,
3397,
22354,
12279,
8669,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
5912,
3630,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
7412,
3630,
16,
315,
6225,
1297,
506,
326,
12279,
8669,
358,
1836,
333,
445,
1199,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
203,
203,
203,
2... |
./full_match/1/0xdc2F3feD14a87ccE44440ceF069B3F17a868d929/sources/browser/Unibase.sol | mint UBASE to contract creator on deployment
| _mint(msg.sender, amount); | 2,908,728 | [
1,
4625,
348,
7953,
560,
30,
312,
474,
587,
8369,
358,
6835,
11784,
603,
6314,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
3844,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0x640216Ea5b2aC018b1d1FDB3F0a206F652C92574/sources/contracts/CommunityRegistry/CommunityRegistry.sol | * @dev Sets authorized status for multiple accounts. Only the owner can call this function. @param accounts_ The list of accounts to set the authorized status for. @param states_ The list of states to set for each account. The length of this array must be the same as the accounts_ array./* @dev Gets the authorized stat... | contract CommunityRegistry is ICommunityRegistry, ERC721A, Ownable, Pausable {
Config internal _config;
mapping(bytes32 => Node) internal _nodes;
mapping(uint256 => bytes32) internal _tokens;
mapping(bytes32 => uint256) internal _nodeLocks;
mapping(address => bool) internal _authorized;
string ... | 9,808,360 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
10799,
1267,
364,
3229,
9484,
18,
5098,
326,
3410,
848,
745,
333,
445,
18,
632,
891,
9484,
67,
1021,
666,
434,
9484,
358,
444,
326,
10799,
1267,
364,
18,
632,
891,
5493,
67,
1021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
16854,
13352,
4243,
353,
467,
12136,
13352,
4243,
16,
4232,
39,
27,
5340,
37,
16,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1903,
2713,
389,
1425,
31,
203,
565,
2874,
12,
3890,
1578,
516,
2029,
13,
2713,
389,
4690,
31,... |
pragma solidity >=0.4.24;
import "./dataStorage/TokenStorage.sol";
import '../upgradeability/DelayedUpgradeabilityProxy.sol';
import '../helpers/Ownable.sol';
/**
* @title TokenProxyDelayed
* @notice A proxy contract that serves the latest implementation of TokenProxy. This proxy
* upgrades only after a set amount of... | * @title TokenProxyDelayed @notice A proxy contract that serves the latest implementation of TokenProxy. This proxy upgrades only after a set amount of time (denominated in blocks mined)/ | contract TokenProxyDelayed is DelayedUpgradeabilityProxy, TokenStorage, Ownable {
constructor(address _implementation, address _balances, address _allowances, string _name, uint8 _decimals, string _symbol)
DelayedUpgradeabilityProxy(_implementation)
TokenStorage(_balances, _allowances, _name, _decimals, ... | 6,442,477 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
3155,
3886,
29527,
632,
20392,
432,
2889,
6835,
716,
26255,
326,
4891,
4471,
434,
3155,
3886,
18,
1220,
2889,
28844,
1338,
1839,
279,
444,
3844,
434,
813,
261,
13002,
362,
7458,
316,
4398,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
3155,
3886,
29527,
353,
20165,
329,
10784,
2967,
3886,
16,
3155,
3245,
16,
14223,
6914,
288,
203,
565,
3885,
12,
2867,
389,
30810,
16,
1758,
389,
70,
26488,
16,
1758,
389,
5965,
6872,
16,
533,
389,
529,
16,
2254,
28,
389,
... |
./partial_match/3/0xa6d5235F39cC92Ba1c2D228862aD56b67D08c9A0/sources/DiceGame.sol | Generate a random number in the range [0, 6], using block timestamp and difficulty as a random source. | function random() private view returns (uint8) {
return uint8(
uint(
keccak256(abi.encodePacked(block.timestamp, block.difficulty))
) % (DICE_FACES + 1)
);
}
| 5,108,244 | [
1,
4625,
348,
7953,
560,
30,
225,
6654,
279,
2744,
1300,
316,
326,
1048,
306,
20,
16,
1666,
6487,
1450,
1203,
2858,
471,
3122,
21934,
487,
279,
2744,
1084,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2744,
1435,
3238,
1476,
1135,
261,
11890,
28,
13,
288,
203,
3639,
327,
2254,
28,
12,
203,
5411,
2254,
12,
203,
7734,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
12,
2629,
18,
5508,
16,
1203,
18,
5413,
21934... |
./full_match/10200/0x056Ef05257459e5B605210F0122E0940C0183cCd/sources/contracts/view/GeneralizedTCRView.sol | Iterate over every column.
| for (uint j = 0; j < matchItem.length; j++) { | 3,785,934 | [
1,
4625,
348,
7953,
560,
30,
225,
11436,
1879,
3614,
1057,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
364,
261,
11890,
525,
273,
374,
31,
525,
411,
845,
1180,
18,
2469,
31,
525,
27245,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "./Ownable.sol";
// Lottery game contract starts here
contract Lottery is Ownable {
//variable to cater player attribute
struct Player {
string name;
uint256 entryCount;
uint256 index;
}
// declaration related to ... | record unique address of player | address[] public addressIndexes;
| 1,830,866 | [
1,
4625,
348,
7953,
560,
30,
225,
1409,
3089,
1758,
434,
7291,
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,
1758,
8526,
1071,
1758,
8639,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
import './MarketInterest.sol';
/**
* @title MarketLend
* @dev Contract containing business logic pertaining to lenders within a market
*/
contract MarketLend is MarketInterest {
/*** EVENTS ***/
/**
* @dev Triggered when a new lender enters market and offers a loan
* @param _... | * @dev Fetches the index of a lender within array of lenders in Market (from their address) NOTE: This function currently not used anywhere/ | function getLenderIndex(uint _marketId, address _address) public view returns (uint) {
uint index = 0;
for (uint i = 0; i < getLenderCount(_marketId); i++) {
if (markets[_marketId].lenders[i] == _address) {
index = i;
}
}
return index;
}
| 12,898,848 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8065,
281,
326,
770,
434,
279,
328,
2345,
3470,
526,
434,
328,
10130,
316,
6622,
278,
1377,
261,
2080,
3675,
1758,
13,
5219,
30,
1220,
445,
4551,
486,
1399,
25651,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
9014,
2345,
1016,
12,
11890,
389,
27151,
548,
16,
1758,
389,
2867,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
565,
2254,
770,
273,
374,
31,
203,
565,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
9014,
2345,
1380... |
./partial_match/1/0x7b05cE308915299B0a31D5E5f020b4DE66779BCa/sources/contracts/BSGGStaking.sol | @notice Total staked amount (balance) by users in ticket type id @param _ticketTypeId Ticket type id @return uint256 | function amountLockedSeason(uint _ticketTypeId) external view returns (uint256) {
uint currentTime = block.timestamp;
uint amount = 0;
for (uint16 i = 0; i < ticketTypes[_ticketTypeId].seasons.length; i++) {
if (ticketTypes[_ticketTypeId].seasons[i].startTime > currentTime) {
... | 9,150,412 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10710,
384,
9477,
3844,
261,
12296,
13,
635,
3677,
316,
9322,
618,
612,
632,
891,
389,
16282,
11731,
22023,
618,
612,
632,
2463,
2254,
5034,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3844,
8966,
1761,
2753,
12,
11890,
389,
16282,
11731,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
6680,
273,
1203,
18,
5508,
31,
203,
3639,
2254,
3844,
273,
374,
31,
203,
203,
3639,
364,
261,
11890... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
//registers all the farmer contracts t track his work
contract FarmerProduct {
//______________________________________________________
//farmer crop
struct farmer_crop{ // no crop type
address fid;
string farmer_name;
str... | must add a condition | ) public {
if ( farmer_exist(fid) == false)
function AddNewCrop(
address fid,
string memory farmer_name,
string memory location,
string memory crop_type,
uint phone_number,
uint quantity,
uint unit_price
{
... | 2,531,041 | [
1,
4625,
348,
7953,
560,
30,
1297,
527,
279,
2269,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
262,
1071,
288,
203,
203,
5411,
309,
261,
284,
4610,
264,
67,
7398,
12,
27268,
13,
422,
629,
13,
203,
565,
445,
1436,
1908,
19729,
12,
203,
3639,
1758,
13444,
16,
203,
3639,
533,
3778,
284,
4610,
264,
67,
529,
16,
203,
... |
./full_match/421613/0x4CDe190f062679E74c5162117abA483407367C11/sources/src/NFTManager/NftManager.sol | @author munji - yimunj931@gmail.com | contract NftManager is PermissionsEnumerable {
NFTManager is a extension of Pachi721
Purpose of this contract
- store status of NFTs
- manage it
constructor & admin functions
=======================================================================================... | 11,570,294 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
4161,
312,
318,
21102,
300,
677,
381,
318,
78,
29,
6938,
36,
75,
4408,
18,
832,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
423,
1222,
1318,
353,
15684,
3572,
25121,
288,
203,
3639,
423,
4464,
1318,
353,
279,
2710,
434,
453,
497,
77,
27,
5340,
203,
203,
3639,
14466,
4150,
434,
333,
6835,
203,
5411,
300,
1707,
1267,
434,
423,
4464,
87,
203,
5411... |
./partial_match/1/0xdF1d7FD22aC3aB5171E275796f123224039f3b24/sources/src/v0.8/ccip/onRamp/EVM2EVMOnRamp.sol | @notice Sets the dynamic configuration. @param dynamicConfig The configuration. | function setDynamicConfig(DynamicConfig memory dynamicConfig) external onlyOwner {
_setDynamicConfig(dynamicConfig);
}
| 4,303,788 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11511,
326,
5976,
1664,
18,
632,
891,
5976,
809,
1021,
1664,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
9791,
809,
12,
9791,
809,
3778,
5976,
809,
13,
3903,
1338,
5541,
288,
203,
565,
389,
542,
9791,
809,
12,
14507,
809,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1313161554/0xcD337ebB3E8E4b32e184228aaf6B39712923F010/sources/MasterChef.sol | View function to see pending SPDs on frontend. | function pendingSpd(uint256 _pid, address _user)
external
view
returns (uint256)
{
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accSpdPerShare = pool.accSpdPerShare;
uint256 lpSupply = pool.lpToken.balanceO... | 13,231,904 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
4634,
11405,
22831,
603,
15442,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4634,
3389,
72,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
66... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
//pancake swap clone on bsc works good - launch net TBA
//testnet router: https://pancake.kiemtienonline360.com/- 0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3
//shit wallet-3 -0x22204A6bd11965F19F3ccf64541f34EcdF560d45
import "./Libraries.sol";
contract SetasToken... | pancake swap clone on bsc works good - launch net TBAtestnet router: https:pancake.kiemtienonline360.com/- 0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3shit wallet-3 -0x22204A6bd11965F19F3ccf64541f34EcdF560d45 | import "./Libraries.sol";
| 2,543,362 | [
1,
4625,
348,
7953,
560,
30,
2800,
23780,
7720,
3236,
603,
324,
1017,
6330,
7494,
300,
8037,
2901,
399,
38,
861,
395,
2758,
4633,
30,
2333,
30,
7355,
23780,
18,
15299,
351,
9096,
275,
21026,
29751,
18,
832,
19,
17,
374,
92,
29,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5666,
25165,
31909,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/3/0xd099372836A91297C3f93E528B419d43AAd35a00/sources/CryptoHeroesPacketsShop.sol | wei/Packet Cards/Packet | contract CryptoHeroesPacketsShop is Pausable {
using SafeMath for uint256;
event LogBuy(address buyer, uint256 cost, uint256 value, uint256 numberOfCards);
event LogCostChanged(uint256 newCost, uint256 newNumberOfCards);
uint256 public cost;
uint256 public numberOfCards;
constructor(uint256 ... | 5,131,943 | [
1,
4625,
348,
7953,
560,
30,
225,
732,
77,
19,
6667,
14338,
87,
19,
6667,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
15629,
44,
2439,
281,
27328,
7189,
353,
21800,
16665,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
1827,
38,
9835,
12,
2867,
27037,
16,
2254,
5034,
6991,
16,
2254,
5034,
460,
16,
2254,
5034,
... |
pragma solidity 0.5.0;
/* AmpleForthGold AAU Midas Distributor.
**
** (c) 2020. Developed by the AmpleForthGold Team.
**
** www.ampleforth.gold
*/
//import "openzeppelin-solidity/contracts/math/SafeMath.sol";
//pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations ... | * @notice Sets an Agents share of the distribution. @param _index Index of Agents. Ordering may have changed since adding. @param _share Percentage share of the distribution (can be 0)./ | function setAgentShare(uint256 _index, uint8 _share) external onlyOwner {
require(
_index < agents.length,
"index must be in range of stored tx list"
);
require(_share <= uint8(100));
distributing = false;
agents[_index].share = _share;
}
| 207,241 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
392,
5495,
4877,
7433,
434,
326,
7006,
18,
632,
891,
389,
1615,
3340,
434,
5495,
4877,
18,
27582,
2026,
1240,
3550,
3241,
6534,
18,
632,
891,
389,
14419,
21198,
410,
7433,
434,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
3630,
9535,
12,
11890,
5034,
389,
1615,
16,
2254,
28,
389,
14419,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
389,
1615,
411,
16423,
18,
2469,
16,
203,
5411,
315,
1615,
1297,
506,
316,
1048,
434,
4... |
./full_match/4/0x727388B8cB233337c8619e887E1896f1B576C431/sources/contracts/JBETHPaymentTerminalStore.sol | Save a reference to the delegate to use. | IJBPayDelegate _delegate;
| 693,896 | [
1,
4625,
348,
7953,
560,
30,
225,
7074,
279,
2114,
358,
326,
7152,
358,
999,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
467,
8877,
9148,
9586,
389,
22216,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/44787/0x66bF67f33c577EeE06AB365Fb63cCf3bA36c20E5/sources/contracts/marketPlace/CyberBoxMarket.sol | * @dev See {INFTKEYMarketPlaceV1-delistToken}. msg.sender must be the seller of the listing record/ | function delistToken(address sender, uint256 tokenId) external {
require(_tokenListings[tokenId].seller == sender, "Only token seller can delist token");
emit TokenDelisted(tokenId, _tokenListings[tokenId].seller, _erc721Name);
_delistToken(tokenId);
}
| 13,246,635 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
706,
4464,
3297,
3882,
278,
6029,
58,
21,
17,
3771,
376,
1345,
5496,
1234,
18,
15330,
1297,
506,
326,
29804,
434,
326,
11591,
1409,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
1464,
376,
1345,
12,
2867,
5793,
16,
2254,
5034,
1147,
548,
13,
3903,
288,
203,
3639,
2583,
24899,
2316,
682,
899,
63,
2316,
548,
8009,
1786,
749,
422,
5793,
16,
315,
3386,
1147,
29804,
848,
1464,
376,
1147,
8863,
203,
... |
pragma solidity 0.6.7;
pragma experimental ABIEncoderV2;
import "./Setup.sol";
import { TestToken } from "../../TestHelpers.sol";
import "../../../uni/UniswapV3Pool.sol";
import "../../../uni/libraries/TickMath.sol";
// import 'hardhat/console.sol';
contract E2E_swap {
SetupTokens tokens;
SetupUniswap uniswa... | console.log('sqrtPriceLimitX96 = %s', sqrtPriceLimitX96); | function test_swap_exactOut_oneForZero(uint128 _amount) public {
require(set);
require(_amount != 0);
if (!inited) _init(_amount);
require(token0.balanceOf(address(swapper)) > 0);
int256 _amountSpecified = -int256(_amount);
uint160 sqrtPriceLimitX96 = get_random_on... | 1,758,714 | [
1,
4625,
348,
7953,
560,
30,
225,
2983,
18,
1330,
2668,
24492,
5147,
3039,
60,
10525,
273,
738,
87,
2187,
5700,
5147,
3039,
60,
10525,
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,
... | [
1,
1,
1,
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,
1842,
67,
22270,
67,
17165,
1182,
67,
476,
1290,
7170,
12,
11890,
10392,
389,
8949,
13,
1071,
288,
203,
3639,
2583,
12,
542,
1769,
203,
3639,
2583,
24899,
8949,
480,
374,
1769,
203,
203,
3639,
309,
16051,
2738,
329,
13,... |
/**
*Submitted for verification at Etherscan.io on 2020-08-11
*/
pragma solidity 0.6.0;
/**
* @title Offering contract
* @dev Offering logic and mining logic
*/
contract Nest_NToken_OfferMain {
using SafeMath for uint256;
using address_make_payable for address;
using SafeERC20 for ERC20;
... | Mining decay list
| uint256[10] _attenuationAmount; | 7,993,930 | [
1,
4625,
348,
7953,
560,
30,
282,
5444,
310,
22286,
666,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
63,
2163,
65,
389,
4558,
2104,
367,
6275,
31,
4766,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0xeB40E25AF8F5F22Bb201f53971480beA0094Cd65/sources/src/v0.8/functions/dev/1_0_0/FunctionsRouter.sol | @inheritdoc IFunctionsRouter | function getAllowListId() external view override returns (bytes32) {
return s_allowListId;
}
| 4,322,511 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
7503,
8259,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
336,
7009,
682,
548,
1435,
3903,
1476,
3849,
1135,
261,
3890,
1578,
13,
288,
203,
565,
327,
272,
67,
5965,
682,
548,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0x1d9619E10086FdC1065B114298384aAe3F680CC0/sources/contracts/abstract/JBPayoutRedemptionPaymentTerminal3_1_2.sol | @notice Process any fees that are being held for the project. @dev Only a project owner, an operator, or the contract's owner can process held fees. @param _projectId The ID of the project whos held fees should be processed. Get a reference to the project's held fees. Delete the held fees. Push array length in stack K... | function processFees(
uint256 _projectId
)
external
virtual
override
requirePermissionAllowingOverride(
projects.ownerOf(_projectId),
_projectId,
JBOperations.PROCESS_FEES,
msg.sender == owner()
)
{
JBFee[] memory _heldFees = _heldFeesOf[_projectId];
delete... | 8,432,391 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4389,
1281,
1656,
281,
716,
854,
3832,
15770,
364,
326,
1984,
18,
632,
5206,
5098,
279,
1984,
3410,
16,
392,
3726,
16,
578,
326,
6835,
1807,
3410,
848,
1207,
15770,
1656,
281,
18,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1207,
2954,
281,
12,
203,
565,
2254,
5034,
389,
4406,
548,
203,
225,
262,
203,
565,
3903,
203,
565,
5024,
203,
565,
3849,
203,
565,
2583,
5041,
7009,
310,
6618,
12,
203,
1377,
10137,
18,
8443,
951,
24899,
4406,
548,
3... |
//Address: 0x261ace754fba8af93e1fecdff13640540402940f
//Contract name: Phila_Token
//Balance: 0 Ether
//Verification Date: 5/23/2018
//Transacion Count: 6
// CODE STARTS HERE
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
... | ---------------------------------------------------------------------------- ERC Token Standard #20 Interface https:github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md ---------------------------------------------------------------------------- | contract ERC20Interface {
function totalSupply() public constant returns (uint);
function balanceOf(address tokenOwner) public constant returns (uint balance);
function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
function transfer(address to, uint tokens) pub... | 945,762 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3155,
8263,
468,
3462,
6682,
2333,
30,
6662,
18,
832,
19,
546,
822,
379,
19,
41,
18246,
19,
10721,
19,
7525,
19,
41,
2579,
55,
19,
73,
625,
17,
3462,
17,
2316,
17,
10005,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
1358,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
1071,
5381,
1135,
261,
11890,
1769,
203,
565,
445,
11013,
951,
12,
2867,
1147,
5541,
13,
1071,
5381,
1135,
261,
11890,
11013,
1769,
203,
565,
445,
1699,
1359,... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.11;
import "./GaucheBase.sol";
import "./LibGauche.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
// Price is .0777e per mint
// Max mint is 10
// Price for a max mint is .777e
// ,@
// #@@ @ ... | * @notice Adds a project to the registry. @param _wordPrice The price in levels, if there is one. @param _price The price in ETH to mint, if there is one. @param _artistAddress The artists ethereum address @param _tokenURI The tokenURI, without a tokenId/ | function addProject(uint8 _wordPrice, uint64 _price, address _artistAddress, string memory _tokenURI) onlyOwner public {
require(gaucheLevels.length < MAX_LEVEL, "GG: Max 255");
GaucheLevel memory project = GaucheLevel(_wordPrice, _price, _artistAddress, _tokenURI);
emit ProjectAdded(gauche... | 11,795,445 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15605,
279,
1984,
358,
326,
4023,
18,
632,
891,
389,
1095,
5147,
1021,
6205,
316,
7575,
16,
309,
1915,
353,
1245,
18,
632,
891,
389,
8694,
1021,
6205,
316,
512,
2455,
358,
312,
474,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
527,
4109,
12,
11890,
28,
389,
1095,
5147,
16,
2254,
1105,
389,
8694,
16,
1758,
389,
25737,
1887,
16,
533,
3778,
389,
2316,
3098,
13,
225,
1338,
5541,
1071,
288,
203,
3639,
2583,
12,
15833,
2648,
73,
12240,
18,
2469,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.7;
// TattooMoney.io Public Sale Contract - via StableCoins, ETH and wBTC
//
// USE ONLY OWN WALLET (Metamask, TrustWallet, Trezor, Ledger...)
// DO NOT SEND FROM EXCHANGES OR ANY SERVICES
//
// Use ONLY ETH network, ERC20 tokens (Not Binance/Tron/whatever!)... | / geting price with 18 decimals | function tokensPerEth() public view returns (uint256) {
int256 answer;
(, answer, , , ) = INterfaces(ethoracle).latestRoundData();
return uint256((uint256(answer) * tokensforadolar)/10**8);
}
@return price for 1 BTC with 18 decimals
| 537,589 | [
1,
4625,
348,
7953,
560,
30,
342,
336,
310,
6205,
598,
6549,
15105,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2430,
2173,
41,
451,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
509,
5034,
5803,
31,
203,
3639,
261,
16,
5803,
16,
269,
269,
262,
273,
2120,
387,
4601,
12,
546,
280,
16066,
2934,
13550,
11066,
751,
... |
//Address: 0xeaa76f1f32ced565c78bf1d57546002a0b0d9684
//Contract name: Crowdsale
//Balance: 0 Ether
//Verification Date: 3/26/2018
//Transacion Count: 41
// CODE STARTS HERE
pragma solidity 0.4.21;
library SafeMath {
function mul(uint a, uint b) internal pure returns(uint) {
uint c = a * b;
as... | @notice in case refunds are needed, money can be returned to the contract and contract switched to mode refunding | function prepareRefund() public payable onlyOwner() {
require(crowdsaleClosed);
currentStep = Step.Refunding;
}
| 5,503,335 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
316,
648,
16255,
87,
854,
3577,
16,
15601,
848,
506,
2106,
358,
326,
6835,
471,
6835,
31665,
358,
1965,
1278,
14351,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2911,
21537,
1435,
1071,
8843,
429,
1338,
5541,
1435,
288,
203,
203,
3639,
2583,
12,
71,
492,
2377,
5349,
7395,
1769,
203,
3639,
783,
4160,
273,
8693,
18,
1957,
14351,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
./partial_match/3/0x5a29e0B2dD3BE41661D39Ef5BE99001a5c6eadDb/sources/Presale.sol | get number of tokens per 1 ETH | function getNumberOfTokensPerETH() external view returns (uint256) {
return _tokenPerETH;
}
| 5,152,206 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
1300,
434,
2430,
1534,
404,
512,
2455,
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,
14981,
5157,
2173,
1584,
44,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
2316,
2173,
1584,
44,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2022-04-08
*/
// Sources flattened with hardhat v2.8.2 https://hardhat.org
// File contracts/utils/Timed.sol
pragma solidity ^0.8.4;
/// @title an abstract contract for timed events
/// @author Fei Protocol
abstract contract Timed {
/// @notice the start time... | * @title Decimal @author dYdX Library that defines a fixed-point number with 18 decimal places./ ============ Constants ============ ============ Structs ============ | library Decimal {
using SafeMath for uint256;
uint256 private constant BASE = 10**18;
Copyright 2019 dYdX Trading Inc.
struct D256 {
uint256 value;
}
function zero() internal pure returns (D256 memory) {
}
return D256({value: 0});
function one() internal pure ret... | 6,229,837 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
11322,
632,
4161,
302,
61,
72,
60,
18694,
716,
11164,
279,
5499,
17,
1153,
1300,
598,
6549,
6970,
12576,
18,
19,
422,
1432,
631,
5245,
422,
1432,
631,
422,
1432,
631,
7362,
87,
422,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12083,
11322,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
2254,
5034,
3238,
5381,
10250,
273,
1728,
636,
2643,
31,
203,
203,
203,
203,
565,
25417,
30562,
302,
61,
72,
60,
2197,
7459,
15090,
18,
203... |
./partial_match/1/0x12746bD686306bB78E525D05CC391963972d77C1/sources/D4ACreateProjectProxy.sol | 1-indexed to allow 0 to signify nonexistence | function setMintCapAndPermission(
bytes32 daoId,
uint32 daoMintCap,
UserMintCapParam[] calldata userMintCapParams,
IPermissionControl.Whitelist memory whitelist,
IPermissionControl.Blacklist memory blacklist,
IPermissionControl.Blacklist memory unblacklist
) exter... | 9,289,257 | [
1,
4625,
348,
7953,
560,
30,
225,
404,
17,
19626,
358,
1699,
374,
358,
1573,
1164,
1661,
7398,
802,
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,
15430,
474,
4664,
1876,
5041,
12,
203,
3639,
1731,
1578,
15229,
548,
16,
203,
3639,
2254,
1578,
15229,
49,
474,
4664,
16,
203,
3639,
2177,
49,
474,
4664,
786,
8526,
745,
892,
729,
49,
474,
4664,
1370,
16,
203,
3639,
2... |
// SPDX-License-Identifier: AGPL-3.0-or-later\
pragma solidity 0.7.5;
pragma abicoder v2;
import "./SafeMath.sol";
import "./SafeERC20.sol";
import "./ITreasury.sol";
import "./IgOHM.sol";
import "./IStaking.sol";
import "./Ownable.sol";
interface IClaim {
struct Term {
uint256 percent; // 4 decimals ( 50... | * @notice bulk migrate users from previous contract @param _addresses address[] memory/ | function migrate(address[] memory _addresses) external onlyOwner {
for (uint256 i = 0; i < _addresses.length; i++) {
IClaim.Term memory term = previous.terms(_addresses[i]);
setTerms(
_addresses[i],
term.max,
term.percent,
... | 9,841,793 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
8280,
13187,
3677,
628,
2416,
6835,
632,
891,
389,
13277,
1758,
8526,
3778,
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,
13187,
12,
2867,
8526,
3778,
389,
13277,
13,
3903,
1338,
5541,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
13277,
18,
2469,
31,
277,
27245,
288,
203,
5411,
467,
9762,
18,
4065,
3778,
2481,
... |
pragma solidity ^0.5.2;
import "./CereneumData.sol";
contract CereneumImplementation is CereneumData
{
using SafeMath for uint256;
//Events
event ClaimEvent(
uint256 nOriginalClaimAmount,
uint256 nAmountGranted,
uint256 nBonuses,
uint256 nPenalties,
bool bWasReferred
... | @dev Claim tokens from a UTXO at snapshot block granting CER tokens proportional to amount of UTXO. BCH, BSV, ETH & LTC chains get proportional BTC ratio awards. @param a_nAmount Amount of UTXO @param a_hMerkleTreeBranches Merkle tree branches from leaf to root @param a_addressClaiming The Ethereum address for the cla... | function Claim(
uint256 a_nAmount,
bytes32[] memory a_hMerkleTreeBranches,
address a_addressClaiming,
bytes32 a_publicKeyX,
bytes32 a_publicKeyY,
AddressType a_nAddressType,
uint8 a_v,
bytes32 a_r,
bytes32 a_s,
BlockchainType a_nWhichCh... | 5,400,132 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
18381,
2430,
628,
279,
4732,
60,
51,
622,
4439,
1203,
7936,
310,
385,
654,
2430,
23279,
287,
358,
3844,
434,
4732,
60,
51,
18,
605,
1792,
16,
605,
23927,
16,
512,
2455,
473,
11807,
39,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18381,
12,
203,
3639,
2254,
5034,
279,
67,
82,
6275,
16,
203,
3639,
1731,
1578,
8526,
3778,
279,
67,
76,
8478,
15609,
2471,
24246,
16,
203,
3639,
1758,
279,
67,
2867,
9762,
310,
16,
203,
3639,
1731,
1578,
279,
67,
482... |
./full_match/1/0xF76EFB82b079c5e75E4f7503A5eC60297b2EC982/sources/contracts/Base_rogue1.sol | * Intended usage: This contract holds the fee for a validator building service. The funds are locked in escrow until either the validator is produced and working, or until an agreed upon timeframe expires./ | contract ValidatorService is Ownable, OracleValiIndex {
using Address for address payable;
event Deposited(address indexed owner, uint256 weiAmount);
event Withdrawn(address indexed owner, uint256 weiAmount);
event Refunded(address indexed customer, uint256 weiAmount);
mapping(address => uint256) ... | 8,460,954 | [
1,
4625,
348,
7953,
560,
30,
380,
657,
8140,
4084,
30,
1220,
6835,
14798,
326,
14036,
364,
279,
4213,
10504,
1156,
18,
1021,
284,
19156,
854,
8586,
316,
2904,
492,
3180,
3344,
326,
4213,
353,
14929,
471,
5960,
16,
578,
3180,
392,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
9150,
1179,
353,
14223,
6914,
16,
28544,
3053,
77,
1016,
288,
203,
565,
1450,
5267,
364,
1758,
8843,
429,
31,
203,
203,
565,
871,
4019,
538,
16261,
12,
2867,
8808,
3410,
16,
2254,
5034,
732,
77,
6275,
1769,
203,
565,
871,
... |