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/4/0xA26bBa276a8CC2295A95321465272B9813618b92/sources/browser/LiquidityTransformer.sol
* @notice checks for callers total investment amount (with bonus) @return total amount invested across all investment days (with bonus)/
function myTotalInvestmentAmount() external view returns (uint256) { return investorTotalBalance[msg.sender]; }
687,058
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4271, 364, 19932, 2078, 2198, 395, 475, 3844, 261, 1918, 324, 22889, 13, 632, 2463, 2078, 3844, 2198, 3149, 10279, 777, 2198, 395, 475, 4681, 261, 1918, 324, 22889, 13176, 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, 0, 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, 3399, 5269, 3605, 395, 475, 6275, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 2198, 395, 280, 5269, 13937, 63, 3576, 18, 15330, 15533, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100...
(* NewVotingSystem.sol Created by Takumi Furusho on 2022/01/24 Copyright (c) 2022 Takumi Furusho *) pragma solidity ^0.8.11; contract NewVoting { //ๅญฆ็”Ÿใ‚นใƒˆใƒฉใ‚ฏใƒˆ struct Student { bool Orvoted; //ๆŠ•็ฅจใ—ใŸใ‹ใฉใ†ใ‹ trueใชใ‚‰3ๅ›žๆŠ•็ฅจๆธˆใฟ ๅˆๆœŸๅ€คใฏfalse uint Weight; //ๆŠ•็ฅจๅ›žๆ•ฐ ๅˆๆœŸๅ€คใฏ0 string VoteName;...
ๅ€™่ฃœ่€…ใƒชใ‚นใƒˆใซใ‚ใ‚‹ๅๅ‰ใ‹ใฉใ†ใ‹ใƒใ‚งใƒƒใ‚ฏ
require(ValidCandidate(student17));
12,713,859
[ 1, 4625, 348, 7953, 560, 30, 225, 166, 227, 252, 169, 101, 255, 169, 227, 232, 164, 230, 108, 164, 229, 122, 164, 230, 235, 164, 228, 109, 164, 228, 229, 164, 229, 238, 166, 243, 240, 166, 236, 240, 164, 228, 238, 164, 228, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 2583, 12, 1556, 11910, 12, 26240, 4033, 10019, 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/0x82a7b5842085f434c6584A8c44b6A1C15c25a512/sources/contracts/Pool.sol
Validate duration */
if (duration > durations_[0]) revert UnsupportedLoanDuration();
9,659,181
[ 1, 4625, 348, 7953, 560, 30, 225, 3554, 3734, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 309, 261, 8760, 405, 23920, 67, 63, 20, 5717, 15226, 7221, 1504, 304, 5326, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity =0.8.6; import "./GMsDerivativeBase.sol"; contract GenerativemasksGirl is GMsDerivativeBase { constructor( string memory baseURI, address _derivedFrom ) GMsDerivativeBase( "Generativemasks Girl", "GMGIRL", baseURI, ...
* @notice Allow a GMs token holder to bulk mint tokens with id of their GMs tokens' id @param tokenIds Ids to be minted/ If no reserved allowance we respect total supply contraint To avoid wasting gas we want to check all preconditions beforehand If reserved allowance is active we track mints count
function multiMintWithGMsTokenIds(uint256[] memory tokenIds) public payable virtual nonReentrant { uint256 maxTokensToMint = tokenIds.length; require(maxTokensToMint <= MAX_MULTI_MINT_AMOUNT, "GMsPass:TOO_LARGE"); require( (reservedAllowance == 0 && mintedCount + maxTokensToMint ...
12,077,803
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 7852, 279, 611, 6947, 1147, 10438, 358, 8280, 312, 474, 2430, 598, 612, 434, 3675, 611, 6947, 2430, 11, 612, 632, 891, 1147, 2673, 29085, 358, 506, 312, 474, 329, 19, 971, 1158, 8735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3309, 49, 474, 1190, 43, 6947, 1345, 2673, 12, 11890, 5034, 8526, 3778, 1147, 2673, 13, 1071, 8843, 429, 5024, 1661, 426, 8230, 970, 288, 203, 3639, 2254, 5034, 943, 5157, 774, 49, 474, 273, 1147, 2673, 18, 2469, 31, ...
./partial_match/42/0x70a3A1d0F1B57FD0cf1274427f0c2443D8445fe6/sources/pseudoFlashloanAttack1.sol
address[] daiUsdcPath; Are these needed? address[] undUsdcPath; Are these needed? _addresses[0] = _und, _addresses[1] = _usdc, _addresses[2] = _dai, _addresses[3] = _uniswapRouter, _addresses[4] = _unboundLLC, _addresses[5] = _usdcDaiPool
contract pseudoFlashloanAttack1 { IUniswapV2Router02 uniswapRouter; IUniswapV2Pair USDCDAIPair; IERC20_2 und; IERC20_2 usdc; IERC20_2 dai; UnboundLLC unboundLLC; address router; address usdcAddr; address daiAddr; address undAddr; address LLCAddr; address owner; ...
8,986,612
[ 1, 4625, 348, 7953, 560, 30, 225, 1758, 8526, 5248, 77, 3477, 7201, 743, 31, 225, 12520, 4259, 3577, 35, 1758, 8526, 22927, 3477, 7201, 743, 31, 225, 12520, 4259, 3577, 35, 389, 13277, 63, 20, 65, 273, 389, 1074, 16, 389, 13277, 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, 16351, 12454, 11353, 383, 304, 3075, 484, 21, 288, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 640, 291, 91, 438, 8259, 31, 203, 565, 467, 984, 291, 91, 438, 58, 22, 4154, 11836, 5528, 9793, 2579, 1826, 31, 203, 565...
// SPDX-License-Identifier: MIT /** โˆฉ~~~~โˆฉ ฮพ ๏ฝฅร—๏ฝฅ ฮพ ฮพใ€€~ใ€€ฮพ ฮพใ€€ใ€€ ฮพ ฮพใ€€ใ€€ โ€œ~๏ฝž~๏ฝžใ€‡ ฮพใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ ฮพ ฮพ ฮพ ฮพ~๏ฝž~ฮพ ฮพ ฮพ ใ€€ ฮพ_ฮพฮพ_ฮพใ€€ฮพ_ฮพฮพ_ฮพ Alpaca Fin Corporation */ pragma solidity 0.6.6; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "@openzeppelin/contracts-ethereum-package/contr...
@dev Return the entitied LP token balance for the given shares. @param share The number of shares to be converted to LP balance.
function shareToBalance(uint256 share) public view returns (uint256) { (uint256 totalBalance, , ) = wexMaster.userInfo(pid, address(this)); return share.mul(totalBalance).div(totalShare); }
12,640,244
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2000, 326, 3281, 305, 2092, 511, 52, 1147, 11013, 364, 326, 864, 24123, 18, 632, 891, 7433, 1021, 1300, 434, 24123, 358, 506, 5970, 358, 511, 52, 11013, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 7433, 774, 13937, 12, 11890, 5034, 7433, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 261, 11890, 5034, 2078, 13937, 16, 269, 262, 273, 341, 338, 7786, 18, 1355, 966, 12, 6610, 16, 1758, 12, 2211, 10019, ...
/** * The contract defining the contest, allowing participation and voting. * Participation is only possible before the participation deadline. * Voting is only allowed after the participation deadline was met and before the voting deadline expires. * As soon as voting is over, the contest may be closed, resultig in th...
* only callable by referee. in case he disqualified the wrong participant /
function requalify(address candidate){ if(msg.sender==referee) disqualified[candidate]=false; }
2,251,416
[ 1, 4625, 348, 7953, 560, 30, 380, 1338, 4140, 635, 8884, 1340, 18, 316, 648, 3904, 1015, 19724, 326, 7194, 14188, 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, ...
[ 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, 915, 283, 3369, 1164, 12, 2867, 5500, 15329, 203, 430, 12, 3576, 18, 15330, 631, 266, 586, 1340, 13, 203, 2251, 19724, 63, 19188, 65, 33, 5743, 31, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.23; import "./IRegistry.sol"; contract Delegate { /** * This should be set to something like keccak256("org.myorg.delegate.registry") in * order to provide a unique storage position for the data. */ public bytes32 registryPosition; /** * This should be set to something like kec...
* This should be set to something like keccak256("org.myorg.delegate.registry") in order to provide a unique storage position for the data./* This should be set to something like keccak256("org.myorg.delegate.key") in order to provide a unique storage position for the data./
function getRegistry() public view returns (address impl) { bytes32 position = registryPosition; assembly { impl := sload(position) } }
6,394,374
[ 1, 4625, 348, 7953, 560, 30, 380, 1220, 1410, 506, 444, 358, 5943, 3007, 417, 24410, 581, 5034, 2932, 3341, 18, 4811, 3341, 18, 22216, 18, 9893, 7923, 316, 1353, 358, 5615, 279, 3089, 2502, 1754, 364, 326, 501, 18, 20308, 1220, 1410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29675, 1435, 1071, 1476, 1135, 261, 2867, 9380, 13, 288, 203, 565, 1731, 1578, 1754, 273, 4023, 2555, 31, 203, 565, 19931, 288, 203, 1377, 9380, 519, 272, 945, 12, 3276, 13, 203, 565, 289, 203, 225, 289, 203, 203, 2, ...
// File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg...
* burns $TOKE from a holder @param from the holder of the $TOKE @param amount the amount of $TOKE to burn/
function burn(address from, uint256 amount) external override { require(admins[msg.sender], "Only admins can burn"); _burn(from, amount); }
12,133,046
[ 1, 4625, 348, 7953, 560, 30, 380, 18305, 87, 271, 56, 3141, 41, 628, 279, 10438, 632, 891, 628, 326, 10438, 434, 326, 271, 56, 3141, 41, 632, 891, 3844, 326, 3844, 434, 271, 56, 3141, 41, 358, 18305, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 18305, 12, 2867, 628, 16, 2254, 5034, 3844, 13, 3903, 3849, 288, 203, 202, 202, 6528, 12, 3666, 87, 63, 3576, 18, 15330, 6487, 315, 3386, 31116, 848, 18305, 8863, 203, 202, 202, 67, 70, 321, 12, 2080, 16, 3844, 1769, ...
./partial_match/42/0x2251831ab66d5330F25437B101E89871cf9B60DE/sources/Staking.sol
uint256 rewarded_minutes = 0; uint256 temp_var = 0; uint256 poolShare = 0; for (uint256 i = 0; i < months; i++) { uint256 minutes_iterated = 30 * 1440 * i; totalTime = SafeMath.sub(totalTime, rewarded_minutes); if (hours_staked >= minutes_iterated) { rewarded_minutes = SafeMath.sub(SafeMath.add(30 ...
function monthlyAllocation(uint256 stakedTime, uint256 withdrawTime) public { }
8,917,774
[ 1, 4625, 348, 7953, 560, 30, 225, 2254, 5034, 283, 11804, 67, 17916, 273, 374, 31, 2254, 5034, 1906, 67, 1401, 273, 374, 31, 2254, 5034, 2845, 9535, 273, 374, 31, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 8846, 31, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31114, 17353, 12, 11890, 5034, 384, 9477, 950, 16, 2254, 5034, 598, 9446, 950, 13, 1071, 225, 288, 203, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0xC45dEceBD7606203bF1C9e1a06185bcbA827B5b3/sources/contracts/ERC721ARoyalty.sol
* @dev Referenced @openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721RoyaltyUpgradeable.sol/
abstract contract ERC721ARoyalty is Initializable, ERC2981Upgradeable, ERC721AQueryableUpgradeable { function __Royalty_init() internal onlyInitializing { } function __Royalty_init_unchained() internal onlyInitializing { } function supportsInterface(bytes4 interfaceId) public view virtual overrid...
16,454,057
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6268, 72, 632, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 17, 15097, 429, 19, 2316, 19, 654, 39, 27, 5340, 19, 9489, 19, 654, 39, 27, 5340, 54, 13372, 15006, 10784, 429, 18, 18281, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17801, 6835, 4232, 39, 27, 5340, 985, 13372, 15006, 353, 10188, 6934, 16, 4232, 39, 5540, 11861, 10784, 429, 16, 4232, 39, 27, 5340, 37, 1138, 429, 10784, 429, 225, 288, 203, 203, 565, 445, 1001, 54, 13372, 15006, 67, 2738, 1435,...
./full_match/42/0x905Baf3d5740A9833f15ECDd23AB1781D700b0c5/sources/browser/tests/Uni2SuShi.sol
wethaddr = wethAddr;
constructor() payable public { owner = msg.sender; uniswapV2Router02 = IUniswapV2Router02(addressUniswapV2Router); suShiswapV2Router02 = IUniswapV2Router02(addressSuShiswapV2Router); }
16,234,552
[ 1, 4625, 348, 7953, 560, 30, 341, 546, 4793, 273, 341, 546, 3178, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 1435, 8843, 429, 1071, 288, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 3639, 640, 291, 91, 438, 58, 22, 8259, 3103, 273, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 12, 2867, 984, 291, 91, 438, 58, 22, 8259, ...
./full_match/84531/0xA7182bA284b49F737aF5F4698CA90491e75C7d1e/sources/contracts/SaraleMachains.sol
Add all relevant signatures and execute the contract Set the signatures Set the vows hashes Execute the contract
function officiate( bytes memory _brideSignature, bytes memory _groomSignature, bytes memory _witnessOneSignature, bytes memory _witnessTwoSignature, bytes memory _brideVowsHash, bytes memory _groomVowsHash ) public { require(msg.sender == officiant, "Only...
11,516,418
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 777, 9368, 14862, 471, 1836, 326, 6835, 1000, 326, 14862, 1000, 326, 331, 543, 87, 9869, 7903, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 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, 3397, 335, 3840, 12, 203, 3639, 1731, 3778, 389, 70, 566, 323, 5374, 16, 203, 3639, 1731, 3778, 389, 75, 13924, 5374, 16, 203, 3639, 1731, 3778, 389, 91, 9746, 3335, 5374, 16, 203, 3639, 1731, 3778, 389, 91, 9746, 117...
pragma solidity 0.4.25; /** * * Easy Investment Contract * - GAIN 6% PER 24 HOURS (every 5900 blocks) * - NO COMMISSION on your investment (every ether stays on contract's balance) * - NO FEES are collected by the owner, in fact, there is no owner at all (just look at the code) * * How to use: * 1. Send an...
get investors address
function getInvestor() public constant onlyInvestor returns(address) { return investor; }
6,061,974
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 2198, 395, 1383, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3605, 395, 280, 1435, 1071, 5381, 1338, 3605, 395, 280, 1135, 12, 2867, 13, 225, 288, 203, 3639, 327, 2198, 395, 280, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.18; // ---------------------------------------------------------------------------- // 'Satochi 4 test token' token contract // // Deployed to : 0x5c89AC486F41c1fAA41A0889063FaF57A010e344 // Symbol : chi4 // Name : Satochi 4 token // Total supply: 10000000 // Decimals : 18 // // Enj...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract Satochi4 is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function Satochi4() public { symbol = "chi4";...
18,479
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 25793, 9842, 77, 24, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4...
pragma solidity ^0.5.8; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./BetterPayBase.sol"; contract BetterPayEscrow is BetterPayBase { using SafeMath for uint256; event EscrowStarted(bytes32 indexed manifest, bytes32 digest); event PaymentReceived(bytes32 indexed manifest, uint256 amount, addres...
check to see if target amount is met with balance
function confirmedTargetAmount(bytes32 _manifest) public view returns (bool) { Escrow storage escrow = escrows[_manifest]; return escrow.balance == escrow.targetAmount; }
14,048,273
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 358, 2621, 309, 1018, 3844, 353, 5100, 598, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 19979, 2326, 6275, 12, 3890, 1578, 389, 14357, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 1135, 261, 6430, 13, 203, 225, 288, 203, 565, 512, 1017, 492, 2502, 2904, 492, 273, 2904, 3870, 63, 67, 14357, 15533, 203, 5...
./partial_match/137/0x9390c94B7891f0247d5645528590AF4e8c118B49/sources/MinerManager.sol
We'll shift so the high bit is the lowest non-fractional bit.
shift = high_bit - int88(REAL_FBITS);
3,529,205
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 5614, 4654, 1427, 326, 3551, 2831, 353, 326, 11981, 1661, 17, 16744, 287, 2831, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4654, 273, 3551, 67, 3682, 300, 509, 5482, 12, 31052, 67, 22201, 10158, 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, -...
./partial_match/1/0x1110F204B1586befbC352882f79872Bc2dE147bF/sources/PrivateBet.sol
date limite pour parier (date UNIX / EPOC)
uint32 betDeadlineTime;
9,365,235
[ 1, 4625, 348, 7953, 560, 30, 225, 1509, 1800, 73, 24601, 779, 2453, 261, 712, 23160, 342, 512, 2419, 39, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 1578, 565, 2701, 15839, 950, 31, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division ...
ๅˆ็บฆ็Šถๆ€ๆฃ€ๆŸฅ๏ผšlive็Šถๆ€ใ€็ฎก็†ๅ‘˜ๆˆ–่€…ๆต‹่ฏ•ไบบๅ‘˜ไธๅ—้™ๅˆถ
modifier onlyLiveMode() { require(mode == Modes.LIVE || msg.sender == ceoAddress || msg.sender == cooAddress || msg.sender == cfoAddress); _; }
15,360,819
[ 1, 4625, 348, 7953, 560, 30, 225, 166, 243, 235, 168, 123, 104, 168, 237, 119, 167, 227, 228, 167, 101, 227, 167, 258, 103, 176, 125, 253, 16472, 168, 237, 119, 167, 227, 228, 164, 227, 228, 168, 111, 99, 168, 243, 233, 166, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 9606, 1338, 12328, 2309, 1435, 288, 203, 3639, 2583, 12, 3188, 422, 490, 1145, 18, 2053, 3412, 747, 1234, 18, 15330, 422, 276, 4361, 1887, 747, 1234, 18, 15330, 422, 1825, 83, 1887, 747, 1234, 18, 15330, 422, 276, 617, 1887,...
pragma solidity ^0.5.7; // Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20 interface ERC20Token { /** * @notice send `_value` token to `_to` from `msg.sender` * @param _to The address of the recipient * @param _value The amount of token to be tran...
* @dev Initialize contract (used with proxy). Can only be called once @param _fallbackArbitrator Default arbitrator to use after timeout on solving arbitrations @param _relayer EscrowRelay contract address @param _arbitratorLicenses License contract instance address for arbitrators @param _metadataStore MetadataStore c...
function init( address _fallbackArbitrator, address _relayer, address _arbitratorLicenses, address _metadataStore, address payable _feeDestination, uint _feeMilliPercent ) external { assert(_initialized == false); _initialized = true; fal...
1,798,006
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9190, 6835, 261, 3668, 598, 2889, 2934, 4480, 1338, 506, 2566, 3647, 632, 891, 389, 16471, 686, 3682, 86, 639, 2989, 10056, 86, 639, 358, 999, 1839, 2021, 603, 3704, 6282, 10056, 86, 1012...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 12, 203, 3639, 1758, 389, 16471, 686, 3682, 86, 639, 16, 203, 3639, 1758, 389, 2878, 1773, 16, 203, 3639, 1758, 389, 297, 3682, 86, 639, 48, 16548, 16, 203, 3639, 1758, 389, 4165, 2257, 16, 203, 3639, 1758, 8843...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC20/IERC20.sol"; import "./access/Ownable.sol"; import "./utils/math/SafeMath.sol"; import "./utils/math/Math.sol"; import "./IOnMint.sol"; /** * @title RewardVesting * @dev The vesting contract for the initial mint rewards */ contract RewardVesti...
@notice Event emitted when a new grant is created
event GrantAdded(address indexed recipient, uint256 indexed amount, uint256 startTime, uint16 vestingDurationInDays, uint16 vestingCliffInDays);
12,870,346
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2587, 17826, 1347, 279, 394, 7936, 353, 2522, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 19689, 8602, 12, 2867, 8808, 8027, 16, 2254, 5034, 8808, 3844, 16, 2254, 5034, 8657, 16, 2254, 2313, 331, 10100, 5326, 382, 9384, 16, 2254, 2313, 331, 10100, 2009, 3048, 382, 9384, 1769, 203, 2, -100, -100, -100, -100, ...
pragma solidity ^0.4.0; contract ERC20Constant { function totalSupply() constant returns (uint supply); function balanceOf( address who ) constant returns (uint value); function allowance(address owner, address spender) constant returns (uint _allowance); } contract ERC20Stateful { function transfer( a...
user buys token with ETH
function buy() payable { id+=1; User[id] = Userdata(msg.sender, msg.value); if(sellsTokens || msg.sender == owner) { uint order = msg.value / sellPrice; uint can_sell = ERC20(asset).balanceOf(address(this)) / units; if(order > can_sell) ...
930,417
[ 1, 4625, 348, 7953, 560, 30, 729, 25666, 1900, 1147, 598, 512, 2455, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30143, 1435, 8843, 429, 288, 203, 3639, 612, 15, 33, 21, 31, 203, 3639, 2177, 63, 350, 65, 273, 2177, 892, 12, 3576, 18, 15330, 16, 1234, 18, 1132, 1769, 203, 203, 3639, 309, 12, 87, 1165, 87, 5157, 747, 1234, 18, ...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "../event/EventEmitter.sol"; import "../treasury/Treasury.sol"; import "../voting/Voting.sol"; /** @title ValidatorRegistry @...
Approve and release tokens to treasuryClear listing data and remove from tracking array
if (listing.status == Status.PENDING) { kosuToken.approve(address(treasury), listing.stakedBalance); treasury.releaseTokens(msg.sender, listing.stakedBalance); _removeListing(listing); return; } listing.status = Status.EXITING; listing....
13,030,704
[ 1, 4625, 348, 7953, 560, 30, 1716, 685, 537, 471, 3992, 2430, 358, 9787, 345, 22498, 9094, 11591, 501, 471, 1206, 628, 11093, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 21228, 18, 2327, 422, 2685, 18, 25691, 13, 288, 203, 5411, 417, 538, 89, 1345, 18, 12908, 537, 12, 2867, 12, 27427, 345, 22498, 3631, 11591, 18, 334, 9477, 13937, 1769, 203, 5411, 9787, 345, 22498, 18, 9340, 5157,...
pragma solidity ^0.4.25; import "./WEBasicAuth.sol"; import "./BaseAccountInterface.sol"; import "./BaseAccount.sol"; contract BaseAccount is BaseAccountInterface, WEBasicAuth { address public _accountManager; // 0-normal, 1-frozen, 2-closed uint8 public _status = 0; modifier onlyAccountManager() { ...
0-normal, 1-frozen, 2-closed
contract BaseAccount is BaseAccountInterface, WEBasicAuth { address public _accountManager; uint8 public _status = 0; modifier onlyAccountManager() { require( msg.sender == _accountManager, "BaseAccount: only account manager." ); _; } modifier onlyNo...
2,530,801
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 17, 6130, 16, 404, 17, 28138, 16, 576, 17, 12204, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3360, 3032, 353, 3360, 3032, 1358, 16, 13880, 22827, 288, 203, 565, 1758, 1071, 389, 4631, 1318, 31, 203, 565, 2254, 28, 1071, 389, 2327, 273, 374, 31, 203, 203, 565, 9606, 1338, 3032, 1318, 1435, 288, 203, 3639, 2583, 12,...
// Dependency file: @openzeppelin/contracts/GSN/Context.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they...
Creation time: Use this field to determine the draw time
uint256 date;
433,506
[ 1, 4625, 348, 7953, 560, 30, 225, 18199, 813, 30, 2672, 333, 652, 358, 4199, 326, 3724, 813, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 1509, 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,...
pragma solidity ^0.5.2; library SafeMath { function MUL349(uint256 a, uint256 b) internal pure returns (uint256) { //inject NONSTANDARD NAMING // Gas optimization: this is cheaper than requiring 'a' not being zero, but the...
inject NONSTANDARD NAMING
function TRANSFERFROM635(address from, address to, uint256 value) public returns (bool) {
1,088,881
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4235, 17598, 11249, 4449, 25, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 460, 13, 1071, 1135, 261, 6430, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "../../interfaces/sushi/ISushiBar.sol"; import "../PowerIndexBasicRouter.sol"; contract SushiPowerIndexRouter is PowerIndexBasicRouter { event Stake(address indexed sender, uint256 amount); event Redeem(address index...
* @notice Get the amount of SUSHI tokens SushiBar will release in exchange of the given xSUSHI tokens @param _xSushi The input amount of xSUSHI tokens @return The corresponding amount of SUSHI tokens/
function getSushiForXSushi(uint256 _xSushi) public view returns (uint256) { return _xSushi.mul(SUSHI.balanceOf(staking)) / IERC20(staking).totalSupply(); }
1,004,644
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 326, 3844, 434, 11726, 2664, 45, 2430, 348, 1218, 77, 5190, 903, 3992, 316, 7829, 434, 326, 864, 619, 6639, 2664, 45, 2430, 632, 891, 389, 92, 55, 1218, 77, 1021, 810, 3844, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 225, 445, 1322, 1218, 77, 1290, 60, 55, 1218, 77, 12, 11890, 5034, 389, 92, 55, 1218, 77, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 389, 92, 55, 1218, 77, 18, 16411, 12, 6639, 2664, 45, 18, 12296, 951, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "./imports.sol"; /* Bonus token for holders of any PAC DAO NFT */ contract PACDaoBonus1 is ERC721Enumerable { /* VARIABLES */ uint256 public currentId; address payable public beneficiary; address[] private _tokenAddrs; mapping(address => ...
* @dev Transfer ownership to new admin/
function updateBeneficiary(address payable _newBeneficiary) public { require(msg.sender == beneficiary, "Not owner"); beneficiary = _newBeneficiary; }
6,358,132
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12279, 23178, 358, 394, 3981, 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, 1089, 38, 4009, 74, 14463, 814, 12, 2867, 8843, 429, 389, 2704, 38, 4009, 74, 14463, 814, 13, 1071, 7010, 565, 288, 1082, 203, 202, 6528, 12, 3576, 18, 15330, 422, 27641, 74, 14463, 814, 16, 315, 1248, 3410, 8863, 203...
/** *Submitted for verification at Etherscan.io on 2022-04-24 */ //-------------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 u...
* @dev check if token id is tradeable @param tokenId token id/
function isTokenTradeable(uint256 tokenId) public view returns (bool) { require(exists(tokenId), "Token ID does not exist!"); return tokenTradingStatus[tokenId] == 255; }
2,142,186
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 866, 309, 1147, 612, 353, 18542, 429, 632, 891, 1147, 548, 1147, 612, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 1345, 22583, 429, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 1808, 12, 2316, 548, 3631, 315, 1345, 1599, 1552, 486, 1005, 4442, 1769, 203, 3639, 327, 1147, 1609, 7459...
pragma solidity ^0.4.24; pragma experimental ABIEncoderV2; import "openzeppelin-solidity/contracts/AddressUtils.sol"; import "./CvcPricingInterface.sol"; import "../idv/CvcValidatorRegistryInterface.sol"; import "../ontology/CvcOntologyInterface.sol"; import "../upgradeability/Initializable.sol"; import "../upgradeabi...
* @dev Saves price value. @param _id The price ID. @param _value The price value./ Save the price (convert to special zero representation value if necessary). prices[_id].value = (_value == 0) ? ZERO_PRICE : _value;
function setPriceValue(bytes32 _id, uint256 _value) internal { uintStorage[keccak256(abi.encodePacked("prices.", _id, ".value"))] = (_value == 0) ? ZERO_PRICE : _value; }
973,353
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 348, 6606, 6205, 460, 18, 632, 891, 389, 350, 1021, 6205, 1599, 18, 632, 891, 389, 1132, 1021, 6205, 460, 18, 19, 7074, 326, 6205, 261, 6283, 358, 4582, 3634, 4335, 460, 309, 4573, 2934...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 5147, 620, 12, 3890, 1578, 389, 350, 16, 2254, 5034, 389, 1132, 13, 2713, 288, 203, 3639, 2254, 3245, 63, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 2932, 683, 1242, 1199, 16, 389, 350, 16, 3552, 1132,...
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.7.6; import {IUniswapV3Factory} from '@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol'; import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol'; import {Hypervisor} from './Hypervisor.sol'; contract HypervisorFactory is Ownable { I...
update fess for inclusion in total pool amounts
function deposit( uint256 deposit0, uint256 deposit1, address to ) external override returns (uint256 shares) { require(deposit0 > 0 || deposit1 > 0, "deposits must be nonzero"); require(deposit0 < deposit0Max || deposit1 < deposit1Max, "deposits must be less than maximum...
11,966,684
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 284, 403, 364, 26485, 316, 2078, 2845, 30980, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 443, 1724, 12, 203, 3639, 2254, 5034, 443, 1724, 20, 16, 203, 3639, 2254, 5034, 443, 1724, 21, 16, 203, 3639, 1758, 358, 203, 565, 262, 3903, 3849, 1135, 261, 11890, 5034, 24123, 13, 288, 203, 3639, 2583, 12, 323, 172...
./partial_match/56/0xB5ea085BbbA63A2106809421391d584D88B5d5c3/sources/xWinFund.sol
@dev perform redemption based on unit redeemstart to transfer back to investor based on the targets
function Redeem( xWinLib.TradeParams memory _tradeParams, address _investorAddress ) external onlyxWinProtocol payable returns (uint256){ uint256 redeemratio = _tradeParams.amount.mul(1e18).div(totalSupply()); require(redeemratio > 0, "redeem ratio is zero"); ...
11,164,699
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 3073, 283, 19117, 375, 2511, 603, 2836, 283, 24903, 1937, 358, 7412, 1473, 358, 2198, 395, 280, 2511, 603, 326, 5774, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 868, 24903, 12, 203, 3639, 619, 18049, 5664, 18, 22583, 1370, 3778, 389, 20077, 1370, 16, 203, 3639, 1758, 389, 5768, 395, 280, 1887, 203, 565, 262, 3903, 1338, 92, 18049, 5752, 8843, 429, 1135, 261, 11890, 5034, 15329, ...
//Address: 0xce82a09f24d3a3b70a8b68572672322064095290 //Contract name: HoldSaleContract //Balance: 0 Ether //Verification Date: 12/11/2017 //Transacion Count: 2 // CODE STARTS HERE pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { ...
Addresses and contracts
contract HoldSaleContract is Ownable { using SafeMath for uint256; OpportyToken public OppToken; struct Holder { bool isActive; uint tokens; uint holdPeriodTimestamp; bool withdrawed; } mapping(address => Holder) public holderList; mapping(uint => address) private holderIndexes; mapping...
895,023
[ 1, 4625, 348, 7953, 560, 30, 225, 23443, 471, 20092, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 670, 1673, 30746, 8924, 353, 14223, 6914, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 6066, 655, 93, 1345, 1071, 6066, 84, 1345, 31, 203, 203, 225, 1958, 670, 1498, 288, 203, 565, 1426, 15083, 31, 203...
./full_match/80001/0x342b89F8920Dbf3725bFbFE5d0afc2b99E618c40/sources/project_/contracts/superfluid/FullUpgradableSuperTokenProxy.sol
* @dev Full upgradable super token proxy/ web3.utils.keccak256("org.superfluid-finance.FullUpgradableSuperTokenWrapper.factory_slot")
contract FullUpgradableSuperTokenProxy is Proxy { bytes32 internal constant _FACTORY_SLOT = 0xb8fcd5719b3ddf8626f3664705a89b7fc476129a58c1aa5eda57c600cc1821a0; function initialize() external pragma solidity 0.7.6; import { ISuperTokenFactory } from "../interfaces/superfluid/ISuperTokenFactory.sol"; import { P...
9,541,627
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11692, 731, 9974, 429, 2240, 1147, 2889, 19, 3311, 23, 18, 5471, 18, 79, 24410, 581, 5034, 2932, 3341, 18, 9565, 2242, 1911, 17, 926, 1359, 18, 5080, 1211, 9974, 429, 8051, 1345, 3611, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 11692, 1211, 9974, 429, 8051, 1345, 3886, 353, 7659, 288, 203, 203, 565, 1731, 1578, 2713, 5381, 389, 16193, 67, 55, 1502, 56, 273, 374, 6114, 28, 74, 4315, 10321, 3657, 70, 23, 449, 74, 5292, 5558, 74, 5718, 30792, 6260, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; // The goal of this game is to be the 7th player to deposit 1 Ether. // Players can deposit only 1 Ether at a time. // Winner will be able to withdraw all Ether. /* 1. Deploy EtherGame 2. Players (say Alice and Bob) decides to play, deposits 1 Ether each. 2. Dep...
You can simply break the game by sending ether so that the game balance >= 7 ether cast address to payable
function attack() public payable { address payable addr = payable(address(etherGame)); selfdestruct(addr); }
1,002,936
[ 1, 4625, 348, 7953, 560, 30, 225, 4554, 848, 8616, 898, 326, 7920, 635, 5431, 225, 2437, 1427, 716, 326, 7920, 11013, 1545, 2371, 225, 2437, 4812, 1758, 358, 8843, 429, 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, 565, 445, 13843, 1435, 1071, 8843, 429, 288, 203, 203, 3639, 1758, 8843, 429, 3091, 273, 8843, 429, 12, 2867, 12, 2437, 12496, 10019, 203, 3639, 365, 5489, 8813, 12, 4793, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100...
./partial_match/42/0x079C1F0F60a9aF3bA6080f784bf76a93cf8c0505/sources/EtherCollateralpUSD.sol
check msg.sender has sufficient pUSD to pay Check loan exists and is open Any interest accrued prior is rolled up into loan amount repay any accrued interests first and repay principal loan amount with remaining amounts burn pUSD from msg.sender for repaid amount Send interest paid to fee pool and record loan amount p...
function repayLoan( address _loanCreatorsAddress, uint256 _loanID, uint256 _repayAmount ) external ETHRateNotInvalid { systemStatus().requireSystemActive(); require(IERC20(address(pynthpUSD())).balanceOf(msg.sender) >= _repayAmount, "Not enough pUSD balance"); P...
3,317,227
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 1234, 18, 15330, 711, 18662, 293, 3378, 40, 358, 8843, 2073, 28183, 1704, 471, 353, 1696, 5502, 16513, 4078, 86, 5957, 6432, 353, 28693, 731, 1368, 28183, 3844, 2071, 528, 1281, 4078, 86, 5957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2071, 528, 1504, 304, 12, 203, 3639, 1758, 389, 383, 304, 1996, 3062, 1887, 16, 203, 3639, 2254, 5034, 389, 383, 304, 734, 16, 203, 3639, 2254, 5034, 389, 266, 10239, 6275, 203, 565, 262, 3903, 512, 2455, 4727, 1248, ...
./full_match/80001/0xBd4679848bfe37255f273A2d07328FdB6F9ffc51/sources/StakeAllNfts.sol
function to view the currenct rewardsPerhours
function viewRewardsPerHour() public view returns (uint256) { return rewardsPerHour; }
875,537
[ 1, 4625, 348, 7953, 560, 30, 225, 445, 358, 1476, 326, 662, 1187, 299, 283, 6397, 2173, 16814, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1476, 17631, 14727, 2173, 13433, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 283, 6397, 2173, 13433, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.so...
Claim all pending personal rewards. Calculate rewards for all held tokens.
function calculateAvailableRewards( address recipient ) external view returns (uint256 reward) { reward = _unclaimedPersonalRewards[recipient]; uint256 numTokens = _token.balanceOf(recipient); for (uint256 i = 0; i < numTokens; i++) { uint256 tokenId = _token.tokenOf...
14,070,140
[ 1, 4625, 348, 7953, 560, 30, 225, 18381, 777, 4634, 17816, 283, 6397, 18, 9029, 283, 6397, 364, 777, 15770, 2430, 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, ...
[ 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, 445, 4604, 5268, 17631, 14727, 12, 203, 3639, 1758, 8027, 203, 565, 262, 3903, 1476, 1135, 261, 11890, 5034, 19890, 13, 288, 203, 3639, 19890, 273, 389, 551, 80, 4581, 329, 8346, 287, 17631, 14727, 63, 20367, 15533, 203, 203, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.10; abstract contract OG { function ownerOf(uint256 tokenId) public virtual view returns (address); function tokenOfOwnerByIndex(address owner, uint256 index) public virtual view returns (uint256); function balanceOf(address owner) external virtual view re...
settingspricesmaxmintsharestoken
contract BeardBears is ERC721Enumerable, Ownable, Payment, Guard { using Strings for uint256; string public baseURI; OG private og; uint256 public maxSupply = 10000; bool public OGStatus = false; bool public whitelistStatus = false; bool public whitelist2Status = false; bool public publicStatus = f...
6,129,247
[ 1, 4625, 348, 7953, 560, 30, 1947, 683, 1242, 1896, 81, 474, 674, 8945, 969, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 4823, 1060, 1919, 5913, 353, 4232, 39, 27, 5340, 3572, 25121, 16, 14223, 6914, 16, 12022, 16, 22809, 288, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 565, 533, 1071, 1026, 3098, 31, 203, 203, 565, 531, 43, 3238, 22128,...
// Abstract contract for the full ERC 20 Token standard //@ create by m-chain jerry pragma solidity ^0.4.8; contract Token { uint256 public totalSupply; function balanceOf(address _owner) constant returns (uint256 balance); function transfer(address _to, uint256 _value) returns (bool success); ...
Set the symbol for display purposes
symbol = "CBN";
10,655,730
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 326, 3273, 364, 2562, 13694, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3273, 273, 315, 8876, 50, 14432, 27573, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/3/0x49882825aDA7e758dd2dc4818aBB714D7365D6e5/sources/contracts/faucet0.sol
Give out ether to anyone who asks Limit withdrawal amount
function withdraw(uint withdraw_amount) public { require(withdraw_amount <= 1000000000000000000); if(msg.sender==me){ msg.sender; } }
8,274,332
[ 1, 4625, 348, 7953, 560, 30, 225, 22374, 596, 225, 2437, 358, 1281, 476, 10354, 6827, 87, 7214, 598, 9446, 287, 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, ...
[ 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, 445, 598, 9446, 12, 11890, 598, 9446, 67, 8949, 13, 1071, 288, 203, 3639, 2583, 12, 1918, 9446, 67, 8949, 1648, 2130, 12648, 12648, 1769, 203, 3639, 309, 12, 3576, 18, 15330, 631, 3501, 15329, 203, 5411, 1234, 18, 15330, 31,...
/** *Submitted for verification at Etherscan.io on 2021-02-07 */ // // ,-..-. .-. _______ ,--, ,---. .---. .-. .-. // |(|| \| ||__ __|.' .' | .-.\ / .-. ) | |/\| | // (_)| | | )| | | | __ | `-'/ | | |(_)| / \ | // | || |\ | (_) | \ \ ( _)| ( | | | | | /\ | // | || | |)| | | \ ...
* @dev Performs a batch deposit, asking for an additional fee payment./ sanity checks
function batchDeposit( bytes calldata pubkeys, bytes calldata withdrawal_credentials, bytes calldata signatures, bytes32[] calldata deposit_data_roots ) external payable whenNotPaused { require(msg.value % 1 gwei == 0, "BatchDeposit: Deposit value not multiple of ...
8,064,914
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 27391, 279, 2581, 443, 1724, 16, 29288, 364, 392, 3312, 14036, 5184, 18, 19, 16267, 4271, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2581, 758, 1724, 12, 203, 3639, 1731, 745, 892, 5634, 2452, 16, 203, 3639, 1731, 745, 892, 598, 9446, 287, 67, 11687, 16, 203, 3639, 1731, 745, 892, 14862, 16, 203, 3639, 1731, 1578, 8526, 745, 892, 443, 1724, 67, 892...
pragma solidity ^0.4.25; /** * * SmartLotto.in * * Fair lottery smart contract with random determination of winning tickets * * * 1 ticket is jackpot winning ticket and get 10% of the contract balance * 5 tickets are first prize winnings tickets and get 5% of the contract balance * 10% of all ticke...
for all numbers in var make calculations get random generated won ticket number if ticket already won than add 1 ticket to numbers ticket not won yet mark ticket as won search player record to add ticket winnings search max MAX_TICKETS_PER_TX (250 tickets) if player record found read player from storage add ticket pri...
function calculateWonTickets(uint256 numbers, uint256 prize) private { for (uint256 n = 0; n < numbers; n++) { uint256 wonTicketNumber = random(n); if (ticketsWons[wonTicketNumber].won == 1) { numbers = numbers.add(1); ticketsWons[wonTicketNumber].won = 1; for (uint256 i = 0; i ...
15,784,667
[ 1, 4625, 348, 7953, 560, 30, 225, 364, 777, 5600, 316, 569, 1221, 20882, 336, 2744, 4374, 8462, 9322, 1300, 309, 9322, 1818, 8462, 2353, 527, 404, 9322, 358, 5600, 9322, 486, 8462, 4671, 2267, 9322, 487, 8462, 1623, 7291, 1409, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4604, 59, 265, 6264, 2413, 12, 11890, 5034, 5600, 16, 2254, 5034, 846, 554, 13, 3238, 288, 203, 3639, 364, 261, 11890, 5034, 290, 273, 374, 31, 290, 411, 5600, 31, 290, 27245, 288, 203, 5411, 2254, 5034, 8462, 13614, ...
./full_match/1/0xF4c47dacFda99bE38793181af9Fd1A2Ec7576bBF/sources/lib/pt-v5-draw-auction/src/abstract/RngAuctionRelayer.sol
@notice Emitted when recipient is zero
error RewardRecipientIsZeroAddress();
3,145,098
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 512, 7948, 1347, 8027, 353, 3634, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1636, 534, 359, 1060, 18241, 2520, 7170, 1887, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.24; /** *This contracts helps clone factories and swaps through the Deployer.sol and MasterDeployer.sol. *The address of the targeted contract to clone has to be provided. */ contract CloneFactory { /*Variables*/ address internal owner; /*Events*/ event CloneCreated(address i...
*@notice Allows a user to become DDA members if they pay the fee. However, they still have to completecomplete KYC/AML verification off line@dev This creates and transfers the token to the msg.sender/
function requestMembership() public payable { Member storage sender = members[msg.sender]; require(msg.value >= memberFee && sender.membershipType == 0 ); membersAcctsIndex[msg.sender] = membersAccts.length; membersAccts.push(msg.sender); sender.memberId = membersAccts.length...
6,426,500
[ 1, 4625, 348, 7953, 560, 30, 380, 36, 20392, 25619, 279, 729, 358, 12561, 463, 9793, 4833, 309, 2898, 8843, 326, 14036, 18, 10724, 16, 2898, 4859, 1240, 358, 2302, 30433, 3544, 1475, 61, 39, 19, 7982, 11805, 3397, 980, 36, 5206, 122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 590, 13447, 1435, 1071, 8843, 429, 288, 203, 3639, 8596, 2502, 5793, 273, 4833, 63, 3576, 18, 15330, 15533, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 3140, 14667, 597, 5793, 18, 19679, 559, 422, 374, 11272, 203, 3639, ...
pragma solidity ^0.6.0; // SPDX-License-Identifier: MIT /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when d...
View function to see pending SUSHIs on frontend.
function pendingSushi(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accSushiPerShare = pool.accSushiPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); ...
14,924,313
[ 1, 4625, 348, 7953, 560, 30, 225, 4441, 445, 358, 2621, 4634, 11726, 2664, 2520, 603, 15442, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4634, 55, 1218, 77, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, ...
/** *Submitted for verification at Etherscan.io on 2022-03-09 */ // Sources flattened with hardhat v2.6.4 https://hardhat.org // File @openzeppelin/contracts-upgradeable/access/[emailย protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to su...
File contracts/utils/DAOContract.sol*/
contract DAOContract { Controller public dao; address public avatar; INameService public nameService; function stakeDAI(uint256 amount) external; function withdrawStake() external; function stakers(address staker) external view returns (Staker memory); } } } } } } } } } } @dev interface for AAVE l...
10,733,651
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 20092, 19, 5471, 19, 18485, 8924, 18, 18281, 5549, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 463, 20463, 8924, 288, 203, 202, 2933, 1071, 15229, 31, 203, 203, 202, 2867, 1071, 16910, 31, 203, 203, 202, 45, 461, 1179, 1071, 508, 1179, 31, 203, 203, 202, 915, 384, 911, 9793, 45, 12, 11890, 5034, 3844, 13, 3903, 31...
pragma solidity 0.4.24; contract IMigrationContract { function migrate(address addr, uint256 nas) public returns (bool success); } /* taking ideas from FirstBlood token */ contract SafeMath { function safeAdd(uint256 x, uint256 y) internal pure returns(uint256) { uint256 z = x + y; assert((z ...
@dev sends ETH to BUGX team
function transferETH() isOwner external { require (address(this).balance != 0); require (ethFundDeposit.send(address(this).balance)); }
10,801,670
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9573, 512, 2455, 358, 10937, 43, 60, 5927, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1584, 44, 1435, 353, 5541, 3903, 288, 203, 3639, 2583, 261, 2867, 12, 2211, 2934, 12296, 480, 374, 1769, 203, 3639, 2583, 261, 546, 42, 1074, 758, 1724, 18, 4661, 12, 2867, 12, 2211, 2934, 12296, 10019, 203, 565, ...
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721) // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //To be a valid smart contract, we need to implement all methods of ERC-721 standard import "@openzeppelin/contracts/token/ERC721/ERC721.s...
counts how many NFTs we mint
import "@openzeppelin/contracts/utils/Counters.sol";
12,549,692
[ 1, 4625, 348, 7953, 560, 30, 6880, 3661, 4906, 423, 4464, 87, 732, 312, 474, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5666, 8787, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 5471, 19, 18037, 18, 18281, 14432, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.5.17; import {DepositLiquidation} from "./DepositLiquidation.sol"; import {DepositUtils} from "./DepositUtils.sol"; import {DepositFunding} from "./DepositFunding.sol"; import {DepositRedemption} from "./DepositRedemption.sol"; import {DepositStates} from "./DepositStates.sol"; import {ITBTCSystem} f...
@notice Get caller's ETH withdraw allowance. @dev Generally ETH is only available to withdraw after the deposit reaches a closed state. The amount reported is for the sender, and can be withdrawn using `withdrawFunds` if the deposit is in an end state. @return The withdraw allowance in wei.
function withdrawableAmount() external view returns (uint256) { return self.getWithdrawableAmount(); }
1,004,493
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 968, 4894, 1807, 512, 2455, 598, 9446, 1699, 1359, 18, 632, 5206, 3055, 1230, 512, 2455, 353, 1338, 2319, 358, 598, 9446, 1839, 326, 443, 1724, 1377, 30093, 279, 4375, 919, 18, 1021, 384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 598, 9446, 429, 6275, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 365, 18, 588, 1190, 9446, 429, 6275, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "./lib/SafeMath.sol"; import "./lib/Address.sol"; import "./lib/SafeERC20.sol"; import "./lib/OwnableUpgradeSafe.sol"; import "./lib/IXAUToken.sol"; import "./lib/IERC20.sol"; // Vault distributing incoming elastic token rewards equally amongst staked po...
View function to see pending reward tokens on frontend.
function pendingToken(uint256 _pid, address _user) public view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accRewardPerShare = pool.accRewardPerShare; return rewardToken.fromUn...
5,358,335
[ 1, 4625, 348, 7953, 560, 30, 225, 4441, 445, 358, 2621, 4634, 19890, 2430, 603, 15442, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4634, 1345, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, ...
./full_match/3/0x801Ee9eCec644688784b832455fF7dC78e29832B/sources/Contract2.sol
add paper to the author User memory user = users(_authorAddress);
users[_authorAddress].postedPapers.push(papers[_paperID]);
8,140,597
[ 1, 4625, 348, 7953, 560, 30, 225, 527, 15181, 358, 326, 2869, 225, 2177, 3778, 729, 273, 3677, 24899, 4161, 1887, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3677, 63, 67, 4161, 1887, 8009, 2767, 329, 52, 438, 414, 18, 6206, 12, 84, 438, 414, 63, 67, 27400, 734, 19226, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/3/0xE2F67bcEDb4532A1C26BB7B15ADbc64AaE0925F9/sources/contracts/LoanManager.sol
guarda quantos Loans jรก foram criados na vida do contrato
uint public loansEverCreated;
8,251,887
[ 1, 4625, 348, 7953, 560, 30, 225, 11026, 69, 10251, 538, 3176, 634, 525, 132, 99, 364, 301, 19990, 18739, 9583, 18339, 69, 741, 16252, 31093, 203, 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, 225, 2254, 1071, 437, 634, 41, 502, 6119, 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, -10...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ECDSA.sol"; import "./Ownable.sol"; import "./Context.sol"; import "./SafeMath.sol"; import "./Token.sol"; import "./VerifySignature.sol"; contract Rewards is Context, Ownable { using SafeMath for uint256; struct RewardClaim { /* Account Key...
Total Rewarded (All Games)
uint256 private _totalRewarded;
14,727,440
[ 1, 4625, 348, 7953, 560, 30, 225, 10710, 534, 359, 17212, 261, 1595, 611, 753, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 3238, 389, 4963, 17631, 17212, 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,...
./full_match/43114/0xa0818B489F85579d9C29d75b95B239418c9d8687/sources/EagleToken.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private MAXCAP; uint256 constant...
4,521,369
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, ...
/* SPDX-License-Identifier: MIT */ pragma solidity ^0.7.6; pragma experimental ABIEncoderV2; /** * @author Publius * @title Mock Upgrade Facet **/ contract MockUpgradeFacet { function woohoo() public pure returns (uint256) { return 1; } }
* @author Publius @title Mock Upgrade Facet/
contract MockUpgradeFacet { SPDX-License-Identifier: MIT function woohoo() public pure returns (uint256) { return 1; } }
5,524,225
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 4161, 453, 440, 8384, 632, 2649, 7867, 17699, 31872, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7867, 10784, 11137, 288, 203, 203, 11405, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 203, 203, 565, 445, 341, 5161, 76, 5161, 1435, 1071, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 404, 31, 203, 565, 289, 203,...
./partial_match/56/0x6504054006b8eBbA35893879F8B9b462aB9E5c80/sources/ConfigurableInterestVaultConfig.sol
* @dev Initializes the contract setting the deployer as the initial owner./
function __Ownable_init(address _own) internal initializer { __Context_init_unchained(); __Ownable_init_unchained(_own); }
11,223,097
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 326, 6835, 3637, 326, 7286, 264, 487, 326, 2172, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1001, 5460, 429, 67, 2738, 12, 2867, 389, 995, 13, 2713, 12562, 288, 203, 3639, 1001, 1042, 67, 2738, 67, 4384, 8707, 5621, 203, 3639, 1001, 5460, 429, 67, 2738, 67, 4384, 8707, 24899, 995, 1769, 203, 565, 289, 203, 2...
/** *Submitted for verification at Etherscan.io on 2021-11-21 */ // File: contracts/common/Initializable.sol pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } } // File: contr...
Checks for payment. Grab a reference to the bitkoi parent Make sure enough time has passed since the last time this fish was bred Grab a reference to the second parent Make sure enough time has passed since the last time this bitkoi was bred Test that these bitkoi are a valid mating pair. All checks passed, smoosh 'em...
function breedWith(uint256 _parent1Id, uint256 _parent2Id) external payable whenNotPaused { require(msg.value >= breedFee); require(_owns(msg.sender, _parent1Id)); require(_owns(msg.sender, _parent2Id)); BitKoi storage parent1 = bitKoi[_parent1Id]; ...
2,415,376
[ 1, 4625, 348, 7953, 560, 30, 225, 13074, 364, 5184, 18, 17150, 279, 2114, 358, 326, 2831, 79, 11359, 982, 4344, 3071, 7304, 813, 711, 2275, 3241, 326, 1142, 813, 333, 284, 1468, 1703, 324, 1118, 17150, 279, 2114, 358, 326, 2205, 982...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 324, 15656, 1190, 12, 11890, 5034, 389, 2938, 21, 548, 16, 2254, 5034, 389, 2938, 22, 548, 13, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 1347, 1248, 28590, 203, 565, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 1...
./full_match/5/0x53DF11345f27a8a3237a9993b8DFE333293f0F5e/sources/contracts/V2_-_Refactored/TaskManager.sol
Description of the task Contribution weight Timestamps Worker Completion Parent Campaign & Project (contains IDs)
struct Task { string metadata; uint256 weight; uint256 reward; bool paid; uint256 creationTime; uint256 deadline; address payable worker; Submission submission; bool closed; uint256 parentProject; }
11,607,988
[ 1, 4625, 348, 7953, 560, 30, 225, 6507, 434, 326, 1562, 735, 4027, 3119, 8159, 87, 11016, 20735, 9520, 17820, 473, 5420, 261, 12298, 7115, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 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, 1958, 3837, 288, 203, 3639, 533, 1982, 31, 203, 3639, 2254, 5034, 3119, 31, 203, 3639, 2254, 5034, 19890, 31, 203, 3639, 1426, 30591, 31, 203, 3639, 2254, 5034, 6710, 950, 31, 203, 3639, 2254, 5034, 14096, 31, 203, 3639, 175...
./partial_match/1/0x8281f2bECfF37326Eb6cBE33527434611558B031/sources/TreasuryModule.sol
obtain relevant bundle info obtain relevant token for product/riskpool pair TODO consider to introduce withdrawal fees ideally symmetrical reusing capital fee spec for riskpool
function processWithdrawal(uint256 bundleId, uint256 amount) external override whenNotSuspended instanceWalletDefined riskpoolWalletDefinedForBundle(bundleId) onlyRiskpoolService returns( uint256 feeAmount, uint256 netAmount ) { ...
4,153,986
[ 1, 4625, 348, 7953, 560, 30, 225, 7161, 9368, 3440, 1123, 7161, 9368, 1147, 364, 3017, 19, 86, 10175, 6011, 3082, 2660, 5260, 358, 16658, 311, 598, 9446, 287, 1656, 281, 10572, 1230, 15108, 287, 283, 9940, 12872, 14036, 857, 364, 1840...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 1190, 9446, 287, 12, 11890, 5034, 3440, 548, 16, 2254, 5034, 3844, 13, 7010, 3639, 3903, 3849, 203, 3639, 1347, 1248, 55, 22942, 203, 3639, 791, 16936, 8116, 203, 3639, 18404, 6011, 16936, 8116, 1290, 3405, 12, 9991...
./full_match/1/0x7C0f84E9Dc6F721de21D51A490dE6E370fa01cd6/sources/contracts/strategies/CubanApeStrategy.sol
[renDOGE, MATIC, AAVE, SUSHI, AXS, INJ, ALCX]
uint256[] public weights;
3,008,835
[ 1, 4625, 348, 7953, 560, 30, 225, 306, 1187, 3191, 7113, 16, 490, 11781, 16, 432, 26714, 16, 11726, 2664, 45, 16, 29539, 55, 16, 2120, 46, 16, 7981, 39, 60, 65, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 8526, 1071, 5376, 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, ...
./full_match/42220/0xdEBe38061Db542E8c2AF2427a312f70816965E93/sources/project:/contracts/governance/LockedGold.sol
* Revokes amount during unlocking. It will revoke votes from voted proposals if necessary. @param delegator The delegator account. @param amountToRevoke The amount to revoke./
function revokeFromDelegatedWhenUnlocking(address delegator, uint256 amountToRevoke) private { address[] memory delegatees = getDelegateesOfDelegator(delegator); Delegated storage delegated = delegatorInfo[delegator]; for (uint256 i = 0; i < delegatees.length; i = i.add(1)) { DelegatedInfo storage...
16,325,557
[ 1, 4625, 348, 7953, 560, 30, 380, 14477, 601, 281, 3844, 4982, 7186, 310, 18, 2597, 903, 18007, 19588, 628, 331, 16474, 450, 22536, 309, 4573, 18, 632, 891, 11158, 639, 1021, 11158, 639, 2236, 18, 632, 891, 3844, 774, 29196, 1021, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 18007, 1265, 15608, 690, 9434, 7087, 310, 12, 2867, 11158, 639, 16, 2254, 5034, 3844, 774, 29196, 13, 3238, 288, 203, 565, 1758, 8526, 3778, 7152, 281, 273, 18531, 4784, 281, 951, 15608, 639, 12, 3771, 1332, 639, 1769, ...
/* Copyright (C) 2020 NexusMutual.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 program is distribu...
* @dev Update dependent contract address @dev Implements MasterAware interface function/
function changeDependentContractAddress() public { nxmToken = NXMToken(master.tokenAddress()); tokenController = TokenController(master.getLatestAddress("TC")); quotation = Quotation(master.getLatestAddress("QT")); mcr = MCR(master.getLatestAddress("MC")); }
2,577,832
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2315, 10460, 6835, 1758, 632, 5206, 29704, 13453, 10155, 1560, 445, 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, 225, 445, 2549, 18571, 8924, 1887, 1435, 1071, 288, 203, 565, 9264, 81, 1345, 273, 29569, 49, 1345, 12, 7525, 18, 2316, 1887, 10663, 203, 565, 1147, 2933, 273, 3155, 2933, 12, 7525, 18, 588, 18650, 1887, 2932, 15988, 7923, 1769, ...
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import { SignatureChecker } from "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol"; import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract DataToChain { struct UserInfo { uint256 userId; ...
Stores a new value in the contract
function store(uint256 userId,uint256 parentId,uint256 lockeBalance,uint256 assetsBalance,uint256 changeBalance,bytes memory signature) public { require(userId != 0,"DataToChain: userId cannt be zero"); require(userIdMapAddress[userId] == address(0),"DataToChain:userId Have imported"); requi...
1,276,807
[ 1, 4625, 348, 7953, 560, 30, 225, 20296, 455, 279, 394, 460, 316, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1707, 12, 11890, 5034, 6249, 16, 11890, 5034, 11582, 16, 11890, 5034, 2176, 73, 13937, 16, 11890, 5034, 7176, 13937, 16, 11890, 5034, 2549, 13937, 16, 3890, 3778, 3372, 13, 1071, 288, 203, 3639, 2583, 12, 18991, 480, 374,...
./full_match/1/0xE45B64EcF5fB3b00e30ff39FBA68a2d42869462a/sources/contracts/tokens/Ichigo.sol
If any account belongs to _isExcludedFromFee account then remove the fee Buy Sell
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...
17,001,278
[ 1, 4625, 348, 7953, 560, 30, 225, 971, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 1508, 1206, 326, 14036, 605, 9835, 348, 1165, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 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, ...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol'; /// @title SignedAllowance with claimedBitMap /// @author Simon Fremaux (@dievardump) / Adam Fuller (@azf20) /// Original: https://github.com/dievardump/signed-minting/blob/main/contracts/SignedAllowa...
@notice Internal function to set an index as claimed @param index the index
function _setClaimed(uint256 index) private { uint256 claimedWordIndex = index / 256; uint256 claimedBitIndex = index % 256; claimedBitMap[claimedWordIndex] = claimedBitMap[claimedWordIndex] | (1 << claimedBitIndex); }
12,887,682
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3186, 445, 358, 444, 392, 770, 487, 7516, 329, 632, 891, 770, 326, 770, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 542, 9762, 329, 12, 11890, 5034, 770, 13, 3238, 288, 203, 3639, 2254, 5034, 7516, 329, 3944, 1016, 273, 770, 342, 8303, 31, 203, 3639, 2254, 5034, 7516, 329, 5775, 1016, 273, 770, 738, 8303, 31, 203, 3639, 7516, ...
./partial_match/1/0x5545f416028f8F650f9cb34aAfB09175CfB5973B/sources/SHIBSANITY.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("SHIBSANITY", "SHIBS") { router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uniswapV2Pair = IUniswapV2Factory(router.factory()).createPair(address(this), router.WETH()); _isExcludedMaxTransactionAmount[address(router)] = true; _isExcluded...
4,286,949
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 3885, 1435, 4232, 39, 3462, 2932, 2664, 45, 12692, 1258, 4107, 3113, 315, 2664, 45, 12692, 7923, 288, 203, 7010, 3639, 4633, 273, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 12, 20, 92, 27, 69, 26520, 72, 4313, 5082, 38, ...
// SPDX-License-Identifier: CC-BY-4.0 pragma solidity >=0.4.22 <0.9.0; import "../common/Version.sol"; import "../common/Frozen.sol"; contract RideshareTrade is Version, Frozen { uint256 public s = 1; uint256 public c; uint256 public t=1; mapping (address => uint) balances; address ...
agent owns smart contract
address payable agent;
12,689,958
[ 1, 4625, 348, 7953, 560, 30, 225, 4040, 29065, 13706, 6835, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1758, 8843, 429, 4040, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.8.10; contract NativeMinter{ mapping(address=> uint256) allowList; receive() payable external { } constructor() { allowList[msg.sender] = 2; } function mintNativeCoin(address to, uint256 amount) external { (bool success,) = to.call{value: amount}(""); ...
Set [addr] to have no role over the allow list
function setNone(address addr) external { allowList[addr] = 0; }
13,040,880
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 306, 4793, 65, 358, 1240, 1158, 2478, 1879, 326, 1699, 666, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 7036, 12, 2867, 3091, 13, 3903, 288, 203, 3639, 1699, 682, 63, 4793, 65, 273, 374, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0x05bb115Db9905D857f266FA11e2788d2d88006a2/sources/NoTaxToken.sol
* @dev Muldiv operation overflow./
enum Rounding { }
3,988,129
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 21640, 2892, 1674, 9391, 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, 225, 2792, 11370, 310, 288, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// Sources flattened with hardhat v2.8.3 https://hardhat.org // File contracts/Interfaces/IBorrowerOperations.sol // SPDX-License-Identifier: pragma solidity 0.6.11; // Common interface for the Trove Manager. interface IBorrowerOperations { // --- Events --- event TroveManagerAddressChanged(address _newT...
Return the user's compounded deposit. Given by the formula: d = d0 P/P(0) where P(0) is the depositor's snapshot of the product P, taken when they last updated their deposit./
function getCompoundedLUSDDeposit(address _depositor) public view override returns (uint) { uint initialDeposit = deposits[_depositor].initialValue; Snapshots memory snapshots = depositSnapshots[_depositor]; uint compoundedDeposit = _getCompoundedStakeFromSnapshots(initialDeposit, snapshot...
504,000
[ 1, 4625, 348, 7953, 560, 30, 225, 2000, 326, 729, 1807, 1161, 12002, 443, 1724, 18, 16803, 635, 326, 8013, 30, 225, 302, 273, 302, 20, 225, 453, 19, 52, 12, 20, 13, 1625, 453, 12, 20, 13, 353, 326, 443, 1724, 280, 1807, 4439, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 336, 2945, 12002, 48, 3378, 40, 758, 1724, 12, 2867, 389, 323, 1724, 280, 13, 1071, 1476, 3849, 1135, 261, 11890, 13, 288, 203, 3639, 2254, 2172, 758, 1724, 273, 443, 917, 1282, 63, 67, 323, 1724, 280, 8009, 6769, 620...
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring &#39;a&#39; not being zero, but the // benefit is lost if &#39;b&#39; is also tested. // See: https://github.com/OpenZeppelin/openzeppel...
Gas optimization: this is cheaper than requiring &#39;a&#39; not being zero, but the benefit is lost if &#39;b&#39; is also tested. See: https:github.com/OpenZeppelin/openzeppelin-solidity/pull/522
function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; }
7,767,711
[ 1, 4625, 348, 7953, 560, 30, 225, 31849, 14850, 30, 333, 353, 19315, 7294, 2353, 29468, 6523, 5520, 31, 69, 18642, 5520, 31, 486, 3832, 3634, 16, 1496, 326, 27641, 7216, 353, 13557, 309, 6523, 5520, 31, 70, 18642, 5520, 31, 353, 254...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14064, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 565, 309, 261, 69, 422, 374, 13, 288, 203, 1377, 327, 374, 31, 203, 565, 289, 203, 203, 565, 2254, 5034, 276, ...
pragma solidity ^0.4.19; /// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens /// @author Dieter Shirley <<span class="__cf_email__" data-cfemail="a5c1c0d1c0e5c4ddcccac8dfc0cb8bc6ca">[email&#160;protected]</span>> (https://github.com/dete) contract CSCERC721 { // Required methods functio...
tons per hour of mining
uint256 public constant VULCAN_PROMETHEUS_EXTRACTION_BASE = 300;
2,096,870
[ 1, 4625, 348, 7953, 560, 30, 225, 268, 7008, 1534, 6126, 434, 1131, 310, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1071, 5381, 776, 1506, 39, 1258, 67, 3373, 5277, 41, 3378, 67, 22639, 3106, 67, 8369, 273, 11631, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation,...
* _Available since v3.1._/
interface IERC1155Receiver is IERC165 { @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,u...
116,574
[ 1, 4625, 348, 7953, 560, 30, 380, 389, 5268, 3241, 331, 23, 18, 21, 6315, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 2499, 2539, 12952, 353, 467, 654, 39, 28275, 288, 203, 203, 3639, 632, 5206, 27020, 326, 16030, 434, 279, 2202, 4232, 39, 2499, 2539, 1147, 618, 18, 1220, 445, 353, 203, 3639, 2566, 622, 326, 679, 434, 279, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity =0.8.10; import "./HyperDeFiToken.sol"; contract HyperDeFi is HyperDeFiToken { function getMetadata() public view returns ( string[3] memory tokenNames, string[3] memory tokenSymbols, uint8[3] memo...
amountBNB, amountToken, redeemed
function getAccount(address account) public view returns ( string memory username, bool[5] memory bools, uint256[10] memory uint256s ) { username = _username[account]; (uint256s[8], uint256s[9], bools[4]) = IDO.getAccount(account); ...
1,791,990
[ 1, 4625, 348, 7953, 560, 30, 225, 3844, 15388, 38, 16, 3844, 1345, 16, 283, 24903, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 23393, 12, 2867, 2236, 13, 1071, 1476, 203, 3639, 1135, 261, 203, 5411, 533, 3778, 2718, 16, 203, 5411, 1426, 63, 25, 65, 3778, 1426, 87, 16, 203, 5411, 2254, 5034, 63, 2163, 65, 3778, 2254, 5034, 87, 203, 3639, 262, ...
./partial_match/56/0xb5115835d13A54D95a21B1B0803Fb08edCEde49B/sources/ERC20.sol
* @dev Returns the name of the token./
function name() public view returns (string memory) { return MAGIKARP; }
11,284,468
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 508, 434, 326, 1147, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 508, 1435, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 490, 1781, 45, 47, 985, 52, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "../helpers/Ownable.sol"; /** * @title AIOW ERC20 token */ contract AIOW is Ownable { uint256 constant PERC_BASE = 10000; // = 100.00 % uint256 public constant SECONDS_IN_ONE_DAY = 86400; mapping (address => uint256) private _balances; ...
number of days after timelockUntil until the vesting starts
uint16 vestingStartsAfterDays;
12,943,860
[ 1, 4625, 348, 7953, 560, 30, 225, 1300, 434, 4681, 1839, 1658, 292, 975, 9716, 3180, 326, 331, 10100, 2542, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 2313, 331, 10100, 11203, 4436, 9384, 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...
./full_match/42/0x555ca4c3fc945FCd173E0381922fF963fe4eCe1A/sources/contracts/Aavetrage.sol
/ using SafeERC20 for IERC20; using SafeMath for uint256;
contract Aavetrage { address constant lendingPoolAddressProviderAddress = address(0x88757f2f99175387aB4C6a4b3067c77A695b0349); address constant daiAddress = address(0xFf795577d9AC8bD7D90Ee22b6C1703490b6512FD); address public bestBorrowToken; address public bestSupplyToken; uint256 public currentDAI...
16,208,474
[ 1, 4625, 348, 7953, 560, 30, 342, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 1450, 14060, 10477, 364, 2254, 5034, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 16351, 432, 842, 16354, 410, 288, 203, 203, 565, 1758, 5381, 328, 2846, 2864, 1887, 2249, 1887, 273, 1758, 12, 20, 92, 5482, 5877, 27, 74, 22, 74, 2733, 4033, 25, 7414, 27, 69, 38, 24, 39, 26, 69, 24, 70, 5082, 9599, 71, 47...
/** *Submitted for verification at Etherscan.io on 2020-08-05 */ /** *Submitted for verification at Etherscan.io on 2020-08-04 */ pragma solidity ^0.5.16; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); func...
inject UNINIT LOCAL/STATE VAR
address _reserve ;
12,682,085
[ 1, 4625, 348, 7953, 560, 30, 4590, 5019, 12919, 15234, 19, 7998, 8350, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1758, 389, 455, 6527, 274, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT // File: erc-payable-token/contracts/token/ERC1363/IERC1363Spender.sol pragma solidity ^0.8.0; /** * @title IERC1363Spender Interface * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Interface for any contract that wants to support approveAndCall * from ERC1...
The tokens being staked Source of interest payouts Mode of calculating start time for new stakes Date when this staking contract is terminated The total amount of currently staked tokens Available options for `stakeStartMode`
{ using SafeERC20 for IERC1363; IERC1363 public immutable token; address public immutable wallet; uint256 public annualizedInterestRate; uint256 public immutable rebasePeriodInHours; StakeStartMode public stakeStartMode; uint256 public endDate; uint256 public totalTokensStaked; ...
1,685,513
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 2430, 3832, 384, 9477, 4998, 434, 16513, 293, 2012, 87, 8126, 434, 21046, 787, 813, 364, 394, 384, 3223, 2167, 1347, 333, 384, 6159, 6835, 353, 14127, 1021, 2078, 3844, 434, 4551, 384, 9477, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3437, 4449, 31, 203, 203, 565, 467, 654, 39, 3437, 4449, 1071, 11732, 1147, 31, 203, 203, 565, 1758, 1071, 11732, 9230, 31, 203, 203, 565, 2254, 5034, 1071, 8226, 146...
pragma solidity ^0.4.21; /** * @title LinkedListLib * @author Darryl Morris (o0ragman0o) and Modular.network * * This utility library was forked from https://github.com/o0ragman0o/LibCLL * into the Modular-Network ethereum-libraries repo at https://github.com/Modular-Network/ethereum-libraries * It has been upd...
Create new Message:Insert more expensive message before nextSpot:
if(foundPosition) { topMessagesMap[newNodeNum].valuePayed = msg.value; topMessagesMap[newNodeNum].msg = message; topMessagesMap[newNodeNum].from = anon ? address(0) : msg.sender; topMessagesSorted.insert(nextSpot, newNodeNum, PREV); uin...
620,818
[ 1, 4625, 348, 7953, 560, 30, 1788, 394, 2350, 30, 4600, 1898, 19326, 883, 1865, 1024, 17292, 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, ...
[ 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, 3639, 309, 12, 7015, 2555, 13, 288, 203, 203, 5411, 1760, 5058, 863, 63, 2704, 907, 2578, 8009, 1132, 9148, 329, 273, 1234, 18, 1132, 31, 203, 5411, 1760, 5058, 863, 63, 2704, 907, 2578, 8009, 3576, 273, 883, 31, 203, 5411, 176...
pragma solidity ^0.4.13; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint25...
additional data (e.g. Tx ID of Bitcoin)
string data;
12,901,639
[ 1, 4625, 348, 7953, 560, 30, 225, 3312, 501, 261, 73, 18, 75, 18, 6424, 1599, 434, 24420, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 533, 501, 31, 5411, 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, ...
/* _______ _______ ______ _______ _______ _______ ______ _______ _______ ______ _______ | _ || _ || _ | | _ || || _ || | | _ || _ || _ | | _ | | |_| || |_| || | || | |_| || || |_| || _ || |_| || |_| || | || | |_| | | ...
Minus 2 points at the old owner.Plus 2 points at the new owner.Calulcate the number of neightbours of _cellId for the oldand the new owner, then double the number and multiply it by POINTS_PER_NEIGHBOUR.
function calculateScoresIfCellIsBought (address _newOwner, address _oldOwner, uint256 _cellId) internal view returns (uint256 _newOwnerScore, uint256 _oldOwnerScore) { uint256 oldOwnerScoreAdjustment = DEFAULT_POINTS_PER_CELL; uint256 newOwnerScoreAdjustment = DEFAULT_POINTS_PER_CELL; ...
13,822,898
[ 1, 4625, 348, 7953, 560, 30, 5444, 407, 576, 3143, 622, 326, 1592, 3410, 18, 13207, 576, 3143, 622, 326, 394, 3410, 18, 3005, 332, 71, 340, 326, 1300, 434, 1073, 750, 70, 4390, 434, 389, 3855, 548, 364, 326, 1592, 464, 326, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4604, 20037, 2047, 4020, 2520, 13809, 9540, 261, 2867, 389, 2704, 5541, 16, 1758, 389, 1673, 5541, 16, 2254, 5034, 389, 3855, 548, 13, 2713, 1476, 1135, 261, 11890, 5034, 389, 2704, 5541, 7295, 16, 2254, 5034, 389, 1673, ...
pragma solidity 0.5.4; //import {Ownable} from "./ownable.sol"; import "./accessible.sol"; import "./access_indexor.sol"; import "./user_space.sol"; /* -- Revision history -- Editable20190222140100ML: First versioned released Editable20190315141800ML: Migrated to 0.4.24 Editable20190515103600ML: Modified rights restr...
class name (max 16), date YYYYMMDD, time HHMMSS and Developer initials XX
bytes32 public version ="Editable20200928110000PO";
5,401,425
[ 1, 4625, 348, 7953, 560, 30, 667, 508, 261, 1896, 2872, 3631, 1509, 26699, 8206, 5698, 16, 813, 20842, 8206, 1260, 471, 14526, 2172, 87, 1139, 60, 203, 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, 1731, 1578, 1071, 1177, 273, 6, 15470, 18212, 713, 29, 6030, 2499, 2787, 2419, 14432, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/84531/0x6202E70594b7Ab7fe382eb902F49448d28787edB/sources/Prisale.sol
private sale start time.
uint256 private startTimeStamp = 1637055706;
14,309,715
[ 1, 4625, 348, 7953, 560, 30, 225, 3238, 272, 5349, 787, 813, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 8657, 8860, 273, 2872, 6418, 20, 2539, 7301, 26, 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, -10...
./full_match/80001/0xd3594ee39311983fB293Dc13050473dcB3a76CE1/sources/contracts/Votescatterflat.sol
* @dev A sequence of items with the ability to efficiently push and pop items (i.e. insert and remove) on both ends of the sequence (called front and back). Among other access patterns, it can be used to implement efficient LIFO and FIFO queues. Storage use is optimized, and all operations are O(1) constant time. This ...
library DoubleEndedQueue { error Empty(); error OutOfBounds(); pragma solidity ^0.8.4; struct Bytes32Deque { int128 _begin; int128 _end; mapping(int128 => bytes32) _data; } function pushBack(Bytes32Deque storage deque, bytes32 value) internal { int128 backIndex = ...
9,481,359
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 432, 3102, 434, 1516, 598, 326, 7123, 358, 14382, 715, 1817, 471, 1843, 1516, 261, 77, 18, 73, 18, 2243, 471, 1206, 13, 603, 3937, 3930, 434, 326, 3102, 261, 11777, 6641, 471, 1473, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 3698, 28362, 3183, 288, 203, 565, 555, 8953, 5621, 203, 203, 565, 555, 18407, 5694, 5621, 203, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 24, 31, 203, 565, 1958, 5985, 1578, 30873, 288, 203, 3639, 509, 10392, ...
pragma solidity ^0.4.19; contract ERC721 { // Required methods 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); function approve(ad...
philosophers stone is priceless
_createElement("0", 2 ** 255);
12,595,279
[ 1, 4625, 348, 7953, 560, 30, 1844, 330, 538, 23169, 414, 384, 476, 353, 846, 335, 12617, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 389, 2640, 1046, 2932, 20, 3113, 576, 2826, 4561, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.5.6; contract ERC20Interface { function totalSupply() public view returns (uint); function balanceOf(address tokenOwner) public view returns (uint balance); function allowance(address tokenOwner, address spender) public view returns (uint remaining); function transfer(address to...
Punishment amount is 1/4 the buyerDeposit for now,but in a future version this might be set by the Initiator.Punish both parties equally by burning burnAmount.Instead of burning burnAmount twice, just burn it all in one call (saves gas).Send back deposits minus burned amounts.If there was a pokeReward left, it should b...
internal { uint burnAmount = buyerDeposit / 4; require(daiContract.transfer(address(0x0), burnAmount*2), "Token burn failed!"); require(daiContract.transfer(buyer, buyerDeposit - burnAmount), "Token transfer to Buyer failed!"); require(daiContract.transfer(seller, daiAmount - burnA...
1,845,332
[ 1, 4625, 348, 7953, 560, 30, 453, 318, 1468, 475, 3844, 353, 404, 19, 24, 326, 27037, 758, 1724, 364, 2037, 16, 12885, 316, 279, 3563, 1177, 333, 4825, 506, 444, 635, 326, 4378, 10620, 18, 52, 318, 1468, 3937, 1087, 606, 1298, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2713, 288, 203, 3639, 2254, 18305, 6275, 273, 27037, 758, 1724, 342, 1059, 31, 203, 203, 3639, 2583, 12, 2414, 77, 8924, 18, 13866, 12, 2867, 12, 20, 92, 20, 3631, 18305, 6275, 14, 22, 3631, 315, 1345, 18305, 2535, 4442, 1...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.6.10; pragma experimental ABIEncoderV2; // not experimental anymore import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contract...
* @dev Get the position count of a pool. @param _pool The MarginLiquidityPool. @return The position count./
function getPositionsByPoolLength(MarginLiquidityPoolInterface _pool) external view returns (uint256) { return positionsByPool[_pool].length; }
7,323,908
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 326, 1754, 1056, 434, 279, 2845, 18, 632, 891, 389, 6011, 1021, 490, 5243, 48, 18988, 24237, 2864, 18, 632, 2463, 1021, 1754, 1056, 18, 19, 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, 336, 11024, 858, 2864, 1782, 12, 9524, 48, 18988, 24237, 2864, 1358, 389, 6011, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 6865, 858, 2864, 63, 67, 6011, 8009, 2469, 31, 203, 565, 289, 203, 203, ...
pragma solidity 0.4.24; library Shared { struct ApiRequest{ string apiPath; //"https://api.twitter.com/1.1/statuses/user_timeline.json?"; string httpPostOrGet; // "GET" string getData; // "auth_key=xxx,ticker=gold string postData; // { key: value, key2,value} string jsonReg...
Properties for betting event
struct Event { string name; string description; uint256 eventResolutionTimestamp; ApiRequest request; Outcome[] possibleOutcomes; bool outcomeIsString; bool exactStringMatch; }
1,010,862
[ 1, 4625, 348, 7953, 560, 30, 225, 6183, 364, 2701, 1787, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1958, 2587, 288, 203, 3639, 533, 508, 31, 203, 3639, 533, 2477, 31, 203, 3639, 2254, 5034, 871, 11098, 4921, 31, 203, 3639, 4458, 691, 590, 31, 203, 3639, 2976, 5624, 8526, 3323, 1182, 10127, 31, 203, 3639, 1426, 12884, 2520...
pragma solidity ^0.4.11; contract MultiPartyProtocol { struct PlayerData { bool initialized; bytes32 commitment; bytes nizks; bytes publicKey; } struct StageCommit { mapping (address => PlayerData) playerData; } struct StageTransform { mapping (add...
called when a player joined the protocol
event PlayerJoined(address player);
13,141,490
[ 1, 4625, 348, 7953, 560, 30, 2566, 1347, 279, 7291, 12114, 326, 1771, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 871, 19185, 4572, 329, 12, 2867, 7291, 1769, 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, ...
// SPDX-License-Identifier: MIT //Portfolio and learning development - Integers and Typing pragma solidity ^0.8.0; contract Typing { bool public myBoolean = true; //booleans are always true or false uint256 public myUint = 566778778787; uint32 public myUint32 = 6756567; uint16 public my...
0 - 255 | 2 ** 8 - 1 = 255
int8 internal myInt8 = -127;
12,697,714
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 300, 4561, 571, 576, 2826, 1725, 300, 404, 273, 4561, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 28, 2713, 3399, 1702, 28, 273, 300, 14260, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/8453/0x220D5Df40ab1CcCd62B215EC11AA8523f6b57934/sources/contracts/base/LiquidityManagement.sol
@title Liquidity management functions @notice Internal functions for safely managing liquidity in YumYumSwap
abstract contract LiquidityManagement is IYumyumSwapMintCallback, PeripheryImmutableState, PeripheryPayments { pragma solidity =0.7.6; struct MintCallbackData { PoolAddress.PoolKey poolKey; address payer; } function yumyumswapMintCallback( uint256 amount0Owed, uint256 amount...
16,692,568
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 511, 18988, 24237, 11803, 4186, 632, 20392, 3186, 4186, 364, 15303, 30632, 4501, 372, 24237, 316, 1624, 379, 61, 379, 12521, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 511, 18988, 24237, 10998, 353, 467, 61, 379, 93, 379, 12521, 49, 474, 2428, 16, 5722, 16045, 627, 16014, 1119, 16, 5722, 16045, 627, 23725, 288, 203, 683, 9454, 18035, 560, 273, 20, 18, 27, 18, 26, 31, 203, 565, 19...
//SPDX-License-Identifier: MIT pragma solidity 0.8.11; /** * @title Write nested JSON using solidity * @author Ben Meredith * @dev https://github.com/bmeredith/solidity-json-writer */ library JsonWriter { using JsonWriter for string; struct Json { int256 depthBitTracker; string value; } bytes1 c...
* @dev Escapes any characters that required by JSON to be escaped./
function escapeJsonString(string memory value) public pure returns (string memory str) { bytes memory b = bytes(value); bool foundEscapeChars; for (uint256 i; i < b.length; i++) { if (b[i] == BACKSLASH) { foundEscapeChars = true; break; foundEscapeChars = true;...
11,829,155
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 512, 1017, 7315, 1281, 3949, 716, 1931, 635, 1796, 358, 506, 8345, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4114, 3185, 780, 12, 1080, 3778, 460, 13, 203, 565, 1071, 203, 565, 16618, 203, 565, 1135, 261, 1080, 3778, 609, 13, 203, 225, 288, 203, 565, 1731, 3778, 324, 273, 1731, 12, 1132, 1769, 203, 565, 1426, 1392, 8448, 780...
// SPDX-License-Identifier: MIT /* โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ”โ”“โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ”โ”“ โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ”ƒโ”ƒโ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ”ƒโ”ƒ โ”โ”โ”โ”ณโ”“โ•‹โ”โ”ซโ”—โ”โ”ณโ”โ”โ”ณโ”โ”ณโ”โ”โ”ณโ”โ”โ”ซโ”ƒโ”โ”โ”โ”โ”“ โ”ƒโ”โ”โ”ซโ”ƒโ•‹โ”ƒโ”ƒโ”โ”“โ”ƒโ”ƒโ”โ”ซโ”โ”ซโ”โ”“โ”ƒโ”โ”“โ”ƒโ”ƒโ”ฃโ”โ”โ”ƒโ”ƒ โ”ƒโ”—โ”โ”ซโ”—โ”โ”›โ”ƒโ”—โ”›โ”ƒโ”ƒโ”โ”ซโ”ƒโ”ƒโ”—โ”›โ”ƒโ”โ”“โ”ƒโ”—โ”ซโ”ƒโ”โ”โ”ซ โ”—โ”โ”โ”ปโ”โ”“โ”โ”ปโ”โ”โ”ปโ”โ”โ”ปโ”›โ”—โ”โ”“โ”ฃโ”›โ”—โ”ปโ”โ”ปโ”โ”โ”โ”› โ•‹โ•‹โ•‹โ”โ”โ”›โ”ƒโ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ”โ”โ”›โ”ƒ โ•‹โ•‹โ•‹โ”—โ”โ”โ”›โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ•‹โ”—โ”โ”โ”› */ // CyberGalz Legal Overview [https://cybergalznft.com/legaloverview] pragma...
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is forwarded in {IERC721Receiver-onERC721Received} to contract recipients./
function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721XX: transfer to non ERC721Receiver implementer" ); }
625,257
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17795, 487, 288, 22044, 17, 654, 39, 27, 5340, 17, 67, 4626, 49, 474, 17, 2867, 17, 11890, 5034, 17, 20294, 68, 67, 4626, 49, 474, 68, 6487, 598, 392, 3312, 1375, 892, 68, 1569, 1492,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 4626, 49, 474, 12, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 16, 203, 3639, 1731, 3778, 389, 892, 203, 565, 262, 2713, 5024, 288, 203, 3639, 389, 81, 474, 12, 869, 16, 1147, 548, 1769, 203, 36...
// SPDX-License-Identifier: MIT // Written by Divergence (https://twitter.com/divergence_art) and MathsTown (https://twitter.com/MathsTown) // My thanks to Divergence for his kind assistance. pragma solidity >=0.8.0 <0.9.0; import "./BaseOpenSea.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol...
* @dev Set the metadata URI for a contract./
function setContractURI(string memory _contractURI) public onlyRole(DEFAULT_ADMIN_ROLE) { _setContractURI(_contractURI); }
12,024,512
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1000, 326, 1982, 3699, 364, 279, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 8924, 3098, 12, 1080, 3778, 389, 16351, 3098, 13, 1071, 1338, 2996, 12, 5280, 67, 15468, 67, 16256, 13, 288, 203, 3639, 389, 542, 8924, 3098, 24899, 16351, 3098, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100,...
pragma solidity 0.5.17; pragma experimental ABIEncoderV2; interface iuniswap2 { //inject NONSTANDARD NAMING // To convert DAI to ETH function SWAPEXACTTOKENSFORETH53(uint AMOUNTIN88, uint AMOUNTOUTMIN99, address[] calldata PATH78, address TO76, uin...
inject NONSTANDARD NAMING
function BUYNBURN98(uint256 _ETHTOSWAP66) internal returns(uint256) {
7,220,498
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10937, 17317, 38, 8521, 10689, 12, 11890, 5034, 389, 1584, 44, 4296, 18746, 2203, 6028, 13, 2713, 1135, 12, 11890, 5034, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // import "./GenerativeBB.sol"; import "./NonGenerativeBB.sol"; contract BlindBox is NonGenerativeBB { using Counters for Counters.Counter; using SafeMath for uint256; /** @dev this function is to buy box of any type. @param seriesId id of ...
*/ buyGenerativeBox(seriesId, currencyType);
function buyBox(uint256 seriesId, bool isGenerative, uint256 currencyType, address collection, string memory ownerId, bytes32 user) public { if(isGenerative){ buyNonGenBox(seriesId, currencyType, collection, ownerId, user); } }
13,860,912
[ 1, 4625, 348, 7953, 560, 30, 1195, 30143, 1863, 1535, 3514, 12, 10222, 548, 16, 5462, 559, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 3514, 12, 11890, 5034, 4166, 548, 16, 1426, 353, 1863, 1535, 16, 2254, 5034, 5462, 559, 16, 1758, 1849, 16, 533, 3778, 29456, 16, 1731, 1578, 729, 13, 1071, 288, 203, 3639, 309, 12, 291, 1863, 1535, 15329, 203, ...
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asser...
* @dev Constructor function/
TokenERC20(initialSupply, tokenName, tokenSymbol) public { powerOfTen = 0; decimals = 0; }
10,007,245
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11417, 445, 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, 202, 202, 1345, 654, 39, 3462, 12, 6769, 3088, 1283, 16, 1147, 461, 16, 1147, 5335, 13, 1071, 288, 203, 202, 202, 12238, 951, 25601, 273, 374, 31, 203, 202, 202, 31734, 273, 374, 31, 203, 202, 97, 203, 203, 2, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; pragma abicoder v2; import "./ERC1155Base.sol"; import "../whitelist/interfaces/IWlController.sol"; contract ERC1155CurioAssetRoles is ERC1155Base { /// @notice Whitelist controller IWlController public wlController; /// @notice Admins managing min...
@notice Whitelist controller @notice Admins managing minters @notice Minters managing mint logic
modifier onlyAdmin { require(isAdmin[_msgSender()], "ERC1155CurioAssetRoles: caller is not the admin"); _; }
10,077,347
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3497, 7523, 2596, 632, 20392, 7807, 87, 30632, 1131, 5432, 632, 20392, 490, 2761, 87, 30632, 312, 474, 4058, 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, 565, 9606, 1338, 4446, 288, 203, 3639, 2583, 12, 291, 4446, 63, 67, 3576, 12021, 1435, 6487, 315, 654, 39, 2499, 2539, 2408, 1594, 6672, 6898, 30, 4894, 353, 486, 326, 3981, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2,...