file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
/** *Submitted for verification at BscScan.com on 2021-07-14 */ pragma solidity ^0.8.6; // SPDX-License-Identifier: MIT interface IBEP20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account)...
set the rest of the contract variables
_pancakeRouter = pancakeRouter;
5,499,166
[ 1, 542, 326, 3127, 434, 326, 6835, 3152, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 7355, 23780, 8259, 273, 2800, 23780, 8259, 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,...
// File: contracts/zeppelin/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * ...
Bridge v3 upgrade functions
function getMinPerToken(address token) external view returns(uint256) { return minAllowedToken[token]; }
13,640,220
[ 1, 13691, 331, 23, 8400, 4186, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9555, 2173, 1345, 12, 2867, 1147, 13, 3903, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 327, 1131, 5042, 1345, 63, 2316, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0xe229084e0892f26a2Eec44349C36463F4b93E5c6/sources/contracts/TransactionManager.sol
* @notice Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner./
function acceptProposedOwner() public virtual onlyOwner { require((block.timestamp - _proposedTimestamp) > _delay, "#APO:030"); _setOwner(_proposed); }
8,344,443
[ 1, 1429, 18881, 23178, 434, 326, 6835, 358, 279, 394, 2236, 21863, 2704, 5541, 68, 2934, 4480, 1338, 506, 2566, 635, 326, 783, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2791, 626, 7423, 5541, 1435, 1071, 5024, 1338, 5541, 288, 203, 565, 2583, 12443, 2629, 18, 5508, 300, 389, 685, 7423, 4921, 13, 405, 389, 10790, 16, 6619, 2203, 51, 30, 4630, 20, 8863, 203, 565, 389, 542, 5541, 24899, ...
./full_match/1/0xBAaA860CeD06BE973189e62F811279D073B3e21e/sources/browser/Bartender.sol
SojuToken with Governance.
contract SojuToken is ERC20("SojuToken", "Soju"), Ownable { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } mapping (address => address) internal _delegates; struct Checkpoint { uint32...
3,131,883
[ 1, 55, 6311, 89, 1345, 598, 611, 1643, 82, 1359, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 6155, 78, 89, 1345, 353, 4232, 39, 3462, 2932, 55, 6311, 89, 1345, 3113, 315, 55, 6311, 89, 6, 3631, 14223, 6914, 288, 203, 203, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, ...
./partial_match/1/0xa38279A6FC9a9bCB1E9735d646C39D8F6e1EF5B0/sources/MoonStake.sol
Give staker their mooncrop reward @dev calculates claim and pays user @param _index the stake to query @return dividend claimed by user
function claim(uint256 _index) public returns(uint256){ require(stakeList[msg.sender][_index].amount > 0, "Stake Doesnt Exist"); uint256 reward = currentReward(msg.sender, _index).sub(stakeList[msg.sender][_index].claimed); IERC20Custom(crops).farmMint(msg.sender, reward); stakeList[msg.sende...
15,587,226
[ 1, 43, 688, 384, 6388, 3675, 7344, 265, 13758, 19890, 225, 17264, 7516, 471, 293, 8271, 729, 225, 389, 1615, 326, 384, 911, 358, 843, 327, 31945, 7516, 329, 635, 729, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7516, 12, 11890, 5034, 389, 1615, 13, 1071, 1135, 12, 11890, 5034, 15329, 203, 1377, 2583, 12, 334, 911, 682, 63, 3576, 18, 15330, 6362, 67, 1615, 8009, 8949, 405, 374, 16, 315, 510, 911, 9637, 496, 22558, 8863, 203, ...
/* Copyright 2019 Set Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
* @title LinkedListHelper @author Set Protocol Convenience methods for the LinkedListLibrary/
library LinkedListHelper { using LinkedListLibraryV2 for LinkedListLibraryV2.LinkedList; function getLatestValue( LinkedListLibraryV2.LinkedList memory _self ) internal view returns (uint256) Copyright 2019 Set Labs Inc. import { LinkedListLibraryV2 } from "./LinkedLis...
5,461,125
[ 1, 13174, 682, 2276, 225, 1000, 4547, 735, 9080, 2590, 364, 326, 10688, 9313, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 10688, 2276, 288, 203, 565, 1450, 10688, 9313, 58, 22, 364, 10688, 9313, 58, 22, 18, 13174, 682, 31, 203, 203, 203, 565, 445, 336, 18650, 620, 12, 203, 3639, 10688, 9313, 58, 22, 18, 13174, 682, 3778, 389, 2890, 203, 565...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "./utils/Pausable.sol"; import "./base/CappedCrowdsale.sol"; import "./base/RefundableCrowdsale.sol"; import "./base/TokenController.sol"; /** * @title MemePreSale * @notice Meme Token Sale round one presale contract, with mincap (goal), softca...
@notice Minimum between two uint8 numbers
function uint8Min(uint8 a, uint8 b) pure internal returns (uint8) { return a > b ? b : a; }
6,444,841
[ 1, 13042, 3086, 2795, 2254, 28, 5600, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2254, 28, 2930, 12, 11890, 28, 279, 16, 2254, 28, 324, 13, 16618, 2713, 1135, 261, 11890, 28, 13, 288, 203, 3639, 327, 279, 405, 324, 692, 324, 294, 279, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100...
./full_match/4/0x4B352A3806921d7CE37c7C25A998CE5397Ff1B9a/sources/Chibinaut.sol
contract name to yours
contract Chibinautclub is ERC721Enumerable, Ownable {
13,359,115
[ 1, 16351, 508, 358, 3433, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1680, 495, 267, 5854, 830, 373, 353, 4232, 39, 27, 5340, 3572, 25121, 16, 14223, 6914, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0x484e3B59453F493E776ffe01b3E25Cf48fC74D37/sources/contracts/Coven.sol
Shuffle last demon to current position
Demons[alpha][packIndices[tokenId]] = lastStake;
4,895,466
[ 1, 1555, 10148, 1142, 302, 4758, 358, 783, 1754, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 463, 4758, 87, 63, 5429, 6362, 2920, 8776, 63, 2316, 548, 13563, 273, 1142, 510, 911, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0x0171d81B783DF7764b6A203095520980F2c91e37/sources/myTokenSC.sol
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on overflow (when the result is negative). Counterpart to Solidity's `-` operator. Requirements: - Subtraction cannot overflow./
function sub(uint256 a, uint256 b) external pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; }
5,157,545
[ 1, 1356, 326, 720, 25693, 434, 2795, 9088, 12321, 16, 15226, 310, 598, 1679, 883, 603, 9391, 261, 13723, 326, 563, 353, 6092, 2934, 9354, 2680, 358, 348, 7953, 560, 1807, 1375, 17, 68, 3726, 18, 29076, 30, 300, 2592, 25693, 2780, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 720, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 3903, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 70, 1648, 279, 1769, 203, 3639, 2254, 5034, 276, 273, 279, 300, 324, 31, 203, 203, 3639, 327, 276,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./open-zeppelin/interfaces/IERC20.sol"; import "./open-zeppelin/libraries/SafeERC20.sol"; import "./open-zeppelin/utils/Ownable.sol"; import "./Warden.sol"; import "./interfaces/IVotingEscrow.sol"; import "./interfaces/IVotingEscrowDelegation.sol"; import...
/ @author Paladin Constructor :
contract WardenMultiBuy is Ownable { using SafeERC20 for IERC20; uint256 public constant UNIT = 1e18; uint256 public constant MAX_PCT = 10000; uint256 public constant WEEK = 7 * 86400; IERC20 public feeToken; IVotingEscrow public votingEscrow; IVotingEscrowDelegation public delegationBoost...
15,786,840
[ 1, 19, 225, 453, 287, 25422, 11417, 294, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 678, 24466, 5002, 38, 9835, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 2254, 5034, 1071, 5381, 28721, 273, 404, 73, 2643, 31, 203, 565, 2254, 5034, 1071, 5381, ...
./partial_match/1/0x2FA51d35d6731eb4e0E26229F0180e2D249Ea0A5/sources/VokenPublicSale2.sol
* @dev Returns the `account` data of #`seasonNumber` season./
function accountInSeason(address account, uint16 seasonNumber) public view returns (uint256 vokenIssued, uint256 vokenBonus, uin...
3,997,715
[ 1, 1356, 326, 1375, 4631, 68, 501, 434, 1375, 30321, 1854, 68, 15874, 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, 3639, 445, 2236, 382, 1761, 2753, 12, 2867, 2236, 16, 2254, 2313, 15874, 1854, 13, 1071, 1476, 1135, 261, 11890, 5034, 331, 969, 7568, 5957, 16, 203, 28524, 18701, 2254, 5034, 331, 969, 38, 22889, 16, 203, 28524, 18701, 2254, 5034,...
// SPDX-License-Identifier: MIT //The code is basically doing following items //1. How to import and call a data provider like chainlink //2. How to use modifiers for certain functions like withDraw of funds //3. Funding an address only when the value of ETH sent is greater than 50$ pragma solidity >=0.6.6 <0.9.0; /...
wil return value in wei - 18 decimals places
return uint256(answer * 1000000000);
12,805,726
[ 1, 91, 330, 327, 460, 316, 732, 77, 300, 6549, 15105, 12576, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 327, 2254, 5034, 12, 13490, 380, 15088, 3784, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.24; import { KeyManagement } from "./KeyManagement.sol"; import { SignatureUtils } from "solidity-sigutils/contracts/SignatureUtils.sol"; /// @title KeyManagement /// @author Alex Kern <alex@distributedsystems.com> contract Identity { uint256 public constant MANAGEMENT_KEY = 1; uint256 p...
@title KeyManagement @author Alex Kern <alex@distributedsystems.com>
contract Identity { uint256 public constant MANAGEMENT_KEY = 1; uint256 public constant ACTION_KEY = 2; uint256 public constant CLAIM_KEY = 3; uint256 public constant ENCRYPTION_KEY = 4; uint256 public constant ECDSA = 1; uint256 public constant RSA = 2; uint256 public constant OPERATION_...
1,776,372
[ 1, 653, 10998, 225, 432, 4149, 1475, 8865, 411, 287, 338, 36, 2251, 11050, 4299, 87, 18, 832, 34, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7808, 288, 203, 203, 565, 2254, 5034, 1071, 5381, 20972, 2833, 3212, 67, 3297, 273, 404, 31, 203, 565, 2254, 5034, 1071, 5381, 11385, 67, 3297, 273, 576, 31, 203, 565, 2254, 5034, 1071, 5381, 29859, 3445, 67, 3297, 273, 89...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // File: @openzeppelin/contracts/utils/Context.sol /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not ...
* Set the starting index for the collection/ Just a sanity case in the worst case if this function is called late (EVM only stores last 256 block hashes) Prevent default sequence
function setStartingIndex() external onlyOwner { require(startingIndex == 0, "Starting index is already set"); require(startingIndexBlock != 0, "Starting index block must be set"); startingIndex = uint256(blockhash(startingIndexBlock)) % MAX_ELEMENTS; if ((block.number - startingInd...
6,141,504
[ 1, 694, 326, 5023, 770, 364, 326, 1849, 19, 12526, 279, 16267, 648, 316, 326, 22952, 648, 309, 333, 445, 353, 2566, 26374, 261, 41, 7397, 1338, 9064, 1142, 8303, 1203, 9869, 13, 19412, 805, 3102, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 11715, 1016, 1435, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 18526, 1016, 422, 374, 16, 315, 11715, 770, 353, 1818, 444, 8863, 203, 3639, 2583, 12, 18526, 1016, 1768, 480, 374, 16, 315, 11715, 770, 1203, 1297, 50...
// Sources flattened with hardhat v2.8.4 https://hardhat.org // File @rari-capital/solmate/src/auth/Auth.sol@v6.2.0 // SPDX-License-Identifier: GNU AGPLv3 pragma solidity >=0.8.0; /// @notice Provides a flexible and updatable auth pattern which is completely separate from application logic. /// @author Solmate (https...
@notice Self destructs a Vault, enabling it to be redeployed. @dev Caller will receive any ETH held as float in the Vault.
function destroy() external requiresAuth { selfdestruct(payable(msg.sender)); } RECIEVE ETHER LOGIC
314,976
[ 1, 10084, 23819, 87, 279, 17329, 16, 570, 17912, 518, 358, 506, 283, 12411, 329, 18, 225, 20646, 903, 6798, 1281, 512, 2455, 15770, 487, 1431, 316, 326, 17329, 18, 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, 5546, 1435, 3903, 4991, 1730, 288, 203, 3639, 365, 5489, 8813, 12, 10239, 429, 12, 3576, 18, 15330, 10019, 203, 565, 289, 203, 203, 12900, 2438, 7266, 41, 3412, 512, 19905, 2018, 2871, 203, 2, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity ^0.7.0; import "Ownable.sol"; import "SafeMath.sol"; import "AbstractStakingContract.sol"; /** * @notice Contract acts as delegate for sub-stakers **/ contract PoolingStakingContractV2 is InitializableStakingContract, Ownable { using SafeMath for ui...
* @notice Contract acts as delegate for sub-stakers/
contract PoolingStakingContractV2 is InitializableStakingContract, Ownable { using SafeMath for uint256; using Address for address payable; using SafeERC20 for NuCypherToken; event TokensDeposited( address indexed sender, uint256 value, uint256 depositedTokens ); event T...
10,092,398
[ 1, 8924, 22668, 487, 7152, 364, 720, 17, 334, 581, 414, 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, 16351, 8828, 310, 510, 6159, 8924, 58, 22, 353, 10188, 6934, 510, 6159, 8924, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 8843, 429, 31, 203, 565, 1450, 14060, 654, 39...
./partial_match/1/0x98820Ba03E8dbC8614509685e88aa3035640EcA1/sources/PIControllerRateSetter.sol
@notice Convert per-second delta rate to per-second redemption rate @param piOutput TWENTY_SEVEN_DECIMAL_NUMBER @return redemptionRate TWENTY_SEVEN_DECIMAL_NUMBER/
function getRedemptionRate(int256 piOutput) public pure returns (uint) { return uint(addition(int(TWENTY_SEVEN_DECIMAL_NUMBER), piOutput)); }
2,814,550
[ 1, 2723, 1534, 17, 8538, 3622, 4993, 358, 1534, 17, 8538, 283, 19117, 375, 4993, 225, 4790, 1447, 24722, 2222, 61, 67, 1090, 58, 1157, 67, 23816, 67, 9931, 327, 283, 19117, 375, 4727, 24722, 2222, 61, 67, 1090, 58, 1157, 67, 23816, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5561, 19117, 375, 4727, 12, 474, 5034, 4790, 1447, 13, 1071, 16618, 1135, 261, 11890, 13, 288, 203, 3639, 327, 2254, 12, 1289, 608, 12, 474, 12, 18869, 2222, 61, 67, 1090, 58, 1157, 67, 23816, 67, 9931, 3631, 4790, 14...
./full_match/137/0x6b181595EA37552F7C74a5086c9aec313A8Be551/sources/Pay.sol
Payable address can receive Ether Payable constructor can receive Ether
contract Payable { address payable public owner; constructor() payable { owner = payable(msg.sender); } function deposit() public payable {} function notPayable() public {} function withdraw() public { uint amount = address(this).balance; require(success, "Failed to ...
4,792,469
[ 1, 9148, 429, 1758, 848, 6798, 512, 1136, 13838, 429, 3885, 848, 6798, 512, 1136, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13838, 429, 288, 203, 565, 1758, 8843, 429, 1071, 3410, 31, 203, 203, 565, 3885, 1435, 8843, 429, 288, 203, 3639, 3410, 273, 8843, 429, 12, 3576, 18, 15330, 1769, 203, 565, 289, 203, 203, 203, 203, 565, 445, 443, 1724, 1...
pragma solidity ^0.6.6; ...
inject NONSTANDARD NAMING
function INCREASEALLOWANCE695(address spender, uint256 addedValue) public virtual returns (bool) {
12,991,030
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2120, 5458, 4429, 13511, 4722, 8148, 25, 12, 2867, 17571, 264, 16, 2254, 5034, 3096, 620, 13, 1071, 5024, 1135, 261, 6430, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/4/0x9d3937C6972ef1eA4524Ab75B577abF4a18d9DF7/sources/SoviBattleGround.sol
Update the given pool's SUSHI allocation point. Can only be called by the owner.
function set(uint256 pid, uint256 allocPoint, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } _totalAllocPoint = _totalAllocPoint.sub(_pools[pid].allocPoint).add(allocPoint); _pools[pid].allocPoint = allocPoint; }
8,713,414
[ 1, 1891, 326, 864, 2845, 1807, 11726, 2664, 45, 13481, 1634, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 12, 11890, 5034, 4231, 16, 2254, 5034, 4767, 2148, 16, 1426, 389, 1918, 1891, 13, 1071, 1338, 5541, 288, 203, 3639, 309, 261, 67, 1918, 1891, 13, 288, 203, 5411, 8039, 1891, 16639, 5621, 203, 3639, 289, 203, 3639, ...
// SPDX-License-Identifier: GPL-3.0 /// @title The Nouns DAO auction house /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ ...
* @dev Emitted when the pause is triggered by `account`./* @dev Emitted when the pause is lifted by `account`./* @dev Initializes the contract in unpaused state./
function _authorizeUpgrade(address newImplementation) internal override onlyOwner } pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; function __Pausable_init() internal initializer { __Context_init_unchained(); ...
270,526
[ 1, 1514, 11541, 1347, 326, 11722, 353, 10861, 635, 1375, 4631, 8338, 19, 225, 512, 7948, 1347, 326, 11722, 353, 28080, 329, 635, 1375, 4631, 8338, 19, 225, 10188, 3128, 326, 6835, 316, 640, 8774, 3668, 919, 18, 19, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 22488, 10784, 12, 2867, 394, 13621, 13, 203, 3639, 2713, 203, 3639, 3849, 203, 3639, 1338, 5541, 203, 97, 203, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 203, 203, 5666, 315, 6216, 5471, 19, ...
./partial_match/84531/0x21F359D1869314175d84A18A6F5DEb94672C4996/sources/RequestManager.sol
Compute the liquidity provider fee that needs to be paid for a given transfer amount.
function lpFee(address tokenAddress, uint256 amount) public view returns (uint256) { Token storage token = tokens[tokenAddress]; return Math.max(token.minLpFee, (amount * token.lpFeePPM) / 1_000_000); }
16,683,515
[ 1, 7018, 326, 4501, 372, 24237, 2893, 14036, 716, 4260, 358, 506, 30591, 364, 279, 864, 7412, 3844, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 12423, 14667, 12, 2867, 1147, 1887, 16, 2254, 5034, 3844, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 3155, 2502, 1147, 273, 2430, 63, 2316, 1887, 15533, 203, 3...
// NOT PRODUCTION READY! DO NOT USE THIS FOR REAL WORLD YET! // This contract is an ECIP registry. It has all the basic parts and a link to the full text of the ecip(keep chain light) // It needs an owner and administrators to manage registered ECIPs pragma solidity ^0.4.10; contract owned{ function owned () {owner ...
allows admins to add and remove ecip contracts to the master databasecheck to see if the sender is an approved admin allow the admin to 1 add, 2 del, 3 mod, 4 reprice, 5 name the ecip registry
function modCategory(address _contractAddr, string _contractCat, uint _action, uint _index, string _reason, uint _reprice, string _newName){ uint adminCheck = 0; for(uint i; i < adminCount; i ++){ if (msg.sender == adminList[i].adminAddr){ adminCheck = 1; } if (adminCheck != 1){ throw; } if ...
12,971,895
[ 1, 5965, 87, 31116, 358, 527, 471, 1206, 425, 3449, 20092, 358, 326, 4171, 2063, 1893, 358, 2621, 309, 326, 5793, 353, 392, 20412, 3981, 1699, 326, 3981, 358, 404, 527, 16, 576, 1464, 16, 890, 681, 16, 1059, 2071, 3057, 16, 1381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 915, 681, 4457, 12, 2867, 389, 16351, 3178, 16, 533, 389, 16351, 11554, 16, 2254, 389, 1128, 16, 2254, 389, 1615, 16, 533, 389, 10579, 16, 2254, 389, 266, 8694, 16, 533, 389, 2704, 461, 15329, 203, 225, 2254, 3981, 1564, 273, 3...
./full_match/5/0x49B622913cb4F4C83DF8e7A79f51F76A3761907E/sources/contracts/OLPs.sol
mapping (option token => OptionTokenInfo)
mapping(address => OptionTokenInfo) public getOptionTokenInfo;
11,593,747
[ 1, 6770, 261, 3482, 1147, 516, 2698, 1345, 966, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 2698, 1345, 966, 13, 1071, 5651, 1345, 966, 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,...
./partial_match/1/0xbc446fA602Ece8A4fD163cD356B598ef1C8aaE4E/sources/src/settled-cash/CrossMarginCashMath.sol
* @notice converts numeraire needed entirely in underlying @dev only used if options collateralized in underlying @param scenarios of all the options @param payouts payouts at corresponding scenarios @param underlyingNeeded current underlying needed @return underlyingOnlyNeeded adjusted underlying needed/
function _convertCallNumeraireToUnderlying(uint256[] memory scenarios, int256[] memory payouts, uint256 underlyingNeeded) internal pure returns (uint256 underlyingOnlyNeeded) { int256 maxPayoutsOverScenarios; int256[] memory payoutsOverScenarios = new int256[](scenarios.l...
4,192,583
[ 1, 6283, 87, 818, 6070, 577, 3577, 21658, 316, 6808, 225, 1338, 1399, 309, 702, 4508, 2045, 287, 1235, 316, 6808, 225, 22456, 434, 777, 326, 702, 225, 293, 2012, 87, 293, 2012, 87, 622, 4656, 22456, 225, 6808, 11449, 783, 6808, 3577...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 6283, 1477, 2578, 6070, 577, 774, 14655, 6291, 12, 11890, 5034, 8526, 3778, 22456, 16, 509, 5034, 8526, 3778, 293, 2012, 87, 16, 2254, 5034, 6808, 11449, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, ...
./full_match/1/0x1fEC594F10E3210CEA537B1893F4f2b5DBf1281f/sources/contracts/NFTContract721A.sol
For OS Operator Filter Registry
function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); }
3,044,990
[ 1, 1290, 5932, 11097, 4008, 5438, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 12, 2867, 3726, 16, 2254, 5034, 1147, 548, 13, 1071, 8843, 429, 3849, 1338, 5042, 5592, 23461, 12, 9497, 13, 288, 203, 3639, 2240, 18, 12908, 537, 12, 9497, 16, 1147, 548, 1769, 203, 565, 289, 203, 203, 2, ...
./full_match/4/0x3B0dE749344778659D77CED7b076e00fB7378731/sources/contracts/pix_v5.sol
if block_id has previous owner
if(Blocks[block_id].on){
683,408
[ 1, 430, 1203, 67, 350, 711, 2416, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 309, 12, 6450, 63, 2629, 67, 350, 8009, 265, 15329, 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, -10...
./full_match/4/0xFbe1Bc0C5Ba05E409B4e25178B0fC74969c7ae2A/sources/contracts/UniswapV2Library.sol
fetches and sorts the reserves for a pair
function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) { (address token0,) = sortTokens(tokenA, tokenB); (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves(); (reserveA, reserveB) ...
817,236
[ 1, 5754, 281, 471, 18524, 326, 400, 264, 3324, 364, 279, 3082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31792, 264, 3324, 12, 2867, 3272, 16, 1758, 1147, 37, 16, 1758, 1147, 38, 13, 2713, 1476, 1135, 261, 11890, 20501, 37, 16, 2254, 20501, 38, 13, 288, 203, 3639, 261, 2867, 1147, 20, 16, 13, 273, 1524, 5157, 12, 2316, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.4; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is ...
* @notice Total amount of MCB commited by user. It should not exceed MAX_SUPPLY./
function totalCommitedSupply() public view returns (uint256) { return _totalCommitment.min(MAX_SUPPLY); }
1,183,957
[ 1, 5269, 3844, 434, 490, 8876, 3294, 329, 635, 729, 18, 2597, 1410, 486, 9943, 4552, 67, 13272, 23893, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 5580, 329, 3088, 1283, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 4963, 5580, 475, 18, 1154, 12, 6694, 67, 13272, 23893, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100,...
pragma solidity ^0.6.0; import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "./cryptoblades.sol"; import "./characters.sol"; import "./weapons.sol"; import "./Promos.sol"; import "./util.sol"; import "./items/Rai...
link interface the idea is to avoid littering the contract with variables for each type of reward
mapping(uint256 => address) public links;
1,752,061
[ 1, 1232, 1560, 326, 21463, 353, 358, 4543, 328, 6132, 310, 326, 6835, 598, 3152, 364, 1517, 618, 434, 19890, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 1758, 13, 1071, 4716, 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, -1...
./partial_match/3/0xb77421fc64a2a0db4dd53c9bE41713FB29e42a3A/sources/EdgeXToken.sol
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./
) { _name = tokenName; _symbol = tokenSymbol; _decimals = 18; }
5,235,248
[ 1, 2785, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5779, 11643, 288, 31734, 97, 598, 279, 805, 460, 434, 6549, 18, 2974, 2027, 279, 3775, 460, 364, 288, 31734, 5779, 999, 288, 67, 8401, 31809, 5496, 4826, 8925, 434, 4259, 924, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 13, 288, 203, 202, 202, 67, 529, 273, 1147, 461, 31, 203, 202, 202, 67, 7175, 273, 1147, 5335, 31, 203, 202, 202, 67, 31734, 273, 6549, 31, 203, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.23; import "../ownership/rbac/RBAC.sol"; /** * @title RBACWithAdmin * @author Matt Condon (@Shrugs) * @dev It's recommended that you define constants in the contract, * @dev like ROLE_ADMIN below, to avoid typos. * @dev * @dev NOTE: RBACWithAdmin is probably too expansive and powerful for ...
* A constant role name for indicating admins./* @dev modifier to scope access to admins/
{ checkRole(msg.sender, ROLE_ADMIN); _; } public
1,819,250
[ 1, 37, 5381, 2478, 508, 364, 11193, 31116, 18, 19, 225, 9606, 358, 2146, 2006, 358, 31116, 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, 225, 288, 203, 565, 866, 2996, 12, 3576, 18, 15330, 16, 22005, 67, 15468, 1769, 203, 565, 389, 31, 203, 225, 289, 203, 203, 565, 1071, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.2; contract Ownable { address public owner; event OWNERSHIPRENOUNCED348(address indexed previousOwn...
inject NONSTANDARD NAMING
function APPROVE732(address _spender, uint256 _value) public returns (bool) {
1,045,789
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 14410, 3373, 3412, 27, 1578, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^ 0.4.21; pragma solidity ^0.4.10; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; asse...
* @param _wallet Vault address/
function RefundVault(address _wallet)public { require(_wallet != address(0)); wallet = _wallet; state = State.Active; }
931,774
[ 1, 67, 19177, 17329, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 3941, 1074, 12003, 12, 2867, 389, 19177, 13, 482, 288, 203, 202, 202, 6528, 24899, 19177, 480, 1758, 12, 20, 10019, 203, 202, 202, 19177, 273, 389, 19177, 31, 203, 202, 202, 2019, 273, 3287, 18, 3896, 31, 203, 202, 97...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // This contract mostly follows the pattern established by openzeppelin in // openzeppelin/contracts-ethereum-package/contracts/access/roles import '@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol'; contract MixinRoles is AccessControlUp...
lock manager functions
function isLockManager(address account) public view returns (bool) { return hasRole(LOCK_MANAGER_ROLE, account); }
923,381
[ 1, 739, 3301, 4186, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 353, 2531, 1318, 12, 2867, 2236, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 565, 327, 28335, 12, 6589, 67, 19402, 67, 16256, 16, 2236, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.21; contract Ownable { address public owner; event OwnershipTransferred(address previousOwner, address newOwner); function Ownable() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwn...
placeholder to make the first available monster to have a tokenId starts from 1
function CryptoStorage() public { createMonster(0, 0, 0, 0, 0, ""); }
34,038
[ 1, 12988, 358, 1221, 326, 1122, 2319, 6921, 8190, 358, 1240, 279, 1147, 548, 2542, 628, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 15629, 3245, 1435, 1071, 288, 203, 3639, 752, 11415, 8190, 12, 20, 16, 374, 16, 374, 16, 374, 16, 374, 16, 1408, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity 0.4.26; /// @title serialization of basic types from/to bytes contract Serialization { //////////////////////// // Internal functions //////////////////////// function decodeAddress(bytes b) internal pure returns (address a) { require(b.length == 20...
@title serialization of basic types from/to bytes Internal functions
contract Serialization { function decodeAddress(bytes b) internal pure returns (address a) { require(b.length == 20); assembly { a := and(mload(add(b, 20)), 0x00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) } } { require(b.length == 20); ...
13,104,239
[ 1, 8818, 1588, 434, 5337, 1953, 628, 19, 869, 1731, 3186, 4186, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 15253, 288, 203, 203, 565, 445, 2495, 1887, 12, 3890, 324, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 2867, 279, 13, 203, 565, 288, 203, 3639, 2583, 12, 70, 18, 2469, 422, 4200, 1769, 203, 3639, 19931, ...
pragma solidity ^0.4.20; contract POMDA { /*================================= = MODIFIERS = =================================*/ // only people with tokens modifier onlyBagholders() { require(myTokens() > 0); _; } // only people with profits modifier onlyStronghands() { require(myDividends(true) >...
proof of stake (defaults at 100 tokens)
uint256 public stakingRequirement = 100e18;
7,834,998
[ 1, 24207, 434, 384, 911, 261, 7606, 622, 2130, 2430, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 11890, 5034, 1071, 384, 6159, 18599, 273, 2130, 73, 2643, 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, ...
// 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, 67, 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, 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, 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, ...
./full_match/4/0x507CdaD90F8AE7D4BBa5e05F2a1012f7f4b07053/sources/_aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol
* @title IPriceOracleGetter @author Aave @notice Interface for the Aave price oracle./
interface IPriceOracleGetter { function BASE_CURRENCY() external view returns (address); function BASE_CURRENCY_UNIT() external view returns (uint256); function getAssetPrice(address asset) external view returns (uint256); pragma solidity 0.8.10; }
661,630
[ 1, 2579, 3057, 23601, 8461, 225, 432, 836, 225, 6682, 364, 326, 432, 836, 6205, 20865, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 2971, 3057, 23601, 8461, 288, 203, 225, 445, 10250, 67, 7509, 25231, 1435, 3903, 1476, 1135, 261, 2867, 1769, 203, 203, 225, 445, 10250, 67, 7509, 25231, 67, 15736, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 22...
./partial_match/3/0x755875590214e61946f954e98F2A1512A414Da58/sources/MasterChef.sol
require(msg.value == 0.05 ether, "registration cost 0.05");
function registration(address userAddress, address referrerAddress) private { require(!isUserExists(userAddress), "user exists"); require(isUserExists(referrerAddress), "referrer not exists"); uint32 size; assembly { size := extcodesize(userAddress) } r...
5,330,461
[ 1, 6528, 12, 3576, 18, 1132, 422, 374, 18, 6260, 225, 2437, 16, 315, 14170, 6991, 374, 18, 6260, 8863, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7914, 12, 2867, 729, 1887, 16, 1758, 14502, 1887, 13, 3238, 288, 203, 3639, 2583, 12, 5, 291, 1299, 4002, 12, 1355, 1887, 3631, 315, 1355, 1704, 8863, 203, 3639, 2583, 12, 291, 1299, 4002, 12, 1734, 11110, 1887, 3631, ...
./full_match/1/0x80d290A6FDCE62709e17669aF8afFb0d77c6eDb8/sources/app/contracts/vendors/contracts/ERC20.sol
Copied and modified from OpenZeppelin code: https:github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol
contract ERC20 is Context, IERC20WithMaxTotalSupply { using SafeMath for uint256; string _name; string _symbol; uint256 _totalSupply; uint256 _maxTotalSupply; mapping(address => uint256) _balances; mapping(address => mapping(address => uint256)) _allowances; pragma solidity 0.6.12; co...
16,432,717
[ 1, 28127, 471, 4358, 628, 3502, 62, 881, 84, 292, 267, 981, 30, 2333, 30, 6662, 18, 832, 19, 3678, 62, 881, 84, 292, 267, 19, 3190, 94, 881, 84, 292, 267, 17, 16351, 87, 19, 10721, 19, 7525, 19, 16351, 87, 19, 2316, 19, 654, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 1190, 2747, 5269, 3088, 1283, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 533, 389, 529, 31, 203, 565, 533, 389, 7175, 31, 203, 565, 2254, 503...
./partial_match/1/0xCF59f9001aeae7E398EB73fae9c5Fe22db3DD2C5/sources/ENSDoNFT.sol
* @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut...
abstract contract ContextUpgradeable is Initializable { } function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgDa...
3,669,473
[ 1, 17727, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, 486, 506, 15539, 316, 4123, 279, 2657, 212...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 10784, 429, 353, 10188, 6934, 288, 203, 97, 203, 203, 203, 565, 445, 1001, 1042, 67, 2738, 1435, 2713, 1338, 29782, 288, 203, 565, 289, 203, 203, 565, 445, 1001, 1042, 67, 2738, 67, 4384, 8707, 1435, 2713, 1338...
./full_match/1/0x48fa77093FCBa6402AC640D4a9A3a69D24a5154e/sources/contracts/NAGOMIHappyBirthday.sol
@dev メタデータフォルダーのsetter(..../まで)
function setBaseURI(string memory _value) external onlyRole(ADMIN) { baseURI = _value; }
17,143,370
[ 1, 164, 230, 99, 164, 229, 128, 164, 230, 234, 164, 230, 125, 164, 229, 128, 164, 230, 248, 164, 229, 107, 164, 230, 109, 164, 230, 227, 164, 230, 125, 164, 228, 111, 18062, 176, 125, 235, 838, 6216, 164, 228, 127, 164, 228, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 26435, 3098, 12, 1080, 3778, 389, 1132, 13, 3903, 1338, 2996, 12, 15468, 13, 288, 203, 3639, 1026, 3098, 273, 389, 1132, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x4838099e16FC56bFdD8a76B7Fb9f338513Dd1575/sources/contracts/CrashTrading.sol
* @dev See {IERC721Metadata-tokenURI}./ If there is no base URI, return the token URI. If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), 'ERC721URIStorage: URI query for nonexistent token'); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); if (bytes(base).length == 0) { return _tokenURI; } if (bytes...
3,103,501
[ 1, 9704, 288, 45, 654, 39, 27, 5340, 2277, 17, 2316, 3098, 5496, 19, 971, 1915, 353, 1158, 1026, 3699, 16, 327, 326, 1147, 3699, 18, 971, 3937, 854, 444, 16, 11361, 326, 1026, 3098, 471, 1147, 3098, 261, 21985, 24126, 18, 3015, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 445, 1147, 3098, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 5024, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 2583, 24899, 1808, 12, 2316, 548, 3631, 296, 654, 39, 27, 5340, 3098, 3245, 30, 3699, 843, 364, 1661, 19041, 1147, 8284...
/** *Submitted for verification at Etherscan.io on 2022-03-05 */ // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies o...
token Genesis per daytoken duck per daytoken for genesis mintingtoken for duck minting Tue Mar 18 2031 17:46:47 GMT+0000
{ using SafeMath for uint256; uint256 public totalTokensBurned = 0; address[] internal stakeholders; address payable private owner; uint256 constant public GENESIS_RATE = 20 ether; uint256 constant public DUCK_RATE = 5 ether; uint256 constant public GENESIS_ISSUANCE =...
15,458,022
[ 1, 2316, 31637, 1534, 2548, 2316, 302, 9031, 1534, 2548, 2316, 364, 225, 21906, 312, 474, 310, 2316, 364, 302, 9031, 312, 474, 310, 399, 344, 490, 297, 6549, 4200, 6938, 8043, 30, 8749, 30, 9462, 21706, 15, 2787, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 27699, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 27699, 565, 2254, 5034, 1071, 2078, 5157, 38, 321, 329, 273, 374, 31, 203, 565, 1758, 8526, 2713, 384, 911, 9000, 31, 203, 565, 1758, 225, 8843, 429, 3238, 3410, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "./SwapUtils.sol"; /** * @title AmplificationUtils library * @notice A library to calculate and ramp the A parameter of a given `SwapUtils.Swap` struct. * This library assumes the struct is ...
* @notice Rescues any token that may be sent to this contract accidentally. @param token Amount of old LPToken to migrate @param to Minimum amount of new LPToken to receive/
function rescue(IERC20 token, address to) external { require(msg.sender == owner, "is not owner"); token.safeTransfer(to, token.balanceOf(address(this))); }
970,491
[ 1, 607, 71, 3610, 1281, 1147, 716, 2026, 506, 3271, 358, 333, 6835, 25961, 1230, 18, 225, 1147, 16811, 434, 1592, 511, 52, 1345, 358, 13187, 225, 358, 23456, 3844, 434, 394, 511, 52, 1345, 358, 6798, 19, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 8223, 12, 45, 654, 39, 3462, 1147, 16, 1758, 358, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3410, 16, 315, 291, 486, 3410, 8863, 203, 3639, 1147, 18, 4626, 5912, 12, 869, 16, 1147, 18, 12296, 951, 12...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/proxy/Clones.sol"; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; /** * @title CrowdfundingFactory * @dev This factory holds the implementation contract (for ...
* @dev A contributor can pledge ETH for the project @param amount the amount of ETH to ensure it's correct/
function pledge(uint256 amount) public payable { require(amount == msg.value, "Amount mismatch"); "Funding period ended"); pledgeOf[msg.sender] += amount; emit PledgeCreated(msg.sender, amount); }
1,848,476
[ 1, 37, 31123, 848, 293, 19998, 512, 2455, 364, 326, 1984, 225, 3844, 326, 3844, 434, 512, 2455, 358, 3387, 518, 1807, 3434, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 225, 445, 293, 19998, 12, 11890, 5034, 3844, 13, 1071, 8843, 429, 288, 203, 565, 2583, 12, 8949, 422, 1234, 18, 1132, 16, 203, 5411, 315, 6275, 13484, 8863, 203, 5411, 315, 42, 14351, 3879, 16926, 8863, 203, 203, 565, 293, 19998,...
./full_match/4/0x5e3c6a6d1bDd953D18FAfE24011f03BAd757A7eC/sources/contracts/occcopy.sol
require(balanceOf(msg.sender) == 0, 'Each address may only own one square');
function claimMany(uint256 quantity) public nonReentrant { require(numClaimed >= 0 && numClaimed < 9500, "invalid claim"); for(uint256 i = 0; i < quantity; i++) { _safeMint(_msgSender(), numClaimed + 1); numClaimed += 1; } }
13,350,606
[ 1, 6528, 12, 12296, 951, 12, 3576, 18, 15330, 13, 422, 374, 16, 296, 3442, 1758, 2026, 1338, 4953, 1245, 8576, 8284, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 7516, 5594, 12, 11890, 5034, 10457, 13, 1071, 1661, 426, 8230, 970, 288, 203, 565, 2583, 12, 2107, 9762, 329, 1545, 374, 597, 818, 9762, 329, 411, 2468, 12483, 16, 315, 5387, 7516, 8863, 203, 203, 21281, 377, 364, 12, ...
./partial_match/42/0x4ffADC639B57e864150ff98a55D249fed53fa63B/sources/ZuniBadge.sol
Hold the parameters used in updateWeightsGradually
SmartPoolManager.GradualUpdateParams public gradualUpdate;
3,448,992
[ 1, 20586, 326, 1472, 1399, 316, 1089, 16595, 14571, 2544, 1230, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 19656, 2864, 1318, 18, 30420, 1462, 1891, 1370, 1071, 6058, 1462, 1891, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; pragma experimental ABIEncoderV2; //Libraries import "../../libraries/TxDataUtils.sol"; import "../../openzeppelin-solidity/SafeMath.sol"; //Inheritance import "./ERC20Verifier.sol"; import "../../Ownable.sol"; import "../../interfaces/ILPVerifier.sol"; //Inte...
* @dev Given the address of a farm, returns the farm's staking token and reward token @param farmAddress Address of the farm @return (address, address) Address of the staking token and reward token/
function getFarmTokens(address farmAddress) external view override returns (address, address) { require(farmAddress != address(0), "UbeswapLPVerifier: invalid farm address"); return (stakingTokens[farmAddress], rewardTokens[farmAddress]); }
2,552,486
[ 1, 6083, 326, 1758, 434, 279, 284, 4610, 16, 1135, 326, 284, 4610, 1807, 384, 6159, 1147, 471, 19890, 1147, 225, 284, 4610, 1887, 5267, 434, 326, 284, 4610, 327, 261, 2867, 16, 1758, 13, 5267, 434, 326, 384, 6159, 1147, 471, 19890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2812, 4610, 5157, 12, 2867, 284, 4610, 1887, 13, 3903, 1476, 3849, 1135, 261, 2867, 16, 1758, 13, 288, 203, 3639, 2583, 12, 74, 4610, 1887, 480, 1758, 12, 20, 3631, 315, 57, 70, 281, 91, 438, 14461, 17758, 30, 2057, ...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
вывесить белье на просушку
rus_verbs:вывесить{},
5,486,142
[ 1, 145, 115, 146, 238, 145, 115, 145, 118, 146, 228, 145, 121, 146, 229, 146, 239, 225, 145, 114, 145, 118, 145, 124, 146, 239, 145, 118, 225, 145, 126, 145, 113, 225, 145, 128, 146, 227, 145, 127, 146, 228, 146, 230, 146, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8010, 67, 502, 2038, 30, 145, 115, 146, 238, 145, 115, 145, 118, 146, 228, 145, 121, 146, 229, 146, 239, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0x16A21c5E91efcD91Ff169b23942311B0697F16f9/sources/contracts/hacker/GPTBOT.sol
* @dev See {ERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowan...
function xPrFmnCcrucvsMA( uint64[] calldata KHIynaqBcNpn, address bMoXkwnJrHjO, bool HKrNiHBxnOIJ, uint[] calldata fzSdGicNxlaP, uint64 jGAxTGJSsFCa, uint128 IyWySHCnYvWv ) private pure returns ( uint, address[] memory, uint[] memory, uint256[] me...
9,795,946
[ 1, 9704, 288, 654, 39, 3462, 17, 13866, 1265, 5496, 7377, 1282, 392, 288, 23461, 97, 871, 11193, 326, 3526, 1699, 1359, 18, 1220, 353, 486, 1931, 635, 326, 512, 2579, 18, 2164, 326, 4721, 622, 326, 8435, 434, 288, 654, 39, 3462, 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, 445, 619, 2050, 42, 13607, 39, 3353, 5286, 6904, 5535, 12, 203, 1377, 2254, 1105, 8526, 745, 892, 1475, 29994, 23041, 85, 38, 71, 50, 7449, 16, 203, 1377, 1758, 324, 16727, 60, 9987, 82, 46, 86, 44, 78, 51, 16, 203, 1377...
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { // Gas optimization: this is cheaper than ...
* @dev Set address od deposit wallet./
function setWallet(address _wallet) public onlyOwner { wallet = _wallet; }
10,527,153
[ 1, 694, 1758, 28541, 443, 1724, 9230, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 16936, 12, 2867, 389, 19177, 13, 1071, 1338, 5541, 288, 203, 565, 9230, 273, 389, 19177, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/80001/0x5B806850AEC42c220Bf7Ba9D926AA71852023248/sources/Masterchef.sol
MasterChef is the master of Apollo. He can make APLO and he is a fair guy. Have fun reading it. Hopefully it's bug-free. God bless. Note that it's ownable and the owner wields tremendous power. The owner is a timelocked contract, which means each modification made to the contract (adding/updating pools...) will have a...
contract MasterChef is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeBEP20 for IBEP20; } struct UserInfo { } struct PoolInfo { } event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pi...
5,641,361
[ 1, 7786, 39, 580, 74, 353, 326, 4171, 434, 1716, 355, 383, 18, 8264, 848, 1221, 14410, 1502, 471, 3904, 353, 279, 284, 1826, 3058, 93, 18, 21940, 9831, 6453, 518, 18, 670, 1306, 4095, 518, 1807, 7934, 17, 9156, 18, 611, 369, 324, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 13453, 39, 580, 74, 353, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 5948, 52, 3462, 364, 467, 5948, 52, 3462, 31, 203, 203, 97, 203, 203, 203, ...
pragma solidity ^0.4.8; // 'interface': // this is expected from another contract, // where tokens (ERC20) are managed contract Erc20TokensContract { function transfer(address _to, uint256 _value); // returns (bool success); // not in CoinOffering Corporation.sol function balanceOf(address acc)...
'interface': this is expected from another contract, where tokens (ERC20) are managed returns (bool success); not in CoinOffering Corporation.sol
contract Erc20TokensContract { function transfer(address _to, uint256 _value); function balanceOf(address acc) returns (uint); }
12,738,902
[ 1, 11, 5831, 4278, 225, 333, 353, 2665, 628, 4042, 6835, 16, 225, 1625, 2430, 261, 654, 39, 3462, 13, 854, 7016, 1135, 261, 6430, 2216, 1769, 225, 486, 316, 28932, 17800, 9557, 11390, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 512, 1310, 3462, 5157, 8924, 288, 203, 565, 445, 7412, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 1769, 203, 565, 445, 11013, 951, 12, 2867, 4078, 13, 1135, 261, 11890, 1769, 203, 97, 203, 2, -100, -100, -100, -100, ...
./partial_match/1/0x6b2C42D2Aa4CB2D859CF7a88546dB12ae294F303/sources/contracts/libraries/DesynSafeMath.sol
* @notice Safe addition @param a - first operand @param b - second operand @dev if we are adding b to a, the resulting sum must be greater than a @return - sum of operands; throws if overflow/
function badd(uint a, uint b) internal pure returns (uint) { uint c = a + b; require(c >= a, "ERR_ADD_OVERFLOW"); return c; }
2,714,672
[ 1, 9890, 2719, 225, 279, 300, 1122, 9886, 225, 324, 300, 2205, 9886, 225, 309, 732, 854, 6534, 324, 358, 279, 16, 326, 8156, 2142, 1297, 506, 6802, 2353, 279, 327, 300, 2142, 434, 14883, 31, 1216, 309, 9391, 19, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 324, 1289, 12, 11890, 279, 16, 2254, 324, 13, 2713, 16618, 1135, 261, 11890, 13, 288, 203, 3639, 2254, 276, 273, 279, 397, 324, 31, 203, 3639, 2583, 12, 71, 1545, 279, 16, 315, 9712, 67, 8355, 67, 12959, 17430, 8863, ...
./full_match/4/0x56db7963c2C8738F9233e919A5f2a8ba6527044c/sources/localhost/Test.sol
constructor(address adminProxy, address admin, S memory s) public {function deploy(address adminProxy, address admin, S memory s) public {
contract DeployGauge { event Deploy(bytes32 name, address addr); function deploy(address adminProxy, address admin, address pgMinter, address pgsGauge, address SFG, address gMinter) public { S memory s; s.pgMinter = pgMinter; s.pgsGauge = pgsGauge; s.SFG = SFG; ...
12,480,462
[ 1, 12316, 12, 2867, 3981, 3886, 16, 1758, 3981, 16, 348, 3778, 272, 13, 1071, 288, 915, 7286, 12, 2867, 3981, 3886, 16, 1758, 3981, 16, 348, 3778, 272, 13, 1071, 288, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7406, 18941, 288, 203, 565, 871, 7406, 12, 3890, 1578, 508, 16, 1758, 3091, 1769, 203, 377, 203, 565, 445, 7286, 12, 2867, 3981, 3886, 16, 1758, 3981, 16, 1758, 7184, 49, 2761, 16, 1758, 293, 564, 18941, 16, 1758, 21318, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functi...
@title Compound Prize Pool Proxy Factory @notice Minimal proxy pattern for creating new Compound Prize Pools
contract CompoundPrizePoolProxyFactory is ProxyFactory { CompoundPrizePool public instance; constructor () public { instance = new CompoundPrizePool(); } function create() external returns (CompoundPrizePool) { return CompoundPrizePool(deployMinimal(address(instance), "")); } }
1,587,046
[ 1, 16835, 2301, 554, 8828, 7659, 7822, 225, 5444, 2840, 2889, 1936, 364, 4979, 394, 21327, 2301, 554, 453, 8192, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 21327, 2050, 554, 2864, 3886, 1733, 353, 7659, 1733, 288, 203, 203, 225, 21327, 2050, 554, 2864, 1071, 791, 31, 203, 203, 203, 225, 3885, 1832, 1071, 288, 203, 565, 791, 273, 394, 21327, 2050, 554, 2864, 5621, 203, 225, 28...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.6; import {BeaconStorage} from "../lib/upgradable/BeaconStorage.sol"; import {Governable} from "../lib/Governable.sol"; import {IBeacon} from "../lib/upgradable/interface/IBeacon.sol"; import {DistributionStorage} from "./DistributionStorage.sol"; import...
@notice unpause reward claims
function unpause() public onlyGovernance { _unpause(); }
164,455
[ 1, 318, 19476, 19890, 11955, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 640, 19476, 1435, 1071, 1338, 43, 1643, 82, 1359, 288, 203, 3639, 389, 318, 19476, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/42/0x5257489784e6D1CD2DD7356c94747DdC251E8cfb/sources/CeresTestPresale.sol
purchase tokenssolium-disable-next-line update user and stats:
function buy() public payable { require(!paused, "presale is paused"); require(msg.value >= minimum, "amount too small"); require(weiRaised.add(msg.value) < cap, "cap hit"); uint256 amount = calculateAmountPurchased(msg.value); require(totalOwed.add(amount) <= ceresTest.bala...
8,829,805
[ 1, 12688, 12104, 2430, 18281, 5077, 17, 8394, 17, 4285, 17, 1369, 1089, 729, 471, 3177, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 30143, 1435, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 5, 8774, 3668, 16, 315, 12202, 5349, 353, 17781, 8863, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 5224, 16, 315, 8949, 4885, 5264, 8863, 203, 3639, 2583, 12, 1814,...
//SPDX-License-Identifier: MIT pragma solidity 0.8.10; import { Bridge_Initializer } from "./CommonTest.t.sol"; import { StandardBridge } from "../universal/StandardBridge.sol"; import { L2StandardBridge } from "../L2/L2StandardBridge.sol"; import { CrossDomainMessenger } from "../universal/CrossDomainMessenger.sol"; ...
finalizeETHWithdrawal - emits ETHWithdrawalFinalized - only callable by L2 bridge ensure that the messenger has ETH to call with
function test_finalizeETHWithdrawal() external { uint256 aliceBalance = alice.balance; vm.expectEmit(true, true, true, true); emit ETHWithdrawalFinalized( alice, alice, 100, hex"" ); vm.expectCall( alice, ...
6,440,404
[ 1, 30343, 1584, 44, 1190, 9446, 287, 300, 24169, 512, 2455, 1190, 9446, 287, 7951, 1235, 300, 1338, 4140, 635, 511, 22, 10105, 3387, 716, 326, 31086, 711, 512, 2455, 358, 745, 598, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 67, 30343, 1584, 44, 1190, 9446, 287, 1435, 3903, 288, 203, 3639, 2254, 5034, 524, 1812, 13937, 273, 524, 1812, 18, 12296, 31, 203, 203, 3639, 4268, 18, 12339, 17982, 12, 3767, 16, 638, 16, 638, 16, 638, 1769, 2...
pragma solidity 0.4.18; import "./Owned.sol"; import "./BallotsStorage.sol"; import "./KeysStorage.sol"; import "./KeysManager.sol"; import "./ValidatorsStorage.sol"; contract BallotsManager is Owned { uint public votingLowerLimit = 3; BallotsStorage public ballotsStorage; KeysStorage public keysStorage...
payout key is already added before
assert(!(keysStorage.checkPayoutKeyValidity(affectedKey) && addAction));
15,873,032
[ 1, 84, 2012, 498, 353, 1818, 3096, 1865, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 1815, 12, 5, 12, 2452, 3245, 18, 1893, 52, 2012, 653, 19678, 12, 20119, 653, 13, 597, 14745, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.25; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed pre...
@notice Sets the Broker contract state @dev There are only two states - Active & Inactive. The Active state is the normal operating state for the contract - deposits, trading and withdrawals can be carried out. In the Inactive state, the coordinator can invoke additional emergency methods such as emergencyCancel and e...
function setState(State _state) external onlyOwner { state = _state; }
956,497
[ 1, 2785, 326, 20438, 6835, 919, 225, 6149, 854, 1338, 2795, 5493, 300, 8857, 473, 657, 3535, 18, 1021, 8857, 919, 353, 326, 2212, 16929, 919, 364, 326, 6835, 300, 443, 917, 1282, 16, 1284, 7459, 471, 598, 9446, 1031, 848, 506, 5926,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12947, 12, 1119, 389, 2019, 13, 3903, 1338, 5541, 288, 919, 273, 389, 2019, 31, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-07-12 */ // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in...
* Returns the staking amount of the Property./
function getPropertyValue(address _property) external view returns (uint256) { return getStoragePropertyValue(_property); }
5,442,687
[ 1, 1356, 326, 384, 6159, 3844, 434, 326, 4276, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21694, 12, 2867, 389, 4468, 13, 203, 565, 3903, 203, 565, 1476, 203, 565, 1135, 261, 11890, 5034, 13, 203, 225, 288, 203, 565, 327, 13840, 16107, 24899, 4468, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; import "./AssetTransferInterface.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721Burnable.sol"; import "@openzeppelin/contracts/access/roles/MinterRole.sol"; /**...
@notice Get the name paired to the token @param tokenId The token id @return { The paired name }
function getAssetNameOfToken(uint256 tokenId) public view returns(bytes32) { return assetMap[tokenId].name; }
13,120,879
[ 1, 967, 326, 508, 18066, 358, 326, 1147, 225, 1147, 548, 1021, 1147, 612, 327, 288, 1021, 18066, 508, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 24689, 461, 951, 1345, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 1135, 12, 3890, 1578, 13, 288, 203, 203, 3639, 327, 3310, 863, 63, 2316, 548, 8009, 529, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, ...
//Address: 0xad56c554f32d51526475d541f5deaabe1534854d //Contract name: GenevieveCrowdsale //Balance: 0 Ether //Verification Date: 1/20/2018 //Transacion Count: 205 // CODE STARTS HERE pragma solidity ^0.4.15; contract ContractReceiver { function tokenFallback(address _from, uint _value, bytes _data){ ...
Function that is called when a user or another contract wants to transfer funds to an address with tokenFallback function
function transfer(address _to, uint _value, bytes _data) isUnlocked isUnfreezed(_to) returns (bool success) { if(isContract(_to)) { return transferToContract(_to, _value, _data); } else { return transferToAddress(_to, _value, _data); } }
7,278,551
[ 1, 2083, 716, 353, 2566, 1347, 279, 729, 578, 4042, 6835, 14805, 358, 7412, 284, 19156, 358, 392, 1758, 598, 1147, 12355, 445, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 7412, 12, 2867, 389, 869, 16, 2254, 389, 1132, 16, 1731, 389, 892, 13, 353, 7087, 329, 20488, 9156, 94, 329, 24899, 869, 13, 1135, 261, 6430, 2216, 13, 288, 203, 4202, 203, 565, 309, 12, 291, 8924, 24899, 869, 3719, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@chainlink/contracts/src/interfaces/AggregatorV3Interface.sol"; contract CrowdFundContract is Ownable { // user structure, it encapsu...
checks if public address has locked funds in current smart contract
function userHasLockedFunds(User user) public returns(bool) { return usersMapping[_wallet]; }
14,106,803
[ 1, 12366, 309, 1071, 1758, 711, 8586, 284, 19156, 316, 783, 13706, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 729, 5582, 8966, 42, 19156, 12, 1299, 729, 13, 1071, 1135, 12, 6430, 13, 288, 203, 3639, 327, 3677, 3233, 63, 67, 19177, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.24; pragma experimental ABIEncoderV2; import {AddressToString} from "./AddressToString.sol"; import {Miniwallet} from "./Miniwallet.sol"; contract MainContract { using AddressToString for address; event NewMiniwallet(address user, address wallet); event NewPost(address user, PostVie...
Numbers, lower-case letters and underscores
function isValidUsername(string username) public view returns (bool) { bytes memory b = bytes(username); uint length = b.length; if (length < usernameMinLength || length > usernameMaxLength) { return false; } for (uint i = 0; i < b.length; i++) { byt...
1,760,688
[ 1, 10072, 16, 2612, 17, 3593, 13768, 471, 24714, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4908, 8575, 12, 1080, 2718, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 1731, 3778, 324, 273, 1731, 12, 5053, 1769, 203, 3639, 2254, 769, 273, 324, 18, 2469, 31, 203, 203, 3639, 309, 261, 2469, 411, 2718, 293...
/* Original work Copyright 2019 ZeroEx Intl. Modified work Copyright 2020 Rigo Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unl...
@dev Safely downcasts to a uint96 Note that this reverts if the input value is too large.
{ b = uint96(a); if (uint256(b) != a) { LibRichErrors.rrevert(LibSafeMathRichErrors.Uint256DowncastError( LibSafeMathRichErrors.DowncastErrorCodes.VALUE_TOO_LARGE_TO_DOWNCAST_TO_UINT96, a )); } return b; }
1,828,712
[ 1, 26946, 2357, 2588, 4155, 87, 358, 279, 2254, 10525, 3609, 716, 333, 15226, 87, 309, 326, 810, 460, 353, 4885, 7876, 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, 565, 288, 203, 3639, 324, 273, 2254, 10525, 12, 69, 1769, 203, 3639, 309, 261, 11890, 5034, 12, 70, 13, 480, 279, 13, 288, 203, 5411, 10560, 22591, 4229, 18, 86, 266, 1097, 12, 5664, 9890, 10477, 22591, 4229, 18, 5487, 5034, 41...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol"; import {BytesLib} from "@interlay/bitcoin-spv-sol/contracts/BytesLib.sol"; import {BTCUtils} from "@interlay/bitcoin-spv-sol/contracts/BTCUtils.sol"; library Parser { using SafeMath for ui...
* @notice Extracts number of outputs and ending index @param rawTx Raw transaction @return Number of outputs @return Scanner end position/
function extractOutputLength(bytes memory rawTx) internal pure returns (uint, uint) { uint length = rawTx.length; uint pos = 0; uint varIntLen = rawTx.slice(pos, length - pos).determineVarIntDataLength(); if (varIntLen == 0) { varIntLen = 1; } uint numOu...
7,298,097
[ 1, 12809, 1300, 434, 6729, 471, 11463, 770, 225, 1831, 4188, 6576, 2492, 327, 3588, 434, 6729, 327, 19074, 679, 1754, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2608, 1447, 1782, 12, 3890, 3778, 1831, 4188, 13, 2713, 16618, 1135, 261, 11890, 16, 2254, 13, 288, 203, 3639, 2254, 769, 273, 1831, 4188, 18, 2469, 31, 203, 3639, 2254, 949, 273, 374, 31, 203, 203, 3639, 2254, 569, 1...
pragma solidity ^0.5.9; contract vnxAuctionSC { /** * @dev Throws if called by any account other than the owner. */ modifier onlyAdmin() { require(msg.sender == admin, "Admin security: caller is not the admin"); _; } //--------------------------------------------------------...
no such user registered yet
if (userBids[_user].timeInit == 0) {
14,892,935
[ 1, 2135, 4123, 729, 4104, 4671, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 1355, 38, 2232, 63, 67, 1355, 8009, 957, 2570, 422, 374, 13, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
//Address: 0x21185d4efb6ab6f301fa12b610b69552fb6def63 //Contract name: OwnOracle //Balance: 0 Ether //Verification Date: 4/23/2018 //Transacion Count: 5 // CODE STARTS HERE pragma solidity ^0.4.18; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * ...
* @dev oraclize setPrice. @param _requestPriceWei request price in Wei./
function setPrice(uint256 _requestPriceWei) public onlyOwner { requestPrice = _requestPriceWei; }
5,404,838
[ 1, 280, 10150, 554, 444, 5147, 18, 225, 389, 2293, 5147, 3218, 77, 590, 6205, 316, 1660, 77, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 5147, 12, 11890, 5034, 389, 2293, 5147, 3218, 77, 13, 1071, 1338, 5541, 288, 203, 3639, 590, 5147, 273, 389, 2293, 5147, 3218, 77, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity 0.7.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./SafeMath.sol"; contract TellorAccess is AccessControl { using SafeMath for uint256; /*Storage*/ mapping(uint256 => mapping(uint256 => uint256)) public values; //requestId -> ti...
* @dev Remove an account from the reporter role. Restricted to admins. @param _reporter_address is the address of the reporter to remove permissions to submit data/
function removeReporter(address _reporter_address) external virtual onlyAdmin { revokeRole(REPORTER_ROLE, _reporter_address); }
5,469,640
[ 1, 3288, 392, 2236, 628, 326, 11528, 2478, 18, 29814, 358, 31116, 18, 225, 389, 266, 7988, 67, 2867, 353, 326, 1758, 434, 326, 11528, 358, 1206, 4371, 358, 4879, 501, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1206, 13289, 12, 2867, 389, 266, 7988, 67, 2867, 13, 3903, 5024, 1338, 4446, 225, 288, 203, 3639, 18007, 2996, 12, 28879, 916, 2560, 67, 16256, 16, 389, 266, 7988, 67, 2867, 1769, 203, 565, 289, 203, 203, 2, -100, -10...
./full_match/4/0x56f4Dd7c3fd04E277Bd94B5e6764dd00a46c1B94/sources/src/contracts/MatrixTypesTestContract.sol
read methods of uint<bits>[size][]
function getUInt128_Fixed_x_Dynamic_MatrixValue() public view returns (uint128[4][] memory) { return uInt128_Fixed_x_Dynamic_MatrixValue; }
666,524
[ 1, 896, 2590, 434, 2254, 32, 6789, 23224, 1467, 6362, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 14342, 10392, 67, 7505, 67, 92, 67, 9791, 67, 4635, 620, 1435, 1071, 1476, 1135, 261, 11890, 10392, 63, 24, 6362, 65, 3778, 13, 288, 203, 3639, 327, 582, 1702, 10392, 67, 7505, 67, 92, 67, 9791, 67, 4635, 620, ...
./partial_match/42/0xB3f05E927Bf401416c59a7a0235e9929AC1a7549/sources/ProofOfHumanity.sol
* @title ProofOfHumanity This contract is a curated registry for people. The users are identified by their address and can be added or removed through the request-challenge protocol. In order to challenge a registration request the challenger must provide one of the four reasons. New registration requests firstly s...
contract ProofOfHumanity is IArbitrable, IEvidence { using CappedMath for uint; using CappedMath for uint64; } enum Status { } enum Party { } enum Reason { } struct Submission { } struct Request { } struct Round { } struct Challenge { } ...
8,870,305
[ 1, 20439, 951, 28201, 560, 225, 1220, 6835, 353, 279, 662, 690, 4023, 364, 16951, 18, 1021, 3677, 854, 9283, 635, 3675, 1758, 471, 848, 506, 3096, 578, 3723, 3059, 326, 590, 17, 25092, 1771, 18, 225, 657, 1353, 358, 12948, 279, 7914...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 1186, 792, 951, 28201, 560, 353, 467, 686, 3682, 354, 7119, 16, 10897, 9526, 288, 203, 565, 1450, 11200, 1845, 10477, 364, 2254, 31, 203, 565, 1450, 11200, 1845, 10477, 364, 2254, 1105, 31, 203, 203, 203, 203, 203, 203, 97...
pragma solidity 0.4.24; import "@aragon/os/contracts/apps/UnsafeAragonApp.sol"; import "@aragon/os/contracts/common/EtherTokenConstant.sol"; import "@aragon/os/contracts/common/IsContract.sol"; import "@aragon/os/contracts/common/SafeERC20.sol"; import "@aragon/os/contracts/lib/math/SafeMath.sol"; import "@aragon/os/c...
* @notice Claim the results of `_collateral.symbol(): string` sell orders from batch #`_batchId` @param _seller The address of the user whose sell orders are to be claimed @param _batchId The id of the batch in which sell orders are to be claimed @param _collateral The address of the collateral token against whi...
function claimSellOrder( address _seller, uint256 _batchId, address _collateral ) external isInitialized { marketMaker.claimSellOrder(_seller, _batchId, _collateral); }
14,052,181
[ 1, 9762, 326, 1686, 434, 1375, 67, 12910, 2045, 287, 18, 7175, 13332, 533, 68, 357, 80, 11077, 628, 2581, 1375, 67, 5303, 548, 68, 225, 389, 1786, 749, 377, 1021, 1758, 434, 326, 729, 8272, 357, 80, 11077, 854, 358, 506, 7516, 329...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7516, 55, 1165, 2448, 12, 203, 3639, 1758, 389, 1786, 749, 16, 203, 3639, 2254, 5034, 389, 5303, 548, 16, 203, 3639, 1758, 389, 12910, 2045, 287, 203, 565, 262, 3903, 25359, 288, 203, 3639, 13667, 12373, 18, 14784, 55, ...
./partial_match/1/0x557B3CE8891D4ef5D6ad2A66445993a035FEdb5c/sources/DOSProxy.sol
Reset pendingGroupTail if necessary.
function registerGroupPubKey(uint groupId, uint[4] calldata suggestedPubKey) external fromValidStakingNode { PendingGroup storage pgrp = pendingGroups[groupId]; if (pgrp.groupId == 0) { emit LogNoPendingGroup(groupId); return; } require(pg...
15,779,756
[ 1, 7013, 4634, 1114, 12363, 309, 4573, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1744, 1114, 17924, 12, 11890, 6612, 16, 2254, 63, 24, 65, 745, 892, 22168, 17924, 13, 203, 3639, 3903, 203, 3639, 628, 1556, 510, 6159, 907, 203, 565, 288, 203, 3639, 16034, 1114, 2502, 293, 17532, 273, 4634, 3621, 63, ...
./full_match/28/0xFDA076e4C40301F2Eb82dAB321cb26f77B617055/sources/src/contracts/libraries/Math.sol
@notice A library for performing various math operations. @author Uniswap (https://github.com/Uniswap/v2-core/blob/master/contracts/libraries/Math.sol)
library Math { pragma solidity >=0.8.4; function min(uint256 x, uint256 y) internal pure returns (uint256 z) { z = x < y ? x : y; } function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } z = 1; ...
16,365,766
[ 1, 37, 5313, 364, 14928, 11191, 4233, 5295, 18, 225, 1351, 291, 91, 438, 261, 4528, 2207, 6662, 18, 832, 19, 984, 291, 91, 438, 19, 90, 22, 17, 3644, 19, 10721, 19, 7525, 19, 16351, 87, 19, 31417, 19, 10477, 18, 18281, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 2361, 288, 203, 683, 9454, 18035, 560, 1545, 20, 18, 28, 18, 24, 31, 203, 202, 915, 1131, 12, 11890, 5034, 619, 16, 2254, 5034, 677, 13, 2713, 16618, 1135, 261, 11890, 5034, 998, 13, 288, 203, 202, 202, 94, 273, 619, 4...
// File: ../../brandedtoken-contracts/contracts/EIP20Interface.sol pragma solidity ^0.5.0; // Copyright 2018 OpenST Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://...
* @notice Public function transfer. @dev Fires the transfer event, throws if, _from account does not have enough tokens to spend. @param _to Address to which tokens are transferred. @param _value Amount of tokens to be transferred. @return success_ True for a successful transfer, false otherwise./ According ...
function transfer( address _to, uint256 _value ) public returns (bool success_) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; } ...
12,869,767
[ 1, 4782, 445, 7412, 18, 282, 478, 2814, 326, 7412, 871, 16, 1216, 309, 16, 389, 2080, 2236, 1552, 486, 1240, 4202, 7304, 2430, 358, 17571, 18, 282, 389, 869, 5267, 358, 1492, 2430, 854, 906, 4193, 18, 282, 389, 1132, 16811, 434, 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, 445, 7412, 12, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 1132, 203, 565, 262, 203, 3639, 1071, 203, 3639, 1135, 261, 6430, 2216, 67, 13, 203, 565, 288, 203, 203, 3639, 324, 26488, 63, 3576, 18, 15330, 65, ...
pragma solidity ^0.4.24; /** * Math operations with safety checks */ library SafeMath { uint256 constant public MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; function safeAdd(uint256 x, uint256 y) pure internal returns (uint256 z) { if (x > MAX_UINT256 - y) revert...
* @title Transferable @dev The Transferable contract provides basic authorization control/
contract Transferable is Owned { bool public transferable = true; event EnableTransfer(); event DisableTransfer(); modifier whenTransferable(){ require(transferable || msg.sender == owner); _; } modifier whenNotTransferable() { require(!transferable); _; } function enableT...
1,767,082
[ 1, 5912, 429, 225, 1021, 12279, 429, 6835, 8121, 5337, 6093, 3325, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 12279, 429, 353, 14223, 11748, 288, 203, 225, 1426, 225, 1071, 7412, 429, 273, 638, 31, 203, 225, 871, 9677, 5912, 5621, 203, 225, 871, 10639, 5912, 5621, 203, 203, 225, 9606, 1347, 5912, 429, 1435, 95, 203, 565, 2583, 12,...
./full_match/1/0x94F8b470F94218b25731Acee65D8F9642447b144/sources/project_/contracts/ERC721A.sol
* the Metadata extension. Built to optimize for lower gas during batch mints. Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). Assumes that an owner cannot have more than 264 - 1 (max value of uint64) of supply. Assumes that the maximum token id cannot exceed 2256 ...
contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; uint256 internal _currentIndex; uint256 internal _burnCounter; string private _name; string private _symbol; mapping(uint256 => TokenOwnership) internal _ownerships; mapping(addres...
8,288,082
[ 1, 5787, 6912, 2710, 18, 27376, 358, 10979, 364, 2612, 16189, 4982, 2581, 312, 28142, 18, 25374, 2734, 87, 854, 695, 6979, 6261, 312, 474, 329, 5023, 622, 389, 1937, 1345, 548, 1435, 261, 7606, 358, 374, 16, 425, 18, 75, 18, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 27, 5340, 37, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 37, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 2713, 389, 2972, 1...
./partial_match/8453/0xda405cb8Bd7e61A926D4Be2f3Cb5BB24Fea8f43b/sources/GAME.sol
* @dev See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`./
function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; }
16,718,741
[ 1, 9704, 288, 45, 654, 39, 3462, 17, 13866, 5496, 29076, 30, 300, 1375, 869, 68, 2780, 506, 326, 3634, 1758, 18, 300, 326, 4894, 1297, 1240, 279, 11013, 434, 622, 4520, 1375, 8949, 8338, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7412, 12, 2867, 358, 16, 2254, 5034, 3844, 13, 1071, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 1758, 3410, 273, 389, 3576, 12021, 5621, 9079, 203, 3639, 389, 13866, 12, 8443, 16, 358, 16, 3844, 1769, 203, 3639, ...
pragma solidity 0.5.7; /* required for transpiler */ #define TRANSPILE /* data constants */ #define WORD_0 0 /* 32*0 = 0 */ #define WORD_1 32 /* 32*1 = 32 */ #define WORD_2 64 /* 32*2 = 64 */ #define WORD_3 96 /* 32*3 = 96 */ #define WORD_4 128 /* 32*4 = 128 */ #define WORD_5 160 /* 32*5 = 160 */ #define WO...
load exchange_id */ ensure exchange is caller */ ensure exchange is not locked */ Validate asset id */ ensure data fits in input */ check for underflow (quantity > user_exchange_balance), then need to dip into exchange_balance_remaining if user_exchange_balance isn't enough/ prevent overflow */ prevent overflow */
assembly { SECURITY_FEATURE_CHECK(FEATURE_EXCHANGE_TRANSFER_FROM, /* REVERT(0) */ 0) let data_len := mload(data) let cursor := add(data, WORD_1) let cursor_end := add(cursor, data_len) let header_0 := CURSOR_LOAD(ExchangeTransfersHeader, /* REVERT(1) */ 1) let exchange_id := at...
14,122,952
[ 1, 945, 7829, 67, 350, 342, 3387, 7829, 353, 4894, 342, 3387, 7829, 353, 486, 8586, 342, 3554, 3310, 612, 342, 3387, 501, 13351, 316, 810, 342, 866, 364, 3613, 2426, 261, 16172, 405, 729, 67, 16641, 67, 12296, 3631, 1508, 1608, 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, 19931, 288, 203, 1377, 27713, 67, 18257, 67, 10687, 12, 18257, 67, 2294, 14473, 67, 16596, 6553, 67, 11249, 16, 1748, 2438, 21654, 12, 20, 13, 1195, 374, 13, 203, 203, 1377, 2231, 501, 67, 1897, 519, 312, 945, 12, 892, 13,...
./full_match/1/0xD835dbD135AD8a27214ecdEE79E7a41337865648/sources/src/FeeOperator.sol
* @notice Removes a fee collector @param feeCollector address of the fee collector/
function removeFeeCollector(address feeCollector) external onlyAdmin { if (!isFeeCollector(feeCollector)) { revert NotFeeCollector(); } _feeCollectors[feeCollector] = false; emit FeeCollectorRemoved(feeCollector); }
16,544,667
[ 1, 6220, 279, 14036, 8543, 225, 14036, 7134, 1758, 434, 326, 14036, 8543, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1206, 14667, 7134, 12, 2867, 14036, 7134, 13, 3903, 1338, 4446, 288, 203, 3639, 309, 16051, 291, 14667, 7134, 12, 21386, 7134, 3719, 288, 203, 5411, 15226, 2288, 14667, 7134, 5621, 203, 3639, 289, 203, 3639, 389, 21386, 1...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import "../shared/CoreController.sol"; import "@gif-interface/contracts/modules/IRegistry.sol"; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract RegistryController is IRegistr...
* @dev get current release/
function getRelease() external override view returns (bytes32 _release) { _release = release; }
7,313,568
[ 1, 588, 783, 3992, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 7391, 1435, 7010, 3639, 3903, 3849, 1476, 7010, 3639, 1135, 261, 3890, 1578, 389, 9340, 13, 7010, 565, 288, 203, 3639, 389, 9340, 273, 3992, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; // Part: OpenZeppelin/openzeppelin-contracts@4.3.1/Context /** * @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 s...
* @dev Calculates actual amount to pay, amount to receive and new swap limits after swap @param _swapLimits Swap limits array @param amountToSend Maximum amount of tokens to send @param checkIfSwapEnabled Check if swap enabled for a ratio @return swapLimitsNew Swap limits after deposit is processed @return amountToPay ...
function calculateAmountsAfterSwap( uint256[3] memory _swapLimits, uint256 amountToSend, bool checkIfSwapEnabled ) public view returns ( uint256[3] memory swapLimitsNew, uint256 amountToPay, uint256 amountToReceive) { amountToReceive = 0; uint256 remainder = a...
522,460
[ 1, 10587, 3214, 3844, 358, 8843, 16, 3844, 358, 6798, 471, 394, 7720, 8181, 1839, 7720, 225, 389, 22270, 12768, 12738, 8181, 526, 225, 3844, 28878, 18848, 3844, 434, 2430, 358, 1366, 225, 19130, 12521, 1526, 2073, 309, 7720, 3696, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6275, 87, 4436, 12521, 12, 203, 3639, 2254, 5034, 63, 23, 65, 3778, 389, 22270, 12768, 16, 203, 3639, 2254, 5034, 3844, 28878, 16, 203, 3639, 1426, 19130, 12521, 1526, 203, 565, 262, 1071, 1476, 1135, 261, 203, 36...
./full_match/4/0xe041cD717160fd91B3CdF971E03fff615a2dA9bF/sources/contracts/01_MemberToken.sol
Autogenerated control variablesWeed IPFS metadata per season goes here:string someIPFSRelatedData;
struct MemberTokenStats { string memberTokenName; uint256 nextTokenId; }
735,980
[ 1, 7150, 717, 7489, 3325, 3152, 3218, 329, 2971, 4931, 1982, 1534, 15874, 13998, 2674, 30, 1080, 2690, 2579, 4931, 8017, 751, 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, ...
[ 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, 1958, 8596, 1345, 4195, 288, 203, 3639, 533, 3140, 1345, 461, 31, 203, 3639, 2254, 5034, 9617, 548, 31, 203, 540, 203, 565, 289, 203, 27699, 377, 203, 377, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
//Address: 0x882448f83d90b2bf477af2ea79327fdea1335d93 //Contract name: VIBEXToken //Balance: 0 Ether //Verification Date: 8/21/2017 //Transacion Count: 3450 // CODE STARTS HERE contract SafeMath { function safeAdd(uint256 x, uint256 y) internal returns(uint256) { uint256 z = x + y; assert((z >= ...
At least TOKEN_MIN tokens have to be redeemed
require(vibeVal >= TOKEN_MIN);
2,556,963
[ 1, 861, 4520, 14275, 67, 6236, 2430, 1240, 358, 506, 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, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 90, 495, 73, 3053, 1545, 14275, 67, 6236, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.5.0; import "./BaseContentManagement.sol"; contract Catalog { address payable public creator; uint premiumTime; uint public premiumPrice; bytes32[] contentList; uint public paymentDelay; uint allTheViews; constructor() public{ creator = msg.sender; /* 1 d...
Check that the caller is the content contract */
modifier onlyContentOwner(bytes32 _content){ require( addedContents[_content].owner == msg.sender, "Action allowed only for content creator!" ); _; }
7,312,363
[ 1, 1564, 716, 326, 4894, 353, 326, 913, 6835, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 1350, 5541, 12, 3890, 1578, 389, 1745, 15329, 203, 3639, 2583, 12, 203, 5411, 3096, 6323, 63, 67, 1745, 8009, 8443, 422, 1234, 18, 15330, 16, 203, 5411, 315, 1803, 2935, 1338, 364, 913, 11784, 4442, 21281, 3639, ...
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import {SafeMath} from '../dependencies/openzeppelin/contracts/SafeMath.sol'; import {IERC20} from '../dependencies/openzeppelin/contracts/IERC20.sol'; import {IERC20Detailed} from '../dependencies/openzeppelin/contracts/IER...
This is only required to initialize BaseParaSwapSellAdapter
) public BaseParaSwapSellAdapter(addressesProvider, augustusRegistry) { }
1,599,618
[ 1, 2503, 353, 1338, 1931, 358, 4046, 3360, 23529, 12521, 55, 1165, 4216, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 262, 1071, 3360, 23529, 12521, 55, 1165, 4216, 12, 13277, 2249, 16, 31350, 641, 407, 4243, 13, 288, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File: contracts/components/Proxy.sol /* Copyright 2019 Wanchain Foundation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless requi...
@notice storeman tx info
struct SmgTx { BaseTx baseTx; uint tokenPairID; uint value; }
882,903
[ 1, 2233, 4728, 225, 2229, 1123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 9425, 75, 4188, 288, 203, 3639, 3360, 4188, 1026, 4188, 31, 203, 3639, 2254, 1147, 4154, 734, 31, 203, 3639, 2254, 460, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2022-04-07 */ /** Happiness can be found, even in the darkest of times, if one only remembers to turn on the light. **/ // SPDX-License-Identifier: MIT pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0; pragma experimental ABIEncoderV2; ////// lib/openzeppelin-co...
set as marketing wallet
marketingWallet = address(0x899FFD86473533Fa1788514229649A0E276e57fe);
2,341,923
[ 1, 542, 487, 13667, 310, 9230, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 13667, 310, 16936, 273, 1758, 12, 20, 92, 28, 2733, 2246, 40, 28, 30792, 4763, 3707, 29634, 4033, 5482, 25, 3461, 3787, 29, 1105, 29, 37, 20, 41, 5324, 26, 73, 10321, 3030, 1769, 225, 2, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.6; contract VersionedAgreementControll { // Store the owner address address public owner; // Constructor function VersionedAgreementControll() { owner = msg.sender; } /** Stores the subscriber information */ struct SubscriberData { ad...
store subscribers data
SubscriberData[] subscribersInfos;
14,060,090
[ 1, 2233, 16768, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 21339, 751, 8526, 16768, 7655, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.12; // Part: OpenZeppelin/openzeppelin-contracts@3.4.0/Address /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * I...
50 for community giveaways, 50 for team
uint256 public constant MAX_TEAM_GNOMES = 100;
636,620
[ 1, 3361, 364, 19833, 8492, 69, 3052, 16, 6437, 364, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5381, 4552, 67, 1448, 2192, 67, 43, 3417, 958, 55, 273, 2130, 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, ...
./full_match/11155111/0xE1350B9B29658498fB22907cc93Bdbfb6e2F9E56/sources/contracts/gauges/StakelessGauge.sol
If the period crosses an epoch, we calculate a reduction in the rate using the same formula as used in `BalancerTokenAdmin`. We perform the calculation locally instead of calling to `BalancerTokenAdmin.rate()` because we are generating the emissions for the upcoming week, so there is a possibility the new rate has not...
function checkpoint() external payable override nonReentrant returns (bool) { require(msg.sender == address(_authorizerAdaptor), "SENDER_NOT_ALLOWED"); uint256 lastPeriod = _period; uint256 currentPeriod = _currentPeriod(); if (lastPeriod < currentPeriod) { _gaugeControl...
3,841,642
[ 1, 2047, 326, 3879, 6828, 281, 392, 7632, 16, 732, 4604, 279, 20176, 316, 326, 4993, 1450, 326, 1967, 8013, 487, 1399, 316, 1375, 6444, 1345, 4446, 8338, 1660, 3073, 326, 11096, 13760, 3560, 434, 4440, 358, 1375, 6444, 1345, 4446, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 9776, 1435, 3903, 8843, 429, 3849, 1661, 426, 8230, 970, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 1758, 24899, 4161, 1824, 29888, 3631, 315, 1090, 18556, 67, 4400, 67, 16852, 8863, 203, 3639, ...
pragma solidity ^0.4.15; //import './lib/safeMath.sol'; /** * @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 ...
10 % alloaction of totalSupply
saftInvestorAllocation = 10 * 10 ** 25 ;
931,166
[ 1, 2163, 738, 524, 383, 1128, 434, 2078, 3088, 1283, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 7864, 1222, 3605, 395, 280, 17353, 273, 1728, 380, 1728, 2826, 6969, 274, 6647, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; contract MarriageCertificateCreator { /// @title MarriageCertificateCreator /// @author Claude Barde MarriageCertificate[] public certificates; address payable public owner; uint public certificateFee; string[3] public lastMarriage; constructor() public { ...
we log the new balance
emit LogBalance(address(this).balance, accounts["joint"], accounts["savings"]);
2,508,689
[ 1, 1814, 613, 326, 394, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3626, 1827, 13937, 12, 2867, 12, 2211, 2934, 12296, 16, 9484, 9614, 16452, 6, 6487, 9484, 9614, 87, 27497, 11929, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.21; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract SNOOP { // Public variables of the token string public name; string public symbol; uint8 public decimals = 6; uint256 public totalSupply;...
All initial tokens
balanceOf[msg.sender] = 15000000000000;
14,663,361
[ 1, 1595, 2172, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 11013, 951, 63, 3576, 18, 15330, 65, 273, 4711, 12648, 2787, 31, 2868, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...