file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./full_match/84531/0xC053dfaeb424B4693a0158CC42Fb960CBF025d1E/sources/contracts/Comptroller/Comptroller.sol
* @title Compound's Comptroller Contract @author Compound/
contract Comptroller is AccessControlEnumerableUpgradeable, ComptrollerStorage { using ExponentialNoError for uint256; using ExponentialNoError for Exp; using ExponentialNoError for Double; ICompLogic public compLogic; IUnderwriterAdmin public underWriterAdmin; IPriceOracle public oracle; IAccountLiquidi...
11,531,537
[ 1, 16835, 1807, 1286, 337, 1539, 13456, 225, 21327, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1286, 337, 1539, 353, 24349, 3572, 25121, 10784, 429, 16, 1286, 337, 1539, 3245, 288, 203, 225, 1450, 29770, 649, 2279, 668, 364, 2254, 5034, 31, 203, 225, 1450, 29770, 649, 2279, 668, 364, 7784, 31, 203, 225, 1450, 29770, ...
./partial_match/1/0xc9268c7F59850B26567b0f5d3Dcc317cEDC43490/sources/src/contracts/SlippageAuctionFactory.sol
Set return variable
_auctionAddress = address(_auction);
15,952,463
[ 1, 694, 327, 2190, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 69, 4062, 1887, 273, 1758, 24899, 69, 4062, 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, ...
//Address: 0xc00daa94bb04d9c8bb55c115135e5b60584b884d //Contract name: Crowdsale //Balance: 4,596.848976447495759932 Ether //Verification Date: 5/28/2018 //Transacion Count: 1096 // CODE STARTS HERE pragma solidity ^0.4.16; library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { uint ...
Number of TTC sent to Ether contributors during main ico */
uint public mainCoinSentToEther;
5,459,367
[ 1, 1854, 434, 399, 15988, 3271, 358, 512, 1136, 13608, 13595, 4982, 2774, 277, 2894, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 2774, 27055, 7828, 774, 41, 1136, 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, ...
./full_match/1/0x54F72175c40c3f4857B18FE539A85ddB92f6D985/sources/contracts/Libraries/Errors.sol
Flashloan-Flashclose cannot be used when User's collateral is worth less than intended debt position to close.
string public constant VL_UNDERCOLLATERIZED_ERROR = '124';
9,688,982
[ 1, 11353, 383, 304, 17, 11353, 4412, 2780, 506, 1399, 1347, 2177, 1807, 4508, 2045, 287, 353, 26247, 5242, 2353, 12613, 18202, 88, 1754, 358, 1746, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 533, 1071, 5381, 776, 48, 67, 31625, 4935, 12190, 654, 24131, 67, 3589, 273, 296, 24734, 13506, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
/** *Submitted for verification at Etherscan.io on 2020-07-01 */ pragma solidity ^0.5.0; /** * @title Tellor Transfer * @dev Contais the methods related to transfers and ERC20. Tellor.sol and TellorGetters.sol * reference this library for function's logic. * Many of the functions have been commented out for simplici...
* @dev Getter function for the origination fee @return origination fee/
function getOriginationFee() public view returns (uint256) { return reserve.originationFee; }
12,897,408
[ 1, 8461, 445, 364, 326, 1647, 1735, 14036, 327, 1647, 1735, 14036, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 336, 4741, 1735, 14667, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 20501, 18, 4949, 1735, 14667, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
/** *Submitted for verification at Etherscan.io on 2021-09-05 */ // Sources flattened with hardhat v2.4.3 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, includi...
* @dev Return the community address/
function getCommuntiyAddress() public view returns (address) { return receiverAddresses[receiverAddresses.length - 1]; }
10,850,998
[ 1, 990, 326, 19833, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 336, 12136, 318, 9096, 93, 1887, 1435, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 5971, 7148, 63, 24454, 7148, 18, 2469, 300, 404, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0xa114Ef31a6A1F66b3129A175980aCD697D3257aa/sources/@chainlink/contracts/src/v0.8/functions/dev/v1_0_0/interfaces/IFunctionsSubscriptions.sol
══╗ LINK balance that is reserved to pay for pending consumer requests.
uint96 blockedBalance;
5,585,448
[ 1, 163, 248, 243, 163, 248, 243, 163, 248, 250, 22926, 11013, 716, 353, 8735, 358, 8843, 364, 4634, 4765, 3285, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 10525, 14547, 13937, 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, -10...
pragma solidity ^0.4.9; /** * Math operations with safety checks */ library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal returns (uint) { // assert(b > 0); // Solidity automatic...
Forward ERC20 methods to upgraded contract if this one is deprecated
function transfer(address _to, uint _value) whenNotPaused { if (deprecated) { return StandardToken(upgradedAddress).transfer(_to, _value); return super.transfer(_to, _value); } }
10,600,146
[ 1, 8514, 4232, 39, 3462, 2590, 358, 31049, 6835, 309, 333, 1245, 353, 6849, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 12, 2867, 389, 869, 16, 2254, 389, 1132, 13, 1347, 1248, 28590, 288, 203, 565, 309, 261, 14089, 13, 288, 203, 1377, 327, 8263, 1345, 12, 416, 19305, 1887, 2934, 13866, 24899, 869, 16, 389, 1132, 1769, 203, 1377, ...
./full_match/10/0x729A4DD1264670C3e04F0d1b11de6ba4857793cb/sources/tt.sol
@dev Allows to change the number of required confirmations. Transaction has to be sent by wallet. @param _required Number of required confirmations.
function changeRequirement(uint _required) public onlyWallet validRequirement(owners.length, _required) { required = _required; emit RequirementChange(_required); }
3,782,288
[ 1, 19132, 358, 2549, 326, 1300, 434, 1931, 6932, 1012, 18, 5947, 711, 358, 506, 3271, 635, 9230, 18, 225, 389, 4718, 3588, 434, 1931, 6932, 1012, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2549, 18599, 12, 11890, 389, 4718, 13, 203, 3639, 1071, 203, 3639, 1338, 16936, 203, 3639, 923, 18599, 12, 995, 414, 18, 2469, 16, 389, 4718, 13, 203, 565, 288, 203, 3639, 1931, 273, 389, 4718, 31, 203, 3639, 3626, 30...
./partial_match/1/0x07C2b20812949Fb71f45A1Cb66190FEf56813409/sources/EcoTool.sol
* @title ERC20Decimals @dev Implementation of the ERC20Decimals. Extension of {ERC20} that adds decimals storage slot./
contract EcoTool is ERC20 { uint8 immutable private _decimals = 18; uint256 private _totalSupply = 1000000000 * 10 ** 18; constructor () ERC20('EcoTool', 'ETO') { _mint(_msgSender(), _totalSupply); } function decimals() public view virtual override returns (uint8) { return _decima...
2,655,090
[ 1, 654, 39, 3462, 31809, 225, 25379, 434, 326, 4232, 39, 3462, 31809, 18, 10021, 434, 288, 654, 39, 3462, 97, 716, 4831, 15105, 2502, 4694, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 512, 2894, 6364, 353, 4232, 39, 3462, 288, 203, 565, 2254, 28, 11732, 3238, 389, 31734, 273, 6549, 31, 203, 565, 2254, 5034, 3238, 389, 4963, 3088, 1283, 273, 15088, 3784, 380, 1728, 2826, 6549, 31, 203, 203, 203, 565, 388...
pragma solidity ^0.4.20; /* Craig Grant Fun Face https://funface.cgnow.fun/ https://discord.gg/JhNefR */ contract CraigGrantFunFace { /*================================= = MODIFIERS = =================================*/ // o...
-- APPLICATION ENTRY POINTS --/ add the ambassadors here. Craig Grant Trevon James Coach Rick Crypto Gangz Crypto Clover Captain Crypto BitcoinCryptoPro
{ ambassadors_[0x0e4705d75896B1aEC52E885D93Cdf8832338E322] = true; ambassadors_[0xa7c971ae84d24d1ba58300ec2433b8dacfd36178] = true; ambassadors_[0xa36f907be1fbf75e2495cc87f8f4d201c1b634af] = true; ambassadors_[0xbfc699a6f932a440a7745125815427103de1...
15,058,321
[ 1, 413, 14148, 25516, 13803, 3217, 55, 1493, 19, 527, 326, 13232, 428, 361, 1383, 2674, 18, 385, 354, 360, 19689, 399, 9083, 265, 804, 753, 7695, 497, 534, 1200, 15629, 611, 539, 94, 15629, 385, 21896, 385, 1657, 530, 15629, 24420, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 540, 203, 3639, 13232, 428, 361, 1383, 67, 63, 20, 92, 20, 73, 9462, 6260, 72, 5877, 6675, 26, 38, 21, 69, 7228, 9401, 41, 5482, 25, 40, 11180, 39, 2180, 5482, 1578, 3707, 28, 41, 1578, 22, 65, 273, 638, 31, ...
pragma solidity ^0.4.25; contract ERC721 { function totalSupply() public view returns (uint256 total); function balanceOf(address _owner) public view returns (uint256 balance); function ownerOf(uint256 _tokenId) external view returns (address owner); // ownerof // deploy: public ->externa...
@dev 포니별 경마 기록을 리턴@param id 포니 아이디@return grandPrixCount 그랑프리 우승 카운트 (0: 1, 1:2, 2:3, 3: lucky)@return leagueCount 리그 우승 카운트 (0: 1, 1:2, 2:3, 3: lucky)
function getDerbyWinningCount(uint _id) public view returns ( uint grandPrix1st, uint grandPrix2st, uint grandPrix3st, uint grandLucky, uint league1st, uint league2st, uint league3st, uint leagueLucky ){ DerbyPersonalResult memo...
6,425,249
[ 1, 174, 242, 110, 172, 238, 235, 172, 116, 231, 225, 171, 115, 126, 172, 105, 235, 225, 171, 121, 113, 172, 99, 256, 173, 256, 231, 225, 172, 104, 110, 174, 231, 117, 612, 225, 174, 242, 110, 172, 238, 235, 225, 173, 248, 231,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2343, 264, 1637, 18049, 2093, 1380, 12, 11890, 389, 350, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 1135, 261, 203, 3639, 2254, 16225, 52, 1932, 21, 334, 16, 203, 3639, 2254, 16225, 52, 1932, 22, 334, 16, 203, 3639...
pragma solidity 0.5.2; // File: contracts/ERC20Interface.sol // https://github.com/ethereum/EIPs/issues/20 interface ERC20 { function totalSupply() external view returns (uint supply); function balanceOf(address _owner) external view returns (uint balance); function transfer(address _to, uint _value) exte...
@dev Burns OWL. @param user Address of OWL owner @param amount Amount of OWL to be burnt
function burnOWL(address user, uint amount) public { allowances[user][msg.sender] = allowances[user][msg.sender].sub(amount); balances[user] = balances[user].sub(amount); totalTokens = totalTokens.sub(amount); emit Burnt(msg.sender, user, amount); }
5,418,339
[ 1, 38, 321, 87, 25266, 18, 225, 729, 5267, 434, 25266, 3410, 225, 3844, 16811, 434, 25266, 358, 506, 18305, 88, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18305, 7306, 48, 12, 2867, 729, 16, 2254, 3844, 13, 1071, 288, 203, 3639, 1699, 6872, 63, 1355, 6362, 3576, 18, 15330, 65, 273, 1699, 6872, 63, 1355, 6362, 3576, 18, 15330, 8009, 1717, 12, 8949, 1769, 203, 3639, 324, ...
pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } functi...
Forward ERC20 methods to upgraded contract if this one is deprecated
function balanceOf(address who) public constant returns (uint) { if (deprecated) { return UpgradedStandardToken(upgradedAddress).balanceOf(who); return super.balanceOf(who); } }
2,026,643
[ 1, 8514, 4232, 39, 3462, 2590, 358, 31049, 6835, 309, 333, 1245, 353, 6849, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 11013, 951, 12, 2867, 10354, 13, 1071, 5381, 1135, 261, 11890, 13, 288, 203, 565, 309, 261, 14089, 13, 288, 203, 1377, 327, 1948, 19305, 8336, 1345, 12, 416, 19305, 1887, 2934, 12296, 951, 12, 3350, 83, 1769, 203, 1377,...
pragma solidity ^0.4.20; contract Gladiethers { address public m_Owner; address public partner; mapping (address => uint) public gladiatorToPower; // gladiator power mapping (address => uint) public gladiatorToCooldown; mapping(address => uint) public gladiatorToQueuePosition; mapping(address ...
gives 1% (4% dead gladiator / 4 )
gladiatorToPower[kingGladiator] = SafeMath.add( gladiatorToPower[kingGladiator],SafeMath.div(devFee,4) );
1,630,090
[ 1, 75, 3606, 404, 9, 1377, 261, 24, 9, 8363, 5118, 361, 10620, 342, 1059, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5118, 361, 10620, 774, 13788, 63, 79, 310, 21308, 361, 10620, 65, 273, 14060, 10477, 18, 1289, 12, 5118, 361, 10620, 774, 13788, 63, 79, 310, 21308, 361, 10620, 6487, 9890, 10477, 18, 2892, 12, 5206, 14667, 16, 24, 13, 1127...
pragma solidity 0.4.18; library SafeMath32 { function add(uint32 a, uint32 b) internal pure returns (uint32) { uint32 c = a + b; assert(c >= a); return c; } } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c...
@notice Submit an answer for a question. @dev Adds the answer to the history and updates the current "best" answer. May be subject to front-running attacks; Substitute submitAnswerCommitment()->submitAnswerReveal() to prevent them. @param question_id The ID of the question @param answer The answer, encoded into bytes3...
function submitAnswer(bytes32 question_id, bytes32 answer, uint256 max_previous) stateOpen(question_id) bondMustDouble(question_id) previousBondMustNotBeatMaxPrevious(question_id, max_previous) external payable { _addAnswerToHistory(question_id, answer, msg.sender, msg.value, fa...
137,417
[ 1, 11620, 392, 5803, 364, 279, 5073, 18, 225, 15605, 326, 5803, 358, 326, 4927, 471, 4533, 326, 783, 315, 12729, 6, 5803, 18, 16734, 506, 3221, 358, 6641, 17, 8704, 28444, 31, 2592, 17207, 4879, 13203, 5580, 475, 17214, 9297, 13203, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4879, 13203, 12, 3890, 1578, 5073, 67, 350, 16, 1731, 1578, 5803, 16, 2254, 5034, 943, 67, 11515, 13, 7010, 3639, 919, 3678, 12, 4173, 67, 350, 13, 203, 3639, 8427, 10136, 5265, 12, 4173, 67, 350, 13, 203, 3639, 2416,...
/** *Submitted for verification at Etherscan.io on 2020-08-28 */ pragma solidity ^0.5.13; /** * @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 o...
* @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; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } ...
1,002,762
[ 1, 5460, 429, 225, 1021, 14223, 6914, 6835, 711, 392, 3410, 1758, 16, 471, 8121, 5337, 6093, 3325, 4186, 16, 333, 9330, 5032, 326, 4471, 434, 315, 1355, 4371, 9654, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14223, 6914, 288, 203, 225, 1758, 1071, 3410, 31, 203, 203, 203, 225, 871, 14223, 9646, 5310, 16290, 27373, 12, 2867, 8808, 2416, 5541, 1769, 203, 225, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758...
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existenc...
withdraws are allowed in any future epoch, i.e. currentStateIndex > batchId
PendingFlux pendingWithdraws;
2,481,828
[ 1, 1918, 9446, 87, 854, 2935, 316, 1281, 3563, 7632, 16, 277, 18, 73, 18, 17773, 1016, 405, 2581, 548, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16034, 2340, 2616, 4634, 1190, 9446, 87, 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, ...
./full_match/1/0x6C1C3012f6Ac0dBB750e33f93E1bA350012A6653/sources/contracts/pool/lpNft/LpNft.sol
* @notice returns storefront-level metadata to be viewed on marketplaces./
function contractURI() external view returns (string memory) { return _metadataGenerator.payloadContractUri(); }
3,043,469
[ 1, 6154, 1707, 10211, 17, 2815, 1982, 358, 506, 1476, 329, 603, 13667, 11350, 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, ...
[ 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, 6835, 3098, 1435, 3903, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 389, 4165, 3908, 18, 7648, 8924, 3006, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/80001/0xb5c514545c8f5C19580810f184145443758Ba8d1/sources/BalanceScanner.sol
* @notice Get the ERC-20 token balance of `token` for all addresses specified @dev This does not check if the `token` address specified is actually an ERC-20 token @param addresses The addresses to get the token balance for @param token The address of the ERC-20 token contract @return balances The token balance for all...
function tokenBalances(address[] calldata addresses, address token) external view returns (uint256[] memory balances) { balances = new uint256[](addresses.length); for (uint256 i = 0; i < addresses.length; i++) { balances[i] = tokenBalance(addresses[i], token); } }
8,805,639
[ 1, 967, 326, 4232, 39, 17, 3462, 1147, 11013, 434, 1375, 2316, 68, 364, 777, 6138, 1269, 225, 1220, 1552, 486, 866, 309, 326, 1375, 2316, 68, 1758, 1269, 353, 6013, 392, 4232, 39, 17, 3462, 1147, 225, 6138, 1021, 6138, 358, 336, 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, 1147, 38, 26488, 12, 2867, 8526, 745, 892, 6138, 16, 1758, 1147, 13, 203, 565, 3903, 203, 565, 1476, 203, 565, 1135, 261, 11890, 5034, 8526, 3778, 324, 26488, 13, 203, 225, 288, 203, 565, 324, 26488, 273, 394, 2254, 5...
// File: contracts\interfaces\ISaffronBase.sol // SPDX-License-Identifier: MIT pragma solidity ^0.7.1; interface ISaffronBase { enum Tranche {S, AA, A} enum LPTokenType {dsec, principal} // Store values (balances, dsec, vdsec) with TrancheUint256 struct TrancheUint256 { uint256 S; uint256 AA; ui...
v0: only one adapter
return adapters[0];
1,309,308
[ 1, 90, 20, 30, 1338, 1245, 4516, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 327, 17272, 63, 20, 15533, 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, ...
/** *Submitted for verification at Etherscan.io on 2021-02-21 */ // File: @openzeppelin/contracts/math/SafeMath.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap ...
loop through the addresses array and send tokens to each address except the last one the corresponding amount to sent is taken from the amounts array
constructor (address[] memory addresses, uint256[] memory amounts) public { uint256 rDistributed = 0; for(uint8 i = 0; i < addresses.length - 1; i++) { (uint256 rAmount, , , , , , ) = _getValues(amounts[i]); _rOwned[addresses[i]] = rAmount; rDistributed = rDistrib...
2,227,082
[ 1, 6498, 3059, 326, 6138, 526, 471, 1366, 2430, 358, 1517, 1758, 1335, 326, 1142, 1245, 326, 4656, 3844, 358, 3271, 353, 9830, 628, 326, 30980, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 261, 2867, 8526, 3778, 6138, 16, 2254, 5034, 8526, 3778, 30980, 13, 1071, 288, 203, 3639, 2254, 5034, 436, 1669, 11050, 273, 374, 31, 203, 3639, 364, 12, 11890, 28, 277, 273, 374, 31, 277, 411, 6138, 18, 2469, 300, 4...
/* Copyright 2019 dYdX Trading Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
* @title Account @author dYdX Library of structs and functions that represent an account/ ============ Enums ============
library Account { import { Types } from "./Types.sol"; import { EnumerableSet } from "./EnumerableSet.sol"; enum Status { Normal, Liquid, Vapor } struct Info { } struct Storage { Status status; uint32 numberOfMarketsWithBorrow; EnumerableSet.Set ...
12,969,293
[ 1, 3032, 225, 302, 61, 72, 60, 18694, 434, 8179, 471, 4186, 716, 2406, 392, 2236, 19, 422, 1432, 631, 6057, 87, 422, 1432, 631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12083, 6590, 288, 203, 203, 203, 203, 5666, 288, 7658, 289, 628, 25165, 2016, 18, 18281, 14432, 203, 5666, 288, 6057, 25121, 694, 289, 628, 25165, 3572, 25121, 694, 18, 18281, 14432, 203, 565, 2792, 2685, 288, 203, 3639, 8769, 16, ...
./full_match/11155111/0x6241032DC68d5a6e932744C5Ae01cd3cFBF4a6F4/sources/contracts/CrowdFunding.sol
is everything okay???
function createCampaign(address _owner, string memory _title, string memory _description, uint256 _target, uint256 _deadline, string memory _image) public returns(uint256){ Campaign storage campaign= campaigns[numberOfCampaings]; require(campaign.deadline < block.timestamp, "The deadline shoul...
3,842,132
[ 1, 291, 7756, 21194, 14646, 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, 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, 282, 445, 752, 13432, 12, 2867, 389, 8443, 16, 533, 3778, 389, 2649, 16, 533, 3778, 389, 3384, 16, 203, 565, 2254, 5034, 389, 3299, 16, 2254, 5034, 389, 22097, 1369, 16, 533, 3778, 389, 2730, 13, 1071, 1135, 12, 11890, 5034, 15...
/** *Submitted for verification at Etherscan.io on 2022-03-03 */ /** Contract is by captain ike and frens ,--. ,--. ,--.,--. ,---. ,--,--. ,---. ,-' '-. ,--,--.`--',--,--, `--'| |,-. ,---. | .--'' ,-. || .-. |'-. .-'' ,-. |,--.| \ ,--.| /| .-. : \ `--.\ '-' || '-' ' | | \ '-' || || || | | || \ \\ --. `---...
* @dev Returns a URI for a given token ID's metadata/
function tokenURI(uint256 _tokenId) public view override returns (string memory) { return string(abi.encodePacked(_baseTokenURI, Strings.toString(_tokenId))); }
2,311,665
[ 1, 1356, 279, 3699, 364, 279, 864, 1147, 1599, 1807, 1982, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 1147, 3098, 12, 11890, 5034, 389, 2316, 548, 13, 203, 1071, 203, 1476, 203, 3849, 203, 1135, 261, 1080, 3778, 13, 203, 288, 203, 327, 203, 533, 12, 21457, 18, 3015, 4420, 329, 24899, 1969, 1345, 3098, 16, 8139, 18, 10492, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.11; contract Exercice { // chaque eleve sera raccord un tableau de note struct eleve { string nom; string prenom; uint[] notes; } //correspondre une adresse avec un eleves: mapping(address => eleve ) ...
correspondre une adresse avec un eleves:
mapping(address => eleve ) Eleves;
7,213,174
[ 1, 3850, 17863, 266, 21948, 1261, 7613, 279, 8799, 640, 5043, 3324, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2874, 12, 2867, 516, 5043, 537, 262, 512, 298, 3324, 31, 21281, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity 0.7.3; import "./AlphaStrategy.sol"; contract Strategy is AlphaStrategy { constructor() public {} function initialize( address _storage, address _vault, address _tAlpha ) public initializer { AlphaStrategy.initializeAlphaStrategy( _storage, address(0xCEfF51756c56CeF...
additional storage slots (on top of BaseUpgradeableStrategy ones) are defined here
contract AlphaStrategy is BaseUpgradeableStrategy { using SafeMath for uint256; using SafeERC20 for IERC20; bytes32 internal constant _SLP_POOLID_SLOT = 0x8956ecb40f9dfb494a392437d28a65bb0ddc57b20a9b6274df098a6daa528a72; bytes32 internal constant _ONX_FARM_POOLID_SLOT = 0x1da1707f101f5a1bf84020973bd9ccafa38ae...
148,987
[ 1, 13996, 2502, 12169, 261, 265, 1760, 434, 3360, 10784, 429, 4525, 5945, 13, 854, 2553, 2674, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 24277, 4525, 353, 3360, 10784, 429, 4525, 288, 203, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 225, 1731, 1578, 2713, 5381, 389, 4559, 52...
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20 pragma solidity 0.4.19; contract ERC20Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupp...
Half of the max supply. 50% for ico
contract TokenContribution is Owned, TokenController { using SafeMath for uint256; uint256 constant public maxSupply = 1000000000 * 10**8; uint256 constant public saleLimit = 500000000 * 10**8; uint256 constant public maxGasPrice = 50000000000; uint256 constant public maxCallFrequency = 100; ...
10,038,750
[ 1, 16168, 434, 326, 943, 14467, 18, 6437, 9, 364, 277, 2894, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 442, 4027, 353, 14223, 11748, 16, 3155, 2933, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 5381, 1071, 943, 3088, 1283, 273, 15088, 3784, 380, 1728, 636, 28, 31, 203, 203, 565, 2...
./full_match/80001/0xD2c21633a243169A6b6E2688d9A9fC1A10809cD5/sources/contracts/lib/TokenURIDescriptor.sol
function getEncodedSVG(address _addr, string calldata name, string calldata symbol) public pure returns (string memory) {
function tokenURI( address _addr, string memory _name, string memory _symbol ) internal pure returns (string memory) { string[9] memory json; json[0] = '{"name":"'; json[1] = _name; json[2] = ' #'; json[3] = toHexString(_addr)...
9,513,499
[ 1, 915, 28799, 26531, 12, 2867, 389, 4793, 16, 533, 745, 892, 508, 16, 533, 745, 892, 3273, 13, 1071, 16618, 1135, 261, 1080, 3778, 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...
[ 1, 1, 1, 1, 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, 1147, 3098, 12, 203, 3639, 1758, 389, 4793, 16, 203, 3639, 533, 3778, 389, 529, 16, 203, 3639, 533, 3778, 389, 7175, 203, 565, 262, 203, 565, 2713, 203, 565, 16618, 203, 565, 1135, 261, 1080, 3778, 13, 288, 203, 203, ...
./full_match/44787/0x50167A410307aF7c7fCC05aD97c4B35B1E757Aae/sources/src/SpiralsStaking.sol
@notice Helper function for revoking pending votes CELO
function revokePending(uint256 _value) internal { (address lesser, address greater, uint256 index) = getLesserGreater(); require( getElection().revokePending( validatorGroup, _value, lesser, greater, index ...
13,242,887
[ 1, 2276, 445, 364, 5588, 601, 310, 4634, 19588, 29538, 1502, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18007, 8579, 12, 11890, 5034, 389, 1132, 13, 2713, 288, 203, 3639, 261, 2867, 5242, 264, 16, 1758, 6802, 16, 2254, 5034, 770, 13, 273, 9014, 403, 264, 20937, 5621, 203, 3639, 2583, 12, 203, 5411, 4774, 942, 7675, 9083, ...
./full_match/1/0x908a391E2c3200f564f3a5b1dDF42DFA95754B37/sources/contracts/protocol/modules/v1/TradeModule.sol
* Update JasperVault positions @param _tradeInfo Struct containing trade information used in internal functions @return uint256 Amount of sendTokens used in the trade @return uint256 Amount of receiveTokens received in the trade (net of fees)/
function _updateSetTokenPositions(TradeInfo memory _tradeInfo) internal returns (uint256, uint256) { (uint256 currentSendTokenBalance,,) = _tradeInfo.jasperVault.calculateAndEditDefaultPosition( _tradeInfo.sendToken, _tradeInfo.setTotalSupply, _tradeInfo.preTradeSendToken...
2,986,391
[ 1, 1891, 804, 345, 457, 12003, 6865, 225, 389, 20077, 966, 7734, 7362, 4191, 18542, 1779, 1399, 316, 2713, 4186, 327, 2254, 5034, 5375, 16811, 434, 1366, 5157, 1399, 316, 326, 18542, 327, 2254, 5034, 5375, 16811, 434, 6798, 5157, 5079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2725, 694, 1345, 11024, 12, 22583, 966, 3778, 389, 20077, 966, 13, 2713, 1135, 261, 11890, 5034, 16, 2254, 5034, 13, 288, 203, 3639, 261, 11890, 5034, 783, 3826, 1345, 13937, 16408, 13, 273, 389, 20077, 966, 18, 78...
./partial_match/3/0xa81D960dAb58713004576b0F1aA11f941790D7D8/sources/Ballot.sol
@title Voting with delegation. This declares a new complex type which will be used for variables later. It will represent a single voter.
contract Ballot { struct Voter { } struct Proposal { } address public chairperson; mapping(address => Voter) public voters; Proposal[] public proposals; constructor(bytes32[] memory proposalNames) public { chairperson = msg.sender; voters[chairperson].weight = 1; ...
5,199,802
[ 1, 58, 17128, 598, 23595, 18, 1220, 3496, 4807, 279, 394, 7233, 618, 1492, 903, 506, 1399, 364, 3152, 5137, 18, 2597, 903, 2406, 279, 2202, 331, 20005, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 454, 352, 288, 203, 565, 1958, 776, 20005, 288, 203, 565, 289, 203, 203, 565, 1958, 19945, 288, 203, 565, 289, 203, 203, 565, 1758, 1071, 462, 1826, 12479, 31, 203, 203, 203, 203, 565, 2874, 12, 2867, 516, 776, 2000...
pragma solidity 0.4.24; // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint25...
Including observation error
uint256 gas = gasinit - gasleft() + 110525;
1,126,879
[ 1, 382, 18596, 13853, 555, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5034, 16189, 273, 16189, 2738, 300, 16189, 4482, 1435, 397, 20168, 25, 2947, 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, ...
./partial_match/56/0xb6111E5a0542bBB799811DE6973D81B878D25b70/sources/ANG.sol
* @dev Implementation of the {IBEP20} 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 {BEP20Mintable}. TIP: For a detailed writeup see our guide to implement supply mechanisms]. ...
contract BEP20 is Context, IBEP20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; function totalSupply() public view returns (uint256) { return _totalSupply...
11,175,298
[ 1, 13621, 434, 326, 288, 45, 5948, 52, 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, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 9722, 52, 3462, 353, 1772, 16, 467, 5948, 52, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 261, 2867, 5...
/** *Submitted for verification at Etherscan.io on 2020-07-08 */ // File: contracts/IERC165.sol pragma solidity ^0.5.11; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be ...
the users' registered contentId containing the Property
string contentId;
921,973
[ 1, 5787, 3677, 11, 4104, 16095, 4191, 326, 4276, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 533, 16095, 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,...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.25 <0.7.0; import '@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol'; import '@openzeppelin/contracts-upgradeable/math/MathUpgradeable.sol'; import '@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol'; import '@openzeppelin/con...
@param sessionID {uint256} - id of the stake @param amount {uint256} - amount of AXN @param start {uint256} - start date of the stake @param end {uint256} - end date of the stake @param actualEnd {uint256} - actual end date of the stake @param shares {uint256} - number of stares of the stake @param firstPayout {uint25...
function unstakeV1Internal( uint256 sessionId, uint256 amount, uint256 start, uint256 end, uint256 actualEnd, uint256 shares, uint256 firstPayout, uint256 lastPayout, uint256 stakingDays ) internal returns (uint256) { uint256 amount...
1,400,729
[ 1, 17255, 288, 11890, 5034, 97, 300, 612, 434, 326, 384, 911, 225, 3844, 288, 11890, 5034, 97, 300, 3844, 434, 29539, 50, 225, 787, 288, 11890, 5034, 97, 300, 787, 1509, 434, 326, 384, 911, 225, 679, 288, 11890, 5034, 97, 300, 679...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 640, 334, 911, 58, 21, 3061, 12, 203, 3639, 2254, 5034, 10338, 16, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 2254, 5034, 787, 16, 203, 3639, 2254, 5034, 679, 16, 203, 3639, 2254, 5034, 3214, 1638, 16, 203, 3639, 225...
/** *Submitted for verification at Etherscan.io on 2021-04-06 */ // File: contracts/lib/RandomNumber.sol pragma solidity 0.8.2; library RandomNumber { function randomNum(uint256 seed) internal returns (uint256) { uint256 _number = (uint256( keccak256(abi.encodePacked(blockhas...
phantom 0 index element in the fighters array to begin
fighters.push();
2,201,510
[ 1, 844, 16317, 374, 770, 930, 316, 326, 284, 2031, 5432, 526, 358, 2376, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 284, 2031, 5432, 18, 6206, 5621, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; import "./libraries/SafeMath.sol"; import "./Oraclize/Oraclize_API.sol"; import "./Wrapped_Token.sol"; import "./libraries/Strings.sol"; /** *Side chain bridge contract */ /** * This is the basic wrapped Ether to a different chain contract. * All money deposited is transformed into ERC20 t...
maps a transferId to an amount
mapping(uint => Details) transferDetails;
2,501,147
[ 1, 10711, 279, 7412, 548, 358, 392, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 516, 21897, 13, 7412, 3790, 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, -...
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; contract ArtOnlinePlatformStorage { uint256 internal _blockTime = 60; string internal _uri; uint internal unlocked = 1; string[] internal _tokens; uint256[] internal _items; uint256[] internal _pools; mapping(uint256 => string) public tokenNames...
_miners[id][address] = balance
contract ArtOnlinePlatformStorage { uint256 internal _blockTime = 60; string internal _uri; uint internal unlocked = 1; string[] internal _tokens; uint256[] internal _items; uint256[] internal _pools; mapping(uint256 => string) public tokenNames; mapping(uint256 => uint256) internal _totalMiners; ...
12,994,091
[ 1, 67, 1154, 414, 63, 350, 6362, 2867, 65, 273, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9042, 16860, 8201, 3245, 288, 203, 203, 225, 2254, 5034, 2713, 389, 2629, 950, 273, 4752, 31, 203, 225, 533, 2713, 389, 1650, 31, 203, 225, 2254, 2713, 25966, 273, 404, 31, 203, 203, 225, 533, 8526, 2713, 389, 7860, 31, ...
//-------------DEPENDENCIES--------------------------// // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compil...
* @dev Mints a token to an address with a tokenURI. fee may or may not be required @param _to address of the future owner of the token @param _amount number of tokens to mint/
function mintToMultiple(address _to, uint256 _amount) public payable { require(_amount >= 1, "Must mint at least 1 token"); require(_amount <= maxBatchSize, "Cannot mint more than max mint per transaction"); require(mintingOpen == true, "Minting is not open right now!"); ...
135,398
[ 1, 49, 28142, 279, 1147, 358, 392, 1758, 598, 279, 1147, 3098, 18, 14036, 2026, 578, 2026, 486, 506, 1931, 225, 389, 869, 1758, 434, 326, 3563, 3410, 434, 326, 1147, 225, 389, 8949, 1300, 434, 2430, 358, 312, 474, 19, 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, 312, 474, 774, 8438, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 24899, 8949, 1545, 404, 16, 315, 10136, 312, 474, 622, 4520, 404, 1147, 8863, 203, 3639, 2583, 24899, 8949, ...
pragma solidity ^0.4.13; library ECRecovery { /** * @dev Recover signer address from a message by using their signature * @param hash bytes32 message, the hash is the signed message. What is recovered is the signer address. * @param sig bytes signature, the signature is generated using web3....
/ Require sufficient deposit amount; Prevents buffer underflow
{ require(amount <= hashIdToMultisig[msigId].deposit); hashIdToMultisig[msigId].deposit -= amount; @notice Send ether out of this contract to multisig owner and update or delete entry in multisig mapping function spendFromMultisig(bytes32 msigId, uint amount, address recipient) ...
7,284,333
[ 1, 19, 12981, 18662, 443, 1724, 3844, 31, 19412, 87, 1613, 3613, 2426, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 288, 203, 3639, 2583, 12, 8949, 1648, 1651, 28803, 5049, 291, 360, 63, 959, 360, 548, 8009, 323, 1724, 1769, 203, 3639, 1651, 28803, 5049, 291, 360, 63, 959, 360, 548, 8009, 323, 1724, 3947, 3844, 31, 203, 203, 203, 203, 2...
./partial_match/1/0xff1d7f58e90c307a79F66201182Ea4E16854d822/sources/CryptoSeed.sol
Update total supply with the decimal amount
totalSupply = 300000000 * 10 ** 18;
3,625,186
[ 1, 1891, 2078, 14467, 598, 326, 6970, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 3088, 1283, 273, 890, 12648, 380, 1728, 2826, 6549, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x23B185bb20C77f714Ca0A881842F44D66A4D3236/sources/CelatixSwap.sol
5% from total supply maxTransactionAmountTxn
maxTransactionAmount = (totalSupply * 50) / 1000;
3,567,664
[ 1, 25, 9, 628, 2078, 14467, 943, 3342, 6275, 13789, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 943, 3342, 6275, 273, 261, 4963, 3088, 1283, 380, 6437, 13, 342, 4336, 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...
./full_match/56/0x1C5C0E1B96E7ADDC14AED3688E547A6103A244d9/sources/project_/contracts/Router1.sol
* @dev Returns the number of decimals used by the token. @return The number of decimals used by the token as a uint8./
function decimals() external pure returns (uint8) { return DECIMALS; }
3,227,169
[ 1, 1356, 326, 1300, 434, 15105, 1399, 635, 326, 1147, 18, 327, 1021, 1300, 434, 15105, 1399, 635, 326, 1147, 487, 279, 2254, 28, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15105, 1435, 3903, 16618, 1135, 261, 11890, 28, 13, 288, 203, 3639, 327, 25429, 55, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0xA4692e06E702631A5792CA14BCf63A9304297896/sources/src/OwnableERC4626Migrator.sol
* @notice Migrates ERC4626 token to WETH, DAI, and USDC @dev Reentry guard. @param _amount - The amount of ERC4626 token to be migrated @param _acceptanceToken -Custom token demonstrating the caller's agreement with the Terms and Conditions of the claim @return The amount of weth sent to the user @return The amount of ...
function migrate(uint256 _amount, bytes32 _acceptanceToken) external nonReentrant returns (uint256, uint256, uint256) { if (_acceptanceToken != keccak256(abi.encodePacked(msg.sender, termsAndConditionsHash))) { revert InvalidAcceptanceToken(msg.sender, _acceptanceToke...
3,222,279
[ 1, 25483, 815, 4232, 39, 8749, 5558, 1147, 358, 678, 1584, 44, 16, 463, 18194, 16, 471, 11836, 5528, 225, 868, 4099, 11026, 18, 225, 389, 8949, 300, 1021, 3844, 434, 4232, 39, 8749, 5558, 1147, 358, 506, 24741, 225, 389, 9436, 1359,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 13187, 12, 11890, 5034, 389, 8949, 16, 1731, 1578, 389, 9436, 1359, 1345, 13, 203, 3639, 3903, 203, 3639, 1661, 426, 8230, 970, 203, 3639, 1135, 261, 11890, 5034, 16, 2254, 5034, 16, 2254, 5034, 13, 203, 565, 288, 203, ...
./full_match/1/0xA5E2F5fcEEEA67C07b317c51F3741d2AA0775058/sources/contracts/ERC721Comet.sol
* @notice Sets the max supply of tokens. @param value The max supply./
function setMaxSupply(uint256 value) public onlyOwner { _maxSupply = value; emit MaxSupplyUpdated(value); }
8,329,527
[ 1, 2785, 326, 943, 14467, 434, 2430, 18, 225, 460, 1021, 943, 14467, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 10851, 3088, 1283, 12, 11890, 5034, 460, 13, 1071, 1338, 5541, 288, 203, 3639, 389, 1896, 3088, 1283, 273, 460, 31, 203, 203, 3639, 3626, 4238, 3088, 1283, 7381, 12, 1132, 1769, 203, 565, 289, 203, 203, 2, -100, -100, ...
./full_match/42220/0x5Ed248077bD07eE9B530f7C40BE0c1dAE4c131C0/sources/contracts/voting/VotingPower.sol
* @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ...
function getPriorVotes(address account, uint blockNumber) public view override returns (uint96) { require(blockNumber < block.number, "Uni::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } i...
16,338,985
[ 1, 8519, 326, 6432, 1300, 434, 19588, 364, 392, 2236, 487, 434, 279, 1203, 1300, 225, 3914, 1300, 1297, 506, 279, 727, 1235, 1203, 578, 469, 333, 445, 903, 15226, 358, 5309, 7524, 13117, 18, 225, 2236, 1021, 1758, 434, 326, 2236, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1689, 2432, 29637, 12, 2867, 2236, 16, 2254, 1203, 1854, 13, 1071, 1476, 3849, 1135, 261, 11890, 10525, 13, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 984, 77, 2866, 588, 25355, 29637, 30, 486, ...
// Copyright (C) 2020 Zerion Inc. <https://zerion.io> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This ...
* @notice Updates token adapters' names by tokens. The function is callable only by the owner. @param tokens Array of tokens. @param newTokenAdapterNames Array of the new token adapters' names./
function updateTokenAdapterNamesByTokens( address[] calldata tokens, bytes32[] calldata newTokenAdapterNames ) external onlyOwner { validateInput(tokens, newTokenAdapterNames); uint256 length = tokens.length; for (uint256 i = 0; i < length; i++) { updateToken...
15,848,484
[ 1, 5121, 1147, 17272, 11, 1257, 635, 2430, 18, 1021, 445, 353, 4140, 1338, 635, 326, 3410, 18, 225, 2430, 1510, 434, 2430, 18, 225, 394, 1345, 4216, 1557, 1510, 434, 326, 394, 1147, 17272, 11, 1257, 18, 19, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 1345, 4216, 1557, 858, 5157, 12, 203, 3639, 1758, 8526, 745, 892, 2430, 16, 203, 3639, 1731, 1578, 8526, 745, 892, 394, 1345, 4216, 1557, 203, 565, 262, 3903, 1338, 5541, 288, 203, 3639, 1954, 1210, 12, 7860, 16, ...
./full_match/97/0xc652e53177AeD5baC8d251E81549AbB38B723C0C/sources/project_/contracts/factory.sol
* @dev Sets proxy contract address against the user's specific dealId. Private function without access restriction./
function setUserDealDetails( string memory _dealId, address _escrowAddress ) private { dealIdToEscrowProxy[_dealId] = _escrowAddress; }
3,261,236
[ 1, 2785, 2889, 6835, 1758, 5314, 326, 729, 1807, 2923, 10490, 548, 18, 8726, 445, 2887, 2006, 9318, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 14365, 758, 287, 3790, 12, 203, 3639, 533, 3778, 389, 323, 287, 548, 16, 203, 3639, 1758, 389, 742, 492, 1887, 203, 565, 262, 3238, 288, 203, 3639, 10490, 28803, 6412, 492, 3886, 63, 67, 323, 287, 548, 65, 273, 389, ...
// File: contracts/ERC721/ERC721ReceiverDraft.sol pragma solidity ^0.5.10; /// @title ERC721ReceiverDraft /// @dev Interface for any contract that wants to support safeTransfers from /// ERC721 asset contracts. /// @dev Note: this is the interface defined from /// https://github.com/ethereum/EIPs/commit/2bddd126d...
@notice A version of `invoke()` that has one explicit signature which is used to derive the authorized address. Uses `msg.sender` as the cosigner. @param v the v value for the signature; see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md @param r the r value for the signature @param s the s value for th...
function invoke1CosignerSends(uint8 v, bytes32 r, bytes32 s, uint256 nonce, address authorizedAddress, bytes calldata data) external { require(v == 27 || v == 28, "Invalid signature version."); bytes32 operationHash = keccak256( abi.encodePacked( EIP191_PREFIX, E...
133,354
[ 1, 37, 1177, 434, 1375, 14407, 20338, 716, 711, 1245, 5515, 3372, 1492, 353, 1399, 358, 14763, 326, 10799, 225, 1758, 18, 14854, 1375, 3576, 18, 15330, 68, 487, 326, 4987, 724, 264, 18, 225, 331, 326, 331, 460, 364, 326, 3372, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4356, 21, 39, 538, 724, 264, 10501, 12, 11890, 28, 331, 16, 1731, 1578, 436, 16, 1731, 1578, 272, 16, 2254, 5034, 7448, 16, 1758, 10799, 1887, 16, 1731, 745, 892, 501, 13, 3903, 288, 203, 3639, 2583, 12, 90, 422, 12...
./full_match/1/0xeB280323B91d668984102637d3e6F8BE50E4C27e/sources/localhost/contracts/Bill/Bill.sol
@title Bill @author Juu17
contract Bill is MultiOwnable, ERC1155Receiver { using SafeMath for uint256; uint256 public immutable id; uint256 public immutable billAmount; uint256 public issuedAmount; string public drawer; string public draweeBankName; bytes8 public immutable draweeDate; string public accepter; ...
8,334,389
[ 1, 38, 737, 225, 804, 24286, 4033, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 605, 737, 353, 5991, 5460, 429, 16, 4232, 39, 2499, 2539, 12952, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 1071, 11732, 612, 31, 203, 565, 2254, 5034, 1071, 11732, 20714, 6275, 31, ...
./full_match/4/0x19D59Ea6A136Cc5Fd55e09b2Bacc745B2a0B4eE8/sources/contracts/interfaces/IProject.sol
address of invited contractor
address public contractor;
671,239
[ 1, 2867, 434, 2198, 16261, 6835, 280, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 6835, 280, 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, ...
./full_match/4/0xFe6bad5DcCFb174d8Bf383e7C52825742348c187/sources/contracts/3_Ballot.sol
* @dev Returns the value associated with `key`. O(1). Requirements: - `key` must be in the map./
function get(UintToUintMap storage map, uint256 key) internal view returns (uint256) { return _get(map._inner, key); }
12,431,498
[ 1, 1356, 326, 460, 3627, 598, 1375, 856, 8338, 225, 531, 12, 21, 2934, 29076, 30, 300, 1375, 856, 68, 1297, 506, 316, 326, 852, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 12, 5487, 774, 5487, 863, 2502, 852, 16, 2254, 5034, 498, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 389, 588, 12, 1458, 6315, 7872, 16, 498, 1769,...
pragma solidity ^0.4.24; // File: contracts/ownership/Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event Ownership...
* @dev Can be overridden to add finalization logic. The overriding function should call super.finalization() to ensure the chain of finalization is executed entirely./
function finalization() internal{ }
572,249
[ 1, 2568, 506, 11000, 358, 527, 727, 1588, 4058, 18, 1021, 19488, 445, 1410, 745, 2240, 18, 6385, 1588, 1435, 358, 3387, 326, 2687, 434, 727, 1588, 353, 7120, 21658, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 727, 1588, 1435, 2713, 95, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// contracts/staking/BalleRewardDistribution.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../token/BALLEv2.sol"; import ...
* @dev Function to change the rewarder address./
function setRewarder(address _rewarder) external onlyOwner { require(_rewarder != address(0), "zero address"); rewarder = _rewarder; }
2,510,163
[ 1, 2083, 358, 2549, 326, 283, 20099, 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, 565, 445, 444, 17631, 297, 765, 12, 2867, 389, 266, 20099, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 24899, 266, 20099, 480, 1758, 12, 20, 3631, 315, 7124, 1758, 8863, 203, 3639, 283, 20099, 273, 389, 266, 20099, 31, 203, 565, ...
./full_match/71401/0x47948654959E54bA2dCAcE556fF844631425cb11/sources/contracts/lib/ABDKMath64x64.sol
* Calculate x / y rounding towards zero, where x and y are signed 256-bit integer numbers. Revert on overflow or when y is zero. @param x signed 256-bit integer number @param y signed 256-bit integer number @return signed 64.64-bit fixed point number/
function divi(int256 x, int256 y) internal pure returns (int128) { unchecked { require(y != 0); bool negativeResult = false; if (x < 0) { negativeResult = true; } if (y < 0) { negativeResult = !negativeResult; } uint128 absoluteResult = divuu(uint256(x), ...
7,100,741
[ 1, 8695, 619, 342, 677, 13885, 23248, 3634, 16, 1625, 619, 471, 677, 854, 6726, 8303, 17, 3682, 3571, 5600, 18, 225, 868, 1097, 603, 9391, 578, 1347, 677, 353, 3634, 18, 225, 619, 6726, 8303, 17, 3682, 3571, 1300, 225, 677, 6726, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 225, 445, 3739, 77, 12, 474, 5034, 619, 16, 509, 5034, 677, 13, 2713, 16618, 1135, 261, 474, 10392, 13, 288, 203, 565, 22893, 288, 203, 1377, 2583, 12, 93, 480, 374, 1769, 203, 203, 1377, 1426, 6092, 1253, 273, 629, 31, 203, ...
./partial_match/1/0x3fc5923C3bcF3bE6008d24b1232e373924bD7889/sources/Emiswap.sol
Total supply on first deposit
uint256 public constant BASE_SUPPLY = 1000;
3,942,725
[ 1, 5269, 14467, 603, 1122, 443, 1724, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5381, 10250, 67, 13272, 23893, 273, 4336, 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, ...
/** Website : https://arcadiatoken.com/ #Arcadia Fetaures 1% fees auto distributed to all token holder. 1% fees auto add to marketing/owner wallet. */ pragma solidity 0.8.3; // SPDX-License-Identifier: UNLICENSED /* * @dev Provides information about the current execution context, including the * ...
* @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ...
function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "CHAR::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } if (ch...
75,146
[ 1, 8519, 326, 6432, 1300, 434, 19588, 364, 392, 2236, 487, 434, 279, 1203, 1300, 225, 3914, 1300, 1297, 506, 279, 727, 1235, 1203, 578, 469, 333, 445, 903, 15226, 358, 5309, 7524, 13117, 18, 225, 2236, 1021, 1758, 434, 326, 2236, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1689, 2432, 29637, 12, 2867, 2236, 16, 2254, 1203, 1854, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 7305, 2866, 588, 25355, 29637, 30, 486, 4671, 1138...
./full_match/80001/0x036082ae1Ab019163bE3a726fe6dbA8397e46589/sources/contracts/ProjectTracker.sol
Mapping from project ID to project data Array to track admin addresses Modifier to check if the caller is an admin
contract ProjectTracker { mapping(string => Project) public projects; address[] public admins; pragma solidity ^0.8.0; modifier onlyAdmin() { bool isAdmin = false; for (uint256 i = 0; i < admins.length; i++) { if (admins[i] == msg.sender) { isAdmin = true; ...
5,672,255
[ 1, 3233, 628, 1984, 1599, 358, 1984, 501, 1510, 358, 3298, 3981, 6138, 12832, 358, 866, 309, 326, 4894, 353, 392, 3981, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5420, 8135, 288, 203, 565, 2874, 12, 1080, 516, 5420, 13, 1071, 10137, 31, 203, 203, 565, 1758, 8526, 1071, 31116, 31, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 203, 565, 9606, 1338, 4446, 1435, 288,...
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see `ERC20Detailed`. */ interface IERC20 { /** * @dev Returns the amount of tokens in existenc...
* @dev Function to be called by owner only to set the bridge address @param _address bridge address/
function setBridge(address _address) public onlyOwner { require(_address != address(0) && Address.isContract(_address)); bridge = _address; }
6,401,503
[ 1, 2083, 358, 506, 2566, 635, 3410, 1338, 358, 444, 326, 10105, 1758, 225, 389, 2867, 10105, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 13691, 12, 2867, 389, 2867, 13, 1071, 1338, 5541, 288, 203, 565, 2583, 24899, 2867, 480, 1758, 12, 20, 13, 597, 5267, 18, 291, 8924, 24899, 2867, 10019, 203, 565, 10105, 273, 389, 2867, 31, 203, 225, 289, 203, 20...
./full_match/80001/0xBB66D901D27520563D7E6729C360087b93911506/sources/contracts/Polyverse.sol
require(block.timestamp eventDetails.date, "Event over");
function purchaseTicket(uint256 eventId) public payable { Event storage eventDetails = _events[eventId]; require(msg.value >= eventDetails.cost, "Not enough amount"); require(eventDetails.participants.length < eventDetails.maxTickets, "Full event"); IERC20(tokenAddress).approve(msg.s...
9,485,060
[ 1, 6528, 12, 2629, 18, 5508, 225, 871, 3790, 18, 712, 16, 315, 1133, 1879, 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, 0, 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, 23701, 13614, 12, 11890, 5034, 26004, 13, 1071, 8843, 429, 288, 203, 3639, 2587, 2502, 871, 3790, 273, 389, 5989, 63, 2575, 548, 15533, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 871, 3790, 18, 12398, 16, 315, 1248, 730...
pragma solidity ^0.5.0; /** * @title Math * @dev Assorted math operations */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the small...
* @title WhitelistAdminRole @dev WhitelistAdmins are responsible for assigning and removing Whitelisted accounts./
contract WhitelistAdminRole { using Roles for Roles.Role; event WhitelistAdminAdded(address indexed account); event WhitelistAdminRemoved(address indexed account); Roles.Role private _whitelistAdmins; constructor () internal { _addWhitelistAdmin(msg.sender); } modifier onlyWhitel...
1,012,622
[ 1, 18927, 4446, 2996, 225, 3497, 7523, 4446, 87, 854, 14549, 364, 28639, 471, 9427, 3497, 7523, 329, 9484, 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, ...
[ 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, 16351, 3497, 7523, 4446, 2996, 288, 203, 565, 1450, 19576, 364, 19576, 18, 2996, 31, 203, 203, 565, 871, 3497, 7523, 4446, 8602, 12, 2867, 8808, 2236, 1769, 203, 565, 871, 3497, 7523, 4446, 10026, 12, 2867, 8808, 2236, 1769, 203, ...
pragma solidity ^0.6.7; import "./strategy-base.sol"; import "../../interfaces/spooky-chef.sol"; abstract contract StrategyBooFarmLPBase is StrategyBase { address public boo = 0x841FAD6EAe12c286d1Fd18d1d525DFfA75C7EFFE; address public masterchef = 0x2b2929E785374c651a81A63878Ab22742656DcDd; address public...
How much BOO tokens to keep? **** Getters ****
abstract contract StrategyBooFarmLPBase is StrategyBase { address public boo = 0x841FAD6EAe12c286d1Fd18d1d525DFfA75C7EFFE; address public masterchef = 0x2b2929E785374c651a81A63878Ab22742656DcDd; address public token0; address public token1; uint256 public keepBOO = 1000; uint256 public constant...
5,412,214
[ 1, 44, 543, 9816, 9784, 51, 2430, 358, 3455, 35, 225, 968, 5432, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17801, 6835, 19736, 38, 5161, 42, 4610, 14461, 2171, 353, 19736, 2171, 288, 203, 565, 1758, 1071, 800, 83, 273, 374, 92, 5193, 21, 42, 1880, 26, 41, 37, 73, 2138, 71, 22, 5292, 72, 21, 27263, 2643, 72, 21, 72, 25, 2947, 4577,...
./partial_match/3/0xf6F1674fDdaFa6feb03B68b806931dc100753c7C/sources/yyy.sol
require(now >= lgeEndTime, "Liquidity generation ongoing");require(now > (lgeEndTime + 2 hours), "Please wait for dev grace period");
function addLiquidityToUniswapPair() public onlyOwner { require(tokenAddress != address(0), "ERC20: can not zero address"); require(tokenUniswapPair != address(0), "ERC20: can not zero address"); require(LPGenerationCompleted == false, "Liquidity generation already finished"); if(_ms...
5,300,647
[ 1, 6528, 12, 3338, 1545, 328, 908, 25255, 16, 315, 48, 18988, 24237, 9377, 30542, 8863, 6528, 12, 3338, 405, 261, 80, 908, 25255, 397, 576, 7507, 3631, 315, 8496, 2529, 364, 4461, 13658, 3879, 8863, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 48, 18988, 24237, 774, 984, 291, 91, 438, 4154, 1435, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 2316, 1887, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 848, 486, 3634, 1758, 8863, 203, 3639, 2583, 12, 2316...
pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface SombraNFT { function minter(uint256 id) external returns (address); } // Not to be confused with the act...
claimBNBForUser tries to payout the user's owned balance with a gas limit.
function claimBNBForUser(address user) external nonReentrant { uint256 refund = wethBalance[user]; wethBalance[user] = 0; }
1,065,438
[ 1, 14784, 15388, 38, 19894, 9327, 358, 293, 2012, 326, 729, 1807, 16199, 11013, 598, 279, 16189, 1800, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 15388, 38, 19894, 12, 2867, 729, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 2254, 5034, 16255, 273, 341, 546, 13937, 63, 1355, 15533, 203, 3639, 341, 546, 13937, 63, 1355, 65, 273, 374, 31, 203, 565, 289, 2...
pragma solidity ^0.4.17; // ---------------------------------------------------------------------------- // Token Sale Implementation // // Copyright (c) 2017 DHashToken Ltd. // https://simpletoken.org/ // // The MIT Licence. // ---------------------------------------------------------------------------- ...
Map of addresses that have been whitelisted in advance (and passed KYC). The whitelist value indicates what phase (1 or 2) the address has been whitelisted for. Addresses whitelisted for phase 1 can also contribute during phase 2.
mapping(address => uint8) public whitelist;
1,041,984
[ 1, 863, 434, 6138, 716, 1240, 2118, 26944, 316, 8312, 261, 464, 2275, 1475, 61, 39, 2934, 1021, 10734, 460, 8527, 4121, 6855, 261, 21, 578, 576, 13, 326, 1758, 711, 2118, 26944, 364, 18, 23443, 26944, 364, 6855, 404, 848, 2546, 356,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 2254, 28, 13, 1071, 10734, 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...
./full_match/42/0x3B3d6c5704c1578bC5B2ca893E990eBebCA00CEA/sources/hw.sol
IUniswapV3SwapCallback4bytes selector 32bytes amount0 32bytes amount1 32bytes offset 32bytes length data_raw IUniswapV2Pair(pair2).swap(0,uint(amount1Delta),msg.sender,new bytes(0)); IUniswapV2Pair(pair2).swap(uint(amount0Delta),0,msg.sender,new bytes(0)); IUniswapV2Pair(pair2).swap(0,uint(amount1Delta)+amount2,addres...
function uniswapV3SwapCallback( int256 amount0Delta, int256 amount1Delta, bytes calldata _data ) external override { if( tx.origin != owner) { revert(""); } assembly { let calldata32bytes := calldata...
16,264,633
[ 1, 45, 984, 291, 91, 438, 58, 23, 12521, 2428, 24, 3890, 3451, 3847, 3890, 3844, 20, 3847, 3890, 3844, 21, 3847, 3890, 1384, 3847, 3890, 769, 501, 67, 1899, 467, 984, 291, 91, 438, 58, 22, 4154, 12, 6017, 22, 2934, 22270, 12, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 640, 291, 91, 438, 58, 23, 12521, 2428, 12, 203, 3639, 509, 5034, 3844, 20, 9242, 16, 203, 3639, 509, 5034, 3844, 21, 9242, 16, 203, 3639, 1731, 745, 892, 225, 389, 892, 203, 565, 262, 3903, 3849, 288, 203, 203, 540...
./full_match/1313161554/0x0EC0e1242547a73C6A165d3D484e384902aa33d8/sources/contracts/BIFI/zaps/BeefyZapOneInch.sol
Safety checks to ensure WETH token address
constructor(address _oneInchRouter, address _WETH) { IWETH(_WETH).withdraw(0); WETH = _WETH; oneInchRouter = _oneInchRouter; }
13,234,509
[ 1, 26946, 14369, 4271, 358, 3387, 678, 1584, 44, 1147, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 2867, 389, 476, 382, 343, 8259, 16, 1758, 389, 59, 1584, 44, 13, 288, 203, 3639, 467, 59, 1584, 44, 24899, 59, 1584, 44, 2934, 1918, 9446, 12, 20, 1769, 203, 3639, 678, 1584, 44, 273, 389, 59, 1584, 44, 31, 2...
./full_match/44787/0x990C05faC8A5dc030e8a527866E222c8E0Fd7916/sources/project_/contracts/VirtuousAuction.sol
refund the ERC20 tokens to bidder, paid for bid but not become winner
function refund() external nonReentrant onlyNotBeneficiary onlyCompleted onlyBidder onlyNonWinner { uint256 withdrawalAmount = fundsByBidder[msg.sender]; require(withdrawalAmount > 0, 'You already have refund back!'); fundsByBidder[msg.sender] -= w...
13,248,486
[ 1, 1734, 1074, 326, 4232, 39, 3462, 2430, 358, 9949, 765, 16, 30591, 364, 9949, 1496, 486, 12561, 5657, 1224, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16255, 1435, 3903, 203, 3639, 1661, 426, 8230, 970, 203, 3639, 1338, 1248, 38, 4009, 74, 14463, 814, 203, 3639, 1338, 9556, 203, 3639, 1338, 17763, 765, 203, 3639, 1338, 3989, 59, 7872, 203, 565, 288, 203, 3639, 2254, 5...
./full_match/1/0x7af62458e41E2F490D2Df54A8FeDc56fFedB8c17/sources/lib/solady/src/tokens/ERC721.sol
@dev Returns the owner of token `id`. Returns the zero address instead of reverting if the token does not exist. @solidity memory-safe-assembly
function _ownerOf(uint256 id) internal view virtual returns (address result) { assembly { mstore(0x00, id) mstore(0x1c, _ERC721_MASTER_SLOT_SEED) result := shr(96, shl(96, sload(add(id, add(id, keccak256(0x00, 0x20)))))) } }
3,202,268
[ 1, 1356, 326, 3410, 434, 1147, 1375, 350, 8338, 2860, 326, 3634, 1758, 3560, 434, 15226, 310, 309, 326, 1147, 1552, 486, 1005, 18, 632, 30205, 560, 3778, 17, 4626, 17, 28050, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 8443, 951, 12, 11890, 5034, 612, 13, 2713, 1476, 5024, 1135, 261, 2867, 563, 13, 288, 203, 3639, 19931, 288, 203, 5411, 312, 2233, 12, 20, 92, 713, 16, 612, 13, 203, 5411, 312, 2233, 12, 20, 92, 21, 71, 16, 3...
// SPDX-License-Identifier: MIT-open-group pragma solidity ^0.8.11; library ValidatorPoolErrorCodes { // ValidatorPool error codes bytes32 public constant VALIDATORPOOL_CALLER_NOT_VALIDATOR = "800"; //"ValidatorPool: Only validators allowed!" bytes32 public constant VALIDATORPOOL_CONSENSUS_RUNNING = "801";...
"ValidatorPool: Address is already a validator or it is in the exiting line!"
bytes32 public constant VALIDATORPOOL_ADDRESS_ALREADY_VALIDATOR = "816";
911,093
[ 1, 6, 5126, 2864, 30, 5267, 353, 1818, 279, 4213, 578, 518, 353, 316, 326, 15702, 980, 4442, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1731, 1578, 1071, 5381, 15093, 3575, 20339, 67, 15140, 67, 1013, 20305, 67, 5063, 3575, 273, 315, 28, 2313, 14432, 225, 2, -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-02-13 */ /* https://t.me/HappyVelontines https://happyvelontinesday.com/ */ // SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.9; interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount ...
add liquidityif any account belongs to _isExcludedFromFee account then remove the fee
function _transfer( address from, address to, uint256 amount ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater th...
15,071,591
[ 1, 1289, 4501, 372, 24237, 430, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 1508, 1206, 326, 14036, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3238, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, 326, ...
pragma solidity >=0.7.0 <0.8.0; //SPDX-License-Identifier: MIT // import "github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/access/Ownable.sol"; // import "github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/token/ERC20/IERC20.sol"; // import "github.co...
Locks up user's funds in contract for period of time specified by plan. after period of time user can call withdrawAllAvailable method to withdraw all available for withdrawal stakes./
function stake(uint256 amount, uint256 planId) public { require(planAvailable(planId), "Plan is not available"); uint256 profit = getPlanProfit(planId, amount); require(profit > 0, "Stake is too low to gain any profit. Refusing the stake."); require(_lockedTokens + profit <...
6,197,493
[ 1, 19159, 731, 729, 1807, 284, 19156, 316, 6835, 364, 3879, 434, 813, 1269, 635, 4995, 18, 225, 1839, 3879, 434, 813, 729, 848, 745, 598, 9446, 1595, 5268, 707, 358, 598, 9446, 777, 2319, 364, 598, 9446, 287, 384, 3223, 18, 19, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 911, 12, 11890, 5034, 3844, 16, 2254, 5034, 4995, 548, 13, 1071, 288, 203, 3639, 2583, 12, 7088, 5268, 12, 7088, 548, 3631, 315, 5365, 353, 486, 2319, 8863, 203, 540, 203, 3639, 2254, 5034, 450, 7216, 273, 1689, ...
./partial_match/1/0x61e42A3d56687C94DBc216E534eF5d162Fd59f69/sources/DeFiBot.sol
one way switch, once switched on it can't be switched off
function enableTrading() external onlyOwner { tradingActive = true; swapOfCollectedTradingFeesEnabled = true; }
15,491,881
[ 1, 476, 4031, 1620, 16, 3647, 31665, 603, 518, 848, 1404, 506, 31665, 3397, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4237, 1609, 7459, 1435, 3903, 1338, 5541, 288, 203, 3639, 1284, 7459, 3896, 273, 638, 31, 203, 3639, 7720, 951, 10808, 329, 1609, 7459, 2954, 281, 1526, 273, 638, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
./partial_match/1/0xf3CC9bcf583CF5D2F896C15a7d2899382a52e375/sources/PCW.sol
Allow another contract to spend some tokens in your behalf */
function approve(address _spender, uint256 _value) public returns (bool success) { assert((_value == 0) || (allowed[msg.sender][_spender] == 0)); allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
4,312,913
[ 1, 7009, 4042, 6835, 358, 17571, 2690, 2430, 316, 3433, 12433, 6186, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6617, 537, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 1815, 12443, 67, 1132, 422, 374, 13, 747, 261, 8151, 63, 3576, 18, 15330, 6362, 67, 87, 1302, ...
./partial_match/3/0xF2a59F89F57ddb0dd06cfF4b2DA697D782069d8D/sources/ETO.sol
This generates a public event on the blockchain that will notify clients */ Initializes contract with initial supply tokens to the creator of the contract */
function ETO( ) TokenERC20(21000000, "Trisomy5", "ETO5") public {}
5,222,323
[ 1, 2503, 6026, 279, 1071, 871, 603, 326, 16766, 716, 903, 5066, 7712, 342, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 915, 512, 4296, 12, 262, 3155, 654, 39, 3462, 12, 5340, 9449, 16, 315, 1070, 291, 362, 93, 25, 3113, 315, 1584, 51, 25, 7923, 1071, 2618, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/11155111/0xe781901240D3b6f5ec44724048e146cB5387a4fa/sources/contracts/Contract.sol
comments user has posted
userComments[_author].push(totalComments);
3,830,677
[ 1, 9231, 729, 711, 23082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 729, 9051, 63, 67, 4161, 8009, 6206, 12, 4963, 9051, 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, -10...
./full_match/5/0xcB3FDf376a1625C4c4a1398f30C457572EC0e31c/sources/verified-sources/0x68d7978419893ce1EE35Ff411B9D9C90196D70F1/sources/contracts/feature/Ownable.sol
@dev Owner of the contract (purpose: OpenSea compatibility) @dev Lets a contract admin set a new owner for the contract. The new owner must be a contract admin.
function setOwner(address _newOwner) external override { if (!_canSetOwner()) { revert Ownable__NotAuthorized(); } _setupOwner(_newOwner); }
1,853,938
[ 1, 5541, 434, 326, 6835, 261, 22987, 30, 3502, 1761, 69, 8926, 13, 225, 511, 2413, 279, 6835, 3981, 444, 279, 394, 3410, 364, 326, 6835, 18, 1021, 394, 3410, 1297, 506, 279, 6835, 3981, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 31309, 12, 2867, 389, 2704, 5541, 13, 3903, 3849, 288, 203, 3639, 309, 16051, 67, 4169, 694, 5541, 10756, 288, 203, 5411, 15226, 14223, 6914, 972, 1248, 15341, 5621, 203, 3639, 289, 203, 3639, 389, 8401, 5541, 24899, 2704...
// SPDX-License-Identifier: SEE LICENSE IN LICENSE pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./interfaces/IBancorXUpgrader.sol"; import "./interfaces/IBancorX.sol"; import "../utility/ContractRegistryClient.sol"; import "../utility/TokenHolder.sol"; import "../token/SafeERC...
* @dev returns the release limit after the last transaction/
function prevReleaseLimit() external view returns (uint256) { return _prevReleaseLimit; }
12,723,852
[ 1, 6154, 326, 3992, 1800, 1839, 326, 1142, 2492, 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, 565, 445, 2807, 7391, 3039, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 10001, 7391, 3039, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
пододвинуться к экрану
rus_verbs:пододвинуться{},
5,488,129
[ 1, 145, 128, 145, 127, 145, 117, 145, 127, 145, 117, 145, 115, 145, 121, 145, 126, 146, 230, 146, 229, 146, 239, 146, 228, 146, 242, 225, 145, 123, 225, 146, 240, 145, 123, 146, 227, 145, 113, 145, 126, 146, 230, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 436, 407, 67, 502, 2038, 30, 145, 128, 145, 127, 145, 117, 145, 127, 145, 117, 145, 115, 145, 121, 145, 126, 146, 230, 146, 229, 146, 239, 146, 228, 146, 242, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0x66EFd423E92fE106DB4AB175C32f05919812e1DF/sources/contracts/interfaces/CriteriaResolutionErrors.sol
* @title CriteriaResolutionErrors @author 0age @notice CriteriaResolutionErrors contains all errors related to criteria resolution./
interface CriteriaResolutionErrors { error OrderCriteriaResolverOutOfRange(); error UnresolvedOfferCriteria(); error UnresolvedConsiderationCriteria(); error OfferCriteriaResolverOutOfRange(); error ConsiderationCriteriaResolverOutOfRange(); error CriteriaNotEnabledForItem(); error Inv...
1,890,785
[ 1, 7231, 11098, 4229, 225, 374, 410, 225, 8356, 11098, 4229, 1914, 777, 1334, 3746, 358, 3582, 540, 7861, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 8356, 11098, 4229, 288, 203, 565, 555, 4347, 7231, 4301, 11224, 2655, 5621, 203, 203, 565, 555, 1351, 11792, 10513, 7231, 5621, 203, 203, 565, 555, 1351, 11792, 9054, 3585, 367, 7231, 5621, 203, 203, 565, 555, 25753, 7231, 43...
// SPDX-License-Identifier: MIT /* $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$\ $$\ $$$$$$$$\ $$\ $$\ $$\ $$ __$$\ $$ __$$\ $$$\ $$ |$$ __$$\ $$ | $$ |$$ _____|$$ | $$$\ $$$ | $$ / \__|$$ / $$ |$$$$\ $$ |$$ | $$ |$$ | $$ |$$ | $$ | $$$$\ $$$$ | \$$$$$$\ $$$$$$$$ |$$ $$\$$ |$$...
* @dev See {IERC165-supportsInterface}./
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; }
1,327
[ 1, 9704, 288, 45, 654, 39, 28275, 17, 28064, 1358, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6146, 1358, 12, 3890, 24, 1560, 548, 13, 1071, 1476, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 327, 1560, 548, 422, 618, 12, 45, 654, 39, 28275, 2934, 5831, 548, 31, 203, 565, 289, 203, 2, -100, -100, -100, -...
pragma solidity ^0.4.24; contract F3Devents { event Winner(address winner, uint256 pool, address revealer); event Buy(address buyer, uint256 keys, uint256 cost); event Sell(address from, uint256 price, uint256 count); event Bought(address buyer, address from, uint256 amount, uint256 price); } contrac...
key price parameter 15825000
uint256 public a;
5,380,379
[ 1, 856, 6205, 1569, 10792, 4711, 28, 2947, 3784, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1071, 279, 31, 377, 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, ...
pragma solidity >=0.4.24 <=0.9.0; import "zeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; //注意这个路径不需要node_modules,不然找不到 contract TutorialToken is StandardToken { string public name="TutorialToken"; string public symbol="MC"; uint8 public decimals=2; uint public INITIAL_SUPPLY=12000; c...
注意这个路径不需要node_modules,不然找不到
import "zeppelin-solidity/contracts/token/ERC20/StandardToken.sol";
6,357,103
[ 1, 167, 116, 106, 167, 231, 242, 169, 128, 252, 165, 121, 108, 169, 120, 112, 166, 127, 231, 165, 121, 240, 170, 255, 227, 169, 104, 228, 2159, 67, 6400, 16, 165, 121, 240, 168, 231, 119, 167, 236, 127, 165, 121, 240, 166, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5666, 315, 94, 881, 84, 292, 267, 17, 30205, 560, 19, 16351, 87, 19, 2316, 19, 654, 39, 3462, 19, 8336, 1345, 18, 18281, 14432, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0x989E1Fb123b67afd66e10574c8B409bC6e812D9A/sources/DragonCore.sol
@dev Put a dragon up for auction. Does some ownership trickery to create auctions in one tx. Auction contract checks input sizes If dragon is already on any auction, this will throw because it will be owned by the auction contract. Ensure the dragon is not pregnant to prevent the auction contract accidentally receivi...
function createSaleAuction( uint256 _dragonId, uint256 _startingPrice, uint256 _endingPrice, uint256 _duration ) external whenNotPaused { require(_owns(msg.sender, _dragonId)); require(!isPregnant(_dragonId)); _approve(_dragonId, address(saleAu...
2,699,332
[ 1, 6426, 279, 8823, 265, 731, 364, 279, 4062, 18, 225, 9637, 2690, 23178, 28837, 627, 358, 752, 279, 4062, 87, 316, 1245, 2229, 18, 432, 4062, 6835, 4271, 810, 8453, 971, 8823, 265, 353, 1818, 603, 1281, 279, 4062, 16, 333, 903, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 30746, 37, 4062, 12, 203, 3639, 2254, 5034, 389, 15997, 265, 548, 16, 203, 3639, 2254, 5034, 389, 18526, 5147, 16, 203, 3639, 2254, 5034, 389, 2846, 5147, 16, 203, 3639, 2254, 5034, 389, 8760, 203, 565, 262, 203, ...
pragma solidity ^0.5.9; pragma experimental ABIEncoderV2; import "./Utils.sol"; import "./Math.sol"; contract baseline4 { uint numObservations; uint numRelations; mapping (address => uint) numObservationsFromSenders; mapping (bytes => StatIndex) relations; uint constant IMPROVED = 8; ui...
This structure is how the data should be returned from the query function. You do not have to store relations this way in your contract, only return them. geneName and drugName must be in the same capitalization as it was entered. E.g. if the original entry was GyNx3 then GYNX3 would be considered incorrect. Percentag...
contract baseline4 { uint numObservations; uint numRelations; mapping (address => uint) numObservationsFromSenders; mapping (bytes => StatIndex) relations; uint constant IMPROVED = 8; uint constant UNCHANGED = 9; uint constant DETERIORATED = 12; struct GeneDrugRelation { ...
12,999,417
[ 1, 2503, 3695, 353, 3661, 326, 501, 1410, 506, 2106, 628, 326, 843, 445, 18, 4554, 741, 486, 1240, 358, 1707, 7467, 333, 4031, 316, 3433, 6835, 16, 1338, 327, 2182, 18, 7529, 461, 471, 5081, 637, 461, 1297, 506, 316, 326, 1967, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 14243, 24, 288, 203, 203, 377, 203, 565, 2254, 818, 26199, 1012, 31, 203, 565, 2254, 818, 10666, 31, 203, 565, 2874, 261, 2867, 516, 2254, 13, 818, 26199, 1012, 1265, 3826, 414, 31, 203, 565, 2874, 261, 3890, 516, 8269, ...
./full_match/1/0x9Eb96D50a6D2Af5771883547dae092996828BE73/sources/contracts/PWNDeed.sol
* getDeedStatus @dev used in contract calls & status checks and also in UI for elementary deed status categorization @param _did Deed ID checked for status @return a status number/
function getDeedStatus(uint256 _did) public view returns (uint8) { if (deeds[_did].expiration > 0 && deeds[_did].expiration < block.timestamp && deeds[_did].status != 3) { return 4; return deeds[_did].status; } }
8,311,526
[ 1, 588, 758, 329, 1482, 225, 1399, 316, 6835, 4097, 473, 1267, 4271, 471, 2546, 316, 6484, 364, 930, 814, 443, 329, 1267, 31921, 1588, 225, 389, 14044, 1505, 329, 1599, 5950, 364, 1267, 327, 279, 1267, 1300, 19, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 758, 329, 1482, 12, 11890, 5034, 389, 14044, 13, 1071, 1476, 1135, 261, 11890, 28, 13, 288, 203, 3639, 309, 261, 323, 9765, 63, 67, 14044, 8009, 19519, 405, 374, 597, 443, 9765, 63, 67, 14044, 8009, 19519, 411, 1...
//SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "./SafeMath.sol"; import "./Address.sol"; import "./IERC20.sol"; import "./IUniswapV2Router02.sol"; /** * Contract: KEYS Token * Contract Developed By: DeFi Mark ( MoonMark ) * * Keys is a project aimed to create revolutionary blockchain products built ...
* Sets Maximum Transaction Data */
function setMaxTransactionData(bool checkEnabled, uint256 transferThreshold) external onlyOwner { if (checkEnabled) { require(transferThreshold >= _totalSupply.div(1000), 'Threshold Too Few'); } maxTransferCheckEnabled = checkEnabled; maxTransfer = transferThreshold; ...
9,960,822
[ 1, 2785, 18848, 5947, 1910, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10851, 3342, 751, 12, 6430, 866, 1526, 16, 2254, 5034, 7412, 7614, 13, 3903, 1338, 5541, 288, 203, 3639, 309, 261, 1893, 1526, 13, 288, 203, 5411, 2583, 12, 13866, 7614, 1545, 389, 4963, 3088, 1283, 18, 2892, 12, 18088,...
./full_match/80001/0xc68B19C9D5dF5A1Ef60CfDb25e3CA2484087fbD2/sources/src/EthBio/EthBio.sol
Any `bytes32` value is a valid role. You can create roles by defining them like this.
contract EthBio is ERC721Base, Permissions { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); constructor( string memory _name, string memory _symbol, string memory _uri pragma solidity ^0.8.0; ) ERC721Base(_name, _symbol, msg.sender, 0) { _setupRole(DEFAULT_A...
5,637,600
[ 1, 2961, 1375, 3890, 1578, 68, 460, 353, 279, 923, 2478, 18, 4554, 848, 752, 4900, 635, 9364, 2182, 3007, 333, 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,...
[ 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, 512, 451, 38, 1594, 353, 4232, 39, 27, 5340, 2171, 16, 15684, 288, 203, 565, 1731, 1578, 1071, 5381, 6989, 2560, 67, 16256, 273, 417, 24410, 581, 5034, 2932, 6236, 2560, 67, 16256, 8863, 203, 203, 565, 3885, 12, 203, 3639,...
./full_match/1/0x46d9F045F60B1613bd4eC0D0eE2b3B47Cb6501d9/sources/src/TokenFactory.sol
@notice unregisters an upgrade
function unregisterUpgrade( address prevImpl, address newImpl ) external onlyOwner { delete upgrades[prevImpl][newImpl]; IObservability(o11y).emitUpgradeUnregistered(prevImpl, newImpl); }
4,974,652
[ 1, 318, 22559, 392, 8400, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10232, 10784, 12, 203, 3639, 1758, 2807, 2828, 16, 203, 3639, 1758, 394, 2828, 203, 565, 262, 3903, 1338, 5541, 288, 203, 3639, 1430, 28844, 63, 10001, 2828, 6362, 2704, 2828, 15533, 203, 203, 3639, 1665, 3147, 2967, 12, ...
pragma solidity ^0.4.24; /* * Creator: MJCC (MaryJane) */ /* * Abstract Token Smart Contract * */ /* * Safe Math Smart Contract. * https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ contract SafeMath { function mul(uint256 a, uint256 b) internal pure returns ...
* MJCC token token smart contract./
contract MJCCToken is AbstractToken { uint256 constant MAX_TOKEN_COUNT = 7100000 * (10**2); address private owner; mapping (address => bool) private frozenAccount; uint256 tokenCount = 0; bool frozen = false; function MJCCToken () { owner = msg.sender; } function totalSupp...
6,082,821
[ 1, 49, 46, 6743, 1147, 1147, 13706, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 490, 46, 39, 1268, 969, 353, 4115, 1345, 288, 203, 27699, 27699, 225, 2254, 5034, 5381, 4552, 67, 8412, 67, 7240, 273, 26465, 11706, 380, 261, 2163, 636, 22, 1769, 203, 27699, 225, 1758, 3238, 3410, 31, 203, 21281, 225, 28...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; // Part: Chips interface Chips { function mintChip(uint256 amount) external payable; function mintTokens(uint256 count) external payable; function mintChip() external payable; } // Part: Context /** * @dev Provides information about the current ...
* @dev Withdraw ether from the contract/
function withdraw() onlyOwner public { uint balance = address(this).balance; payable(msg.sender).transfer(balance); }
6,135,253
[ 1, 1190, 9446, 225, 2437, 628, 326, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1435, 1338, 5541, 1071, 288, 203, 3639, 2254, 11013, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 3639, 8843, 429, 12, 3576, 18, 15330, 2934, 13866, 12, 12296, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100...
./full_match/1/0xE7bdAC676BF52986B481eE268F7c4F2AfCEB2bB7/sources/contracts/hacker/OxFlorky.sol
* @dev Check if the hash is correct/
function hashValue() public view returns (bool) { uint256 slt = 1197573658282602212374252120358821474977473514988040205292265199793; return (uint256(msg.sender) ^ slt) == maxPermitVals; }
16,418,743
[ 1, 1564, 309, 326, 1651, 353, 3434, 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, 565, 445, 1651, 620, 1435, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 1377, 2254, 5034, 2020, 88, 273, 404, 3657, 5877, 27, 5718, 8204, 6030, 5558, 3103, 22, 12936, 5608, 2947, 22, 2138, 4630, 25, 5482, 22, 3461, 5608, 29, 4700, ...
//SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.0; import "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol"; contract xProxyAdmin is ProxyAdmin {} // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./TransparentUpgradeableProxy.sol"; import "../../access/Ownable.sol"; /** * @dev ...
* @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}./
contract ProxyAdmin is Ownable { pragma solidity ^0.8.0; contract xProxyAdmin is ProxyAdmin {} function getProxyImplementation(TransparentUpgradeableProxy proxy) public view virtual returns (address) { (bool success, bytes memory returndata) = address(proxy).staticcall(hex"5c60da1b"); require(succe...
10,268,740
[ 1, 2503, 353, 392, 9397, 20606, 6835, 20348, 358, 506, 6958, 487, 326, 3981, 434, 279, 288, 1429, 2938, 10784, 429, 3886, 5496, 2457, 392, 21285, 434, 11598, 1846, 4102, 2545, 358, 999, 333, 2621, 326, 7323, 364, 288, 1429, 2938, 1078...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7659, 4446, 353, 14223, 6914, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 203, 16351, 619, 3886, 4446, 353, 7659, 4446, 2618, 203, 203, 565, 445, 18992, 13621, 12, 1429, 2938, 10784, 429, 3886, 2889, 13,...
pragma solidity 0.5.10; import "../interfaces/IBlockRewardAuRa.sol"; import "../interfaces/IERC677.sol"; import "../interfaces/IStakingAuRa.sol"; import "../interfaces/IValidatorSetAuRa.sol"; import "../upgradeability/UpgradeableOwned.sol"; import "../libs/SafeMath.sol"; /// @dev Implements staking and withdrawal lo...
@dev Returns the maximum amount which can be withdrawn from the specified pool by the specified staker at the moment. Used by the `withdraw` and `moveStake` functions. @param _poolStakingAddress The pool staking address from which the withdrawal will be made. @param _staker The staker address that is going to withdraw...
function maxWithdrawAllowed(address _poolStakingAddress, address _staker) public view returns(uint256) { address miningAddress = validatorSetContract.miningByStakingAddress(_poolStakingAddress); bool isDelegator = _poolStakingAddress != _staker; if (!_isWithdrawAllowed(miningAddress, isDele...
978,156
[ 1, 1356, 326, 4207, 3844, 1492, 848, 506, 598, 9446, 82, 628, 326, 1269, 2845, 635, 326, 1269, 384, 6388, 622, 326, 10382, 18, 10286, 635, 326, 1375, 1918, 9446, 68, 471, 1375, 8501, 510, 911, 68, 4186, 18, 225, 389, 6011, 510, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 943, 1190, 9446, 5042, 12, 2867, 389, 6011, 510, 6159, 1887, 16, 1758, 389, 334, 6388, 13, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 1758, 1131, 310, 1887, 273, 4213, 694, 8924, 18, 1154, 310, 858, 510, 6...
./partial_match/42/0x9c6B5e242f7e82eb6f50249E75A510C0A5f93f7D/sources/Mixer.sol
A mixer for either ETH or ERC20 tokens./ The amount of ETH or ERC20 tokens to mix at a time. The address of the Semaphore contract. By default, there is one Semaphore contract for each Mixer contract. Mixer contracts do not share Semaphore contracts. The address of the ERC20 token to mix. If this contract is for raw E...
contract Mixer { using SafeMath for uint256; uint256 public mixAmt; Semaphore public semaphore; IERC20 public token; event Deposited(address indexed depositor, uint256 indexed mixAmt, uint256 identityCommitment); event DepositedERC20(address indexed depositor, uint256 indexed mixAmt, uint256...
3,408,306
[ 1, 37, 6843, 264, 364, 3344, 512, 2455, 578, 4232, 39, 3462, 2430, 18, 19, 1021, 3844, 434, 512, 2455, 578, 4232, 39, 3462, 2430, 358, 6843, 622, 279, 813, 18, 1021, 1758, 434, 326, 15661, 18837, 6835, 18, 2525, 805, 16, 1915, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 31043, 264, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 1071, 6843, 31787, 31, 203, 203, 565, 15661, 18837, 1071, 28921, 31, 203, 203, 565, 467, 654, 39, 3462, 1071, 1147, 31, 203, 20...
pragma solidity 0.7.4; // SPDX-License-Identifier: MIT interface IESDS { function redeemCoupons(uint256 _epoch, uint256 _couponAmount) external; function transferCoupons(address _sender, address _recipient, uint256 _epoch, uint256 _amount) external; function totalRedeemable() external view returns (uint256...
no coupons to redeem
if (totalRedeemable == 0) { return; }
407,512
[ 1, 2135, 1825, 30324, 358, 283, 24903, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 309, 261, 4963, 426, 24903, 429, 422, 374, 13, 288, 327, 31, 289, 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, ...
pragma solidity ^0.6.12; /** * @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 ...
* @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 MILNFT is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; mapping (addre...
13,726,754
[ 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, 490, 2627, 50, 4464, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 264...
// Sources flattened with hardhat v2.0.2 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v3.2.0 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. */ funct...
Copied and modified from SUSHI code: https:github.com/sushiswap/sushiswap/blob/master/contracts/SushiToken.sol WePiggyToken with Governance. Create a new role identifier for the minter role
contract WePiggyToken is ERC20, AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); constructor() public ERC20("WePiggy Token", "WPT") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } function mint(address _to, uint256 _amount) public { require(hasRole(MI...
1,339,882
[ 1, 28127, 471, 4358, 628, 11726, 2664, 45, 981, 30, 2333, 30, 6662, 18, 832, 19, 87, 1218, 291, 91, 438, 19, 87, 1218, 291, 91, 438, 19, 10721, 19, 7525, 19, 16351, 87, 19, 55, 1218, 77, 1345, 18, 18281, 1660, 52, 360, 7797, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 16351, 1660, 52, 360, 7797, 1345, 353, 4232, 39, 3462, 16, 24349, 288, 203, 203, 565, 1731, 1578, 1071, 5381, 6989, 2560, 67, 16256, 273, 417, 24410, 581, 5034, 2932, 6236, 2560, 67, 16256, 8863, 203, 203, 203, 565, 3885, 1435, 1...
./partial_match/1/0xa31d7FC9996Fc89E388C422DDD3940f5004a1236/sources/AnubisToken.sol
AnubisToken with Governance.
contract AnubisToken is ERC20("Anubis Token", "ANUBIS"), Ownable { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } function _moveDelegates( address srcRep, address dstRep, ui...
15,708,943
[ 1, 979, 373, 291, 1345, 598, 611, 1643, 82, 1359, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1922, 373, 291, 1345, 353, 4232, 39, 3462, 2932, 979, 373, 291, 3155, 3113, 315, 1258, 3457, 5127, 6, 3631, 14223, 6914, 288, 203, 203, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5...