file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/1/0xd2aa885f3231CbB7763450E94b79B9fc4d101D03/sources/browser/Power.sol | add y^13 * (20! / 13!)
| z = z * y / FIXED_1; res += z * 0x0000000017499f00; | 2,982,848 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
677,
66,
3437,
380,
261,
3462,
5,
342,
5958,
24949,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
4202,
998,
273,
998,
380,
677,
342,
26585,
67,
21,
31,
400,
1011,
998,
380,
374,
92,
12648,
28686,
2733,
74,
713,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x8648910ff06a3ab2B977984150aCdAd25481c937/sources/MonkTokenSale.sol | Ensures that the whitelist sale is active. | modifier onlyDuringWhitelistSale() {
require(
block.timestamp >= whitelistSaleStartTime && block.timestamp <= whitelistSaleEndTime,
"MONK: Whitelist sale is not active"
);
_;
}
| 15,720,363 | [
1,
4625,
348,
7953,
560,
30,
225,
1374,
8421,
716,
326,
10734,
272,
5349,
353,
2695,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
26424,
18927,
30746,
1435,
288,
203,
3639,
2583,
12,
203,
5411,
1203,
18,
5508,
1545,
10734,
30746,
13649,
597,
1203,
18,
5508,
1648,
10734,
30746,
25255,
16,
203,
5411,
315,
17667,
47,
30,
3497,
7523,
272,
5349,
3... |
pragma solidity 0.4.20;
contract SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | Function that is called when a user or another contract wants to transfer funds @param to : address to transfer a balance to @param value : how many units to send @dev only happens if msg sender has a balance and the entitlement is not expired/ | function transfer(bytes32 _from, bytes32 _to, uint _value) public onlyOwner returns (bool success) {
return transferToAddress(_from, _to, _value);
}
| 5,451,622 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
716,
353,
2566,
1347,
279,
729,
578,
4042,
6835,
14805,
358,
7412,
284,
19156,
632,
891,
358,
294,
1758,
358,
7412,
279,
11013,
358,
632,
891,
460,
294,
3661,
4906,
4971,
358,
1366,
632,
5206,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
225,
445,
7412,
12,
3890,
1578,
389,
2080,
16,
1731,
1578,
389,
869,
16,
2254,
389,
1132,
13,
1071,
1338,
5541,
1135,
261,
6430,
2216,
13,
288,
203,
565,
327,
7412,
774,
1887,
24899,
2080,
16,
389,
869,
16,
389,
1132,
1769,
203... |
./partial_match/1/0x3BA1A331e48811adDdeeA91866AC119598C215Fd/sources/NNTToken.sol | * @dev Constructor that gives msg.sender all of existing tokens./ | function NNTToken() public {
totalSupply_ = INITIAL_SUPPLY;
balances[msg.sender] = INITIAL_SUPPLY;
emit Transfer(0x0, msg.sender, INITIAL_SUPPLY);
}
| 2,684,279 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11417,
716,
14758,
1234,
18,
15330,
777,
434,
2062,
2430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
423,
1784,
1345,
1435,
1071,
288,
203,
3639,
2078,
3088,
1283,
67,
273,
28226,
67,
13272,
23893,
31,
203,
3639,
324,
26488,
63,
3576,
18,
15330,
65,
273,
28226,
67,
13272,
23893,
31,
203,
3639,
3626,
12279,
12,
20,
92,
... |
./full_match/80001/0x4A3d553752a2D08CFeBa7A8e1D769638682ff754/sources/BuyWertTest2.sol | Address that is allowed to fill the order. If set to 0, any address is allowed to fill the order.
| address payable takerAddress; | 9,515,262 | [
1,
4625,
348,
7953,
560,
30,
225,
5267,
716,
353,
2935,
358,
3636,
326,
1353,
18,
971,
444,
358,
374,
16,
1281,
1758,
353,
2935,
358,
3636,
326,
1353,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1758,
8843,
429,
268,
6388,
1887,
31,
5411,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.23;
import "../erc/ERC20Interface.sol"
import "../erc/ERC223Interface.sol"
import "../erc/ERC223ReceivingContract.sol";
import "../lib/SafeMath.sol";
function allowance(address _owner, address _spender) public view returns (unit) {
return allowed[_owner][_spender]
}
function approve(address _s... | address was contract | ERC223ReceivingContract receiver = ERC223ReceivingContract(_to);
| 14,106,923 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
1703,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
4232,
39,
3787,
23,
4779,
9288,
8924,
5971,
273,
4232,
39,
3787,
23,
4779,
9288,
8924,
24899,
869,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/3/0x852D679179e2EA47913fC50b76bF70d8220DD51A/sources/contracts/FeeToSetter.sol | allows owner to change feeToSetter after vestingrequire(block.timestamp >= vestingEnd, 'FeeToSetter::setFeeToSetter: not time yet'); | function setFeeToSetter(address feeToSetter_) public {
require(msg.sender == owner, 'FeeToSetter::setFeeToSetter: not allowed');
IValueswapV2Factory(factory).setFeeToSetter(feeToSetter_);
}
| 5,144,522 | [
1,
4625,
348,
7953,
560,
30,
225,
5360,
3410,
358,
2549,
14036,
774,
8465,
1839,
331,
10100,
6528,
12,
2629,
18,
5508,
1545,
331,
10100,
1638,
16,
296,
14667,
774,
8465,
2866,
542,
14667,
774,
8465,
30,
486,
813,
4671,
8284,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
14667,
774,
8465,
12,
2867,
14036,
774,
8465,
67,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
16,
296,
14667,
774,
8465,
2866,
542,
14667,
774,
8465,
30,
486,
2935,
8284,
203,
3639,
467,
1972,
... |
./full_match/80001/0x21D60df173aE9FB6C68929baE578968aD5f2EFfC/sources/contracts/Gateway/ClaimGateway.sol | get list of listing id Loop and Validate expired pending claims on every listing id | function validateAlPendingClaims(ListingType _listingType, address _funder)
external
{
uint256[] memory listingIds = (_listingType == ListingType.OFFER)
? listingData.getFunderToOffers(_funder)
: coverData.getFunderToRequestId(_funder);
for (uint256 i = 0; i < li... | 9,463,449 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
666,
434,
11591,
612,
9720,
471,
3554,
7708,
4634,
11955,
603,
3614,
11591,
612,
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,
1954,
1067,
8579,
15925,
12,
19081,
559,
389,
21228,
559,
16,
1758,
389,
74,
9341,
13,
203,
3639,
3903,
203,
565,
288,
203,
3639,
2254,
5034,
8526,
3778,
11591,
2673,
273,
261,
67,
21228,
559,
422,
987,
310,
559,
18,
... |
pragma solidity ^0.4.21;
// File: contracts/ERC165.sol
interface ERC165 {
/// @notice Query if a contract implements an interface
/// @param interfaceID The interface identifier, as specified in ERC-165
/// @dev Interface identification is specified in ERC-165. This function
/// uses less than 30,000 gas.
... | * @dev Purchase the provide token in Ether @dev Reverts if token not unsold and not available to be purchased msg.sender will become the owner of the token msg.value needs to be >= to the token priceInWei @param _tokenId the KODA token ID @return true/false depending on success/ approve sender as they have paid the req... | function purchaseWithEther(uint256 _tokenId) public payable onlyUnsold(_tokenId) onlyKnownOriginOwnedToken(_tokenId) onlyAfterPurchaseFromTime(_tokenId) {
require(exists(_tokenId));
uint256 priceInWei = tokenIdToPriceInWei[_tokenId];
require(msg.value >= priceInWei);
_approvePurchaser(msg.sender, _t... | 543,168 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26552,
326,
5615,
1147,
316,
512,
1136,
632,
5206,
868,
31537,
309,
1147,
486,
16804,
1673,
471,
486,
2319,
358,
506,
5405,
343,
8905,
1234,
18,
15330,
903,
12561,
326,
3410,
434,
326,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23701,
1190,
41,
1136,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
8843,
429,
1338,
984,
87,
1673,
24899,
2316,
548,
13,
1338,
11925,
7571,
5460,
329,
1345,
24899,
2316,
548,
13,
1338,
4436,
23164,
1265,
950,
24899,
2316,
... |
pragma solidity ^0.4.18;
import 'zeppelin-solidity/contracts/ownership/Ownable.sol';
/**
* @title MasterContract
*
* MasterContract MVF for PatientDirected.io
*
* Contract handles approval and cost-listing for
* patient data requests by authorized requestors
*
*/
contract MasterContract is Ownable {
/**
* Reques... | * @dev Function to remove patient addresses from patients array and whitelist @dev Restricted to Owner within MVF scope/ | function removePatient(address patientAddress) public onlyOwner {
require(whitelists[patientAddress].patient != address(0x0));
uint patientIndex;
for (uint i = 0; i < patients.length; i++) {
if (patients[i] == patientAddress) {
patientIndex == i;
break;
}
}
patients[patientIndex] = patients[pa... | 1,003,776 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
1206,
18608,
6138,
628,
9670,
5828,
526,
471,
10734,
632,
5206,
29814,
358,
16837,
3470,
25324,
42,
2146,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1206,
22834,
1979,
12,
2867,
18608,
1887,
13,
1071,
1338,
5541,
288,
203,
202,
202,
6528,
12,
3350,
305,
292,
1486,
63,
16330,
1979,
1887,
8009,
16330,
1979,
480,
1758,
12,
20,
92,
20,
10019,
203,
202,
202,
11890,
18608... |
./full_match/5/0x2FFF51946C011FB1277dcBfA28388dA8E40F5A98/sources/project_/contracts/Sample.sol | If any account belongs to _isExcludedFromFee account then remove the fee Buy Sell | function _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater th... | 11,590,710 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
605,
9835,
348,
1165,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
... | set as dev1 wallet
| dev1Wallet = payable(0x156FEb8E76574EEAf87a1B72A4F0253b3C5052a1); | 1,661,815 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
4461,
21,
9230,
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,
377,
202,
5206,
21,
16936,
273,
8843,
429,
12,
20,
92,
28946,
8090,
70,
28,
41,
6669,
25,
5608,
9383,
12664,
11035,
69,
21,
38,
9060,
37,
24,
42,
20,
30304,
70,
23,
39,
3361,
9401,
69,
21,
1769,
282,
2,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.24;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// asser... | two hundred tokens awarded to bidder when earned
| uint constant public twoHundred = 200 * 10**18; | 12,963,027 | [
1,
4625,
348,
7953,
560,
30,
225,
2795,
366,
1074,
1118,
2430,
279,
11804,
358,
9949,
765,
1347,
425,
1303,
329,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5381,
1071,
2795,
44,
1074,
1118,
273,
4044,
380,
1728,
636,
2643,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.23;
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if '... | Crossing two of owner flowers | function breedOwn(uint256 _matronId, uint256 _sireId) external payable whenNotStopped {
require(msg.value >= autoBirthFee);
require(isOwnerOf(msg.sender, _matronId));
require(isOwnerOf(msg.sender, _sireId));
Flower storage matron = flowers[_matronId];
require(_isReadyToActio... | 12,829,719 | [
1,
4625,
348,
7953,
560,
30,
225,
19742,
310,
2795,
434,
3410,
4693,
414,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
324,
15656,
5460,
12,
11890,
5034,
389,
7373,
1949,
548,
16,
2254,
5034,
389,
87,
577,
548,
13,
3903,
8843,
429,
1347,
1248,
15294,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
3656,
25791,
14667,
1769,
203,
3639,
25... |
/*
Telegram Link: https://t.me/pronitz
Website Link: https://pronitz.com
pragma solidity ^0.8.07;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) ext... | 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");
if (success) {
return returndata;
if (returndata.length > 0) {
... | 306,973 | [
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,
2867,
1018,
16,
1731,
3778,
501,
16,
2254,
5034,
732,
77,
620,
16,
533,
3778,
9324,
13,
3238,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
2583,
12,
291,
8924,
12,
3299,
3631,
315,
1887,
30,
... |
pragma solidity ^0.4.18;
contract ReentryProtected {
// The reentry protection state mutex.
bool private reentrancy_lock = false;
// Sets and resets mutex in order to block function reentry
modifier preventReentry() {
require(!reentrancy_lock);
reentrancy_lock = true;
_;
delete reentrancy_l... | Blocks function entry if mutex is set | modifier noReentry() {
require(!reentrancy_lock);
_;
}
| 12,744,062 | [
1,
4625,
348,
7953,
560,
30,
225,
22713,
445,
1241,
309,
9020,
353,
444,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
1158,
426,
4099,
1435,
288,
203,
565,
2583,
12,
5,
2842,
313,
12514,
67,
739,
1769,
203,
565,
389,
31,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0xE135e2D385a22cad67defa497DFf913168894e55/sources/Teazers.sol | uint8 public usersCount; | uint8 public constant LAST_LEVEL = 12;
| 5,169,175 | [
1,
4625,
348,
7953,
560,
30,
2254,
28,
1071,
3677,
1380,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
28,
1071,
5381,
15612,
67,
10398,
273,
2593,
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,
-... |
pragma solidity ^0.4.21;
// Manages the puzzles generation and hashes comparing.
contract PuzzleManager
{
// Represents a generated puzzle.
struct Puzzle
{
// The unique identifier for this puzzle.
uint Id;
// The owner who generated this puzzle.
address Owner;
// Th... | Represents a generated puzzle. | {
struct Puzzle
contract PuzzleManager
{
uint Id;
address Owner;
string OriginalMetrics;
bytes32 OriginalHash;
mapping(address => bytes32) Hashes;
}
mapping(uint => Puzzle) m_puzzles;
uint m_currentId = 0;
function CreatePuzzle(string metrics) public re... | 12,607,884 | [
1,
4625,
348,
7953,
560,
30,
225,
868,
6706,
87,
279,
4374,
293,
31550,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
95,
203,
565,
1958,
453,
31550,
203,
16351,
453,
31550,
1318,
203,
565,
288,
203,
3639,
2254,
3124,
31,
203,
3639,
1758,
16837,
31,
203,
3639,
533,
19225,
5653,
31,
203,
3639,
1731,
1578,
19225,
2310,
31,
203,
3639,
2874,
12,
286... |
./partial_match/1/0xB6bf3EBA4ab600090235f4BeE5894Ae17b255E1b/sources/StrategyBarnBridgeUsdc.sol | average dollar value of vault share token
| function get_virtual_price() external view returns (uint256); | 3,678,410 | [
1,
4625,
348,
7953,
560,
30,
225,
8164,
302,
25442,
460,
434,
9229,
7433,
1147,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
67,
12384,
67,
8694,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.13;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
... | 350 (min cap) (test = 15) - crowdsale is considered success after this value
| fundingMinCapInWei = 350; | 12,674,622 | [
1,
4625,
348,
7953,
560,
30,
890,
3361,
225,
261,
1154,
3523,
13,
261,
3813,
273,
4711,
13,
300,
276,
492,
2377,
5349,
353,
7399,
2216,
1839,
333,
460,
203,
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,
5411,
22058,
2930,
4664,
382,
3218,
77,
8227,
273,
890,
3361,
31,
21821,
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: Apache-2.0
pragma solidity >=0.6.4 <0.8.0;
pragma experimental ABIEncoderV2;
import "https://github.com/vigilance91/solidarity/libraries/unsigned/uint256Constraints.sol";
import "./unitsLogic.sol";
//import "https://github.com/vigilance91/solidarity/libraries/units/unitsLogic.sol";
///
/... | function requireWeiDenomination(uint256 amount)internal pure{unitsLogic.isWeiDenomination(amount).requireFalse('cannot be denomination');} | function requireUnitsZero(
uint256 lhs,
uint256 units
)internal pure
{
requireWeiDenomination(units);
(lhs < units).requireTrue(
'funds in excess'
);
}
| 1,796,819 | [
1,
4625,
348,
7953,
560,
30,
445,
2583,
3218,
77,
8517,
362,
1735,
12,
11890,
5034,
3844,
13,
7236,
16618,
95,
7705,
20556,
18,
291,
3218,
77,
8517,
362,
1735,
12,
8949,
2934,
6528,
8381,
2668,
12892,
506,
10716,
1735,
8284,
97,
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,
2583,
7537,
7170,
12,
203,
3639,
2254,
5034,
8499,
16,
203,
3639,
2254,
5034,
4971,
203,
565,
262,
7236,
16618,
203,
565,
288,
203,
3639,
2583,
3218,
77,
8517,
362,
1735,
12,
7705,
1769,
203,
540,
203,
3639,
261,
80,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721PausableUpgradeable.sol";
import "./interfaces/IRegistrar.sol";
contract Registrar is
IRegistrar,
OwnableUpgradeable,
... | * @notice Registers a new (sub) domain @param parentId The parent domain @param name The name of the domain @param minter the minter of the new domain @param metadataUri The uri of the metadata @param royaltyAmount The amount of royalty this domain pays @param locked Whether the domain is locked or not/ Create the chil... | function registerDomain(
uint256 parentId,
string memory name,
address minter,
string memory metadataUri,
uint256 royaltyAmount,
bool locked
) external override onlyController returns (uint256) {
require(bytes(name).length > 0, "Zer0 Registrar: Empty name");
uint256 labelHash = uint... | 10,160,036 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2526,
6045,
279,
394,
261,
1717,
13,
2461,
632,
891,
11582,
1021,
982,
2461,
632,
891,
508,
1021,
508,
434,
326,
2461,
632,
891,
1131,
387,
326,
1131,
387,
434,
326,
394,
2461,
632,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1744,
3748,
12,
203,
565,
2254,
5034,
11582,
16,
203,
565,
533,
3778,
508,
16,
203,
565,
1758,
1131,
387,
16,
203,
565,
533,
3778,
1982,
3006,
16,
203,
565,
2254,
5034,
721,
93,
15006,
6275,
16,
203,
565,
1426,
8586,
... |
./full_match/1/0xB8c187Ee327a00F461bE3Ba8a409adeB22E07d77/sources/LayerPunks.sol | @notice Withdraw contract balance | function withdraw() external onlyOwner {
uint balance = address(this).balance;
require(balance > 0, "No balance");
payable(0x9EF74Ae4A3e8Ffb22020a3620121DEDf9943C322).transfer((balance * 5000)/10000);
payable(0xDeD209f8B4339b99de59857016CaF9d35322B910).transfer((balance * 50... | 16,484,290 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3423,
9446,
6835,
11013,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1435,
3903,
1338,
5541,
288,
203,
3639,
2254,
11013,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
3639,
2583,
12,
12296,
405,
374,
16,
315,
2279,
11013,
8863,
203,
540,
203,
3639,
8843,
429,
12,
20,
92,
29,
2... |
./partial_match/42/0x2113B131d823778Bcd1b478f036F327301FEF17F/sources/BudCore.sol | * @dev only owner can update autoCrackingFee/ | function setAutoGrowFee(uint256 _autoGrowingFee) external onlyOwner {
autoGrowingFee = _autoGrowingFee;
}
| 8,879,366 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1338,
3410,
848,
1089,
3656,
39,
21580,
310,
14667,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
21780,
30948,
14667,
12,
11890,
5034,
389,
6079,
30948,
310,
14667,
13,
3903,
1338,
5541,
288,
203,
3639,
3656,
30948,
310,
14667,
273,
389,
6079,
30948,
310,
14667,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IERC20Ubiquity.sol";
import "./UbiquityAlgorithmicDollarManager.sol";
import "./interfaces/ITWAPOracle.sol";
import "./BondingShareV2.sol";
import "./interfaces/IUbiquityFormula... | Withdraw LP tokens from MasterChef. send UGOV to Bonding Share holder | function withdraw(
address to,
uint256 _amount,
uint256 _bondingShareID
) external onlyBondingContract {
BondingShareInfo storage bs = _bsInfo[_bondingShareID];
require(bs.amount >= _amount, "MC: amount too high");
_updatePool();
uint256 pending = ((bs.amo... | 595,029 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
511,
52,
2430,
628,
13453,
39,
580,
74,
18,
1366,
587,
16387,
58,
358,
605,
1434,
310,
25805,
10438,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
26425,
310,
9535,
734,
203,
565,
262,
3903,
1338,
9807,
310,
8924,
288,
203,
3639,
605,
1434,
310,
9535,
966,
... |
// File: contracts/acl/IACL.sol
/*
* SPDX-License-Identitifer: MIT
*/
pragma solidity ^0.4.24;
interface IACL {
function initialize(address permissionsCreator) external;
// TODO: this should be external
// See https://github.com/ethereum/solidity/issues/4832
function hasPermission(address who,... | namespace => app id => address | contract KernelStorage {
mapping (bytes32 => mapping (bytes32 => address)) public apps;
bytes32 public recoveryVaultAppId;
}
}
| 907,551 | [
1,
4625,
348,
7953,
560,
30,
225,
1981,
516,
595,
612,
516,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14556,
3245,
288,
203,
565,
2874,
261,
3890,
1578,
516,
2874,
261,
3890,
1578,
516,
1758,
3719,
1071,
8279,
31,
203,
565,
1731,
1578,
1071,
11044,
12003,
31378,
31,
203,
97,
203,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x874B936cc69A68D4cb6f5f24aB90ba60eb376AD6/sources/BitmassExchangeToken.sol | Give the creator all initial tokens. This is set to 1000 for example. If you want your initial tokens to be X and your decimal is 5, set this value to X * 100000. (CHANGE THIS)
| balances[msg.sender] = 21000000000000000000000000000; | 3,979,382 | [
1,
4625,
348,
7953,
560,
30,
225,
22374,
326,
11784,
777,
2172,
2430,
18,
1220,
353,
444,
358,
4336,
364,
3454,
18,
971,
1846,
2545,
3433,
2172,
2430,
358,
506,
1139,
471,
3433,
6970,
353,
1381,
16,
444,
333,
460,
358,
1139,
380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3639,
324,
26488,
63,
3576,
18,
15330,
65,
273,
9035,
12648,
12648,
12648,
3784,
31,
7734,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.8.4;
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./CrownToken.sol";
/// @title Crown Capital Vault
/// @author sters.eth
/// @notice Contract sends token emissions to farms over a 5 year period
c... | * @dev Owner may intialize a new farm or set of farms 1 at a time. @param tokenAddress address of farm. @param percent 0 to 100 percent of the emssions which do to specified farm./ | function initializeFarm(address tokenAddress, uint256 percent) public onlyOwner {
require(
percent >= 0 && percent <= 100,
"Percent must be between 0 and 100"
);
farmTokens.push(tokenAddress);
farmPercents.push(percent);
}
| 15,826,364 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16837,
2026,
509,
1710,
279,
394,
284,
4610,
578,
444,
434,
10247,
959,
404,
622,
279,
813,
18,
632,
891,
1147,
1887,
1758,
434,
284,
4610,
18,
632,
891,
5551,
374,
358,
2130,
5551,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
42,
4610,
12,
2867,
1147,
1887,
16,
2254,
5034,
5551,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
5551,
1545,
374,
597,
5551,
1648,
2130,
16,
203,
5411,
315,
8410,
1297,
506,
3086,
374,
471,
2130,
... |
/// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/... | * @dev Get total locked tokens by `_poolId`./ | function totalLockedPoolTokens(uint256 _poolId)
public
view
returns (uint256 amount)
{
Pool storage pool = pools[_poolId];
uint256 l = pool.users.length;
for (uint256 i; i < l; i++) {
amount += pool.users[i].balance;
}
}
| 15,863,978 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
2078,
8586,
2430,
635,
1375,
67,
6011,
548,
8338,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
8966,
2864,
5157,
12,
11890,
5034,
389,
6011,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
3844,
13,
203,
565,
288,
203,
3639,
8828,
2502,
2845,
273,
16000,
63,
67,
6011,
548,
1553... |
./full_match/80001/0x645b4D5716373f5094eb4875EaF68c3e74bEe9a5/sources/contracts/CarbonOffsetBatches.sol | @dev Internal function that is required a previous linking with a `projectVintageTokenId`. | function _confirmRetirement(uint256 _tokenId) internal {
require(
_exists(_tokenId),
'ERC721: approved query for nonexistent token'
);
require(
nftList[_tokenId].status != RetirementStatus.Confirmed,
'Batch retirement is already confirmed'
... | 866,286 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
565,
3186,
445,
716,
353,
1931,
279,
2416,
27651,
598,
279,
1375,
4406,
58,
474,
410,
1345,
548,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
10927,
7055,
577,
475,
12,
11890,
5034,
389,
2316,
548,
13,
2713,
288,
203,
3639,
2583,
12,
203,
5411,
389,
1808,
24899,
2316,
548,
3631,
203,
5411,
296,
654,
39,
27,
5340,
30,
20412,
843,
364,
1661,
19041,
1147,
... |
./partial_match/3/0x77b12c7B54d5a4CdA274f17BcB1D064c69699cA9/sources/Marathon.sol | Danh sách vđv theo cự ly (vd: get_athletes_by_range[25] => danh sách vđv của cự ly 25 km), được cập nhật trong hàm cap_nhat_danh_sach_vdv_Cau_3 bên dưới. | mapping(uint => Athlete[]) public get_athletes_by_range;
| 5,278,034 | [
1,
4625,
348,
7953,
560,
30,
225,
463,
304,
76,
272,
132,
99,
343,
331,
133,
244,
90,
326,
83,
276,
162,
124,
114,
18519,
261,
16115,
30,
336,
67,
421,
1810,
281,
67,
1637,
67,
3676,
63,
2947,
65,
516,
302,
304,
76,
272,
132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
11890,
516,
432,
451,
1810,
73,
63,
5717,
1071,
336,
67,
421,
1810,
281,
67,
1637,
67,
3676,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.9;
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "contracts/plugins/assets/abstract/AaveOracleMixin.sol";
import "contracts/plugins/assets/abstract/CompoundOracleMixin.sol";
import "./IFacade.sol";
import "./IGnosis.sol"... | solhint-disable-next-line func-name-mixedcase | interface TestIDeployer is IDeployer {
function ENS() external view returns (string memory);
function rsr() external view returns (IERC20Metadata);
function gnosis() external view returns (IGnosis);
function comptroller() external view returns (IComptroller);
function aaveLendingPool() external ... | 15,865,233 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1326,
17,
529,
17,
19562,
3593,
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,
5831,
7766,
734,
881,
2466,
264,
353,
467,
10015,
264,
288,
203,
565,
445,
512,
3156,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
445,
3597,
86,
1435,
3903,
1476,
1135,
261,
45,
654,
39,
3462,
2277,
1769,
203,
... |
//Address: 0x658d9424da329087a60868957f9b1d1edd1d6f34
//Contract name: FornicoinCrowdsale
//Balance: 0.1 Ether
//Verification Date: 1/5/2018
//Transacion Count: 19
// CODE STARTS HERE
pragma solidity ^0.4.13;
/**
* @title FornicoinCrowdsale
* The Crowdsale contract for the Fornicoin Project.
* Read more at forni... | Withdraw team tokens after 1 year | function withdrawTeamTokens() public onlyAdmin returns (bool) {
require(now >= startICOPhaseOne + 1 years);
token.transfer(wallet, teamTokens);
return true;
}
| 2,516,275 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
5927,
2430,
1839,
404,
3286,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
8689,
5157,
1435,
1071,
1338,
4446,
1135,
261,
6430,
13,
288,
203,
565,
2583,
12,
3338,
1545,
787,
2871,
3665,
76,
448,
3335,
397,
404,
11387,
1769,
203,
203,
565,
1147,
18,
13866,
12,
19177,
16,
5927,
5157,
... |
./partial_match/1/0xaCCaaDc4F8448F5f6C6aAf1c639Ec4B8bD1A8aF4/sources/contracts/abstract/JBOperatable.sol | /********************************************************************* --------------------------- custom errors -------------------------- ****************************************************************************************************************************************** ---------------------------- modifiers --... | abstract contract JBOperatable is IJBOperatable {
error UNAUTHORIZED();
@notice
Only allows the speficied account or an operator of the account to proceed.
@param _account The account to check for.
@param _domain The domain namespace to look for an operator within.
@param _permissionIndex The... | 2,702,263 | [
1,
4625,
348,
7953,
560,
30,
342,
11125,
23490,
12146,
15392,
1679,
1334,
12146,
8567,
19756,
11125,
1644,
14,
12146,
13849,
10429,
12146,
13849,
19756,
1007,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
804,
38,
3542,
8163,
353,
467,
8877,
3542,
8163,
288,
203,
225,
555,
5019,
28383,
5621,
203,
203,
203,
565,
632,
20392,
203,
565,
5098,
5360,
326,
17785,
74,
335,
2092,
2236,
578,
392,
3726,
434,
326,
2236,
358,
1124... |
./full_match/3/0x4aFa77ACEb8Fb6dD8850b88d54CcC1C92431B2e0/sources/contracts/ViPTE20.sol | * @dev Interface of the ERC20 standard as defined in the EIP./ | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint... | 8,131,073 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
7010,
203,
565,
445,
74... |
// SPDX-License-Identifier: GL2PS License
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
/*
* The above statement is mandatory
* as it enables support for two levels
* of dynamic arrays .
*/
/*
* 1) TODO charge taxes on every transaction and keep
* them on a public map. Also display them on a
* s... | Withdraw a bid that was overbid. It is important to set this to zero because the recipient can call this function again as part of the receiving call before `transfer` returns . | function withdraw(
uint _id
)
public
payable
{
ProductWithBids storage selectedProduct = internalProducts[_id];
uint amount = selectedProduct.pendingReturns[msg.sender];
if (amount > 0) {
selectedProduct.pendingReturns[msg.sender] = 0;
msg.sen... | 5,518,454 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
279,
9949,
716,
1703,
1879,
19773,
18,
2597,
353,
10802,
358,
444,
333,
358,
3634,
2724,
326,
8027,
848,
745,
333,
445,
3382,
487,
1087,
434,
326,
15847,
745,
1865,
1375,
13866,
68,
1135... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
203,
3639,
2254,
389,
350,
203,
565,
262,
203,
565,
1071,
203,
565,
8843,
429,
203,
565,
288,
203,
3639,
8094,
1190,
38,
2232,
2502,
3170,
4133,
273,
2713,
13344,
63,
67,
350,
15533,
203,
3639,
2254,
38... |
./full_match/43114/0x39867D0526a775F11155Cb6dFDAA00B7f6A3A7B9/sources/contracts/SmartSwapV2.sol | @notice updates destination chain's supported tokens @param _dstChainId destination chain id @param _dstToken stargate supported destination stable token address @param _dstTokenDecimal token decimals for the token | function updateDstSupport(
uint16 _dstChainId,
address _dstToken,
uint8 _dstTokenDecimal
) external onlyOwner whenNotPaused {
require(_dstToken != address(0),"Invalid Address");
dstSupportDecimal[_dstChainId][_dstToken] = _dstTokenDecimal;
}
| 4,539,585 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4533,
2929,
2687,
1807,
3260,
2430,
632,
891,
389,
11057,
3893,
548,
2929,
2687,
612,
632,
891,
389,
11057,
1345,
384,
3175,
340,
3260,
2929,
14114,
1147,
1758,
632,
891,
389,
11057,
1345,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
15295,
6289,
12,
203,
3639,
2254,
2313,
389,
11057,
3893,
548,
16,
203,
3639,
1758,
389,
11057,
1345,
16,
203,
3639,
2254,
28,
389,
11057,
1345,
5749,
203,
565,
262,
3903,
1338,
5541,
1347,
1248,
28590,
288,
203,
... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import { L2OutputOracle_Initializer } from "./CommonTest.t.sol";
import { L2OutputOracle } from "../L1/L2OutputOracle.sol";
contract L2OutputOracleTest is L2OutputOracle_Initializer {
bytes32 appendedOutput1 = keccak256(abi.encode(1));
function setUp() p... | Test: latestBlockTimestamp() should return the correct value Warp to after the timestamp we'll append | function test_latestBlockTimestamp() external {
uint256 appendedTimestamp = oracle.nextTimestamp();
vm.warp(appendedTimestamp + 1);
vm.prank(sequencer);
oracle.appendL2Output(appendedOutput1, appendedTimestamp, 0, 0);
assertEq(oracle.latestBlockTimestamp(), appendedTimestamp... | 12,591,167 | [
1,
4625,
348,
7953,
560,
30,
225,
7766,
30,
4891,
1768,
4921,
1435,
1410,
327,
326,
3434,
460,
678,
11441,
358,
1839,
326,
2858,
732,
5614,
714,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
67,
13550,
1768,
4921,
1435,
3903,
288,
203,
3639,
2254,
5034,
12317,
4921,
273,
20865,
18,
4285,
4921,
5621,
203,
203,
3639,
4268,
18,
905,
84,
12,
438,
11275,
4921,
397,
404,
1769,
203,
3639,
4268,
18,
683,
2304... |
pragma solidity ^0.4.25;
/*TradersToken
www.Crypterx.com Development
www.icomastery.eu consulted
Symbol: TRDS
Version: 1.1
*/
contract DSAuthority {
function canCall(
address src, address dst, bytes4 sig
) public view returns (bool);
}
contract DSAuthEvents {
event LogSetAuthority (address indexe... | * @dev Burns a specific amount of tokens from the target address @param guy address The address which you want to send tokens from @param wad uint256 The amount of token to be burned/ | function burnfromAdmin(address guy, uint wad) public onlyAdmin {
require(guy != address(0));
_balances[guy] = sub(_balances[guy], wad);
_supply = sub(_supply, wad);
emit Burn(guy, wad);
emit Transfer(guy, address(0), wad);
}
| 11,745,117 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
605,
321,
87,
279,
2923,
3844,
434,
2430,
628,
326,
1018,
1758,
632,
891,
3058,
93,
1758,
1021,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
632,
891,
341,
361,
2254,
5034,
1021,
3844,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
2080,
4446,
12,
2867,
3058,
93,
16,
2254,
341,
361,
13,
1071,
1338,
4446,
288,
203,
3639,
2583,
12,
6891,
93,
480,
1758,
12,
20,
10019,
203,
203,
203,
3639,
389,
70,
26488,
63,
6891,
93,
65,
273,
720,
24899,
... |
pragma solidity ^0.6.6;
import "./ERC20.sol";
import "./Address.sol";
import "./BokkyPooBahsDateTimeLibrary.sol";
import "./Strings.sol";
/**
* @title ACOToken
* @dev The implementation of the ACO token.
* The token is ERC20 compliance.
*/
contract ACOToken is ERC20 {
using Address for address;
/**
... | * @dev Function to mint tokens with ERC20 deposited as collateral to an informed account. However, the minted tokens are assigned to the transaction sender. NOTE: The function only works when the token is NOT expired yet. @param account Address of the account that will be the collateral owner. @param collateralAmount A... | function mintTo(address account, uint256 collateralAmount) external {
address _collateral = collateral();
require(!_isEther(_collateral), "ACOToken::mintTo: Invalid call");
require(IERC20(_collateral).transferFrom(msg.sender, address(this), collateralAmount), "ACOToken::mintTo: Invalid trans... | 568,830 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
312,
474,
2430,
598,
4232,
39,
3462,
443,
1724,
329,
487,
4508,
2045,
287,
358,
392,
316,
7312,
2236,
18,
10724,
16,
326,
312,
474,
329,
2430,
854,
6958,
358,
326,
2492,
5793... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
774,
12,
2867,
2236,
16,
2254,
5034,
4508,
2045,
287,
6275,
13,
3903,
288,
203,
3639,
1758,
389,
12910,
2045,
287,
273,
4508,
2045,
287,
5621,
203,
3639,
2583,
12,
5,
67,
291,
41,
1136,
24899,
12910,
2045,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v1;
import "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol";
import "./interfaces/IDaiLikePermit.sol";
import "./libraries/RevertReasonForwarder.sol";
contract Permitable {
error BadPermitLength();
function _permi... | solhint-disable-next-line avoid-low-level-calls solhint-disable-next-line avoid-low-level-calls | function _permit(address token, bytes calldata permit) internal virtual {
if (permit.length > 0) {
bool success;
if (permit.length == 32 * 7) {
(success,) = token.call(abi.encodePacked(IERC20Permit.permit.selector, permit));
(success,) = token.call(abi... | 12,856,237 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
4543,
17,
821,
17,
2815,
17,
12550,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
4543,
17,
821,
17,
2815,
17,
12550,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
457,
1938,
12,
2867,
1147,
16,
1731,
745,
892,
21447,
13,
2713,
5024,
288,
203,
3639,
309,
261,
457,
1938,
18,
2469,
405,
374,
13,
288,
203,
5411,
1426,
2216,
31,
203,
5411,
309,
261,
457,
1938,
18,
2469,
422,
... |
pragma solidity ^0.4.24;
// File: contracts/Genetic.sol
// solhint-disable-next-line
pragma solidity ^0.4.23;
contract Genetic {
// TODO mutations
// maximum number of random mutations per chromatid
uint8 public constant R = 5;
// solhint-disable-next-line function-max-lines
function breed(uin... | * @dev Safe transferFrom function with aditional data attribute @param _from Address currently owning the token @param _to Address to send token to @param _tokenId ID of the token to send @param _data Data to pass along call/ solhint-disable-next-line max-line-length | function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes _data) external stopWhenHalted {
_safeTransferFromInternal(_from, _to, _tokenId, _data);
}
| 5,781,161 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
14060,
7412,
1265,
445,
598,
1261,
6457,
501,
1566,
632,
891,
389,
2080,
5267,
4551,
25022,
326,
1147,
632,
891,
389,
869,
5267,
358,
1366,
1147,
358,
632,
891,
389,
2316,
548,
1599,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4183,
5912,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
2316,
548,
16,
1731,
389,
892,
13,
3903,
2132,
9434,
44,
287,
2344,
288,
203,
3639,
389,
4626,
5912,
1265,
3061,
24899,
2080,
16,
389,
86... |
./partial_match/4/0x64fD3aea4Df3b76348a8cC9F2A18930fD6927738/sources/RAYv2.sol | can't put with other definitions since OZ proxy rules state you must keep ordering of state variables on upgrades | bytes32 internal constant ROBO_CONTROLLER_CONTRACT = keccak256("RoboController");
| 8,750,765 | [
1,
4625,
348,
7953,
560,
30,
225,
848,
1404,
1378,
598,
1308,
6377,
3241,
531,
62,
2889,
2931,
919,
1846,
1297,
3455,
9543,
434,
919,
3152,
603,
28844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1731,
1578,
2713,
5381,
6525,
5315,
67,
6067,
25353,
67,
6067,
2849,
1268,
273,
417,
24410,
581,
5034,
2932,
14444,
83,
2933,
8863,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
//Address: 0xb565726e2e44e4ae9e3ce750fc4ba8fa65e701e0
//Contract name: EthealController
//Balance: 0 Ether
//Verification Date: 11/29/2017
//Transacion Count: 6
// CODE STARTS HERE
pragma solidity ^0.4.17;
/**
* @title ERC20
* @dev ERC20 interface
*/
contract ERC20 {
function balanceOf(address who) public vie... | @dev Only before hodl is started | modifier beforeHodlStart() {
if (hodlerTimeStart == 0 || now <= hodlerTimeStart)
_;
}
| 1,808,215 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
5098,
1865,
366,
369,
80,
353,
5746,
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,
9606,
1865,
44,
369,
80,
1685,
1435,
288,
203,
3639,
309,
261,
76,
369,
749,
950,
1685,
422,
374,
747,
2037,
1648,
366,
369,
749,
950,
1685,
13,
203,
5411,
389,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.24;
import "./ERC721.sol";
import "./SupportsInterface.sol";
/// @title Compliance with ERC-721 for Su Squares
/// @dev This implementation assumes:
/// - A fixed supply of NFTs, cannot mint or burn
/// - ids are numbered sequentially starting at 1.
/// - NFTs are initially assigned to this co... | See Solidity issue #3356, it would be clearer to initialize in SuMain | uint256 private constant TOTAL_SUPPLY = 10000;
| 14,098,691 | [
1,
4625,
348,
7953,
560,
30,
225,
2164,
348,
7953,
560,
5672,
468,
3707,
4313,
16,
518,
4102,
506,
2424,
264,
358,
4046,
316,
348,
89,
6376,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
5381,
399,
19851,
67,
13272,
23893,
273,
12619,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;
contract Mobisale {
uint public userCount = 0;
//user struct for registered users
struct User {
uint serial;
uint balance;
string email;
string username;
address payable paymentAccount;
}
//... | creating new user on registeration | function createUser(
string memory _email,
string memory _username,
address payable _paymentAccount
) public {
userCount++;
users[userCount] = User(
userCount,
0,
_email,
_username,
_paymentAccount
... | 5,465,259 | [
1,
4625,
348,
7953,
560,
30,
4979,
394,
729,
603,
1744,
367,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22992,
12,
203,
1377,
203,
3639,
533,
3778,
389,
3652,
16,
203,
3639,
533,
3778,
389,
5053,
16,
203,
3639,
1758,
8843,
429,
389,
9261,
3032,
203,
565,
262,
1071,
288,
203,
3639,
729,
1380,
9904,
31,
203,
3639,
3677,
6... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
██████╗░███████╗██████╗░░█████╗░██████╗░███╗░░██╗ ░█████╗░██████╗░... | @dev Reserve Ape Kings by owner | function reserveApes(address _to, uint256 _numberOfTokens) external onlyOwner {
require(_to != address(0), "Invalid address");
uint256 supply = totalSupply();
for (uint256 i = 0; i < _numberOfTokens; i++) {
_safeMint(_to, supply + i);
}
}
| 14,801,714 | [
1,
4625,
348,
7953,
560,
30,
632,
5206,
1124,
6527,
432,
347,
1475,
899,
635,
3410,
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,
20501,
1294,
281,
12,
2867,
389,
869,
16,
2254,
5034,
389,
2696,
951,
5157,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
3631,
315,
1941,
1758,
8863,
203,
203,
3639,
2254,
5034,
14467,
273,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./PriceConsumerV3.sol";
import "./SDOToken.sol";
// Rewards are percent (rateReward) of amount stacked
// Rewards are calculated if last stak... | @notice Get uer balance for specific ERC20Token @param userAddress address of the user @param tokenAddress address of the staked token | function getUserBalance(address userAddress, address tokenAddress)
public
view
returns (uint256)
{
return _stakingUserBalance[userAddress][tokenAddress].stakedAmount;
}
| 14,042,568 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
582,
264,
11013,
364,
2923,
4232,
39,
3462,
1345,
632,
891,
729,
1887,
1758,
434,
326,
729,
632,
891,
1147,
1887,
1758,
434,
326,
384,
9477,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4735,
13937,
12,
2867,
729,
1887,
16,
1758,
1147,
1887,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
389,
334,
6159,
1299,
13937,
63,
1355,
1887,
6362,
2316... |
pragma solidity 0.4.24;
import './MarketplaceManager.sol';
import './StoreFactory.sol';
/**
* @title IStore
* @dev Interface to the stores marketplace-related
* functionality which is used by the StoreManager contract
*/
interface IStore {
function destroy() external;
function marketplaceWithdraw(uint256 _amo... | * @dev Allows the marketplace to withdraw funds from stores back to the marketplace. @param _storeAddress The address of the store from which to withdraw. @param _amount The amount of the funds to be withdrawed./ Get the current balances Assert that the new balances have changed in the expected direction after withdraw... | function withdrawFromStore
(
address _storeAddress,
uint256 _amount
)
public
onlyOwner
nonZeroAddress(_storeAddress)
nonZeroAmount(_amount)
{
IStore store = IStore(_storeAddress);
uint256 currentMarketplaceBalance = address(this).balance;
uint256 currentStoreMarketplaceBalance = store.marketplace... | 1,064,340 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
326,
29917,
358,
598,
9446,
284,
19156,
628,
9064,
1473,
358,
326,
29917,
18,
632,
891,
389,
2233,
1887,
1021,
1758,
434,
326,
1707,
628,
1492,
358,
598,
9446,
18,
632,
891,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
598,
9446,
1265,
2257,
203,
202,
12,
203,
202,
202,
2867,
389,
2233,
1887,
16,
203,
202,
202,
11890,
5034,
389,
8949,
203,
202,
13,
203,
202,
202,
482,
203,
202,
202,
3700,
5541,
203,
202,
202,
5836,
7170,
1887,
24899... |
pragma solidity ^0.4.19;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint2... | solium-disable-line mixedcase
| function __callback(bytes32 _orderId, string _result) public { | 5,910,207 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
5077,
17,
8394,
17,
1369,
7826,
3593,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1001,
3394,
12,
3890,
1578,
389,
1019,
548,
16,
533,
389,
2088,
13,
1071,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x32D48A96fA5552998F524EC72f31D732B66b4f9E/sources/contracts/registry/index.sol | New Master Address. Master Address. List Registry Address. Connectors Modules(Account Module Version => Connectors Registry Module Address). Check Modules(Account Module Version => Check Module Address). Account Modules(Account Module Version => Account Module Address). Version Count of Account Modules. | contract AddressIndex {
event LogNewMaster(address indexed master);
event LogUpdateMaster(address indexed master);
event LogNewCheck(uint indexed accountVersion, address indexed check);
event LogNewAccount(address indexed _newAccount, address indexed _connectors, address indexed _check);
address p... | 17,082,424 | [
1,
4625,
348,
7953,
560,
30,
225,
1166,
13453,
5267,
18,
13453,
5267,
18,
987,
5438,
5267,
18,
15779,
87,
25493,
12,
3032,
5924,
4049,
516,
15779,
87,
5438,
5924,
5267,
2934,
2073,
25493,
12,
3032,
5924,
4049,
516,
2073,
5924,
5267,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
5267,
1016,
288,
203,
203,
565,
871,
1827,
1908,
7786,
12,
2867,
8808,
4171,
1769,
203,
565,
871,
1827,
1891,
7786,
12,
2867,
8808,
4171,
1769,
203,
565,
871,
1827,
1908,
1564,
12,
11890,
8808,
2236,
1444,
16,
1758,
8808,
... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import { Bridge_Initializer } from "./CommonTest.t.sol";
import { StandardBridge } from "../universal/StandardBridge.sol";
import { L2StandardBridge } from "../L2/L2StandardBridge.sol";
import { CrossDomainMessenger } from "../universal/CrossDomainMessenger.sol";
... | turn alice into a contract | function test_onlyEOADepositETH() external {
vm.etch(alice, address(L1Token).code);
vm.expectRevert("Account not EOA");
vm.prank(alice);
}
| 6,440,399 | [
1,
4625,
348,
7953,
560,
30,
225,
7005,
524,
1812,
1368,
279,
6835,
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,
1842,
67,
3700,
41,
28202,
758,
1724,
1584,
44,
1435,
3903,
288,
203,
3639,
4268,
18,
1593,
12,
287,
1812,
16,
1758,
12,
48,
21,
1345,
2934,
710,
1769,
203,
203,
3639,
4268,
18,
12339,
426,
1097,
2932,
3032,
486,
512,... |
./full_match/1/0x27c283475Ed9524A43b795CDCAF9e3D177a35e00/sources/project_/contracts/CryptoPirates.sol | * @notice Reveal metadata/ | function setBaseURI(string calldata __baseURI) external onlyOwner
{
baseURI = __baseURI;
}
| 16,406,990 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
868,
24293,
1982,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
26435,
3098,
12,
1080,
745,
892,
1001,
1969,
3098,
13,
3903,
1338,
5541,
203,
565,
288,
203,
3639,
1026,
3098,
273,
1001,
1969,
3098,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than ... | * @dev Revoke oracle role from an address @param addr address/ | function delOracle(address addr)
public
onlyAdmin
{
removeRole(addr, ROLE_ORACLE);
}
| 2,189,727 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
23863,
20865,
2478,
628,
392,
1758,
632,
891,
3091,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
1464,
23601,
12,
2867,
3091,
13,
203,
565,
1071,
203,
565,
1338,
4446,
203,
225,
288,
203,
565,
1206,
2996,
12,
4793,
16,
22005,
67,
916,
2226,
900,
1769,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/80001/0xf4f036a18961f7Ab421145bac1f27f0F73BFb643/sources/contracts/Role.sol | * @dev get role name @param _roleName (string) @return role name (string)/ | function getRoleName(
string memory _roleName
) public view returns (string memory) {
return roles[_roleName].name;
}
| 5,596,775 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
336,
2478,
508,
632,
891,
389,
4615,
461,
261,
1080,
13,
632,
2463,
2478,
508,
261,
1080,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15673,
461,
12,
203,
3639,
533,
3778,
389,
4615,
461,
203,
565,
262,
1071,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
4900,
63,
67,
4615,
461,
8009,
529,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
./full_match/84531/0xd7149865d07cCfdfB10f858AFAb297A8251882Cc/sources/contracts/api/Staking.sol | @notice Stake `amount` of CAP to receive rewards | function stake(uint256 amount) external {
require(amount > 0, '!amount');
updateRewards(msg.sender);
stakingStore.incrementSupply(amount);
stakingStore.incrementBalance(msg.sender, amount);
fundStore.transferIn(cap, msg.sender, amount);
emit CAPStaked(msg.sender, ... | 11,525,636 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
934,
911,
1375,
8949,
68,
434,
29720,
358,
6798,
283,
6397,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
384,
911,
12,
11890,
5034,
3844,
13,
3903,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
11817,
8949,
8284,
203,
203,
3639,
1089,
17631,
14727,
12,
3576,
18,
15330,
1769,
203,
203,
3639,
384,
6159,
2257,
18,
15016,
3088... |
./full_match/1/0xc7DD85dd3BFb55e76fe95bBD441dAA9AA4Ac8a91/sources/gojo.sol | Enables trading for everyone | function SetupEnableTrading() public onlyTeam{
require(tradingEnabled&&whiteListTrading);
whiteListTrading=false;
}
| 3,103,111 | [
1,
4625,
348,
7953,
560,
30,
1374,
1538,
1284,
7459,
364,
3614,
476,
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,
10939,
8317,
1609,
7459,
1435,
1071,
1338,
8689,
95,
203,
3639,
2583,
12,
313,
14968,
1526,
10,
10,
14739,
682,
1609,
7459,
1769,
203,
3639,
27859,
1609,
7459,
33,
5743,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,... |
./partial_match/1/0x563FbaCaCd79Ec08b28bA772AfeF707412307D62/sources/src/v0.8/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/structs/EnumerableMap.sol | * @dev Library for managing an enumerable variant of Solidity's type. Maps have the following properties: - Entries are added, removed, and checked for existence in constant time (O(1)). - Entries are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { using EnumerableMap for Enumerab... | library EnumerableMap {
using EnumerableSet for EnumerableSet.Bytes32Set;
struct Bytes32ToBytes32Map {
EnumerableSet.Bytes32Set _keys;
mapping(bytes32 => bytes32) _values;
}
function set(
Bytes32ToBytes32Map storage map,
bytes32 key,
bytes32 value
) intern... | 16,005,096 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
18694,
364,
30632,
392,
14873,
5437,
434,
348,
7953,
560,
1807,
618,
18,
19837,
1240,
326,
3751,
1790,
30,
300,
19411,
854,
3096,
16,
3723,
16,
471,
5950,
364,
15782,
316,
5381,
813,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
6057,
25121,
863,
288,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
2160,
1578,
694,
31,
203,
203,
203,
203,
565,
1958,
5985,
1578,
21033,
1578,
863,
288,
203,
3639,
6057,
25121,
694,
18,
2160,
1578,
694,
3... |
// File: @openzeppelin\contracts\token\ERC20\IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view ret... | set sakePerBlock phase II yield farming | function setSakePerBlockYieldFarming(uint256 _sakePerBlockYieldFarming, bool _withUpdate) public {
require(msg.sender == admin, "yield:Call must come from admin.");
if (_withUpdate) {
massUpdatePools();
}
sakePerBlockYieldFarming = _sakePerBlockYieldFarming;
}
| 5,908,913 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
272,
911,
2173,
1768,
6855,
23076,
2824,
284,
4610,
310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13928,
911,
2173,
1768,
16348,
42,
4610,
310,
12,
11890,
5034,
389,
87,
911,
2173,
1768,
16348,
42,
4610,
310,
16,
1426,
389,
1918,
1891,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3981,
16,
315,
23604,
... |
//Address: 0x642ce99aad0ccc6fed7930117b217a18ce4b4229
//Contract name: FutouristCrowdsale
//Balance: 0 Ether
//Verification Date: 2/20/2018
//Transacion Count: 1421
// CODE STARTS HERE
/*
Copyright 2017 Cofound.it.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file exce... | If there were any issue/attach with refund owner can withdraw eth at the end for manual recovery | function withdrawRemainingBalanceForManualRecovery() public onlyOwner{
}
| 12,862,265 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
1915,
4591,
1281,
5672,
19,
7331,
598,
16255,
3410,
848,
598,
9446,
13750,
622,
326,
679,
364,
11297,
11044,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
11429,
13937,
1290,
25139,
11548,
1435,
1071,
1338,
5541,
95,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
* Copyright 2017-2020, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.3;
import "../openzeppelin-solidity/SafeMath.sol";
// supports a single EMA calculated for the inheriting contract
contract EMACollector {
//using SafeMath for uint256;
u... | averaging periods for EMA calculation
| uint256 public emaPeriods; | 12,711,110 | [
1,
4625,
348,
7953,
560,
30,
225,
23713,
5755,
12777,
364,
512,
5535,
11096,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
801,
69,
30807,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
/**
* Helper contract to test internal functions of the KeyManager
*/
import "../KeyManager/KeyManager.sol";
contract KeyManagerHelper is KeyManager {
/* solhint-disable no-empty-blocks */
constructor(address _account) KeyManager(_account) {}
... | solhint-disable no-empty-blocks */ | constructor(address _account) KeyManager(_account) {}
| 7,312,553 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
1158,
17,
5531,
17,
7996,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
389,
4631,
13,
1929,
1318,
24899,
4631,
13,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.5.6;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../libraries/SignedSafeMath.sol";
import "../libraries/SafeCast.sol";
import "../codes/Ownable.sol";
import "... | @notice Mapping address => indexed | mapping(address => uint256) private _tIdOf;
| 6,389,779 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
9408,
1758,
516,
8808,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
389,
88,
548,
951,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-23
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.6.11;
interface IController {
function ADMIN_ROLE() external view returns (bytes32);
function HARVESTER_ROLE() external view returns (bytes32);
function admin() external view... | / available <= _amount | function withdraw(uint _amount) external override onlyAuthorized {
require(_amount > 0, "withdraw = 0");
uint available = _withdraw(_amount);
if (available > 0) {
_decreaseDebt(available);
}
}
| 2,068,939 | [
1,
4625,
348,
7953,
560,
30,
342,
2319,
1648,
389,
8949,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
12,
11890,
389,
8949,
13,
3903,
3849,
1338,
15341,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
315,
1918,
9446,
273,
374,
8863,
203,
3639,
2254,
2319,
273,
389,
1918,
9446,
24899,
8949,
1769,
203,
3639,
... |
pragma solidity 0.4.24;
pragma experimental ABIEncoderV2;
//Truffle Imports
import "@chainlink/contracts/src/v0.4/ChainlinkClient.sol";
import "@chainlink/contracts/src/v0.4/vendor/Ownable.sol";
import "@chainlink/contracts/src/v0.4/interfaces/LinkTokenInterface.sol";
import "@chainlink/contracts/src/v0.4/interfaces/A... | Finally, check first bye in the string for the location variables. If it was a '-', then multiply location coordinate by -1first get the first byte of each location coordinate string | longitudeBytes = bytes(splitResults[2]);
| 2,512,038 | [
1,
4625,
348,
7953,
560,
30,
15768,
16,
866,
1122,
635,
73,
316,
326,
533,
364,
326,
2117,
3152,
18,
971,
518,
1703,
279,
2400,
2187,
1508,
10194,
2117,
7799,
635,
300,
21,
3645,
336,
326,
1122,
1160,
434,
1517,
2117,
7799,
533,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
9192,
2160,
273,
1731,
12,
4939,
3447,
63,
22,
19226,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x622a1C6a0f49594f6BA11F0B8cE8706F1f14cc8d/sources/contracts/Raffle.sol | * @dev Cancels raffle before it has started. Only raffle `owner` can do it and it is needed in case raffle was created incorrectly. Requirements: - must be in WaitingForNFT or WaitingForStart state/ | function cancelBeforeStart() external onlyOwner {
require(
_state == State.WaitingForNFT || _state == State.WaitingForStart,
"Must be in WaitingForNFT or WaitingForStart"
);
_state = State.Cancelled;
_cancelTimestamp = block.timestamp;
}
| 8,321,576 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10347,
87,
767,
1403,
298,
1865,
518,
711,
5746,
18,
5098,
767,
1403,
298,
1375,
8443,
68,
848,
741,
518,
471,
518,
353,
3577,
316,
648,
767,
1403,
298,
1703,
2522,
25621,
18,
29076,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
3755,
4649,
1685,
1435,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
389,
2019,
422,
3287,
18,
15946,
1290,
50,
4464,
747,
389,
2019,
422,
3287,
18,
15946,
1290,
1685,
16,
203,
5411,
315,
10136,
506,
316,
2333... |
./partial_match/1/0xCc756C8F608bDe15C107daCFeFb22C9c5954cE60/sources/MasterChef.sol | Update dev address by the previous dev. | function dev(address _user) public {
require(msg.sender == __user, "dev: wut?");
__user = _user;
}
| 3,962,164 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
4461,
1758,
635,
326,
2416,
4461,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4461,
12,
2867,
389,
1355,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1001,
1355,
16,
315,
5206,
30,
341,
322,
7225,
1769,
203,
3639,
1001,
1355,
273,
389,
1355,
31,
203,
565,
289,
203,
203,
2,
-100,
... |
./partial_match/1/0xC7176620daf49A39a17FF9A6C2DE1eAA6033EE94/sources/src/v0.8/ccip/AggregateRateLimiter.sol | @notice Sets the rate limited config. @param config The new rate limiter config. @dev should only be callable by the owner or token limit admin. | function setRateLimiterConfig(RateLimiter.Config memory config) external onlyAdminOrOwner {
s_rateLimiter._setTokenBucketConfig(config);
}
| 15,916,673 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11511,
326,
4993,
13594,
642,
18,
632,
891,
642,
1021,
394,
4993,
25057,
642,
18,
632,
5206,
1410,
1338,
506,
4140,
635,
326,
3410,
578,
1147,
1800,
3981,
18,
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,
225,
445,
444,
17184,
264,
809,
12,
17184,
264,
18,
809,
3778,
642,
13,
3903,
1338,
4446,
1162,
5541,
288,
203,
565,
272,
67,
5141,
22329,
6315,
542,
1345,
4103,
809,
12,
1425,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100... |
./full_match/1/0xE7dB3E6E505ACbF3a81F850315f866C63ADB0F8B/sources/contracts/DogeX.sol | send fees to their recipients | if (swapEthBalance > 0) {
if (ownerFeePercent > 0) {
uint256 ownerFeeETHAmount = swapEthBalance / (devFeePercent + marketingFeePercent + ownerFeePercent) * (ownerFeePercent);
payable(ownerFeeRecipient).transfer(ownerFeeETHAmount);
}
if (marketi... | 2,977,921 | [
1,
4625,
348,
7953,
560,
30,
225,
1366,
1656,
281,
358,
3675,
12045,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
22270,
41,
451,
13937,
405,
374,
13,
288,
203,
5411,
309,
261,
8443,
14667,
8410,
405,
374,
13,
288,
203,
7734,
2254,
5034,
3410,
14667,
1584,
44,
6275,
273,
7720,
41,
451,
13937,
342,
261,
5206,
14667,
8410,
397,... |
pragma solidity ^0.4.19;
//
/* CONTRACT */
contract SafeMath {
function safeAdd(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function safeSub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function saf... | _____________________________________________________________ return payment to buyer | function _buyCoins(address buyer, uint payment) internal returns(bool success, uint retPayment) {
msgSndr[buyer] = payment;
ICO ico = ICO(_getIcoAddr() );
require( payment > 0 );
bool icosuccess; uint tknsBuyAppr;
(icosuccess, tknsBuyAppr, retPayment ) = ico.... | 15,191,705 | [
1,
4625,
348,
7953,
560,
30,
389,
21157,
21157,
21157,
12214,
7198,
327,
5184,
358,
27037,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
70,
9835,
39,
9896,
12,
2867,
27037,
16,
2254,
5184,
13,
2713,
1135,
12,
6430,
2216,
16,
2254,
325,
6032,
13,
288,
7010,
203,
3639,
1234,
10461,
3069,
63,
70,
16213,
65,
273,
5184,
31,
203,
203,
3639,
467,
3865,
... |
/*
Copyright 2020 ZeroEx Intl.
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 Deploy the `ZeroEx` contract with the minimum feature set, transfers ownership to `owner`, then self-destructs. Only callable by `deployer` set in the contstructor. @param owner The owner of the contract. @return zeroEx The deployed and configured `ZeroEx` contract. Must be called by the allowed deploye... | function deploy(address payable owner) public virtual returns (ZeroEx zeroEx) {
require(msg.sender == deployer, "InitialMigration/INVALID_SENDER");
zeroEx = new ZeroEx();
IBootstrap(address(zeroEx)).bootstrap(
address(this),
abi.encodeWithSelector(this.bootstrap.sel... | 7,278,647 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
7406,
326,
1375,
7170,
424,
68,
6835,
598,
326,
5224,
2572,
444,
16,
1377,
29375,
23178,
358,
1375,
8443,
9191,
1508,
365,
17,
5489,
8813,
87,
18,
1377,
5098,
4140,
635,
1375,
12411,
264,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7286,
12,
2867,
8843,
429,
3410,
13,
1071,
5024,
1135,
261,
7170,
424,
3634,
424,
13,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
7286,
264,
16,
315,
4435,
10224,
19,
9347,
67,
1090,
18556,
8863,
203,
203,
3639,
3... |
./full_match/8453/0xC9eaaf81430547639fF16292697686d749d347BD/sources/@axelar-network/axelar-gmp-sdk-solidity/contracts/utils/Ownable.sol | * @notice Internal function to transfer ownership of the contract to a new account `newOwner`. @dev Called in the constructor to set the initial owner. @param newOwner The address to transfer ownership to/ | function _transferOwnership(address newOwner) internal virtual {
if (newOwner == address(0)) revert InvalidOwnerAddress();
emit OwnershipTransferred(newOwner);
assembly {
sstore(_OWNER_SLOT, newOwner)
sstore(_OWNERSHIP_TRANSFER_SLOT, 0)
}
}
| 11,565,183 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3186,
445,
358,
7412,
23178,
434,
326,
6835,
358,
279,
394,
2236,
1375,
2704,
5541,
8338,
632,
5206,
11782,
316,
326,
3885,
358,
444,
326,
2172,
3410,
18,
632,
891,
394,
5541,
1021,
1758... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
13866,
5460,
12565,
12,
2867,
394,
5541,
13,
2713,
5024,
288,
203,
3639,
309,
261,
2704,
5541,
422,
1758,
12,
20,
3719,
15226,
1962,
5541,
1887,
5621,
203,
203,
3639,
3626,
14223,
9646,
5310,
1429,
4193,
12,
2704,
... |
./full_match/137/0x7cf2E30cA99410c03eed4B29e8909BbC0A0D60bC/sources/Users/rachel/dev/goodghosting/goodghosting-smart-contracts/contracts/GoodGhosting.sol | users pays dai in to the smart contract, which he pre-approved to spend the DAI for him convert DAI to aDAI using the lending pool this doesn't make sense since we are already transferring SECURITY NOTE: Interacting with the external contracts should be the last action in the logic to avoid re-entracy attacks. Re-entr... | function _transferDaiToContract() internal {
require(
daiToken.allowance(msg.sender, address(this)) >= segmentPayment,
"You need to have allowance to do transfer DAI on the smart contract"
);
uint256 currentSegment = getCurrentSegment();
players[msg.sender].... | 3,745,808 | [
1,
4625,
348,
7953,
560,
30,
225,
3677,
293,
8271,
5248,
77,
316,
358,
326,
13706,
6835,
16,
1492,
3904,
675,
17,
25990,
358,
17571,
326,
463,
18194,
364,
366,
381,
1765,
463,
18194,
358,
279,
9793,
45,
1450,
326,
328,
2846,
2845,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13866,
40,
10658,
774,
8924,
1435,
2713,
288,
203,
3639,
2583,
12,
203,
5411,
5248,
77,
1345,
18,
5965,
1359,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3719,
1545,
3267,
6032,
16,
203,
5411,
315,
6225,
1608,
358,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-01
*/
// Sources flattened with hardhat v2.9.1 https://hardhat.org
// File @openzeppelin/contracts/utils/[email protected]
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides in... | * @dev Get the characterSheet type for a specific tokenId/ | function tokenCharacterSheetType(uint256 tokenId) public view returns (string memory) {
if (!_exists(tokenId)) revert CharacterSheetTypeQueryForNonexistentToken();
return characterSheetTypes[_tokenIdCharacterSheetTypes[tokenId]].name;
}
| 2,328,166 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
326,
3351,
8229,
618,
364,
279,
2923,
1147,
548,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
7069,
8229,
559,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
309,
16051,
67,
1808,
12,
2316,
548,
3719,
15226,
6577,
8229,
559,
1138,
1290,
3989,
19041,
1345,
5621,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2022-02-01
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS ... | * @dev See {IERC721Metadata-name}./ | function name() public view virtual override returns (string memory) {
return _name;
}
| 2,096,804 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
2277,
17,
529,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
508,
1435,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
2463,
389,
529,
31,
203,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.23;
// * dice2.win - fair games that pay Ether.
// * Ethereum smart contract, deployed at 0xD1CEeee3ecFff60d9532C37c9d24f68cA0E96453
// * Uses hybrid commit-reveal + block hash random number generation that is immune
// to tampering by players, house and miners. Apart from being fully transparen... | Wager amount in wei. Modulo of a game. Number of winning outcomes, used to compute winning payment (* modulo/rollUnder), and used instead of mask for games with modulo > MAX_MASK_MODULO. Block number of placeBet tx. Bit mask representing winning bet outcomes (see MAX_MASK_MODULO comment). Address of a gambler, used to... | struct Bet {
uint amount;
uint8 modulo;
uint8 rollUnder;
uint40 placeBlockNumber;
uint40 mask;
address gambler;
}
event Payment(address indexed _beneficiary, uint amount);
event JackpotPayment(address indexed _beneficiary, uint amount);
| 14,556,585 | [
1,
4625,
348,
7953,
560,
30,
225,
678,
6817,
3844,
316,
732,
77,
18,
3431,
26478,
434,
279,
7920,
18,
3588,
434,
5657,
2093,
29867,
16,
1399,
358,
3671,
5657,
2093,
5184,
261,
14,
26109,
19,
2693,
14655,
3631,
471,
1399,
3560,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
605,
278,
288,
203,
3639,
2254,
3844,
31,
203,
3639,
2254,
28,
26109,
31,
203,
3639,
2254,
28,
5824,
14655,
31,
203,
3639,
2254,
7132,
3166,
1768,
1854,
31,
203,
3639,
2254,
7132,
3066,
31,
203,
3639,
1758,
314,
2536,
... |
// SPDX-License-Identifier: MIT-open-group
pragma solidity ^0.8.11;
library BaseParserLibraryErrorCodes {
// BaseParserLibrary error codes
bytes32 public constant BASEPARSERLIB_OFFSET_PARAMETER_OVERFLOW = "1000"; // "BaseParserLibrary: An overflow happened with the offset parameter!"
bytes32 public constan... | "BaseParserLibrary: An overflow happened with the offset parameter!"
| bytes32 public constant BASEPARSERLIB_OFFSET_PARAMETER_OVERFLOW = "1000"; | 12,813,509 | [
1,
4625,
348,
7953,
560,
30,
225,
315,
2171,
2678,
9313,
30,
1922,
9391,
17497,
598,
326,
1384,
1569,
4442,
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,
1731,
1578,
1071,
5381,
10250,
30692,
14484,
67,
11271,
67,
9819,
67,
12959,
17430,
273,
315,
18088,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0xD6DFa076fd8Ee091bAEd9fC89D23CB2378D43DF2/sources/contracts/FraudVRF.sol | Depends on the number of requested values that you want sent to the fulfillRandomWords() function. Test and adjust this limit based on the network that you select, the size of the request, and the processing of the callback request in the fulfillRandomWords() function. | uint32 callbackGasLimit;
| 3,111,547 | [
1,
4625,
348,
7953,
560,
30,
225,
4019,
5839,
603,
326,
1300,
434,
3764,
924,
716,
1846,
2545,
3271,
358,
326,
22290,
8529,
7363,
1435,
445,
18,
7766,
471,
5765,
333,
1800,
2511,
603,
326,
2483,
716,
1846,
2027,
16,
326,
963,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
2254,
1578,
1348,
27998,
3039,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.0;
import "./BlocksportTreasuryNode.sol";
import "./BlocksportAdminRole.sol";
import "./NFTMarketCore.sol";
import "./SendValueWithFallbackWithdraw.sol";
import "./NFTMarketCreators.sol";
import "./NFTMarketFees.sol";
import "./NFTMarketAuction.sol";
... | * @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor... | library SafeMathUpgradeableExchange {
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
function trySub(uint256 a, uint256 b)
internal
pure
... | 13,623,411 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4266,
10422,
1879,
348,
7953,
560,
1807,
30828,
5295,
598,
3096,
9391,
4271,
18,
27443,
5295,
316,
348,
7953,
560,
2193,
603,
9391,
18,
1220,
848,
17997,
563,
316,
22398,
16,
2724,
5402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
10477,
10784,
429,
11688,
288,
203,
565,
445,
775,
986,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
6430,
16,
2254,
5034,
13,
203,
203,
565,
288,
203,
3639... |
./full_match/11155111/0x31a96268292a82e754f7De37C0B6e2517a183eA1/sources/contracts/Contract.sol | Struct to represent a product | contract SupplyChain {
pragma solidity ^0.8.9;
struct Product {
uint id;
string name;
uint quantity;
address owner;
address[] history;
}
Product[] public products;
event ProductAdded(uint id, string name, uint quantity, address owner);
func... | 3,800,354 | [
1,
4625,
348,
7953,
560,
30,
225,
7362,
358,
2406,
279,
3017,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3425,
1283,
3893,
288,
203,
377,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
29,
31,
203,
565,
1958,
8094,
288,
203,
3639,
2254,
612,
31,
203,
3639,
533,
508,
31,
203,
3639,
2254,
10457,
31,
203,
3639,
1758,
3410,
... |
./full_match/1313161554/0x559f7aFc3312Ec94A8cc0dd6275716c68d345787/sources/contracts/library/FlowLimiter.sol | mapping (user -> transfer direction -> user quota info) | mapping(address => mapping(FlowDirection => QuotaInfo)) public userQuotaMap;
| 13,232,972 | [
1,
4625,
348,
7953,
560,
30,
225,
2874,
261,
1355,
317,
7412,
4068,
317,
729,
13257,
1123,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2874,
12,
5249,
8212,
516,
4783,
25441,
966,
3719,
1071,
729,
10334,
863,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0x7aafF111c6F9acc4a7f0BA45E735d2ACbe980579/sources/contracts/Villa.sol | @dev Moves `value` Villa token from caller's account to account (`to`), after which a call is executed to an ERC677-compliant contract with the `data` parameter. A transfer to `address(0)` triggers an ETH withdraw matching the sent Villa token in favor of caller. Emits {Transfer} event. Returns boolean value indicatin... | function transferAndCall(address to, uint value, bytes calldata data) external override returns (bool) {
require(to != address(0) || to != address(this));
uint256 balance = balanceOf[msg.sender];
require(balance >= value, "Villa: transfer amount exceeds balance");
balanceOf[msg.sen... | 9,445,929 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
490,
10829,
1375,
1132,
68,
776,
10745,
1147,
628,
4894,
1807,
2236,
358,
2236,
21863,
869,
68,
3631,
1839,
1492,
279,
745,
353,
7120,
358,
392,
4232,
39,
26,
4700,
17,
832,
18515,
6835,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
1876,
1477,
12,
2867,
358,
16,
2254,
460,
16,
1731,
745,
892,
501,
13,
3903,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
13,
747,
358,
480,
1758,
12,
2211,
10019,
203,
203,
363... |
pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
if(a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns(u... | var Tab = BJJtable[_n][_n2]; | function ArJoust(uint256 _n, uint256 _n2) public view returns(uint256){
return BJJtable[_n][_n2].CoincidNum;
}
string public Ast;
string public Bst;
string public Cst;
uint256 public captcha = 0;
uint public gasprice = tx.gasprice;
uint public blockdif = block.difficult... | 886,541 | [
1,
4625,
348,
7953,
560,
30,
569,
9483,
273,
605,
46,
46,
2121,
63,
67,
82,
6362,
67,
82,
22,
15533,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1201,
46,
83,
641,
12,
11890,
5034,
389,
82,
16,
2254,
5034,
389,
82,
22,
13,
1071,
1476,
1135,
12,
11890,
5034,
15329,
203,
3639,
327,
605,
46,
46,
2121,
63,
67,
82,
6362,
67,
82,
22,
8009,
27055,
13478,
2578,
31,
... |
./full_match/7700/0x0271984e4cfA2A0f02664baACD551CcFCC9920E8/sources/contracts/bridge/wrappers/swap/CantoSwapWrapper.sol | * @notice Wrapper for ISaddle.getToken() @param index the index of the token @return token address of the token at given index/ | function getToken(uint8 index) external pure returns (IERC20 token) {
token = _getToken(index);
require(address(token) != address(0), "Out of range");
}
\*╚══════════════════════════════════════════════════════════════════════╝*/
| 4,652,856 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
18735,
364,
4437,
1289,
298,
18,
588,
1345,
1435,
632,
891,
770,
377,
326,
770,
434,
326,
1147,
632,
2463,
1147,
565,
1758,
434,
326,
1147,
622,
864,
770,
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,
1,
1,
0,
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,
9162,
12,
11890,
28,
770,
13,
3903,
16618,
1135,
261,
45,
654,
39,
3462,
1147,
13,
288,
203,
3639,
1147,
273,
389,
588,
1345,
12,
1615,
1769,
203,
3639,
2583,
12,
2867,
12,
2316,
13,
480,
1758,
12,
20,
3631,
315,
11... |
./full_match/4/0xe9a5Fe6aaC4aBa34Fa9200331dC08D21447FBE2B/sources/contracts/RewardToken.sol | CONSTANTS VARIABLES* @notice Mapping used for store the URI of every token/ FUNCTIONS* @notice Constructor function that initialice the name and symbol of the token/ | function initialize(uint256 _supply) public initializer {
__ERC20_init('RewardToken', 'RT');
__AccessControl_init();
_setupRole(ADMIN_ROLE, msg.sender);
cost = 0.001 ether;
recipientAddress = msg.sender;
_mint(msg.sender, _supply);
}
| 13,338,337 | [
1,
4625,
348,
7953,
560,
30,
225,
24023,
55,
22965,
55,
14,
225,
632,
20392,
9408,
1399,
364,
1707,
326,
3699,
434,
3614,
1147,
19,
13690,
55,
14,
225,
632,
20392,
11417,
445,
716,
2172,
1812,
326,
508,
471,
3273,
434,
326,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
11890,
5034,
389,
2859,
1283,
13,
1071,
12562,
288,
203,
3639,
1001,
654,
39,
3462,
67,
2738,
2668,
17631,
1060,
1345,
2187,
296,
12185,
8284,
203,
3639,
1001,
16541,
67,
2738,
5621,
203,
3639,
389,
8401,
2996,
... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;
import "./OrgV1.sol";
interface SafeFactory {
function createProxy(address masterCopy, bytes memory data) external returns (Safe);
}
interface Resolver {
function multicall(bytes[] calldata data) external returns(bytes[] memory results);
fu... | Registers a name that is owned by this contract, and reclaims it by transfering it back to the owner. This is useful in emergency situations when a commitment was created with this contract as the owner, but completing the flow and creating an org is not desirable. @param registrar Address of the Radicle registrar. @p... | function registerAndReclaim(
Registrar registrar,
bytes32 parent,
string memory name,
uint256 salt,
address owner
) public {
ENS ens = ENS(registrar.ens());
bytes32 ownerDigest = redeemCommitment(name, salt);
require(keccak256(abi.encodePacked(own... | 13,122,033 | [
1,
4625,
348,
7953,
560,
30,
225,
2526,
6045,
279,
508,
716,
353,
16199,
635,
333,
6835,
16,
471,
283,
28979,
518,
635,
7412,
310,
518,
1473,
358,
326,
3410,
18,
1220,
353,
5301,
316,
801,
24530,
28474,
1347,
279,
23274,
1703,
2522,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
1876,
426,
14784,
12,
203,
3639,
2526,
3337,
297,
17450,
297,
16,
203,
3639,
1731,
1578,
982,
16,
203,
3639,
533,
3778,
508,
16,
203,
3639,
2254,
5034,
4286,
16,
203,
3639,
1758,
3410,
203,
565,
262,
1071,
288,
... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | ===> false not already participate to the seed funding
| addAirline.funded = funded; | 2,497,844 | [
1,
4625,
348,
7953,
560,
30,
757,
34,
629,
486,
1818,
30891,
340,
358,
326,
5009,
22058,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
29752,
1369,
18,
12125,
785,
273,
9831,
785,
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,
-... |
./partial_match/1/0xa819c79b2559AC4E974D4A685063B3f828F47beB/sources/McdWithdraw.sol | @inheritdoc ActionBase | function actionType() public override pure returns (uint8) {
return uint8(ActionType.STANDARD_ACTION);
}
| 9,306,782 | [
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,
1301,
559,
1435,
1071,
3849,
16618,
1135,
261,
11890,
28,
13,
288,
203,
3639,
327,
2254,
28,
12,
26995,
18,
882,
18264,
67,
12249,
1769,
203,
565,
289,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-02-17
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
// Part: OpenZeppelin/[email protected]/Context
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are gen... | @dev Returns the maximum amount of rewards the user can get, when considering the max token cap @param calculatedRewards The rewards the user would receive, if there were no token cap @return How much the owner can claim | function _getMaximumRewards(uint256 calculatedRewards) internal view returns(uint256) {
uint256 totalCellAvailable = MAX_CELL - totalSupply();
return totalCellAvailable > calculatedRewards ? calculatedRewards : totalCellAvailable;
}
| 2,204,237 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
326,
4207,
3844,
434,
283,
6397,
326,
729,
848,
336,
16,
1347,
24453,
326,
943,
1147,
3523,
632,
891,
8894,
17631,
14727,
1021,
283,
6397,
326,
729,
4102,
6798,
16,
309,
1915,
4591,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
13528,
17631,
14727,
12,
11890,
5034,
8894,
17631,
14727,
13,
2713,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
2078,
4020,
5268,
273,
4552,
67,
27752,
300,
2078,
3088,
1283,
5621,
203,
3639,
32... |
pragma solidity ^0.6.6;
pragma experimental ABIEncoderV2;
import './Ownable.sol';
import './SafeMath.sol';
import './Address.sol';
import './ACONameFormatter.sol';
import './ACOAssetHelper.sol';
import './ERC20.sol';
import './IACOPool.sol';
import './IACOFactory.sol';
import './IACOStrategy.sol';
import './IACOToken.... | * @dev Function to quote an ACO token swap. @param isBuying True whether it is quoting to buy an ACO token, otherwise it is quoting to sell an ACO token. @param acoToken Address of the ACO token. @param tokenAmount Amount of ACO tokens to swap. @return The swap price, the protocol fee charged on the swap, and the under... | function quote(bool isBuying, address acoToken, uint256 tokenAmount) open public override view returns(uint256, uint256, uint256) {
(uint256 swapPrice, uint256 protocolFee, uint256 underlyingPrice,) = _internalQuote(isBuying, acoToken, tokenAmount);
return (swapPrice, protocolFee, underlyingPrice);
... | 48,853 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
3862,
392,
432,
3865,
1147,
7720,
18,
632,
891,
27057,
9835,
310,
1053,
2856,
518,
353,
29911,
358,
30143,
392,
432,
3865,
1147,
16,
3541,
518,
353,
29911,
358,
357,
80,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3862,
12,
6430,
27057,
9835,
310,
16,
1758,
1721,
83,
1345,
16,
2254,
5034,
1147,
6275,
13,
1696,
1071,
3849,
1476,
1135,
12,
11890,
5034,
16,
2254,
5034,
16,
2254,
5034,
13,
288,
203,
3639,
261,
11890,
5034,
7720,
5147... |
// Copyright (c) 2021 - for information on the respective copyright owner see the NOTICE file and/or the repository https://github.com/boschresearch/open-eot-agents.
//
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.4;
import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol";
import "../contra... | initial test for not existent topic adding new endpoint to topicchecking new endpoint | function testAddService() public {
ServiceDirectory servDir = new ServiceDirectory();
string memory topic = "testtopic1";
string memory endpoint = "myendpoint1";
string[] memory result = servDir.getServiceEndpoints(topic);
Assert.equal(result.length, 0, "should be empty");
... | 879,611 | [
1,
4625,
348,
7953,
560,
30,
225,
2172,
1842,
364,
486,
30364,
3958,
6534,
394,
2494,
358,
3958,
24609,
394,
2494,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
986,
1179,
1435,
1071,
288,
203,
3639,
1956,
2853,
13515,
1621,
273,
394,
1956,
2853,
5621,
203,
3639,
533,
3778,
3958,
273,
315,
3813,
10476,
21,
14432,
203,
3639,
533,
3778,
2494,
273,
315,
4811,
8003,
21,
14432,
... |
./full_match/80001/0x5828C287320288e130740ed538f3852fAD13995D/sources/contracts/oracles/template/OracleManagerFixedEpoch.sol | TODO: document this function TODO worst case if we miss tons of updates, this might run out of gas. Need to have a clearing function TODO possibly (may be worse) optimize by saving as state variable in epochInfo | function getOracleInfoForSystemStateUpdate(
uint32 _latestExecutedEpochIndex,
uint80 _previousExecutionPriceOracleIdentifier,
uint32 _previousEpochEndTimestamp,
uint256 _numberOfUpdatesToTryFetch
)
public
view
virtual
returns (
uint32 currentEpochTimestamp,
int256 previou... | 846,094 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
1668,
333,
445,
2660,
22952,
648,
309,
732,
12543,
268,
7008,
434,
4533,
16,
333,
4825,
1086,
596,
434,
16189,
18,
12324,
358,
1240,
279,
29820,
445,
2660,
10016,
261,
24877,
506,
14591,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
17971,
16873,
966,
1290,
3163,
1119,
1891,
12,
203,
565,
2254,
1578,
389,
13550,
23839,
14638,
1016,
16,
203,
565,
2254,
3672,
389,
11515,
3210,
5147,
23601,
3004,
16,
203,
565,
2254,
1578,
389,
11515,
14638,
1638,
4921,
... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.0;
import './interfaces/IBEP20.sol';
import './interfaces/IProject.sol';
import './libraries/SafeMath.sol';
contract Project is IProject {
using SafeMath for uint256;
struct Proposal {
string _proposal_meta;
uint256 ... | make sure to check proposals passed deadline
| check_proposal(i); | 5,366,534 | [
1,
4625,
348,
7953,
560,
30,
225,
1221,
3071,
358,
866,
450,
22536,
2275,
14096,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
866,
67,
685,
8016,
12,
77,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.23;
// File: ../ethereum-api/oraclizeAPI_0.5.sol
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | * @dev Allow a wallet to claim ownership of an account @param _appNickname Identifies the web app for the account @param _postId Id id of the post contains the signature @param _gasPrice The gas price for Oraclize @param _gasLimit The gas limit for Oraclize/ | function claimAccountOwnership(
string _appNickname,
string _postId,
uint _gasPrice,
uint _gasLimit
)
public
payable
{
require(bytes(_postId).length > 0);
oraclize_setCustomGasPrice(_gasPrice);
uint oraclePrice = oraclize_getPrice("URL", _gasLimit);
if (oraclePrice > 0 && ms... | 14,665,854 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7852,
279,
9230,
358,
7516,
23178,
434,
392,
2236,
632,
891,
389,
2910,
29756,
529,
13128,
5032,
326,
3311,
595,
364,
326,
2236,
632,
891,
389,
2767,
548,
3124,
612,
434,
326,
1603,
1914,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7516,
3032,
5460,
12565,
12,
203,
565,
533,
389,
2910,
29756,
529,
16,
203,
565,
533,
389,
2767,
548,
16,
203,
565,
2254,
389,
31604,
5147,
16,
203,
565,
2254,
389,
31604,
3039,
203,
225,
262,
203,
225,
1071,
203,
225... |
pragma solidity ^0.5.4;
/**
* ERC20 contract interface.
*/
contract ERC20 {
function totalSupply() public view returns (uint);
function decimals() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function allowance(address tokenOwner, address spen... | * @dev Helper method to approve spending the ERC20 of a wallet. @param _wallet The target wallet. @param _token The ERC20 address. @param _spender The spender address. @param _value The amount of token to transfer./ | function doApproveToken(BaseWallet _wallet, address _token, address _spender, uint256 _value) internal {
bytes memory methodData = abi.encodeWithSignature("approve(address,uint256)", _spender, _value);
invokeWallet(address(_wallet), _token, 0, methodData);
emit Approved(address(_wallet), _to... | 2,472,125 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9705,
707,
358,
6617,
537,
272,
9561,
326,
4232,
39,
3462,
434,
279,
9230,
18,
632,
891,
389,
19177,
1021,
1018,
9230,
18,
632,
891,
389,
2316,
1021,
4232,
39,
3462,
1758,
18,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
741,
12053,
537,
1345,
12,
2171,
16936,
389,
19177,
16,
1758,
389,
2316,
16,
1758,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
2713,
288,
203,
3639,
1731,
3778,
707,
751,
273,
24126,
18,
3015,
1190,
5374,
2932,
... |
./partial_match/1/0x99B52db75A2C37efA07C3867eC5811B9D878D4e3/sources/VaultStaking.sol | @dev Revokes supplied list of users tokens and users keep earning ETH. | function revokeTokens(address[] memory _addresses) external onlyOwner {
uint256 tokensToTransfer;
for(uint256 i = 0; i < _addresses.length; i++){
address addy = _addresses[i];
User storage user = users[addy];
if(user.withdrawableTokens > 0){
tokens... | 3,734,951 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
14477,
601,
281,
4580,
666,
434,
3677,
2430,
471,
3677,
3455,
425,
9542,
512,
2455,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18007,
5157,
12,
2867,
8526,
3778,
389,
13277,
13,
3903,
1338,
5541,
288,
203,
3639,
2254,
5034,
2430,
774,
5912,
31,
203,
3639,
364,
12,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
13277,
18,
2469,
31,
277,
27245,
... |
./full_match/1/0xAdcDAEc4fD335CC9A42a520b434585F343202A57/sources/BaseAdminUpgradeabilityProxy.sol | * @title BaseAdminUpgradeabilityProxy @dev This contract combines an upgradeability proxy with an authorization mechanism for administrative tasks. All external functions in this contract must be guarded by the `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity feature proposal that would enable this to be d... | contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
event AdminChanged(address previousAdmin, address newAdmin);
bytes32 internal constant ADMIN_SLOT =
0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
pragma solidity 0.6.12;
modifier ifAdmin() {
if (msg.sender == _admin... | 16,561,635 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
3360,
4446,
10784,
2967,
3886,
632,
5206,
1220,
6835,
30933,
392,
8400,
2967,
2889,
598,
392,
6093,
12860,
364,
30162,
1535,
4592,
18,
4826,
3903,
4186,
316,
333,
6835,
1297,
506,
3058,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3360,
4446,
10784,
2967,
3886,
353,
3360,
10784,
2967,
3886,
288,
203,
225,
871,
7807,
5033,
12,
2867,
2416,
4446,
16,
1758,
394,
4446,
1769,
203,
203,
225,
1731,
1578,
2713,
5381,
25969,
67,
55,
1502,
56,
273,
203,
565,
3... |
./partial_match/1/0x91840e0e115c036990633f224dF6ca8e91F716D1/sources/LimaTokenHelperV2.sol | * @dev Throws if called by any account other than the limaGovernance./ | modifier onlyLimaGovernanceOrOwner() {
_isLimaGovernanceOrOwner();
_;
}
| 9,165,578 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
22435,
309,
2566,
635,
1281,
2236,
1308,
2353,
326,
328,
13888,
43,
1643,
82,
1359,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
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,
9606,
1338,
48,
13888,
43,
1643,
82,
1359,
1162,
5541,
1435,
288,
203,
3639,
389,
291,
48,
13888,
43,
1643,
82,
1359,
1162,
5541,
5621,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0xDaf6F80AD2AFdC45014c59bfE507ED728656D11B/sources/contracts/AuctionMarketplace.sol | [12] -> The Factory MintPass ProjectID
| uint _ProjectIDMintPass; | 3,006,825 | [
1,
4625,
348,
7953,
560,
30,
225,
306,
2138,
65,
317,
1021,
7822,
490,
474,
6433,
5420,
734,
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,
... | [
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,
2254,
389,
4109,
734,
49,
474,
6433,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0xd5C43c023DE215Dc86cD42f60D7ded1Ea502A630/sources/contracts/ERC20.sol | * @dev Mint Tokens, reverting with message on overflow if caller is not the contract owner or the contract is not paused, event Mint will record CollateralDetails/ | function mint(uint256 amount_, string memory cda_wa_document_, string memory book_, uint256 bags_)public onlyOwner whenNotPaused{
uint256 _amount = amount_.mul(10 ** _decimals);
_totalSupply = _totalSupply.add(_amount);
_balances[msg.sender] = _balances[msg.sender].add(_amount);
uint... | 9,612,499 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
13899,
16,
15226,
310,
598,
883,
603,
9391,
309,
4894,
353,
486,
326,
6835,
3410,
578,
326,
6835,
353,
486,
17781,
16,
871,
490,
474,
903,
1409,
17596,
2045,
287,
3790,
19,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
11890,
5034,
3844,
67,
16,
533,
3778,
276,
2414,
67,
91,
69,
67,
5457,
67,
16,
533,
3778,
6978,
67,
16,
2254,
5034,
324,
1341,
67,
13,
482,
1338,
5541,
1347,
1248,
28590,
95,
203,
3639,
2254,
5034,
389... |