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 |
|---|---|---|---|---|---|---|
/**
*Submitted for verification at Etherscan.io on 2021-03-23
*/
//
// &&&&
// &&&&
// &&&&
// &&&& &&&&&&&&& &&&&&&&&&&&& &&&&&&&&&&/ &&&&.&&&&&&&&&
// &&&&&&&&& &&&&& &&&&&& &&&&&, &&&&& &&&&& &&&&&&&& &&&... | * @dev Called by liquidty provider to deposit their Uniswap HOPR-DAI tokens to the contract It updates the current balance and the eligible farming balance @notice An `apprpove(<farm contract>, amount)` needs to be called prior to `openFarm` @param amount Amount of pool token to be staked into the contract./ | function openFarm(uint256 amount) external nonReentrant {
_openFarm(amount, msg.sender);
}
| 15,348,509 | [
1,
8185,
635,
4501,
26595,
4098,
2893,
358,
443,
1724,
3675,
1351,
291,
91,
438,
670,
3665,
54,
17,
9793,
45,
2430,
358,
326,
6835,
2597,
4533,
326,
783,
11013,
471,
326,
21351,
284,
4610,
310,
11013,
225,
1922,
1375,
438,
683,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
42,
4610,
12,
11890,
5034,
3844,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
389,
3190,
42,
4610,
12,
8949,
16,
1234,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.19;
import "./SafeMath.sol";
import "./TST20Interface.sol";
import "./PermissionGroups.sol";
contract TransToken is PermissionGroups {
using SafeMath for uint;
TST20 public MyToken;
uint constant public decimals = 18;
uint public minTransValue = 1*10**decimals; // 1 Toke... | withdraw TTC by admin */ | function withdrawTTC() onlyAdmin public {
require(adminWithdrawAddress.send(this.balance));
}
| 5,355,764 | [
1,
1918,
9446,
399,
15988,
635,
3981,
342,
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,
598,
9446,
1470,
39,
1435,
1338,
4446,
1071,
288,
203,
3639,
2583,
12,
3666,
1190,
9446,
1887,
18,
4661,
12,
2211,
18,
12296,
10019,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.21;
// Using this contract to deploy many ballot as you want
contract BallotFactory {
uint public costPerBallot; // you must pay "costPerBallot" ether to create new ballot
address public owner;
address[] public deployedBallots;
constructor (uint _costPerBallot) public payable... | HELPER FUNCTION Get index of candidate by id | function indexOfCandidate(uint _id) private view returns (uint) {
for(uint i = 0; i < candidateList.length; i++) {
if (candidateList[i].id == _id) {
return i;
}
}
return uint(-1);
}
| 12,549,877 | [
1,
20264,
3194,
13690,
968,
770,
434,
5500,
635,
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,
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,
3133,
11910,
12,
11890,
389,
350,
13,
3238,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
364,
12,
11890,
277,
273,
374,
31,
277,
411,
5500,
682,
18,
2469,
31,
277,
27245,
288,
203,
5411,
309,
261,
19188,
682,
63,
77,
... |
// hevm: flattened sources of src/DssSpell.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity =0.6.12 >=0.5.12 >=0.6.12 <0.7.0;
////// lib/dss-exec-lib/src/CollateralOpts.sol
/* pragma solidity ^0.6.12; */
struct CollateralOpts {
bytes32 ilk;
address gem;
address join;
address clip;
... | Content Production Core Unit | address constant MKT_MULTISIG = 0xDCAF2C84e1154c8DdD3203880e5db965bfF09B60;
| 1,687,465 | [
1,
1350,
10856,
349,
4586,
8380,
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,
1758,
5381,
490,
47,
56,
67,
26588,
18513,
3639,
273,
374,
17593,
3587,
42,
22,
39,
5193,
73,
2499,
6564,
71,
28,
40,
72,
40,
1578,
4630,
28,
3672,
73,
25,
1966,
29,
9222,
17156,
42,
5908,
38,
4848,
31,
203,
2,
-100,
-... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./FeeOwner.sol";
import "./Fee1155.sol";
/**
@title A basic smart contract for tracking the ownership of SuperFarm Items.
@author Ti... | / Iterate through every specified item to make an offer on items. Record an offer for this item. | Shop owner. This function takes a user's Ether into escrow for the offer.
@param _itemGroupIds An array of (unique) item groups for a user to place an offer for.
function makeOffers(uint256[] calldata _itemGroupIds) public nonReentrant payable {
require(_itemGroupIds.length > 0,
"You must make an o... | 1,271,999 | [
1,
19,
11436,
3059,
3614,
1269,
761,
358,
1221,
392,
10067,
603,
1516,
18,
5059,
392,
10067,
364,
333,
761,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
17568,
3410,
18,
1220,
445,
5530,
279,
729,
1807,
512,
1136,
1368,
2904,
492,
364,
326,
10067,
18,
203,
203,
565,
632,
891,
389,
1726,
1114,
2673,
1922,
526,
434,
261,
6270,
13,
761,
3252,
364,
279,
729,
358,
3166,
392,
10... |
./partial_match/1/0xdf3ac4F479375802A821f7b7b46Cd7EB5E4262cC/sources/contracts/lybra/token/EUSD.sol | * @notice Moves `_amount` tokens from `_sender` to `_recipient`. Emits a `Transfer` event. Emits a `TransferShares` event./ | function _transfer(address _sender, address _recipient, uint256 _amount) internal {
uint256 _sharesToTransfer = getSharesByMintedEUSD(_amount);
_transferShares(_sender, _recipient, _sharesToTransfer);
emit Transfer(_sender, _recipient, _amount);
emit TransferShares(_sender, _recipien... | 2,701,804 | [
1,
19297,
1375,
67,
8949,
68,
2430,
628,
1375,
67,
15330,
68,
358,
1375,
67,
20367,
8338,
7377,
1282,
279,
1375,
5912,
68,
871,
18,
7377,
1282,
279,
1375,
5912,
24051,
68,
871,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
389,
15330,
16,
1758,
389,
20367,
16,
2254,
5034,
389,
8949,
13,
2713,
288,
203,
3639,
2254,
5034,
389,
30720,
774,
5912,
273,
1322,
3395,
455,
858,
49,
474,
329,
41,
3378,
40,
24899,
8949,
1769,
... |
pragma solidity ^0.6.0;
import "../node_modules/@openzeppelin/contracts/access/AccessControl.sol";
import "../node_modules/@openzeppelin/contracts/GSN/Context.sol";
import "../node_modules/@openzeppelin/contracts/math/SafeMath.sol";
import "./VoteNFT.sol";
contract Elections is Context, AccessControl, VoteNFT {
u... | * @dev Vote on a given proposal @param proposal number of proposal @param electionID ID of election in which voter is delegating their vote/ Only two choices in the electionReward proposer with NFT | function vote(uint proposal, uint electionID) public onlyVoter {
require(proposal < 2, "Invalid proposal number");
Election storage e = elections[electionID];
require(block.timestamp < e.deadline, "Voting deadline has expired");
Voter storage sender = e.voters[_msgSender()];
... | 12,604,967 | [
1,
19338,
603,
279,
864,
14708,
225,
14708,
1300,
434,
14708,
225,
25526,
734,
1599,
434,
25526,
316,
1492,
331,
20005,
353,
11158,
1776,
3675,
12501,
19,
5098,
2795,
7246,
316,
326,
25526,
17631,
1060,
450,
5607,
598,
423,
4464,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12501,
12,
11890,
14708,
16,
2254,
25526,
734,
13,
1071,
1338,
58,
20005,
288,
203,
3639,
2583,
12,
685,
8016,
411,
576,
16,
315,
1941,
14708,
1300,
8863,
203,
3639,
512,
942,
2502,
425,
273,
25526,
87,
63,
292,
794,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.16 <0.9.0;
/**
@title Contract that faciliate the voting of Star Wars Characters
*/
contract StarWarsPoll {
//Total Number of Characters in the Poll
uint256 private _totalCharacters;
// Read/write
mapping(address => bool) private _a... | /Setting the number of characters in the poll | function setTotalCharacters(uint256 _numCharacters) external {
require(
_numCharacters != _totalCharacters,
"The Amount of Characters Is already set at the value entered"
);
_totalCharacters = _numCharacters;
}
@return returns a uint representing the total a... | 13,138,527 | [
1,
19,
5568,
326,
1300,
434,
3949,
316,
326,
7672,
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,
25015,
11600,
12,
11890,
5034,
389,
2107,
11600,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
389,
2107,
11600,
480,
389,
4963,
11600,
16,
203,
5411,
315,
1986,
16811,
434,
3703,
9202,
2585,
1818,
444,
622,
326,
460,
... |
./partial_match/56/0x2b28688e290aF66Fbf67280937399140B5F1Dda3/sources/BerryMaster.sol | * @dev Gets the a value for the latest timestamp available @return value for timestamp of last proof of work submited @return true if the is a timestamp for the lastNewValue/ | function getLastNewValue() external view returns (uint256, bool) {
return berry.getLastNewValue();
}
| 11,057,050 | [
1,
3002,
326,
279,
460,
364,
326,
4891,
2858,
2319,
327,
460,
364,
2858,
434,
1142,
14601,
434,
1440,
4879,
329,
327,
638,
309,
326,
353,
279,
2858,
364,
326,
1142,
1908,
620,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7595,
1908,
620,
1435,
3903,
1476,
1135,
261,
11890,
5034,
16,
1426,
13,
288,
203,
3639,
327,
324,
21938,
18,
588,
3024,
1908,
620,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the... | Update total supply with the decimal amount
| totalSupply = 100000000000 * 10 ** uint256(decimals); | 10,840,284 | [
1,
1891,
2078,
14467,
598,
326,
6970,
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,
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,
3639,
2078,
3088,
1283,
273,
225,
15088,
11706,
380,
1728,
2826,
2254,
5034,
12,
31734,
1769,
282,
2,
-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/0x0ded7fAf50DB3bb369fD87f9ec7558d7e7cDd6c4/sources/APU.sol | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
Welcome,
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 15,527,060 | [
1,
17727,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
486,
506,
15539,
316,
4123,
279,
2657,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
1772,
288,
203,
59,
16312,
16,
203,
203,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
565,
445,
389,
3576,
75... |
// SPDX-License-Identifier: WTFPL
pragma solidity 0.8.12;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "../BaseIDO.sol";
/**
* @notice In this IDO, the `asset` *MUST* conform to `IERC721`.
*/
abstract contract BaseERC721IDO is BaseIDO {
constructor(address _owner, Config memory config) Bas... | * @notice Transfers all balance of ERC721 `asset` from `this` contract to `owner`/ | function _returnAssets(uint256[] memory tokenIds) internal virtual override {
address _asset = asset;
for (uint256 i; i < tokenIds.length; i++) {
IERC721(_asset).safeTransferFrom(address(this), owner(), tokenIds[i]);
}
}
| 13,018,660 | [
1,
1429,
18881,
777,
11013,
434,
4232,
39,
27,
5340,
1375,
9406,
68,
628,
1375,
2211,
68,
6835,
358,
1375,
8443,
68,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2463,
10726,
12,
11890,
5034,
8526,
3778,
1147,
2673,
13,
2713,
5024,
3849,
288,
203,
3639,
1758,
389,
9406,
273,
3310,
31,
203,
3639,
364,
261,
11890,
5034,
277,
31,
277,
411,
1147,
2673,
18,
2469,
31,
277,
27245,... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'SPEX' 'ShareProfitEx'
//
// Symbol : SPEX
// Name : ShareProfitEx
// Total supply: 200,000,000.000000000000000000
// Decimals : 18
//
//
// (c) BokkyPooBah / Bok Consulting Pty Ltd 2017. The MIT ... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and an initial fixed supply ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Cons... | contract SPEX is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
function SPEX() public {
symb... | 331,008 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
392,
2172,
5499,
14467,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
348,
1423,
60,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
20... |
pragma solidity ^0.4.24;
import "./AddrPublic.sol";
contract PermsMng is AddrPublic {
// owner from entry contract
address owner;
// perm owner addresses
address[] public governs;
event GovernUpdated(uint id, address prevGovern, address newGovern);
event PermUpdated(uint id, address prevPerm... | owner from entry contract perm owner addresses | contract PermsMng is AddrPublic {
address owner;
address[] public governs;
event GovernUpdated(uint id, address prevGovern, address newGovern);
event PermUpdated(uint id, address prevPerm, address newPerm);
modifier onlyOwner {
require(msg.sender == owner, "Not the owner");
_;
... | 12,781,068 | [
1,
8443,
628,
1241,
6835,
4641,
3410,
6138,
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,
453,
5044,
49,
3368,
353,
10216,
4782,
288,
203,
565,
1758,
3410,
31,
203,
565,
1758,
8526,
1071,
314,
1643,
2387,
31,
203,
203,
565,
871,
611,
1643,
82,
7381,
12,
11890,
612,
16,
1758,
2807,
43,
1643,
82,
16,
1758,
394,... |
pragma solidity ^0.4.24;
contract Crowdsale {
using SafeMath for uint256;
using SafeERC20 for ERC20;
// The token being sold
ERC20 public token;
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei.
// The rate is the conversion betwee... | * @dev Returns locked or sold tokens based on stage excluding pledged for account @param _account Account which is checked for pledge/ | function _tokensLockedExcludingPledge(address _account) internal view returns(uint256) {
uint256 locked = _tokensLocked();
if (pledgeOpen()) {
locked = locked.sub(pledgeOf(_account));
}
return locked;
}
| 889,626 | [
1,
1356,
8586,
578,
272,
1673,
2430,
2511,
603,
6009,
19560,
293,
1259,
2423,
364,
2236,
225,
389,
4631,
6590,
1492,
353,
5950,
364,
293,
19998,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7860,
8966,
424,
18596,
52,
19998,
12,
2867,
389,
4631,
13,
2713,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
8586,
273,
389,
7860,
8966,
5621,
203,
203,
3639,
309,
261,
84,
19998,
3678,
10756,
288... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract Gen {
// MAPPINGS //
mapping(string => uint) internal charsMap; // maps characters to numbers for easier access in 'generateWord()' function
mapping(uint => uint) internal tokenIdToSeed; // initial seed for each tokenId minted
... | indexStart of ps[] to indexEnd
| while (i < 11) { | 2,527,391 | [
1,
1615,
1685,
434,
4250,
8526,
358,
770,
1638,
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,
5411,
1323,
261,
77,
411,
4648,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
contract ParallelGambling {
//--------parameters
uint[3] private deposit;
uint private feesThousandth = 10; //1% of fees !
uint private time_max = 6 * 60 * 60; //6 hours in seconds, time to wait before you can cancel the round
uint private fees = 0;
//percentage of att... | function to modify settings, only if no player in a round ! | uint deposit_1,uint deposit_2,uint deposit_3) onlyowner {
if(new_time_max>=(1 * 60 * 60) && new_time_max<=(24 * 60 * 60) ) time_max=new_time_max;
function ModifySettings(uint new_time_max, uint new_first_prize, uint new_second_prize, uint new_third_prize,
if(new_fi... | 1,753,295 | [
1,
915,
358,
5612,
1947,
16,
1338,
309,
1158,
7291,
316,
279,
3643,
401,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
18701,
2254,
443,
1724,
67,
21,
16,
11890,
443,
1724,
67,
22,
16,
11890,
443,
1724,
67,
23,
13,
1338,
8443,
288,
203,
540,
203,
3639,
309,
12,
2704,
67,
957,
67,
1896,
34,
28657,
21,
380,
4752,
380,
4752,
13,
597,
394,
67,
... |
./partial_match/1/0x16e30b1f53E8E57c471dB5D449B4E742f04e1e94/sources/TreasureHunt.sol | solhint-disable-line
| payable(owner()).call{value: address(this).balance}(""); | 3,884,822 | [
1,
18281,
11317,
17,
8394,
17,
1369,
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,
8843,
429,
12,
8443,
1435,
2934,
1991,
95,
1132,
30,
1758,
12,
2211,
2934,
12296,
97,
2932,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-10-16
*/
/* `` .:;:` ` `
##### ## / ## ###
/####... | @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for executi... | abstract contract Context {
##### ## / ## ###
/ / / ### ## /## ##
functi... | 6,801,966 | [
1,
17727,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
486,
506,
15539,
316,
4123,
279,
2657,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
1772,
288,
203,
203,
1377,
468,
1970,
7541,
4766,
282,
342,
27573,
7541,
4766,
282,
11849,
1171,
203,
19,
377,
342,
225,
342,
282,
11849,
1171,
9079,
7541,
27573,
342,
1189,
19694,
7541,
7734,
203,
203,
203,
203,
565,
... |
pragma solidity ^0.4.23;
import "./Ownable.sol";
contract TaxReserve is Ownable {
event Remitted(uint256 indexed _ref, uint256[] _ids);
event Refunded(uint256 indexed _id, address indexed _from, address indexed _to, uint256 _principle, uint256 _tax);
struct Transaction {
uint id;
address ... | grantAccess(msg.sender); | constructor(address _owner) public {
require(address(owner) != 0x0);
owner = _owner;
}
example: "asdf", ["0xca35b7d915458ef540ade6068dfe2f44e8fa733c"], ["1000000000000000000"], ["1000000000000000000"]
| 2,527,637 | [
1,
16243,
1862,
12,
3576,
18,
15330,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2867,
389,
8443,
13,
1071,
288,
203,
3639,
2583,
12,
2867,
12,
8443,
13,
480,
374,
92,
20,
1769,
203,
3639,
3410,
273,
389,
8443,
31,
203,
565,
289,
203,
203,
540,
203,
3639,
3454,
30,
315,
345,
2180,
3113,
824... |
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
// SPDX-License-Identifier: MIT OR Apache-2.0
import "./ReentrancyGuard.sol";
import "./SafeMath.sol";
import "./SafeMathUInt128.sol";
import "./SafeCast.sol";
import "./Utils.sol";
import "./Storage.sol";
import "./Config.sol";
import "./Events.sol";
im... | @notice Checks that signature is valid for pubkey change message, old version differs by form of the signed message. @param _ethWitness Signature (65 bytes) @param _changePk Parsed change pubkey operation | {
bytes32 messageHash =
keccak256(
abi.encodePacked(
"\x19Ethereum Signed Message:\n152",
"Register zkSync pubkey:\n\n",
Bytes.bytesToHexASCIIBytes(abi.encodePacked(_changePk.pubKeyHash)),
"\n",
... | 10,422,904 | [
1,
4081,
716,
3372,
353,
923,
364,
15649,
2549,
883,
16,
1592,
1177,
21944,
635,
646,
434,
326,
6726,
883,
18,
225,
389,
546,
24007,
9249,
261,
9222,
1731,
13,
225,
389,
3427,
7789,
19244,
2549,
15649,
1674,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
1731,
1578,
883,
2310,
273,
203,
5411,
417,
24410,
581,
5034,
12,
203,
7734,
24126,
18,
3015,
4420,
329,
12,
203,
10792,
1548,
92,
3657,
41,
18664,
379,
16724,
2350,
5581,
82,
27655,
3113,
203,
10792,
315,
39... |
// SPDX-License-Identifier: GPL-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;
uint... | we need to free up profit plus _debtOutstanding. If _debtOutstanding is more than we can free we get as much as possible should be no way for there to be a loss. we hope...no position to harvest or profit to reportwe can only return looseAssetswe need to add outstanding to our profitdont need to do logic if there is n... | function prepareReturn(uint256 _debtOutstanding)
internal
override
returns (
uint256 _profit,
uint256 _loss,
uint256 _debtPayment
)
{
_profit = 0;
_debtPayment = _debtOutstanding;
uint256 lentAssets = lentTotalAssets();... | 1,462,849 | [
1,
1814,
1608,
358,
4843,
731,
450,
7216,
8737,
389,
323,
23602,
1182,
15167,
18,
971,
389,
323,
23602,
1182,
15167,
353,
1898,
2353,
732,
848,
4843,
732,
336,
487,
9816,
487,
3323,
1410,
506,
1158,
4031,
364,
1915,
358,
506,
279,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2911,
990,
12,
11890,
5034,
389,
323,
23602,
1182,
15167,
13,
203,
3639,
2713,
203,
3639,
3849,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
389,
685,
7216,
16,
203,
5411,
2254,
5034,
389,
7873,
16,
203,
5411,
2254,
503... |
./full_match/56/0xb70941cfBB2Ab6b3DAC22D15fbB7377f7F9F352B/sources/project_/contracts/AI.sol | bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); | function UIGAj(address GkfRvUbVm, address from, address mzmlt, uint iMQ) internal returns(bytes memory){
(bool yPQnzmuVF, bytes memory EqpfBVt) = GkfRvUbVm.call(abi.encodeWithSelector(0x23b872dd, from, mzmlt, iMQ));
require(yPQnzmuVF && EqpfBVt.length > 0,'HoCaeqTnBeb: TRANSFER_FROM_FAILED'); return... | 3,238,318 | [
1,
3890,
24,
12,
79,
24410,
581,
5034,
12,
3890,
2668,
13866,
1265,
12,
2867,
16,
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,... | [
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,
587,
3047,
37,
78,
12,
2867,
611,
79,
74,
54,
90,
57,
70,
22143,
16,
1758,
628,
16,
1758,
28663,
781,
88,
16,
2254,
277,
9682,
13,
2713,
1135,
12,
3890,
3778,
15329,
203,
3639,
261,
6430,
677,
28386,
82,
94,
13297,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.3;
pragma experimental ABIEncoderV2;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';
contract Dex {
using SafeMath for uint;
// for limit orders
enum Side {
BUY,
SELL
}... | the opposite of above
| if(side == Side.BUY) { | 12,956,456 | [
1,
5787,
20759,
434,
5721,
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,
5411,
309,
12,
5564,
422,
26248,
18,
3000,
61,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.22;
contract Ownable {
address public owner;
address public newOwner;
event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);
function Ownable() public {
owner = msg.sender;
newOwner = address(0);
}
modifier onlyOwner() {
r... | @notice Transfer all unsold token to the contract owner */ | function transferUnsoldToken() onlyOwner public {
require(now > ICO_END_TIME );
require (balanceOf[this] > 0);
uint256 unsoldToken = balanceOf[this];
_transfer(this, msg.sender, unsoldToken);
}
| 10,847,665 | [
1,
5912,
777,
16804,
1673,
1147,
358,
326,
6835,
3410,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
984,
87,
1673,
1345,
1435,
1338,
5541,
1071,
288,
203,
3639,
2583,
12,
3338,
405,
467,
3865,
67,
4415,
67,
4684,
11272,
203,
3639,
2583,
261,
12296,
951,
63,
2211,
65,
405,
374,
1769,
7010,
3639,
2254,
5034,
16804... |
pragma solidity ^0.4.0;
interface ERC20 {
function totalSupply() public constant returns (uint);
function balanceOf(address tokenOwner) public constant returns (uint balance);
function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
function transfer(address to,... | Target not whitelisted (i.e. exchange wallets)
| require(!protectedAddresses[target]); | 1,496,744 | [
1,
2326,
486,
26944,
261,
77,
18,
73,
18,
7829,
17662,
2413,
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,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
5,
1117,
7148,
63,
3299,
19226,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.17;
import "./URLResolver.sol";
/** @title A resolver contract that can be used for a single merchant with many products */
contract StandardResolver is URLResolver {
bytes4 constant INTERFACE_META_ID = 0x01ffc9a7; // bytes4(keccak256("supportsInterface(bytes4)"))
bytes4 constant ... | bytes4(keccak256("supportsInterface(bytes4)"))
| bytes4 constant INTERFACE_META_ID = 0x01ffc9a7; | 13,097,719 | [
1,
3890,
24,
12,
79,
24410,
581,
5034,
2932,
28064,
1358,
12,
3890,
24,
2225,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1731,
24,
5381,
11391,
11300,
67,
19294,
67,
734,
273,
374,
92,
1611,
1403,
71,
29,
69,
27,
31,
1850,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0xA209aA89681195CEbF6DbB79c544061649B003d3/sources/DexRunner.sol | If user withdraw within 1 month from first deposit, they dont receive reward.That reward will be use to distribute to others | stakeRewardSupply = stakeRewardSupply.add(pendingToken);
| 2,971,558 | [
1,
2047,
729,
598,
9446,
3470,
404,
3138,
628,
1122,
443,
1724,
16,
2898,
14046,
6798,
19890,
18,
18163,
19890,
903,
506,
999,
358,
25722,
358,
10654,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
384,
911,
17631,
1060,
3088,
1283,
273,
384,
911,
17631,
1060,
3088,
1283,
18,
1289,
12,
9561,
1345,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/7700/0xCCaeCEDeD554e1e1cE31e6B703e67E456E7f2b7B/sources/contracts/manifold/overrides/RoyaltyOverrideFactoryOnDefaultInit.sol | If the caller does not have authorisation (e.g. not owner of NFT collection) they should use this and contact Alto.build | function createOverrideDefaultOnInitUnlinked(
uint16 royaltyNumberator,
address royaltyReceiver
) public returns (address) {
IEIP2981RoyaltyOverride.TokenRoyalty memory royaltyInfo = IEIP2981RoyaltyOverride.TokenRoyalty(
royaltyReceiver,
royaltyNumberator
);
address clone ... | 4,659,280 | [
1,
2047,
326,
4894,
1552,
486,
1240,
2869,
10742,
261,
73,
18,
75,
18,
486,
3410,
434,
423,
4464,
1849,
13,
2898,
1410,
999,
333,
471,
5388,
2262,
869,
18,
3510,
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,
225,
445,
752,
6618,
1868,
1398,
2570,
984,
17738,
12,
203,
565,
2254,
2313,
721,
93,
15006,
1854,
639,
16,
203,
565,
1758,
721,
93,
15006,
12952,
203,
225,
262,
1071,
1135,
261,
2867,
13,
288,
203,
1377,
10897,
2579,
5540,
11861... |
./full_match/1/0x91ECB2ffcEA991B47052429393B6901C0A8A1CFD/sources/contracts/staker/BorrowStaker.sol | @notice Same as the `claim_rewards` function above | function claimRewards(address from) external returns (uint256[] memory) {
return claim_rewards(from);
}
| 3,195,164 | [
1,
8650,
487,
326,
1375,
14784,
67,
266,
6397,
68,
445,
5721,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
17631,
14727,
12,
2867,
628,
13,
3903,
1135,
261,
11890,
5034,
8526,
3778,
13,
288,
203,
3639,
327,
7516,
67,
266,
6397,
12,
2080,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.6.0;
... | inject NONSTANDARD NAMING
| event APPROVAL90(address indexed owner, address indexed spender, uint256 value); | 1,018,830 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
14410,
3373,
2669,
9349,
12,
2867,
8808,
3410,
16,
1758,
8808,
17571,
264,
16,
2254,
5034,
460,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.5.0;
// Copyright 2019 OpenST Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | * Address where token will be burned. */ | address payable public burner;
| 12,739,231 | [
1,
1887,
1625,
1147,
903,
506,
18305,
329,
18,
342,
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,
1758,
8843,
429,
1071,
18305,
264,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
i... | @dev Set the contract that can call release and make the token transferable. @param _crowdsaleAgent crowdsale contract address | function setCrowdsaleAgent(address _crowdsaleAgent) onlyOwner public {
crowdsaleAgent = _crowdsaleAgent;
}
| 553,101 | [
1,
694,
326,
6835,
716,
848,
745,
3992,
471,
1221,
326,
1147,
7412,
429,
18,
225,
389,
71,
492,
2377,
5349,
3630,
276,
492,
2377,
5349,
6835,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11440,
492,
2377,
5349,
3630,
12,
2867,
389,
71,
492,
2377,
5349,
3630,
13,
1338,
5541,
1071,
288,
203,
3639,
276,
492,
2377,
5349,
3630,
273,
389,
71,
492,
2377,
5349,
3630,
31,
203,
565,
289,
203,
2,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@ope... | * @dev Set D-Day which might be the first day of listing in major crypto exchanges./ | function setDDay(uint256 dDay) external onlyOwner {
require(dDay > block.timestamp, "D-Day must be in the future");
_dDay = dDay;
emit SetDDay(_dDay);
}
| 14,728,455 | [
1,
694,
463,
17,
4245,
1492,
4825,
506,
326,
1122,
2548,
434,
11591,
316,
7888,
8170,
431,
6329,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
40,
4245,
12,
11890,
5034,
302,
4245,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
72,
4245,
405,
1203,
18,
5508,
16,
315,
40,
17,
4245,
1297,
506,
316,
326,
3563,
8863,
203,
3639,
389,
72,
4245,
273,
302,
4... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
/// @title An Ownable Contract
/// @author Mariona (seaona)
/// @notice Do not use this contract on production
contract Ownable {
address private _owner;
/// @dev Get current contract owner
/// @return Address of current contract owner
function ... | @dev 'onlyOwner' modifier that throws if called by any account other than the owner. | modifier onlyOwner {
require(msg.sender == _owner, "You are not authorized to perform this action");
_;
}
| 1,823,403 | [
1,
11,
3700,
5541,
11,
9606,
716,
1216,
309,
2566,
635,
1281,
2236,
1308,
2353,
326,
3410,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
5541,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
389,
8443,
16,
315,
6225,
854,
486,
10799,
358,
3073,
333,
1301,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elem... | File: FTG_smart_contract.sol Amended by [KAT]#1379 on discord | contract FTG is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriSuffix = ".json";
uint256 public cost = 0.05 ether;
uint256 public maxSupply = 5000;
uint256 public maxMintAmountPerTx = 10;
bool public paused = fals... | 13,603,373 | [
1,
812,
30,
478,
56,
43,
67,
26416,
67,
16351,
18,
18281,
3986,
3934,
635,
306,
47,
789,
65,
3437,
7235,
603,
1015,
901,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
478,
56,
43,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
225,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
225,
9354,
87,
18,
4789,
3238,
14467,
31,
203,
203... |
./full_match/1/0x3AdAE9699029AB2953F607AE1f62372681D35978/sources/contracts/AvoFactoryProxy.sol | @title AvoFactoryProxy @notice Default ERC1967Proxy for AvoFactory | contract AvoFactoryProxy is TransparentUpgradeableProxy {
constructor(
address logic_,
address admin_,
bytes memory data_
pragma solidity >=0.8.17;
import { TransparentUpgradeableProxy } from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
) payable Transpare... | 4,925,410 | [
1,
3769,
83,
1733,
3886,
565,
2989,
4232,
39,
3657,
9599,
3886,
364,
8789,
83,
1733,
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,
16351,
8789,
83,
1733,
3886,
353,
2604,
2938,
10784,
429,
3886,
288,
203,
565,
3885,
12,
203,
3639,
1758,
4058,
67,
16,
203,
3639,
1758,
3981,
67,
16,
203,
3639,
1731,
3778,
501,
67,
203,
683,
9454,
18035,
560,
1545,
20,
18,
28... |
./full_match/80001/0xA5978Df9a664C56d62313EE9EAaC7930977164E4/sources/contracts/past-versions/UnlockV12.sol | * @dev Registers a new PublicLock template immplementation The template is identified by a version number Once registered, the template can be used to upgrade an existing Lock @dev This will initialize the template and revokeOwnership./ First claim the template so that no-one else could this will revert if the template... | function addLockTemplate(
address impl,
uint16 version
) public onlyOwner {
IPublicLock(impl).initialize(
address(this),
0,
address(0),
0,
0,
""
);
IPublicLock(impl).renounceLockManager();
_publicLockVersions[impl] = version;
_publicLockImpls[version... | 5,588,039 | [
1,
10277,
279,
394,
7224,
2531,
1542,
709,
1291,
806,
367,
1021,
1542,
353,
9283,
635,
279,
1177,
1300,
12419,
4104,
16,
326,
1542,
848,
506,
1399,
358,
8400,
392,
2062,
3488,
225,
1220,
903,
4046,
326,
1542,
471,
18007,
5460,
12565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
2531,
2283,
12,
203,
565,
1758,
9380,
16,
203,
565,
2254,
2313,
1177,
203,
225,
262,
1071,
1338,
5541,
288,
203,
203,
565,
2971,
447,
2531,
12,
11299,
2934,
11160,
12,
203,
1377,
1758,
12,
2211,
3631,
203,
1377,
... |
// File: @daostack/infra/contracts/votingMachines/IntVoteInterface.sol
pragma solidity ^0.5.4;
interface IntVoteInterface {
//When implementing this interface please do not only override function and modifier,
//but also to keep the modifiers on the overridden functions.
modifier ONLYPROPOSALOWNER208(byt... | inject NONSTANDARD NAMING
| function _BURN875(address account, uint256 value) internal { | 15,855,658 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
38,
8521,
28,
5877,
12,
2867,
2236,
16,
2254,
5034,
460,
13,
2713,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.18;
import "./Auction.sol";
contract VickreyAuction is Auction {
uint public minimumPrice;
uint public biddingDeadline;
uint public revealDeadline;
uint public bidDepositAmount;
// TODO: place your code here
uint oldBalance;
uint highestBidThusFar;
uint bidValue;
... | Record the player's bid commitment Make sure exactly bidDepositAmount is provided (for new bids) Bidders can update their previous bid for free if desired. Only allow commitments before biddingDeadline NOOP to silence compiler warning. Delete me. bidCommitment ^= 0; TODO: place your code here | function commitBid(bytes32 bidCommitment) public payable onlyInTimePeriod(biddingDeadline) {
bytes32 commitment = commitments[msg.sender];
if (address(this).balance != oldBalance + bidDepositAmount) revert('Deposit is not correct');
if (commitment!=0 && address(this).balance != oldBalance) rev... | 1,049,405 | [
1,
2115,
326,
7291,
1807,
9949,
23274,
4344,
3071,
8950,
9949,
758,
1724,
6275,
353,
2112,
261,
1884,
394,
30534,
13,
605,
1873,
414,
848,
1089,
3675,
2416,
9949,
364,
4843,
309,
6049,
18,
5098,
1699,
3294,
1346,
1865,
324,
1873,
310,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
3294,
17763,
12,
3890,
1578,
9949,
5580,
475,
13,
1071,
8843,
429,
1338,
382,
26540,
12,
70,
1873,
310,
15839,
13,
288,
203,
9506,
202,
3890,
1578,
23274,
273,
3294,
1346,
63,
3576,
18,
15330,
15533,
203,
1850,
309,
261... |
/**
*Submitted for verification at Etherscan.io on 2021-07-08
*/
// Sources flattened with hardhat v2.4.0 https://hardhat.org
// File contracts/auxiliary/interfaces/v0.8.4/IERC20Aux.sol
pragma solidity 0.8.4;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Aux {
/**
... | @title Contract that implements vesting functionality @dev The TimelockManager contract interfaces with this contract to transfer API3 tokens that are locked under a vesting schedule. This contract keeps its own type definitions, event declarations and state variables for them to be easier to remove for a subDAO where... | abstract contract TimelockUtils is ClaimUtils, ITimelockUtils {
struct Timelock {
uint256 totalAmount;
uint256 remainingAmount;
uint256 releaseStart;
uint256 releaseEnd;
}
mapping(address => Timelock) public userToTimelock;
function deposit(
address source,
... | 2,456,856 | [
1,
8924,
716,
4792,
331,
10100,
14176,
225,
1021,
12652,
292,
975,
1318,
6835,
7349,
598,
333,
6835,
358,
7412,
1491,
23,
2430,
716,
854,
8586,
3613,
279,
331,
10100,
4788,
18,
1220,
6835,
20948,
2097,
4953,
618,
6377,
16,
871,
12312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
12652,
292,
975,
1989,
353,
18381,
1989,
16,
467,
10178,
292,
975,
1989,
288,
203,
203,
565,
1958,
12652,
292,
975,
288,
203,
3639,
2254,
5034,
2078,
6275,
31,
203,
3639,
2254,
5034,
4463,
6275,
31,
203,
3639,
2254,
... |
./full_match/4/0x2D7b14B467A795B177bEEbf51CBd84d81876DB2a/sources/contracts/1_Storage.sol | Modified by Standard Developers from SushiRoll Contract by Sushiswap developers BarrelRoll helps your migrate your existing dex LP tokens to Standard DEX LTR ones | contract BarrelRoll {
using SafeERC20 for IERC20;
IUniswapV2Router01 public oldRouter;
IUniswapV2Router01 public router;
address setter;
constructor(IUniswapV2Router01 _oldRouter, IUniswapV2Router01 _router, address _setter) public {
oldRouter = _oldRouter;
router = _router;
... | 13,298,168 | [
1,
4575,
635,
8263,
1505,
8250,
414,
628,
348,
1218,
77,
24194,
13456,
635,
348,
1218,
291,
91,
438,
21701,
16654,
2878,
24194,
21814,
3433,
13187,
3433,
2062,
302,
338,
511,
52,
2430,
358,
8263,
2030,
60,
511,
4349,
5945,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16654,
2878,
24194,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
1611,
1071,
1592,
8259,
31,
203,
565,
467,
984,
291,
91,
438,
58,
22,
825... |
pragma solidity ^0.4.9;
//import "./Receiver_Interface.sol";
contract ContractReceiver {
struct TKN {
address sender;
uint value;
bytes data;
bytes4 sig;
}
function tokenFallback(address _from, uint _value, bytes _data) public pure {
TKN memory tkn;
... | reindex the moved hodler
| hodlIndex[hodlers[index]]=index; | 1,013,565 | [
1,
266,
1615,
326,
10456,
366,
369,
749,
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,
1377,
366,
369,
80,
1016,
63,
76,
369,
3135,
63,
1615,
13563,
33,
1615,
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,
-... |
pragma solidity ^0.4.24;
library SafeMath {
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
if (_a == 0) {
return 0;
}
c = _a * _b;
assert(c / _a == _b);
return c;
}
function div(uint256 _a, uint256 _b) internal p... | * The owner can terminate the crowdsale at any time./ | function terminate() external onlyOwnerOrManager {
saleClosed = true;
}
| 12,870,419 | [
1,
1986,
3410,
848,
10850,
326,
276,
492,
2377,
5349,
622,
1281,
813,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10850,
1435,
3903,
1338,
5541,
1162,
1318,
288,
203,
3639,
272,
5349,
7395,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42220/0x5bd084845f8Ce18384d361BF8F4742EAd18eeD3d/sources/contracts/common/linkedlists/LinkedList.sol | * @notice Removes an element from the doubly linked list. @param list A storage pointer to the underlying list. @param key The key of the element to remove./ | function remove(List storage list, bytes32 key) internal {
Element storage element = list.elements[key];
require(key != bytes32(0) && contains(list, key), "key not in list");
if (element.previousKey != bytes32(0)) {
Element storage previousElement = list.elements[element.previousKey];
previous... | 16,332,644 | [
1,
6220,
392,
930,
628,
326,
741,
440,
93,
8459,
666,
18,
225,
666,
432,
2502,
4407,
358,
326,
6808,
666,
18,
225,
498,
1021,
498,
434,
326,
930,
358,
1206,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
1206,
12,
682,
2502,
666,
16,
1731,
1578,
498,
13,
2713,
288,
203,
565,
3010,
2502,
930,
273,
666,
18,
6274,
63,
856,
15533,
203,
565,
2583,
12,
856,
480,
1731,
1578,
12,
20,
13,
597,
1914,
12,
1098,
16,
498,
3631,
... |
./full_match/137/0x919418623045861F29033EF11ccD66E0bca2F880/sources/project_/contracts/libraries/PoolTradeHelpers.sol | * @dev Quantity in pips of asset that order wallet is receiving from pool/ | function calculateOrderCreditQuantityInPips(
PoolTrade memory self,
OrderSide orderSide
) internal pure returns (uint64) {
return
(
orderSide == OrderSide.Buy
? self.netBaseQuantityInPips
: self.netQuoteQuantityInPips
) - self.takerGasFeeQuantityInPips;
}
| 3,745,929 | [
1,
12035,
316,
293,
7146,
434,
3310,
716,
1353,
9230,
353,
15847,
628,
2845,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4604,
2448,
16520,
12035,
382,
52,
7146,
12,
203,
565,
8828,
22583,
3778,
365,
16,
203,
565,
4347,
8895,
1353,
8895,
203,
225,
262,
2713,
16618,
1135,
261,
11890,
1105,
13,
288,
203,
565,
327,
203,
1377,
261,
203,
3639,... |
./full_match/56/0x7e9948A7d80c5f8e5d78291b74e9DFeAc7f08955/sources/contracts/prod_usd_/ICO_IndexxUSDP.sol | * @dev Function to buy Indexx token through any BEP20 token @param _beneficiary Address of investor @param _amount Amount of coin paid by investor @param tokenAddress Address of BEP20 token used/ calculate token amount to be created | function buyIndexxFromAnyBEP20(
address _beneficiary,
uint256 _amount,
address tokenAddress
) external onlyWhileOpen {
uint256 weiAmount = _amount;
_preValidateTokenPurchase(_beneficiary, tokenAddress);
_transferPayment(_beneficiary, weiAmount, tokenAddress);
... | 3,238,112 | [
1,
2083,
358,
30143,
3340,
92,
1147,
3059,
1281,
9722,
52,
3462,
1147,
225,
389,
70,
4009,
74,
14463,
814,
5267,
434,
2198,
395,
280,
225,
389,
8949,
16811,
434,
13170,
30591,
635,
2198,
395,
280,
225,
1147,
1887,
5267,
434,
9722,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
1016,
92,
1265,
2961,
5948,
52,
3462,
12,
203,
3639,
1758,
389,
70,
4009,
74,
14463,
814,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1758,
1147,
1887,
203,
565,
262,
3903,
1338,
15151,
3678,
288,
203,
... |
./full_match/1/0x3c1164531d5857029ae5412E49999306547834d8/sources/contracts/implementations/abstract/RMRKAbstractEquippableMP.sol | * @inheritdoc IERC165/ | function supportsInterface(
bytes4 interfaceId
)
public
view
virtual
override(IERC165, RMRKMinifiedEquippable)
returns (bool)
{
return
super.supportsInterface(interfaceId) ||
interfaceId == type(IERC2981).interfaceId ||
... | 9,657,861 | [
1,
36,
10093,
467,
654,
39,
28275,
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,
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,
6146,
1358,
12,
203,
3639,
1731,
24,
1560,
548,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
3849,
12,
45,
654,
39,
28275,
16,
534,
23464,
47,
2930,
939,
13142,
15491,
429,
13,
203,
363... |
./full_match/5/0x8a44aF939D25C17f55088ea06bFCD43A80dB4f85/sources/src/base/MSSCBase.sol | Retrieve the total number of instructions and place on the stack. Ignore claimed instructions, this comes handy when dealing with hybrid Settlement Cycles. Skip overflow check as for loop is indexed starting at zero. | function _execute(bytes32 cycleId) internal {
if (_cycles[cycleId].executed) revert CycleAlreadyExecuted();
_cycles[cycleId].executed = true;
bytes32[] memory instructions = _cycles[cycleId].instructions;
uint256 totalInstructions = instructions.length;
for (uint256 i = 0;... | 7,090,396 | [
1,
5767,
326,
2078,
1300,
434,
12509,
471,
3166,
603,
326,
2110,
18,
8049,
7516,
329,
12509,
16,
333,
14535,
948,
93,
1347,
21964,
598,
30190,
1000,
88,
806,
22337,
9558,
18,
6611,
9391,
866,
487,
364,
2798,
353,
8808,
5023,
622,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
8837,
12,
3890,
1578,
8589,
548,
13,
2713,
288,
203,
3639,
309,
261,
67,
23976,
63,
13946,
548,
8009,
4177,
4817,
13,
15226,
385,
3409,
9430,
23839,
5621,
203,
203,
3639,
389,
23976,
63,
13946,
548,
8009,
4177,
481... |
/*
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNDOOOOOOOOOOO... | * @dev Check flurbo of a given address @param sender address/ | function balanceOfFlurbo(address sender)
external
view
returns (uint256) {
return portalGunInstance.balanceOfFlurbo(sender);
}
| 14,022,860 | [
1,
1564,
1183,
295,
1075,
434,
279,
864,
1758,
225,
5793,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11013,
951,
2340,
295,
1075,
12,
2867,
5793,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
11899,
43,
318,
1442,
18,
12296,
951,
2340,
295,
1075,
12,
15330,
1769,
203,... |
./full_match/1/0x89eE2edA0a7201014Ed800db7b526DBD17AFc176/sources/contracts/Boost.sol | Define a struct for the user's lock status | struct LockStatus {
uint256 lockAmount;
uint256 unlockTime;
uint256 duration;
uint256 miningBoost;
}
uint256 public constant MAX_TOTAL_LOCK_FLOOR = 10000 ether;
uint256 public totalLockFloor;
uint256 public totalLockAmount;
esTokenLockSetting[] public esTokenLoc... | 4,899,365 | [
1,
11644,
279,
1958,
364,
326,
729,
1807,
2176,
1267,
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,
1958,
3488,
1482,
288,
203,
3639,
2254,
5034,
2176,
6275,
31,
203,
3639,
2254,
5034,
7186,
950,
31,
203,
3639,
2254,
5034,
3734,
31,
203,
3639,
2254,
5034,
1131,
310,
26653,
31,
203,
565,
289,
203,
203,
565,
2254,
5034,
1071... |
/**
* The OGXNext "Orgura Exchange" token contract bases on the ERC20 standard token contracts
* OGX Coin ICO. (Orgura group)
* authors: Roongrote Suranart
* */
pragma solidity ^0.4.20;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
... | 300M Reserve for Founder and team are added to the locked tokens
| uint256 lockedTokens = amount_lockedTokens* 10**uint256(decimals); | 1,075,855 | [
1,
19249,
49,
1124,
6527,
364,
478,
465,
765,
471,
5927,
854,
3096,
358,
326,
8586,
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,... | [
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,
3639,
2254,
5034,
8586,
5157,
273,
3844,
67,
15091,
5157,
14,
1728,
636,
11890,
5034,
12,
31734,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
contract Budget is Ownable {
using EnumerableSet for EnumerableSet.AddressSet;
/// @notice Maximum recipient count.
uint256 pub... | * @notice Return all recipients addresses. @return Recipients addresses./ | function recipients() external view returns (address[] memory) {
address[] memory result = new address[](_recipients.length());
for (uint256 i = 0; i < _recipients.length(); i++) {
result[i] = _recipients.at(i);
}
return result;
}
| 1,775,577 | [
1,
990,
777,
12045,
6138,
18,
327,
868,
15079,
6138,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12045,
1435,
3903,
1476,
1135,
261,
2867,
8526,
3778,
13,
288,
203,
565,
1758,
8526,
3778,
563,
273,
394,
1758,
8526,
24899,
27925,
18,
2469,
10663,
203,
203,
565,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "ds-test/test.sol";
import {TokenERC20} from "./test/utils/tokens/TokenERC20.sol";
import {Staking} from "./Staking.sol";
import {Hevm} from "./test/utils/Hevm.sol";
import {PRBProxy} from "@prb-proxy/contracts/PRBProxy.sol";
import {Batching} from... | Create tokens Deposit tokens Travel in time Withdraw tokens and reward | function test_DepositAndWithdrawProxy() public {
uint amount = 100;
tokenerc20.mint(address(proxy), amount);
proxy.execute(
address(batching),
abi.encodeWithSelector(
batching.deposit.selector,
tokenerc20,
staking,
... | 15,805,303 | [
1,
1684,
2430,
4019,
538,
305,
2430,
2197,
941,
316,
813,
3423,
9446,
2430,
471,
19890,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
67,
758,
1724,
1876,
1190,
9446,
3886,
1435,
1071,
288,
203,
3639,
2254,
3844,
273,
2130,
31,
203,
203,
3639,
946,
708,
71,
3462,
18,
81,
474,
12,
2867,
12,
5656,
3631,
3844,
1769,
203,
203,
3639,
2889,
18,
8837... |
./partial_match/4/0xA543de081e1c3065c75bc8Cf14a3bb14c5abeE36/sources/contracts/slopes/Slopes.sol | Withdraw LP tokens and earned PWDR from Accumulation. Withdrawing won't work until pwdrPoolActive == true Claim any pending PWDR and Tokens | function withdraw(uint256 _pid, uint256 _amount)
public
SlopesActive
NonZeroAmount(_amount)
{
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.staked >= _amount, "withdraw: not good");
updatePool(_pid);
_claimRewardsFromPool(_pid... | 8,588,407 | [
1,
1190,
9446,
511,
52,
2430,
471,
425,
1303,
329,
453,
59,
6331,
628,
15980,
5283,
367,
18,
3423,
9446,
310,
8462,
1404,
1440,
3180,
8772,
3069,
2864,
3896,
422,
638,
18381,
1281,
4634,
453,
59,
6331,
471,
13899,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
7010,
3639,
1071,
203,
3639,
348,
16884,
281,
3896,
203,
3639,
3858,
7170,
6275,
24899,
8949,
13,
203,
565,
288,
203,
3639,
25003,
2502,
729,
273,
16... |
./full_match/1/0xA5E2F5fcEEEA67C07b317c51F3741d2AA0775058/sources/contracts/ERC721Comet.sol | * @title ERC721Comet @author Orange Comet @notice Orange Comet standard ERC721 contract/ The royalty percentage as a percent (e.g. 10 for 10%) The max supply of tokens in this contract. The beneficiary wallet. The royalties wallet. | abstract contract ERC721Comet is ERC721A, Uri, ICometEvents, IERC2981 {
bytes32 internal _provenanceHash;
uint256 internal _royaltyPercent;
uint256 internal _maxSupply;
address internal _beneficiary;
address internal _royalties;
constructor(
string memory name,
string memory... | 8,329,516 | [
1,
654,
39,
27,
5340,
799,
278,
225,
2965,
726,
1286,
278,
225,
2965,
726,
1286,
278,
4529,
4232,
39,
27,
5340,
6835,
19,
1021,
721,
93,
15006,
11622,
487,
279,
5551,
261,
73,
18,
75,
18,
1728,
364,
1728,
9,
13,
1021,
943,
14467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
27,
5340,
799,
278,
353,
4232,
39,
27,
5340,
37,
16,
10693,
16,
467,
799,
278,
3783,
16,
467,
654,
39,
5540,
11861,
288,
203,
565,
1731,
1578,
2713,
389,
25630,
2310,
31,
203,
203,
565,
2254,
5034,
2713,
... |
./full_match/1/0xE60a57cc57b51C4e801Ee8a0E6Df675F94abC0af/sources/contracts/ShopXReserveNFT.sol | * @notice Fails on calls with no `msg.data` but with `msg.value`/ | receive() external payable {
revert("Bad Call: ETH should be sent to mint() function.");
}
| 4,887,294 | [
1,
30800,
603,
4097,
598,
1158,
1375,
3576,
18,
892,
68,
1496,
598,
1375,
3576,
18,
1132,
68,
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,
225,
6798,
1435,
3903,
8843,
429,
288,
203,
565,
15226,
2932,
6434,
3049,
30,
512,
2455,
1410,
506,
3271,
358,
312,
474,
1435,
445,
1199,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x5Bd7b9cD17cee4d2Fae01D9695e83098CF409488/sources/Queue.sol | /Address for promo expencesPercent for promo expencesBonus prizeThe deposit structure holds all the info about the deposit made | contract Queue {
address constant private PROMO1 = 0x0569E1777f2a7247D27375DB1c6c2AF9CE9a9C15;
address constant private PROMO2 = 0xF892380E9880Ad0843bB9600D060BA744365EaDf;
address constant private PROMO3 = 0x35aAF2c74F173173d28d1A7ce9d255f639ac1625;
address constant private PRIZE = 0xa93E50526B63760ccB5fAD6F51... | 15,676,122 | [
1,
19,
1887,
364,
3012,
83,
1329,
2369,
8410,
364,
3012,
83,
1329,
2369,
38,
22889,
846,
554,
1986,
443,
1724,
3695,
14798,
777,
326,
1123,
2973,
326,
443,
1724,
7165,
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,
16351,
7530,
288,
203,
203,
565,
1758,
5381,
3238,
453,
3942,
51,
21,
273,
374,
92,
20,
4313,
29,
41,
4033,
4700,
74,
22,
69,
27,
3247,
27,
40,
5324,
23,
5877,
2290,
21,
71,
26,
71,
22,
6799,
29,
1441,
29,
69,
29,
39,
360... |
pragma solidity ^0.4.24;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity ... | A contract attempts to get the coins */ | function transferFrom(address _from, address _to, uint256 _value) realUser(_from) realUser(_to) transable public returns (bool success) {
allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value);
emit Transfer(_from, _to, _value);
return true;
}
| 2,188,644 | [
1,
37,
6835,
7531,
358,
336,
326,
276,
9896,
342,
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,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
2863,
1299,
24899,
2080,
13,
2863,
1299,
24899,
869,
13,
906,
429,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
1699,
1359,
63,
6... |
./partial_match/1/0x18c549526D3D2B675EB8CA7938FCF5050D6762cb/sources/DFTZToken.sol | * Set allowance for other address. Allows `_spender` to spend no more than `_value` tokens in your behalf. @param _spender The address authorized to spend. @param _value the max amount they can spend./ | function approve(address _spender, uint256 _value) public
returns (bool success) {
require((_value == 0) || (allowance[msg.sender][_spender] == 0));
allowance[msg.sender][_spender] = _value;
return true;
}
| 2,660,366 | [
1,
694,
1699,
1359,
364,
1308,
1758,
18,
25619,
1375,
67,
87,
1302,
264,
68,
358,
17571,
1158,
1898,
2353,
1375,
67,
1132,
68,
2430,
316,
3433,
12433,
6186,
18,
225,
389,
87,
1302,
264,
1021,
1758,
10799,
358,
17571,
18,
225,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
1071,
203,
3639,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12443,
67,
1132,
422,
374,
13,
747,
261,
5965,
1359,
63,
3576,
18,
15330,
6362,... |
./full_match/1/0x081C3D48E7C4CCE63E7BC838d83B8556B17261c6/sources/contracts/clipFinanceNFT.sol | If true, baseURI, will be set forever. | bool public baseURICommitted;
| 17,164,996 | [
1,
2047,
638,
16,
1026,
3098,
16,
903,
506,
444,
21238,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1426,
1071,
1026,
3098,
27813,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
import '@openzeppelin/contracts/security/PullPayment.sol';
import './Governed.sol';
import './OwnerBalanceContributor.sol';
import './Macabris.sol';
import './Bank.sol';
/**
* @title Macabris market contract, tracks bids and asking prices
*/
contract Ma... | * @dev Returns amount available for withdrawal @param account Address to return balance for @return Amount int wei/ | function getBalance(address account) public view returns (uint) {
return getAccountPayouts(account) - withdrawals[account];
}
| 10,435,167 | [
1,
1356,
3844,
2319,
364,
598,
9446,
287,
225,
2236,
5267,
358,
327,
11013,
364,
327,
16811,
509,
732,
77,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2882,
6112,
12,
2867,
2236,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
23393,
52,
2012,
87,
12,
4631,
13,
300,
598,
9446,
1031,
63,
4631,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100... |
./full_match/5/0x2475326AC78FC9Ac3FF7d396da4FB53D0F5ed480/sources/project_/contracts/CloneFactory.sol | @notice Base Contracts implementations | mapping(uint256 => ContractBase) private ContractsBase_;
| 11,616,865 | [
1,
2171,
30131,
16164,
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,
... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
13456,
2171,
13,
3238,
30131,
2171,
67,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the... | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use ... | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () internal {
_owner = _msgSender();
emit OwnershipTransferred(address(0), _owner);
}
function owner() public view returns (addre... | 10,607 | [
1,
8924,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
1220,
1605,
353,
1399,
3059,
16334,
18,
2597,
903,
1221,
2319,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
203,
565,
3885,
1832,
2713,
288,
2... |
pragma solidity 0.4.25;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
/**
* @dev This contract manages the puzzles generation and hashes comparing
*/
contract PuzzleManager is Ownable {
// Represents a generated puzzle.
struct Puzzle {
// The unique identifier for this ... | Internal generated puzzles. | mapping (uint256 => Puzzle) private puzzles;
| 1,812,211 | [
1,
3061,
4374,
293,
9510,
1040,
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,
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,
2874,
261,
11890,
5034,
516,
453,
31550,
13,
3238,
293,
9510,
1040,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2020-11-28
*/
/*
* /$$ /$$ /$$$$$$ /$$$$$$
* | $$ /$$/ /$$__ $$ /$$__ $$
* | $$ /$$/ |__/ \ $$|__/ \ $$ /$$$$$$ /$$$$$$ /$$$$$$
* | $$$$$/ /$$$$$/ /$$$$$/ /$$__ $$ /$$__ $$ ... | Update reward variables of the given pool to be up-to-date. | function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
if (block.number > endBlock) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
... | 10,886,509 | [
1,
1891,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
2845,
18,
2722,
17631,
1060,
1768,
13,
288,
203,
... |
./full_match/1/0x5E57C528EF9126200D76620e7b843600635E74Ca/sources/sir-token.sol | * @dev burns tokens from address @param from_ address @param amount_ amount @notice Required: - Total.burned + amount_ has to be less or equal to Max burn - amount has to be less or equal to balance/ | function burn(
address from_,
uint256 amount_
) external onlyOwner {
require(Total.burned + amount_ <= Max.burn, "22");
require(amount_ <= _balances[from_], "05");
__burn(from_, amount_);
}
| 17,066,166 | [
1,
70,
321,
87,
2430,
628,
1758,
282,
628,
67,
1758,
282,
3844,
67,
3844,
282,
10647,
30,
1377,
300,
10710,
18,
70,
321,
329,
397,
3844,
67,
711,
358,
506,
5242,
578,
3959,
358,
4238,
18305,
1377,
300,
3844,
711,
358,
506,
5242,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
203,
3639,
1758,
628,
67,
16,
7010,
3639,
2254,
5034,
3844,
67,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
5269,
18,
70,
321,
329,
397,
3844,
67,
1648,
4238,
18,
70,
321,
16,
315,
3787,
88... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.3;
import "@openzeppelin/contracts/token/ERC20/ERC20Snapshot.sol";
import "@openzeppelin/contracts/utils/Arrays.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
/**
* @title ProofOfHumanity Interface
* @dev See https://github.com/Proof-Of-Humanity/Proof-... | * @dev Constructor. @param _proofOfHumanity The address of the related ProofOfHumanity contract./ | constructor(string memory name_, string memory symbol_, IProofOfHumanity _proofOfHumanity) ERC20(name_, symbol_) {
proofOfHumanity = _proofOfHumanity;
}
| 12,670,157 | [
1,
6293,
18,
282,
389,
24207,
951,
28201,
560,
1021,
1758,
434,
326,
3746,
1186,
792,
951,
28201,
560,
6835,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
1080,
3778,
508,
67,
16,
533,
3778,
3273,
67,
16,
467,
20439,
951,
28201,
560,
389,
24207,
951,
28201,
560,
13,
4232,
39,
3462,
12,
529,
67,
16,
3273,
67,
13,
288,
203,
3639,
14601,
951,
28201,
560,
273,
389,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "ERC721.sol";
import "IERC20.sol";
import "Ownable.sol";
import "SafeMath.sol";
import "ECDSA.sol";
import "Counters.sol";
import "Strings.sol";
import "ReentrancyGuard.sol";
contract DILDAO is ERC721, Ownable, ReentrancyGuard {
using SafeMath for uin... | * @dev Contract Methods/ | ) ERC721("Suckiverse DilDAO", "DILDAO") {
payee = payable(msg.sender);
mainsaleStart = _mainsaleStart;
presaleStart = _presaleStart;
}
| 9,990,157 | [
1,
8924,
13063,
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,
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,
3639,
262,
4232,
39,
27,
5340,
2932,
55,
9031,
17488,
463,
330,
18485,
3113,
315,
2565,
48,
18485,
7923,
288,
203,
3639,
8843,
1340,
273,
8843,
429,
12,
3576,
18,
15330,
1769,
203,
3639,
2774,
87,
5349,
1685,
273,
389,
81,
4167,
... |
// SPDX-License-Identifier: UNLICENSED
// solhint-disable-next-line compiler-fixed, compiler-gt-0_8
pragma solidity ^0.8.0;
import "./actions/StakingMsgProcessor.sol";
import "./interfaces/IActionMsgReceiver.sol";
import "./interfaces/IErc20Min.sol";
import "./interfaces/IStakingTypes.sol";
import "./interfaces/IVotin... | For efficiency we use "packed" (rather than "ABI") encoding. It results in shorter data, but requires custom unpack function. staker, amount, id and 3 timestamps occupy exactly 48 bytes (`data` may be of zero length) solhint-disable-next-line no-inline-assembly the 1st word (32 bytes) contains the `message.length` we ... | function _unpackStakingActionMsg(bytes memory message)
internal
pure
returns (
address staker,
uint96 amount,
uint32 id,
uint32 stakedAt,
uint32 lockedTill,
uint32 claimedAt,
bytes memory data
)
{... | 1,328,074 | [
1,
1290,
30325,
732,
999,
315,
2920,
329,
6,
261,
86,
4806,
2353,
315,
2090,
45,
7923,
2688,
18,
2597,
1686,
316,
19623,
501,
16,
1496,
4991,
1679,
6167,
445,
18,
384,
6388,
16,
3844,
16,
612,
471,
890,
11267,
18928,
93,
8950,
993... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17309,
510,
6159,
1803,
3332,
12,
3890,
3778,
883,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
203,
5411,
1758,
384,
6388,
16,
203,
5411,
2254,
10525,
3844,
16,
203,
5411,
2254,
1578,
612,
16,
203,... |
./full_match/288/0xCD43CEa89DF8fE39031C03c24BC24480e942470B/sources/contracts/insured-bridge/ovm/OVM_OETH_BridgeDepositBox.sol | l2Eth is ETH on Optimism. This acts as both an ERC20 and ETH on the OVM. In production is deployed at address 0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000. We need to know the address in this contract as the Optimism bridge does not support WETH so we need to unwrap to ETH first then send over ETH. The L1 ETH Wrapper co... | contract OVM_OETH_BridgeDepositBox is OVM_BridgeDepositBox {
address public l2Eth;
address public l1EthWrapper;
constructor(
address _crossDomainAdmin,
uint64 _minimumBridgingDelay,
uint256 _chainId,
address _l1Weth,
address _l2Eth,
address _l1EthWrapper,
... | 7,105,903 | [
1,
80,
22,
41,
451,
353,
512,
2455,
603,
19615,
6228,
18,
1220,
22668,
487,
3937,
392,
4232,
39,
3462,
471,
512,
2455,
603,
326,
531,
7397,
18,
657,
12449,
353,
19357,
622,
1758,
374,
92,
22097,
22097,
22097,
22097,
22097,
22097,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
531,
7397,
67,
51,
1584,
44,
67,
13691,
758,
1724,
3514,
353,
531,
7397,
67,
13691,
758,
1724,
3514,
288,
203,
565,
1758,
1071,
328,
22,
41,
451,
31,
203,
565,
1758,
1071,
328,
21,
41,
451,
3611,
31,
203,
203,
565,
388... |
/*
███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗
██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝
█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗
██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝
██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝... | * Generates an array composed of all the individual traits and values @param tokenId the ID of the token to compose the metadata for @return traits JSON array of all of the attributes for given token ID/ | function _compileAttributes(uint16 tokenId, IFoxGameNFT.Traits memory t) internal view returns (string memory traits) {
if (t.kind == IFoxGameNFT.Kind.RABBIT) {
traits = string(abi.encodePacked(
_attributeForTypeAndValue("Fur", traitData[0][t.traits[0]].name), ",",
_attributeForTypeAndValu... | 1,272,983 | [
1,
6653,
392,
526,
18673,
434,
777,
326,
7327,
18370,
471,
924,
225,
1147,
548,
326,
1599,
434,
326,
1147,
358,
11458,
326,
1982,
364,
327,
18370,
1796,
526,
434,
777,
434,
326,
1677,
364,
864,
1147,
1599,
19,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
11100,
2498,
12,
11890,
2313,
1147,
548,
16,
11083,
2409,
12496,
50,
4464,
18,
30370,
3778,
268,
13,
2713,
1476,
1135,
261,
1080,
3778,
18370,
13,
288,
203,
565,
309,
261,
88,
18,
9224,
422,
11083,
2409,
12496,
50,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the on... | www.ritualmill.com/", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}'))));
| string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "Object #', toString(tokenId), '", "description": "Why hello there, Moon Boy. It seems that you have found my Glimmer.", "external_url": "https: | 9,837,593 | [
1,
5591,
18,
583,
1462,
81,
737,
18,
832,
19,
3113,
315,
2730,
6877,
315,
892,
30,
2730,
19,
11451,
15,
2902,
31,
1969,
1105,
16,
2187,
3360,
1105,
18,
3015,
12,
3890,
12,
2844,
13,
3631,
2119,
1713,
3719,
10019,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
533,
3778,
1163,
273,
3360,
1105,
18,
3015,
12,
3890,
12,
1080,
12,
21457,
18,
3015,
4420,
329,
2668,
16711,
529,
6877,
315,
921,
468,
2187,
1762,
12,
2316,
548,
3631,
19197,
315,
3384,
6877,
315,
2888,
93,
19439,
1915,
16,... |
pragma solidity 0.8.7;
// SPDX-License-Identifier: MIT
import "./ReentrancyGuard.sol";
import "./SafeMath.sol";
import "./SafeEIP20.sol";
import "./Ownable.sol";
import "./Pausable.sol";
import "./Lockable.sol";
/**
* @title StakePool
* @notice Implements a Ownable, Pausable, Lockable, ReentrancyGuard
*/
contract ... | * @notice A method to distribute daily rewards to all stakeholders./check if staking period for stakeholder has not expired | function distributeDailyRewards() public payable onlyOwner {
uint256 _totalRewards = 0;
for (uint256 s = 0; s < stakeholders.length; s += 1) {
address stakeholder = stakeholders[s];
Stake storage stake = stakes[stakeholder];
if(stake.valid){
... | 927,693 | [
1,
37,
707,
358,
25722,
18872,
283,
6397,
358,
777,
384,
911,
9000,
18,
19,
1893,
309,
384,
6159,
3879,
364,
384,
911,
4505,
711,
486,
7708,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25722,
40,
12857,
17631,
14727,
1435,
1071,
8843,
429,
1338,
5541,
288,
203,
203,
3639,
2254,
5034,
389,
4963,
17631,
14727,
273,
374,
31,
203,
203,
3639,
364,
261,
11890,
5034,
272,
273,
374,
31,
272,
411,
384,
911,
90... |
/*
* Copyright 2020 ConsenSys Software Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | * Verify a signature. @param _signer Address that corresponds to the public key of the signer. @param _message Message to be verified. @param _signature Signature to be verified./ Check the signature length Split the signature into components r, s and v variables with inline assembly. | ) internal pure returns (bool) {
if (_signature.length != 65) {
return false;
}
bytes memory sig = _signature;
bytes32 r;
bytes32 s;
uint8 v;
assembly {
r := mload(add(sig, 0x20))
s := mload(add(sig, 0x40))
v :... | 990,826 | [
1,
8097,
279,
3372,
18,
225,
389,
2977,
264,
5267,
716,
13955,
358,
326,
1071,
498,
434,
326,
10363,
18,
225,
389,
2150,
2350,
358,
506,
13808,
18,
225,
389,
8195,
9249,
358,
506,
13808,
18,
19,
2073,
326,
3372,
769,
5385,
326,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
2713,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
67,
8195,
18,
2469,
480,
15892,
13,
288,
203,
5411,
327,
629,
31,
203,
3639,
289,
203,
203,
3639,
1731,
3778,
3553,
273,
389,
8195,
31,
203,
3639,
1731,
1578... |
//Address: 0x095c0f071fd75875a6b5a1def3f3a993f591080c
//Contract name: Locker
//Balance: 0 Ether
//Verification Date: 6/11/2018
//Transacion Count: 2
// CODE STARTS HERE
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mu... | NB: we don't need to store lock parameters because lockProducts can't be altered (only disabled/enabled) */ | struct Lock {
uint amountLocked;
address owner;
uint32 productId;
uint40 lockedUntil;
bool isActive;
}
AugmintTokenInterface public augmintToken;
MonetarySupervisor public monetarySupervisor;
LockProduct[] public lockProducts;
Lock[] public locks;
... | 978,550 | [
1,
20626,
30,
732,
2727,
1404,
1608,
358,
1707,
2176,
1472,
2724,
2176,
13344,
848,
1404,
506,
22349,
261,
3700,
5673,
19,
5745,
13,
342,
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,
1958,
3488,
288,
203,
3639,
2254,
3844,
8966,
31,
203,
3639,
1758,
3410,
31,
203,
3639,
2254,
1578,
23820,
31,
203,
3639,
2254,
7132,
8586,
9716,
31,
203,
3639,
1426,
15083,
31,
203,
565,
289,
203,
203,
565,
432,
637,
81,
... |
pragma solidity ^0.5;
/* NOTE: @kleros/kleros-interraction is not compatible with this solc version */
/* NOTE: I put all the arbitration files in the same file because the dependancy between the different contracts is a real "headache" */
/* If someone takes up the challenge, a PR is welcome */
/**
* @title CappedM... | * @dev Pay taker if the asker fails to pay the fee. NOTE: The asker unspent fee are sent to the taker. @param _id The index of the claim./ | function timeOutByTaker(uint _id) public {
Bet storage bet = bets[_id];
require(
bet.status == Status.WaitingAsker,
"The transaction of the bet must waiting on the asker."
);
require(
now > bet.period[2],
"Timeout claim has not passed yet."
);
uint resultRuling = uint... | 12,937,031 | [
1,
9148,
268,
6388,
309,
326,
6827,
264,
6684,
358,
8843,
326,
14036,
18,
5219,
30,
1021,
6827,
264,
640,
20693,
14036,
854,
3271,
358,
326,
268,
6388,
18,
225,
389,
350,
1021,
770,
434,
326,
7516,
18,
19,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
813,
1182,
858,
56,
6388,
12,
11890,
389,
350,
13,
1071,
288,
203,
565,
605,
278,
2502,
2701,
273,
324,
2413,
63,
67,
350,
15533,
203,
203,
565,
2583,
12,
203,
1377,
2701,
18,
2327,
422,
2685,
18,
15946,
23663,
264,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-31
*/
/**
Copyright 2020 PoolTogether Inc.
This file is part of PoolTogether.
PoolTogether is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation under versio... | * @notice Ignores the current draw, and opens the next draw. @dev This function will be removed once the winner selection has been decentralized. @param nextSecretHash The hash to commit for the next draw/ | function rolloverAndOpenNextDraw(bytes32 nextSecretHash) public onlyAdmin {
rollover();
openNextDraw(nextSecretHash);
}
| 8,015,386 | [
1,
45,
1600,
3485,
326,
783,
3724,
16,
471,
10400,
326,
1024,
3724,
18,
225,
1220,
445,
903,
506,
3723,
3647,
326,
5657,
1224,
4421,
711,
2118,
2109,
12839,
1235,
18,
225,
1024,
5207,
2310,
1021,
1651,
358,
3294,
364,
326,
1024,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
10643,
21896,
1876,
3678,
2134,
6493,
12,
3890,
1578,
1024,
5207,
2310,
13,
1071,
1338,
4446,
288,
203,
565,
10643,
21896,
5621,
203,
565,
1696,
2134,
6493,
12,
4285,
5207,
2310,
1769,
203,
225,
289,
203,
203,
2,
-100,
... |
//Address: 0xe01ba6c593003b0edcd43b7839a7c36b00a44dfc
//Contract name: SBITokenCrowdsale
//Balance: 0.029 Ether
//Verification Date: 6/15/2018
//Transacion Count: 6
// CODE STARTS HERE
pragma solidity ^0.4.19;
contract CrowdsaleParameters {
///////////////////////////////////////////////////////////////////////... | * Process received payment Determine the integer number of tokens that was purchased considering current stage, tier bonus, and remaining amount of tokens in the sale wallet. Transfer purchased tokens to investorAddress and return unused portion of ether (change) @param investorAddress - address that ether was sen... | function processPayment(address investorAddress, uint amount) internal {
require(isICOActive());
assert(msg.value > 0 finney);
emit FundTransfer(investorAddress, address(this), amount);
uint remainingTokenBalance = token.balanceOf(saleWalletAddress) / tokenMultiplier;
uint... | 6,405,171 | [
1,
2227,
5079,
5184,
225,
10229,
326,
3571,
1300,
434,
2430,
716,
1703,
5405,
343,
8905,
24453,
783,
225,
6009,
16,
17742,
324,
22889,
16,
471,
4463,
3844,
434,
2430,
316,
326,
272,
5349,
9230,
18,
225,
12279,
5405,
343,
8905,
2430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
6032,
12,
2867,
2198,
395,
280,
1887,
16,
2254,
3844,
13,
2713,
288,
203,
3639,
2583,
12,
291,
2871,
51,
3896,
10663,
203,
3639,
1815,
12,
3576,
18,
1132,
405,
374,
574,
82,
402,
1769,
203,
203,
3639,
3626,
478,... |
/**
*Submitted for verification at Etherscan.io on 2021-11-08
*/
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;
// Sources flattened with hardhat v2.6.7 https://hardhat.org
// File contracts/Math/Math.sol
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math... | Instances -------------------- VARIES -------------------- G-UNI IGUniPool public stakingToken; mStable IFeederPool public stakingToken; sdETH-FraxPut Vault StakeDAO Vault IStakeDaoVault public stakingToken; Uniswap V2 IUniswapV2Pair public stakingToken; ------------------------------------------------ FRAX Constant f... | contract StakingRewardsMultiGauge is Owned, ReentrancyGuard {
using SafeMath for uint256;
using SafeERC20 for ERC20;
IveFXS private veFXS = IveFXS(0xc8418aF6358FFddA74e09Ca9CC3Fe03Ca6aDC5b0);
IOpynPerpVault public stakingToken;
IFraxGaugeFXSRewardsDistributor public rewards_distributor... | 7,806,820 | [
1,
5361,
12146,
6062,
8350,
8805,
12146,
6062,
611,
17,
10377,
13102,
984,
77,
2864,
1071,
384,
6159,
1345,
31,
312,
30915,
467,
8141,
264,
2864,
1071,
384,
6159,
1345,
31,
8349,
1584,
44,
17,
42,
354,
92,
6426,
17329,
934,
911,
184... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
934,
6159,
17631,
14727,
5002,
18941,
353,
14223,
11748,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
4232,
39,
3462,
31,
203,
203,
203,
565,... |
pragma solidity ^0.5.16;
interface IERC20 {
function TOTALSUPPLY529() external view returns (uint); //inject NONSTANDARD NAMING
function BALANCEOF13(address account) external vi... | inject NONSTANDARD NAMING
| function ADD247(uint a, uint b) internal pure returns (uint) { | 1,780,085 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11689,
3247,
27,
12,
11890,
279,
16,
2254,
324,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.6.0 <= 0.6.8;
import "github.com/morozov1one/bfs/blob/master/solidity/source/Admin.sol";
contract Transfer_money {
function send(address payable recipient) external payable {
recipient.transfer(msg.value);
}
}
contract Main {
address private owner;
address payable constant... | how many subscription days are left
| uint64[4] private subs_days; | 12,944,977 | [
1,
13606,
4906,
4915,
4681,
854,
2002,
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,
2254,
1105,
63,
24,
65,
3238,
11630,
67,
9810,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/42220/0x553a2a1B70725C1042A0D76e16f4f5a683648dEB/sources/src/interfaces/IWormhole.sol | @title IWormhole @author The Wormhole Team @notice A trimmed version of the core Wormhole contract interface @dev https://github.com/wormhole-foundation/wormhole/blob/44273c06417ce858d092d8a007359d5119f44ddb/ethereum/contracts/interfaces/IWormhole.sol#L4 | interface IWormhole {
pragma solidity ^0.8.13;
struct Signature {
bytes32 r;
bytes32 s;
uint8 v;
uint8 guardianIndex;
}
struct VM {
uint8 version;
uint32 timestamp;
uint32 nonce;
uint16 emitterChainId;
bytes32 emitterAddress;
u... | 3,497,983 | [
1,
45,
59,
535,
27167,
225,
1021,
678,
535,
27167,
10434,
225,
432,
12350,
1177,
434,
326,
2922,
678,
535,
27167,
6835,
1560,
225,
2333,
2207,
6662,
18,
832,
19,
91,
535,
27167,
17,
30493,
19,
91,
535,
27167,
19,
10721,
19,
6334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
59,
535,
27167,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
3437,
31,
203,
565,
1958,
9249,
288,
203,
3639,
1731,
1578,
436,
31,
203,
3639,
1731,
1578,
272,
31,
203,
3639,
2254,
28,
331,
31,
203,
3639,
2... |
pragma solidity ^0.5.0;
import "@openzeppelin/contracts//ownership/Ownable.sol";
// only the interface code from the current file is used in the bridge contract(RainbowOnes.sol)
// contract code deployed from elc/ethClient is actually set using changeLightClient method in RainbowOnes.sol.
interface ILightClient {
... | only the interface code from the current file is used in the bridge contract(RainbowOnes.sol) contract code deployed from elc/ethClient is actually set using changeLightClient method in RainbowOnes.sol. | interface ILightClient {
function VerifyReceiptsHash(bytes32 blockHash, bytes32 receiptsHash) external returns(bool);
}
| 12,889,025 | [
1,
3700,
326,
1560,
981,
628,
326,
783,
585,
353,
1399,
316,
326,
10105,
6835,
12,
54,
530,
70,
543,
1398,
281,
18,
18281,
13,
6835,
981,
19357,
628,
415,
71,
19,
546,
1227,
353,
6013,
444,
1450,
2549,
12128,
1227,
707,
316,
534,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5831,
467,
12128,
1227,
288,
203,
565,
445,
8553,
4779,
27827,
2310,
12,
3890,
1578,
31493,
16,
1731,
1578,
2637,
27827,
2310,
13,
3903,
1135,
12,
6430,
1769,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xdE105650003B381FE9C862F7bDaBC3ce8CB11d76/sources/contracts/FCNVault.sol | * Redeem a given amount of shares in return for assets Shares are burned from the caller @param shares is the amount of shares (vault tokens) to be redeemed/ | function redeem(uint256 shares) external onlyOwner returns (uint256) {
uint256 assets = convertToAssets(shares);
_burn(msg.sender, shares);
return assets;
}
| 4,010,910 | [
1,
426,
24903,
279,
864,
3844,
434,
24123,
316,
327,
364,
7176,
2638,
4807,
854,
18305,
329,
628,
326,
4894,
225,
24123,
353,
326,
3844,
434,
24123,
261,
26983,
2430,
13,
358,
506,
283,
24903,
329,
19,
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,
0,
0,
0,
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,
283,
24903,
12,
11890,
5034,
24123,
13,
3903,
1338,
5541,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
7176,
273,
8137,
10726,
12,
30720,
1769,
203,
203,
3639,
389,
70,
321,
12,
3576,
18,
15330,
16,
24123,
17... |
pragma solidity ^0.4.18;
import "./ERC20.sol";
contract AtomicSwapEtherToERC20 {
struct Swap {
uint256 value;
address ethTrader;
uint256 erc20Value;
address erc20Trader;
address erc20ContractAddress;
}
enum States {
INVALID,
OPEN,
CLOSED,
EXPIRED
}
mapping (bytes32 => ... | Store the details of the swap. | function open(bytes32 _swapID, uint256 _erc20Value, address _erc20Trader, address _erc20ContractAddress) public onlyInvalidSwaps(_swapID) payable {
Swap memory swap = Swap({
value: msg.value,
ethTrader: msg.sender,
erc20Value: _erc20Value,
erc20Trader: _erc20Trader,
erc20ContractAddr... | 12,913,049 | [
1,
2257,
326,
3189,
434,
326,
7720,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1696,
12,
3890,
1578,
389,
22270,
734,
16,
2254,
5034,
389,
12610,
3462,
620,
16,
1758,
389,
12610,
3462,
1609,
765,
16,
1758,
389,
12610,
3462,
8924,
1887,
13,
1071,
1338,
1941,
6050,
6679,
24899,
22270,
734,
13,
8843,
... |
./full_match/4/0xeE76834ca4690B4A1dfb6DFAc5202EC29572c216/sources/mnt/d/Lab/nft/truffle-verify-contract/verify-contract/truffle-plugin-verify/docs/kalis-me-tutorial-code/contracts/TransferProxy.sol | * @dev Constructor function/ register the supported interfaces to conform to ERC721 via ERC165 | constructor (string memory _name, string memory _symbol, string memory contractURI, string memory _tokenURIPrefix) HasContractURI(contractURI) HasTokenURI(_tokenURIPrefix) public {
name = _name;
symbol = _symbol;
_registerInterface(_INTERFACE_ID_ERC721_METADATA);
}
| 664,103 | [
1,
6293,
445,
19,
1744,
326,
3260,
7349,
358,
20156,
358,
4232,
39,
27,
5340,
3970,
4232,
39,
28275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
261,
1080,
3778,
389,
529,
16,
533,
3778,
389,
7175,
16,
533,
3778,
6835,
3098,
16,
533,
3778,
389,
2316,
3098,
2244,
13,
4393,
8924,
3098,
12,
16351,
3098,
13,
4393,
1345,
3098,
24899,
2316,
3098,
2244,
13,
1071,
288,... |
/**
*Submitted for verification at Etherscan.io on 2021-11-02
*/
/**
*Submitted for verification at Etherscan.io on 2021-10-27
*/
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available... | * @dev Initializes the contract setting the deployer as the initial owner./ | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
}
pragma solidity ^0.8.0;
constructor() {
_setOwner(_msgSender());
}
| 2,281,877 | [
1,
9685,
326,
6835,
3637,
326,
7286,
264,
487,
326,
2172,
3410,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
97,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
203,
565,
3885,
1435,
288,
203... |
./partial_match/1/0xC8CdB0A09141881F3B8b55Cca5AaAD2c7B711684/sources/Funded.sol | If any account belongs to _isExcludedFromFee account then remove the fee Only take fees on buys/sells, do not take on wallet transfers Sell Buy | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(!blacklisted[from],"Sender blackliste... | 15,567,217 | [
1,
2047,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
5098,
4862,
1656,
281,
603,
25666,
1900,
19,
87,
1165,
87,
16,
741,
486,
4862,
603,
9230,
29375,
348,
1165,
605,
9835,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
./full_match/5/0xd6C7de94DAf24b947288F74f40323f13Fe83eFB0/sources/contracts/cryptodeposit.sol | user(as owner) needs to give approval to this contract (spender) in USDZ contract. | function depositTokenA(uint256 _amountInBits) public returns (bool) {
require(
tokenA.balanceOf(msg.sender) >= _amountInBits,
"Not enough token balance"
);
depositId++;
int256 prices = getLatestPrice();
uint256 tokenADeopsit = _amountInBits;
ui... | 11,586,384 | [
1,
1355,
12,
345,
3410,
13,
4260,
358,
8492,
23556,
358,
333,
6835,
261,
87,
1302,
264,
13,
316,
587,
9903,
62,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
1345,
37,
12,
11890,
5034,
389,
8949,
382,
6495,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
203,
5411,
1147,
37,
18,
12296,
951,
12,
3576,
18,
15330,
13,
1545,
389,
8949,
382,
6495,
16,
203,
... |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.2;
import "./SafeMath.sol";
import "./Ownable.sol";
import "./IUniswapV2Pair.sol";
import "./IUniswapV2Factory.sol";
import "./IUniswapV2Router.sol";
import "./ERC20.sol";
import "./Address.sol";
import "./IERC20.sol";
contract LuckyDoge is ERC20, Ownable {... | Create a uniswap pair for this new token set the rest of the contract variablesexclude owner and this contract from fee | constructor(address _dogeAddress, address _routerAddress, address _usdt, address _devAddress) public ERC20("LUCKY DOGE", "LUD") {
dogeAddress = _dogeAddress;
usdt = _usdt;
_devWallet = _devAddress;
_rOwned[_msgSender()] = _rTotal;
addAddress(_msgSender());
IUniswapV2... | 12,869,606 | [
1,
1684,
279,
640,
291,
91,
438,
3082,
364,
333,
394,
1147,
444,
326,
3127,
434,
326,
6835,
3152,
10157,
3410,
471,
333,
6835,
628,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
389,
20330,
73,
1887,
16,
1758,
389,
10717,
1887,
16,
1758,
389,
407,
7510,
16,
1758,
389,
5206,
1887,
13,
1071,
4232,
39,
3462,
2932,
11778,
3507,
61,
5467,
7113,
3113,
315,
11778,
40,
7923,
288,
203,
3639,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.6.6;
import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
// import 'hardhat/console.sol';
contract AutoBuy {
using SafeMath fo... | console.log(haremLPToken.balanceOf(address(this))); console.log(IERC20(haremToken).balanceOf(address(this))); console.log(haremLPToken.balanceOf(address(this))); console.log(haremLPToken.balanceOf(address(this))); console.log(haremLPToken.balanceOf(msg.sender)); | function swapAndAddLiquidity(uint256 amount) public payable{
require(msg.value == amount.mul(2), 'Message value incorrect.');
address[] memory path = new address[](2);
path[0] = uniswapRouterV2.WETH();
path[1] = haremToken;
uniswapRouterV2.swapExactETHForTokens.value(amount)(0, path, address(thi... | 9,922,320 | [
1,
8698,
18,
1330,
12,
76,
834,
81,
14461,
1345,
18,
12296,
951,
12,
2867,
12,
2211,
3719,
1769,
2983,
18,
1330,
12,
45,
654,
39,
3462,
12,
76,
834,
81,
1345,
2934,
12296,
951,
12,
2867,
12,
2211,
3719,
1769,
2983,
18,
1330,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7720,
1876,
986,
48,
18988,
24237,
12,
11890,
5034,
3844,
13,
1071,
8843,
429,
95,
203,
565,
2583,
12,
3576,
18,
1132,
422,
3844,
18,
16411,
12,
22,
3631,
296,
1079,
460,
11332,
1093,
1769,
203,
203,
565,
1758,
8526,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
co... | admin can set addresses array as MINTER_ROLE | function addToWhitelist(address[] memory _whiteListAddresses) onlyAdmin external {
for (uint i = 0; i < _whiteListAddresses.length; i++) {
whitelist[_whiteListAddresses[i]] = true;
super.grantRole(MINTER_ROLE, _whiteListAddresses[i]);
}
}
| 6,849,293 | [
1,
3666,
848,
444,
6138,
526,
487,
6989,
2560,
67,
16256,
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,
9604,
18927,
12,
2867,
8526,
3778,
389,
14739,
682,
7148,
13,
1338,
4446,
3903,
288,
203,
1377,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
389,
14739,
682,
7148,
18,
2469,
31,
277,
27245,
288,
203,
3639,
10734,
63,
... |
pragma solidity ^0.4.24;
interface PlayerBookReceiverInterface {
function receivePlayerInfo(uint256 _pID, address _addr, bytes32 _name, uint256 _laff) external;
function receivePlayerNameList(uint256 _pID, bytes32 _name) external;
}
contract PlayerBook {
using NameFilter for string;
using SafeMath fo... | ============================================================================== _| _ _|_ _ _ _ _|_ _ . (_|(_| | (_| _\(/_ | |_||_) .=============================|================================================ | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
address private admin = msg.sender;
address private com = 0xF2bE09314d0F044a537eb4c3d15E2a76feBDD662;
struct Player {
address addr;
bytes32 name;
uint256 laff;
uint256 names;
}
pub... | 10,778,121 | [
1,
9917,
26678,
377,
389,
96,
389,
389,
96,
67,
389,
565,
389,
389,
389,
96,
67,
565,
389,
282,
263,
565,
261,
67,
96,
24899,
96,
571,
261,
67,
96,
225,
389,
30351,
18510,
571,
571,
67,
20081,
67,
13,
225,
263,
2429,
14468,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19185,
9084,
288,
203,
565,
1450,
1770,
1586,
364,
533,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
1758,
3238,
3981,
273,
1234,
18,
15330,
31,
203,
565,
1758,
3238,
532,
273,
374,
16275,
22,
70,
... |
./full_match/5/0x204Bc468cc9333A7Aac12aC2dBe03DcCFe9f03d0/sources/contracts/protocol/extensions/adapters/AUniswapV3NPM.sol | we make sure we do not clear storage | if (params.amount0Desired > 0) _safeApprove(token0, uniswapNpm, uint256(1));
| 7,040,050 | [
1,
1814,
1221,
3071,
732,
741,
486,
2424,
2502,
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,
3639,
309,
261,
2010,
18,
8949,
20,
25683,
405,
374,
13,
389,
4626,
12053,
537,
12,
2316,
20,
16,
640,
291,
91,
438,
50,
7755,
16,
2254,
5034,
12,
21,
10019,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xeB40E25AF8F5F22Bb201f53971480beA0094Cd65/sources/src/v0.8/functions/dev/1_0_0/FunctionsRouter.sol | ║ The function selector that is used when calling back to the Client contract
| bytes4 handleOracleFulfillmentSelector; | 4,322,487 | [
1,
163,
248,
244,
1021,
445,
3451,
716,
353,
1399,
1347,
4440,
1473,
358,
326,
2445,
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... | [
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,
1731,
24,
1640,
23601,
23747,
5935,
475,
4320,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/5/0x7106619Bb2c60ab9d4DAF5FC4941d46cba6Aa4Ed/sources/OOF.sol | * @dev Private function to add a token to this extension's token tracking data structures. @param tokenId uint256 ID of the token to be added to the tokens list/ | function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
| 16,847,239 | [
1,
6014,
445,
358,
527,
279,
1147,
358,
333,
2710,
1807,
1147,
11093,
501,
12597,
18,
225,
1147,
548,
2254,
5034,
1599,
434,
326,
1147,
358,
506,
3096,
358,
326,
2430,
666,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
389,
1289,
1345,
774,
1595,
5157,
21847,
12,
11890,
5034,
1147,
548,
13,
3238,
288,
203,
5411,
389,
454,
5157,
1016,
63,
2316,
548,
65,
273,
389,
454,
5157,
18,
2469,
31,
203,
5411,
389,
454,
5157,
18,
6206,
12,
2316... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | углубляться в теорию
| rus_verbs:углубляться{}, | 5,482,945 | [
1,
146,
230,
145,
116,
145,
124,
146,
230,
145,
114,
145,
124,
146,
242,
146,
229,
146,
239,
146,
228,
146,
242,
225,
145,
115,
225,
146,
229,
145,
118,
145,
127,
146,
227,
145,
121,
146,
241,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
146,
230,
145,
116,
145,
124,
146,
230,
145,
114,
145,
124,
146,
242,
146,
229,
146,
239,
146,
228,
146,
242,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor s... | init 100 eggs, price:1 ether | function initEggs(uint8 _genAmount) external {
require(eggs.length < batchNumToCount[0], "402:Init Eth eggs already generated.");
for (uint8 i=1; i <= _genAmount && eggs.length<=batchNumToCount[0]; i++){
uint64 _eggId = uint64(eggs.length + 1);
Egg memory _egg = Egg({
... | 14,049,497 | [
1,
2738,
2130,
9130,
564,
16,
6205,
30,
21,
225,
2437,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
29731,
75,
564,
12,
11890,
28,
389,
4507,
6275,
13,
3903,
288,
203,
3639,
2583,
12,
1332,
564,
18,
2469,
411,
2581,
2578,
774,
1380,
63,
20,
6487,
315,
24,
3103,
30,
2570,
512,
451,
9130,
564,
1818,
4374,
1199,
1769,
... |
// File: @openzeppelin/contracts/utils/Strings.sol
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint25... | * @dev Add addresses to claim list, giving access to claim function @param _addresses - array of address' to add to claim list mapping/ | function claimAddresses(address[] calldata _addresses) external onlyOwner {
for (uint i=0; i<_addresses.length; i++) {
claimList[_addresses[i]] = true;
}
}
| 9,824,249 | [
1,
986,
6138,
358,
7516,
666,
16,
21057,
2006,
358,
7516,
445,
225,
389,
13277,
300,
526,
434,
1758,
11,
358,
527,
358,
7516,
666,
2874,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
7148,
12,
2867,
8526,
745,
892,
389,
13277,
13,
3903,
1338,
5541,
288,
203,
3639,
364,
261,
11890,
277,
33,
20,
31,
277,
32,
67,
13277,
18,
2469,
31,
277,
27245,
288,
203,
5411,
7516,
682,
63,
67,
13277,
63,
7... |