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/5/0x747f47C2616Ead094c224b6626414f5F5b6969fC/sources/contracts/Contract.sol | * @dev Mint ERC20 rewards to the staker. Must override. @param _staker Address for which to calculated rewards. @param _rewards Amount of tokens to be given out as reward./ Mint or transfer reward-tokens here. e.g. OR Use a mintable ERC20, such as thirdweb's `TokenERC20.sol`TokenERC20(rewardToken).mintTo(_st... | function _mintRewards(address _staker, uint256 _rewards) internal virtual override {
IERC20(rewardToken).transfer(_staker, _rewards);
}
| 11,622,135 | [
1,
49,
474,
4232,
39,
3462,
283,
6397,
358,
326,
384,
6388,
18,
6753,
3849,
18,
282,
389,
334,
6388,
565,
5267,
364,
1492,
358,
8894,
283,
6397,
18,
282,
389,
266,
6397,
282,
16811,
434,
2430,
358,
506,
864,
596,
487,
19890,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
81,
474,
17631,
14727,
12,
2867,
389,
334,
6388,
16,
2254,
5034,
389,
266,
6397,
13,
2713,
5024,
3849,
288,
203,
3639,
467,
654,
39,
3462,
12,
266,
2913,
1345,
2934,
13866,
24899,
334,
6388,
16,
389,
266,
6397,
1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
import "./interfaces/ITokenFactory.sol";
import "./ERC1155ERC721Metadata.sol";
import "./ERC1155ERC721WithAdapter.sol";
import "./GSN/BaseRelayRecipient.sol";
contract TokenFactory is
ITokenFactory,
ERC1155ERC721Metadata,
ERC1155ERC721WithAdapter,
... | @notice A descriptive name for a collection of NFTs in this contract | function name()
external
pure
override
returns (string memory)
{
return "DigiQuick";
}
| 12,255,053 | [
1,
37,
302,
31812,
508,
364,
279,
1849,
434,
423,
4464,
87,
316,
333,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
508,
1435,
203,
3639,
3903,
203,
3639,
16618,
203,
3639,
3849,
203,
3639,
1135,
261,
1080,
3778,
13,
203,
565,
288,
203,
3639,
327,
315,
4907,
77,
13663,
14432,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
// File: contracts/interface/DiviesInterface.sol
interface DiviesInterface {
function deposit() external payable;
}
// File: contracts/library/SafeMath.sol
/**
* @title SafeMath v0.1.9
* @dev Math operations with safety checks that throw on error
* change notes: original SafeMath li... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ MODIFIERS^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | modifier isHuman() {
address _addr = msg.sender;
require (_addr == tx.origin);
uint256 _codeLength;
require(_codeLength == 0, "sorry humans only");
_;
}
| 14,570,081 | [
1,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
66,
8663,
10591,
55,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
27803,
6925,
1435,
288,
203,
3639,
1758,
389,
4793,
273,
1234,
18,
15330,
31,
203,
3639,
2583,
261,
67,
4793,
422,
2229,
18,
10012,
1769,
203,
3639,
2254,
5034,
389,
710,
1782,
31,
203,
540,
203,
3639,
2583,
24899,
710... |
./partial_match/1/0x8dC9Ecb92CC5D56e146b59a141E33023804DE081/sources/EthicHubLending.sol | lendingInterestRate with 2 decimal | function investorInterest() public view returns(uint256){
return annualInterest.mul(interestBaseUint).mul(borrowerReturnDays).div(365).add(interestBasePercent);
}
| 4,127,406 | [
1,
80,
2846,
29281,
4727,
598,
576,
6970,
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,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2198,
395,
280,
29281,
1435,
1071,
1476,
1135,
12,
11890,
5034,
15329,
203,
3639,
327,
8226,
1462,
29281,
18,
16411,
12,
2761,
395,
2171,
5487,
2934,
16411,
12,
70,
15318,
264,
990,
9384,
2934,
2892,
12,
5718,
25,
2934,
... |
./full_match/1/0xc001160D7e90e8534Aa6d719d20F0E5425c25B40/sources/contracts/UsdbLendingCore.sol | @notice Remove currency @param _currency the currency of loan | function removeCurrency(address _currency) external onlyOwner {
require(availableCurrencies[_currency] == true, "CURRENCY_NOT_EXIST");
availableCurrencies[_currency] = false;
platformFees[_currency] = 0;
}
| 3,849,055 | [
1,
3288,
5462,
225,
389,
7095,
326,
5462,
434,
28183,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
7623,
12,
2867,
389,
7095,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
5699,
2408,
14695,
63,
67,
7095,
65,
422,
638,
16,
315,
7509,
25231,
67,
4400,
67,
11838,
8863,
203,
3639,
2319,
2408,
14695,
63,
67,
70... |
pragma solidity ^0.5.1;
//TODO:
//
//test - contributions, reclaims, fallback function, multiple loans
//do we need a true start time?
// allow people to contribute more than 99 million on the app
// make it clear that 1 period is 60 seconds
// Add UCASH address to HTML
contract ERC20Basic {
function totalSupply() ... | re-arrange Array. Replace current element with last element, and delete last element. | uint currentArrayIndex = Loans[contributor].arrayIndex;
| 6,709,041 | [
1,
266,
17,
297,
3676,
1510,
18,
6910,
783,
930,
598,
1142,
930,
16,
471,
1430,
1142,
930,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
783,
1076,
1016,
273,
3176,
634,
63,
591,
19293,
8009,
1126,
1016,
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,
-10... |
// SPDX-License-Identifier: GPL-3.0
/*
This file is part of the Enzyme Protocol.
(c) Enzyme Council <[email protected]>
For the full license information, please view the LICENSE
file that was distributed with this source code.
*/
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/E... | @notice Gets the request info of a user @param _requestOwner The address of the user that creates the request @return requestInfo_ The request info created by the user | function getSharesRequestInfoForOwner(address _requestOwner)
external
view
returns (RequestInfo memory requestInfo_)
{
return ownerToRequestInfo[_requestOwner];
}
| 1,697,357 | [
1,
3002,
326,
590,
1123,
434,
279,
729,
225,
389,
2293,
5541,
1021,
1758,
434,
326,
729,
716,
3414,
326,
590,
327,
30105,
67,
1021,
590,
1123,
2522,
635,
326,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1322,
3395,
455,
23113,
1290,
5541,
12,
2867,
389,
2293,
5541,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
23113,
3778,
30105,
67,
13,
203,
565,
288,
203,
3639,
327,
3410,
774,
23113,
63,
67,
2293,
5541,... |
./full_match/1/0x3Bd85DF9633eF0205206BB519E4dDee152Bb0005/sources/contracts/token/RewardsDistributor.sol | * PRIVILEGE FUNCTION Migrates by governance: (2 options) a) the whole garden or a user for all gardens into checkpoints deprecating c-power @param _address Array of Address to migrate (garden or user) @param _toMigrate Bool to migrate (true) or redo (false)/ | function migrateAddressToCheckpoints(address _address, bool _toMigrate) external override {
_onlyGovernanceOrEmergency();
betaAddressMigrated[_address][_address] = _toMigrate;
}
| 3,050,066 | [
1,
7698,
4136,
900,
7113,
13690,
490,
2757,
815,
635,
314,
1643,
82,
1359,
30,
261,
22,
702,
13,
279,
13,
326,
7339,
314,
24466,
578,
279,
729,
364,
777,
314,
1060,
773,
1368,
26402,
443,
4036,
1776,
276,
17,
12238,
225,
389,
2867... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13187,
1887,
18126,
4139,
12,
2867,
389,
2867,
16,
1426,
389,
869,
19594,
13,
3903,
3849,
288,
203,
3639,
389,
3700,
43,
1643,
82,
1359,
1162,
1514,
24530,
5621,
203,
3639,
6796,
1887,
25483,
690,
63,
67,
2867,
6362,
67... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "../vendors/libraries/SafeMath.sol";
import "../vendors/libraries/SafeERC20.sol";
import "../vendors/interfaces/IERC20.sol";
import "./UsersStorage.sol";
import "./StagesStorage.sol";
abstract contract AbstractFarm is Use... | bytes4(keccak256(bytes('approve(address,uint256)'))); | function safeApprove(IERC20 token, address to, uint value) internal {
(bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(0x095ea7b3, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
}
| 1,741,100 | [
1,
3890,
24,
12,
79,
24410,
581,
5034,
12,
3890,
2668,
12908,
537,
12,
2867,
16,
11890,
5034,
2506,
3719,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
12053,
537,
12,
45,
654,
39,
3462,
1147,
16,
1758,
358,
16,
2254,
460,
13,
2713,
288,
203,
3639,
261,
6430,
2216,
16,
1731,
3778,
501,
13,
273,
1758,
12,
2316,
2934,
1991,
12,
21457,
18,
3015,
1190,
4320,
12,
... |
pragma solidity 0.6.3;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import './ICToken.sol';
contract Dex {
//represent an ERC20 token.
struct Token {
bytes32 ticker; //3 letters that describt the token (ex: DAI). we dont use strings because they are hard to manipulate in Solidity
address to... | represent an ERC20 token. | contract Dex {
struct Token {
}
bytes32[] public tokenList;
mapping(bytes32 => Token) public tokens;
mapping(address => mapping(bytes32 => uint)) public balances;
mapping(bytes32 => uint) public totalBalances;
address public admin;
constructor() public {
admin = msg.sender;
}
fun... | 13,140,415 | [
1,
28205,
392,
4232,
39,
3462,
1147,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
463,
338,
288,
203,
21281,
225,
1958,
3155,
288,
203,
225,
289,
203,
21281,
225,
1731,
1578,
8526,
1071,
1147,
682,
31,
203,
21281,
225,
2874,
12,
3890,
1578,
516,
3155,
13,
1071,
2430,
31,
7010,
225,
2874,
12,
2867,
516,
... |
// SPDX-License-Identifier: Unlicense
pragma solidity^0.8.0;
contract CorruptionsBidirectionalDataMapper {
address constant public chosenAddress = 0x4fFFFF3eD1E82057dffEe66b4aa4057466E24a38;
address public owner;
struct DataMap {
bool created;
bool locked;
string name;
... | owner or chosen address can "commit" a map's value once it's finalized this makes the values immutable | function commitMap(uint256 mapIndex) public {
require(msg.sender == owner || msg.sender == chosenAddress, "CorruptionsBidirectionalDataMapper: not owner");
DataMap storage map = dataMaps[mapIndex];
map.locked = true;
}
| 2,168,339 | [
1,
8443,
578,
10447,
1758,
848,
315,
7371,
6,
279,
852,
1807,
460,
3647,
518,
1807,
727,
1235,
333,
7297,
326,
924,
11732,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3294,
863,
12,
11890,
5034,
852,
1016,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
747,
1234,
18,
15330,
422,
10447,
1887,
16,
315,
6217,
8653,
573,
17763,
24699,
751,
4597,
30,
486,
3410,
8863,
203,... |
./partial_match/4/0xac8f8d055Ae5f47075D7f6258b2edFDE83507fA3/sources/Option.sol | if he wants cash back then we have to execute another swapelse we simply deliver the remaining asset balance of the call to the long | if (cashBack) {
uint cashEst = estCashOut(call.assetAmt);
swap(asset, cashEst, call.assetAmt, call.long);
SafeERC20.safeTransfer(IERC20(asset), call.long, call.assetAmt);
}
call.exercised = true;
| 8,674,863 | [
1,
430,
3904,
14805,
276,
961,
1473,
1508,
732,
1240,
358,
1836,
4042,
7720,
12107,
732,
8616,
11795,
326,
4463,
3310,
11013,
434,
326,
745,
358,
326,
1525,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
71,
961,
2711,
13,
288,
203,
5411,
2254,
276,
961,
9122,
273,
4387,
39,
961,
1182,
12,
1991,
18,
9406,
31787,
1769,
203,
5411,
7720,
12,
9406,
16,
276,
961,
9122,
16,
745,
18,
9406,
31787,
16,
745,
18,
5748,
1... |
./partial_match/42/0x09d7326305164B6E9F16Dc56f2CE11fb4038da10/sources/GRAPHmodX.sol | * @dev This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract. 'initailSupplyfinish' must be 'false' to execute this function, however after first use, 'true' will change to 'false' to lock this function forever./ | function initialSupply(address contractAddress, uint256 InitialSupply) public onlyGovernor {
require(initialSupplyFinish == false);
_totalSupply = _totalSupply.add(InitialSupply);
_balances[contractAddress] = _balances[contractAddress].add(InitialSupply);
InitialSupplyFinish = true;... | 9,062,149 | [
1,
2503,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
18,
225,
296,
2738,
671,
3088,
1283,
13749,
11,
1297,
506,
296,
5743,
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,
565,
445,
2172,
3088,
1283,
12,
2867,
6835,
1887,
16,
2254,
5034,
10188,
3088,
1283,
13,
1071,
1338,
43,
1643,
29561,
288,
203,
3639,
2583,
12,
6769,
3088,
1283,
11641,
422,
629,
1769,
203,
3639,
389,
4963,
3088,
1283,
273,
389,
... |
pragma solidity ^0.4.20;
// ----------------------------------------------------------------------------------------------
// SPIKE Token by SPIKING Limited.
// An ERC223 standard
//
// author: SPIKE Team
// Contact: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="31525d545c545f714241585a585f56... | total supply is 10^20 unit, equivalent to 10 Billion SPIKE
| uint256 public _totalSupply = 10 ** 20; | 15,028,860 | [
1,
4963,
14467,
353,
1728,
66,
3462,
2836,
16,
7680,
358,
1728,
605,
737,
285,
20955,
6859,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
389,
4963,
3088,
1283,
273,
1728,
2826,
4200,
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,
... |
./partial_match/1/0x19969AbBC50908F1DbAAd8A7288309e85396A3F5/sources/WDC.sol | * @dev Destroys `amount` tokens from `account`, reducing the total supply. Emits a {Transfer} event with `to` set to the zero address. Requirements: - `account` cannot be the zero address. - `account` must have at least `amount` tokens./ | function _burn(address account, uint256 amount) internal virtual {
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBa... | 3,594,444 | [
1,
9378,
28599,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
869,
68,
444,
358,
326,
3634,
1758,
18,
29076,
30,
300,
1375,
4631,
68,
2780,
506,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
389,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
203,
3639,
389,
5771,
1345,
5912,
12,
4631,
16,
1758,
12,
20,
3631,
3844,
1769,
203,
203,
3639,
2254,
5034,
2236,
13937,
273,
389,
70,
2648... |
// File: @openzeppelin/contracts/GSN/Context.sol
pragma solidity ^0.5.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* man... | * Returns the reward amount of the calculation model before DIP4. It can be calculated by subtracting "the last cumulative sum of reward unit price" from "the current cumulative sum of reward unit price," and multiplying by the balance of the user./ | function __legacyWithdrawableAmount(address _property, address _user)
private
view
returns (uint256)
{
uint256 _last = getLastWithdrawalPrice(_property, _user);
uint256 price = getCumulativePrice(_property);
uint256 priceGap = price.sub(_last);
uint256 balance = ERC20Mintable(_property).balanceOf(_user)... | 7,798,483 | [
1,
1356,
326,
19890,
3844,
434,
326,
11096,
938,
1865,
463,
2579,
24,
18,
2597,
848,
506,
8894,
635,
10418,
310,
315,
5787,
1142,
15582,
2142,
434,
19890,
2836,
6205,
6,
628,
315,
5787,
783,
15582,
2142,
434,
19890,
2836,
6205,
10837,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
915,
1001,
17386,
1190,
9446,
429,
6275,
12,
2867,
389,
4468,
16,
1758,
389,
1355,
13,
203,
202,
202,
1152,
203,
202,
202,
1945,
203,
202,
202,
6154,
261,
11890,
5034,
13,
203,
202,
95,
203,
202,
202,
11890,
5034,
389,
272... |
pragma solidity ^0.5.2;
import 'openzeppelin-solidity/contracts/token/ERC20/IERC20.sol';
import 'openzeppelin-solidity/contracts/token/ERC721/IERC721.sol';
/**
* @title BaseWallet
* @dev a simple multi-user and multi-token wallet with support for ETH, ERC20 and ERC721 Tokens
* @author nomadcrypto@gmail.com
*/
contrac... | token addresstoken nametoken symboltoken typetoken idfungible | struct Token {
address token_address;
string name;
string symbol;
uint token_type;
uint256 token_id;
bool fungible;
}
| 6,378,077 | [
1,
2316,
527,
455,
334,
969,
15135,
278,
969,
3273,
2316,
3815,
278,
969,
612,
12125,
75,
1523,
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,
1958,
3155,
288,
203,
3639,
1758,
1147,
67,
2867,
31,
203,
3639,
533,
508,
31,
203,
3639,
533,
3273,
31,
203,
3639,
2254,
1147,
67,
723,
31,
203,
3639,
2254,
5034,
1147,
67,
350,
31,
203,
3639,
1426,
9831,
75,
1523,
31,
... |
pragma solidity ^0.8.0;
import "../token/FeiTimedMinter.sol";
import "../oracle/collateralization/ICollateralizationOracleWrapper.sol";
/// @title CollateralizationOracleKeeper
/// @notice a FEI timed minter which only rewards when updating the collateralization oracle
contract CollateralizationOracleKeeper is FeiT... | @notice most frequent that mints can happen @notice least frequent that mints can happen @notice the target receiving minted FEI*/ | {
_initTimed();
_setTarget(_target);
_setMintAmount(_initialMintAmount);
}
| 936,140 | [
1,
10329,
13821,
319,
716,
312,
28142,
848,
5865,
225,
4520,
13821,
319,
716,
312,
28142,
848,
5865,
225,
326,
1018,
15847,
312,
474,
329,
16439,
45,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
389,
2738,
19336,
5621,
203,
203,
3639,
389,
542,
2326,
24899,
3299,
1769,
203,
3639,
389,
542,
49,
474,
6275,
24899,
6769,
49,
474,
6275,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x84F7c44B6Fed1080f647E354D552595be2Cc602F/sources/BigbomTokenExtended.sol | * @title ERC20Basic @dev Simpler version of ERC20 interface/event Transfer(address indexed from, address indexed to, uint256 value); | contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed _from, address indexed _to, uint _value);
}
| 2,721,018 | [
1,
654,
39,
3462,
8252,
225,
9587,
20728,
1177,
434,
4232,
39,
3462,
1560,
19,
2575,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
5034,
460,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
8252,
288,
203,
225,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
225,
445,
11013,
951,
12,
2867,
10354,
13,
1071,
5381,
1135,
261,
11890,
5034,
1769,
203,
225,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
460... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | попробовать на практике
| rus_verbs:попробовать{}, | 5,485,086 | [
1,
145,
128,
145,
127,
145,
128,
146,
227,
145,
127,
145,
114,
145,
127,
145,
115,
145,
113,
146,
229,
146,
239,
225,
145,
126,
145,
113,
225,
145,
128,
146,
227,
145,
113,
145,
123,
146,
229,
145,
121,
145,
123,
145,
118,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8010,
67,
502,
2038,
30,
145,
128,
145,
127,
145,
128,
146,
227,
145,
127,
145,
114,
145,
127,
145,
115,
145,
113,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity =0.5.16;
import 'OpenZeppelin/openzeppelin-contracts@2.3.0/contracts/ownership/Ownable.sol';
import 'OpenZeppelin/openzeppelin-contracts@2.3.0/contracts/token/ERC20/IERC20.sol';
import 'Uniswap/uniswap-v2-core@1.0.1/contracts/libraries/Math.sol';
import './uniswap/UniswapV2Library.sol';
import './uniswa... | **** BNB-ibBNB FUNCTIONS **** Get number of ibBNB needed to withdraw to get exact amountBNB from the Bank | function ibBNBForExactBNB(uint amountBNB) public view returns (uint) {
uint totalBNB = IBank(ibBNB).totalBNB();
return
totalBNB == 0
? amountBNB
: amountBNB.mul(IBank(ibBNB).totalSupply()).add(totalBNB).sub(1).div(totalBNB);
}
| 5,453,082 | [
1,
15388,
38,
17,
495,
15388,
38,
13690,
55,
225,
968,
1300,
434,
9834,
15388,
38,
3577,
358,
598,
9446,
358,
336,
5565,
3844,
15388,
38,
628,
326,
25610,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
9834,
15388,
38,
1290,
14332,
15388,
38,
12,
11890,
3844,
15388,
38,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
565,
2254,
2078,
15388,
38,
273,
467,
16040,
12,
495,
15388,
38,
2934,
4963,
15388,
38,
5621,
203,
565... |
./full_match/1/0x97F41261Fc0F08DcBc18E173403dBE6C63f9c755/sources/contracts/VivekRamaswamy.sol | swap at amount exclude from fees | constructor() ERC20("Vivek Ramaswamy", "VIVEK") {
uint256 totalSupply = 1_000_000_000 * 1e18;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(router);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(... | 3,077,291 | [
1,
22270,
622,
3844,
4433,
628,
1656,
281,
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,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
58,
688,
79,
534,
301,
345,
91,
301,
93,
3113,
315,
4136,
3412,
47,
7923,
288,
203,
3639,
2254,
5034,
2078,
3088,
1283,
273,
404,
67,
3784,
67,
3784,
67,
3784,
380,
404,
73,
2643,
31,
20... |
./partial_match/1/0xf20058Bfed97c0e2a0377b3BaeA461EB1eEee8d8/sources/TSUKIYO.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("Way Of The Dragon","TSUKIYO") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
... | 4,125,076 | [
1,
10157,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
21831,
8031,
1021,
28425,
265,
15937,
56,
6639,
47,
45,
61,
51,
7923,
288,
203,
4766,
1377,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
2... |
./full_match/3/0x253CFC76DA356d234f807AcFC3eDcf6aF6e56bc7/sources/browser/XToken-Lite.sol | * @dev Validates if the sender is actually the trustee./ | modifier onlyTrustee() {
require(msg.sender == _trustee, "Access is denied");
_;
}
| 14,243,056 | [
1,
9594,
309,
326,
5793,
353,
6013,
326,
10267,
1340,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1338,
14146,
1340,
1435,
288,
203,
565,
2583,
12,
3576,
18,
15330,
422,
389,
21879,
1340,
16,
315,
1862,
353,
15338,
8863,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.8;
library DepositEncoder {
uint96 private constant AMOUNT_MASK = type(uint96).max;
/**
* Encodes a deposit such that fits into a single bytes32 variable.
* @dev This allows the deposit to be easily sent through Matic's Data Tunnel and decoded on ... | * Extracts the amount of tokens to be bridged for a given deposit/ | function getDepositRecipient(bytes32 encodedDeposit) internal pure returns (address) {
return address(uint160(uint256(encodedDeposit) >> 96));
}
| 1,038,213 | [
1,
12809,
326,
3844,
434,
2430,
358,
506,
324,
1691,
2423,
364,
279,
864,
443,
1724,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
758,
1724,
18241,
12,
3890,
1578,
3749,
758,
1724,
13,
2713,
16618,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1758,
12,
11890,
16874,
12,
11890,
5034,
12,
10787,
758,
1724,
13,
1671,
19332,
10019,
203,
565,
289,
20... |
./full_match/44787/0x1aFedC8D8a4ACE7516266F1081EFD26a81a8095f/sources/contracts/MarketMain/CyberBoxMarketplace.sol | * @dev See {INFTKEYMarketPlaceV1-cleanAllInvalidListings}./ | function cleanAllInvalidListings(address _nftAddress) external {
NFTToken memory nftToken = getNFTToken(_nftAddress);
require(
nftToken.marketPlaceAddress != address(0), "This token still not registed."
);
selectNFT(_nftAddress);
(uint256[] memory idList) = getMa... | 13,258,509 | [
1,
9704,
288,
706,
4464,
3297,
3882,
278,
6029,
58,
21,
17,
6200,
1595,
1941,
682,
899,
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,
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,
2721,
1595,
1941,
682,
899,
12,
2867,
389,
82,
1222,
1887,
13,
3903,
288,
203,
3639,
423,
4464,
1345,
3778,
290,
1222,
1345,
273,
225,
11069,
4464,
1345,
24899,
82,
1222,
1887,
1769,
203,
3639,
2583,
12,
203,
5411,
290,... |
/*
███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗
██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝
█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗
██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝
██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ... | Mouth Feet Weapon
| seed >>= 16; t.traits[5] = _selectTrait(uint16(seed & 0xFFFF), 5 + offset); | 2,514,989 | [
1,
49,
15347,
225,
5782,
278,
565,
1660,
28629,
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,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5009,
23359,
2872,
31,
268,
18,
2033,
1282,
63,
25,
65,
273,
389,
4025,
15525,
12,
11890,
2313,
12,
12407,
473,
374,
21718,
3631,
1381,
397,
1384,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarvest;
uint256 maxDebtPerHarvest;
uint256 lastReport;
uin... | Parent initialize contains the double initialize check | function _initialize(
address _vault,
address _strategist,
address _rewards,
address _keeper,
address _wantPool,
address _poolRewards,
uint256 _minToSell,
uint256 _lossProtectionBalance,
uint256 _percentKeep,
string memory _strategyName... | 1,586,513 | [
1,
3054,
4046,
1914,
326,
1645,
4046,
866,
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,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11160,
12,
203,
3639,
1758,
389,
26983,
16,
203,
3639,
1758,
389,
701,
1287,
376,
16,
203,
3639,
1758,
389,
266,
6397,
16,
203,
3639,
1758,
389,
79,
9868,
16,
203,
3639,
1758,
389,
17369,
2864,
16,
203,
3639,
175... |
./full_match/44787/0xF49c589ECf3eA81525d7A354401b38BBFd20Fd26/sources/contracts/WittyEuro-8.sol | * @notice WEUR only has 2 decimals, just as the real EUR./ | function decimals() public pure override returns (uint8) {
return 2;
}
| 13,244,704 | [
1,
6950,
1099,
1338,
711,
576,
15105,
16,
2537,
487,
326,
2863,
512,
1099,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15105,
1435,
1071,
16618,
3849,
1135,
261,
11890,
28,
13,
288,
203,
3639,
327,
576,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.13;
contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base co... | Set the symbol for display purposes
| symbol = "WKK"; | 7,741,062 | [
1,
694,
326,
3273,
364,
2562,
13694,
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,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3273,
273,
315,
20678,
47,
14432,
27573,
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... |
./full_match/7700/0x6efd43c49dA92f77d890FD8c27F1f23f7Aa0970A/sources/src/CidNFT.sol | @notice Get the active data list that is associated with a CID NFT / Subprotocol @param _cidNFTID ID of the CID NFT to query @param _subprotocolName Name of the subprotocol to query @return subprotocolNFTIDs The ID of the primary NFT at the queried subprotocl / CID NFT. 0 if it does not exist | function getActiveData(uint256 _cidNFTID, string calldata _subprotocolName)
external
view
returns (uint256[] memory subprotocolNFTIDs)
{
subprotocolNFTIDs = cidData[_cidNFTID][_subprotocolName].active.values;
}
| 4,650,733 | [
1,
967,
326,
2695,
501,
666,
716,
353,
3627,
598,
279,
385,
734,
423,
4464,
342,
2592,
8373,
225,
389,
13478,
50,
4464,
734,
1599,
434,
326,
385,
734,
423,
4464,
358,
843,
225,
389,
1717,
8373,
461,
1770,
434,
326,
720,
8373,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
11960,
751,
12,
11890,
5034,
389,
13478,
50,
4464,
734,
16,
533,
745,
892,
389,
1717,
8373,
461,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
8526,
3778,
720,
8373,
50,
4464,
5103,
13,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// MINIMAL ERC20 INTERFACE FOR QANX TRANSFERABILITY
interface TransferableERC20 {
function transfer(address recipient, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool... | DETERMINE s AND v FROM vs | bytes32 s = vs & 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
| 62,924 | [
1,
40,
1584,
654,
49,
3740,
272,
4116,
331,
4571,
6195,
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,
3639,
1731,
1578,
272,
273,
6195,
473,
374,
92,
27,
9460,
9460,
9460,
9460,
9460,
9460,
9460,
9460,
9460,
9460,
9460,
9460,
9460,
9460,
18217,
74,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x8ED2Fc62D6850eAaDcB717465752dab591286839/sources/ELY.sol | blacklist wallet if is in dead block, we don't want to blacklist liquidity pair, that would ruin everything | function _antiBot(address from, address to) internal {
if (block.number <= startBlock + deadBlocks) {
if (from == pairAddress) {
isBlacklisted[to] = true;
}
if (to == pairAddress) {
isBlacklisted[from] = true;
}
}
}
... | 3,917,756 | [
1,
22491,
9230,
309,
353,
316,
8363,
1203,
16,
732,
2727,
1404,
2545,
358,
11709,
4501,
372,
24237,
3082,
16,
716,
4102,
19621,
267,
7756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
970,
77,
6522,
12,
2867,
628,
16,
1758,
358,
13,
2713,
288,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
787,
1768,
397,
8363,
6450,
13,
288,
203,
5411,
309,
261,
2080,
422,
3082,
1887,
13,
288,
203,
7734,
353,
1... |
// SPDX-License-Identifier: No License
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contra... | rank factors in the block number | uint256[] memory factors = IFactor(oneFactorContract).getFactorList(cutoff);
| 942,543 | [
1,
11500,
14490,
316,
326,
1203,
1300,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
8526,
3778,
14490,
273,
467,
6837,
12,
476,
6837,
8924,
2934,
588,
6837,
682,
12,
16131,
1769,
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.24;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d3b7b2a5b693b2b8bcbeb1b2fdb0bcbe">[email protected]</a>
// released under Apache 2.0 licence
contract ERC20Basic {
function totalSupply(... | transfer seller the eth | sellerAddress.transfer(payout);
| 2,307,808 | [
1,
13866,
29804,
326,
13750,
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,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
29804,
1887,
18,
13866,
12,
84,
2012,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma abicoder v2;
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {Address} from "@openzeppe... | * @notice liquidate a vault, pay the liquidator @dev liquidator can only liquidate at most 1/2 of the vault in 1 transaction @dev this function will update the vault memory in-place @param _vault the Vault memory to update @param _maxWPowerPerpAmount maximum debt amount liquidator is willing to repay @param _normalizat... | function _liquidate(
VaultLib.Vault memory _vault,
uint256 _maxWPowerPerpAmount,
uint256 _normalizationFactor,
address _liquidator
) internal returns (uint256, uint256) {
(uint256 liquidateAmount, uint256 collateralToPay) = _getLiquidationResult(
_maxWPowerPer... | 13,123,595 | [
1,
549,
26595,
340,
279,
9229,
16,
8843,
326,
4501,
26595,
639,
225,
4501,
26595,
639,
848,
1338,
4501,
26595,
340,
622,
4486,
404,
19,
22,
434,
326,
9229,
316,
404,
2492,
225,
333,
445,
903,
1089,
326,
9229,
3778,
316,
17,
964,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
549,
26595,
340,
12,
203,
3639,
17329,
5664,
18,
12003,
3778,
389,
26983,
16,
203,
3639,
2254,
5034,
389,
1896,
59,
13788,
2173,
84,
6275,
16,
203,
3639,
2254,
5034,
389,
6130,
1588,
6837,
16,
203,
3639,
1758,
389,... |
./full_match/4/0xA5a364276dDc2Bd198c4A56643e9f2B5292E5A64/sources/browser/HEXPLAY.sol | ///HEXPLAY TOKEN CONTRACT//hex contract setupfounder locktokenomicsprotects against potential reentrancy | contract HEXPLAY is IERC20, TokenEvents {
using SafeMath for uint256;
using SafeERC20 for HEXPLAY;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
address internal hexAddress = 0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39;
H... | 13,306,605 | [
1,
28111,
44,
16109,
7868,
14275,
8020,
2849,
1268,
759,
7118,
6835,
3875,
74,
465,
765,
2176,
2316,
362,
2102,
11815,
386,
87,
5314,
8555,
283,
8230,
12514,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
670,
16109,
7868,
353,
467,
654,
39,
3462,
16,
3155,
3783,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
670,
16109,
7868,
31,
203,
203,
565,
2874,
261,
2867,
516,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
interface ERC20 {
function balanceOf(address) external view returns (uint256);
function transfer(address, uint256) external returns (bool);
}
contract LmaoPresale {
uint256 public constant MAX_AMOUNT = 5e22; // Max of 50k tokens per purchase
uint256 public ... | Internal function to safely transfer LMAO in case there is a rounding error | function _safeTransfer(address _to, uint256 _amount) internal {
uint256 lmaoBalance = lmao.balanceOf(address(this));
if (_amount > lmaoBalance) _amount = lmaoBalance;
lmao.transfer(_to, _amount);
}
| 5,846,613 | [
1,
3061,
445,
358,
15303,
7412,
511,
5535,
51,
316,
648,
1915,
353,
279,
13885,
555,
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,
202,
915,
389,
4626,
5912,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
2713,
288,
203,
202,
202,
11890,
5034,
328,
2540,
83,
13937,
273,
328,
2540,
83,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
202,
202,
430,
261,
... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | * @dev Credits payouts to insurees/ | function creditInsurees
(
bytes32 flightKey
)
external
{
Insurance[] insurance = insurances[flightKey];
for (uint i=0; i<insurance.length; i++) {
uint25... | 2,474,515 | [
1,
24201,
1282,
293,
2012,
87,
358,
316,
2055,
281,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12896,
382,
2055,
281,
203,
27573,
261,
203,
4766,
565,
1731,
1578,
25187,
653,
203,
27573,
262,
203,
27573,
3903,
203,
565,
288,
203,
3639,
657,
10050,
1359,
8526,
2763,
295,
1359,
273,
2763,
295,
6872,
63,
19131,
653,
... |
pragma solidity ^0.4.18;
/**
* ERC721 interface
*
* @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
* @author Yumin.yang
*/
contract ERC721 {
// Required methods
function totalSupply() public view returns (uint256 total);
function balanceOf(address _owner) public view returns (uint... | * @dev Create new first commons forum./ | function createFirstCommonsForum() external onlyWallet {
require(flag == true);
CoinCreation(new DivisibleFirstCommonsForumToken());
flag = false;
}
| 1,186,036 | [
1,
1684,
394,
1122,
24021,
11283,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
752,
3759,
6517,
28388,
379,
1435,
3903,
1338,
16936,
288,
203,
565,
2583,
12,
6420,
422,
638,
1769,
203,
565,
28932,
9906,
12,
2704,
21411,
18932,
3759,
6517,
28388,
379,
1345,
10663,
203,
565,
2982,
273,
629,
31,
203,
... |
// SPDX-License-Identifier: MIT
import "../libraries/math/SafeMath.sol";
import "../libraries/utils/ReentrancyGuard.sol";
import "../peripherals/Reader.sol";
import "../core/interfaces/IRouter.sol";
import "../core/interfaces/IVault.sol";
import "./interfaces/IUniswapV2Router.sol";
import "../libraries/token/IERC20.so... | 1. CHECK IF THERE'S FOLLOW --> DO SOME CHECKS1.1 IF THE MASTER TRADER DID 100 DO 1OO OR MAX BALANCEOF.... (GRETEAR OR LESS COMPARISON)1.2 WE'LL HAVE A TRESHOLD IN THE FUTURE (30% OF LIQUIDITY)2. EMIT EVENT ONCE FINALIZED | function decreasePosition(
IVault _vault,
address _master,
address _collateralToken,
address _indexToken,
bool _isLong,
address _puppet,
address _vaultAddress
) external onlyKeeper {
require(
getIfFollowingMasterAndActive(_mast... | 13,023,472 | [
1,
21,
18,
14565,
11083,
399,
4298,
11,
55,
6531,
15431,
5467,
7460,
958,
14565,
55,
21,
18,
21,
11083,
12786,
27312,
4235,
5483,
463,
734,
2130,
5467,
404,
25148,
4869,
4552,
605,
1013,
4722,
3932,
6265,
261,
43,
862,
1448,
985,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
20467,
2555,
12,
540,
203,
3639,
467,
12003,
389,
26983,
16,
203,
3639,
1758,
389,
7525,
16,
203,
3639,
1758,
389,
12910,
2045,
287,
1345,
16,
203,
3639,
1758,
389,
1615,
1345,
16,
203,
3639,
1426,
389,
291,
3708,
16,
... |
// SPDX-License-Identifier: MIT
pragma solidity >= 0.6.0;
import "./IChangeToken.sol";
import "./lib/SafeERC20.sol";
import "./lib/IERC1155.sol";
import "./IEthlings.sol";
import "./lib/ReentrancyGuard.sol";
import "./lib/ERC20.sol";
import "./lib/Ownable.sol";
contract ChangeToken is IChangeToken, ERC20, Ownable, R... | Sanity check for non-minted index | function claim(uint256[] memory avatarIds) public nonReentrant returns (uint256) {
require(block.timestamp > emissionStart, "Emission has not started yet");
uint256 avatarId;
uint256 totalClaimQty = 0;
uint256 index;
for (uint i = 0; i < avatarIds.length; i++) {
... | 951,434 | [
1,
55,
10417,
866,
364,
1661,
17,
81,
474,
329,
770,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7516,
12,
11890,
5034,
8526,
3778,
16910,
2673,
13,
1071,
1661,
426,
8230,
970,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
2629,
18,
5508,
405,
801,
19710,
1685,
16,
315,
1514,
19710,
711,
486,
5746,
4671,
88... |
pragma solidity ^0.4.24;
/**
* @title Helps contracts guard against reentrancy attacks.
* @author Remco Bloemen <remco@2π.com>, Eenae <alexey@mixbytes.io>
* @dev If you mark a function `nonReentrant`, you should also
* mark it `external`.
*/
contract ReentrancyGuard {
/// @dev Constant for unlocked guard state... | @dev Constant for unlocked guard state - non-zero to prevent extra gas costs. See: https://github.com/OpenZeppelin/openzeppelin-solidity/issues/1056 @dev Constant for locked guard state* @dev We use a single lock for the whole contract./* @dev Prevents a contract from calling itself, directly or indirectly. If you mar... | modifier nonReentrant() {
require(reentrancyLock == REENTRANCY_GUARD_FREE);
reentrancyLock = REENTRANCY_GUARD_LOCKED;
_;
reentrancyLock = REENTRANCY_GUARD_FREE;
}
| 506,425 | [
1,
6902,
364,
25966,
11026,
919,
300,
1661,
17,
7124,
358,
5309,
2870,
16189,
22793,
18,
2164,
30,
2333,
2207,
6662,
18,
832,
19,
3678,
62,
881,
84,
292,
267,
19,
3190,
94,
881,
84,
292,
267,
17,
30205,
560,
19,
9618,
19,
2163,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9606,
1661,
426,
8230,
970,
1435,
288,
203,
565,
2583,
12,
2842,
313,
12514,
2531,
422,
2438,
2222,
54,
1258,
16068,
67,
30673,
8085,
67,
28104,
1769,
203,
565,
283,
8230,
12514,
2531,
273,
2438,
2222,
54,
1258,
16068,
67,
3... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.7.6;
import {IUniswapV3Factory} from '@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol';
import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol';
import {Hypervisor} from './Hypervisor.sol';
contract HypervisorFactory is Ownable {
I... | change this to new balanced amounts | uint128 shares = _liquidityForAmounts(baseLower, baseUpper, finalDeposit0, finalDeposit1);
| 6,066,374 | [
1,
3427,
333,
358,
394,
11013,
72,
30980,
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,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
10392,
24123,
273,
389,
549,
372,
24237,
1290,
6275,
87,
12,
1969,
4070,
16,
1026,
5988,
16,
727,
758,
1724,
20,
16,
727,
758,
1724,
21,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x0C49b7F4cAF503DB1f96867260BdC100F2819994/sources/src/ENSHood.sol | returns name of a domain based on nft id | function idToName(uint256 id) public view returns (string memory) {
bytes memory _id = abi.encodePacked(id);
bytes memory nameBytes = nameWrapper.names(bytes32(_id));
return string(nameBytes);
}
| 9,727,380 | [
1,
6154,
508,
434,
279,
2461,
2511,
603,
290,
1222,
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,
0,
0,
0,
0,
0,
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,
612,
774,
461,
12,
11890,
5034,
612,
13,
1071,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
1731,
3778,
389,
350,
273,
24126,
18,
3015,
4420,
329,
12,
350,
1769,
203,
203,
3639,
1731,
3778,
508,
2160,
273,
508,
36... |
./full_match/43113/0xF20cCae781689fE736e2f89142e26352393Bd199/sources/Vikings.sol | * Gets the total available reward balance of all tokens owned by the specified address./ | function getRewardBalance(address _addr) public view returns(uint256) {
uint256 totalBalance = 0;
uint count = balanceOf(_addr);
for (uint i = 0; i < count; i++) {
uint id = tokenOfOwnerByIndex(_addr, i);
totalBalance += getRewardBalance(id);
}
retur... | 7,168,796 | [
1,
3002,
326,
2078,
2319,
19890,
11013,
434,
777,
2430,
16199,
635,
326,
1269,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4170,
359,
1060,
13937,
12,
2867,
389,
4793,
13,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
2078,
13937,
273,
374,
31,
203,
203,
3639,
2254,
1056,
273,
11013,
951,
24899,
4793,
1769,
203,
3639,
3... |
pragma solidity ^0.4.18;
// File: contracts/IPricingStrategy.sol
interface IPricingStrategy {
function isPricingStrategy() public view returns (bool);
/** Calculate the current price for buy in amount. */
function calculateTokenAmount(uint weiAmount, uint tokensSold) public view returns (uint tokenAmoun... | * @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint the amount of tokens to be transferred @param _data Optional metadata./ | function transferFrom(address _from, address _to, uint _value, bytes _data) public whenActivated returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
require(!freezedList[_from]);
balances[_from] = ba... | 2,319,179 | [
1,
5912,
2430,
628,
1245,
1758,
358,
4042,
225,
389,
2080,
1758,
1021,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
225,
389,
869,
1758,
1021,
1758,
1492,
1846,
2545,
358,
7412,
358,
225,
389,
1132,
2254,
326,
3844,
434,
2430,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
389,
1132,
16,
1731,
389,
892,
13,
1071,
1347,
28724,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
24... |
// Sources flattened with hardhat v2.3.0 https://hardhat.org
// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v4.1.0
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Imp... | Use Cases handled: Case 1: Token owner is this contract and no parent tokenId. Case 2: Token owner is this contract and token Case 3: Token owner is top-down composable Case 4: Token owner is an unknown contract Case 5: Token owner is a user Case 6: Token owner is a bottom-up composable Case 7: Token owner is ERC721 t... | function rootOwnerOf(uint256 _tokenId)
public
view
override
returns (bytes32 rootOwner)
{
address rootOwnerAddress = tokenIdToTokenOwner[_tokenId].tokenOwner;
require(
rootOwnerAddress != address(0),
"ComposableBottomUp: rootOwnerOf rootOwn... | 13,765,726 | [
1,
3727,
385,
3304,
7681,
30,
12605,
404,
30,
3155,
3410,
353,
333,
6835,
471,
1158,
982,
1147,
548,
18,
12605,
576,
30,
3155,
3410,
353,
333,
6835,
471,
1147,
12605,
890,
30,
3155,
3410,
353,
1760,
17,
2378,
532,
23252,
12605,
1059... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1365,
5541,
951,
12,
11890,
5034,
389,
2316,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
3890,
1578,
1365,
5541,
13,
203,
565,
288,
203,
3639,
1758,
1365,
5541,
1887,
273,
1147,
288... |
./full_match/1/0x76DE3D371bCAD8145e19fA33052c0824e4589c3C/sources/browser/demaxConfig.sol | called after deployment | function initGovernorAddress(address _governor) internal {
require(_governor != address(0), 'Governable: INPUT_ADDRESS_IS_ZERO');
governor = _governor;
}
| 3,057,235 | [
1,
11777,
1839,
6314,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1208,
43,
1643,
29561,
1887,
12,
2867,
389,
75,
1643,
29561,
13,
2713,
288,
203,
3639,
2583,
24899,
75,
1643,
29561,
480,
1758,
12,
20,
3631,
296,
43,
1643,
6914,
30,
12943,
67,
15140,
67,
5127,
67,
24968,
8284,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract DataTokenMigrator { // is UpgradeAgent, see Crowdsale.sol
IERC20 public oldToken;
IERC20 public newToken;
constructor(IERC20 _oldToken, IERC20 _newToken) {
oldToken = _oldToke... | * @param _from token holder that called CrowdsaleToken.upgrade(_value) @param _value amount of tokens to upgrade, checked by the CrowdsaleToken/ | function upgradeFrom(address _from, uint256 _value) external {
require(
msg.sender == address(oldToken),
"Call not permitted, UpgradableToken only"
);
newToken.transfer(_from, _value);
}
| 5,344,975 | [
1,
67,
2080,
1147,
10438,
716,
2566,
385,
492,
2377,
5349,
1345,
18,
15097,
24899,
1132,
13,
225,
389,
1132,
3844,
434,
2430,
358,
8400,
16,
5950,
635,
326,
385,
492,
2377,
5349,
1345,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
8400,
1265,
12,
2867,
389,
2080,
16,
2254,
5034,
389,
1132,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
15330,
422,
1758,
12,
1673,
1345,
3631,
203,
5411,
315,
1477,
486,
15498,
16,
1948,
9974,
429,
1345,
... |
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* ... | * @dev Call base class: ERC721Enumerable.supportsInterface()./ | function supportsInterface(bytes4 interfaceId)
public
view
override(ERC721, ERC721Enumerable)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
| 10,052,391 | [
1,
1477,
1026,
667,
30,
4232,
39,
27,
5340,
3572,
25121,
18,
28064,
1358,
7675,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
203,
565,
1071,
203,
565,
1476,
203,
565,
3849,
12,
654,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
13,
203,
565,
1135,
261,
6430,
13,
203,
225,
288,
203,
565,
327,
... |
./full_match/1/0x7ACC7382E1816c8432074874503E2460E987148C/sources/src/PurchasingCenter.sol | * @dev Function to (re)set EthUsdConsumerAddress./ | function setEthUsdConsumerAddress(
address _eth_usd_consumer_address
) external onlyOwner {
eth_usd_consumer_address = _eth_usd_consumer_address;
eth_pricer = IChainlinkPriceConsumer(_eth_usd_consumer_address);
emit NewEthUsdConsumerAddressSet(_eth_usd_consumer_address);
}
| 2,930,607 | [
1,
2083,
358,
261,
266,
13,
542,
512,
451,
3477,
72,
5869,
1887,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
41,
451,
3477,
72,
5869,
1887,
12,
203,
3639,
1758,
389,
546,
67,
407,
72,
67,
13230,
67,
2867,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
13750,
67,
407,
72,
67,
13230,
67,
2867,
273,
389,
546,
67,
407,
... |
./partial_match/8453/0x6C743ee9ef26B445D80F19CC783e89b43dcFFa07/sources/OptionTokenV3.sol | @notice Is excersizing options currently paused ----------------------------------------------------------------------- Modifiers ----------------------------------------------------------------------- @dev A modifier which checks that the caller has the admin role. | function token() external view returns (address);
function team() external returns (address);
function epoch() external view returns (uint);
function point_history(uint loc) external view returns (Point memory);
function user_point_history(uint tokenId, uint loc) external view returns (Point memory)... | 16,707,669 | [
1,
2520,
3533,
414,
6894,
702,
4551,
17781,
24796,
3431,
3383,
24796,
225,
432,
9606,
1492,
4271,
716,
326,
4894,
711,
326,
3981,
2478,
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... | [
1,
1,
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,
1147,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
565,
445,
5927,
1435,
3903,
1135,
261,
2867,
1769,
203,
565,
445,
7632,
1435,
3903,
1476,
1135,
261,
11890,
1769,
203,
565,
445,
1634,
67,
8189,
12,
11890,
1515,
13,
3... |
./partial_match/5/0x7b8a55E36E60937a497EbCD916250D39E2e7Fc03/sources/Magnatti.sol | ERC20 Token Smart Contract Functions with this modifier can only be executed by the owner | contract Magnatti {
string public constant name = "Magnatti";
string public constant symbol = "MGC";
uint8 public constant decimals = 18;
uint public _totalSupply = 18000000000000000000000000;
uint256 public RATE = 1;
bool public isMinting = false;
st... | 16,884,097 | [
1,
654,
39,
3462,
3155,
19656,
13456,
15486,
598,
333,
9606,
848,
1338,
506,
7120,
635,
326,
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... | [
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,
6835,
12342,
82,
4558,
77,
288,
203,
540,
203,
3639,
533,
1071,
5381,
508,
273,
315,
11372,
82,
4558,
77,
14432,
203,
3639,
533,
1071,
5381,
3273,
273,
315,
49,
15396,
14432,
203,
3639,
2254,
28,
1071,
5381,
15105,
273,
6549... |
/**
Source code of Opium Protocol
Web https://opium.network
Telegram https://t.me/opium_network
Twitter https://twitter.com/opium_network
*/
// File: LICENSE
/**
The software and documentation available in this repository (the "Software") is protected by copyright law and accessible pursuant to the licens... | * @title ERC721O token receiver interface @dev Interface for any contract that wants to support safeTransfers from ERC721O contracts./ | contract IERC721OReceiver {
bytes4 constant internal ERC721O_RECEIVED = 0xf891ffe0;
bytes4 constant internal ERC721O_BATCH_RECEIVED = 0xd0e17c0b;
function onERC721OReceived(
address _operator,
address _from,
uint256 tokenId,
uint256 amount,
bytes memory data
) public returns(bytes4);
fun... | 1,368,000 | [
1,
654,
39,
27,
5340,
51,
1147,
5971,
1560,
225,
6682,
364,
1281,
6835,
716,
14805,
358,
2865,
4183,
1429,
18881,
225,
628,
4232,
39,
27,
5340,
51,
20092,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
467,
654,
39,
27,
5340,
51,
12952,
288,
203,
225,
1731,
24,
5381,
2713,
4232,
39,
27,
5340,
51,
67,
27086,
20764,
273,
374,
5841,
6675,
21,
1403,
73,
20,
31,
203,
225,
1731,
24,
5381,
2713,
4232,
39,
27,
5340,
51,
67,
... |
pragma solidity >=0.4.21 <0.7.0;
contract MyContract {
struct Bill {
bool payed; // daca s-a platit factura pana acum sau nu
int code; // codul facturii
int sum; // totalul de plata
string clientName; // username-ul celu... | verificam daca cel care vrea sa plateasca o factura este un user | function payBill(int billCode) public {
require(bytes(users[msg.sender]).length != 0, "Nu sunteti inregistrat! Mai intai asociati-va contul cu un user name.");
uint foundBillIndex;
bool hasFoundBill = false;
for (uint i = 0; i < bills.length; i++) {
if (bills[i].code =... | 6,376,677 | [
1,
502,
1507,
301,
302,
1077,
69,
25357,
7671,
331,
266,
69,
7864,
21972,
3691,
69,
320,
5410,
21401,
4387,
73,
640,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8843,
38,
737,
12,
474,
20714,
1085,
13,
1071,
288,
203,
203,
3639,
2583,
12,
3890,
12,
5577,
63,
3576,
18,
15330,
65,
2934,
2469,
480,
374,
16,
315,
50,
89,
272,
10032,
278,
77,
316,
1574,
3337,
270,
5,
490,
10658,... |
/**
*Submitted for verification at Etherscan.io on 2021-01-20
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.7.6;
// iRUNE Interface
interface iRUNE {
function transfer(address, uint) external returns (bool);
function transferTo(address, uint) external returns (bool);
}
// Sushiswap Interface
i... | #### DEPOSIT #### Deposit and sync | contract Incentives {
address public RUNE = 0x3155BA85D5F96b2d030a4966AF206230e46849cb;
event Deposited(address indexed pair, uint amount);
constructor() {}
function depositIncentives(address pair, uint amount) public {
_getRune(amount);
_depositAndSync(pair, amount);
}
functi... | 7,872,438 | [
1,
1639,
28284,
225,
4019,
538,
305,
471,
3792,
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,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
657,
2998,
3606,
288,
203,
565,
1758,
1071,
15484,
41,
273,
374,
92,
6938,
2539,
12536,
7140,
40,
25,
42,
10525,
70,
22,
72,
4630,
20,
69,
7616,
6028,
6799,
3462,
26,
29157,
73,
8749,
5193,
29,
7358,
31,
203,
565,
871,
... |
./partial_match/44787/0x76Eb2820207313AFf098478A64996ca38C6052ff/sources/contracts/CarbonPathAdmin.sol | * @notice Creates a new NFT for `to`. Additionally sets URI/metadata and geoJSON for the NFT. This also handles airdropping of tokens to set recipients CPCO2 Tokens will be received by the following addresses cpFeeAddress will receive advanceAmount cpFeePercentage operatorAddress will receive advanceAmount (1 - cpFee... | function mint(
address to,
uint256 advanceAmount,
uint256 cpFeePercentage,
uint256 bufferAmount,
address operatorAddress,
string memory tokenUri,
string memory metadata,
string memory geoJson
) external onlyMinter nonZeroAddress(to) nonZeroAddress(operatorAddress) {
require(cpFee... | 16,956,768 | [
1,
2729,
279,
394,
423,
4464,
364,
1375,
869,
8338,
26775,
1678,
3699,
19,
4165,
471,
7856,
2986,
364,
326,
423,
4464,
18,
1220,
2546,
7372,
279,
6909,
1764,
1382,
434,
2430,
358,
444,
12045,
385,
3513,
51,
22,
13899,
903,
506,
5079... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
12,
203,
565,
1758,
358,
16,
203,
565,
2254,
5034,
8312,
6275,
16,
203,
565,
2254,
5034,
3283,
14667,
16397,
16,
203,
565,
2254,
5034,
1613,
6275,
16,
203,
565,
1758,
3726,
1887,
16,
203,
565,
533,
3778,
114... |
./partial_match/42/0x8dD92efE90e1F647cCB6F754551B6a201f1a45c1/sources/TRY.sol | * TRY Token by Trias As ERC20 standard/ token总量,默认会为public变量生成一个getter函数接口,名称为totalSupply(). 构造函数 初始化合约时使用 | contract TRY is SafeMath{
uint256 public totalSupply;
string public name;
string public symbol;
uint public decimals;
constructor(uint256 _initialAmount,string _tokenName,uint8 _decimalUnits,string _tokenSymbol) public {
balances[msg.sender] = _initialAmount;
totalSupply = _initial... | 8,908,931 | [
1,
17805,
3155,
635,
10000,
345,
2970,
4232,
39,
3462,
4529,
19,
1147,
167,
227,
124,
170,
234,
242,
176,
125,
239,
170,
124,
251,
169,
111,
102,
165,
125,
253,
165,
121,
123,
482,
166,
242,
251,
170,
234,
242,
168,
247,
258,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4235,
61,
353,
14060,
10477,
95,
21281,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
1071,
15105,
31,
203,
565,
3885,
12,
11890,
5034,
389,
6769,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
pragma experimental ABIEncoderV2;
// Implements:
import "ado-contracts/contracts/interfaces/IERC2362.sol";
import "witnet-solidity-bridge/contracts/UsingWitnet.sol";
import "witnet-solidity-bridge/contracts/patterns/Payable.sol";
import "witnet-solidity-b... | @notice Reads the result, if ready, from the WitnetRequestBoard. @dev The `witnetRequestSolved` modifier comes with `UsingWitnet` and allows to @dev protect your methods from being called before the request has been successfully @dev relayed into Witnet. Retrieves copy of all response data related to the last request,... | function completeUpdate()
public
witnetRequestSolved(requestId)
{
require(pending == true, "ERC2362PriceFeed: request not solved");
Witnet.Response memory _response = witnet.deleteQuery(requestId);
Witnet.Result memory _result = witnet.resultFromCborBytes(_response.cbor... | 1,035,237 | [
1,
7483,
326,
563,
16,
309,
5695,
16,
628,
326,
678,
305,
2758,
691,
22233,
18,
225,
1021,
1375,
28450,
2758,
691,
55,
12894,
68,
9606,
14535,
598,
1375,
7736,
59,
305,
2758,
68,
471,
5360,
358,
225,
17151,
3433,
2590,
628,
3832,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3912,
1891,
1435,
203,
3639,
1071,
7010,
3639,
31039,
2758,
691,
55,
12894,
12,
2293,
548,
13,
203,
565,
288,
203,
3639,
2583,
12,
9561,
422,
638,
16,
315,
654,
39,
4366,
8898,
5147,
8141,
30,
590,
486,
3704,
2155,
88... |
./partial_match/56/0x630413bA99b6a7f911614e759dA6eAE769672c76/sources/MasterChef.sol | MasterChef is the master of Egg. He can make Egg and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once EGG is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it's bug... | contract MasterChef is Ownable {
using SafeMath for uint256;
using SafeBEP20 for IBEP20;
struct UserInfo {
}
struct PoolInfo {
}
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
e... | 11,161,768 | [
1,
7786,
39,
580,
74,
353,
326,
4171,
434,
512,
14253,
18,
8264,
848,
1221,
512,
14253,
471,
3904,
353,
279,
284,
1826,
3058,
93,
18,
3609,
716,
518,
1807,
4953,
429,
471,
326,
3410,
341,
491,
87,
268,
2764,
409,
1481,
7212,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
13453,
39,
580,
74,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
5948,
52,
3462,
364,
467,
5948,
52,
3462,
31,
203,
203,
565,
1958,
25003,
288,
203,
565,
289,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8 <0.9.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract Ethernote {
struct Note{
string strTitle;
string strContent;
bool isEditable;
uint timeStamp;
}
address public addrEditor;
Note[] private arrayNotes;
constru... | Only owner can create/modify/delete a note | modifier onlyOwner {
require(msg.sender == addrEditor,"Only owner can interact with notes");
_;
}
| 12,915,396 | [
1,
3386,
3410,
848,
752,
19,
17042,
19,
3733,
279,
4721,
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,
225,
9606,
1338,
5541,
288,
203,
1377,
2583,
12,
3576,
18,
15330,
422,
3091,
6946,
10837,
3386,
3410,
848,
16592,
598,
10913,
8863,
203,
1377,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/5/0xB2505e215A3ee6BD9cca6E2d9065a18ed3270634/sources/contracts/Akasha.sol | remove record from records manually | if (_recordId == records[i].recordId) {
found = true;
Record memory record = records[i];
require(msg.sender == record.owner, "Only the owner can remove the record");
string memory _title = record.title;
string memory _descriptio... | 1,927,107 | [
1,
4479,
1409,
628,
3853,
10036,
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,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
309,
261,
67,
3366,
548,
422,
3853,
63,
77,
8009,
3366,
548,
13,
288,
203,
7734,
1392,
273,
638,
31,
203,
7734,
5059,
3778,
1409,
273,
3853,
63,
77,
15533,
203,
7734,
2583,
12,
3576,
18,
15330,
422,
1409,
18,
8443,
16,
... |
// SPDX-License-Identifier: NONE
pragma solidity 0.6.12;
// Part: OpenZeppelin/openzeppelin-contracts@3.2.0/Address
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is u... | super.safeTransferFrom(from, to, tokenId, _data); | function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override {
revert();
}
| 108,151 | [
1,
9565,
18,
4626,
5912,
1265,
12,
2080,
16,
358,
16,
1147,
548,
16,
389,
892,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4183,
5912,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
16,
1731,
3778,
389,
892,
13,
1071,
3849,
288,
203,
202,
202,
266,
1097,
5621,
203,
202,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x402993515350c973f1D44FC8762644E3806cB9bC/sources/contracts/data/Keys.sol | @dev key for gas to forward for token transfer @param the token to check @return key for gas to forward for token transfer | function tokenTransferGasLimit(address token) internal pure returns (bytes32) {
return keccak256(abi.encode(
TOKEN_TRANSFER_GAS_LIMIT,
token
));
}
| 16,543,122 | [
1,
856,
364,
16189,
358,
5104,
364,
1147,
7412,
225,
326,
1147,
358,
866,
327,
498,
364,
16189,
358,
5104,
364,
1147,
7412,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
5912,
27998,
3039,
12,
2867,
1147,
13,
2713,
16618,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
327,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
12,
203,
5411,
14275,
67,
16596,
6553,
67,
43,
3033,
67,
8283,
16,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.2;
import "./Ownable.sol";
import "./ERC721Enumerable.sol";
import "./IERC721Receiver.sol";
import "./IERC721.sol";
import "./ReentrancyGuard.sol";
// previous contract
contract PreviousContract {
//function setApprovalForAll(address, uint256) public {}
... | * @dev - we use this to compute the mintIndex. We reserve the token up to FINAL_TOKEN for buyers on the previous contract./ | function totalSupply() public view override returns (uint256) {
uint256 supply = super.totalSupply();
uint256 remaining_claims = (RESERVED_TOKEN_ID + 1) - TOTAL_CLAIMED;
}
| 10,183,529 | [
1,
17,
732,
999,
333,
358,
3671,
326,
312,
474,
1016,
18,
1660,
20501,
326,
1147,
731,
358,
17563,
1013,
67,
8412,
364,
30143,
414,
603,
326,
2416,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
3088,
1283,
1435,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
14467,
273,
2240,
18,
4963,
3088,
1283,
5621,
203,
3639,
2254,
5034,
4463,
67,
28979,
273,
261,
28635,
67,
8412,
67,
734,
... |
./full_match/80001/0xFf0c3692eE63916032B68FdA82b8d9b71c30a7D3/sources/contract/Canbeat-Staking/module/Canbeat-Stake-Core.sol | @dev Calculate the DAO's share of the rewards.
| _DaoReward = ((TotalRewards * DaoRoyalty[IStakingSection]) / INVERSE_BASIS_POINT) / 100; | 858,938 | [
1,
8695,
326,
463,
20463,
1807,
7433,
434,
326,
283,
6397,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
11412,
17631,
1060,
273,
14015,
5269,
17631,
14727,
380,
463,
6033,
54,
13372,
15006,
63,
45,
510,
6159,
5285,
5717,
342,
2120,
28489,
67,
12536,
15664,
67,
8941,
13,
342,
2130,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IFractionableERC721.sol";
import "../bondedERC20/IBondedERC20Helper.sol";
import "../bondedERC20/IBondedERC20Transfer.sol";
import "../lib/ERC20Manager.sol";
import "../commons/OperationManaged.sol";
import "@openzeppelin/contracts/token/ERC721/ERC7... | Sets address for helper functions | {
bondedHelper = IBondedERC20Helper(_bondedHelper);
}
| 12,990,512 | [
1,
2785,
1758,
364,
4222,
4186,
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,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
324,
265,
785,
2276,
273,
23450,
265,
785,
654,
39,
3462,
2276,
24899,
18688,
785,
2276,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/43113/0xd1C1B3703cd94aaF209B9Df526c5509508f8375B/sources/contracts/ILendingPool.sol | refer to the whitepaper, section 1.1 basic concepts for a formal description of these properties. | library DataTypes {
pragma solidity ^0.8.4;
struct ReserveData {
ReserveConfigurationMap configuration;
uint128 liquidityIndex;
uint128 variableBorrowIndex;
uint128 currentLiquidityRate;
uint128 currentVariableBorrowRate;
uint128 currentStableBorrowRate;
uint4... | 13,148,541 | [
1,
266,
586,
358,
326,
600,
305,
881,
7294,
16,
2442,
404,
18,
21,
5337,
28415,
364,
279,
25739,
2477,
434,
4259,
1790,
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,
... | [
1,
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,
12083,
1910,
2016,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
24,
31,
203,
565,
1958,
1124,
6527,
751,
288,
203,
3639,
1124,
6527,
1750,
863,
1664,
31,
203,
3639,
2254,
10392,
4501,
372,
24237,
1016,
31,
203,
3639,
... |
./full_match/5/0x6814AC495Eef8d26e354E30db7594961f6882ea7/sources/contracts/MAYClone.sol | Use the rest of the inherited claim function logic | function _transferTokensOnClaim(address _receiver, uint256 _quantity)
internal
override
returns (uint256)
{
_receiver,
0,
_quantity
);*/
return super._transferTokensOnClaim(_receiver, _quantity);
}
| 1,940,129 | [
1,
3727,
326,
3127,
434,
326,
12078,
7516,
445,
4058,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
5157,
1398,
9762,
12,
2867,
389,
24454,
16,
2254,
5034,
389,
16172,
13,
203,
3639,
2713,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
5411,
389,
24454,
16,
203,
5411,
374,
16,
... |
./partial_match/1/0xFC3e57B4FAD993813bD9A09951274102aC1F3Bd8/sources/contracts/UserIncentive.sol | Ensure this can only be called whilst lockout is active Ensure the ratio can only be increased | function setRewardRatio(uint256 _ratio) external override onlyOwner {
require(rewardLockoutTs > block.timestamp, "LOCKOUT NOT IN FORCE");
require(_ratio > rewardRatio, "RATIO CAN ONLY BE INCREASED");
rewardRatio = _ratio;
}
| 16,136,249 | [
1,
12512,
333,
848,
1338,
506,
2566,
600,
330,
334,
2176,
659,
353,
2695,
7693,
326,
7169,
848,
1338,
506,
31383,
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,
444,
17631,
1060,
8541,
12,
11890,
5034,
389,
9847,
13,
3903,
3849,
1338,
5541,
288,
203,
3639,
2583,
12,
266,
2913,
2531,
659,
17218,
405,
1203,
18,
5508,
16,
315,
6589,
5069,
4269,
2120,
12108,
1441,
8863,
203,
203,
3... |
./full_match/80001/0xd8d0A205062f074bE065125353CBaBb38441FEA7/sources/contracts/MyNFT.sol | * @notice This function is for public mint of MyNFT @param _quantity: no. of NFTs to be minted/ | function mint(uint256 _quantity) external payable callerIsUser {
if (!publicSale) {
revert MyNFT__PublicSaleNotActive();
}
if ((totalSupply() + _quantity) > MAX_SUPPLY) {
revert MyNFT__ExceedsMaxSupply();
}
if ((totalPublicMint[msg.sender] + _quantity)... | 9,490,004 | [
1,
2503,
445,
353,
364,
1071,
312,
474,
434,
8005,
50,
4464,
225,
389,
16172,
30,
1158,
18,
434,
423,
4464,
87,
358,
506,
312,
474,
329,
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,
... | [
1,
1,
1,
1,
1,
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,
312,
474,
12,
11890,
5034,
389,
16172,
13,
3903,
8843,
429,
4894,
2520,
1299,
288,
203,
3639,
309,
16051,
482,
30746,
13,
288,
203,
5411,
15226,
8005,
50,
4464,
972,
4782,
30746,
1248,
3896,
5621,
203,
3639,
289,
203,
3... |
pragma solidity ^0.4.24;
// File: contracts\openzeppelin-solidity\contracts\ownership\Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address p... | * @title Milestone Lock Token @dev Token lock that can be the milestone policy applied./ | contract MilestoneLockToken is StandardToken, Ownable {
using SafeMath for uint256;
struct Policy {
uint256 kickOff;
uint256[] periods;
uint8[] percentages;
}
struct MilestoneLock {
uint8[] policies;
uint256[] standardBalances;
}
uint8 constant MAX_POL... | 13,627,720 | [
1,
49,
18270,
3488,
3155,
225,
3155,
2176,
716,
848,
506,
326,
28664,
3329,
6754,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
18270,
2531,
1345,
353,
8263,
1345,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
1958,
7436,
288,
203,
3639,
2254,
5034,
23228,
7210,
31,
203,
3639,
2254,
5034,
8526,
1277... |
pragma solidity ^0.4.24;
// *-----------------------------------------------------------------------*
// __ _ ________ __________ _____ __
// / /| | / / ____/ / ____/ __ \/ _/ | / /
// / / | | / / __/ / / / / / // // |/ /
// / /__| |/ / /___ / /___/ /_/ // // /| /
// /_____/_... | Transfer token by internal | function _transfer(address _from, address _to, uint256 _value) internal {
require(_to != address(0), "");
require(balances[_from] >= _value, "");
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
emit Transfer(_from, _to, _value);
... | 10,715,989 | [
1,
5912,
1147,
635,
2713,
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,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
2713,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
3631,
1408,
1769,
203,
3639,
2583,
12,
70,
26488,
63,
67,
2080,
65,
1545,
... |
pragma solidity ^0.4.11;
/*
--------------------
Distribute PP Tokens
Token: ICX
Qty: 9722223 (9722223000000000000000000)
--------------------
METHODS:
withdrawAll() -- Withdraws tokens to all payee addresses, withholding a quantity for gas cost
changeToken(address _token) -- Changes ERC20 token contract ... | --------------------------ADMINS-------------------------- ------------------------- PAYEES ----------------------- | function Distribute() public {
admins.push(msg.sender);
admins.push(0x8FB9A786BA4670AD13598b01576d247De09C79d1);
admins.push(0x008bEd0B3e3a7E7122D458312bBf47B198D58A48);
admins.push(0x006501524133105eF4C679c40c7df9BeFf8B0FED);
admins.push(0xed4aEddAaEDA94a7617B2C9D4CBF9a9eDC781573);
admins.push(0xff4C40e27... | 1,046,712 | [
1,
1271,
15392,
15468,
55,
1271,
15392,
12146,
788,
25095,
41,
3991,
12146,
13093,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3035,
887,
1435,
1071,
288,
203,
202,
202,
3666,
87,
18,
6206,
12,
3576,
18,
15330,
1769,
203,
202,
202,
3666,
87,
18,
6206,
12,
20,
92,
28,
22201,
29,
37,
27,
5292,
12536,
8749,
7301,
1880,
3437,
6162,
28,
70,
1611... |
pragma solidity ^0.4.24;
/**
* @title ERC165
* @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
*/
interface ERC165 {
/**
* @notice Query if a contract implements an interface
* @param _interfaceId The interface identifier, as specified in ERC-165
* @dev Interface identification is spec... | @notice Function to pick random assets from potentialAssets array @param _finalSeed is final random seed @param _potentialAssets is bytes32[] array of potential assets @return uint[] array of randomly picked assets | function pickRandomAssets(uint _finalSeed, bytes32[] _potentialAssets) public pure returns(uint[] finalPicked) {
require(_finalSeed != 0);
require(_potentialAssets.length > 0);
uint[] memory assetIds = decodeAssets(_potentialAssets);
uint[] memory pickedIds = new uint[](assetIds.len... | 562,980 | [
1,
2083,
358,
6002,
2744,
7176,
628,
8555,
10726,
526,
225,
389,
6385,
12702,
353,
727,
2744,
5009,
225,
389,
26451,
10726,
353,
1731,
1578,
8526,
526,
434,
8555,
7176,
327,
2254,
8526,
526,
434,
20153,
25534,
7176,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
6002,
8529,
10726,
12,
11890,
389,
6385,
12702,
16,
1731,
1578,
8526,
389,
26451,
10726,
13,
1071,
16618,
1135,
12,
11890,
8526,
727,
17968,
329,
13,
288,
203,
3639,
2583,
24899,
6385,
12702,
480,
374,
1769,
203,
3639,
25... |
/**
*Submitted for verification at Etherscan.io on 2020-12-17
*/
pragma solidity 0.6.11;
// SPDX-License-Identifier: BSD-3-Clause
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
ui... | * @dev Staking Smart Contract - Users stake Uniswap LP Tokens to receive WETH and DYP Tokens as Rewards - Reward Tokens (DYP) are added to contract balance upon deployment by deployer - After Adding the DYP rewards, admin is supposed to transfer ownership to Governance contract - Users deposit Set (Predecided) Unis... | contract FarmProRata is Ownable {
using SafeMath for uint;
using EnumerableSet for EnumerableSet.AddressSet;
using Address for address;
modifier noContractsAllowed() {
require(!(address(msg.sender).isContract()) && tx.origin == msg.sender, "No Contracts Allowed!");
_;
}
eve... | 15,437,897 | [
1,
510,
6159,
19656,
13456,
225,
300,
12109,
384,
911,
1351,
291,
91,
438,
511,
52,
13899,
358,
6798,
678,
1584,
44,
471,
463,
61,
52,
13899,
487,
534,
359,
14727,
225,
300,
534,
359,
1060,
13899,
261,
40,
61,
52,
13,
854,
3096,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
478,
4610,
626,
54,
396,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
... |
pragma solidity ^0.4.24;
import "./MintableBurnableERC20.sol";
/*
* But it might be better to collapse elaborate inheritance hierarchies!
*/
contract ProxyableMintableBurnableERC20 is MintableBurnableERC20 {
/*
* This reproduces work that occurs in a parent class constructor.
* Ideally, the constructor ... | But it might be better to collapse elaborate inheritance hierarchies!/ | contract ProxyableMintableBurnableERC20 is MintableBurnableERC20 {
function initialize( address _owner ) public {
require(owner == 0);
owner = _owner;
}
}
| 12,873,911 | [
1,
31167,
518,
4825,
506,
7844,
358,
13627,
415,
378,
280,
340,
16334,
366,
5148,
606,
5,
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... | [
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,
16351,
7659,
429,
49,
474,
429,
38,
321,
429,
654,
39,
3462,
353,
490,
474,
429,
38,
321,
429,
654,
39,
3462,
288,
203,
203,
225,
445,
4046,
12,
1758,
389,
8443,
262,
1071,
288,
203,
565,
2583,
12,
8443,
422,
374,
1769,
203,
... |
./full_match/1/0x6b142f8A4614378AE398c3180c8D3056c5570Eae/sources/PoisonERE.sol | Creates a uniswap v2 pair of itself with weth | function _createPair() internal {
IUniswapV2Router02 router = IUniswapV2Router02(routerAddress);
IUniswapV2Factory(router.factory()).createPair(address(this), router.WETH());
}
| 4,920,449 | [
1,
2729,
279,
640,
291,
91,
438,
331,
22,
3082,
434,
6174,
598,
341,
546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2640,
4154,
1435,
2713,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
4633,
273,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
12,
10717,
1887,
1769,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
1733,... |
pragma solidity >= 0.5.0 < 0.6.0;
import "./SafeMath.sol";
import "./usingOraclize.sol";
contract MarketCoin is usingOraclize {
// Use SafeMath library for uint256
using SafeMath for uint256;
//
// VARIABLES
//
bool public oraclizeRecursiveQuery;
address owner;
address updater;
/... | Gives currency details. @param {bytes32} _currency - currency type, e.g. usd @return {uint256, string} - current currency price, api/ | function getCurrencyDetails(bytes32 _currency) external view returns(uint256, string memory) {
require(currencies[_currency].init, "Cannot find given currency");
Currency memory currency = currencies[_currency];
return(
currency.price,
currency.api
);
}
... | 15,803,890 | [
1,
43,
3606,
5462,
3189,
18,
225,
288,
3890,
1578,
97,
389,
7095,
300,
5462,
618,
16,
425,
18,
75,
18,
584,
72,
327,
288,
11890,
5034,
16,
533,
97,
300,
783,
5462,
6205,
16,
1536,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
17910,
3790,
12,
3890,
1578,
389,
7095,
13,
3903,
1476,
1135,
12,
11890,
5034,
16,
533,
3778,
13,
288,
203,
3639,
2583,
12,
1397,
14695,
63,
67,
7095,
8009,
2738,
16,
315,
4515,
1104,
864,
5462,
8863,
203,
203,
3639,
... |
./partial_match/3/0xDEFc008BAC1e38F13F081DDD20acf89985DFa7C8/sources/BoostedSavingsVault.sol | * @dev Computes the boost for boost = min(0.5 + 2 voting_weight / deposit^(7/8), 1.5)/ Compute balance to the power 7/8 | function _computeBoost(uint256 _deposit, uint256 _votingWeight)
private
pure
returns (uint256)
{
require(_deposit >= MIN_DEPOSIT, "Requires minimum deposit value");
if(_votingWeight == 0) return MIN_BOOST;
uint256 denominator = Root.sqrt(Root.sqrt(Root.sqrt(_dep... | 5,072,173 | [
1,
10743,
326,
14994,
364,
14994,
273,
1131,
12,
20,
18,
25,
397,
576,
225,
331,
17128,
67,
4865,
342,
443,
1724,
29020,
27,
19,
28,
3631,
404,
18,
25,
13176,
8155,
11013,
358,
326,
7212,
2371,
19,
28,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
9200,
26653,
12,
11890,
5034,
389,
323,
1724,
16,
2254,
5034,
389,
90,
17128,
6544,
13,
203,
3639,
3238,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2583,
24899,
323,
1724,
15... |
./partial_match/42/0xc2B28F1dE060c379F5687C8f675be4883508AfEC/sources/EtherCollateralpUSD.sol | The last interest accrued timestamp for the loan If lastInterestAccrued timestamp is not set (0), use loan timeCreated diff between last interested accrued and now use loan's timeClosed if loan is closed | function _timeSinceInterestAccrual(PynthLoanStruct memory _synthLoan) private view returns (uint256 timeSinceAccrual) {
uint256 lastInterestAccrual = _synthLoan.lastInterestAccrued > 0
? uint256(_synthLoan.lastInterestAccrued)
: _synthLoan.timeCreated;
timeSinceAccrual = _sy... | 3,482,102 | [
1,
1986,
1142,
16513,
4078,
86,
5957,
2858,
364,
326,
28183,
971,
1142,
29281,
8973,
86,
5957,
2858,
353,
486,
444,
261,
20,
3631,
999,
28183,
813,
6119,
3122,
3086,
1142,
20506,
4078,
86,
5957,
471,
2037,
999,
28183,
1807,
813,
7395,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
957,
9673,
29281,
8973,
86,
1462,
12,
52,
878,
451,
1504,
304,
3823,
3778,
389,
11982,
451,
1504,
304,
13,
3238,
1476,
1135,
261,
11890,
5034,
813,
9673,
8973,
86,
1462,
13,
288,
203,
3639,
2254,
5034,
1142,
29281,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | @dev Helper to set a fee recipient | function __setRecipientForFund(address _comptrollerProxy, address _recipient) internal {
comptrollerProxyToRecipient[_comptrollerProxy] = _recipient;
emit RecipientSetForFund(_comptrollerProxy, _recipient);
}
| 1,563,466 | [
1,
2276,
358,
444,
279,
14036,
8027,
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,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
542,
18241,
1290,
42,
1074,
12,
2867,
389,
832,
337,
1539,
3886,
16,
1758,
389,
20367,
13,
2713,
288,
203,
3639,
532,
337,
1539,
3886,
774,
18241,
63,
67,
832,
337,
1539,
3886,
65,
273,
389,
20367,
31,
203,
203,... |
/** Copyright (c) 2018, ZSC Dev Team
* 2018-10-19: v0.00.01
*/
pragma solidity ^0.4.25;
// pragma experimental ABIEncoderV2;
import "../common/pausable.sol";
import "../common/delegate.sol";
contract InsuranceCompany {
function update(string _key, string _data) external;
function remove(string _key) exte... | * @dev Update the threshold of different types of bonus integrals. @param _type uint8 The types of bonus integrals. 0: User sign up. 1: User submit data. 2: User check in every day. 3: User invite others. 4: User share to Wechat. 5: User share to QQ. 6: User share... | function integralUpdateThreshold(uint8 _type, uint _threshold) external whenNotPaused _onlyOwner _checkIntegralAddr {
InsuranceIntegral(integralAddr_).updateThreshold(_type, _threshold);
}
| 12,869,003 | [
1,
1891,
326,
5573,
434,
3775,
1953,
434,
324,
22889,
11301,
1031,
18,
225,
389,
723,
2254,
28,
1021,
1953,
434,
324,
22889,
11301,
1031,
18,
540,
374,
30,
2177,
1573,
731,
18,
540,
404,
30,
2177,
4879,
501,
18,
540,
576,
30,
2177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21423,
1891,
7614,
12,
11890,
28,
389,
723,
16,
2254,
389,
8699,
13,
3903,
1347,
1248,
28590,
389,
3700,
5541,
389,
1893,
11476,
287,
3178,
288,
203,
3639,
657,
10050,
1359,
11476,
287,
12,
14970,
23811,
3178,
67,
2934,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.7;
/*
██████╗ ███████╗ █████╗ ██╗ ██╗████████╗██╗ ██╗ ██████╗ █████╗ ██████╗ ██████╗ ███████╗
██╔══██╗██╔════╝██╔══██╗██║ ██║╚══██╔══╝╚██╗ ██╔╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔════╝
██████╔╝█████╗ ███████║██║ ██║ ██║ ╚████╔╝ ██║ ██████... | ╔═════════════════════════════════╗ @dev the market each NFT belongs to @dev governance variables╔═════════════════════════════════╗ | modifier onlyUberOwner() {
require(
treasury.checkPermission(UBER_OWNER, msgSender()),
"Not approved"
);
_;
}
╚═════════════════════════════════╝*/
constructor(address _factoryAddress, address childChainManager)
ERC721("RealityCards", "RC")
| 15,870,871 | [
1,
163,
248,
247,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
9606,
1338,
57,
744,
5541,
1435,
288,
203,
3639,
2583,
12,
203,
5411,
9787,
345,
22498,
18,
1893,
5041,
12,
3457,
654,
67,
29602,
16,
1234,
12021,
1435,
3631,
203,
5411,
315,
1248,
20412,
6,
203,
3639,
11272,
203,
3639,
389,... |
./partial_match/1/0x17bC6558834F60236B917408691AB555c6662AD8/sources/CORE_LGE_3.sol | stored as 1e18 more - this is done for change
| uint256 public LPPerCOREUnitContributed; | 2,674,104 | [
1,
22601,
487,
404,
73,
2643,
1898,
300,
333,
353,
2731,
364,
2549,
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,
2254,
5034,
1071,
511,
52,
2173,
15715,
2802,
442,
11050,
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,
... |
pragma solidity 0.5.8;
import "../modules/TransferManager/CTM/CountTransferManager.sol";
/**
* @title Transfer Manager for limiting maximum number of token holders
*/
contract MockCountTransferManager is CountTransferManager {
event Upgrader(uint256 _someData);
uint256 public someValue;
/**
* @no... | * @title Transfer Manager for limiting maximum number of token holders/ | contract MockCountTransferManager is CountTransferManager {
event Upgrader(uint256 _someData);
uint256 public someValue;
constructor(address _securityToken, address _polyToken) public CountTransferManager(_securityToken, _polyToken) {
}
function initialize(uint256 _someData) public {
req... | 13,050,917 | [
1,
5912,
8558,
364,
1800,
310,
4207,
1300,
434,
1147,
366,
4665,
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,
16351,
7867,
1380,
5912,
1318,
353,
6974,
5912,
1318,
288,
203,
203,
565,
871,
1948,
22486,
12,
11890,
5034,
389,
19068,
751,
1769,
203,
565,
2254,
5034,
1071,
2690,
620,
31,
203,
203,
565,
3885,
12,
2867,
389,
7462,
1345,
16,
17... |
./full_match/1/0xE8CC47323867A3b15E27c986A92a0e4edB078848/sources/contracts/DAXLicensingERC20.sol | @dev Get the smart contract's balance of tokens | function paymentsInSmartContract() external view virtual returns(uint256) {
return erc20Token.balanceOf(address(this));
}
| 8,379,089 | [
1,
967,
326,
13706,
6835,
1807,
11013,
434,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
25754,
382,
23824,
8924,
1435,
3903,
1476,
5024,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
6445,
71,
3462,
1345,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
565,
289,
7010,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "contracts/drop/DropERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
// Test imports
import "../utils/BaseTest.sol";
contract SubExploitContract is ERC721Holder, ERC1155Holder {
DropERC721 internal drop;
address payable int... | @dev Lets an account claim NFTs. | function claimDrop(
address _receiver,
uint256 _quantity,
address _currency,
uint256 _pricePerToken,
bytes32[] calldata _proofs,
uint256 _proofMaxQuantityPerTransaction
) external {
drop.claim(_receiver, _quantity, _currency, _pricePerToken, _proofs, _proo... | 7,273,135 | [
1,
48,
2413,
392,
2236,
7516,
423,
4464,
87,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
7544,
12,
203,
3639,
1758,
389,
24454,
16,
203,
3639,
2254,
5034,
389,
16172,
16,
203,
3639,
1758,
389,
7095,
16,
203,
3639,
2254,
5034,
389,
8694,
2173,
1345,
16,
203,
3639,
1731,
1578,
8526,
745,
892,
389,
24207... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./lib/SafeMath.sol";
import "./lib/SafeERC20.sol";
/**
* @title Claim
* @dev The claim contract allows users to claim grants. Any unclaimed tokens may
* be recovered by owner after a given deadline.
*/
contract Claim {
using SafeMath for uint256... | @notice YAK token @notice Deadline to claim tokens @notice Mapping of recipient address > current token grant balance @notice Current owner of this contract @notice Event emitted when a new grant is created @notice Event emitted when tokens are claimed by a recipient from a grant @notice Event emitted when tokens are ... | constructor(address _token, uint256 daysToClaim) {
require(_token != address(0), "Claim::constructor: must be valid token address");
token = IERC20(_token);
owner = msg.sender;
deadline = block.timestamp.add(daysToClaim.mul(86400));
}
| 12,893,486 | [
1,
61,
14607,
1147,
225,
23967,
1369,
358,
7516,
2430,
225,
9408,
434,
8027,
1758,
405,
783,
1147,
7936,
11013,
225,
6562,
3410,
434,
333,
6835,
225,
2587,
17826,
1347,
279,
394,
7936,
353,
2522,
225,
2587,
17826,
1347,
2430,
854,
751... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
12,
2867,
389,
2316,
16,
2254,
5034,
4681,
774,
9762,
13,
288,
203,
3639,
2583,
24899,
2316,
480,
1758,
12,
20,
3631,
315,
9762,
2866,
12316,
30,
1297,
506,
923,
1147,
1758,
8863,
203,
3639,
1147,
273,
467,
654,
39,
... |
/**
*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 Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is forwarded in {IERC721Receiver-onERC721Received} to contract recipients./ | function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
| 2,096,819 | [
1,
8650,
487,
288,
22044,
17,
654,
39,
27,
5340,
17,
67,
4626,
49,
474,
17,
2867,
17,
11890,
5034,
17,
20294,
68,
67,
4626,
49,
474,
68,
6487,
598,
392,
3312,
1375,
892,
68,
1569,
1492,
353,
19683,
316,
288,
45,
654,
39,
27,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
915,
389,
4626,
49,
474,
12,
203,
2867,
358,
16,
203,
11890,
5034,
1147,
548,
16,
203,
3890,
3778,
389,
892,
203,
13,
2713,
5024,
288,
203,
67,
81,
474,
12,
869,
16,
1147,
548,
1769,
203,
6528,
12,
203,
67,
1893,
1398,
654,
... |
./full_match/56/0xd3a0Ea5feD3815ca2781ff87e64878A4fA512070/sources/AAPTPres.sol | * @param investor Investor address/ | function deposit(address investor) public payable onlyOwner {
require(state == State.Active);
deposited[investor] = deposited[investor].add(msg.value);
}
| 3,237,867 | [
1,
5768,
395,
280,
5454,
395,
280,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
12,
2867,
2198,
395,
280,
13,
1071,
8843,
429,
1338,
5541,
288,
203,
3639,
2583,
12,
2019,
422,
3287,
18,
3896,
1769,
203,
3639,
443,
1724,
329,
63,
5768,
395,
280,
65,
273,
443,
1724,
329,
63,
5768,
395,
... |
pragma solidity 0.4.25;
// ----------------------------------------------------------------------------
// 'PAYTOKEN' contract with following features
// => In-built ICO functionality - Infinite duration
// => ERC20 Compliance
// => Higher control of ICO by admin/owner
// => selfdestruct functionali... | * Destroy tokens Remove `_value` tokens from the system irreversibly @param _value the amount of money to burn/ | function burn(uint256 _value) public returns (bool success) {
require(!safeguard);
emit Burn(msg.sender, _value);
return true;
}
| 1,510,134 | [
1,
10740,
2430,
3581,
1375,
67,
1132,
68,
2430,
628,
326,
2619,
9482,
266,
2496,
24755,
225,
389,
1132,
326,
3844,
434,
15601,
358,
18305,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
445,
18305,
12,
11890,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
5411,
2583,
12,
5,
87,
1727,
1332,
89,
1060,
1769,
203,
5411,
202,
18356,
605,
321,
12,
3576,
18,
15330,
16,
389,
1132,
1769,
203,
541... |
./full_match/421613/0x261F18200b3094Ab6A7Ba368c349Ca1c86FB6b5F/sources/project_/contracts/core/erc721_upgradeable/LivsAccessControl.sol | @dev Assigns a new address to act as the COO. Only available to the current CEO. @param _newCOO The address of the new COO | function setCOO(address _newCOO) external onlyCEO {
require(_newCOO != address(0));
cooAddress = _newCOO;
}
| 11,573,338 | [
1,
24842,
279,
394,
1758,
358,
1328,
487,
326,
7910,
51,
18,
5098,
2319,
358,
326,
783,
29538,
51,
18,
225,
389,
2704,
3865,
51,
1021,
1758,
434,
326,
394,
7910,
51,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
3865,
51,
12,
2867,
389,
2704,
3865,
51,
13,
3903,
1338,
1441,
51,
288,
203,
3639,
2583,
24899,
2704,
3865,
51,
480,
1758,
12,
20,
10019,
203,
3639,
1825,
83,
1887,
273,
389,
2704,
3865,
51,
31,
203,
565,
289,
... |
./full_match/11155111/0xCE1903de394C97409d65426E9f45a429D4D4c010/sources/contracts/Contract.sol | Public access functions | function addCert(
string memory _firstName,
string memory _middleNames,
string memory _lastName,
string memory _birthPlace,
string memory _birthDate,
uint256 _studentId,
string memory _gpa,
string memory _school,
string memory _degree,
... | 3,813,474 | [
1,
4782,
2006,
4186,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
5461,
12,
203,
3639,
533,
3778,
389,
3645,
461,
16,
203,
3639,
533,
3778,
389,
18661,
1557,
16,
203,
3639,
533,
3778,
389,
2722,
461,
16,
203,
3639,
533,
3778,
389,
22531,
6029,
16,
203,
3639,
533,
3778,
389,
225... |
pragma solidity ^0.5.0;
import "./HeroToken.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
/**
* @title ItemFactory
* @author Arseny Kin
* @notice Contract for Item creation
*/
contract ItemFactory is Ownable {
HeroToken public heroToken;
constructor(address _heroToken) public {
... | * @dev Updates item xp @param id item id @param newXp new xp value/ | function updateItemXp(uint id, uint newXp) public onlyOwner{
require(isUpgradable(id),
"This item is not upgradable");
require(itemExists(id),
"Item does not exist" );
items[id].XP = newXp;
emit ItemXpGained(id, newXp);
}
| 14,102,176 | [
1,
5121,
761,
13681,
225,
612,
761,
612,
225,
394,
60,
84,
394,
13681,
460,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
1180,
60,
84,
12,
11890,
612,
16,
2254,
394,
60,
84,
13,
1071,
1338,
5541,
95,
203,
377,
202,
6528,
12,
291,
1211,
9974,
429,
12,
350,
3631,
203,
377,
1082,
202,
6,
2503,
761,
353,
486,
731,
9974,
429,
8863,
... |
//SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0 <0.9.0;
contract Auction{
address payable public owner;
uint public startBlock;
uint public endBlock;
string public ipfsHash;
enum State {Started, Running, Ended, Canceled}
State public auctionState;
uint public hig... | a helper pure function (it neither reads, nor it writes to the blockchain) | function min(uint a, uint b) pure internal returns(uint){
if (a <= b){
return a;
return b;
}
}
| 5,364,115 | [
1,
69,
4222,
16618,
445,
261,
305,
15826,
6838,
16,
12517,
518,
7262,
358,
326,
16766,
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,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1131,
12,
11890,
279,
16,
2254,
324,
13,
16618,
2713,
1135,
12,
11890,
15329,
203,
3639,
309,
261,
69,
1648,
324,
15329,
203,
5411,
327,
279,
31,
203,
5411,
327,
324,
31,
203,
3639,
289,
203,
565,
289,
203,
377,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IERC721.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract KittyContract is IERC721, Ownable {
using SafeMath for uint256;
mapping(uint256 => address) public kittyIndexToOwner; // an interger or index to an address
... | could be external but externals can only be called from outside not within this contract | function totalSupply() public view override returns (uint256 total) {
return kitties.length;
}
| 1,755,693 | [
1,
15195,
506,
3903,
1496,
18885,
1031,
848,
1338,
506,
2566,
628,
8220,
486,
3470,
333,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2078,
3088,
1283,
1435,
1071,
1476,
3849,
1135,
261,
11890,
5034,
2078,
13,
288,
203,
565,
327,
31758,
88,
606,
18,
2469,
31,
203,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x6F8f25160c899Eb8B7b31a6aad6EAB12523EB942/sources/contracts/Tradeable.sol | * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-free listings./ Whitelist OpenSea proxy contract for easy trading. | function isApprovedForAll(
address _owner,
address _operator
) public override virtual view returns (bool isOperator) {
ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
if (address(proxyRegistry.proxies(_owner)) == _operator) {
return true;
}
return ERC1155.isApprove... | 13,331,228 | [
1,
6618,
353,
31639,
1290,
1595,
358,
10734,
729,
1807,
3502,
1761,
69,
2889,
9484,
358,
4237,
16189,
17,
9156,
666,
899,
18,
19,
3497,
7523,
3502,
1761,
69,
2889,
6835,
364,
12779,
1284,
7459,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
353,
31639,
1290,
1595,
12,
203,
565,
1758,
389,
8443,
16,
203,
565,
1758,
389,
9497,
203,
225,
262,
1071,
3849,
5024,
1476,
1135,
261,
6430,
353,
5592,
13,
288,
203,
565,
7659,
4243,
2889,
4243,
273,
7659,
4243,
12,
... |
./partial_match/1/0x5d379D4104d1ABb6d7653FD7D2a1795D7Ae76F5D/sources/Ximension.sol | * @dev Equivalent to `_safeMint(to, quantity, '')`./ | function _safeMint(address to, uint256 quantity) internal virtual {
_safeMint(to, quantity, '');
}
| 9,227,499 | [
1,
22606,
358,
1375,
67,
4626,
49,
474,
12,
869,
16,
10457,
16,
28707,
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,
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,
4626,
49,
474,
12,
2867,
358,
16,
2254,
5034,
10457,
13,
2713,
5024,
288,
203,
3639,
389,
4626,
49,
474,
12,
869,
16,
10457,
16,
23489,
203,
565,
289,
203,
203,
377,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-... |