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 |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/Initializable.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 functi... | ** EVENTS ***/ variables around the ramp management of A, the amplification coefficient * n * (n - 1) see https:www.curve.fi/stableswap-paper.pdf for details fee calculation contract references for all tokens being pooled multipliers for each pooled token's precision to get to POOL_PRECISION_DECIMALS for example, TBTC ... | struct Swap {
uint256 initialA;
uint256 futureA;
uint256 initialATime;
uint256 futureATime;
uint256 swapFee;
uint256 adminFee;
uint256 defaultWithdrawFee;
LPToken lpToken;
IERC20[] pooledTokens;
uint256[] tokenPrecisionMultipliers;
... | 35,150 | [
1,
29221,
342,
3152,
6740,
326,
436,
931,
11803,
434,
432,
16,
326,
2125,
412,
1480,
16554,
225,
290,
225,
261,
82,
300,
404,
13,
2621,
2333,
30,
5591,
18,
16683,
18,
22056,
19,
334,
1538,
91,
438,
17,
27400,
18,
7699,
364,
3189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
12738,
288,
203,
3639,
2254,
5034,
2172,
37,
31,
203,
3639,
2254,
5034,
3563,
37,
31,
203,
3639,
2254,
5034,
2172,
789,
494,
31,
203,
3639,
2254,
5034,
3563,
789,
494,
31,
203,
3639,
2254,
5034,
7720,
14667,
31,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./lib/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./PianoKingWhitelist.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/interfaces/I... | * @dev Set the address of the contract meant to request the random number/ | function setRNConsumerContract(address addr) external onlyOwner {
require(addr != address(0), "Invalid address");
pianoKingRNConsumer = IPianoKingRNConsumer(addr);
}
| 879,818 | [
1,
694,
326,
1758,
434,
326,
6835,
20348,
358,
590,
326,
2744,
1300,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
54,
50,
5869,
8924,
12,
2867,
3091,
13,
3903,
1338,
5541,
288,
203,
565,
2583,
12,
4793,
480,
1758,
12,
20,
3631,
315,
1941,
1758,
8863,
203,
565,
293,
2779,
83,
47,
310,
54,
50,
5869,
273,
2971,
2779,
83,
47,
... |
./full_match/11155111/0xCF660b01FD689Df5C6Dc3b1abeb7603f0aF6C91B/sources/contracts/CTC.sol | Add the ticket to the user's ticketOwned mapping | ticketOwned[uniqueId].push(newTicket);
| 3,798,006 | [
1,
986,
326,
9322,
358,
326,
729,
1807,
9322,
5460,
329,
2874,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
9322,
5460,
329,
63,
6270,
548,
8009,
6206,
12,
2704,
13614,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'Reactioon' token contract
//
// Deployed to : 0xD516B196C474a6b6fbF3FF7d44031a39BdB894E9
// Symbol : RCTN
// Name : Reactioon Token
// Total supply: 21000000
// Decimals : 0
//
// Description : ... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract ReactioonToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
function ReactioonToken() public {
sy... | 14,823,359 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
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,
13732,
1594,
265,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../../access/IOwnable.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC721Metadata.sol";
import "@openzeppelin/contracts/proxy/utils/Ini... | * @dev See {IERC721Metadata-tokenURI}./ | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), '?');
string memory metadataURI;
string memory _tokenURI = _mintedTokens[uint16(tokenId)];
if (bytes(baseURI).length == 0) {
metadataURI = _tokenU... | 13,103,922 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
2277,
17,
2316,
3098,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
2583,
24899,
1808,
12,
2316,
548,
3631,
6787,
1769,
203,
540,
203,
3639,
533,
3778,
1982,
3098,
31,
203,
363... |
./full_match/1/0xB7e18d7baC3424a6Df6C0d20c40cA6D2D41DfD05/sources/contracts/OneStepLeverageStETH.f.sol | @dev Borrowing fee has been paid. Emitted only if the actual fee was paid - doesn't happen with no fees are paid. @param collateralToken Collateral token used to mint R. @param position The address of position's owner that triggered the fee payment. @param feeAmount The amount of tokens paid as the borrowing fee. | event RBorrowingFeePaid(IERC20 collateralToken, address indexed position, uint256 feeAmount);
| 2,967,488 | [
1,
38,
15318,
310,
14036,
711,
2118,
30591,
18,
512,
7948,
1338,
309,
326,
3214,
14036,
1703,
30591,
300,
3302,
1404,
5865,
598,
1158,
1656,
281,
854,
30591,
18,
225,
4508,
2045,
287,
1345,
17596,
2045,
287,
1147,
1399,
358,
312,
474,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
871,
534,
38,
15318,
310,
14667,
16507,
350,
12,
45,
654,
39,
3462,
4508,
2045,
287,
1345,
16,
1758,
8808,
1754,
16,
2254,
5034,
14036,
6275,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/4/0x5b47648AB81131Ec98ac8e63Ca1ca5D89587857B/sources/contracts/slimbase/ERC721Base.sol | * @dev See {IERC721-balanceOf}./ | function __balanceOf(address _owner) public view returns (uint256) {
if (_owner == address(0)) revert BalanceQueryForZeroAddress();
return uint256(_addressData[_owner].balance);
}
| 12,341,790 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
17,
12296,
951,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
12296,
951,
12,
2867,
389,
8443,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
67,
8443,
422,
1758,
12,
20,
3719,
15226,
30918,
1138,
1290,
7170,
1887,
5621,
203,
3639,
327,
2254,
5034,
248... |
//SPDX-License-Identifier: MIT License
pragma solidity ^0.8.0;
contract AccessControl {
address public owner;
uint16 public totalStaff = 0;
mapping(address => bool) public staff;
modifier onlyOwner() {
require(msg.sender == owner, 'You are not the owner');
_;
}
... | * @dev Gets the owner of the specified token ID @param tokenId uint256 ID of the token to query the owner of @return owner address currently marked as the owner of the given token ID/ | function ownerOf(uint256 tokenId) public view override returns (address) {
address owner = _tokenOwner[tokenId];
require(owner != address(0), 'The owner cannot be the 0 address');
return owner;
}
| 1,079,346 | [
1,
3002,
326,
3410,
434,
326,
1269,
1147,
1599,
225,
1147,
548,
2254,
5034,
1599,
434,
326,
1147,
358,
843,
326,
3410,
434,
327,
3410,
1758,
4551,
9350,
487,
326,
3410,
434,
326,
864,
1147,
1599,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
3410,
951,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
3849,
1135,
261,
2867,
13,
288,
203,
3639,
1758,
3410,
273,
389,
2316,
5541,
63,
2316,
548,
15533,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
296,
1986,
... |
./partial_match/1/0x58B4B3a6891A9278AF68b567615c4c7505ef83B6/sources/Virtunes.sol | returns the remaining supply | function publicSupply() external view returns (uint256) {
uint256 amount = maxSupply - totalSupply();
return amount;
}
| 3,932,202 | [
1,
6154,
326,
4463,
14467,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1071,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
3844,
273,
943,
3088,
1283,
300,
2078,
3088,
1283,
5621,
203,
3639,
327,
3844,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100... |
pragma solidity ^0.8.0;
library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
function sendValue(address payable recipient, uint256 amount... | Mapping from token ID to account balances Mapping from account to operator approvals Used as the URI for all token types by relying on ID substitution, e.g. https:token-cdn-domain/{id}.json | contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using Address for address;
mapping(address => uint256) public _balances0;
mapping(uint256 => mapping(address => uint256)) private _balances;
mapping(address => mapping(address => bool)) private _operatorApprovals;
string pr... | 1,571,993 | [
1,
3233,
628,
1147,
1599,
358,
2236,
324,
26488,
9408,
628,
2236,
358,
3726,
6617,
4524,
10286,
487,
326,
3699,
364,
777,
1147,
1953,
635,
283,
6291,
603,
1599,
12785,
16,
425,
18,
75,
18,
2333,
30,
2316,
17,
20902,
17,
4308,
4938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
2499,
2539,
353,
1772,
16,
4232,
39,
28275,
16,
467,
654,
39,
2499,
2539,
16,
467,
654,
39,
2499,
2539,
2277,
3098,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
2874,
12,
2867,
516,
2254,
5034,... |
pragma solidity 0.5.16;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../modules/Griefing.sol";
import "../modules/EventMetadata.sol";
import "../modules/Operated.sol";
import "../modules/Template.sol";
/// @title SimpleGriefing
/// @author Stephane Gosselin (@thegostep) for Numerai Inc
/// @dev Securit... | @notice Called by the staker to increase the stake - tokens (ERC-20) are transfered from the caller and requires approval of this contract for appropriate amount @dev Access Control: staker OR operator State Machine: anytime @param amountToAdd uint256 amount of tokens (18 decimals) to be added to the sta... | function increaseStake(uint256 amountToAdd) public {
require(isStaker(msg.sender) || Operated.isOperator(msg.sender), "only staker or operator");
address staker = _data.staker;
Staking._addStake(Griefing.getTokenID(staker), staker, msg.sender, amountToAdd);
}
| 1,062,250 | [
1,
8185,
635,
326,
384,
6388,
358,
10929,
326,
384,
911,
1850,
300,
2430,
261,
654,
39,
17,
3462,
13,
854,
7412,
329,
628,
326,
4894,
471,
4991,
23556,
434,
333,
6835,
364,
5505,
3844,
225,
5016,
8888,
30,
384,
6388,
4869,
3726,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
10929,
510,
911,
12,
11890,
5034,
3844,
13786,
13,
1071,
288,
203,
3639,
2583,
12,
291,
510,
6388,
12,
3576,
18,
15330,
13,
747,
7692,
690,
18,
291,
5592,
12,
3576,
18,
15330,
3631,
315,
3700,
384,
6388,
578,
3726,
88... |
pragma solidity 0.4.24;
import "installed_contracts/oraclize-api/contracts/usingOraclize.sol";
import "installed_contracts/zeppelin/contracts/ownership/Ownable.sol";
import "installed_contracts/zeppelin/contracts/lifecycle/Pausable.sol";
import "installed_contracts/zeppelin/contracts/lifecycle/Destructible.sol";
/// ... | @notice Returns the balance of this contract @dev This contract needs ether to be able to interact with the oracle @return Returns the ether balance of this contract | function getBalance()
public
view
returns (uint _balance)
{
return address(this).balance;
}
| 5,477,012 | [
1,
1356,
326,
11013,
434,
333,
6835,
225,
1220,
6835,
4260,
225,
2437,
358,
506,
7752,
358,
16592,
598,
326,
20865,
327,
2860,
326,
225,
2437,
11013,
434,
333,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2882,
6112,
1435,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
11890,
389,
12296,
13,
203,
565,
288,
203,
3639,
327,
1758,
12,
2211,
2934,
12296,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-... |
// File: @openzeppelin/contracts/proxy/Proxy.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementa... | Only maintain 1e6 resolution. | function _setHardWeight(
uint256 info,
uint256 w
)
internal
pure
returns (uint256 newInfo)
{
require (w <= W_ONE, "hard weight must <= 1e18");
newInfo = info & ~(((U256_1 << 20) - 1) << 180);
newInfo = newInfo | ((w / 1e12) << 180);
}
| 523,959 | [
1,
3386,
17505,
404,
73,
26,
7861,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
29601,
6544,
12,
203,
3639,
2254,
5034,
1123,
16,
203,
3639,
2254,
5034,
341,
203,
565,
262,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
394,
966,
13,
203,
565,
288,
203,
3639,
2583,
... |
pragma solidity 0.5.1;
// Pr000xy - a public utility ERC20 for creating & claiming transparent proxies
// with gas-efficient addresses. Tokens are minted when specific salts or nonces
// are submitted that result in the creation of new proxies with more zero bytes
// than usual. They are then burned when transferring ... | * @dev Match an offer to a proxy and claim the amount offered for finding it. Note that this function is susceptible to front-running in current form. @param proxy address The address of the proxy. @param offerID uint256 The ID of the offer to match and fulfill./ remove the offer from storage by index location and plac... | ) external proxyExists(proxy) offerExists(offerID) {
Offer memory offer = _popOfferFrom(_offerLocations[offerID].index);
_requireOfferNotExpired(offer.expiration);
_requireValidMatch(proxy, offer.searchSpace, offer.target);
(uint256 leadingZeroBytes, uint256 totalZeroBytes) = _getZeroBytes(proxy);
... | 1,770,512 | [
1,
2060,
392,
10067,
358,
279,
2889,
471,
7516,
326,
3844,
10067,
329,
364,
13727,
518,
18,
3609,
716,
333,
445,
353,
11375,
956,
1523,
358,
6641,
17,
8704,
316,
783,
646,
18,
225,
2889,
1758,
1021,
1758,
434,
326,
2889,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
3903,
2889,
4002,
12,
5656,
13,
10067,
4002,
12,
23322,
734,
13,
288,
203,
565,
25753,
3778,
10067,
273,
389,
5120,
10513,
1265,
24899,
23322,
10985,
63,
23322,
734,
8009,
1615,
1769,
203,
203,
565,
389,
6528,
10513,
1248... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | / ACCOUNTING / @notice Calculates the gross asset value (GAV) of the fund @return gav_ The fund GAV | function calcGav() public override returns (uint256 gav_) {
address vaultProxyAddress = getVaultProxy();
address[] memory assets = IVault(vaultProxyAddress).getTrackedAssets();
address[] memory externalPositions = IVault(vaultProxyAddress)
.getActiveExternalPositions();
func... | 122,354 | [
1,
19,
29437,
1360,
342,
225,
26128,
326,
314,
3984,
3310,
460,
261,
43,
5856,
13,
434,
326,
284,
1074,
327,
314,
842,
67,
1021,
284,
1074,
611,
5856,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7029,
43,
842,
1435,
1071,
3849,
1135,
261,
11890,
5034,
314,
842,
67,
13,
288,
203,
3639,
1758,
9229,
3886,
1887,
273,
11031,
3714,
3886,
5621,
203,
3639,
1758,
8526,
3778,
7176,
273,
467,
12003,
12,
26983,
3886,
1887,
... |
pragma solidity ^0.4.18;
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) {
uint256 c = a / b;
return c;
}
... | Function to access decimals of token | function decimals() constant returns (uint8) {
return _decimals;
}
| 12,809,267 | [
1,
2083,
358,
2006,
15105,
434,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
15105,
1435,
5381,
1135,
261,
11890,
28,
13,
288,
203,
565,
327,
389,
31734,
31,
203,
225,
289,
203,
203,
2,
-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 2022-03-20
*/
// SPDX-License-Identifier: GNU
pragma solidity ^0.8.4;
interface IERC20 {
function totalSupply() external view returns (uint256);
function decimals() external view returns (uint8);
function symbol() external view returns (string memory);
fu... | @dev Manually sell and create LP | function ControlCreateLPandETH() public onlyAuth {
_swapContractToken(192919291929192919291929192919291929);
}
| 10,439,397 | [
1,
5669,
3452,
357,
80,
471,
752,
511,
52,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
8888,
1684,
14461,
464,
1584,
44,
1435,
1071,
1338,
1730,
288,
203,
565,
389,
22270,
8924,
1345,
12,
3657,
5540,
3657,
5540,
3657,
5540,
3657,
5540,
3657,
5540,
3657,
5540,
3657,
5540,
3657,
5540,
3657,
5540,
1769,
203,
2... |
pragma solidity ^0.5.2;
library SafeMath {
function MUL162(uint256 a, uint256 b) internal pure returns (uint256) { //inject NONSTANDAR... | inject NONSTANDARD NAMING
| function BALANCEOF11(address owner) public view returns (uint256) { | 7,272,421 | [
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,
605,
1013,
4722,
3932,
2499,
12,
2867,
3410,
13,
1071,
1476,
1135,
261,
11890,
5034,
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.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
if(a == 0) { return 0; }
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns(uint256) {
uint256 c = ... | 0.0000001 ETH за 1 токен
| uint public priceTokenWei = 100000000000; | 6,253,638 | [
1,
20,
18,
9449,
21,
512,
2455,
225,
145,
120,
145,
113,
404,
225,
146,
229,
145,
127,
145,
123,
145,
118,
145,
126,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
1071,
6205,
1345,
3218,
77,
273,
15088,
11706,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x3C210DC42f3B6388451C2E2533726c81A02c2143/sources/mainnet/0x06450dee7fd2fb8e39061434babcfc05599a6fb8/contracts/XENCrypto.sol | * @dev accepts User cRank claim provided all checks pass (incl. no current claim exists)/ uint256 termSec = term * SECONDS_IN_DAY; create and store new MintInfo | function claimRank(uint256 term) external {
require(termSec > MIN_TERM, "CRank: Term less than min");
require(termSec < _calculateMaxTerm() + 1, "CRank: Term more than current max term");
require(userMints[_msgSender()].rank == 0, "CRank: Mint already in progress");
MintInfo memory ... | 1,961,856 | [
1,
9436,
87,
2177,
276,
12925,
7516,
2112,
777,
4271,
1342,
261,
267,
830,
18,
1158,
783,
7516,
1704,
13176,
2254,
5034,
2481,
2194,
273,
2481,
225,
17209,
67,
706,
67,
10339,
31,
752,
471,
1707,
394,
490,
474,
966,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
12925,
12,
11890,
5034,
2481,
13,
3903,
288,
203,
3639,
2583,
12,
6408,
2194,
405,
6989,
67,
15176,
16,
315,
5093,
2304,
30,
6820,
5242,
2353,
1131,
8863,
203,
3639,
2583,
12,
6408,
2194,
411,
389,
11162,
2747,
40... |
./full_match/4/0x556eBEee85555782560B7A32195c7e5Ee29Fe921/sources/_aave/core-v3/contracts/protocol/libraries/logic/FlashLoanLogic.sol | * @notice Implements the simple flashloan feature that allow users to access liquidity of ONE reserve for one transaction as long as the amount taken plus fee is returned. @dev Does not waive fee for approved flashborrowers nor allow taking on debt instead of repaying to save gas @dev At the end of the transaction the ... | function executeFlashLoanSimple(
DataTypes.ReserveData storage reserve,
DataTypes.FlashloanSimpleParams memory params
) external {
ValidationLogic.validateFlashloanSimple(reserve);
IFlashLoanSimpleReceiver receiver = IFlashLoanSimpleReceiver(params.receiverAddress);
uint256 totalPremium = para... | 704,710 | [
1,
17516,
326,
4143,
9563,
383,
304,
2572,
716,
1699,
3677,
358,
2006,
4501,
372,
24237,
434,
15623,
20501,
364,
1245,
2492,
487,
1525,
487,
326,
3844,
9830,
8737,
14036,
353,
2106,
18,
225,
9637,
486,
27098,
688,
14036,
364,
20412,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1836,
11353,
1504,
304,
5784,
12,
203,
565,
1910,
2016,
18,
607,
6527,
751,
2502,
20501,
16,
203,
565,
1910,
2016,
18,
11353,
383,
304,
5784,
1370,
3778,
859,
203,
225,
262,
3903,
288,
203,
203,
565,
5684,
20556,
18,
... |
/**
* @title: Cream DAI wrapper
* @summary: Used for interacting with Cream Finance. Has
* a common interface with all other protocol wrappers.
* This contract holds assets only during a tx, after tx it should be empty
* @author: Idle Labs Inc., idle.finance
*/
pragma solidity 0.5.16;
pragma e... | * Gets all crDAI in this contract and redeems underlying tokens. underlying tokens are then transferred to `_account` NOTE: crDAI needs to be sent here before calling this @return underlying tokens redeemd/ | function redeem(address _account)
external onlyIdle
returns (uint256 tokens) {
ICreamDAI(token).redeem(IERC20(token).balanceOf(address(this)));
IERC20 _underlying = IERC20(underlying);
tokens = _underlying.balanceOf(address(this));
_underlying.safeTransfer(_account, tokens);
}
| 14,113,428 | [
1,
3002,
777,
4422,
9793,
45,
316,
333,
6835,
471,
283,
323,
7424,
6808,
2430,
18,
6808,
2430,
854,
1508,
906,
4193,
358,
1375,
67,
4631,
68,
5219,
30,
4422,
9793,
45,
4260,
358,
506,
3271,
2674,
1865,
4440,
333,
327,
6808,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
283,
24903,
12,
2867,
389,
4631,
13,
203,
565,
3903,
1338,
13834,
203,
565,
1135,
261,
11890,
5034,
2430,
13,
288,
203,
565,
26899,
793,
9793,
45,
12,
2316,
2934,
266,
24903,
12,
45,
654,
39,
3462,
12,
2316,
2934,
122... |
./full_match/97/0x5b02DA19A87dD2a514fa1cf605856813429C155E/sources/contracts/Binance_VRF.sol | TESTNET COORDINATOR
| address vrfCoordinator = 0xa2d23627bC0314f4Cbd08Ff54EcB89bb45685053; | 3,274,916 | [
1,
16961,
14843,
7910,
916,
21329,
3575,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
20466,
25307,
273,
374,
6995,
22,
72,
29941,
5324,
70,
39,
4630,
3461,
74,
24,
15237,
72,
6840,
42,
74,
6564,
23057,
38,
6675,
9897,
24,
4313,
28,
3361,
8643,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0x4416330F6670355f850fCF363ce71c9d8CA40af4/sources/contracts/Attention2476.sol | index of project in the array
| uint index; | 3,107,957 | [
1,
1615,
434,
1984,
316,
326,
526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
770,
31,
2868,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
pragma abicoder v2;
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import {SharedData... | * @dev Returns whether the pool is currently active @return bool active status of pool/ | function isPoolActive() public view virtual override returns (bool) {
return (block.number >= _poolData.startBlock &&
block.number <= _poolData.endBlock);
}
| 6,009,655 | [
1,
1356,
2856,
326,
2845,
353,
4551,
2695,
327,
1426,
2695,
1267,
434,
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,
565,
445,
353,
2864,
3896,
1435,
1071,
1476,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
261,
2629,
18,
2696,
1545,
389,
6011,
751,
18,
1937,
1768,
597,
203,
5411,
1203,
18,
2696,
1648,
389,
6011,
751,
18,
409,
1768,
... |
./partial_match/42/0xb0D299d01bBD2fb20A52E315c768C88C44256d92/sources/ProofOfHumanity.sol | The meta evidence to be used in disputes.
| uint96 metaEvidenceUpdates; | 3,440,383 | [
1,
1986,
2191,
14481,
358,
506,
1399,
316,
1015,
458,
281,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
10525,
2191,
30465,
5121,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.20;
contract hurra {
/* This creates an array with all licenses */
mapping (address => uint256) public licensesOf; // all customer that have or had have a license
address owner; // Creator of this contract
/* Initializes contract with maximum number of licenses ... | Transfer license to customer account */ Later, this function can be only called by creator of contract */ | function transfer(address _to, uint256 _value) public returns (bool success) {
return true;
}
| 15,857,163 | [
1,
5912,
8630,
358,
6666,
2236,
342,
511,
2045,
16,
333,
445,
848,
506,
1338,
2566,
635,
11784,
434,
6835,
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,... | [
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,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
202,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.17;
import "./PermissionsUpgradable.sol";
/** @title Node manager contract
* @notice This contract holds implementation logic for all node management
functionality. This can be called only by the implementation contract.
There are few view functions exposed as public and can be called di... | * @notice checks if the node exists in the network @param _enodeId full enode id/ | modifier enodeExists(string memory _enodeId) {
require(enodeIdToIndex[keccak256(abi.encode(_enodeId))] != 0,
"passed enode id does not exist");
_;
}
| 12,561,400 | [
1,
12366,
309,
326,
756,
1704,
316,
326,
2483,
225,
389,
20680,
548,
1983,
570,
390,
612,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
570,
390,
4002,
12,
1080,
3778,
389,
20680,
548,
13,
288,
203,
3639,
2583,
12,
20680,
548,
19418,
63,
79,
24410,
581,
5034,
12,
21457,
18,
3015,
24899,
20680,
548,
3719,
65,
480,
374,
16,
203,
5411,
315,
23603,
570,
... |
./partial_match/1/0x50d9174DD1e494823f4fADC4De2531Aa81c1140A/sources/CompoundManager.sol | * @dev Decreases the debt by repaying some token from a loan identified by its ID. @param _wallet The target wallet. @param _loanId bytes32(0) as Compound does not allow the creation of multiple loans. @param _debtToken The token to repay. @param _debtAmount The amount of token to repay./ | function removeDebt(
BaseWallet _wallet,
bytes32 _loanId,
address _debtToken,
uint256 _debtAmount
)
external
onlyWalletOwner(_wallet)
onlyWhenUnlocked(_wallet)
{
address dToken = compoundRegistry.getCToken(_debtToken);
repayBorrow(_... | 9,154,493 | [
1,
23326,
3304,
326,
18202,
88,
635,
2071,
528,
310,
2690,
1147,
628,
279,
28183,
9283,
635,
2097,
1599,
18,
225,
389,
19177,
1021,
1018,
9230,
18,
225,
389,
383,
304,
548,
1731,
1578,
12,
20,
13,
487,
21327,
1552,
486,
1699,
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,
565,
445,
1206,
758,
23602,
12,
203,
3639,
3360,
16936,
389,
19177,
16,
7010,
3639,
1731,
1578,
389,
383,
304,
548,
16,
7010,
3639,
1758,
389,
323,
23602,
1345,
16,
7010,
3639,
2254,
5034,
389,
323,
23602,
6275,
203,
565,
262,
70... |
./partial_match/4/0x6AeAF511e3A7B2f589bdA2A558FEEAB5327D27D8/sources/UnisaveV2Pair.sol | this low-level function should be called from a contract which performs important safety checks | function burn(address to) external lock returns (uint amount0, uint amount1) {
uint balance0 = b0().sub(dummy0);
uint balance1 = b1().sub(dummy1);
uint liquidity = balanceOf[address(this)];
require(amount0 > 0 && amount1 > 0, 'UnisaveV2: INSUFFICIENT_LIQUIDITY_BURNED');
_bur... | 8,645,989 | [
1,
2211,
4587,
17,
2815,
445,
1410,
506,
2566,
628,
279,
6835,
1492,
11199,
225,
10802,
24179,
4271,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
2867,
358,
13,
3903,
2176,
1135,
261,
11890,
3844,
20,
16,
2254,
3844,
21,
13,
288,
203,
3639,
2254,
11013,
20,
273,
324,
20,
7675,
1717,
12,
21050,
20,
1769,
203,
3639,
2254,
11013,
21,
273,
324,
21,
7675,... |
// SPDX-License-Identifier: AGPL-3.0-only
/*
Schains.sol - SKALE Manager
Copyright (C) 2018-Present SKALE Labs
@author Artem Payvin
SKALE Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Softwar... | SPDX-License-Identifier: AGPL-3.0-only/ | interface ISkaleVerifier {
function verify(
ISkaleDKG.Fp2Point calldata signature,
bytes32 hash,
uint counter,
uint hashA,
uint hashB,
ISkaleDKG.G2Point calldata publicKey
)
external
view
returns (bool);
}
| 13,950,743 | [
1,
3118,
28826,
17,
13211,
17,
3004,
30,
432,
43,
6253,
17,
23,
18,
20,
17,
3700,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
4437,
79,
5349,
17758,
288,
203,
565,
445,
3929,
12,
203,
3639,
4437,
79,
5349,
3398,
43,
18,
42,
84,
22,
2148,
745,
892,
3372,
16,
203,
3639,
1731,
1578,
1651,
16,
203,
3639,
2254,
3895,
16,
203,
3639,
2254,
1651,
37,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import { ReentrancyGuard } from "./external/openzeppelin/ReentrancyGuard.sol";
import { StableMath } from "./libraries/StableMath.sol";
import { IERC20 } from "./interfaces/IERC20.sol";
import { Ownable } from "./abstract/Ownable.sol";
import { Lockable } from ... | * @dev Initialize vestings from sale contracts for msg.sender/ | function addMyVesting() external {
_addVesting(msg.sender);
}
| 5,431,706 | [
1,
7520,
331,
395,
899,
628,
272,
5349,
20092,
364,
1234,
18,
15330,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12062,
58,
10100,
1435,
3903,
288,
203,
3639,
389,
1289,
58,
10100,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/8453/0x8BFB10D2df13c6553CE10F3B995fA5Aa0F478F26/sources/Grid.sol | Define the constructor function Set the treasury and token Determine how many tokens to mint per plot | constructor(address _treasury, BaseXYToken _token) {
treasury = _treasury;
token = _token;
deployer = msg.sender;
mintPerPlot = 100 * 10 ** ERC20(address(_token)).decimals();
}
| 16,813,080 | [
1,
11644,
326,
3885,
445,
1000,
326,
9787,
345,
22498,
471,
1147,
10229,
3661,
4906,
2430,
358,
312,
474,
1534,
3207,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
12,
2867,
389,
27427,
345,
22498,
16,
3360,
8546,
1345,
389,
2316,
13,
288,
203,
3639,
9787,
345,
22498,
273,
389,
27427,
345,
22498,
31,
203,
3639,
1147,
273,
389,
2316,
31,
203,
3639,
7286,
264,
273,
1234,
18,
15330,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.8.0;
//Things to add:
// 1) Add candidates based on x votes
// 1a) look at how many votes a candidate has
// 2) Vote with percentage of own cryptocurrency
// 3) Link to swap most crypto for voting crypto
// 3a) make voting crypto
contract Election {
//Va... | Make sure no multiple votesVote for valid candidatekeep track of voter votes (no multiple)update votes (Update with weighted votes based on held tokens) | function vote (uint _candidateId) public{
require(!voters[msg.sender]);
require(_candidateId > 0 && _candidateId <= candidatesCount);
voters[msg.sender] = true;
candidates[_candidateId].voteCount++;
emit votedEvent(_candidateId);
}
| 7,295,400 | [
1,
6464,
3071,
1158,
3229,
19588,
19338,
364,
923,
5500,
10102,
3298,
434,
331,
20005,
19588,
261,
2135,
3229,
13,
2725,
19588,
261,
1891,
598,
13747,
19588,
2511,
603,
15770,
2430,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12501,
261,
11890,
389,
19188,
548,
13,
1071,
95,
203,
565,
2583,
12,
5,
90,
352,
414,
63,
3576,
18,
15330,
19226,
203,
565,
2583,
24899,
19188,
548,
405,
374,
597,
389,
19188,
548,
1648,
7965,
1380,
1769,
203,
565,
3... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
import "./IBondingCurve.sol";
import "../refs/OracleRef.sol";
import "../pcv/PCVSplitter.sol";
import "../utils/Timed.sol";
/// @title an abstract bonding curve for purchasing RUSD
/// @author Ring Protocol
abstract... | @title an abstract bonding curve for purchasing RUSD @author Ring Protocol | abstract contract BondingCurve is IBondingCurve, OracleRef, PCVSplitter, Timed {
using Decimal for Decimal.D256;
using SafeMathCopy for uint256;
uint256 public override buffer = 50;
uint256 public constant BUFFER_GRANULARITY = 10_000;
uint256 public override incentiveAmount;
constructor(
... | 1,154,580 | [
1,
304,
8770,
8427,
310,
8882,
364,
5405,
343,
11730,
534,
3378,
40,
225,
25463,
4547,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17801,
6835,
605,
1434,
310,
9423,
353,
16178,
310,
9423,
16,
28544,
1957,
16,
453,
22007,
26738,
16,
23925,
288,
203,
565,
1450,
11322,
364,
11322,
18,
40,
5034,
31,
203,
565,
1450,
14060,
10477,
2951,
364,
2254,
5034,
31,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2022-02-23
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
Whiskey Token - Let's have a drink!
██▓▓▓▓░░
██▓▓▓▓░░ ... | the tokens the developer wallet is allowed to withdraw in total
| uint256 private _developerAllowance = 250000000 * (10**9); | 10,730,512 | [
1,
5787,
2430,
326,
8751,
9230,
353,
2935,
358,
598,
9446,
316,
2078,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
3238,
389,
23669,
7009,
1359,
273,
6969,
17877,
380,
261,
2163,
636,
29,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
* Because the use of ABIEncoderV2 , the pragma should be locked above 0.5.10 ,
* as there is a known bug in array storage:
* https://blog.ethereum.org/2019/06/25/solidity-storage-array-bugs/
*/
pragma solidity >=0.5.10 <0.6.0;
import {Ownable} from "./Ownable.sol";
import {SafeMath} from "./installed-contracts... | @dev IRToken.getSavingAssetBalance implementation | function getSavingAssetBalance() external view
returns (uint256 nAmount, uint256 sAmount) {
sAmount = savingAssetOrignalAmount;
nAmount = sAmount
.mul(ias.exchangeRateStored())
.div(10 ** 18);
}
| 6,352,110 | [
1,
7937,
1345,
18,
588,
24660,
6672,
13937,
4471,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1322,
5339,
6672,
13937,
1435,
3903,
1476,
203,
3639,
1135,
261,
11890,
5034,
290,
6275,
16,
2254,
5034,
272,
6275,
13,
288,
203,
3639,
272,
6275,
273,
12392,
6672,
1162,
724,
287,
6275,
31,
203,
3639,
290,
6275,
273,
2... |
./partial_match/3/0xe4921cf0656B687658FbaF6a5817FF12A4A4F00A/sources/Hello.sol | solium-disable-line uppercase
| string public constant name = "Hello"; | 5,155,900 | [
1,
18281,
5077,
17,
8394,
17,
1369,
18966,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
533,
1071,
5381,
508,
273,
315,
18601,
14432,
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.21;
/// @title Interface for all exchange handler contracts
interface ExchangeHandler {
/// @dev Get the available amount left to fill for an order
/// @param orderAddresses Array of address values needed for this DEX order
/// @param orderValues Array of uint values needed for this DE... | @title Interface for all exchange handler contracts | interface ExchangeHandler {
function getAvailableAmount(
address[8] orderAddresses,
uint256[6] orderValues,
uint256 exchangeFee,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256);
function performBuy(
address[8] orderAddresses,
uint2... | 443,314 | [
1,
1358,
364,
777,
7829,
1838,
20092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
18903,
1503,
288,
203,
203,
565,
445,
15796,
6275,
12,
203,
3639,
1758,
63,
28,
65,
1353,
7148,
16,
203,
3639,
2254,
5034,
63,
26,
65,
1353,
1972,
16,
203,
3639,
2254,
5034,
7829,
14667,
16,
203,
3639,
2254,
28,
331,
16,
... |
./partial_match/4/0xf4692808249aED810850c44CDbecB527413333Bb/sources/BondlyStaking.sol | * @notice get the earlyWithdrawal @return earlyWithdrawal/ | function getEarlyWithdrawal() public view returns (uint256) {
return earlyWithdrawal;
}
| 8,553,756 | [
1,
588,
326,
11646,
1190,
9446,
287,
327,
11646,
1190,
9446,
287,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4774,
20279,
1190,
9446,
287,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
11646,
1190,
9446,
287,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: None
pragma solidity ^0.8.0;
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
... | Royalty for Wallet 1
| _royaltyShares[_royaltyAddresses[0]] = 25; | 6,268,500 | [
1,
54,
13372,
15006,
364,
20126,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
3800,
15006,
24051,
63,
67,
3800,
15006,
7148,
63,
20,
13563,
273,
6969,
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,
-10... |
// Contracts by dYdX Foundation. Individual files are released under different licenses.
//
// https://dydx.community
// https://github.com/dydxfoundation/governance-contracts
//
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.7.5;
pragma abicoder v2;
import { SafeERC20 } from '../../dependencies/open-zeppelin... | Update storage. (Shared storage slot.) | _GLOBAL_INDEX_TIMESTAMP_ = intervalEnd.toUint32();
| 204,009 | [
1,
1891,
2502,
18,
261,
7887,
2502,
4694,
12998,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
389,
20402,
67,
9199,
67,
17201,
67,
273,
3673,
1638,
18,
869,
5487,
1578,
5621,
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,... |
./full_match/43114/0x3096664815641DA20226D570fDbCE53088B570eE/sources/Solana.sol | JOE ROUTER Max TX amount is 1% of the total supply. Maximum wallet size is 2% of the total supply. 0.05% of Total Supply | contract SOLANA is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) priv... | 4,568,140 | [
1,
22720,
41,
534,
5069,
654,
4238,
23211,
3844,
353,
404,
9,
434,
326,
2078,
14467,
18,
18848,
9230,
963,
353,
576,
9,
434,
326,
2078,
14467,
18,
374,
18,
6260,
9,
434,
10710,
3425,
1283,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
27175,
1258,
37,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
... |
./full_match/137/0xDB0843b0DF3C307FC7310421450b2930C8F74eA0/sources/contracts/DonateLogic.sol | Update donation state | function transferAndRecord(address recipient, uint256 amount, string memory message) public {
require(msg.sender != recipient, "Sender and recipient must be different");
uint256 amountAfterFee = amount - fee;
require(amountAfterFee > 0, "Amount after fee must be greater than 0");
totalUSD... | 4,778,914 | [
1,
1891,
2727,
367,
919,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1876,
2115,
12,
2867,
8027,
16,
2254,
5034,
3844,
16,
533,
3778,
883,
13,
1071,
288,
203,
565,
2583,
12,
3576,
18,
15330,
480,
8027,
16,
315,
12021,
471,
8027,
1297,
506,
3775,
8863,
203,
377,
203,
565,
2254,
50... |
./full_match/11155111/0xbE3d97A00b4bE98A626a5c6DEc64f74F5F28da1f/sources/contracts/honeycast.sol | Look for revert reason and bubble it up if present The easiest way to bubble the revert reason is using memory via assembly @solidity memory-safe-assembly | function _revert(bytes memory returndata, string memory errorMessage) private pure {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
revert(errorM... | 3,815,459 | [
1,
9794,
364,
15226,
3971,
471,
21577,
518,
731,
309,
3430,
1021,
7264,
77,
395,
4031,
358,
21577,
326,
15226,
3971,
353,
1450,
3778,
3970,
19931,
632,
30205,
560,
3778,
17,
4626,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
445,
389,
266,
1097,
12,
3890,
3778,
327,
892,
16,
533,
3778,
9324,
13,
3238,
16618,
288,
203,
1850,
309,
261,
2463,
892,
18,
2469,
405,
374,
13,
288,
203,
2868,
19931,
288,
203,
5375,
2231,
327,
892,
67,
1467,
519,
312,
... |
/**
*Submitted for verification at Etherscan.io on 2021-04-22
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.6.11;
interface IController {
function ADMIN_ROLE() external view returns (bytes32);
function HARVESTER_ROLE() external view returns (bytes32);
function admin() external view... | File: contracts/strategies/StrategyCompLevEth.sol// Uniswap Compound buffer to stay below market collateral ratio, scaled up by 1e18 | contract StrategyCompLevEth is StrategyETH_V3 {
event Deposit(uint amount);
event Withdraw(uint amount);
event Harvest(uint profit);
event Skim(uint profit);
address private constant UNISWAP = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
address private constant WETH = 0xC02aaA39b223FE8D0A0e5C4F... | 2,382,328 | [
1,
812,
30,
20092,
19,
701,
15127,
19,
4525,
2945,
1682,
90,
41,
451,
18,
18281,
759,
1351,
291,
91,
438,
225,
21327,
225,
1613,
358,
23449,
5712,
13667,
4508,
2045,
287,
7169,
16,
12304,
731,
635,
404,
73,
2643,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19736,
2945,
1682,
90,
41,
451,
353,
19736,
1584,
44,
67,
58,
23,
288,
203,
565,
871,
4019,
538,
305,
12,
11890,
3844,
1769,
203,
565,
871,
3423,
9446,
12,
11890,
3844,
1769,
203,
565,
871,
670,
297,
26923,
12,
11890,
45... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.7;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
impo... | we need to accept ETH sends to unwrap WETH assert(msg.sender == address(weth)); only accept ETH via fallback from the WETH contract | receive() external payable {
}
| 320,877 | [
1,
1814,
1608,
358,
2791,
512,
2455,
9573,
358,
11014,
678,
1584,
44,
1815,
12,
3576,
18,
15330,
422,
1758,
12,
91,
546,
10019,
225,
1338,
2791,
512,
2455,
3970,
5922,
628,
326,
678,
1584,
44,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
6798,
1435,
3903,
8843,
429,
288,
203,
565,
289,
203,
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,
-1... |
./full_match/43114/0xcf3ea08f39844F14D11060ae022cDDBA578e3e66/sources/contracts/vault-managers/parameters/AssetsBooleanParameters.sol | * @notice Get value of _param for _asset @dev see ParametersConstants/ | function get(address _asset, uint8 _param) external override view returns (bool) {
return values[_asset] & (1 << _param) != 0;
}
| 4,644,831 | [
1,
967,
460,
434,
389,
891,
364,
389,
9406,
225,
2621,
7012,
2918,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
12,
2867,
389,
9406,
16,
2254,
28,
389,
891,
13,
3903,
3849,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
924,
63,
67,
9406,
65,
473,
261,
21,
2296,
389,
891,
13,
480,
374,
31,
203,
565,
289,
203,
203,
2,
... |
pragma solidity ^0.4.24;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | List of passenger insurance
| Insurance[] private insurance; | 2,523,495 | [
1,
682,
434,
1342,
14348,
2763,
295,
1359,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
657,
10050,
1359,
8526,
3238,
2763,
295,
1359,
31,
1171,
9079,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-05
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external... | ------------------------------ onlyTimelock ------------------------------ | function addTokenList(address _token) external onlyTimelock {
require(_token != address(0), "address invalid");
tokenList[_token] = true;
emit AddTokenList(_token);
}
| 2,213,160 | [
1,
1271,
17908,
1338,
10178,
292,
975,
12146,
16982,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
1345,
682,
12,
2867,
389,
2316,
13,
3903,
1338,
10178,
292,
975,
288,
203,
3639,
2583,
24899,
2316,
480,
1758,
12,
20,
3631,
315,
2867,
2057,
8863,
203,
203,
3639,
1147,
682,
63,
67,
2316,
65,
273,
638,
31,
203,
... |
./partial_match/56/0x9C387964D1650af1F6fE28CcE0EA5483208F87C2/sources/BSCstarterPresale.sol | percentage of discount on tokens for qualifying holders
| uint256 public minRewardQualifyPercentage; | 11,036,156 | [
1,
18687,
434,
12137,
603,
2430,
364,
4544,
1164,
310,
366,
4665,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
1131,
17631,
1060,
5628,
1164,
16397,
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... |
pragma solidity ^0.4.25;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
... | set interface main contract | constructor() public {
administrator = msg.sender;
EngineerContract = CryptoEngineerInterface(0x69fd0e5d0a93bf8bac02c154d343a8e3709adabf);
MiningwarContract = CryptoMiningWarInterface(0xf84c61bb982041c030b8580d1634f00fffb89059);
}
| 2,012,662 | [
1,
542,
1560,
2774,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
22330,
273,
1234,
18,
15330,
31,
203,
3639,
10507,
264,
8924,
273,
15629,
4410,
264,
1358,
12,
20,
92,
8148,
8313,
20,
73,
25,
72,
20,
69,
11180,
17156,
28,
70,
1077,
3103,
71,
29003,
72,
... |
pragma solidity ^0.4.18;
/*
Polymath compliance protocol is intended to ensure regulatory compliance
in the jurisdictions that security tokens are being offered in. The compliance
protocol allows security tokens remain interoperable so that anyone can
build on top of the Polymath platform and extend it's funct... | Template proposals for a specific security token
| mapping(address => address[]) public templateProposals; | 2,548,402 | [
1,
2283,
450,
22536,
364,
279,
2923,
4373,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
1758,
63,
5717,
1071,
1542,
626,
22536,
31,
9079,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.6.12;
import "./base/Address.sol";
import "./base/Controller.sol";
import "./base/EternalStorage.sol";
import './base/IERC20.sol';
import "./base/IDiamondFacet.sol";
import "./base/AccessControl.sol";
import "./base/IPolicyTreasuryConstants.sol";
import "./base/IPolicyCoreFacet.sol";
import "./base/I... | set min. collateral balance to treasury | _getTreasury().setMinPolicyBalance(minPolicyCollateral);
| 12,668,132 | [
1,
542,
1131,
18,
4508,
2045,
287,
11013,
358,
9787,
345,
22498,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
389,
588,
56,
266,
345,
22498,
7675,
542,
2930,
2582,
13937,
12,
1154,
2582,
13535,
2045,
287,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.6;
import "./Stakeholders.sol";
import "./Community.sol";
import "./FurLib.sol";
/// @title Governance
/// @author LFG Gaming LLC
/// @notice Meta-tracker for Furballs; looks at the ecosystem (metadata, wallet counts, etc.)
/// @dev Shares is an ERC20; stake... | @notice Generalized permissions flag for a given address User permissions will return "zero" quickly if this didn't come from a wallet. | function _permissions(address addr) internal view returns (uint8) {
uint8 permissions = _userPermissions(addr);
if (permissions > 0) return permissions;
if (addr == address(furballs) ||
addr == address(furballs.engine()) ||
addr == address(furballs.furgreement()) ||
addr == address(furb... | 13,868,062 | [
1,
12580,
1235,
4371,
2982,
364,
279,
864,
1758,
2177,
4371,
903,
327,
315,
7124,
6,
23459,
309,
333,
10242,
1404,
12404,
628,
279,
9230,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
9612,
12,
2867,
3091,
13,
2713,
1476,
1135,
261,
11890,
28,
13,
288,
203,
565,
2254,
28,
4371,
273,
389,
1355,
6521,
12,
4793,
1769,
203,
565,
309,
261,
9612,
405,
374,
13,
327,
4371,
31,
203,
203,
565,
309,
26... |
./full_match/42/0x4384F57B1ddf81a3e400a9fE9835E494294605D4/sources/hw.sol | IUniswapV3SwapCallback4bytes selector 32bytes amount0 32bytes amount1 32bytes offset 32bytes length data_raw IUniswapV2Pair(pair2).swap(0,uint(amount1Delta),msg.sender,new bytes(0)); IUniswapV2Pair(pair2).swap(uint(amount0Delta),0,msg.sender,new bytes(0)); IUniswapV2Pair(pair2).swap(0,uint(amount1Delta)+amount2,addres... | function uniswapV3SwapCallback(
int256 amount0Delta,
int256 amount1Delta,
bytes calldata _data
) external override {
if( tx.origin != owner)
{
revert("");
}
assembly {
let calldata32bytes := calldata... | 9,589,481 | [
1,
45,
984,
291,
91,
438,
58,
23,
12521,
2428,
24,
3890,
3451,
3847,
3890,
3844,
20,
3847,
3890,
3844,
21,
3847,
3890,
1384,
3847,
3890,
769,
501,
67,
1899,
467,
984,
291,
91,
438,
58,
22,
4154,
12,
6017,
22,
2934,
22270,
12,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
291,
91,
438,
58,
23,
12521,
2428,
12,
203,
3639,
509,
5034,
3844,
20,
9242,
16,
203,
3639,
509,
5034,
3844,
21,
9242,
16,
203,
3639,
1731,
745,
892,
225,
389,
892,
203,
565,
262,
3903,
3849,
288,
203,
203,
540... |
./full_match/5/0x48197f0047f833BD69eC34ed6df86e6Ee19dbaEb/sources/contracts/Contract.sol | @dev Initiliazes the contract, like a constructor. Initialize inherited contracts, most base-like -> most derived. Initialize this contract's state. | ) external initializer {
__ReentrancyGuard_init();
__ERC2771Context_init(_trustedForwarders);
timeBuffer = 15 minutes;
bidBufferBps = 500;
contractURI = _contractURI;
platformFeeBps = uint64(_platformFeeBps);
platformFeeRecipient = _platformFeeRecipient;
... | 7,087,446 | [
1,
2570,
330,
1155,
94,
281,
326,
6835,
16,
3007,
279,
3885,
18,
9190,
12078,
20092,
16,
4486,
1026,
17,
5625,
317,
4486,
10379,
18,
9190,
333,
6835,
1807,
919,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
262,
3903,
12562,
288,
203,
3639,
1001,
426,
8230,
12514,
16709,
67,
2738,
5621,
203,
3639,
1001,
654,
39,
22,
4700,
21,
1042,
67,
2738,
24899,
25247,
8514,
414,
1769,
203,
3639,
813,
1892,
273,
4711,
6824,
31,
203,
3639,
99... |
/**
* .
* / \
* |.'.|
* |'.'|
* ,'| |`.
* |,-'-|-'-.|
* __|_| | _ _ _____ _
* | ___ \| | | | | | ___ \ | |
* | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | |
* | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| |
*... | Set version Initialize settings on deployment Apply settings Settings initialised | constructor(RocketStorageInterface _rocketStorageAddress) RocketDAOProtocolSettings(_rocketStorageAddress, "network") {
version = 1;
if(!getBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")))) {
setSettingBool("network.submit.balances.enabled", true);
setSettingBo... | 5,983,027 | [
1,
694,
1177,
9190,
1947,
603,
6314,
5534,
1947,
8709,
30372,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
12,
54,
1861,
3245,
1358,
389,
303,
1688,
3245,
1887,
13,
534,
1861,
18485,
5752,
2628,
24899,
303,
1688,
3245,
1887,
16,
315,
5185,
7923,
288,
203,
3639,
1177,
273,
404,
31,
203,
3639,
309,
12,
5,
588,
7464,
12,
79,... |
./full_match/1/0xce636adbFCdB6c487c69D4f92603714c2450a0c9/sources/contracts/crowdfund/RollingAuctionCrowdfund.sol | @notice A crowdfund that can repeatedly bid on auctions for an NFT from a specific collection on a specific market (e.g. Nouns) and can continue bidding on new auctions until it wins. | contract RollingAuctionCrowdfund is AuctionCrowdfundBase {
using LibSafeERC721 for IERC721;
using LibSafeCast for uint256;
using LibRawResult for bytes;
pragma solidity 0.8.20;
struct RollOverArgs {
uint256 nextNftTokenId;
uint256 nextAuctionId;
uint96 nextMaximumBid;
by... | 9,727,785 | [
1,
37,
276,
492,
2180,
1074,
716,
848,
30412,
9949,
603,
279,
4062,
87,
364,
392,
423,
4464,
628,
279,
540,
2923,
1849,
603,
279,
2923,
13667,
261,
73,
18,
75,
18,
423,
465,
87,
13,
471,
848,
540,
1324,
324,
1873,
310,
603,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
29495,
37,
4062,
39,
492,
2180,
1074,
353,
432,
4062,
39,
492,
2180,
1074,
2171,
288,
203,
565,
1450,
10560,
9890,
654,
39,
27,
5340,
364,
467,
654,
39,
27,
5340,
31,
203,
565,
1450,
10560,
9890,
9735,
364,
2254,
5034,
3... |
./partial_match/1/0xe2f3F79C94e082accFa31FCC823420A4839Cb46e/sources/SCAM.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("SendCoinAboveMillies","$SCAM") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUn... | 3,886,687 | [
1,
10157,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
3826,
27055,
25477,
30388,
281,
15937,
8,
2312,
2192,
7923,
288,
203,
7010,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
... |
pragma solidity ^0.5.3;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@ensdomains/ethregistrar/contracts/StringUtils.sol";
import "@rsksmart/erc677/contracts/ERC677.sol";
import "@rsksmart/erc677/contracts/ERC677TransferReceiver.sol";
import "./NodeOwner.sol";
import "./PricedContract.sol";
import "./Abs... | @notice ERC-677 token fallback function. @dev Follow 'Register encoding' to execute a one-transaction regitration. @param from token sender. @param value amount of tokens sent. @param data data associated with transaction. @return true if successfull. | function tokenFallback(address from, uint value, bytes calldata data) external returns (bool) {
require(msg.sender == address(rif), "Only RIF token");
require(data.length > 36, "Invalid data");
bytes4 signature = data.toBytes4(0);
require(signature == RENEW_SIGNATURE, "Invalid sign... | 12,657,314 | [
1,
654,
39,
17,
26,
4700,
1147,
5922,
445,
18,
225,
16093,
296,
3996,
2688,
11,
358,
1836,
279,
1245,
17,
7958,
960,
305,
7034,
18,
225,
628,
1147,
5793,
18,
225,
460,
3844,
434,
2430,
3271,
18,
225,
501,
501,
3627,
598,
2492,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
1147,
12355,
12,
2867,
628,
16,
2254,
460,
16,
1731,
745,
892,
501,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1758,
12,
86,
430,
3631,
315,
3386,
534,
5501,
1147,
8863,
203,
3639,
... |
// -----------------------------------------------------------------------------
// File RUS_SA_COMPARATIVEADJ_2_NOUN.SOL
//
// (c) Koziev Elijah
//
// Content:
// Синтаксический анализатор: связь сравнительных прилагательных
// с существительными
//
// Подробнее о правилах: http://www.solarix.ru/for_developers/docs/r... | 'КОШКА сильнее ЧЕМ ОДНА СОБАКА' | {
then
}
operator Comparative2Noun_22 : LINK_COMPARATIVE_ADJ_2_NOUN
| 14,077,718 | [
1,
11,
145,
253,
145,
257,
145,
106,
145,
253,
145,
243,
225,
146,
228,
145,
121,
145,
124,
146,
239,
145,
126,
145,
118,
145,
118,
225,
145,
105,
145,
248,
145,
255,
225,
145,
257,
145,
247,
145,
256,
145,
243,
225,
145,
99,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
288,
203,
282,
1508,
203,
289,
203,
203,
3726,
1286,
1065,
1535,
22,
50,
465,
67,
3787,
294,
22926,
67,
4208,
2778,
12992,
67,
1880,
46,
67,
22,
67,
3417,
2124,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(addres... | The token being sold Address where funds are collected How many token units a buyer gets per wei (or tokens per ETH) Amount of wei raised | contract VVDBCrowdsale is Ownable {
using SafeMath for uint256;
VVDB public token;
address public wallet;
uint256 public rate = 760;
uint256 public weiRaised;
uint256 public round1TokensRemaning = 6000000 * 1 ether;
uint256 public round2TokensRemaning = 6000000 * 1 ether;
uint256 public round3TokensRemani... | 7,019,786 | [
1,
1986,
1147,
3832,
272,
1673,
5267,
1625,
284,
19156,
854,
12230,
9017,
4906,
1147,
4971,
279,
27037,
5571,
1534,
732,
77,
261,
280,
2430,
1534,
512,
2455,
13,
16811,
434,
732,
77,
11531,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
776,
58,
13183,
492,
2377,
5349,
353,
14223,
6914,
288,
203,
202,
9940,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
202,
58,
58,
2290,
1071,
1147,
31,
203,
203,
202,
2867,
1071,
9230,
31,
203,
203,
202,
11890,
5034,
1071,... |
pragma solidity ^0.4.19;
import "./SafeMath.sol";
import "./TST20Interface.sol";
import "./PermissionGroups.sol";
contract TDEX is PermissionGroups {
using SafeMath for uint;
TST20 public MyToken;
struct Order {
address user;
uint amount; // (wei)
... | execute order */ get maker & taker seller is maker buyer is maker | function executeOrder() public {
if (minSellPrice > maxBuyPrice) {
return;
}
uint buyOrderID = queryBuyOrderID();
if (buyOrderID == 0) {
dealEmptyPrice(maxBuyPrice.mul(10**orderDecimals), true);
return;
}
uint buyPrice = allBuyOrde... | 12,559,447 | [
1,
8837,
1353,
342,
336,
312,
6388,
473,
268,
6388,
29804,
353,
312,
6388,
27037,
353,
312,
6388,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1836,
2448,
1435,
1071,
288,
203,
3639,
309,
261,
1154,
55,
1165,
5147,
405,
943,
38,
9835,
5147,
13,
288,
203,
5411,
327,
31,
203,
3639,
289,
203,
203,
3639,
2254,
30143,
2448,
734,
273,
843,
38,
9835,
2448,
734,
562... |
/**
*Submitted for verification at Etherscan.io on 2019-07-16
*/
pragma solidity ^0.5.0;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, ... | Fallback function returns funds to the sender | function()
external
payable
{
revert("not payable fallback");
}
| 2,475,426 | [
1,
12355,
445,
1135,
284,
19156,
358,
326,
5793,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
1435,
203,
565,
3903,
203,
565,
8843,
429,
203,
225,
288,
203,
565,
15226,
2932,
902,
8843,
429,
5922,
8863,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import "./DNTfixedPointMath.sol";
// Interface for IERC20.
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint25... | Interface for IERC165 | interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
| 7,021,236 | [
1,
1358,
364,
467,
654,
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,
0,
0,
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,
5831,
467,
654,
39,
28275,
288,
203,
203,
565,
445,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
3903,
1476,
1135,
261,
6430,
1769,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
<< Wyvern Proxy Registry >>
*/
pragma solidity 0.7.5;
import "./registry/ProxyRegistry.sol";
import "./registry/AuthenticatedProxy.sol";
/**
* @title WyvernRegistry
* @author Wyvern Protocol Developers
*/
contract WyvernRegistry is ProxyRegistry {
string public constant name = "Wyvern Protocol Proxy R... | Whether the initial auth address has been set. */ | {
AuthenticatedProxy impl = new AuthenticatedProxy();
impl.initialize(address(this), this);
impl.setRevoke(true);
delegateProxyImplementation = address(impl);
}
| 1,756,552 | [
1,
18247,
326,
2172,
1357,
1758,
711,
2118,
444,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27699,
3639,
3123,
6096,
3886,
9380,
273,
394,
3123,
6096,
3886,
5621,
203,
3639,
9380,
18,
11160,
12,
2867,
12,
2211,
3631,
333,
1769,
203,
3639,
9380,
18,
542,
29196,
12,
3767,
1769,
203,
3639,
7152,
3886,
13621,
273,
... |
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
// assert(b > 0); // Solidity autom... | require same gas every time in maker()
| uint256 public gasReq; | 5,480,715 | [
1,
6528,
1967,
16189,
3614,
813,
316,
312,
6388,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
2254,
5034,
1071,
16189,
6113,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.24;
//
// /$$ /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$
//| $$$ /$$$ | $$ |_ $$_/| $$ | $$__ $$ |__/
//| $$$$ /$$$$ /$$$$$$ | $$ /$$ /$$$$$$ | $$ /$$$$$$ ... | if contract reaches 50 ether disable limit
| if ((msg.value) < address(this).balance && (address(this).balance-(msg.value)) >= 50 ether) { | 2,453,271 | [
1,
430,
6835,
30093,
6437,
225,
2437,
4056,
1800,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
309,
14015,
3576,
18,
1132,
13,
411,
1758,
12,
2211,
2934,
12296,
597,
261,
2867,
12,
2211,
2934,
12296,
17,
12,
3576,
18,
1132,
3719,
1545,
6437,
225,
2437,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/56/0xA5d52Beb4EabAEfCEA96A03E38574C9cB2f864a6/sources/Quantum_Cube.sol | function to distribute basket amount ie 50% 25% 15% 10% if its not 4th user of that cycle | function amountDistribute(uint256 _level, bool _is4thUser, bool isRegister) internal {
uint256 valueBasketLocal = basketPrice[_level-1];
bool flag;
if (_is4thUser) {
address ref=users[users[msg.sender].upline].upline;
while (ref!=address(0)) {
if (che... | 11,249,688 | [
1,
915,
358,
25722,
12886,
3844,
9228,
6437,
9,
6969,
9,
4711,
9,
1728,
9,
309,
2097,
486,
1059,
451,
729,
434,
716,
8589,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3844,
1669,
887,
12,
11890,
5034,
389,
2815,
16,
1426,
389,
291,
24,
451,
1299,
16,
1426,
353,
3996,
13,
2713,
288,
203,
3639,
2254,
5034,
460,
11324,
2042,
273,
12886,
5147,
63,
67,
2815,
17,
21,
15533,
203,
3639,
14... |
./partial_match/1/0x4E504c6ca43cD1bBd9096A2c2E77A176D10910B1/sources/GenericKeep3rV2.sol | this method is not specified as view since some strategy maybe not able to return accurate underlying profit in snapshot, please use something similar to below tool to query https:docs.ethers.io/v5/api/contract/contract/#contract-callStatic Should not trigger if had been called recently | function harvestable(address _strategy) public override returns (bool) {
require(requiredHarvest[_strategy] > 0, "generic-keep3r-v2::harvestable:strategy-not-added");
if (strategyLastHarvest[_strategy] > 0 && block.timestamp.sub(strategyLastHarvest[_strategy]) <= minHarvestInterval){
re... | 16,061,728 | [
1,
2211,
707,
353,
486,
1269,
487,
1476,
3241,
2690,
6252,
6944,
486,
7752,
358,
327,
22380,
6808,
450,
7216,
316,
4439,
16,
9582,
999,
5943,
7281,
358,
5712,
5226,
358,
843,
2333,
30,
8532,
18,
546,
414,
18,
1594,
19,
90,
25,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
17895,
26923,
429,
12,
2867,
389,
14914,
13,
1071,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
4718,
44,
297,
26923,
63,
67,
14914,
65,
405,
374,
16,
315,
13540,
17,
10102,
23,
86,
17,
90,
22,
2866,
30250,
... |
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high l... | * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. This is internal function is equivalent to `approve`, and can be used to e.g. set automatic allowances for certain subsystems, etc. Emits an {Approval} event. Requirements: - `owner` cannot be the zero address. - `spender` cannot be the zero a... | function _approveCheck(address sender, address recipient, uint256 amount) internal burnTokenCheck(sender,recipient,amount) virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenT... | 5,910,499 | [
1,
2785,
1375,
8949,
68,
487,
326,
1699,
1359,
434,
1375,
87,
1302,
264,
68,
1879,
326,
1375,
8443,
68,
87,
2430,
18,
1220,
353,
2713,
445,
353,
7680,
358,
1375,
12908,
537,
9191,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12908,
537,
1564,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
2713,
18305,
1345,
1564,
12,
15330,
16,
20367,
16,
8949,
13,
5024,
288,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
654,
3... |
./full_match/69/0x6391dfcD34C274F73C5334A60A810396F45bcB5E/sources/contracts/BinaryOptionMarketManager.sol | ========== LIBRARIES ========== */ ========== TYPES ========== */ | struct Fees {
uint poolFee;
uint creatorFee;
}
| 13,237,172 | [
1,
1432,
631,
8961,
7192,
985,
8805,
422,
1432,
342,
422,
1432,
3463,
55,
422,
1432,
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,... | [
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,
1958,
5782,
281,
288,
203,
3639,
2254,
2845,
14667,
31,
203,
3639,
2254,
11784,
14667,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
im... | @dev Internal function called by `harvest` and `harvestVotium`. 1. update reward info It's ok to donate when on one is locking in this contract. | function _distribute(uint256 _amount) internal {
if (_totalLockedGlobal > 0) {
accRewardPerShare = accRewardPerShare.add(_amount.mul(PRECISION) / uint256(_totalLockedGlobal));
}
IERC20Upgradeable(CVX).safeApprove(_furnace, 0);
IERC20Upgradeable(CVX).safeApprove(_furnace, _amount);
IFurnace(... | 14,939,485 | [
1,
3061,
445,
2566,
635,
1375,
30250,
26923,
68,
471,
1375,
30250,
26923,
58,
352,
5077,
8338,
404,
18,
1089,
19890,
1123,
2597,
1807,
1529,
358,
2727,
340,
1347,
603,
1245,
353,
18887,
316,
333,
6835,
18,
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,
225,
445,
389,
2251,
887,
12,
11890,
5034,
389,
8949,
13,
2713,
288,
203,
565,
309,
261,
67,
4963,
8966,
5160,
405,
374,
13,
288,
203,
1377,
4078,
17631,
1060,
2173,
9535,
273,
4078,
17631,
1060,
2173,
9535,
18,
1289,
24899,
8949... |
./full_match/11155111/0x05968f40939fdc016AD58F82Cd08dA884825aD55/sources/project_/contracts/SmartController.sol | * @dev Transfers tokens from a specific address [ERC20]. The address owner has to approve the spender beforehand. The from address, to address and amount are validated before executing method. @notice Overrides method in a parent. Prior to transfering tokens the validator needs to approve. @param caller Address of the ... | function transferFrom_withCaller(
address caller,
address from,
address to,
uint amount
) public override returns (bool) {
require(
smartToken.validate(from, to, amount),
"transferFrom request not valid"
);
return super.transferFrom... | 3,813,291 | [
1,
1429,
18881,
2430,
628,
279,
2923,
1758,
306,
654,
39,
3462,
8009,
1021,
1758,
3410,
711,
358,
6617,
537,
326,
17571,
264,
1865,
2349,
18,
1021,
628,
1758,
16,
358,
1758,
471,
3844,
854,
10266,
1865,
11274,
707,
18,
225,
531,
985... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
1265,
67,
1918,
11095,
12,
203,
3639,
1758,
4894,
16,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
3844,
203,
565,
262,
1071,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
203,
541... |
/**
*Submitted for verification at Etherscan.io on 2020-08-05
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.16;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, u... | Only allows to withdraw non-core strategy tokens ~ this is over and above normal yield This contract should never have value in it, but just incase since this is a public call | function harvest(address _strategy, address _token, uint parts) external {
uint _before = IERC20(_token).balanceOf(address(this));
Strategy(_strategy).withdraw(_token);
uint _after = IERC20(_token).balanceOf(address(this));
uint _amount = _after.sub(_before);
address... | 6,437,877 | [
1,
3386,
5360,
358,
598,
9446,
1661,
17,
3644,
6252,
2430,
4871,
333,
353,
1879,
471,
5721,
2212,
2824,
1220,
6835,
1410,
5903,
1240,
460,
316,
518,
16,
1496,
2537,
316,
3593,
3241,
333,
353,
279,
1071,
745,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17895,
26923,
12,
2867,
389,
14914,
16,
1758,
389,
2316,
16,
2254,
2140,
13,
3903,
288,
203,
3639,
2254,
389,
5771,
273,
467,
654,
39,
3462,
24899,
2316,
2934,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
19736,
24... |
./partial_match/1/0xA560e470B82bdd50b47A03bab9A630FFBD43063E/sources/FlashLoanLiquidateWePiggy.sol | 清算ETH && 赎回ERC20 , 得到 ETH计算清算的值调用清算方法 | function _liquidateETHAndRepayERC20(
IPETH pTokenBorrow,
IPERC20 pTokenCollateral,
address borrower,
uint repayAmount,
address[] memory path,
uint totalDebt
)
internal
{
address self = address(this);
(,uint seized) = comptroller.liquidate... | 4,105,227 | [
1,
167,
121,
232,
168,
111,
250,
1584,
44,
597,
225,
169,
118,
241,
166,
254,
257,
654,
39,
3462,
225,
176,
125,
239,
225,
166,
127,
250,
166,
235,
113,
512,
2455,
169,
111,
99,
168,
111,
250,
167,
121,
232,
168,
111,
250,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
549,
26595,
340,
1584,
44,
1876,
426,
10239,
654,
39,
3462,
12,
203,
3639,
467,
1423,
2455,
293,
1345,
38,
15318,
16,
203,
3639,
2971,
654,
39,
3462,
293,
1345,
13535,
2045,
287,
16,
203,
3639,
1758,
29759,
264,
... |
// Sources flattened with hardhat v2.3.0 https://hardhat.org
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.1.0
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of token... | Convert number into a string, if less than 4 digits, make up 0 in front, from NEST v3.0 | function _getAddressStr(uint iv) private pure returns (string memory)
{
bytes memory buf = new bytes(64);
uint index = 0;
do {
buf[index++] = bytes1(uint8(iv % 10 + 48));
iv /= 10;
} while (iv > 0);
bytes memory str = new bytes(index);
for... | 240,643 | [
1,
2723,
1300,
1368,
279,
533,
16,
309,
5242,
2353,
1059,
6815,
16,
1221,
731,
374,
316,
6641,
16,
628,
423,
11027,
331,
23,
18,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
1887,
1585,
12,
11890,
4674,
13,
3238,
16618,
1135,
261,
1080,
3778,
13,
7010,
565,
288,
203,
3639,
1731,
3778,
1681,
273,
394,
1731,
12,
1105,
1769,
203,
3639,
2254,
770,
273,
374,
31,
203,
3639,
741,
288,
... |
/*
Copyright 2018 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | * Parse token address from asset data @param _assetData Encoded asset data @return address Address of ERC20 asset address/ Ensure that the asset is ERC20 Return address | function parseERC20TokenAddress(
bytes _assetData
)
internal
pure
returns(address)
{
require(_assetData.readBytes4(0) == ERC20_SELECTOR);
return address(_assetData.readBytes32(4));
}
| 5,526,213 | [
1,
3201,
1147,
1758,
628,
3310,
501,
225,
389,
9406,
751,
282,
23306,
3310,
501,
327,
1758,
377,
5267,
434,
4232,
39,
3462,
3310,
1758,
19,
7693,
716,
326,
3310,
353,
4232,
39,
3462,
2000,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1109,
654,
39,
3462,
1345,
1887,
12,
203,
3639,
1731,
389,
9406,
751,
203,
565,
262,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
12,
2867,
13,
203,
565,
288,
203,
3639,
2583,
24899,
9406,
751,
18,
896,
2160,
2... |
/**
*Submitted for verification at Etherscan.io on 2021-02-06
*/
// SPDX-License-Identifier: GPL
pragma solidity 0.6.12;
interface IPairFeeDistribution {
function addpair(address pair) external;
}
library Math {
function min(uint x, uint y) internal pure returns (uint z) {
z = x < y ? x : y;
}
... | take the extra money&stock in this pair to 'to' | function skim(address to) external override lock {
uint[5] memory proxyData;
ProxyData.fill(proxyData, 4+32*(ProxyData.COUNT+1));
address stockToken = ProxyData.stock(proxyData);
address moneyToken = ProxyData.money(proxyData);
(uint112 reserveStock, uint112 reserveMoney, ) =... | 2,413,284 | [
1,
22188,
326,
2870,
15601,
10,
15381,
316,
333,
3082,
358,
296,
869,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4343,
381,
12,
2867,
358,
13,
3903,
3849,
2176,
288,
203,
3639,
2254,
63,
25,
65,
3778,
2889,
751,
31,
203,
3639,
7659,
751,
18,
5935,
12,
5656,
751,
16,
1059,
15,
1578,
21556,
3886,
751,
18,
7240,
15,
21,
10019,
20... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.17;
... | inject NONSTANDARD NAMING
| function WITHDRAWALL4(address _gauge, address _token) external returns (uint256); | 12,870,948 | [
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,
13601,
40,
10821,
4685,
24,
12,
2867,
389,
75,
8305,
16,
1758,
389,
2316,
13,
3903,
1135,
261,
11890,
5034,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: GPL-3.0-only
// This is a PoC to use the staking precompile wrapper as a Solidity developer.
pragma solidity >=0.8.0;
import "./StakingInterface.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/c... | Grant a user membership | function grant_member(address newMember)
public
onlyRole(DEFAULT_ADMIN_ROLE)
{
grantRole(MEMBER, newMember);
}
| 6,401,184 | [
1,
9021,
279,
729,
12459,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7936,
67,
5990,
12,
2867,
394,
4419,
13,
203,
3639,
1071,
203,
3639,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
13,
203,
565,
288,
203,
3639,
7936,
2996,
12,
19630,
16,
394,
4419,
1769,
203,
565,
289,
203,
203,
2,
... |
./partial_match/42/0x6f60d63C6E8ECAB88931fA308806e11f09c0ca16/sources/P2PLending.sol | require(balances[msg.sender] >= amount, 'Not enough money on your BankAccount');require(ifLoanOpen(msg.sender, reciever) == true, 'You have already paid your debt');loans[msg.sender].openLoan = false;delete loans[msg.sender]; | function repayLoan() payable public{
require(isBorrower(msg.sender), 'You are not an Borrower');
require(hasOngoingLoan[msg.sender] == true, 'You do not have an ongoing Loan');
address payable reciever = (loans[msg.sender].investor);
loans[msg.sender].original_amount -= msg.... | 9,093,970 | [
1,
6528,
12,
70,
26488,
63,
3576,
18,
15330,
65,
1545,
3844,
16,
296,
1248,
7304,
15601,
603,
3433,
25610,
3032,
8284,
6528,
12,
430,
1504,
304,
3678,
12,
3576,
18,
15330,
16,
1950,
1385,
502,
13,
422,
638,
16,
296,
6225,
1240,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2071,
528,
1504,
304,
1435,
8843,
429,
1071,
95,
203,
3639,
2583,
12,
291,
38,
15318,
264,
12,
3576,
18,
15330,
3631,
296,
6225,
854,
486,
392,
605,
15318,
264,
8284,
203,
3639,
2583,
12,
5332,
1398,
8162,
1504,
304,
... |
pragma solidity ^0.5.0;
import "./ProjectRegistry.sol";
import "./HyphaToken.sol";
import "./Project.sol";
import "./ProjectLibrary.sol";
import "./Task.sol";
import "./library/PLCRVoting.sol";
import "./library/Division.sol";
import "./library/SafeMath.sol";
import "./library/Ownable.sol";
/**
@title This contract s... | call project to "send back" staked tokens to put in proposer's balances
| uint256[2] memory proposerVals = projectRegistry.refundProposer(_projectAddress, msg.sender); | 12,904,753 | [
1,
1991,
1984,
358,
315,
4661,
1473,
6,
384,
9477,
2430,
358,
1378,
316,
450,
5607,
1807,
324,
26488,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
63,
22,
65,
3778,
450,
5607,
13169,
273,
1984,
4243,
18,
1734,
1074,
626,
5607,
24899,
4406,
1887,
16,
1234,
18,
15330,
1769,
540,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x182Baf9C861C04c12f7ea974397f23F909AA9520/sources/contracts/market.sol | * Network: Polygon Testnet (Mumbai) Aggregator: MATIC/USD Address: 0xd0D5e3DB44DE05E9F294BB0a3bEEaF030DE24Ada/ | constructor() {
priceFeed = AggregatorV3Interface(0xd0D5e3DB44DE05E9F294BB0a3bEEaF030DE24Ada);
}
| 9,504,140 | [
1,
3906,
30,
12681,
7766,
2758,
261,
49,
3592,
10658,
13,
10594,
639,
30,
490,
11781,
19,
3378,
40,
5267,
30,
374,
7669,
20,
40,
25,
73,
23,
2290,
6334,
1639,
6260,
41,
29,
42,
5540,
24,
9676,
20,
69,
23,
70,
9383,
69,
42,
463... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3885,
1435,
288,
203,
3639,
6205,
8141,
273,
10594,
639,
58,
23,
1358,
12,
20,
7669,
20,
40,
25,
73,
23,
2290,
6334,
1639,
6260,
41,
29,
42,
5540,
24,
9676,
20,
69,
23,
70,
9383,
69,
42,
4630,
20,
1639,
3247,
1871,
69,... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IOperatorManager.sol";
import "hardhat/console.sol";
contract MutableOperatorManager is IOperatorManager, Ownable {
address public op;
string public endpoint;
constructor(addres... | Get the current relayer's URI | function operatorURI() external view returns(string memory) {
return (op != address(0) ? endpoint : "");
}
| 6,477,971 | [
1,
967,
326,
783,
1279,
1773,
1807,
3699,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3726,
3098,
1435,
3903,
1476,
1135,
12,
1080,
3778,
13,
288,
203,
3639,
327,
261,
556,
480,
1758,
12,
20,
13,
692,
2494,
294,
1408,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x0044B4CcecD2b09906a43e27c62645894d69c9c9/sources/ERC721Contract.sol | // Token Approvals // | mapping(uint256 => address) public getApproved;
| 2,726,829 | [
1,
759,
3155,
1716,
685,
4524,
368,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
11890,
5034,
516,
1758,
13,
1071,
336,
31639,
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,
-1... |
./full_match/43114/0xD7987F46b12BA6de411297C40BAD4b802c333FE0/sources/Arcane.sol | JoeV2 for Avax network
| IJoeRouter02 _joeV2Router = IJoeRouter02(0x60aE616a2155Ee3d9A68541Ba4544862310933d4); | 4,549,323 | [
1,
46,
15548,
58,
22,
364,
8789,
651,
2483,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
46,
15548,
8259,
3103,
389,
78,
15548,
58,
22,
8259,
273,
467,
46,
15548,
8259,
3103,
12,
20,
92,
4848,
69,
41,
26,
2313,
69,
5340,
2539,
41,
73,
23,
72,
29,
37,
9470,
6564,
21,
38,
69,
7950,
6334,
5292,
4366,
22... |
./full_match/56/0x6Df6a43Be4B706c45BC028D652829299D932d000/sources/juryProject.sol | admin function to change the limit of weekly votes | function setWeeklyVotesLimit(uint256 count) public whenNotPaused {
require(_msgSender() != address(0), "invalid address");
require(count > 0, "Jury Protocol: number of weekly votes can't be zero.");
require(
hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
"Jury Protocol: C... | 3,235,568 | [
1,
3666,
445,
358,
2549,
326,
1800,
434,
4860,
715,
19588,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
6630,
715,
29637,
3039,
12,
11890,
5034,
1056,
13,
1071,
1347,
1248,
28590,
288,
203,
3639,
2583,
24899,
3576,
12021,
1435,
480,
1758,
12,
20,
3631,
315,
5387,
1758,
8863,
203,
3639,
2583,
12,
1883,
405,
374,
16,
3... |
// LC->05.11.2015
// наречия, которые моргут употребляться внутри аналитической конструкции
// страдательного залога для простого времени:
// Grachtengordel had not yet been established.
// ^^^
wordentry_set PassiveInnerAdverb0=
{
eng_adverb:yet{}, // Grachtengordel had not yet been establish... | Two policemen were foully murdered.
| eng_adverb:foully{}, | 12,917,391 | [
1,
11710,
2952,
1812,
27617,
4591,
18261,
420,
93,
312,
295,
765,
329,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24691,
67,
361,
16629,
30,
617,
420,
93,
2916,
16,
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... |
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be... | * @dev Contract module that allows children to implement role-based access control mechanisms. Roles are referred to by their `bytes32` identifier. These should be exposed in the external API and be unique. The best way to achieve this is by using `public constant` hash digests: ``` bytes32 public constant MY_ROLE = ke... | abstract contract AccessControl is Context {
using EnumerableSet for EnumerableSet.AddressSet;
using Address for address;
struct RoleData {
EnumerableSet.AddressSet members;
bytes32 adminRole;
}
mapping (bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
... | 11,742,692 | [
1,
8924,
1605,
716,
5360,
2325,
358,
2348,
2478,
17,
12261,
2006,
3325,
1791,
28757,
18,
19576,
854,
29230,
358,
635,
3675,
1375,
3890,
1578,
68,
2756,
18,
8646,
1410,
506,
16265,
316,
326,
3903,
1491,
471,
506,
3089,
18,
1021,
3796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24349,
353,
1772,
288,
203,
225,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
225,
1450,
5267,
364,
1758,
31,
203,
203,
203,
203,
225,
1958,
6204,
751,
288,
203,
565,
6057,
25121,
694,
18,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import { IMimeticMetadata } from "./Modules/IMimeticMetadata.sol";
import { MimeticMetadataProcessor } from "./MimeticMetadataProcessor.sol";
import { Ownable } from "@openzeppelin/cont... | Finally set the top token of the generation | generation.top = _topTokenId;
| 6,368,943 | [
1,
29987,
444,
326,
1760,
1147,
434,
326,
9377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9377,
18,
3669,
273,
389,
3669,
1345,
548,
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,
-1... |
./full_match/80001/0x86035EE80e73B5315E05740fCfad8cd7205533b0/sources/project_/contracts/QBE.sol | WRITE FUNCTIONS get tokenURI | function tokenURI(uint256 tokenId) public view override returns (string memory) {
return metadata.tokenURI(tokenId);
}
| 5,696,109 | [
1,
11677,
13690,
55,
336,
1147,
3098,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
1982,
18,
2316,
3098,
12,
2316,
548,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to,... | make sure m_numOwner is equal to the number of owners and always points to the optimal free slot
| reorganizeOwners(); | 897,003 | [
1,
6540,
3071,
312,
67,
2107,
5541,
353,
3959,
358,
326,
1300,
434,
25937,
471,
3712,
3143,
358,
326,
16413,
4843,
4694,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
283,
22543,
554,
5460,
414,
5621,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/4/0x45821443e38E1bAF76ACB94964c23F313104b9E9/sources/contracts/Marketplace.sol | @dev Structure for offer | struct CreateOffer {
address nftAddress;
uint256 tokenId;
address owner;
address buyer;
address payToken;
uint256 startTime;
uint256 startPricePerItem;
uint256 quantity;
uint256 endTime;
uint256 endPricePerItem;
uint256 nonce;
... | 8,677,645 | [
1,
6999,
364,
10067,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
1788,
10513,
288,
203,
3639,
1758,
290,
1222,
1887,
31,
203,
3639,
2254,
5034,
1147,
548,
31,
203,
3639,
1758,
3410,
31,
203,
3639,
1758,
27037,
31,
203,
3639,
1758,
8843,
1345,
31,
203,
3639,
2254,
5034,
8657,
31,
203... |
pragma solidity ^0.4.11;
contract PullPayInterface {
function asyncSend(address _dest) public payable;
}
contract Governable {
// list of admins, council at first spot
address[] public admins;
function Governable() {
admins.length = 1;
admins[0] = msg.sender;
}
modifier only... | * @title SafeMath @dev Math operations with safety checks that throw on error/ | library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a / b;
return c;
}
function sub(uint256 a, uint256 b) internal retur... | 1,002,708 | [
1,
9890,
10477,
225,
2361,
5295,
598,
24179,
4271,
716,
604,
603,
555,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14060,
10477,
288,
203,
225,
445,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
276,
273,
279,
380,
324,
31,
203,
565,
1815,
12,
69,
422,
374,
747,
276... |
/*
Copyright 2018 Subramanian Venkatesan, Binod Nirvan
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 ... | @notice Adds multiple accounts to the whitelist.@param _accounts The wallet addresses to add to the whitelist. | function addManyWhitelist(address[] _accounts) external whenNotPaused onlyAdmin returns(bool) {
for(uint8 i = 0;i < _accounts.length;i++) {
if(_accounts[i] != address(0) && !whitelist[_accounts[i]]) {
whitelist[_accounts[i]] = true;
emit WhitelistAdded(_accounts[i]);
}
}
retu... | 1,753,236 | [
1,
3655,
3229,
9484,
358,
326,
10734,
18,
389,
13739,
1021,
9230,
6138,
358,
527,
358,
326,
10734,
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,
... | [
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,
445,
527,
5594,
18927,
12,
2867,
8526,
389,
13739,
13,
3903,
1347,
1248,
28590,
1338,
4446,
1135,
12,
6430,
13,
288,
203,
565,
364,
12,
11890,
28,
277,
273,
374,
31,
77,
411,
389,
13739,
18,
2469,
31,
77,
27245,
288,
203,
... |
./full_match/80001/0x075318650DfFBcf3488b3b545276e50180B4e699/sources/contracts/MyContract2.sol | uint256 fee = _quantity * mintRate;require(paymentToken.balanceOf(_claimer, address(this), fee), "Token transfer failed");uint256 fee = mintRate * _quantity; | function verifyClaim(address _claimer, uint256 _tokenId, uint256 _quantity) public view override {
require(paymentToken.balanceOf(_claimer) == mintRate, "you have not enought token balance for Mint Hero!");
require(isGamePaused == false, "Game Paused!");
require(_quantity == 1, "You can on... | 9,538,577 | [
1,
11890,
5034,
14036,
273,
389,
16172,
225,
312,
474,
4727,
31,
6528,
12,
9261,
1345,
18,
12296,
951,
24899,
830,
69,
4417,
16,
1758,
12,
2211,
3631,
14036,
3631,
315,
1345,
7412,
2535,
8863,
11890,
5034,
14036,
273,
312,
474,
4727,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3929,
9762,
12,
2867,
389,
830,
69,
4417,
16,
2254,
5034,
389,
2316,
548,
16,
2254,
5034,
389,
16172,
13,
1071,
1476,
3849,
288,
203,
203,
3639,
2583,
12,
9261,
1345,
18,
12296,
951,
24899,
830,
69,
4417,
13,
422,
312... |
./partial_match/1/0x4b847DE01696f7D94b50Df9F2B4BdFEeAA379722/sources/ControllerV2.sol | / keccak256(abi.encodePacked("ADMIN")); keccak256(abi.encodePacked("HARVESTER")); | contract ControllerV2 is IControllerV2, AccessControl {
using SafeMath for uint;
bytes32 public constant override ADMIN_ROLE =
0xdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42;
bytes32 public constant override HARVESTER_ROLE =
0x27e3e4d29d60af3ae6456513164bb5db737d6fc8610a... | 9,252,462 | [
1,
19,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
2932,
15468,
7923,
1769,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
2932,
44,
985,
3412,
22857,
7923,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
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,
6629,
58,
22,
353,
467,
2933,
58,
22,
16,
24349,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
1731,
1578,
1071,
5381,
3849,
25969,
67,
16256,
273,
203,
3639,
374,
92,
2180,
28,
70,
24,
71,
25,
3462,
... |
./full_match/1/0xA5A823294AF53B983969BB48cAA3cDb28545828F/sources/contracts/Tokens/RAIR721_Contract.sol | @notice Loops through a range of tokens and returns the first token without an owner @dev Loops are expensive in solidity, do not use this in a gas-consuming function @param startingToken Starting token for the search @param endingToken Ending token for the search | function _getNextSequentialIndexInRange(
uint startingToken,
uint endingToken
) internal view returns (uint nextIndex) {
for (nextIndex = startingToken; nextIndex <= endingToken; nextIndex++) {
if (!_exists(nextIndex)) {
break;
}
}
... | 3,159,713 | [
1,
31409,
3059,
279,
1048,
434,
2430,
471,
1135,
326,
1122,
1147,
2887,
392,
3410,
21114,
202,
31409,
854,
19326,
316,
18035,
560,
16,
741,
486,
999,
333,
316,
279,
16189,
17,
17664,
310,
445,
21114,
202,
18526,
1345,
225,
202,
11715,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
2134,
28241,
1016,
25277,
12,
203,
3639,
2254,
5023,
1345,
16,
203,
3639,
2254,
11463,
1345,
203,
565,
262,
2713,
1476,
1135,
261,
11890,
22262,
13,
288,
203,
3639,
364,
261,
4285,
1016,
273,
5023,
1345,
31,
2... |