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
pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint2...
* @dev Returns the rate of tokens per wei at the present time. Note that, as price _increases_ with time, the rate _decreases_. @return The number of tokens a buyer gets per wei at a given time/
function getCurrentRate() public view returns (uint256) { }
11,789,752
[ 1, 1356, 326, 4993, 434, 2430, 1534, 732, 77, 622, 326, 3430, 813, 18, 3609, 716, 16, 487, 6205, 389, 267, 1793, 3304, 67, 598, 813, 16, 326, 4993, 389, 323, 1793, 3304, 27799, 327, 1021, 1300, 434, 2430, 279, 27037, 5571, 1534, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 5175, 4727, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 203, 203, 203, 377, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "../controller/ControllerInterface.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Bridge is Ownable { enum RequestStatus {PENDING, CANCELED, APPROVED, REJECTED} struct Request { address requester; // sender of the req...
asset txid for sending/redeeming asset in the mint/burn process.
string txid;
917,079
[ 1, 9406, 18372, 364, 5431, 19, 266, 24903, 310, 3310, 316, 326, 312, 474, 19, 70, 321, 1207, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 533, 18372, 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, -100, -100, -100,...
// File: contracts/ErrorReporter.sol pragma solidity 0.4.24; contract ErrorReporter { /** * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary * contract-specific code that enables us to report opaque error codes from upgradeable contracts. ...
* @dev liquidationDiscount for collateral when liquidating borrows/
Exp public liquidationDiscount;
80,881
[ 1, 549, 26595, 367, 9866, 364, 4508, 2045, 287, 1347, 4501, 26595, 1776, 324, 280, 3870, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 7784, 1071, 4501, 26595, 367, 9866, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x08C986972dD7d08c235B3F86520Eb6718d7371aF/sources/contracts/interfaces/IBondPositionManager.sol
Deposit Principle token in Treasury through Bond contract
interface IBondPositionManager { function mint(address account) external; function burn(uint256 tokenId) external; function nextId() external view returns (uint256); function ownerOf(uint256 tokenId) external view returns (address); function bondPerTokenId(uint256 tokenId) external view returns ...
17,027,501
[ 1, 758, 1724, 2301, 9523, 2444, 1147, 316, 399, 266, 345, 22498, 3059, 605, 1434, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 16178, 2555, 1318, 288, 203, 565, 445, 312, 474, 12, 2867, 2236, 13, 3903, 31, 203, 203, 565, 445, 18305, 12, 11890, 5034, 1147, 548, 13, 3903, 31, 203, 203, 565, 445, 1024, 548, 1435, 3903, 1476, 1135, 261, 11890, 5034, ...
pragma solidity ^0.5.16; interface IERC20 { function TOTALSUPPLY39() external view returns (uint256); //inject NONSTANDARD NAMING function BALANCEOF342(address account) external view returns (uint256); //inject NONSTANDARD NAMING function T...
inject NONSTANDARD NAMING
function _MSGDATA393() internal view returns (bytes memory) {
12,811,395
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 11210, 4883, 5520, 23, 1435, 2713, 1476, 1135, 261, 3890, 3778, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; /** * Optimized description of Arachyl network. register(01.02.03.04) register(01.03.03.04) register(01.02.04.05) register(01.02.02.02) register(01.02.02.03) register(01.02.02.01) root.min = 01 root.max = 01 root.minUid = 01.02.03.04 root.maxUid =...
/ change the cws OP stands for Operation
contract Arachyl2 { address cws = 0x7115ABcCa5f0702E177f172C1c14b3F686d6A63a; uint constant registrationFee = 20 * 1e18; uint8 constant registrationDifficulty = 2; uint8 constant FIRST_ROUTE_DIFFICULTY = 2; uint8 constant ROUTE_DIFFICULTY = 4; register(01.02.03.04) struc...
5,430,445
[ 1, 19, 2549, 326, 276, 4749, 7247, 384, 5708, 364, 4189, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 432, 354, 343, 93, 80, 22, 288, 203, 565, 1758, 276, 4749, 273, 374, 92, 27, 22062, 2090, 71, 23508, 25, 74, 8642, 3103, 41, 29882, 74, 28406, 39, 21, 71, 3461, 70, 23, 42, 26, 5292, 72, 26, 37, 4449, 69, 31, 203, ...
./full_match/1/0xb44FcB65D5E149983EEC12f1f61aed138c1e45d0/sources/contracts/MinterBurner.sol
@notice Burn tokens is ready to burn and mint calculated reward
function burnAndMint() external onlyRole(MINTER_AND_BURNER_ROLE) { require(readyToBurn > 0, "MinterBurner: nothing to burn"); require( IGoMiningToken(Token).balanceOf(address(this)) >= readyToBurn, "MinterBurner: not enough balance" ); uint256 amountToMint =...
4,933,373
[ 1, 38, 321, 2430, 353, 5695, 358, 18305, 471, 312, 474, 8894, 19890, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18305, 1876, 49, 474, 1435, 3903, 1338, 2996, 12, 6236, 2560, 67, 4307, 67, 38, 8521, 654, 67, 16256, 13, 288, 203, 3639, 2583, 12, 1672, 774, 38, 321, 405, 374, 16, 315, 49, 2761, 38, 321, 264, 30, 5083, 358, 18305...
/** * SPDX-License-Identifier: MIT * * Copyright (c) 2018-2020 CENTRE SECZ * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the right...
* @notice Upgrade, transfer proxy admin role to a given address, run a sanity test, and tear down the upgrader contract, in a single atomic transaction. It rolls back if there is an error./ The helper needs to be used to read contract state because AdminUpgradeabilityProxy does not allow the proxy admin to make proxy c...
function upgrade() external onlyOwner { uint256 contractBal = _helper.balanceOf(address(this)); require(contractBal >= 2e5, "V2_1Upgrader: 0.2 BRLC needed"); uint256 callerBal = _helper.balanceOf(msg.sender); string memory name = _helper.name(); string memory symbol = _hel...
1,098,308
[ 1, 10784, 16, 7412, 2889, 3981, 2478, 358, 279, 864, 1758, 16, 1086, 279, 16267, 1842, 16, 471, 268, 2091, 2588, 326, 731, 22486, 6835, 16, 316, 279, 2202, 7960, 2492, 18, 2597, 5824, 87, 1473, 309, 1915, 353, 392, 555, 18, 19, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 8400, 1435, 3903, 1338, 5541, 288, 203, 203, 3639, 2254, 5034, 6835, 38, 287, 273, 389, 4759, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 2583, 12, 16351, 38, 287, 1545, 576, 73, 25, 16, 315, 58, 22, 67, 2...
pragma solidity >0.4.24 <0.6.0; contract ClaimLocationManager { uint locationId; uint loops; address tempAddress; uint maxSearch; int biggestX; int biggestY; int smallestX; int smallestY; int prevX; int prevY; struct location { uint locationId; int...
check if empty place
function lookForLocation (int x, int y) public returns (bool) { require(loops < maxSearch); int newX = x; int newY = y; bool empty = false; if(empty){ return true; } bool goRightFirst = checkGoright(newX, newY); while(!empty && (newX >= biggestX) && goRig...
12,832,517
[ 1, 1893, 309, 1008, 3166, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 2324, 1290, 2735, 261, 474, 619, 16, 509, 677, 13, 1071, 1135, 261, 6430, 13, 288, 203, 377, 2583, 12, 383, 4473, 411, 943, 2979, 1769, 203, 565, 509, 394, 60, 273, 619, 31, 27699, 565, 509, 394, 61, 273, 677, 31, 203, ...
./partial_match/1/0xe2722579f525d02576799934072EFb50441d452f/sources/Component.sol
@author james foley http://github.com/realisation @notice selectively deposit any supported stablecoin flavor into the contract in return for corresponding amount of component tokens @param _derivatives an array containing the addresses of the flavors being deposited into @param _amounts an array containing the values...
function selectiveDeposit ( address[] calldata _derivatives, uint[] calldata _amounts, uint _minComponents, uint _deadline ) external deadline(_deadline) transactable nonReentrant returns ( uint componentsMinted_ ) { componentsMinted_ = SelectiveLiquidity.sel...
3,643,118
[ 1, 78, 753, 284, 790, 93, 1062, 2207, 6662, 18, 832, 19, 7688, 10742, 225, 2027, 4492, 443, 1724, 1281, 3260, 14114, 12645, 19496, 1368, 326, 6835, 316, 327, 364, 4656, 3844, 434, 1794, 2430, 225, 389, 20615, 8785, 392, 526, 4191, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2027, 688, 758, 1724, 261, 203, 3639, 1758, 8526, 745, 892, 389, 20615, 8785, 16, 203, 3639, 2254, 8526, 745, 892, 389, 8949, 87, 16, 203, 3639, 2254, 389, 1154, 7171, 16, 203, 3639, 2254, 389, 22097, 1369, 203, 565, ...
./full_match/1/0x6494c198a3cAF90Eb0A023F1191E6edc13a41042/sources/src/interfaces/IMembershipNFT.sol
in terms of blocck number
uint32 transferLockedUntil;
8,440,205
[ 1, 267, 6548, 434, 324, 1829, 363, 1300, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1578, 7412, 8966, 9716, 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,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "hardhat/console.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard....
Returns only items a user has created */
function fetchItemsCreated() public view returns (MarketItem[] memory) { uint256 totalItemCount = _itemIds.current(); uint256 itemCount = 0; uint256 currentIndex = 0; for (uint256 i = 0; i < totalItemCount; i++) { if (idToMarketItem[i + 1].seller == msg.sender) { ...
12,690,012
[ 1, 1356, 1338, 1516, 279, 729, 711, 2522, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2158, 3126, 6119, 1435, 1071, 1476, 1135, 261, 3882, 278, 1180, 8526, 3778, 13, 288, 203, 3639, 2254, 5034, 2078, 30687, 273, 389, 1726, 2673, 18, 2972, 5621, 203, 3639, 2254, 5034, 761, 1380, 273, 374, 31, 203, 3639, 2...
pragma solidity ^0.4.15; /* @dev ERC Token Standard #20 Interface (https://github.com/ethereum/EIPs/issues/20) */ contract ERC20 { //Use original ERC20 totalSupply function instead of public variable since //we are mapping the functions for upgradeability uint256 public totalSupply; function ba...
@dev Unlock protected tokens from an address. @param _from address The address to transfer from. @param _value uint256 The amount to be transferred. @param _secret string The secret phrase protecting the tokens. special case: msg.sender is the owner (Mint)
function protectedUnlock(address _from, uint256 _value, string _secret) external whenNotPaused returns (bool) { address to = msg.sender; if (msg.sender == owner) { to = theCoin; } balances[to] = balances[to].add(_value); protectedSupply = protectedSup...
5,449,043
[ 1, 7087, 4750, 2430, 628, 392, 1758, 18, 225, 389, 2080, 1758, 1021, 1758, 358, 7412, 628, 18, 225, 389, 1132, 2254, 5034, 1021, 3844, 358, 506, 906, 4193, 18, 225, 389, 5875, 533, 1021, 4001, 13045, 17151, 310, 326, 2430, 18, 4582,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4750, 7087, 12, 2867, 389, 2080, 16, 2254, 5034, 389, 1132, 16, 533, 389, 5875, 13, 3903, 1347, 1248, 28590, 1135, 261, 6430, 13, 288, 203, 3639, 1758, 358, 273, 1234, 18, 15330, 31, 203, 203, 3639, 309, 261, 3576, 18...
./partial_match/3/0x77b12c7B54d5a4CdA274f17BcB1D064c69699cA9/sources/Marathon.sol
Biến lưu số lượng vđv có trong danh sách trên.
uint public athletes_count;
5,278,029
[ 1, 18808, 162, 123, 128, 82, 328, 135, 113, 89, 272, 162, 124, 244, 328, 135, 113, 162, 124, 101, 3368, 331, 133, 244, 90, 276, 132, 116, 433, 932, 302, 304, 76, 272, 132, 99, 343, 433, 132, 108, 82, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 225, 421, 1810, 281, 67, 1883, 31, 7010, 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...
pragma solidity ^0.5.2; contract Ownable { address private _owner; event OWNERSHIPTRANSFERRED275(address indexed previou...
inject NONSTANDARD NAMING
function REMOVE600(Role storage role, address account) internal {
7,302,952
[ 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, 26056, 28133, 12, 2996, 2502, 2478, 16, 1758, 2236, 13, 2713, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.19; contract ETHRoyale { address devAccount = 0x50334D202f61F80384C065BE6537DD3d609FF9Ab; //Dev address to send dev fee (0.75%) to. uint masterBalance; //uint var for total real balance of contract uint masterApparentBalance; //var for total apparent balance of contract (real balanc...
Check if sender is withdrawing their entire balance or will leave less than 0.01ETH
if (accountBalance[_owner] == _amount || accountBalance[_owner] - _amount < 10000000000000000) {
6,462,614
[ 1, 1564, 309, 5793, 353, 598, 9446, 310, 3675, 7278, 11013, 578, 903, 8851, 5242, 2353, 374, 18, 1611, 1584, 44, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 309, 261, 4631, 13937, 63, 67, 8443, 65, 422, 389, 8949, 747, 2236, 13937, 63, 67, 8443, 65, 300, 389, 8949, 411, 2130, 12648, 9449, 13, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.6.0; import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./interfaces/IStaking.sol"; contract YieldFarmGenericToken { // lib using SafeMath for uint; using...
public methods public method to harvest all the unharvested epochs until current epoch - 1 force max number of epochs i = epochId compute distributed Value and do one single transfer at the end
function massHarvest() external returns (uint){ uint totalDistributedValue; if (epochId > NR_OF_EPOCHS) { epochId = NR_OF_EPOCHS; } for (uint128 i = lastEpochIdHarvested[msg.sender] + 1; i <= epochId; i++) { totalDistributedValue += _harvest(i); } ...
26,427
[ 1, 482, 2590, 1071, 707, 358, 17895, 26923, 777, 326, 640, 30250, 90, 3149, 25480, 3180, 783, 7632, 300, 404, 2944, 943, 1300, 434, 25480, 277, 273, 7632, 548, 3671, 16859, 1445, 471, 741, 1245, 2202, 7412, 622, 326, 679, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8039, 44, 297, 26923, 1435, 3903, 1135, 261, 11890, 15329, 203, 3639, 2254, 2078, 1669, 11050, 620, 31, 203, 3639, 309, 261, 12015, 548, 405, 423, 54, 67, 3932, 67, 41, 30375, 55, 13, 288, 203, 5411, 7632, 548, 273, 4...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //import "Register.sol"; import "contracts/Register.sol"; /** * @notice This contract inherit from abstract contract "Register". It register the whitelist of accounts allowed to take art in democratic activities of the DAO. This list of citizens is edited by...
@dev List of accounts that have been Permanently banned and can not be added anymore (blacklist)
address[] Permanently_Banned_Citizens;
5,353,611
[ 1, 682, 434, 9484, 716, 1240, 2118, 13813, 12055, 715, 324, 10041, 471, 848, 486, 506, 3096, 16828, 261, 22491, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 377, 1758, 8526, 13813, 12055, 715, 67, 38, 10041, 67, 39, 305, 452, 773, 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, ...
./partial_match/1/0x43e967c68D00C5670382D2C00689400a107f7178/sources/CoffeeWars.sol
Importing ERC721AQueryable which is a much more gas efficient contractImporting Openzeppelin Ownable standard to keep track of who the owner isImporting Openzeppelin strings library to convert uint256 variables to a stringImporting base64 encoding libraryThis contract inherits both of the contracts improrted aboveThis ...
contract CoffeeWars is ERC721AQueryable, Ownable { using Strings for uint256; error NullNumber(); error NullString(); error NullAddress(); error NonexistentToken(); error WrongLength(); uint256 public drop_unlock_time; string private baseURI; constructor( uint256 _...
4,274,141
[ 1, 5010, 310, 4232, 39, 27, 5340, 37, 1138, 429, 1492, 353, 279, 9816, 1898, 16189, 14382, 6835, 5010, 310, 3502, 94, 881, 84, 292, 267, 14223, 6914, 4529, 358, 3455, 3298, 434, 10354, 326, 3410, 353, 5010, 310, 3502, 94, 881, 84, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 385, 3674, 1340, 59, 5913, 353, 4232, 39, 27, 5340, 37, 1138, 429, 16, 14223, 6914, 288, 203, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 555, 4112, 1854, 5621, 203, 565, 555, 4112, 780, 5621, 203, 565, 555...
/** *Submitted for verification at Etherscan.io on 2020-08-10 */ // SPDX-License-Identifier: MIT /* MIT License Copyright (c) 2018 requestnetwork Copyright (c) 2018 Fragments, Inc. Copyright (c) 2020 Rebased Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
* @return Computes the total supply adjustment in response to the exchange rate and the targetRate./
function computeSupplyDelta(uint256 rate, uint256 targetRate) internal view returns (int256) { if (withinDeviationThreshold(rate, targetRate)) { return 0; } return rebased.totalSupply().toInt256Safe() .mul(rate.toInt256Safe().sub(targetRat...
2,097,747
[ 1, 2463, 14169, 281, 326, 2078, 14467, 18335, 316, 766, 358, 326, 7829, 4993, 540, 471, 326, 1018, 4727, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3671, 3088, 1283, 9242, 12, 11890, 5034, 4993, 16, 2254, 5034, 1018, 4727, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 474, 5034, 13, 203, 565, 288, 203, 3639, 309, 261, 25850, 758, 13243, 7614, 12, 5141...
./partial_match/97/0x74ccFf3343d2349ed216d10985a43010aF256E30/sources/Digihats.sol
* @title DigiHats contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ Public variables This is the provenance record of all DigiHats artwork in existencestring public constant DIGIHATS_PROVENANCE = ""; Time after which Digihats are randomized and allotted Equals to `bytes4(keccak256("onERC721...
contract Digihats is Context, Ownable, ERC165, iDigihats, IERC721Metadata { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; uint256 public constant SALE_STA...
11,494,229
[ 1, 4907, 77, 44, 2323, 6835, 225, 6419, 5839, 4232, 39, 27, 5340, 3858, 17, 42, 20651, 1523, 3155, 8263, 5337, 4471, 19, 7224, 3152, 1220, 353, 326, 24185, 1409, 434, 777, 11678, 77, 44, 2323, 3688, 1252, 316, 1005, 2369, 371, 1071,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 11678, 7392, 2323, 353, 1772, 16, 14223, 6914, 16, 4232, 39, 28275, 16, 277, 4907, 7392, 2323, 16, 467, 654, 39, 27, 5340, 2277, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, ...
./full_match/4/0xDF67003A3e4CB274E21764db12EB89cf758F4846/sources/contracts/Arbit.sol
address public sushiTk0;address public sushiTk1;
contract Arbitrage { address public factory; uint constant deadline = 10 days; IUniswapV2Router02 public sushiRouter; constructor(address _factory, address _sushiRouter) public { factory = _factory; sushiRouter = IUniswapV2Router02(_sushiRouter); } function startArbitrage( addre...
768,194
[ 1, 2867, 1071, 272, 1218, 77, 56, 79, 20, 31, 2867, 1071, 272, 1218, 77, 56, 79, 21, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 16351, 1201, 3682, 86, 410, 288, 203, 225, 1758, 1071, 3272, 31, 203, 225, 2254, 5381, 14096, 273, 1728, 4681, 31, 203, 225, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 272, 1218, 77, 8259, 31, 203, 21281, 203, 225, 3885,...
//SPDX-License-Identifier: None pragma solidity ^0.6.6; /** * @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...
* @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor...
library SafeMath { pragma solidity ^0.6.6; function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, ...
5,964,658
[ 1, 24114, 1879, 348, 7953, 560, 1807, 30828, 5295, 598, 3096, 9391, 4271, 18, 27443, 5295, 316, 348, 7953, 560, 2193, 603, 9391, 18, 1220, 848, 17997, 563, 316, 22398, 16, 2724, 5402, 81, 414, 11234, 6750, 716, 392, 9391, 14183, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 10477, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, 26, 31, 203, 565, 445, 527, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 276, 27...
./full_match/83/0xf063E7c32CBeE0890524AB919758ef72De48e18d/sources/contracts/BaseV1-core.sol
this function MUST be called on any balance changes, otherwise can be used to infinitely claim fees Fees are segregated from core funds, so fees can never put liquidity at risk
function _updateFor(address recipient) internal { if (_supplied > 0) { uint256 _supplyIndex1 = supplyIndex1[recipient]; uint256 _index1 = index1; supplyIndex1[recipient] = _index1; uint256 _delta1 = _index1 - _supplyIndex1; if (_delta0 > 0) { ...
9,564,253
[ 1, 2211, 445, 10685, 506, 2566, 603, 1281, 11013, 3478, 16, 3541, 848, 506, 1399, 358, 316, 926, 25818, 7516, 1656, 281, 5782, 281, 854, 2291, 1574, 690, 628, 2922, 284, 19156, 16, 1427, 1656, 281, 848, 5903, 1378, 4501, 372, 24237, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2725, 1290, 12, 2867, 8027, 13, 2713, 288, 203, 3639, 309, 261, 67, 2859, 3110, 405, 374, 13, 288, 203, 5411, 2254, 5034, 389, 2859, 1283, 1016, 21, 273, 14467, 1016, 21, 63, 20367, 15533, 203, 5411, 2254, 5034, ...
// SPDX-License-Identifier: BUSL-1.1 // For further clarification please see https://license.premia.legal pragma solidity ^0.8.0; import {EnumerableSet} from "@solidstate/contracts/utils/EnumerableSet.sol"; import {IPremiaOptionNFTDisplay} from "../interface/IPremiaOptionNFTDisplay.sol"; import {IPoolView, IERC1155M...
* @inheritdoc IPoolView/
function getLiquidityQueuePosition(address account, bool isCallPool) external view override returns (uint256 liquidityBeforePosition, uint256 positionSize) { PoolStorage.Layout storage l = PoolStorage.layout(); uint256 tokenId = _getFreeLiquidityTokenId(isCallPoo...
14,528,671
[ 1, 36, 10093, 467, 2864, 1767, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9014, 18988, 24237, 3183, 2555, 12, 2867, 2236, 16, 1426, 353, 1477, 2864, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 11890, 5034, 4501, 372, 24237, 4649, 2555, 16, 2254, 5034, 1754, 1225...
// This is deflationary project. Each LUCKY transaction triggers a burn rate of 2%. // Token rewards its holders with a 3% tax on each transaction. // Each transaction will also add 5% to the SushiSwap liquidity for a better trading experience. /* ▄▄▌ ▄• ▄▌ ▄▄· ▄ •▄ ▄· ▄▌ ▄▄▌ ▄• ▄▌▄ •▄ ▄▄▄ . ·▄▄▄▪ ▐ ▄ ▄▄▄· ▐...
* @dev Distribute tokens to all holders that are included from reward. Requirements: - the caller must have a balance of at least `amount`./
function distribute(uint256 amount) public { address sender = _msgSender(); require(!_isExcludedFromReward[sender], "Excluded addresses cannot call this function"); ValuesFromAmount memory values = _getValues(amount, false); _rBalances[sender] = _rBalances[sender] - values.rAmount; ...
13,035,763
[ 1, 1669, 887, 2430, 358, 777, 366, 4665, 716, 854, 5849, 628, 19890, 18, 225, 29076, 30, 300, 326, 4894, 1297, 1240, 279, 11013, 434, 622, 4520, 1375, 8949, 8338, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 25722, 12, 11890, 5034, 3844, 13, 1071, 288, 203, 3639, 1758, 5793, 273, 389, 3576, 12021, 5621, 203, 3639, 2583, 12, 5, 67, 291, 16461, 1265, 17631, 1060, 63, 15330, 6487, 315, 16461, 6138, 2780, 745, 333, 445, 8863, 2...
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.8.4; import '../../tools/math/WadRayMath.sol'; import '../../dependencies/openzeppelin/contracts/SafeERC20.sol'; import '../../dependencies/openzeppelin/contracts/IERC20.sol'; import '../../dependencies/compound-protocol/contracts/ICToken.sol'; import '../../misc...
@dev Interface for a price oracle.
interface IPriceOracle is IPriceOracleGetter { function updateAssetSource(address asset) external; pragma solidity ^0.8.4; }
14,374,089
[ 1, 1358, 364, 279, 6205, 20865, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 2971, 3057, 23601, 353, 2971, 3057, 23601, 8461, 288, 203, 225, 445, 1089, 6672, 1830, 12, 2867, 3310, 13, 3903, 31, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 24, 31, 203, 97, 203, 2, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; ...
delayed bonds maturing
uint256 public vaultDrip;
15,806,862
[ 1, 10790, 329, 15692, 4834, 4017, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 1071, 9229, 40, 21335, 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, ...
./full_match/1/0x73Da3dF335C59aaD6c75472cafc26953d27D7819/sources/contracts/HyperDexLPRouter.sol
solhint-disable-next-line function-max-lines, code-complexity
contract HyperDexLPRouter is HyperLPRouter { using SafeERC20v2 for IERC20; constructor(address hyperlpfactory, address weth) HyperLPRouter(hyperlpfactory, weth) function mintHyper( address hyperpool, address paymentToken, uint256 paymentAmount, address hyperDex, ...
4,996,618
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 445, 17, 1896, 17, 3548, 16, 981, 17, 14259, 560, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 18274, 40, 338, 14461, 8259, 353, 18274, 14461, 8259, 288, 203, 565, 1450, 14060, 654, 39, 3462, 90, 22, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 3885, 12, 2867, 9512, 9953, 6848, 16, 1758, 341, 546, 13, 203, 3639, 18...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /* Let's imagine we don't have access to this code, it was coded by someone else, and already deployed on blockchain */ /// PS: in real life, it's thousand lines of codes // contract Counter { // uint256 public count; // function inc() external { // coun...
Now that we have the shape of the Counter contract, we can call it exactly like we learn it!
contract CallInterface { uint256 public count; } function examples(address _counter) external { count = ICounter(_counter).count(); } }
12,668,406
[ 1, 8674, 716, 732, 1240, 326, 2179, 434, 326, 9354, 6835, 16, 732, 848, 745, 518, 8950, 3007, 732, 16094, 518, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3049, 1358, 288, 203, 225, 2254, 5034, 1071, 1056, 31, 203, 203, 97, 203, 225, 445, 10991, 12, 2867, 389, 7476, 13, 3903, 288, 203, 565, 1056, 273, 467, 4789, 24899, 7476, 2934, 1883, 5621, 203, 225, 289, 203, 97, 203, 2...
/** Website : https://saitameow.com/ Twitter : https://twitter.com/SaitameowToken Telegram : https://t.me/saitameowportal */ // SPDX-License-Identifier: MIT pragma solidity 0.8.9; abstr...
at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.when buywhen sell if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy
function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); if(amount == 0) { super...
10,105,293
[ 1, 270, 8037, 309, 326, 7412, 4624, 353, 3696, 16, 3387, 326, 1203, 11267, 364, 5405, 343, 345, 414, 353, 444, 1493, 4982, 8037, 18, 13723, 30143, 13723, 357, 80, 309, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 1508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, ...
pragma solidity ^0.6.0; /*She had followed the woman for days and at last her patience was paying off*/ /*She had followed the woman for days and at last her patience was paying off*/abstract contract Context {/*She had followed the woman for days and at last her patience was paying off*/ /*She had followed the wom...
She had followed theg offShe had followed theg off/
/*She had followed theg off*/arm4 = arm4 / 2 *( 5 );/*She had followed theg off*
1,130,737
[ 1, 55, 580, 9323, 10860, 326, 75, 3397, 55, 580, 9323, 10860, 326, 75, 3397, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 1748, 55, 580, 9323, 10860, 326, 75, 3397, 5549, 4610, 24, 273, 23563, 24, 342, 576, 380, 12, 1381, 11272, 20308, 55, 580, 9323, 10860, 326, 75, 3397, 14, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma abicoder v2; contract AdoptionCentre { constructor() { } struct UserInfo { string userName; bytes32 passHash; address accountAddress; uint256 adoptedNum; uint256 userNameIndex; } // longitude ...
user address to user related posted animal information
mapping (address => AnimalInfo[]) postAnimalRecords;
7,297,660
[ 1, 1355, 1758, 358, 729, 3746, 23082, 392, 2840, 1779, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 2867, 516, 1922, 2840, 966, 63, 5717, 1603, 979, 2840, 6499, 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...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import './Ownable.sol'; import './ReentrancyGuard.sol'; import './SafeMath.sol'; import './SafeERC20.sol'; import './IERC20.sol'; contract SyrupPool is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; // The addres...
@notice Withdraw staked tokens and collect reward tokens @param _amount: amount to withdraw (in rewardToken)/
function withdraw(uint256 _amount) external nonReentrant { require(startBlock > 0, "not initialized"); UserInfo storage user = userInfo[_msgSender()]; require(user.amount >= _amount, "Amount to withdraw too high"); _updatePool(); uint256 pending = user.amount.mul(accToken...
12,614,806
[ 1, 1190, 9446, 384, 9477, 2430, 471, 3274, 19890, 2430, 225, 389, 8949, 30, 3844, 358, 598, 9446, 261, 267, 19890, 1345, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 5034, 389, 8949, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 12, 1937, 1768, 405, 374, 16, 315, 902, 6454, 8863, 203, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 67, 3576, 12021, 1435, ...
./full_match/97/0xA0FA3d6133657669CF03890c12c3aE1C48e641db/sources/contracts/sd/sd2.sol
recieves all the reserved pairs on the two main exchanges
function getPairs() external view returns (address first, address second){ return (uniswapV2Pair, secondV2Pair); }
5,039,535
[ 1, 3927, 1385, 3324, 777, 326, 8735, 5574, 603, 326, 2795, 2774, 431, 6329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1689, 1826, 87, 1435, 3903, 1476, 1135, 261, 2867, 1122, 16, 1758, 2205, 15329, 203, 3639, 327, 261, 318, 291, 91, 438, 58, 22, 4154, 16, 2205, 58, 22, 4154, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
./full_match/97/0xDd46062Cc1771d6e65496F79117Cba9062fDc436/sources/project_/contracts/diamond/libraries/LibTrading.sol
Check that the current market is tradable price * qty * 10^18 / 10^(8+10) = price * qty The notional value must be greater than or equal to the minimum notional value allowed The notional value of the position must be less than or equal to the maximum notional value allowed by pair It is prohibited to open positions w...
function _openMarketCheck( TradingStorage storage ts, IBook.OpenDataInput calldata odi, IPairsManager.PairView memory pair, uint8 tokenInDecimals ) private view { checkTradeSwitch(ts, IBook.TradingSwitch.MARKET_TRADING); (uint marketPrice,) = LibPriceFacade.getPr...
3,264,407
[ 1, 1564, 716, 326, 783, 13667, 353, 1284, 17394, 6205, 225, 26667, 225, 1728, 66, 2643, 342, 1728, 29020, 28, 15, 2163, 13, 273, 6205, 225, 26667, 1021, 486, 285, 287, 460, 1297, 506, 6802, 2353, 578, 3959, 358, 326, 5224, 486, 285,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3190, 3882, 278, 1564, 12, 203, 3639, 2197, 7459, 3245, 2502, 3742, 16, 203, 3639, 467, 9084, 18, 3678, 751, 1210, 745, 892, 320, 3211, 16, 203, 3639, 2971, 1826, 87, 1318, 18, 4154, 1767, 3778, 3082, 16, 203, 36...
./partial_match/1/0x9156c5a5d82580b2D00eD40C6B43414f966Ec516/sources/MultichainProvider.sol
Run the crosschain transfer
IAnyswapV5Router(routerAddress).anySwapOutUnderlying(anyTokenAddress, destinationAddr, transferAmount, destinationChainId);
9,377,887
[ 1, 1997, 326, 6828, 5639, 7412, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 467, 979, 1900, 91, 438, 58, 25, 8259, 12, 10717, 1887, 2934, 2273, 12521, 1182, 14655, 6291, 12, 2273, 1345, 1887, 16, 2929, 3178, 16, 7412, 6275, 16, 2929, 3893, 548, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0x15480f5B5ED98A94e1d36b52Dd20e9a35453A38e/sources/contracts/p1/mixins/RecollateralizationLib.sol
At this point doTrade _must_ be true, otherwise nextTradePair assumptions are broken
assert(doTrade);
4,999,780
[ 1, 861, 333, 1634, 741, 22583, 389, 11926, 67, 506, 638, 16, 3541, 1024, 22583, 4154, 6287, 573, 854, 12933, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1815, 12, 2896, 22583, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0x22f1c2238c77698d95d2bf09442C289e26093169/sources/LANDAuction.sol
Process funds (burn or forward them)
_processFunds(bidId, _fromToken);
4,120,702
[ 1, 2227, 284, 19156, 261, 70, 321, 578, 5104, 2182, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 2567, 42, 19156, 12, 19773, 548, 16, 389, 2080, 1345, 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, -1...
pragma solidity ^0.4.11; //"0x64C222d300d5f978D9867fA20C5C59b6B2c849aF","9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08","1","0" contract CertiMe { // Defines a new type with two fields. struct Certificate { string certHash; address issuer_addr; address recepient...
function getCertIssuer(string key) constant returns (address,address,string,string) {
return (certHashKey[key].issuer_addr,certHashKey[key].recepient_addr,certHashKey[key].version,certHashKey[key].content);
12,690,578
[ 1, 915, 1927, 1051, 16667, 12, 1080, 498, 13, 5381, 1135, 261, 2867, 16, 2867, 16, 1080, 16, 1080, 13, 288, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 540, 327, 261, 7593, 31006, 63, 856, 8009, 17567, 67, 4793, 16, 7593, 31006, 63, 856, 8009, 8606, 84, 1979, 67, 4793, 16, 7593, 31006, 63, 856, 8009, 1589, 16, 7593, 31006, 63, 856, 8009, 1745, 1769, 203, 2, -100, -100, -100, -...
./full_match/44787/0x5Cad1ffe2bd441E42A7293bC98b3bCaEf367FaC9/sources/contracts/global/HeliosGlobals.sol
Sets the paused/unpaused state of the protocol. Only the Global Admin can call this function
function setProtocolPause(bool pause) external { require(msg.sender == globalAdmin, "HG:NOT_ADM"); protocolPaused = pause; emit ProtocolPaused(pause); }
13,241,542
[ 1, 2785, 326, 17781, 19, 318, 8774, 3668, 919, 434, 326, 1771, 18, 5098, 326, 8510, 7807, 848, 745, 333, 445, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 5752, 19205, 12, 6430, 11722, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 2552, 4446, 16, 315, 44, 43, 30, 4400, 67, 1880, 49, 8863, 203, 3639, 1771, 28590, 273, 11722, 31, 203, 3639, 3626, 4547, 28...
./partial_match/1/0x0ebAF8BA441C9DA0B345E03c7e92CDeB43426928/sources/BreakingDad.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; } constructor(string memory name_, string memo...
2,589,752
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 2277, 288, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 22...
./full_match/3/0x9Cf53e772473189eAfeC7efA48eD2E1E446fa8FF/sources/delta.sol
@dev Sequential referral IDs (skipping 0)
uint256 public totalReferralIDs;
8,224,990
[ 1, 28241, 1278, 29084, 7115, 261, 7457, 1382, 374, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2078, 1957, 29084, 5103, 31, 7010, 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.24; // File: contracts/commons/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure return...
* @dev Transfer token for a specified address @param to_ The address to transfer to. @param value_ The amount to be transferred./ SafeMath.sub will throw an exception if there is not enough balance
function transfer(address to_, uint value_) public whenNotLocked returns (bool) { require(to_ != address(0) && value_ <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(value_); balances[to_] = balances[to_].add(value_); emit Transfer(msg.sender, to_, value_); ...
944,976
[ 1, 5912, 1147, 364, 279, 1269, 1758, 225, 358, 67, 1021, 1758, 358, 7412, 358, 18, 225, 460, 67, 1021, 3844, 358, 506, 906, 4193, 18, 19, 14060, 10477, 18, 1717, 903, 604, 392, 1520, 309, 1915, 353, 486, 7304, 11013, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 358, 67, 16, 2254, 460, 67, 13, 1071, 1347, 1248, 8966, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 869, 67, 480, 1758, 12, 20, 13, 597, 460, 67, 1648, 324, 26488, 63, 3576, 18, 15330, 19226, 203,...
pragma solidity ^0.4.24; contract owned { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner { if (msg.sender != owner) revert(); _; } function transferOwnership(address newOwner) onlyOwner private { owner = newOwner; } }...
@dev Frozen for the team members.
function frozenForTeam() internal { uint totalFrozeNumber = 144 * 1000 * 1000 * 10**18; freeze(msg.sender, totalFrozeNumber); }
10,235,278
[ 1, 42, 9808, 364, 326, 5927, 4833, 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, 12810, 1290, 8689, 1435, 203, 3639, 2713, 203, 565, 288, 203, 3639, 2254, 2078, 42, 303, 8489, 1854, 273, 30457, 380, 4336, 380, 4336, 380, 1728, 636, 2643, 31, 203, 3639, 16684, 12, 3576, 18, 15330, 16, 2078, 42, 303, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "../frontend/node_modules/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; contract Market is ERC721URIStorage{ string public Name; string public Symbol; //NFT代币信息 constructor() ERC721("NFT", "NFT") { ...
出价确认拍卖在进行确认拍卖时间未结束确认钱包有余额确认出家够多更新交易现状
function Bid(uint _id, uint price) external { if (auctions[_id].on == false) revert AuctionAlreadyEnded(); if (block.timestamp > auctions[_id].endtime) revert AuctionAlreadyEnded(); if (price > msg.sender.balance) revert Poor(); if (price <= aucti...
5,516,835
[ 1, 166, 234, 123, 165, 124, 120, 168, 99, 111, 169, 111, 102, 167, 238, 240, 166, 240, 249, 166, 255, 106, 169, 128, 254, 169, 99, 239, 168, 99, 111, 169, 111, 102, 167, 238, 240, 166, 240, 249, 167, 250, 119, 170, 250, 117, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 605, 350, 12, 11890, 389, 350, 16, 2254, 6205, 13, 3903, 288, 203, 3639, 309, 261, 69, 4062, 87, 63, 67, 350, 8009, 265, 422, 629, 13, 203, 5411, 15226, 432, 4062, 9430, 28362, 5621, 203, 3639, 309, 261, 2629, 18, 5...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import './third_party/INonfungiblePositionManager.sol'; import './third_party/IPeripheryImmutableState.sol'; import './third_party/IPeripheryPayments.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC721/ERC7...
todo: Do we need to do any validation here?
function tokensReceived( address operator, address from, address to, uint256 amount, bytes calldata userData, bytes calldata operatorData ) external { }
14,104,318
[ 1, 9012, 30, 2256, 732, 1608, 358, 741, 1281, 3379, 2674, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2430, 8872, 12, 203, 3639, 1758, 3726, 16, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 1731, 745, 892, 13530, 16, 203, 3639, 1731, 745, 892, 3726, 751, 203, 565, 262...
pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions...
* @dev burn burner's coin/
function burn(uint256 amount) public onlyBurner whenNotPaused { _beforeTokenTransfer(_msgSender(), address(0), amount); _burn(_msgSender(), amount); }
2,009,733
[ 1, 70, 321, 18305, 264, 1807, 13170, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 18305, 12, 11890, 5034, 3844, 13, 1071, 1338, 38, 321, 264, 1347, 1248, 28590, 288, 203, 565, 389, 5771, 1345, 5912, 24899, 3576, 12021, 9334, 1758, 12, 20, 3631, 3844, 1769, 203, 565, 389, 70, 321, 24899, 3576, 12021, ...
//Address: 0x950e255c4362c7d7824c63911331ba0c3b090a52 //Contract name: RandomM //Balance: 0 Ether //Verification Date: 1/9/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.18; contract RandomM { uint public ticketsNum = 0; mapping(uint => uint) internal tickets; // tickets for the ...
sending rewards to the investing, team and marketing contracts
function payfee() public { require(fee_balance > 0); uint val = fee_balance; inv_contract.transfer( percent(val, 20) ); rtm_contract.transfer( percent(val, 49) ); mrk_contract.transfer( percent(val, 30) ); fee_balance = 0; }
6,371,211
[ 1, 87, 2846, 283, 6397, 358, 326, 2198, 10100, 16, 5927, 471, 13667, 310, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8843, 21386, 1435, 1071, 288, 203, 3639, 2583, 12, 21386, 67, 12296, 405, 374, 1769, 203, 3639, 2254, 1244, 273, 14036, 67, 12296, 31, 203, 3639, 2198, 67, 16351, 18, 13866, 12, 5551, 12, 1125, 16, 4200, 13, 11272, 203,...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; // File: @openzeppelin/contracts/token/ERC20/IERC20.sol /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view ret...
Similar to ValueMasterPool but will generate only a small amount of VALUE for 2 weeks at most. And we remove Migration process from this pool. Happy farming dude!
contract ValueMinorPool is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; IFreeFromUpTo public constant chi = IFreeFromUpTo(0x0000000000004946c0e9F43F4Dee607b0eF1fA1c); modifier discountCHI { uint256 gasStart = gasleft(); _; uint256 gasSpent = 21000 + gasStar...
14,351,108
[ 1, 16891, 358, 1445, 7786, 2864, 1496, 903, 2103, 1338, 279, 5264, 3844, 434, 5848, 364, 576, 17314, 622, 4486, 18, 7835, 732, 1206, 15309, 1207, 628, 333, 2845, 18, 670, 438, 2074, 284, 4610, 310, 302, 1317, 5, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1445, 19549, 2864, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 467, 9194, 1265, 1211, 774, 1071, 5381, 17198, ...
./partial_match/8453/0x000000000031163395F67E424F5B0082609709a7/sources/signed-zone/OpenSeaSignedZoneCaptain.sol
* @notice Internal function to assert that the caller is a valid deployer./ Ensure that the contract is being deployed by an approved deployer. tx.origin is used here, because we use the SignedZoneDeployer contract to deploy this contract, and initailize the owner, rotator, and sanitizer roles.
function _assertValidDeployer() internal view override { if ( tx.origin != address(0x939C8d89EBC11fA45e576215E2353673AD0bA18A) && tx.origin != address(0xe80a65eB7a3018DedA407e621Ef5fb5B416678CA) && tx.origin != address(0x86D26897267711ea4b173C8C124a0A73612001da) && ...
16,789,128
[ 1, 3061, 445, 358, 1815, 716, 326, 4894, 353, 279, 923, 7286, 264, 18, 19, 7693, 716, 326, 6835, 353, 3832, 19357, 635, 392, 20412, 7286, 264, 18, 2229, 18, 10012, 353, 1399, 2674, 16, 2724, 732, 999, 326, 16724, 4226, 10015, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 11231, 1556, 10015, 264, 1435, 2713, 1476, 3849, 288, 203, 3639, 309, 261, 203, 5411, 2229, 18, 10012, 480, 1758, 12, 20, 92, 29, 5520, 39, 28, 72, 6675, 41, 16283, 2499, 29534, 7950, 73, 25, 6669, 22, 3600, 41, ...
pragma solidity ^0.4.16; library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { uint c = a * b; require(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal pure returns (uint) { require(b > 0); uint c = a / b; require(a == b * c + a % b); ...
* Manually back TTC owner address./
function backTTCOwner() onlyOwner public { coin.transferOwnership(owner); }
2,076,145
[ 1, 5669, 3452, 1473, 399, 15988, 3410, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 1473, 1470, 39, 5541, 1435, 1338, 5541, 1071, 288, 203, 565, 13170, 18, 13866, 5460, 12565, 12, 8443, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/137/0x5751b2880D7fE4b1C9e7845eA58221456530Afe7/sources/contracts/FarmAutions.sol
* @notice Allows the owner to recover tokens sent to the contract by mistake @param _token: token address @param _amount: token amount @dev Callable by owner/
function recoverToken(address _token, uint256 _amount) external onlyOwner { require(_token != address(pdustToken), "Recover: Cannot be pDust token"); IERC20(_token).safeTransfer(address(msg.sender), _amount); emit TokenRecovery(_token, _amount); }
4,747,105
[ 1, 19132, 326, 3410, 358, 5910, 2430, 3271, 358, 326, 6835, 635, 27228, 911, 225, 389, 2316, 30, 1147, 1758, 225, 389, 8949, 30, 1147, 3844, 225, 10464, 635, 3410, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5910, 1345, 12, 2867, 389, 2316, 16, 2254, 5034, 389, 8949, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 24899, 2316, 480, 1758, 12, 22353, 641, 1345, 3631, 315, 27622, 30, 14143, 506, 293, 40, 641, 1147, 8863, 203, 203,...
./full_match/80001/0xF9db858E9958dDd5795571558C5c585E2683FB75/sources/contracts/ParagonsDAOPlayerID.sol
@notice Sets PlayerManagement contract.
function setPlayerManagement(PlayerManagement _playerManagement) external onlyOwner { playerManagement = _playerManagement; }
843,788
[ 1, 2785, 19185, 10998, 6835, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 12148, 10998, 12, 12148, 10998, 389, 14872, 10998, 13, 3903, 1338, 5541, 288, 203, 3639, 7291, 10998, 273, 389, 14872, 10998, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/1/0x986A4010D6dF5754f66F72764487070615CBDE9A/sources/contracts/Ph101ppDailyPhoto.sol
Returns latest permanent base Uri
function permanentBaseUri() public view returns (string memory) { return _permanentUris[_permanentUris.length - 1]; }
9,362,212
[ 1, 1356, 4891, 16866, 1026, 10693, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16866, 2171, 3006, 1435, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 389, 457, 4728, 319, 23900, 63, 67, 457, 4728, 319, 23900, 18, 2469, 300, 404, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /******************************************************************************\ * Author: Nick Mudge * * Implementation of an ERC20 governance token that can govern itself and a project * using the Diamond Standard. /**********************************************...
Cap voter and proposer balance used to generate awards at 5 percent of totalSupply This is to help prevent too much inflation
gs.voteAwardCapDivisor = 20;
984,828
[ 1, 4664, 331, 20005, 471, 450, 5607, 11013, 1399, 358, 2103, 279, 6397, 622, 1381, 5551, 434, 2078, 3088, 1283, 1220, 353, 358, 2809, 5309, 4885, 9816, 13947, 367, 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, 3639, 10763, 18, 25911, 37, 2913, 4664, 7244, 12385, 273, 4200, 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, ...
./partial_match/80001/0xB6e054963a22E3f0b942BA9285b9192B2C327636/sources/@cryptoalgebra/integral-periphery/contracts/interfaces/IPositionFollower.sol
@title Contract tracking liquidity position @notice Using these methods farmingCenter receives information about changes in the positions
interface IPositionFollower { function applyLiquidityDelta(uint256 tokenId, int256 liquidityDelta) external; pragma solidity >=0.5.0; }
8,797,062
[ 1, 8924, 11093, 4501, 372, 24237, 1754, 225, 11637, 4259, 2590, 284, 4610, 310, 8449, 17024, 1779, 2973, 3478, 316, 326, 6865, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5831, 467, 2555, 8328, 264, 288, 203, 565, 445, 2230, 48, 18988, 24237, 9242, 12, 11890, 5034, 1147, 548, 16, 509, 5034, 4501, 372, 24237, 9242, 13, 3903, 31, 203, 683, 9454, 18035, 560, 1545, 20, 18, 25, 18, 20, 31, 203, 97, ...
/** *Submitted for verification at Etherscan.io on 2021-03-30 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ func...
payout for claiming
function payouts(address payable _to, uint256 _amount,address token) external onlyOperator { require(_to != address(0),"_to is zero"); if (token != ETHEREUM) { IERC20(token).safeTransfer(_to, _amount); _to.transfer(_amount); } emit ePayouts(_to, _amount); ...
6,828,917
[ 1, 84, 2012, 364, 7516, 310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 293, 2012, 87, 12, 2867, 8843, 429, 389, 869, 16, 2254, 5034, 389, 8949, 16, 2867, 1147, 13, 3903, 1338, 5592, 288, 203, 3639, 2583, 24899, 869, 480, 1758, 12, 20, 3631, 6, 67, 869, 353, 3634, 8863, 203, 3639, 309, ...
pragma solidity ^0.4.11; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `...
@title all functions related to creating Ponies Limits the number of ponys the contract owner can ever create. Constants for gen0 auctions. Counts the number of ponys the contract owner has created.
contract PonyMinting is PonyAuction { uint256 public constant PROMO_CREATION_LIMIT = 5000; uint256 public constant GEN0_CREATION_LIMIT = 45000; uint256 public constant GEN0_STARTING_PRICE = 10 finney; uint256 public constant GEN0_AUCTION_DURATION = 1 days; uint256 public promoCreatedCount; ui...
11,693,757
[ 1, 454, 4186, 3746, 358, 4979, 453, 265, 606, 27240, 326, 1300, 434, 293, 265, 1900, 326, 6835, 3410, 848, 14103, 752, 18, 5245, 364, 3157, 20, 279, 4062, 87, 18, 6974, 87, 326, 1300, 434, 293, 265, 1900, 326, 6835, 3410, 711, 252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 453, 6598, 49, 474, 310, 353, 453, 6598, 37, 4062, 288, 203, 203, 565, 2254, 5034, 1071, 5381, 453, 3942, 51, 67, 5458, 2689, 67, 8283, 273, 20190, 31, 203, 565, 2254, 5034, 1071, 5381, 611, 1157, 20, 67, 5458, 2689, 67,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {FeeSharingSetter} from "./FeeSharingSetter.sol"; import {TokenSplitter} from "./TokenSplitter.sol"; /** * @title OperatorControllerForRewards * @notice It splits pending LOOKS and upd...
* @notice Constructor @param _feeSharingSetter address of the fee sharing setter contract @param _tokenSplitter address of the token splitter contract @param _teamVesting address of the team vesting contract @param _treasuryVesting address of the treasury vesting contract @param _tradingRewardsDistributor address of th...
) { feeSharingSetter = FeeSharingSetter(_feeSharingSetter); tokenSplitter = TokenSplitter(_tokenSplitter); teamVesting = _teamVesting; treasuryVesting = _treasuryVesting; tradingRewardsDistributor = _tradingRewardsDistributor; }
514,834
[ 1, 6293, 225, 389, 21386, 22897, 8465, 1758, 434, 326, 14036, 21001, 7794, 6835, 225, 389, 2316, 26738, 1758, 434, 326, 1147, 21553, 6835, 225, 389, 10035, 58, 10100, 1758, 434, 326, 5927, 331, 10100, 6835, 225, 389, 27427, 345, 22498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 288, 203, 3639, 14036, 22897, 8465, 273, 30174, 22897, 8465, 24899, 21386, 22897, 8465, 1769, 203, 3639, 1147, 26738, 273, 3155, 26738, 24899, 2316, 26738, 1769, 203, 3639, 5927, 58, 10100, 273, 389, 10035, 58, 10100, 31, 2...
pragma solidity ^0.4.11; /** * @title Owned contract with safe ownership pass. * * Note: all the non constant functions return false instead of throwing in case if state change * didn't happen yet. */ contract Owned { /** * Contract owner address */ address public contractOwner; ...
@title Profiterole contract Collector and distributor for creation and redemption fees. Accepts bonus tokens from EmissionProvider, BurningMan or other distribution source. Calculates CCs shares in bonuses. Uses Treasury Contract as source of shares in bmc-days. Allows to withdraw bonuses on request.
contract Profiterole is OracleContractAdapter, ServiceAllowance, ProfiteroleEmitter { uint constant PERCENT_PRECISION = 10000; uint constant PROFITEROLE_ERROR_SCOPE = 102000; uint constant PROFITEROLE_ERROR_INSUFFICIENT_DISTRIBUTION_BALANCE = PROFITEROLE_ERROR_SCOPE + 1; uint constant PROFITEROLE_ERRO...
5,477,489
[ 1, 27012, 2165, 790, 6835, 13844, 471, 1015, 19293, 364, 6710, 471, 283, 19117, 375, 1656, 281, 18, 27158, 324, 22889, 2430, 628, 512, 3951, 2249, 16, 605, 321, 310, 5669, 578, 1308, 7006, 1084, 18, 26128, 385, 14272, 24123, 316, 324,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 1186, 74, 2165, 790, 353, 28544, 8924, 4216, 16, 1956, 7009, 1359, 16, 1186, 74, 2165, 790, 13476, 288, 203, 203, 565, 2254, 5381, 10950, 19666, 67, 3670, 26913, 273, 12619, 31, 203, 203, 565, 2254, 5381, 4629, 42, 11844, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@openzeppelin/contracts/util...
* @notice Safe CARVE mint to ensure we cannot mint over cap/
function _safeCarveMint(address to, uint256 amount) internal { if (to != address(0)) { uint256 totalSupply = carve.totalSupply(); uint256 cap = carve.CAP(); if (totalSupply.add(amount) > cap) { carve.mint(to, cap.sub(totalSupply)); carve.mi...
6,411,340
[ 1, 9890, 385, 985, 3412, 312, 474, 358, 3387, 732, 2780, 312, 474, 1879, 3523, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 4626, 16321, 537, 49, 474, 12, 2867, 358, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 3639, 309, 261, 869, 480, 1758, 12, 20, 3719, 288, 203, 5411, 2254, 5034, 2078, 3088, 1283, 273, 5926, 537, 18, 4963, 3088, 1283...
./full_match/1/0xFa9f25e6e7065aE49705cC1A1e5a261462C2295A/sources/contracts/artist/10_jon_waltz/AuctionHouse.sol
The minimum amount by which a bid must exceed the current highest bid
uint256 public minBidIncrement;
3,101,559
[ 1, 1986, 5224, 3844, 635, 1492, 279, 9949, 1297, 9943, 326, 783, 9742, 9949, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1071, 1131, 17763, 10798, 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...
/** *Submitted for verification at Etherscan.io on 2022-04-13 */ // SPDX-License-Identifier: MIT // File: contracts/PetRock.sol // ⓅⒺⓉ ⓇⓄⒸⓀ // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; abstract contract Context {function _msgSender() internal view virtual returns (address) {r...
QmQBeRu65GgDymnHQf5a1Sco5WhQ7zHjrSuvubPBMgXwjw/hidden.json");}
constructor() ERC721A("PetRock", "PR") {setHiddenMetadataUri("ipfs:
10,572,954
[ 1, 53, 81, 53, 1919, 54, 89, 9222, 43, 75, 40, 2942, 82, 44, 53, 74, 25, 69, 21, 1541, 83, 25, 2888, 53, 27, 94, 44, 78, 86, 55, 16303, 373, 20724, 49, 75, 60, 91, 78, 91, 19, 6345, 18, 1977, 8863, 97, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 27, 5340, 37, 2932, 52, 278, 54, 975, 3113, 315, 8025, 7923, 288, 542, 9345, 2277, 3006, 2932, 625, 2556, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity 0.7.6; /******************************************************************************\ * Author: Evert Kors <[email protected]> (https://twitter.com/evert0x) * Sherlock Protocol: https://sherlock.xyz /********************************************************...
@notice The `from` account could earn SHERX by holding `token` overtime, the earned amount will be staked. @param token The LockToken that could be eligble for SHERX rewards @param from The current account that is holding the tokens @param to The new account that will be holding the tokens @param amount The amount of ...
function doYield( ILock token, address from, address to, uint256 amount ) private { IERC20 underlying = token.underlying(); PoolStorage.Base storage ps = PoolStorage.ps(underlying); require(ps.lockToken == token, 'SENDER'); LibSherX.accrueSherX(underlying); uint256 userAmount = ...
1,374,929
[ 1, 1986, 1375, 2080, 68, 2236, 3377, 425, 1303, 348, 3891, 60, 635, 19918, 1375, 2316, 68, 1879, 957, 16, 326, 425, 1303, 329, 3844, 903, 506, 384, 9477, 18, 225, 1147, 1021, 3488, 1345, 716, 3377, 506, 415, 360, 7119, 364, 348, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 741, 16348, 12, 203, 565, 467, 2531, 1147, 16, 203, 565, 1758, 628, 16, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, 3844, 203, 225, 262, 3238, 288, 203, 565, 467, 654, 39, 3462, 6808, 273, 1147, 18, 9341, 6291, 5...
./full_match/5/0x04996Bf06a0654C8299041086115fbB0B836683f/sources/project_/contracts/ERC721A.sol
* @dev See {IERC721-safeTransferFrom}./
function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNon...
1,946,725
[ 1, 9704, 288, 45, 654, 39, 27, 5340, 17, 4626, 5912, 1265, 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, 4183, 5912, 1265, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 16, 203, 3639, 1731, 3778, 389, 892, 203, 565, 262, 1071, 5024, 3849, 288, 203, 3639, 389, 13866, 12, 2080, 1...
./partial_match/4/0x70fc3f6dE85B7E1d03ca934A61577ED53151c055/sources/RoundManager.sol
0x2cbef5b1356456a2830dfef6393daca2b3dfb7a5
paper = _paper;
8,576,903
[ 1, 20, 92, 22, 71, 2196, 74, 25, 70, 26612, 1105, 4313, 69, 6030, 5082, 2180, 10241, 4449, 11180, 72, 1077, 69, 22, 70, 23, 2180, 70, 27, 69, 25, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15181, 273, 389, 27400, 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, -100,...
// File: lib/ReentrancyGuard.sol // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.6.12; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sur...
Update debt information
pLedger.mortgageAssets = mortgageAssets.sub(amount);
14,660,454
[ 1, 1891, 18202, 88, 1779, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 202, 84, 28731, 18, 81, 499, 75, 410, 10726, 273, 312, 499, 75, 410, 10726, 18, 1717, 12, 8949, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File: contracts/lib/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 accessed in s...
Address for each dsec token
address[3][] public dsec_token_addresses;
6,770,567
[ 1, 1887, 364, 1517, 302, 3321, 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, 1758, 63, 23, 6362, 65, 1071, 302, 3321, 67, 2316, 67, 13277, 31, 4202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; /** * @title Election * @dev Implements voting process */ contract Election { bytes32[] public CandidateNames; struct Voter { uint weight; // weight is accumulated by delegation bool voted; // if true, that person alr...
* @return voteCount total vote, how many vote for Trump and how many vote for Joe Biden/
function getTotalVoteCountForCandidate(uint candidateIndex) public view returns(uint voteCount) { require(candidateIndex < candidates.length, "user can choose either 0 or 1 only"); return candidates[candidateIndex].voteCount; }
2,575,762
[ 1, 2463, 12501, 1380, 2078, 12501, 16, 3661, 4906, 12501, 364, 840, 2801, 471, 3661, 4906, 12501, 364, 804, 15548, 605, 17951, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 12831, 19338, 1380, 1290, 11910, 12, 11890, 5500, 1016, 13, 1071, 1476, 1135, 12, 11890, 12501, 1380, 13, 203, 565, 288, 203, 3639, 2583, 12, 19188, 1016, 411, 7965, 18, 2469, 16, 315, 1355, 848, 9876, 3344, 374, 578, 4...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.7; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppel...
* @dev Retrieves MATIC amount of a given withdrawal request @param _address - Address of an user @return _idx index of the withdrawal request/
function getMaticAmountOfUserWithdrawalRequest(address _address, uint256 _idx) external override view returns (uint256) { WithdrawalRequest memory userRequest = userWithdrawalRequests[_address][_idx]; IValidatorShare validatorShare = IValidatorShare(userReques...
7,021,356
[ 1, 6960, 490, 11781, 3844, 434, 279, 864, 598, 9446, 287, 590, 225, 389, 2867, 300, 5267, 434, 392, 729, 327, 389, 3465, 770, 434, 326, 598, 9446, 287, 590, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2108, 2126, 6275, 951, 1299, 1190, 9446, 287, 691, 12, 2867, 389, 2867, 16, 2254, 5034, 389, 3465, 13, 7010, 3639, 3903, 7010, 3639, 3849, 203, 3639, 1476, 7010, 3639, 1135, 261, 11890, 5034, 13, 7010, 565, 288, 203, 36...
./full_match/43113/0x05Ed8abeef9EdE006bc8dFc9B3D272441D370488/sources/apps/avai/src/contracts/Stablecoin.sol
* @dev Set the opening fee for this vault/
function setOpeningFee(uint256 bankID, uint256 amount) external onlyRole(DEFAULT_ADMIN_ROLE) { IBank(banks[bankID]).setOpeningFee(amount); }
7,165,368
[ 1, 694, 326, 10890, 14036, 364, 333, 9229, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 21378, 14667, 12, 11890, 5034, 11218, 734, 16, 2254, 5034, 3844, 13, 203, 565, 3903, 203, 565, 1338, 2996, 12, 5280, 67, 15468, 67, 16256, 13, 203, 225, 288, 203, 565, 467, 16040, 12, 10546, 87, 63, 10546, 734, 6...
./full_match/84531/0xd7149865d07cCfdfB10f858AFAb297A8251882Cc/sources/contracts/api/Positions.sol
Update position and transfer margin out
position.margin = remainingMargin;
11,525,774
[ 1, 1891, 1754, 471, 7412, 7333, 596, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1754, 18, 10107, 273, 4463, 9524, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2022-03-02 */ /* Telegram https://t.me/BrotherETH */ // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { ...
exclude from fees, wallet limit and transaction limit
function _beforeTokenTransfer( address from, address to, uint256 amount } constructor(address _dev) public ERC20("Brother Token", "BROTHER") { uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH()); _approve(addres...
10,648,610
[ 1, 10157, 628, 1656, 281, 16, 9230, 1800, 471, 2492, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 97, 203, 203, 565, 3885, 12, 2867, 389, 5206, 13, 1071, 4232, 39, 3462, 2932, 38, 303, 1136, 3155, 3113,...
pragma solidity 0.5.0; pragma experimental ABIEncoderV2; import "./CAJCoin.sol"; contract Review { //token contract CAJCoin tokenContract; address public devAddress; //Paper struct struct Paper { //id of the paper uint256 id; //file url of paper string location; ...
papers[2] = Paper(currentId, yeet2, yeet1, t, new string[](0), msg.sender, yeet3, yeet4, 0, 0, 0, 0, 0, 0, block.timestamp);
currentId++;
1,082,572
[ 1, 84, 438, 414, 63, 22, 65, 273, 20971, 12, 2972, 548, 16, 677, 73, 278, 22, 16, 677, 73, 278, 21, 16, 268, 16, 394, 533, 8526, 12, 20, 3631, 1234, 18, 15330, 16, 677, 73, 278, 23, 16, 677, 73, 278, 24, 16, 374, 16, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 3639, 783, 548, 9904, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/* Copyright 2017-2018 RigoBlock, Rigo Investment Sagl. 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 a...
CONSTANT PUBLIC FUNCTIONS/ @dev Returns the address of the pool registry @return Address of the registry
function getRegistry() external view returns (address) { return (data.vaultRegistry); }
15,857,330
[ 1, 25878, 17187, 13690, 55, 19, 225, 2860, 326, 1758, 434, 326, 2845, 4023, 327, 5267, 434, 326, 4023, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 29675, 1435, 203, 3639, 3903, 1476, 203, 3639, 1135, 261, 2867, 13, 203, 565, 288, 203, 3639, 327, 261, 892, 18, 26983, 4243, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/1313161554/0x9D63D94A6f9a176B3F99108a08144cbB6Fd9Ea14/sources/contracts/orbital/distriburion/OrbitalGenesisRewardPool.sol
Safe ORBITAL transfer function, just in case if rounding error causes pool to not have enough ORBITALs.
function safeOrbitalTransfer(address _to, uint256 _amount) internal { uint256 _orbitalBalance = orbital.balanceOf(address(this)); if (_orbitalBalance > 0) { if (_amount > _orbitalBalance) { orbital.safeTransfer(_to, _orbitalBalance); orbital.safeTransfer(_...
16,934,101
[ 1, 9890, 4869, 15650, 1013, 7412, 445, 16, 2537, 316, 648, 309, 13885, 555, 14119, 2845, 358, 486, 1240, 7304, 4869, 15650, 1013, 87, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 1162, 3682, 287, 5912, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 2254, 5034, 389, 280, 3682, 287, 13937, 273, 17656, 287, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 309, ...
./full_match/1/0x5646077E2779a4e8607A99257bD76F627A262d86/sources/contracts/Staking.sol
* @notice set warmup period in epoch's numbers for new stakers @param _warmupPeriod uint/
function setWarmup(uint256 _warmupPeriod) external onlyManager { warmupPeriod = _warmupPeriod; }
3,136,468
[ 1, 542, 22975, 416, 3879, 316, 7632, 1807, 5600, 364, 394, 384, 581, 414, 225, 389, 13113, 416, 5027, 2254, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 59, 4610, 416, 12, 11890, 5034, 389, 13113, 416, 5027, 13, 3903, 1338, 1318, 288, 203, 3639, 22975, 416, 5027, 273, 389, 13113, 416, 5027, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0x04142941F585B6625D5fE7da0ca62351aF8C5f8E/sources/CryptOgres.sol
uint256 public presaleStart = 1645639200;uint256 public publicStart = 1645725600;
contract CryptOgresNFT is ERC721, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.001 ether; uint256 public presaleStart = 1645225368; uint256 public publicStart = 1650319368; uint256 public maxPresaleSupply = 700; ...
798,022
[ 1, 11890, 5034, 1071, 4075, 5349, 1685, 273, 404, 1105, 4313, 5520, 6976, 31, 11890, 5034, 1071, 1071, 1685, 273, 404, 1105, 10321, 5034, 713, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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, 16351, 22752, 51, 14107, 50, 4464, 353, 4232, 39, 27, 5340, 16, 14223, 6914, 288, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 533, 1071, 1026, 3098, 31, 203, 565, 533, 1071, 1026, 3625, 273, 3552, 1977, 14432, 203, ...
./partial_match/1/0xce193aBd0efE33214bc2e1Ce96984797FB701bFD/sources/contracts/core/project/Project.sol
Now it does not belong to any dao. A new dao!
function upgradeToDAO(uint256 id, CloneParams memory params) public onlyOwnerOf(id) { require(_dao[id].vision == address(0), "Already upgraded."); _deploy(id); _initialize(id, params); _daoAddressBook[_getGovAddressOfDAO(id)] = id; _daoProjects[_belongsTo....
4,482,441
[ 1, 8674, 518, 1552, 486, 10957, 358, 1281, 15229, 18, 432, 394, 15229, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8400, 774, 18485, 12, 11890, 5034, 612, 16, 12758, 1370, 3778, 859, 13, 203, 3639, 1071, 203, 3639, 1338, 5541, 951, 12, 350, 13, 203, 565, 288, 203, 3639, 2583, 24899, 2414, 83, 63, 350, 8009, 2820, 422, 1758, 12, 20...
pragma solidity 0.6.2; import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import { OwnableUpgradeSafe as Ownable } f...
@notice Callable by admin to ensure LIQUIDATION_TIME_PERIOD won't elapse/
function certifyAdmin() public onlyOwnerOrManager { _updateAdminActiveTimestamp(); }
196,689
[ 1, 11452, 635, 3981, 358, 3387, 8961, 53, 3060, 2689, 67, 4684, 67, 28437, 8462, 1404, 415, 28933, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3320, 1164, 4446, 1435, 1071, 1338, 5541, 1162, 1318, 288, 203, 3639, 389, 2725, 4446, 3896, 4921, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity 0.4.19; // ================= Ownable Contract start ============================= /* * Ownable * * Base contract with an owner. * Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner. */ contract Ownable { address public owner; funct...
================= Standard Token Contract start ======================
contract StandardToken is ERC20 { using SafeMath for uint256; mapping(address =&gt; uint256) balances; mapping (address =&gt; mapping (address =&gt; uint256)) internal allowed; uint256 totalSupply_; function totalSupply() public view returns (uint256) { return totalSupply_; } function transfer(ad...
924,211
[ 1, 2429, 33, 8263, 3155, 13456, 787, 28562, 894, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 8263, 1345, 353, 4232, 39, 3462, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 225, 2874, 12, 2867, 273, 10, 4521, 31, 2254, 5034, 13, 324, 26488, 31, 203, 225, 2874, 261, 2867, 273, 10, 4521, 31, 287...
pragma solidity ^0.4.24; /** * ██████╗ ███████╗████████╗███████╗ ██████╗ ███╗ ██╗ █████╗ ██╗ * ██╔══██╗ ██╔════╝╚══██╔══╝██╔════╝ ██╔══██╗ ████╗ ██║ ██╔══██╗ ██║ * ██████╔╝ █████╗ ██║ █████╗ ██████╔╝ ██╔██╗ ██║ ███████║ ██║ * ██╔══██╗ ██╔══╝ ...
If bank amount more than or equal to 1500 ETH, whole procent add 0.10%
return(20);
7,872,700
[ 1, 2047, 11218, 3844, 1898, 2353, 578, 3959, 358, 4711, 713, 512, 2455, 16, 7339, 450, 2998, 527, 374, 18, 2163, 9, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 327, 12, 3462, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x6f11a89d41b0cC86E05714A701462E788C989b6A/sources/contracts/credit/CreditManager.sol
@dev Checks that credit account has enough allowance for operation by comparing existing one with x10 times more than needed @param creditAccount Credit account address @param toContract Contract to check allowance @param token Token address of contract Get 10x reserve in allowance
) internal { if ( function approve(address targetContract, address token) external override nonReentrant } function provideCreditAccountAllowance( address creditAccount, address targetContract, address token ) external override...
9,629,588
[ 1, 4081, 716, 12896, 2236, 711, 7304, 1699, 1359, 364, 1674, 635, 17553, 2062, 1245, 598, 619, 2163, 4124, 1898, 2353, 3577, 225, 12896, 3032, 30354, 2236, 1758, 225, 358, 8924, 13456, 358, 866, 1699, 1359, 225, 1147, 3155, 1758, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 2713, 288, 203, 3639, 309, 261, 203, 565, 445, 6617, 537, 12, 2867, 1018, 8924, 16, 1758, 1147, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 1661, 426, 8230, 970, 203, 565, 289, 203, 203, 565, 445, 5615, 16520, 30...
// SPDX-License-Identifier: MIT pragma solidity =0.8.4; import '@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol'; import '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol'; import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol'; import '../interfaces/IERC20Upgr...
* @dev Returns the rate of the foundation./
function foundationRate() public view returns (uint256) { return _foundationRate; }
1,095,692
[ 1, 1356, 326, 4993, 434, 326, 1392, 367, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1392, 367, 4727, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 30493, 4727, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// File contracts/libraries/SafeMath.sol // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } f...
must be > 0.01 payout token ( underflow protection )
require( payout >= 10 ** payoutToken.decimals() / 100, "Bond too small" );
33,411
[ 1, 11926, 506, 405, 374, 18, 1611, 293, 2012, 1147, 261, 3613, 2426, 17862, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 2583, 12, 293, 2012, 1545, 1728, 2826, 293, 2012, 1345, 18, 31734, 1435, 342, 2130, 16, 315, 9807, 4885, 5264, 6, 11272, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.4; import 'builder/Builder.sol'; import 'creator/CreatorCore.sol'; import 'creator/CreatorACLStorage.sol'; /** * @title BuilderOperator contract */ contract BuilderOperator is Builder { /** * @dev Run script creation contract * @param _dao_name is an operator DAO name * @param...
* @title BuilderOperator contract/
contract BuilderOperator is Builder { function create(string _dao_name, string _dao_description, string _operator_name, address _client) payable returns (address) { if (buildingCostWei > 0 && beneficiary != 0) { if (msg.value < building...
12,616,292
[ 1, 1263, 5592, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 5008, 5592, 353, 5008, 288, 203, 565, 445, 752, 12, 1080, 389, 2414, 83, 67, 529, 16, 203, 10792, 533, 389, 2414, 83, 67, 3384, 16, 203, 10792, 533, 389, 9497, 67, 529, 16, 203, 10792, 1758, 389, 2625, 13, 8843, 429, 1...
/** *Submitted for verification at Etherscan.io on 2021-04-08 */ // SPDX-License-Identifier: UNLICENSED pragma solidity 0.7.5; abstract contract ReentrancyGuard { uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () { _...
------------------------------------------------------------------------ Get the pending rewards of the staker @param _staker the address of the staker ------------------------------------------------------------------------
function pendingReward(address staker) private returns (uint256) { require(staker != address(0), "ERC20: sending to the zero address"); uint stakersRound = stakers[staker].round; uint256 amount = ((totalDividends.sub(payouts[stakersRound - 1])).mul(stakers[staker].stakedTokens)).di...
2,129,365
[ 1, 29461, 968, 326, 4634, 283, 6397, 434, 326, 384, 6388, 225, 389, 334, 6388, 326, 1758, 434, 326, 384, 6388, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4634, 17631, 1060, 12, 2867, 384, 6388, 13, 3238, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 334, 6388, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 5431, 358, 326, 3634, 1758, 8863, 203, 540, 203, 3639...
./partial_match/80001/0x38Eb53Bc0CB2E996230325e01FB147b47bd05d93/sources/contracts/UnergyLogicReserve.sol
Institutional Wallet
function _pWattsTransferAnyUser( Project memory _project, ERC20Abs _pWatt, uint256 _pWattsAmount, PurchaseTicket memory buyTicket ) internal returns (Project memory) { if ( unergyData.isInstitutionalAddress(buyTicket.receiver, _project.addr) ) { ...
8,795,999
[ 1, 382, 14278, 287, 20126, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 84, 59, 270, 3428, 5912, 2961, 1299, 12, 203, 3639, 5420, 3778, 389, 4406, 16, 203, 3639, 4232, 39, 3462, 9382, 389, 84, 59, 4558, 16, 203, 3639, 2254, 5034, 389, 84, 59, 270, 3428, 6275, 16, 203, 3639, 26552, ...
pragma solidity ^0.4.23; import "./CurrencyContract.sol"; import "../core/RequestCore.sol"; import "../base/math/SafeMathUint8.sol"; import "../base/token/ERC20.sol"; import "../utils/Bytes.sol"; import "../utils/Signature.sol"; /** * @title RequestEthereum * @notice Currency contract managing the requests in Ethe...
@param _fromAddress address from where the refund has been done @param _amount amount of the refund in wei to declare/ Check if the _fromAddress is a payeesId int16 to allow -1 value if not ID addresses maybe in the payee payments addresses get the payeeIndex
function refundInternal( bytes32 _requestId, address _fromAddress, uint256 _amount) internal { require(requestCore.getState(_requestId) != RequestCore.State.Canceled, "request should not be canceled"); int16 payeeIndex = requestCore.getPayeeIndex(_requestId, _fro...
1,052,190
[ 1, 67, 2080, 1887, 1758, 628, 1625, 326, 16255, 711, 2118, 2731, 225, 389, 8949, 3844, 434, 326, 16255, 316, 732, 77, 358, 14196, 19, 2073, 309, 326, 389, 2080, 1887, 353, 279, 8843, 25521, 548, 509, 2313, 358, 1699, 300, 21, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 565, 445, 16255, 3061, 12, 203, 3639, 1731, 1578, 389, 2293, 548, 16, 203, 3639, 1758, 389, 2080, 1887, 16, 203, 3639, 2254, 5034, 389, 8949, 13, 203, 3639, 2713, 203, 565, 288, 203, 3639, 2583, 12, 2293, 4670, 18, 588, 1119, 2...
./full_match/80001/0xfeb76dccB120688A29315098E38eF06d19C62F8f/sources/project_/contracts/lib/AddressSet.sol
* @notice insert a key. @dev duplicate keys are not permitted. @param self storage pointer to a Set. @param key value to insert./
function insert(Set storage self, address key) internal { require(!exists(self, key), "AddressSet: key already exists in the set."); self.keyPointers[key] = self.keyList.length; self.keyList.push(key); }
5,652,190
[ 1, 6387, 279, 498, 18, 225, 6751, 1311, 854, 486, 15498, 18, 225, 365, 2502, 4407, 358, 279, 1000, 18, 225, 498, 460, 358, 2243, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2243, 12, 694, 2502, 365, 16, 1758, 498, 13, 2713, 288, 203, 3639, 2583, 12, 5, 1808, 12, 2890, 16, 498, 3631, 315, 1887, 694, 30, 498, 1818, 1704, 316, 326, 444, 1199, 1769, 203, 3639, 365, 18, 856, 27452, 63, 856,...
./partial_match/1/0x911877A6711D1c7B0acB7d05517025C55BeEb71C/sources/BurnableERC20.sol
* @title BurnableERC20 @dev Implementation of the BurnableERC20/
contract BurnableERC20 is ERC20Burnable, ServicePayer { constructor ( string memory name, string memory symbol, uint8 decimals, uint256 initialBalance, address payable feeReceiver ) ERC20(name, symbol) ServicePayer(feeReceiver, "BurnableERC20") pa...
9,387,139
[ 1, 38, 321, 429, 654, 39, 3462, 225, 25379, 434, 326, 605, 321, 429, 654, 39, 3462, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 321, 429, 654, 39, 3462, 353, 4232, 39, 3462, 38, 321, 429, 16, 1956, 52, 1773, 288, 203, 203, 565, 3885, 261, 203, 3639, 533, 3778, 508, 16, 203, 3639, 533, 3778, 3273, 16, 203, 3639, 2254, 28, 15105, 16, 203, 36...
// Sources flattened with hardhat v2.1.2 https://hardhat.org // File contracts/proxy/Base.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; contract Base { constructor () public { } //0x20 - length //0x53c6eaee8696e4c5200d3d231b29cc6a40b3893a5ae1536b0ac082...
keep the layout order
contract CalendarLayout is CERC721Layout, OwnableLayout { using SafeMath for uint256; uint256 constant MILLION = 1000000; uint256 internal _startTime; address internal _dev; uint256 internal _taxPerMillion; uint256 internal _startPrice; uint256 internal _bidPricePerMillion; mappi...
14,428,802
[ 1, 10102, 326, 3511, 1353, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 5542, 3744, 353, 385, 654, 39, 27, 5340, 3744, 16, 14223, 6914, 3744, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 5381, 490, 15125, 1146, 273, 15088, 31, 203, 203, 565, 2254, 503...
pragma solidity ^0.4.24; contract owned { address public owner; } contract TokenERC20 { // Public variables of the token string public name; string public symbol; // 18 decimals is the strongly suggested default, avoid changing it uint8 public decimals = 18; uint256 public totalSupply; ...
Calculate the purchase amount
uint amount = value / data.buyPrice();
6,520,972
[ 1, 8695, 326, 23701, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 3844, 273, 460, 342, 501, 18, 70, 9835, 5147, 5621, 540, 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, -10...
./full_match/288/0xd5609cD0e1675331E4Fb1d43207C8d9D83AAb17C/sources/contracts/bridge/MiniChefV2.sol
@notice Harvest proceeds for transaction sender to `to`. @param pid The index of the pool. See `poolInfo`. @param to Receiver of SYNAPSE rewards. Effects Interactions
function harvest(uint256 pid, address to) public { PoolInfo memory pool = updatePool(pid); UserInfo storage user = userInfo[pid][msg.sender]; int256 accumulatedSynapse = int256(user.amount.mul(pool.accSynapsePerShare) / ACC_SYNAPSE_PRECISION); uint256 _pendingSynapse = accumulatedSyn...
7,105,428
[ 1, 44, 297, 26923, 11247, 87, 364, 2492, 5793, 358, 1375, 869, 8338, 225, 4231, 1021, 770, 434, 326, 2845, 18, 2164, 1375, 6011, 966, 8338, 225, 358, 31020, 434, 7068, 50, 2203, 1090, 283, 6397, 18, 30755, 87, 5294, 4905, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11890, 5034, 4231, 16, 1758, 358, 13, 1071, 288, 203, 3639, 8828, 966, 3778, 2845, 273, 1089, 2864, 12, 6610, 1769, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 6610, 6362, 3576, 18, 15330, 15533, 203, ...
./partial_match/1/0x7A6425C9b3F5521BFa5d71Df710A2FB80508319b/sources/Exchange.sol
@dev Verifies that a hash has been signed by the given signer. @param hash Any 32 byte hash. @param signerAddress Address that should have signed the given hash. @param signature Proof that the hash has been signed by signer. @return True if the address recovered from the provided signature matches the input signer ad...
function isValidSignature( bytes32 hash, address signerAddress, bytes memory signature ) public view returns (bool isValid) { require( signature.length > 0, "LENGTH_GREATER_THAN_0_REQUIRED" ); uint8 signatureTyp...
4,477,775
[ 1, 19802, 716, 279, 1651, 711, 2118, 6726, 635, 326, 864, 10363, 18, 225, 1651, 5502, 3847, 1160, 1651, 18, 225, 10363, 1887, 5267, 716, 1410, 1240, 6726, 326, 864, 1651, 18, 225, 3372, 1186, 792, 716, 326, 1651, 711, 2118, 6726, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4908, 5374, 12, 203, 3639, 1731, 1578, 1651, 16, 203, 3639, 1758, 10363, 1887, 16, 203, 3639, 1731, 3778, 3372, 203, 565, 262, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 4908, 13, 203, 565, 288, 203, ...
pragma solidity 0.4.25; /// @title provides subject to role checking logic contract IAccessPolicy { //////////////////////// // Public functions //////////////////////// /// @notice We don't make this function constant to allow for state-updating access controls such as rate limiting. /...
@title describes layout of claims in 256bit records stored for identities @dev intended to be derived by contracts requiring access to particular claims Types
contract IdentityRecord { struct IdentityClaims { } function deserializeClaims(bytes32 data) internal pure returns (IdentityClaims memory claims) { assembly { mstore(claims, and(data, 0x1)) mstore(add(claims, 0x20), div(and(data, 0x2), 0x2)) mstore(add(claims,...
1,800,799
[ 1, 5569, 24322, 3511, 434, 11955, 316, 8303, 3682, 3853, 4041, 364, 17230, 225, 12613, 358, 506, 10379, 635, 20092, 29468, 2006, 358, 6826, 11955, 7658, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7808, 2115, 288, 203, 203, 203, 565, 1958, 7808, 15925, 288, 203, 565, 289, 203, 203, 203, 565, 445, 7673, 15925, 12, 3890, 1578, 501, 13, 2713, 16618, 1135, 261, 4334, 15925, 3778, 11955, 13, 288, 203, 3639, 19931, 288, 2...
pragma solidity ^0.6.0; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIABLE...
* @dev Get operating status of contract @return A bool that is the current operating status/
function isOperational() public view requireAuthorizedCaller returns(bool) { return operational; }
5,415,177
[ 1, 967, 16929, 1267, 434, 6835, 327, 432, 1426, 716, 353, 326, 783, 16929, 1267, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 2988, 287, 1435, 7010, 18701, 1071, 7010, 18701, 1476, 7010, 18701, 2583, 15341, 11095, 203, 18701, 1135, 12, 6430, 13, 7010, 565, 288, 203, 3639, 327, 1674, 287, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -1...
./full_match/1/0x687A4B0Ac18Ed3796D55E6A1d747bD75591a8bac/sources/contracts/core/OtcOffer.sol
@notice Owner can update the offer price at which user swaps can occur @dev The new price must be within the `minValidOfferPrice` <= price <= `maxValidOfferPrice` range
function setOfferPrice(uint256 _offerPrice) external onlyOwner { if (_offerPrice < minValidOfferPrice || _offerPrice > maxValidOfferPrice) revert OfferPriceNotValid(); offerPrice = _offerPrice; emit OfferPriceSet(_offerPrice); }
17,148,559
[ 1, 5541, 848, 1089, 326, 10067, 6205, 622, 1492, 729, 1352, 6679, 848, 3334, 225, 1021, 394, 6205, 1297, 506, 3470, 326, 1375, 1154, 1556, 10513, 5147, 68, 1648, 6205, 1648, 1375, 1896, 1556, 10513, 5147, 68, 1048, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 10513, 5147, 12, 11890, 5034, 389, 23322, 5147, 13, 3903, 1338, 5541, 288, 203, 3639, 309, 261, 67, 23322, 5147, 411, 1131, 1556, 10513, 5147, 747, 389, 23322, 5147, 405, 943, 1556, 10513, 5147, 13, 15226, 25753, 514...
./full_match/3/0xB79c67215E2Dc32B3a5bb220b375eD0183732c1d/sources/browser/Mix2RFIBase.sol
require(_limitExpiresTimestamp < now, "Initial Uniswap listing - Wallet to Wallet transfers temporarily disabled");
_transferStandard(sender, recipient, amount, _tFeePercent);
8,143,535
[ 1, 6528, 24899, 3595, 14449, 4921, 411, 2037, 16, 315, 4435, 1351, 291, 91, 438, 11591, 300, 20126, 358, 20126, 29375, 18917, 5673, 8863, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 389, 13866, 8336, 12, 15330, 16, 8027, 16, 3844, 16, 389, 88, 14667, 8410, 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...