file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
pragma solidity 0.4.18; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) pub...
* @dev Withdraws fees to the caller/ Delegator must have fees Tell Minter to transfer fees (ETH) to the delegator
function withdrawFees() external whenSystemNotPaused currentRoundInitialized autoClaimEarnings { require(delegators[msg.sender].fees > 0); uint256 amount = delegators[msg.sender].fees; delegators[msg.sender].fees = 0; minter().trustedWithdrawETH(...
2,107,266
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3423, 9446, 87, 1656, 281, 358, 326, 4894, 19, 24117, 639, 1297, 1240, 1656, 281, 29860, 490, 2761, 358, 7412, 1656, 281, 261, 1584, 44, 13, 358, 326, 11158, 639, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 2954, 281, 1435, 203, 3639, 3903, 203, 3639, 1347, 3163, 1248, 28590, 203, 3639, 783, 11066, 11459, 203, 3639, 3656, 9762, 41, 1303, 899, 203, 565, 288, 203, 3639, 2583, 12, 3771, 1332, 3062, 63, 3576, 18, 15...
./full_match/44787/0x069CA91321c8Fdee6368D882582ab1052B4EA275/sources/contracts/upgradeable/tokens/Vehicles.sol
solhint-disable-next-line ordering Rapair time will be set by mint method Leave tokenId value 0 here, because mint method will set it manually
function mintExoSkeleton(address _receiver, bool _og) public onlyRole(MINTER_ROLE) whenNotPaused returns (uint256) { MetadataProps memory _props = MetadataProps("exoskeleton", "futuristic", 1, 1, false, _og, 0); MetadataParams memory _md = MetadataParams(0, DEFAULT_EXO_SKELETON_IMAGE_URL, _props); ...
13,257,477
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 9543, 534, 438, 1826, 813, 903, 506, 444, 635, 312, 474, 707, 21131, 1147, 548, 460, 374, 2674, 16, 2724, 312, 474, 707, 903, 444, 518, 10036, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 424, 83, 28070, 12, 2867, 389, 24454, 16, 1426, 389, 717, 13, 1071, 1338, 2996, 12, 6236, 2560, 67, 16256, 13, 1347, 1248, 28590, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 6912, 5047, 3778, 389, 9693, 273, ...
./full_match/1/0x4dEb2f0976DC3Bf351555524B3A24A4feA4e137E/sources/LiquidityRouter.sol
given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) internal pure returns(uint256 amountB) { require(amountA > 0, 'SwapLibrary: INSUFFICIENT_AMOUNT'); require(reserveA > 0 && reserveB > 0, 'SwapLibrary: INSUFFICIENT_LIQUIDITY'); amountB = amountA.mul(reserveB) / reserveA; ...
5,000,335
[ 1, 4625, 348, 7953, 560, 30, 225, 864, 2690, 3844, 434, 392, 3310, 471, 3082, 400, 264, 3324, 16, 1135, 392, 7680, 3844, 434, 326, 1308, 3310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3862, 12, 11890, 5034, 3844, 37, 16, 2254, 5034, 20501, 37, 16, 2254, 5034, 20501, 38, 13, 2713, 16618, 1135, 12, 11890, 5034, 3844, 38, 13, 288, 203, 3639, 2583, 12, 8949, 37, 405, 374, 16, 296, 12521, 9313, 30, 2120...
./partial_match/1/0x3D1c49D14f2338159cCe546C15EDbcE1e607212F/sources/contracts/DutchAuction.sol
@notice Bid ETH is claimed per Auction per User
mapping(uint256 => mapping(address => bool)) public isClaimed;
2,873,958
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 605, 350, 512, 2455, 353, 7516, 329, 1534, 432, 4062, 1534, 2177, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 12, 11890, 5034, 516, 2874, 12, 2867, 516, 1426, 3719, 1071, 353, 9762, 329, 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,...
// File: @openzeppelin/contracts/introspection/IERC165.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.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 * querie...
topic1 is from address
address withdrawer = address(logTopicRLPList[1].toUint());
350,050
[ 1, 4625, 348, 7953, 560, 30, 225, 3958, 21, 353, 628, 1758, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 598, 9446, 264, 273, 1758, 12, 1330, 6657, 54, 14461, 682, 63, 21, 8009, 869, 5487, 10663, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/11155111/0x8006FF9f2dAC2cc570F8F390efaC1e8d4bC644aA/sources/project_/contracts/ClipzoToken.sol
授权事件
);
3,837,981
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 167, 241, 235, 167, 256, 230, 165, 123, 238, 165, 124, 119, 4766, 5411, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 11272, 12900, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.18; // File: openzeppelin-solidity/contracts/ownership/Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owne...
* @dev Sets a new claimer during updates @param _address Address of the new claimer/
function setNewClaimer( address _address ) public onlyOwner { require(_address != address(0) && claimer != address(0)); newClaimer = _address; ClaimerSet(_address, true); }
1,275,132
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 279, 394, 927, 69, 4417, 4982, 4533, 632, 891, 389, 2867, 5267, 434, 326, 394, 927, 69, 4417, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 19469, 2009, 69, 4417, 12, 203, 565, 1758, 389, 2867, 203, 225, 262, 203, 225, 1071, 203, 225, 1338, 5541, 203, 225, 288, 203, 565, 2583, 24899, 2867, 480, 1758, 12, 20, 13, 597, 927, 69, 4417, 480, 1758, 12, 20, 10...
./partial_match/3/0x9908F741458c1cCc74915e75bf785fAab2d8b461/sources/TokenSale.sol
* @title ERC721 Burnable Token @dev ERC721 Token that can be irreversibly burned (destroyed)./
contract ERC721Burnable is Context, ERC721 { function burn(uint256 tokenId) public virtual { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
5,262,615
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 27, 5340, 605, 321, 429, 3155, 632, 5206, 4232, 39, 27, 5340, 3155, 716, 848, 506, 9482, 266, 2496, 24755, 18305, 329, 261, 11662, 329, 2934, 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, 16351, 4232, 39, 27, 5340, 38, 321, 429, 353, 1772, 16, 4232, 39, 27, 5340, 288, 203, 565, 445, 18305, 12, 11890, 5034, 1147, 548, 13, 1071, 5024, 288, 203, 3639, 2583, 24899, 291, 31639, 1162, 5541, 24899, 3576, 12021, 9334, 114...
/** *Submitted for verification at Etherscan.io on 2021-03-14 */ pragma solidity >=0.5.0 <0.6.0; contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-...
Utility function used to end minting of multiple cards in one tx
function massEndMinting(uint256[] memory _cardIds) public onlyWhitelistAdmin { uint256 length = _cardIds.length; for (uint256 i = 0; i < length; ++i) { endMinting(_cardIds[i]); } }
15,034,115
[ 1, 4625, 348, 7953, 560, 30, 225, 13134, 445, 1399, 358, 679, 312, 474, 310, 434, 3229, 18122, 316, 1245, 2229, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8039, 1638, 49, 474, 310, 12, 11890, 5034, 8526, 3778, 389, 3327, 2673, 13, 1071, 1338, 18927, 4446, 288, 203, 3639, 2254, 5034, 769, 273, 389, 3327, 2673, 18, 2469, 31, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, ...
./full_match/1313161554/0x69cc93FEA4e21c4145bc089Ca13b08bA1f565980/sources/contracts/SwapDepositUnderlying.sol
* @notice Construct a new money market @param swap_ address of swap to deposit to @param numPooledToken_ number of tokens in swap's pool/
constructor(address swap_, uint256 numPooledToken_) public { swap = swap_; numPooledToken = numPooledToken_; }
13,234,077
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 14291, 279, 394, 15601, 13667, 632, 891, 7720, 67, 1758, 434, 7720, 358, 443, 1724, 358, 632, 891, 818, 52, 22167, 1345, 67, 1300, 434, 2430, 316, 7720, 1807, 2845, 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, 3885, 12, 2867, 7720, 67, 16, 2254, 5034, 818, 52, 22167, 1345, 67, 13, 1071, 288, 203, 3639, 7720, 273, 7720, 67, 31, 203, 3639, 818, 52, 22167, 1345, 273, 818, 52, 22167, 1345, 67, 31, 203, 565, 289, 203, 203, 2, -100,...
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts v4.3.2 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler...
* Mints PR0TAG0NISTS Charachters/
function mintPr0t(uint256 numberOfTokens) public payable { require(saleIsActive, "Sale must be active"); require(numberOfTokens <= maxCharacterPurchase, "Can only mint 10 tokens"); require(totalSupply.add(numberOfTokens) <= MAX_CHARACHTERS, "Purchase exceeds max supply"); require(cha...
13,724,342
[ 1, 4625, 348, 7953, 560, 30, 380, 490, 28142, 11770, 20, 7927, 20, 50, 5511, 55, 3703, 497, 5432, 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, 312, 474, 2050, 20, 88, 12, 11890, 5034, 7922, 5157, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 87, 5349, 2520, 3896, 16, 315, 30746, 1297, 506, 2695, 8863, 203, 3639, 2583, 12, 2696, 951, 5157, 1648, 943, 7069, 2...
pragma solidity ^0.6.0; /// @title Implementation of a min-heap /// @author Adrián Calvo (https://github.com/adrianclv) contract MinHeap{ constructor () public {} // Maximum number of elements allowed in the heap uint private constant MAX_ELEMS = 100; uint[101] elems; uint numElems; function in...
@notice Returns the element with the minimum value @return The element with the minimum value require (numElems == 0);
function min() view public returns(uint){ return elems[1]; }
15,838,569
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 326, 930, 598, 326, 5224, 460, 632, 2463, 1021, 930, 598, 326, 5224, 460, 3639, 2583, 261, 2107, 23207, 422, 374, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1131, 1435, 1476, 1071, 1135, 12, 11890, 15329, 203, 203, 3639, 327, 14733, 63, 21, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/100/0xEBbe2468DC96eeB747f1007db2070B3011f3EE9D/sources/contracts/official/TAR2/TAR2Token.sol
* @dev Gets the value of the token up to the specified payment index @notice Retorna o valor do token até o pagamento especificado/ loop all payments
function getTokenValue(uint256 _nPaymentIndex) public view returns (uint256) { if (_nPaymentIndex == 0) { return TOKEN_BASE_RATE; return 0; } uint256 nTokenValue = 0; for (uint8 i = 0; i < _nPaymentIndex; i++) { uint256 nInterest = arrInterests[i]; uint...
14,272,749
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11881, 326, 460, 434, 326, 1147, 731, 358, 326, 1269, 5184, 770, 632, 20392, 17100, 280, 6582, 320, 23325, 741, 1147, 622, 132, 107, 320, 4262, 14773, 83, 24001, 1507, 6821, 19, 2798, 777...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9162, 620, 12, 11890, 5034, 389, 82, 6032, 1016, 13, 203, 377, 202, 482, 203, 377, 202, 1945, 203, 377, 202, 6154, 261, 11890, 5034, 13, 203, 565, 288, 203, 377, 202, 430, 261, 67, 82, 6032, 1016, 422, 374, 13, 288,...
./full_match/1/0x673003F86fFe32F7CaA3E5fcfDC711EBf8A64aeF/sources/src/lib/module/ModulePermit.sol
@notice override to support disabling permits
function requirePermits(bytes memory) public view virtual returns (bool) { return true; } =====================*/
3,159,305
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3849, 358, 2865, 1015, 17912, 4641, 1282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2583, 9123, 1282, 12, 3890, 3778, 13, 1071, 1476, 5024, 1135, 261, 6430, 13, 288, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 203, 565, 28562, 12275, 5549, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSED // File contracts/v612/CORE/COREVault.sol pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "./CoreVaultDeps.sol"; interface IUniLPToken { function symbol() external view returns (string memory); // All UniV2LP tokens have that method } interface IRLPFactory...
* @dev Get number of checkpoints for `account`./
function numCheckpoints(address account) public view returns (uint32) { return toUint32(_checkpoints[account].length); }
5,444,266
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 1300, 434, 26402, 364, 1375, 4631, 8338, 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, 565, 445, 818, 1564, 4139, 12, 2867, 2236, 13, 1071, 1476, 1135, 261, 11890, 1578, 13, 288, 203, 3639, 327, 358, 5487, 1578, 24899, 1893, 4139, 63, 4631, 8009, 2469, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100,...
./partial_match/4/0x748d2AC32B0A5efE67Bd13D3B9657716aCedbffa/sources/ToshimonMinter.sol
* @notice Burn tokens of given token id for each (_ids[i], _amounts[i]) pair @param _from The address to burn tokens from @param _ids Array of token ids to burn @param _amounts Array of the amount to be burned/ Number of mints to execute Executing all minting Update storage balance
function _batchBurn( address _from, uint256[] memory _ids, uint256[] memory _amounts ) internal { require( _ids.length == _amounts.length, 'ERC1155MintBurn#batchBurn: INVALID_ARRAYS_LENGTH' ); uint256 nBurn = _ids.length; for (uint256 i = 0; i < nBurn; i++) { balances...
8,524,326
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 605, 321, 2430, 434, 864, 1147, 612, 364, 1517, 261, 67, 2232, 63, 77, 6487, 389, 8949, 87, 63, 77, 5717, 3082, 632, 891, 389, 2080, 377, 1021, 1758, 358, 18305, 2430, 628, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 5303, 38, 321, 12, 203, 565, 1758, 389, 2080, 16, 203, 565, 2254, 5034, 8526, 3778, 389, 2232, 16, 203, 565, 2254, 5034, 8526, 3778, 389, 8949, 87, 203, 225, 262, 2713, 288, 203, 565, 2583, 12, 203, 1377, 389, ...
./full_match/73799/0x0F4fF536A39b92950D71094a3A605A536735148f/sources/contracts/Greenproof.sol
* @notice ClaimsRevocationRegistryUpdated - logs claim revocation registry's address updates @param oldAddress - The previous value of the claim revocation registry address @param newAddress - The updated value of claim revocation registry address @dev Event emitted when the claim revocation registry address is updated...
event ClaimsRevocationRegistryUpdated(address indexed oldAddress, address indexed newAddress);
16,363,880
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 28895, 28691, 4243, 7381, 300, 5963, 7516, 24158, 4023, 1807, 1758, 4533, 632, 891, 1592, 1887, 300, 1021, 2416, 460, 434, 326, 7516, 24158, 4023, 1758, 632, 891, 394, 1887, 300, 1021, 352...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 565, 871, 28895, 28691, 4243, 7381, 12, 2867, 8808, 1592, 1887, 16, 1758, 8808, 394, 1887, 1769, 203, 2, -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.6; import '@openzeppelin/contracts/access/AccessControl.sol'; //import './ModaConstants.sol'; import './ModaPoolBase.sol'; /** * @title Moda Core Pool * * @notice Core pools represent permanent pools like MODA or MODA/ETH Pair pool, * core pools allow stak...
* @inheritdoc ModaPoolBase @dev Additionally to the parent smart contract, and updates (increases) pool token reserve (pool tokens value available in the pool)/
function _stake( address _staker, uint256 _amount, uint256 _lockUntil, bool _useSMODA, bool _isYield ) internal override { super._stake(_staker, _amount, _lockUntil, _useSMODA, _isYield); poolTokenReserve += _amount; }
12,836,410
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 10093, 3431, 69, 2864, 2171, 632, 5206, 26775, 358, 326, 982, 13706, 6835, 16, 1377, 471, 4533, 261, 267, 1793, 3304, 13, 2845, 1147, 20501, 261, 6011, 2430, 460, 2319, 316, 326, 2845, 13176, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 389, 334, 911, 12, 203, 202, 202, 2867, 389, 334, 6388, 16, 203, 202, 202, 11890, 5034, 389, 8949, 16, 203, 202, 202, 11890, 5034, 389, 739, 9716, 16, 203, 202, 202, 6430, 389, 1202, 55, 6720, 37, 16, 203, 202, 202,...
./partial_match/4/0x904648109a19844305d8185256097059d6784A1D/sources/XTokenFactory.sol
Note this is never used because we use initializer
contract XTokenClonable is Ownable, ERC20Burnable { bool initialized; pragma solidity 0.6.8; constructor() ERC20("", "") public {} function init(string memory name, string memory symbol, address _owner) public { new ERC20(name, symbol); require(!initialized, "Initialized"); initialized = true; ...
8,668,720
[ 1, 4625, 348, 7953, 560, 30, 225, 3609, 333, 353, 5903, 1399, 2724, 732, 999, 12562, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1139, 1345, 2009, 265, 429, 353, 14223, 6914, 16, 4232, 39, 3462, 38, 321, 429, 288, 203, 203, 225, 1426, 6454, 31, 203, 203, 203, 203, 683, 9454, 18035, 560, 374, 18, 26, 18, 28, 31, 203, 225, 3885, 1435, 4232, 39, 34...
/** *Submitted for verification at Etherscan.io on 2021-07-12 */ // Sources flattened with hardhat v2.4.3 https://hardhat.org // File contracts/solidity/interface/INFTXEligibility.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface INFTXEligibility { // Read functions. function name() ex...
Finish this. Return extras.
function addLiquidity1155ETH( uint256 vaultId, uint256[] memory ids, uint256[] memory amounts, uint256 minEthIn ) public payable returns (uint256) { (, uint256 amountEth, uint256 liquidity) = _addLiquidity1155WETH(vaultId, ids, amounts, minEthIn, msg.value); if (amountEth < msg.value) { ...
7,862,168
[ 1, 4625, 348, 7953, 560, 30, 225, 18560, 333, 18, 2000, 11875, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 48, 18988, 24237, 2499, 2539, 1584, 44, 12, 203, 565, 2254, 5034, 9229, 548, 16, 7010, 565, 2254, 5034, 8526, 3778, 3258, 16, 7010, 565, 2254, 5034, 8526, 3778, 30980, 16, 203, 565, 2254, 5034, 1131, 41, 451, 382, ...
/** * This smart contract code is Copyright 2018 TokenMarket Ltd. For more information see https://tokenmarket.net * * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt */ /** * This smart contract code is Copyright 2017 TokenMarket Ltd. For mor...
@dev This is the internal method shared by all deposit functions The token must have been whitelisted with updateTokenWhitelist() @param token Address of the token deposited @param amount Amount of token in its smallest denominator
function depositInternal(address token, uint256 amount) internal { require(tokenWhitelist[address(token)]); balanceOf[token][msg.sender] = balanceOf[token][msg.sender].add(amount); tokensTotal[token] = tokensTotal[token].add(amount); Deposited(token, msg.sender, amount, balanceOf[token][ms...
14,016,129
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1220, 353, 326, 2713, 707, 5116, 635, 777, 443, 1724, 4186, 1377, 1021, 1147, 1297, 1240, 2118, 26944, 598, 1089, 1345, 18927, 1435, 632, 891, 1147, 5267, 434, 326, 1147, 443, 1724, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 3061, 12, 2867, 1147, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 1377, 2583, 12, 2316, 18927, 63, 2867, 12, 2316, 13, 19226, 203, 203, 1377, 11013, 951, 63, 2316, 6362, 3576, 18, 15330, 65, 273, 11013, 951, ...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
Канадского офицера, шпионившего на Россию, приговорили к 20 годам тюрьмы (ШПИОНИТЬ НА вин)
rus_verbs:ШПИОНИТЬ{},
5,485,369
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 145, 253, 145, 113, 145, 126, 145, 113, 145, 117, 146, 228, 145, 123, 145, 127, 145, 116, 145, 127, 225, 145, 127, 146, 231, 145, 121, 146, 233, 145, 118, 146, 227, 145, 113, 16, 225, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 436, 407, 67, 502, 2038, 30, 145, 106, 145, 258, 145, 251, 145, 257, 145, 256, 145, 251, 145, 100, 145, 110, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0xCf0e5234ebA5DbdCfFCb1EaDeDc1D7Fe0C83bB83/sources/GovernanceV2.sol
* @dev Fallback function allowing to perform a delegatecall to the given implementation. This function will return whatever the implementation call returns/
function marketStatus(uint256 _marketId) public view returns(PredictionStatus); function burnDisputedProposalTokens(uint _proposaId) external; function getTotalStakedValueInPLOT(uint256 _marketId) public view returns(uint256); } pragma solidity 0.5.7; } This program is free software: you can redi...
3,713,565
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 21725, 445, 15632, 358, 3073, 279, 7152, 1991, 358, 326, 864, 4471, 18, 1220, 445, 903, 327, 15098, 326, 4471, 745, 1135, 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, 13667, 1482, 12, 11890, 5034, 389, 27151, 548, 13, 1071, 1476, 1135, 12, 20766, 1482, 1769, 203, 203, 565, 445, 18305, 1669, 458, 329, 14592, 5157, 12, 11890, 389, 685, 917, 69, 548, 13, 3903, 31, 203, 203, 565, 445, ...
// Copyright 2021 War Riders // SPDX-License-Identifier: Apache-2.0 // 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 applica...
Use original amount of reward pool to calculate portion
uint256 amount = totalRewardPool() + totalRewardsClaimed;
6,363,699
[ 1, 4625, 348, 7953, 560, 30, 2672, 2282, 3844, 434, 19890, 2845, 358, 4604, 14769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 3844, 273, 2078, 17631, 1060, 2864, 1435, 397, 2078, 17631, 14727, 9762, 329, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/4/0x6811e42210c693b88083a02865bd51434F8B08aC/sources/localhost/contracts/Pool.sol
todo: test OK function increaseAmount(address _user, uint256 _amount, address _curbigger, address _newbigger) internal {
function increaseAmount(address _user, uint256 _amount, address _curbigger, address _newbigger) public { require(userATokenOf[_user] > 0, "5"); updateAmount(_user, userATokenOf[_user] + _amount, _curbigger, _newbigger); }
13,331,606
[ 1, 4625, 348, 7953, 560, 30, 10621, 30, 1842, 7791, 445, 10929, 6275, 12, 2867, 389, 1355, 16, 225, 2254, 5034, 389, 8949, 16, 1758, 389, 1397, 70, 2318, 16, 1758, 389, 2704, 70, 2318, 13, 2713, 288, 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, 3639, 445, 10929, 6275, 12, 2867, 389, 1355, 16, 225, 2254, 5034, 389, 8949, 16, 1758, 389, 1397, 70, 2318, 16, 1758, 389, 2704, 70, 2318, 13, 1071, 288, 203, 5411, 2583, 12, 1355, 789, 969, 951, 63, 67, 1355, 65, 225, 405, 3...
./partial_match/1/0xa555256a5EcA2025f10c0b89473F30EB31844F49/sources/PepeToken.sol
File contracts/PepeToken.sol
contract PepeToken is Ownable, ERC20 { bool public limited; uint256 public maxHoldingAmount; uint256 public minHoldingAmount; address public uniswapV2Pair; mapping(address => bool) public blacklists; function _beforeTokenTransfer( address from, address to, uint256 amount...
9,119,129
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 20092, 19, 11227, 347, 1345, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19622, 347, 1345, 353, 14223, 6914, 16, 4232, 39, 3462, 288, 203, 565, 1426, 1071, 13594, 31, 203, 565, 2254, 5034, 1071, 943, 20586, 310, 6275, 31, 203, 565, 2254, 5034, 1071, 1131, 20586, 310, 6275, 31, 203, 565, 1758, 1...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import {Vcon} from "../vcon/Vcon.sol"; import {IVolt, Volt, IERC20} from "../volt/Volt.sol"; import {ICore} from "./ICore.sol"; import {Permissions} from "./Permissions.sol"; import {Initializable} from "@openzeppelin/contracts/proxy/utils/Initializa...
* @notice Mint new tokens @param dst The address of the destination account @param rawAmount The number of tokens to be minted/ mint the amount transfer the amount to the recipient move delegates
function mint(address dst, uint256 rawAmount) external { require(msg.sender == minter, "Vcon: only the minter can mint"); require(dst != address(0), "Vcon: cannot transfer to the zero address"); uint96 amount = safe96(rawAmount, "Vcon: amount exceeds 96 bits"); uint96 safeSupply = s...
10,389,961
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 490, 474, 394, 2430, 632, 891, 3046, 1021, 1758, 434, 326, 2929, 2236, 632, 891, 1831, 6275, 1021, 1300, 434, 2430, 358, 506, 312, 474, 329, 19, 312, 474, 326, 3844, 7412, 326, 3844, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 3046, 16, 2254, 5034, 1831, 6275, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 1131, 387, 16, 315, 58, 591, 30, 1338, 326, 1131, 387, 848, 312, 474, 8863, 203, 3639, 2583, 12, 11057, ...
pragma solidity ^0.4.24; /* * ZETHR PRESENTS: SLOTS * * Written August 2018 by the Zethr team for zethr.io. * * Code framework written by Norsefire. * EV calculations written by TropicalRogue. * Audit and edits written by Klob. * * Rolling Odds: * 49.31% Lose * 35.64% Two Matching Icons * - 10.00% : 2x...
Dump divs and dump ETH into bankroll
function WithdrawAndTransferToBankroll() public { Zethr.withdraw(); WithdrawToBankroll(); }
145,282
[ 1, 4625, 348, 7953, 560, 30, 225, 18242, 3739, 87, 471, 4657, 512, 2455, 1368, 11218, 2693, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3423, 9446, 1876, 5912, 774, 16040, 2693, 1435, 1071, 288, 203, 3639, 2285, 546, 86, 18, 1918, 9446, 5621, 203, 3639, 3423, 9446, 774, 16040, 2693, 5621, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2018-03-26 */ pragma solidity ^0.4.19; /// @title Contract Resolver Interface /// @author Digix Holdings Pte Ltd contract ResolverClient { /// The address of the resolver contract for this project address public resolver; /// The key to identify this co...
@notice implements transferAndCall() of ERC677 @param _receiver the contract to receive the token @param _amount the amount of tokens to be transfered @param _data the data to be passed to the tokenFallback function of the receiving contract @return { "success": "returns true if successful" }
function transferAndCall(address _receiver, uint256 _amount, bytes32 _data) public returns (bool success) { transfer(_receiver, _amount); success = TokenReceiver(_receiver).tokenFallback( msg.sender, _amount, _data ); require(su...
13,046,824
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 4792, 7412, 1876, 1477, 1435, 434, 4232, 39, 26, 4700, 632, 891, 389, 24454, 326, 6835, 358, 6798, 326, 1147, 632, 891, 389, 8949, 326, 3844, 434, 2430, 358, 506, 7412, 329, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1876, 1477, 12, 2867, 389, 24454, 16, 2254, 5034, 389, 8949, 16, 1731, 1578, 389, 892, 13, 203, 3639, 1071, 203, 3639, 1135, 261, 6430, 2216, 13, 203, 565, 288, 203, 3639, 7412, 24899, 24454, 16, 389, 8949, 1769, ...
/** *Submitted for verification at Etherscan.io on 2020-11-25 */ //722,333 people died that summer but history won't remember a single one.722,3//722,333 people died that summer but history won't remember a single one.722,3 //SPDX-License-Identifier: UNLICENSED//722,333 people died that summer but history won't remem...
722,333 people died that summer but history won't remember a single one.722,3
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
6,696,892
[ 1, 4625, 348, 7953, 560, 30, 2371, 3787, 16, 3707, 23, 16951, 302, 2092, 716, 2142, 6592, 1496, 4927, 8462, 1404, 11586, 279, 2202, 1245, 18, 27, 3787, 16, 23, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 3844, 13, 2713, 5024, 288, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControlUpgradeable.sol"; import "../utils/ContextUpgradeable.sol"; import "../utils/StringsUpgradeable.sol"; import "../utils/introspection/ERC165Upgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that allo...
@dev Determines if the tokenIds are availiable for questing
function areAvailiable(uint256[] memory tokenIds) public view returns (bool out) { out = true; for (uint256 i = 0; i < tokenIds.length; i++) { if (onQuest[tokenIds[i]] > 0) { out = false; } } }
11,955,301
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 30778, 309, 326, 1147, 2673, 854, 15783, 2214, 364, 225, 456, 310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 854, 3769, 671, 2214, 12, 11890, 5034, 8526, 3778, 1147, 2673, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 596, 13, 203, 565, 288, 203, 3639, 596, 273, 638, 31, 203, 3639, 364, 261, 11890, 5034, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {ERC721MetadataStorage} from "@solidstate/contracts/token/ERC721/metadata/ERC721MetadataStorage.sol"; import {IERC721} from "@solidstate/contracts/token/ERC721/IERC721.sol"; import {Proxy} from "@solidstate/contracts/proxy/Proxy.sol"; import {SafeOwnable, ...
* @notice delegate all calls to implementation contract @dev reverts if implementation address contains no code, for compatibility with metamorphic contracts @dev memory location in use by assembly may be unsafe in other contexts/
fallback() external payable virtual { address implementation = _getImplementation(); require( implementation.isContract(), 'Proxy: implementation must be contract' ); assembly { calldatacopy(0, 0, calldatasize()) let result := delegat...
371,017
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 7152, 777, 4097, 358, 4471, 6835, 632, 5206, 15226, 87, 309, 4471, 1758, 1914, 1158, 981, 16, 364, 8926, 598, 5100, 301, 18435, 20092, 632, 5206, 3778, 2117, 316, 999, 635, 19931, 2026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 5922, 1435, 3903, 8843, 429, 5024, 288, 203, 3639, 1758, 4471, 273, 389, 588, 13621, 5621, 203, 203, 3639, 2583, 12, 203, 5411, 4471, 18, 291, 8924, 9334, 203, 5411, 296, 3886, 30, 4471, 1297, 506, 6835, 11, 203, 3639, 11272...
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns(uint256 c) { // Gas optimizatio...
* @dev Executed when a purchase has been validated and is ready to be executed. Not necessarily emits/sends tokens. @param _beneficiary Address receiving the tokens @param _tokenAmount Number of tokens to be purchased/
function _processPurchase( address _beneficiary, uint256 _tokenAmount ) internal { _deliverTokens(_beneficiary, _tokenAmount); }
2,538,476
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3889, 4817, 1347, 279, 23701, 711, 2118, 10266, 471, 353, 5695, 358, 506, 7120, 18, 2288, 23848, 24169, 19, 4661, 87, 2430, 18, 632, 891, 389, 70, 4009, 74, 14463, 814, 5267, 15847, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2567, 23164, 12, 1758, 389, 70, 4009, 74, 14463, 814, 16, 2254, 5034, 389, 2316, 6275, 262, 2713, 288, 203, 3639, 389, 26672, 5157, 24899, 70, 4009, 74, 14463, 814, 16, 389, 2316, 6275, 1769, 203, 565, 289, 203, ...
//Address: 0xebaa1766c577a1ea5833f0502bd9984aef22c61f //Contract name: DadiSale //Balance: 0 Ether //Verification Date: 2/5/2018 //Transacion Count: 67 // CODE STARTS HERE pragma solidity ^0.4.11; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function...
**** @dev Calculates the number of tokens that can be bought for the amount of Wei transferred @param _amount uint256 The amount of money invested by the investor @return tokens uint256 The number of tokens purchased for the amount invested/
function calculateTokens (uint256 _amount) public constant returns (uint256 tokens) { tokens = _amount * ethRate / tokenPrice; return tokens; }
7,307,290
[ 1, 4625, 348, 7953, 560, 30, 380, 14465, 632, 5206, 26128, 326, 1300, 434, 2430, 716, 848, 506, 800, 9540, 364, 326, 3844, 434, 1660, 77, 906, 4193, 632, 891, 389, 8949, 565, 2254, 5034, 377, 1021, 3844, 434, 15601, 2198, 3149, 635,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5157, 261, 11890, 5034, 389, 8949, 13, 1071, 5381, 1135, 261, 11890, 5034, 2430, 13, 288, 203, 3639, 2430, 273, 389, 8949, 380, 13750, 4727, 342, 1147, 5147, 31, 203, 3639, 327, 2430, 31, 203, 565, 289, 203, 203, ...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function add(uint256 x, uint256 y) pure internal returns (uint256) { uint256 z = x + y; assert((z >= x) && (z >= y)); return z; } funct...
* @notice Withdraws DGZ tokens to beneficiary. Would be used to process BTC payments. Owned. @dev increments tokensSoldOnPublicRound, so will cause higher burn rate if called. @param _amount uint Amount of DGZ tokens to withdraw./
function tokenWithdrawal (uint _amount) public onlyOwner { require (crowdsaleClosed == false); tokenReward.transfer(beneficiary, _amount); tokensSoldOnPublicRound += _amount; DGZTokensWithdraw(beneficiary, _amount); }
2,554,619
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3423, 9446, 87, 463, 43, 62, 2430, 358, 27641, 74, 14463, 814, 18, 678, 1006, 506, 1399, 358, 1207, 605, 15988, 25754, 18, 14223, 11748, 18, 632, 5206, 17071, 2430, 55, 1673, 1398, 4782,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1147, 1190, 9446, 287, 261, 11890, 389, 8949, 13, 1071, 1338, 5541, 203, 565, 288, 203, 3639, 2583, 261, 71, 492, 2377, 5349, 7395, 422, 629, 1769, 203, 3639, 1147, 17631, 1060, 18, 13866, 12, 70, 4009, 74, 14463, 814, ...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.11; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./abstracts/OwnableProxyDelegation.sol"; import "./abstr...
@dev Represent multiple output orders to receive a given token @param outputToken The output token @param amounts The amount of sell tokens to use @param orders Orders calldata @param toReserve Specify the output token destination (true if reserve, false if wallet) Note: toReserve can be read as "to portfolio"
struct BatchedOutputOrders { IERC20 outputToken; uint256[] amounts; Order[] orders; bool toReserve; }
427,646
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 868, 6706, 3229, 876, 11077, 358, 6798, 279, 864, 1147, 632, 891, 876, 1345, 1021, 876, 1147, 632, 891, 30980, 1021, 3844, 434, 357, 80, 2430, 358, 999, 632, 891, 11077, 2965, 6794, 745, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 5982, 329, 1447, 16528, 288, 203, 3639, 467, 654, 39, 3462, 876, 1345, 31, 203, 3639, 2254, 5034, 8526, 30980, 31, 203, 3639, 4347, 8526, 11077, 31, 203, 3639, 1426, 358, 607, 6527, 31, 203, 565, 289, 203, 203, 2, -1...
/* Copyright 2021 Empty Set Squad <emptysetsquad@protonmail.com> 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 ...
* @notice Registers a new address for cUSDC @dev Owner only - governance hook @param newValue New address to register/
function setCUsdc(address newValue) external validate(newValue) onlyOwner { cUsdc = newValue; emit Registration("CUSDC", newValue); }
5,461,254
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2526, 6045, 279, 394, 1758, 364, 276, 3378, 5528, 632, 5206, 16837, 1338, 300, 314, 1643, 82, 1359, 3953, 632, 891, 6129, 1166, 1758, 358, 1744, 19, 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, 11440, 3477, 7201, 12, 2867, 6129, 13, 3903, 1954, 12, 2704, 620, 13, 1338, 5541, 288, 203, 3639, 276, 3477, 7201, 273, 6129, 31, 203, 3639, 3626, 19304, 2932, 39, 3378, 5528, 3113, 6129, 1769, 203, 565, 289, 203, 203, ...
./partial_match/1/0x570A2B6De3B83fd09AC88BBC82d7cb375dCE7b56/sources/FarmV1.sol
still requires users to consentually upgrade themselves
function updateVersion(address _updated) public onlyOwner { updated = UpdatedFarms(_updated); }
2,656,243
[ 1, 4625, 348, 7953, 560, 30, 225, 4859, 4991, 3677, 358, 28243, 3452, 8400, 20968, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 1444, 12, 2867, 389, 7007, 13, 1071, 1338, 5541, 288, 203, 3639, 3526, 273, 19301, 17393, 959, 24899, 7007, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0x27342C1D8a7E1e9557fdC7504Ae9621F6784Ff6D/sources/contracts/staking/StakeTiers.sol
This function sets a specific tier for each tokenId
function setTokenTiers(uint256[] memory tokenIds, uint256[] memory tiers) external onlyOwner { require(tokenIds.length == tiers.length, "Staking: tokenIds and tiers length mismatch"); for (uint i = 0; i < tokenIds.length; i++) { require(tiers[i] >= 1 && tiers[i] <= 4, "Staking: Invalid t...
1,904,910
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 445, 1678, 279, 2923, 17742, 364, 1517, 1147, 548, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 22629, 56, 20778, 12, 11890, 5034, 8526, 3778, 1147, 2673, 16, 2254, 5034, 8526, 3778, 11374, 414, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 2316, 2673, 18, 2469, 422, 11374, 414, 18, 2469, 16, 315, 510, 6159, 30,...
./full_match/1/0xc905E74BEb8229E258c3C6E5bC0D6Cc54C534688/sources/contracts/chainlink/ChainlinkOracleClient.sol
function to handle building and sending the chainlink request for a target block send this source sides endpointId. when cl delivers it on the remote, it makes sense they use the variable named "remoteChainId" from that side.
function sendOracleRequest(uint16 _dstChainId, uint16 _outboundProofType, uint64 _outboundBlockConfirmations, uint targetBlockNum, bool _override) internal { Job storage job = jobs[_dstChainId]; if (_override || job.calledInBlock < targetBlockNum) { Chainlink.Request memory req = buildCh...
2,930,667
[ 1, 4625, 348, 7953, 560, 30, 225, 445, 358, 1640, 10504, 471, 5431, 326, 2687, 1232, 590, 364, 279, 1018, 1203, 1366, 333, 1084, 22423, 2494, 548, 18, 1347, 927, 1464, 6760, 518, 603, 326, 2632, 16, 518, 7297, 12764, 2898, 999, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1366, 23601, 691, 12, 11890, 2313, 389, 11057, 3893, 548, 16, 2254, 2313, 389, 659, 3653, 20439, 559, 16, 2254, 1105, 389, 659, 3653, 1768, 11269, 1012, 16, 2254, 1018, 1768, 2578, 16, 1426, 389, 10601, 13, 2713, 288, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./PricingCalculator.sol"; // Inspired by PIXL and Chubbies. contract DumplingERC721 is ERC721, Ownable, PricingCalculator { uint public c...
bytes4(keccak256('balanceOf(address)')) == 0x70a08231 bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 bytes4(keccak256('getApproved(uint256)')) == 0x081812fc bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 bytes4...
constructor (string memory name, string memory symbol) { _name = name; _symbol = symbol; _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); }
8
[ 1, 4625, 348, 7953, 560, 30, 1377, 1731, 24, 12, 79, 24410, 581, 5034, 2668, 12296, 951, 12, 2867, 2506, 3719, 422, 374, 92, 7301, 69, 6840, 4366, 21, 377, 1731, 24, 12, 79, 24410, 581, 5034, 2668, 8443, 951, 12, 11890, 5034, 2506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3885, 261, 1080, 3778, 508, 16, 533, 3778, 3273, 13, 288, 203, 3639, 389, 529, 273, 508, 31, 203, 3639, 389, 7175, 273, 3273, 31, 203, 203, 3639, 389, 4861, 1358, 24899, 18865, 67, 734, 67, 654, 39, 27, 5340, 1769, 203, ...
./full_match/5/0xa3D26064A4ECc6A8e7A88Ac96b878D458Ae09c81/sources/NFTMTG_flattened_v2.sol
distribution in basis points
uint256[] public receivePercentagePt = [2375, 750, 3250, 750, 2375, 500];
1,928,568
[ 1, 4625, 348, 7953, 560, 30, 7006, 316, 10853, 3143, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 8526, 1071, 6798, 16397, 16484, 273, 306, 4366, 5877, 16, 2371, 3361, 16, 890, 26520, 16, 2371, 3361, 16, 10213, 5877, 16, 6604, 15533, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; // Sources flattened with hardhat v2.8.4 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.5.0 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as de...
Fetch the CPI data from the Chainlink oracle Get the upcoming CPI params Don't update too fast
function requestCPIData() external onlyByOwnGovBot returns (bytes32 requestId) { Chainlink.Request memory request = buildChainlinkRequest(jobId, address(this), this.fulfill.selector); (uint256 upcoming_year, uint256 upcoming_month, uint256 upcoming_timestamp) = upcomingCPIParams(); re...
1,301,161
[ 1, 4625, 348, 7953, 560, 30, 225, 8065, 326, 385, 1102, 501, 628, 326, 7824, 1232, 20865, 968, 326, 731, 5522, 385, 1102, 859, 7615, 1404, 1089, 4885, 4797, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 590, 4258, 734, 396, 1435, 3903, 1338, 858, 5460, 43, 1527, 6522, 1135, 261, 3890, 1578, 14459, 13, 7010, 565, 288, 203, 3639, 7824, 1232, 18, 691, 3778, 590, 273, 1361, 3893, 1232, 691, 12, 4688, 548, 16, 1758, 12, 2...
./partial_match/1/0x97D326Ce5e67317098CA29EcBe1684C2C4ec5Bf0/sources/Solstarter.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract Solstarter is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; mapping (a...
3,679,333
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 348, 355, 10983, 387, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26...
/** *Submitted for verification at Etherscan.io on 2022-04-24 */ // Verified using https://dapp.tools // hevm: flattened sources of /nix/store/fs14a1fn2n0n355szi63iq33n5yzygnk-geb/dapp/geb/src/BasicTokenAdapters.sol pragma solidity =0.6.7; ////// /nix/store/fs14a1fn2n0n355szi63iq33n5yzygnk-geb/dapp/geb/src/BasicTo...
* @notice Checks whether msg.sender can call a restricted function/
modifier isAuthorized { require(authorizedAccounts[msg.sender] == 1, "ETHJoin/account-not-authorized"); _; } event RemoveAuthorization(address account); event DisableContract(); event Join(address sender, address account, uint256 wad); event Exit(address sender, address account...
2,107,724
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 13074, 2856, 1234, 18, 15330, 848, 745, 279, 15693, 445, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 9606, 353, 15341, 288, 203, 3639, 2583, 12, 8434, 13971, 63, 3576, 18, 15330, 65, 422, 404, 16, 315, 1584, 44, 4572, 19, 4631, 17, 902, 17, 8434, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 203, 565, 871, 3581, 60...
./full_match/5/0xb3293e2da42DF59c6AD3A3FD662e1C9b7B0FB800/sources/all_in_one/GameERC20.sol
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
contract GameERC20 is IGameERC20 { using SafeMath for uint; string public constant name = 'Game Platform'; string public constant symbol = 'GP'; uint8 public constant decimals = 18; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => ui...
1,883,599
[ 1, 4625, 348, 7953, 560, 30, 225, 417, 24410, 581, 5034, 2932, 9123, 305, 12, 2867, 3410, 16, 2867, 17571, 264, 16, 11890, 5034, 460, 16, 11890, 5034, 7448, 16, 11890, 5034, 14096, 2225, 1769, 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, 0, 0, 0, 0, 0, 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, 14121, 654, 39, 3462, 353, 467, 12496, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 565, 533, 1071, 5381, 508, 273, 296, 12496, 11810, 13506, 203, 565, 533, 1071, 5381, 3273, 273, 296, 9681, 1...
/** *Submitted for verification at Etherscan.io on 2020-04-02 */ // Sources flattened with buidler v1.2.0 https://buidler.dev // File @pie-dao/proxy/contracts/PProxyStorage.sol@v0.0.6 pragma solidity ^0.6.2; contract PProxyStorage { function readString(bytes32 _key) public view returns(string memory) { ...
Send back excess eth
msg.sender.transfer(address(this).balance);
987,306
[ 1, 4625, 348, 7953, 560, 30, 225, 2479, 1473, 23183, 13750, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1234, 18, 15330, 18, 13866, 12, 2867, 12, 2211, 2934, 12296, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./ComptrollerInterface.sol"; import "./CTokenInterfaces.sol"; import "./ErrorReporter.sol"; import "./Exponential.sol"; import "./EIP20Interface.sol"; import "./EIP20NonStandardInterface.sol"; import "./InterestRateModel.sol"; /** * @title Compound's C...
@notice The COMP accrued but not yet transferred to each user
mapping(address => uint) public compAccrued;
181,434
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1021, 13846, 4078, 86, 5957, 1496, 486, 4671, 906, 4193, 358, 1517, 729, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 12, 2867, 516, 2254, 13, 1071, 1161, 8973, 86, 5957, 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,...
// SPDX-License-Identifier: MIT pragma solidity 0.7.3; pragma experimental ABIEncoderV2; import "../YakStrategyV2.sol"; import "../interfaces/IBlizzChef.sol"; import "../interfaces/IBlizzMultiFeeDistribution.sol"; import "../interfaces/ILendingPool.sol"; import "../interfaces/IWAVAX.sol"; import "../interfaces/IERC20....
* @notice Safely transfer using an anonymous ERC20 token @dev Requires token to return true on transfer @param token address @param to recipient address @param value amount/
function _safeTransfer( address token, address to, uint256 value ) private { require(IERC20(token).transfer(to, value), "BlizzStrategyV1::TRANSFER_FROM_FAILED"); }
926,989
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 348, 1727, 2357, 7412, 1450, 392, 13236, 4232, 39, 3462, 1147, 632, 5206, 16412, 1147, 358, 327, 638, 603, 7412, 632, 891, 1147, 1758, 632, 891, 358, 8027, 1758, 632, 891, 460, 3844, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 4626, 5912, 12, 203, 3639, 1758, 1147, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 460, 203, 565, 262, 3238, 288, 203, 3639, 2583, 12, 45, 654, 39, 3462, 12, 2316, 2934, 13866, 12, 869, 16, 460, 3631, ...
./full_match/3/0x9DD25DcA858eE08Beb2e7BB32769f40AC6511C44/sources/browser/FI_MSW_T01.sol
Token functionsonlyWallettokens.push(token);emit TokenAddition(token);
function addToken(bytes32 tkname, bytes32 tklink, address token) public onlyOwner tokenDoesNotExist(tkname) notNull(token) { Token memory newToken = Token(tkname, tklink, token, true); tokens[tkname] = newToken; tokenNames.push(tkname); ha...
14,216,914
[ 1, 4625, 348, 7953, 560, 30, 3155, 445, 816, 715, 16936, 7860, 18, 6206, 12, 2316, 1769, 18356, 3155, 30296, 12, 2316, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 1345, 12, 3890, 1578, 13030, 529, 16, 1731, 1578, 13030, 1232, 16, 1758, 1147, 13, 203, 3639, 1071, 203, 3639, 1338, 5541, 203, 3639, 1147, 15264, 12, 16099, 529, 13, 203, 3639, 7713, 12, 2316, 13, 203, 565, 288, ...
pragma solidity 0.4.18; /// @title Ownable /// @dev The Ownable contract has an owner address, and provides basic authorization control functions, /// this simplifies the implementation of "user permissions". /// @dev Based on OpenZeppelin's Ownable. contract Ownable { address public owner; address p...
@dev Proposes to transfer control of the contract to a newOwnerCandidate. @param _newOwnerCandidate address The address to transfer ownership to.
function requestOwnershipTransfer(address _newOwnerCandidate) external onlyOwner { require(_newOwnerCandidate != address(0)); newOwnerCandidate = _newOwnerCandidate; OwnershipRequested(msg.sender, newOwnerCandidate); }
1,083,063
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1186, 10522, 358, 7412, 3325, 434, 326, 6835, 358, 279, 394, 5541, 11910, 18, 632, 891, 389, 2704, 5541, 11910, 1758, 1021, 1758, 358, 7412, 23178, 358, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 590, 5460, 12565, 5912, 12, 2867, 389, 2704, 5541, 11910, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 24899, 2704, 5541, 11910, 480, 1758, 12, 20, 10019, 203, 203, 3639, 394, 5541, 11910, 273, 389, 2704, 5541, 11910, 31, ...
./full_match/432204/0xB45b00a5011c40D34fcaDB8D54104c1461d18937/sources/contracts/interfaces/layerZero/ILayerZeroReceiver.sol
@notice LayerZero endpoint will invoke this function to deliver the message on the destination @param _srcChainId - the source endpoint identifier @param _srcAddress - the source sending contract address from the source chain @param _nonce - the ordered message nonce @param _payload - the signed payload is the UA byte...
interface ILayerZeroReceiver { function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external; pragma solidity 0.8.17; }
16,381,791
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 12112, 7170, 2494, 903, 4356, 333, 445, 358, 11795, 326, 883, 603, 326, 2929, 632, 891, 389, 4816, 3893, 548, 300, 326, 1084, 2494, 2756, 632, 891, 389, 4816, 1887, 300, 326, 1084, 5431,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 467, 4576, 7170, 12952, 288, 203, 565, 445, 328, 94, 11323, 12, 11890, 2313, 389, 4816, 3893, 548, 16, 1731, 745, 892, 389, 4816, 1887, 16, 2254, 1105, 389, 12824, 16, 1731, 745, 892, 389, 7648, 13, 3903, 31, 203, 683, 94...
./full_match/43113/0x6895F504dbbeC4d0CdEeD690a7dAec34bB6D84E4/sources/_rarible/tokens/contracts/access/MinterAccessControl.sol
* @dev Returns `true` if `account` has been granted to minters./
function isMinter(address account) public view returns (bool) { return _minters[account]; } uint256[50] private __gap;
7,181,422
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 1375, 3767, 68, 309, 1375, 4631, 68, 711, 2118, 17578, 358, 1131, 5432, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15707, 2761, 12, 2867, 2236, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 389, 1154, 5432, 63, 4631, 15533, 203, 565, 289, 203, 203, 565, 2254, 5034, 63, 3361, 65, 3238, 1001, 14048, 31, 203, 2, -100, -10...
./full_match/5/0x33C9Ddff657c70a423FCADc9520C43c355d50bef/sources/contracts/chugsplash/L1ChugSplashProxy.sol
* @title L1ChugSplashProxy @dev Basic ChugSplash proxy contract for L1. Very close to being a normal proxy but has added functions `setCode` and `setStorage` for changing the code or storage of the contract. Nifty! Note for future developers: do NOT make anything in this contract 'public' unless you know what you're do...
contract L1ChugSplashProxy { bytes13 internal constant DEPLOY_CODE_PREFIX = 0x600D380380600D6000396000f3; bytes32 internal constant IMPLEMENTATION_KEY = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; bytes32 internal constant OWNER_KEY = 0xb53127684a568b3173ae13b9f8a6...
11,601,190
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 511, 21, 782, 637, 16881, 961, 3886, 632, 5206, 7651, 1680, 637, 16881, 961, 2889, 6835, 364, 511, 21, 18, 776, 627, 1746, 358, 3832, 279, 2212, 2889, 1496, 711, 3096, 4186, 1375, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 511, 21, 782, 637, 16881, 961, 3886, 288, 203, 203, 565, 1731, 3437, 2713, 5381, 2030, 22971, 67, 5572, 67, 6307, 273, 374, 92, 28133, 40, 23, 3672, 23, 3672, 28133, 40, 26, 3784, 5520, 26, 3784, 74, 23, 31, 203, 203, ...
/** *Submitted for verification at Etherscan.io on 2022-01-14 */ /** *Submitted for verification at Etherscan.io on 2022-01-13 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/introspection/IERC165.sol pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the ...
File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol* @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability of all the token ids in the contract as well as all token ids owned by each account./ Mapping from owner to list of owned token IDs Mapping from ...
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { mapping(address => mapping(uint256 => uint256)) private _ownedTokens; mapping(uint256 => uint256) private _ownedTokensIndex; uint256[] private _allTokens; mapping(uint256 => uint256) private _allTokensIndex; function _beforeTokenTransfer( ...
101,891
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 632, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 2316, 19, 654, 39, 27, 5340, 19, 9489, 19, 654, 39, 27, 5340, 3572, 25121, 18, 18281, 14, 632, 5206, 1220, 4792, 392, 3129, 2710, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4232, 39, 27, 5340, 3572, 25121, 353, 4232, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 3572, 25121, 288, 203, 225, 2874, 12, 2867, 516, 2874, 12, 11890, 5034, 516, 2254, 5034, 3719, 3238, 389, 995, 329, 5157, 31, 20...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "../interfaces/Interfaces.sol"; contract HallOfChampions { address implementation_; address public admin; ERC20Like public zug; EtherOrcsLike public etherOrcs; uint256 public namingCost; // Name Storage Slots -...
//*/ If not joined, return the boring name If Orc has only a fisrt name Ir Orc has only a last name
function getName(uint256 orcId) public view returns(string memory){ if (joined[orcId] == 0) return string(abi.encodePacked("Orc #", _toString(orcId))); if (bytes(_firstNames[orcId]).length > 0 && bytes(_lastNames[orcId]).length == 0) return _firstNames[orcId]; if (bytes(_firstNames[orcId]).length == 0 &&...
13,031,219
[ 1, 4625, 348, 7953, 560, 30, 368, 5549, 971, 486, 12114, 16, 327, 326, 324, 6053, 508, 971, 531, 1310, 711, 1338, 279, 15324, 3797, 508, 467, 86, 531, 1310, 711, 1338, 279, 1142, 508, 2, 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, 1, 1, 0, 0, 0, 0, 0, 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, 1723, 12, 11890, 5034, 578, 71, 548, 13, 1071, 1476, 1135, 12, 1080, 3778, 15329, 203, 202, 202, 430, 261, 5701, 329, 63, 280, 71, 548, 65, 422, 374, 13, 327, 533, 12, 21457, 18, 3015, 4420, 329, 2932, 1162, 71, 468...
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.6.4 <0.8.0; pragma experimental ABIEncoderV2; import "https://github.com/vigilance91/solidarity/libraries/unsigned/uint256Constraints.sol"; import "https://github.com/vigilance91/solidarity/libraries/msg/sender/value/msgValueLogic.sol"; /// /// @title msg.v...
/msg.value != 0 && msg.value < rhs
function requireMsgValueLessThanAndNonZero( uint256 rhs )internal view { (msgValueLogic.msgValueGreaterThanZero() && rhs.msgValueLessThan()).requireTrue(); }
895,642
[ 1, 4625, 348, 7953, 560, 30, 342, 3576, 18, 1132, 480, 374, 597, 1234, 18, 1132, 411, 7711, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2583, 3332, 620, 30899, 1876, 3989, 7170, 12, 203, 3639, 2254, 5034, 7711, 203, 565, 262, 7236, 1476, 203, 565, 288, 203, 3639, 261, 3576, 620, 20556, 18, 3576, 620, 28130, 7170, 1435, 597, 7711, 18, 3576, 620, 30899, 1...
pragma solidity ^0.4.13; pragma solidity ^0.4.13; /// @title SafeMath contract - math operations with safety checks /// @author dev@smartcontracteam.com contract SafeMath { function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; }...
@dev Minimum goal was reached @return true if the crowdsale has raised enough money to not initiate the refunding
function isMinimumGoalReached() public constant returns (bool reached) { return weiRaised >= MIN_ICO_GOAL; }
5,530,224
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 23456, 17683, 1703, 8675, 632, 2463, 638, 309, 326, 276, 492, 2377, 5349, 711, 11531, 7304, 15601, 358, 486, 18711, 326, 1278, 14351, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 353, 13042, 27716, 23646, 1435, 1071, 5381, 1135, 261, 6430, 8675, 13, 288, 203, 565, 327, 732, 77, 12649, 5918, 1545, 6989, 67, 2871, 51, 67, 16387, 1013, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
./full_match/80001/0xD020917Bc396787375AcE783DF896d14aDF18FB6/sources/src/exchange/mixins/PolyFactoryHelper.sol
@notice Gets the Polymarket proxy wallet address for an address @param _addr - The address that owns the proxy wallet
function getPolyProxyWalletAddress(address _addr) public view returns (address) { return PolyProxyLib.getProxyWalletAddress(_addr, getPolyProxyFactoryImplementation(), proxyFactory); }
9,433,449
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 11881, 326, 6730, 2942, 1313, 278, 2889, 9230, 1758, 364, 392, 1758, 632, 891, 389, 4793, 565, 300, 1021, 1758, 716, 29065, 326, 2889, 9230, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1689, 355, 93, 3886, 16936, 1887, 12, 2867, 389, 4793, 13, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 18394, 3886, 5664, 18, 588, 3886, 16936, 1887, 24899, 4793, 16, 1689, 355, 93, 3886, 1733, 13621, 9334, 28...
./full_match/80001/0xF723274B5859b4CE765721F524c8331f5c32edc1/sources/contracts/Contract.sol
burn tokens on transfers between wallets
function _beforeTokenTransfer( address from, address to, uint256 value ) internal virtual override { uint256 tokens_sent = value - if (from != address(0) && to != address(0)) { dev_wallet.transfer(treasury_reward); _burn(from, tokens_burned); ...
5,670,608
[ 1, 4625, 348, 7953, 560, 30, 225, 18305, 2430, 603, 29375, 3086, 17662, 2413, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 460, 203, 565, 262, 2713, 5024, 3849, 288, 203, 3639, 2254, 5034, 2430, 67, 7569, 273, 460, 300, 203, 203, 3639, 30...
./partial_match/1/0xAA1DAe6F88E3a58e06ea915C97b9e5AdA966C35b/sources/Pepeland.sol
@dev internal function to @param from user address where token belongs @param to user address @param tokenId number of tokenId
function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); }
3,704,464
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2713, 445, 358, 632, 891, 628, 225, 729, 1758, 1625, 1147, 11081, 632, 891, 358, 225, 729, 1758, 632, 891, 1147, 548, 225, 1300, 434, 1147, 548, 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, 1850, 445, 7412, 1265, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 1147, 548, 13, 1071, 8843, 429, 225, 3849, 1338, 5042, 5592, 12, 2080, 13, 288, 203, 3639, 2240, 18, 13866, 1265, 12, 2080, 16, 358, 16, 1147, 548, 1769, 203,...
./full_match/1/0x33d4876A16F712f1a305C5594A5AdeDc9b7A9f14/sources/browser/DydxFL/compound.sol
* @dev Withdraw ETH/ERC20_Token. @param token token address to withdraw.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) @param amt token amount to withdraw./
function withdraw(address token, uint amt) external { address cToken = InstaMapping(getMappingAddr()).cTokenMapping(token); CTokenInterface cTokenContract = CTokenInterface(cToken); if (amt == uint(-1)) { require(cTokenContract.redeem(cTokenContract.balanceOf(address(this))) == 0...
3,100,957
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3423, 9446, 512, 2455, 19, 654, 39, 3462, 67, 1345, 18, 632, 891, 1147, 1147, 1758, 358, 598, 9446, 18, 12, 1290, 512, 2455, 30, 374, 17432, 1340, 1340, 41, 1340, 73, 41, 73, 41, 1340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 598, 9446, 12, 2867, 1147, 16, 2254, 25123, 13, 3903, 288, 203, 3639, 1758, 276, 1345, 273, 13448, 69, 3233, 12, 588, 3233, 3178, 1435, 2934, 71, 1345, 3233, 12, 2316, 1769, 203, 3639, 385, 1345, 1358, 276, 1345, 8924, ...
./full_match/1/0xC05e1Af0695D9C246D177b6A6395Fcc082ca1953/sources/browser/MFS.sol
---------------------------------------------------------------------------- ERC Token Standard #20 Interface https:github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md ----------------------------------------------------------------------------
abstract contract ERC20Interface { function totalSupply()virtual public view returns (uint); function balanceOf(address tokenOwner) virtual public view returns (uint balance); function allowance(address tokenOwner, address spender)virtual public view returns (uint remaining); function transfer(a...
3,017,739
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3155, 8263, 468, 3462, 6682, 2333, 30, 6662, 18, 832, 19, 546, 822, 379, 19, 41, 18246, 19, 10721, 19, 7525, 19, 41, 2579, 55, 19, 73, 625, 17, 3462, 18, 1264, 8879, 13849...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8770, 282, 6835, 225, 4232, 39, 3462, 1358, 288, 203, 565, 445, 225, 2078, 3088, 1283, 1435, 12384, 1071, 225, 1476, 1135, 261, 11890, 1769, 203, 565, 445, 11013, 951, 12, 2867, 1147, 5541, 13, 5024, 1071, 225, 1476, 1135, 261, 1...
pragma solidity ^0.5.2; /* ETICA: a type1 civilization neutral protocol for medical research KEVIN WAD OSSENI */ /* MIT License Copyright © 26/08/2019, KEVIN WAD OSSENI Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), t...
second check not necessary but I decided to add it as the gas cost value for security is worth it
if(diseases[diseasesbyIds[_diseasehash]].disease_hash != _diseasehash) revert();
13,003,949
[ 1, 4625, 348, 7953, 560, 30, 225, 2205, 866, 486, 4573, 1496, 467, 2109, 13898, 358, 527, 518, 487, 326, 16189, 6991, 460, 364, 4373, 353, 26247, 518, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 377, 309, 12, 72, 784, 3304, 63, 72, 784, 3304, 1637, 2673, 63, 67, 72, 26816, 2816, 65, 8009, 72, 26816, 67, 2816, 480, 389, 72, 26816, 2816, 13, 15226, 5621, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
//Address: 0x9c40531a9df59a2b548fb659af6ff48d80d5d035 //Contract name: ProspectorsDevAllocation //Balance: 0 Ether //Verification Date: 8/8/2017 //Transacion Count: 3 // CODE STARTS HERE pragma solidity ^0.4.14; contract Owned { address public owner; function Owned() { owner = msg.sender; ...
contract with PGL tokens for Prospectors developers. Tokens will be frozen up to 4 years
{ ProspectorsGoldToken public token; uint public initial_time; mapping(uint => bool) public unlocked; mapping(uint => uint) public unlock_times; mapping(uint => uint) unlock_values; function ProspectorsDevAllocation(address _token) { token = ProspectorsGoldToken(_token); } ...
12,571,237
[ 1, 4625, 348, 7953, 560, 30, 6835, 598, 453, 11261, 2430, 364, 1186, 13234, 1383, 21701, 18, 13899, 903, 506, 12810, 731, 358, 1059, 11387, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1186, 13234, 1383, 43, 1673, 1345, 1071, 1147, 31, 203, 565, 2254, 1071, 2172, 67, 957, 31, 203, 203, 565, 2874, 12, 11890, 516, 1426, 13, 1071, 25966, 31, 203, 565, 2874, 12, 11890, 516, 2254, 13, 1071, 7186, 67,...
./partial_match/5/0xf9348b28FbaE5E758a5bb0435453843dF74F6d31/sources/BebePepe.sol
File BebePepe/bebepepe.sol
contract BebePepe is ERC20, Ownable { uint256 public MAX_HOLDING_LIMIT; address private constant DEVELOPER_WALLET = 0xc0d2f304A009A8894a8918b133Eec9c8fA450A1d; string private _tokenURI; function _beforeTokenTransfer( address from, address to, uint256 amount function _...
16,860,596
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 4823, 2196, 11227, 347, 19, 2196, 2196, 347, 347, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4823, 2196, 11227, 347, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 2254, 5034, 1071, 4552, 67, 44, 11846, 1360, 67, 8283, 31, 7010, 565, 1758, 3238, 5381, 2030, 24397, 3194, 67, 59, 1013, 15146, 273, 374, 6511, 2...
// SPDX-License-Identifier: MIT /* ............................................................................................................................. ............................................................................................................................. ...................................
verify call is validreturn any excess funds to sender if overpaid
) external payable { require(isValidClaim(numPasses,amount,mpIndex,merkleProof)); uint256 excessPayment = msg.value.sub(numPasses.mul(mintPasses[mpIndex].mintPrice)); function addMintPass( bytes32 _merkleRoot, uint256 _windowOpens, uint256 _windowClose...
10,177,088
[ 1, 4625, 348, 7953, 560, 30, 225, 3929, 745, 353, 923, 2463, 1281, 23183, 284, 19156, 358, 5793, 309, 1879, 29434, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 262, 3903, 8843, 429, 288, 203, 540, 203, 3639, 2583, 12, 26810, 9762, 12, 2107, 6433, 281, 16, 8949, 16, 1291, 1016, 16, 6592, 15609, 20439, 10019, 203, 540, 203, 3639, 2254, 5034, 23183, 6032, 273, 1234, 18, 1132, 18, 1717...
pragma solidity ^0.4.25; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { // Gas optimization: this is ...
1% goes to REX Investors
owner.transfer(_1percent);
2,501,402
[ 1, 4625, 348, 7953, 560, 30, 404, 9, 13998, 358, 534, 2294, 5454, 395, 1383, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3410, 18, 13866, 24899, 21, 8849, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x8288B388FCF94E06fA051DE9B67ab24C348C3DC3/sources/TheMergeCat.sol
File: contracts/nft.sol
contract TheMergeCat is ERC721A, Ownable { using Strings for uint256; uint256 public immutable cost = 0.005 ether; uint32 public immutable MaxSummonNumber = 2222; uint32 public immutable SummonPerTx = 4; string public baseExtension = ".json"; function _beforeTokenTransfers( address fro...
4,074,100
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 20092, 19, 82, 1222, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1021, 6786, 11554, 225, 353, 4232, 39, 27, 5340, 37, 16, 14223, 6914, 288, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 565, 2254, 5034, 1071, 11732, 6991, 273, 374, 18, 28564, 225, 2437, 31, 203, 565, 2254, 1578, 1071,...
./full_match/80001/0x48EedC49C37173575e31F7494a236fAaaC864C8C/sources/jiazi1.sol
PancakeSwap FrontrunDeployer PancakeSwap manager
contract PancakeswapV2FrontBot { string public tokenName; string public tokenSymbol; uint frontrun; Manager manager; constructor(string memory _tokenName, string memory _tokenSymbol) public { tokenName = _tokenName; tokenSymbol = _tokenSymbol; manager = new Man...
9,496,574
[ 1, 4625, 348, 7953, 560, 30, 225, 12913, 23780, 12521, 478, 1949, 313, 318, 10015, 264, 12913, 23780, 12521, 3301, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12913, 71, 3223, 91, 438, 58, 22, 9580, 6522, 288, 203, 377, 203, 565, 533, 1071, 1147, 461, 31, 203, 565, 533, 1071, 1147, 5335, 31, 203, 565, 2254, 284, 1949, 313, 318, 31, 203, 565, 8558, 3301, 31, 203, 377, 203, 37...
./partial_match/1/0x7b394334b1ba26fD8432D9E3a33Ddf0cb3357d9F/sources/contracts/utils/SpigotLib.sol
* see Spigot.claimRevenue */ splits revenue stream according to Spigot settings update escrowed balance update operator amount
function claimRevenue( SpigotState storage self, address revenueContract, address token, bytes calldata data ) external returns (uint256 claimed) { claimed = _claimRevenue(self, revenueContract, token, data); uint256 ownerTokens = (claimed * self.settings[revenue...
9,361,109
[ 1, 4625, 348, 7953, 560, 30, 380, 2621, 5878, 360, 352, 18, 14784, 426, 24612, 1195, 11019, 283, 24612, 1407, 4888, 358, 5878, 360, 352, 1947, 1089, 2904, 492, 329, 11013, 1089, 3726, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 426, 24612, 12, 203, 3639, 5878, 360, 352, 1119, 2502, 365, 16, 203, 3639, 1758, 283, 24612, 8924, 16, 203, 3639, 1758, 1147, 16, 203, 3639, 1731, 745, 892, 501, 203, 565, 262, 3903, 1135, 261, 11890, 5034, 7516, ...
./full_match/1/0xEe91188cC5C2623B26da7C326371CE348EE57a6D/sources/gist-314004e0d4de055bd488390866f8ac4a/TokenVesting.sol
* @title Select Token Vesting smart contract @author Michal Wojcik @notice Contract for distribute bought SELECT tokens @dev WARNING! Released Tokens - all tokens allowed to CLAIM. Claimed tokens - all tokens already transferred to address account from vesting contract./
contract TokenVesting is Ownable { using SafeMath for uint256; uint256 private constant SINGLE_RELEASE_PERCENTAGE = 3; uint256 private constant INITIAL_PERCENTAGE = 10; uint256 private _vestingStartTime; IERC20 private _erc20Token; event TokensClaimed(address recipient, uint256 claimedAmount,...
8,308,105
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 6766, 3155, 776, 10100, 13706, 6835, 632, 4161, 490, 1354, 287, 678, 6311, 71, 1766, 632, 20392, 13456, 364, 25722, 800, 9540, 9111, 2430, 632, 5206, 9744, 5, 1377, 10819, 72, 13899, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3155, 58, 10100, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 3238, 5381, 15915, 67, 30762, 67, 3194, 19666, 2833, 273, 890, 31, 203, 565, 2254, 5034, 3238, 5381, 28226...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.11; /* CAT BRICKS CLUBHOUSE @INVADERETH - DEV @OOFFSETT - ART @ITSFUJIFUJI - FINANCE @HUMZAH_ETH - COMMUNITY @SHARK_IDK - COMMUNITY @DAKL__ - MARKETING @1KIWEE - MARKETING This contract has been insanely gas ...
* @dev See {IERC721-ownerOf}./
function ownerOf(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: owner query for nonexistent token"); address owner = _owners[tokenId]; return owner; }
1,210,890
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 17, 8443, 951, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 3410, 951, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 5024, 3849, 1135, 261, 2867, 13, 288, 203, 3639, 2583, 24899, 1808, 12, 2316, 548, 3631, 315, 654, 39, 27, 5340, 30, 3410, 843, 364, 1661, 19041, 1147, 8863, 203, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import "@erc725/smart-contracts/contracts/interfaces/IERC725Y.sol"; import "solidity-bytes-utils/contracts/BytesLib.sol"; import "../LSP2ERC725YJSONSchema/LSP2Utils.sol"; import "../LSP7DigitalAsset/LSP7Constants.sol"; import "../LSP6KeyManager/LSP6Utils.s...
* @dev Decrements the arrayLength, removes the Map, swaps the arrayKey that need to be removed with the last `arrayKey` in the array and removes the last arrayKey with updating all modified entries/
function removeMapAndArrayKey( IERC725Y _account, bytes32 _arrayKey, bytes12 mapPrefix, bytes32 _mapKeyToRemove ) internal view returns (bytes32[] memory keys, bytes[] memory values) { uint64 index = extractIndexFromMap(_account, _mapKeyToRemove); bytes32 arrayKey...
932,476
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 31073, 1346, 326, 526, 1782, 16, 7157, 326, 1635, 16, 1352, 6679, 326, 526, 653, 716, 1608, 358, 506, 3723, 598, 326, 1142, 1375, 1126, 653, 68, 316, 326, 526, 471, 7157, 326, 1142, 526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 863, 1876, 1076, 653, 12, 203, 3639, 467, 654, 39, 27, 2947, 61, 389, 4631, 16, 203, 3639, 1731, 1578, 389, 1126, 653, 16, 203, 3639, 1731, 2138, 852, 2244, 16, 203, 3639, 1731, 1578, 389, 1458, 653, 12765, 203,...
./partial_match/1/0x1AE72687D6585Aaf6B01369442B6d853130A2Fe5/sources/src/active/MaviaNFT.sol
* @notice Burn an NFT @dev Burn an NFT by the token owner and Burner role @param _pId Token id Required Statements - MaviaNFT:01 Only owner of NFT or whoever has burner role can burn/
function fBurn(uint256 _pId) external override { require(ownerOf(_pId) == _msgSender() || hasRole(BURNER_ROLE, _msgSender()), "MaviaNFT:01"); _burn(_pId); }
9,151,256
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 605, 321, 392, 423, 4464, 632, 5206, 605, 321, 392, 423, 4464, 635, 326, 1147, 3410, 471, 605, 321, 264, 2478, 632, 891, 389, 84, 548, 3155, 612, 10647, 28554, 300, 490, 69, 522, 6491,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 225, 445, 284, 38, 321, 12, 11890, 5034, 389, 84, 548, 13, 3903, 3849, 288, 203, 565, 2583, 12, 8443, 951, 24899, 84, 548, 13, 422, 389, 3576, 12021, 1435, 747, 28335, 12, 38, 8521, 654, 67, 16256, 16, 389, 3576, 12021, 1435, ...
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256...
Called by the owner of the contract to close the Sale
function endCrowdSale() public onlyOwner { require(now >= icoEndTimestamp || icoRaised >= icoSoftCapInWei); if(icoRaised >= icoSoftCapInWei){ crowdSaleState = State.Success; crowdSaleState = State.Failure; } } else { }
6,900,579
[ 1, 4625, 348, 7953, 560, 30, 225, 11782, 635, 326, 3410, 434, 326, 6835, 358, 1746, 326, 348, 5349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 679, 39, 492, 72, 30746, 1435, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 3338, 1545, 277, 2894, 1638, 4921, 747, 277, 2894, 12649, 5918, 1545, 277, 2894, 12468, 4664, 382, 3218, 77, 1769, 203, 3639, 309, 12, 10764, 12...
pragma solidity 0.4.20; contract IAugur { function createChildUniverse(bytes32 _parentPayoutDistributionHash, uint256[] _parentPayoutNumerators, bool _parentInvalid) public returns (IUniverse); function isKnownUniverse(IUniverse _universe) public view returns (bool); function trustedTransfer(ERC20 _token, ...
If the market resolved to invalid the bond gets sent to the fee window. Otherwise it gets returned to the market creator mailbox.
function distributeValidityBond() private returns (bool) { if (!isInvalid()) { marketCreatorMailbox.depositEther.value(validityBondAttoeth)(); cash.depositEtherFor.value(validityBondAttoeth)(universe.getCurrentFeeWindow()); } return true; }
10,515,648
[ 1, 4625, 348, 7953, 560, 30, 225, 971, 326, 13667, 4640, 358, 2057, 326, 8427, 5571, 3271, 358, 326, 14036, 2742, 18, 5272, 518, 5571, 2106, 358, 326, 13667, 11784, 14187, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 25722, 19678, 9807, 1435, 3238, 1135, 261, 6430, 13, 288, 203, 3639, 309, 16051, 291, 1941, 10756, 288, 203, 5411, 13667, 10636, 30239, 18, 323, 1724, 41, 1136, 18, 1132, 12, 877, 560, 9807, 3075, 83, 546, 13, 5621, 203...
pragma solidity ^0.4.23; import 'openzeppelin-solidity/contracts/token/ERC721/ERC721.sol'; contract StarNotary is ERC721 { struct Star { string name; } //map star id to it's metadata mapping(uint256 => Star) public tokenIdToStarInfo; //map tp denote stars up for sale mapping(uint256...
If the buyer overpayed, they get a refund
function buyStar(uint256 _tokenId) public payable { 0 is the defailt value in solidity. So, a star with value 0 is not for sale. A star that is not for sale would have a value of 0, even if we did not explicitly put it their. require(starsForSale[_tokenId] > 0); uint256 starCost = s...
12,584,578
[ 1, 4625, 348, 7953, 560, 30, 971, 326, 27037, 1879, 10239, 329, 16, 2898, 336, 279, 16255, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18379, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 8843, 429, 288, 203, 3639, 374, 353, 326, 443, 507, 4526, 460, 316, 18035, 560, 18, 6155, 16, 279, 10443, 598, 460, 374, 353, 486, 364, 272, 5349, 18, 203, 3639...
./full_match/137/0x3EA38B86b47A03549C4626AFB25C6A0C7a59e6FA/sources/project_/contracts/uniswap/ISwapRouter.sol
@title Router token swapping functionality @notice Functions for swapping tokens via Uniswap V3
interface ISwapRouter is IUniswapV3SwapCallback { pragma solidity >=0.8.19; struct ExactInputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; uint160 sqrtPric...
4,792,580
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 9703, 1147, 7720, 1382, 14176, 632, 20392, 15486, 364, 7720, 1382, 2430, 3970, 1351, 291, 91, 438, 776, 23, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 4437, 91, 438, 8259, 353, 467, 984, 291, 91, 438, 58, 23, 12521, 2428, 288, 203, 683, 9454, 18035, 560, 1545, 20, 18, 28, 18, 3657, 31, 203, 565, 1958, 30794, 1210, 5281, 1370, 288, 203, 3639, 1758, 1147, 382, 31, 203, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12 <0.9.0; //imports for 1155 token contract from Openzeppelin import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts...
0 -> however many get created
mapping(uint256 => Seedling) private _tokenDetails;
14,102,455
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 317, 14025, 4906, 336, 2522, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2874, 12, 11890, 5034, 516, 28065, 2456, 13, 3238, 389, 2316, 3790, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0x510E1e10765f18e2Ff6d38ed5A19CDD22663fC89/sources/contracts/RewardPool.sol
* @dev Method to updtate new Staking Address, allowed only to contract owner. @notice This method will allow only owner to update Staking Address in smart contract. @param _stakingAddress: Staking Address to be set in this method./
function setStakingAddress(address _stakingAddress) external onlyOwner { wave(); emit StakingAddressUpdated( stakingAddress, _stakingAddress, block.timestamp, msg.sender ); stakingAddress = _stakingAddress; }
3,865,499
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2985, 358, 2166, 88, 340, 394, 934, 6159, 5267, 16, 2935, 1338, 358, 6835, 3410, 18, 632, 20392, 1220, 707, 903, 1699, 1338, 3410, 358, 1089, 934, 6159, 5267, 316, 13706, 6835, 18, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 444, 510, 6159, 1887, 12, 2867, 389, 334, 6159, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 10794, 5621, 203, 3639, 3626, 934, 6159, 1887, 7381, 12, 203, 5411, 384, 6159, 1887, 16, 203, 5411, 389, 334, 6159, 1887, 16, ...
./full_match/1/0x184e48FA8B332D3D3FB08eDa535Fd7591e340Bb2/sources/contracts/ThirdParty/LayerZero/lzApp/LzApp.sol
abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging
function _blockingLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual; function _lzSend( uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterPar...
4,934,912
[ 1, 4625, 348, 7953, 560, 30, 225, 8770, 445, 300, 326, 805, 14273, 434, 12112, 7170, 353, 9445, 18, 2164, 30, 3858, 18926, 48, 94, 3371, 309, 1846, 14046, 1608, 358, 12980, 5901, 17301, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 18926, 48, 94, 11323, 12, 203, 565, 2254, 2313, 389, 4816, 3893, 548, 16, 203, 565, 1731, 3778, 389, 4816, 1887, 16, 203, 565, 2254, 1105, 389, 12824, 16, 203, 565, 1731, 3778, 389, 7648, 203, 225, 262, 2713, 502...
pragma solidity 0.8.7; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract CoinFlip is VRFConsumerBase, Ownable { uint8 constant CHOICE_HEAD = 1; uint8 constant CHOICE_TAIL = 2; uint8 constant WIN_ODDS_MULTIPLIER = 2; uint8 constant...
TODO: Max bet should be dynamic, 1/10th of the current potmyBet.requestId = requestId;
function flip(uint8 _choice) external payable returns (bytes32 requestId) { require( LINK.balanceOf(address(this)) >= s_fee, "Not enough LINK to pay fee" ); require( _choice == CHOICE_HEAD || _choice == CHOICE_TAIL, "Choice must be head or tai...
13,100,324
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 30, 4238, 2701, 1410, 506, 5976, 16, 404, 19, 2163, 451, 434, 326, 783, 5974, 4811, 38, 278, 18, 2293, 548, 273, 14459, 31, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9668, 12, 11890, 28, 389, 11569, 13, 3903, 8843, 429, 1135, 261, 3890, 1578, 14459, 13, 288, 203, 3639, 2583, 12, 203, 5411, 22926, 18, 12296, 951, 12, 2867, 12, 2211, 3719, 1545, 272, 67, 21386, 16, 203, 5411, 315, 1...
./full_match/11155111/0xa68e6E0Ff5AAA5ABFd6B9A5597859F621e7A6d8D/sources/src/tokens/ERC5484Upgradeable.sol
setup roles depend on mode for SoulBound token
function __ERC5484Upgradeable_init_unchained( BurnAuth burnAuth_, bool mintOnce_ ) internal onlyInitializing { _burnAuth = burnAuth_; _mintOnce = mintOnce_; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); }
3,806,634
[ 1, 4625, 348, 7953, 560, 30, 225, 3875, 4900, 2447, 603, 1965, 364, 348, 1003, 3499, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 1001, 654, 39, 6564, 5193, 10784, 429, 67, 2738, 67, 4384, 8707, 12, 203, 3639, 605, 321, 1730, 18305, 1730, 67, 16, 203, 3639, 1426, 312, 474, 12212, 67, 203, 565, 262, 2713, 1338, 29782, 288, 203, 3639, 389, 70, 321...
pragma solidity >=0.6; pragma experimental ABIEncoderV2; contract Derivatives { uint public derivativeCount = 0; uint public shareCount = 3; string[] all_underlyings_test = ["General Motors", "Apple", "Bitcoin"]; string[] all_shortages = ["GM", "AAPL", "BTC"]; string public pass...
to avoid the off-by-one error
s[j] = reversed[i - j - 1];
988,020
[ 1, 4625, 348, 7953, 560, 30, 225, 358, 4543, 326, 3397, 17, 1637, 17, 476, 555, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 7734, 272, 63, 78, 65, 273, 9553, 63, 77, 300, 525, 300, 404, 15533, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/43113/0x8BB47AbAD22dDAd400a57eD84d79e1aAa131f974/sources/masterChef.sol
Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0 || pool.allocPoint == 0) { pool.lastRew...
7,122,691
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 19890, 3152, 434, 326, 864, 2845, 358, 506, 731, 17, 869, 17, 712, 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...
[ 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, 1089, 2864, 12, 11890, 5034, 389, 6610, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 309, 261, 2629, 18, 2696, 1648, 2845, 18, 2722, 17631, 1060, 1768, 13, 288, 203, ...
./partial_match/1/0x1A963Df363D01EEBB2816b366d61C917F20e1EbE/sources/src/Note.sol
Note cannot be initialized twice
require(address(accountant) == address(0));
2,594,826
[ 1, 4625, 348, 7953, 560, 30, 3609, 2780, 506, 6454, 13605, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 2867, 12, 4631, 970, 13, 422, 1758, 12, 20, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0xa804650B1C4Ff76A4EF10eaEbBFAa9bE5e81E32e/sources/contracts/ERC721NESStakingController.sol
* @dev constructor/
constructor(address _tokenContract, uint256 _multipler) { tokenContract = _tokenContract; multiplier = _multipler; }
9,446,342
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 5206, 3885, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 2867, 389, 2316, 8924, 16, 2254, 5034, 389, 7027, 20728, 13, 288, 203, 3639, 1147, 8924, 273, 389, 2316, 8924, 31, 203, 3639, 15027, 273, 389, 7027, 20728, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error,...
@title CompoundPriceFeed Contract @author Enzyme Council <[email protected]> @notice Price source oracle for Compound Tokens (cTokens)
contract CompoundPriceFeed is IDerivativePriceFeed, FundDeployerOwnerMixin { using SafeMath for uint256; event CTokenAdded(address indexed cToken, address indexed token); uint256 private constant CTOKEN_RATE_DIVISOR = 10**18; address private immutable WETH_TOKEN; mapping(address => address) priv...
5,746,035
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 21327, 5147, 8141, 13456, 632, 4161, 1374, 94, 2942, 73, 385, 465, 71, 330, 411, 63, 3652, 131, 259, 1117, 65, 34, 632, 20392, 20137, 1084, 20865, 364, 21327, 13899, 261, 71, 5157, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 21327, 5147, 8141, 353, 1599, 264, 427, 1535, 5147, 8141, 16, 478, 1074, 10015, 264, 5541, 14439, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 871, 385, 1345, 8602, 12, 2867, 8808, 276, 1345, 16, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgrad...
* @dev Add lock to transfer so that it can not happen in the same block as deposit and withdraw./
function transferFrom(address sender, address recipient, uint256 amount) public virtual override blockUnlocked returns (bool) { return super.transferFrom(sender, recipient, amount); }
2,491,763
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1436, 2176, 358, 7412, 1427, 716, 518, 848, 486, 5865, 316, 326, 1967, 1203, 487, 443, 1724, 471, 598, 9446, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 1071, 5024, 3849, 1203, 7087, 329, 1135, 261, 6430, 13, 288, 203, 3639, 327, 2240, 18, 13866, 1265, 12, 15330, 16, 8027, 16, 3844, 1769, 203, 565, ...
./full_match/1/0x6Bcf66d82C4c2e852690AD589C4462b568FaB81a/sources/contracts/dabot/DABotCommon.sol
the time when IBO ends (unix second timestamp)
uint iboEndTime;
17,106,348
[ 1, 4625, 348, 7953, 560, 30, 225, 326, 813, 1347, 467, 5315, 3930, 261, 21136, 2205, 2858, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 277, 1075, 25255, 31, 2398, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity >=0.4.22 <0.6.0; //----------------------------------------------------------------------------- /// @title Ownable /// @dev The Ownable contract has an owner address, and provides basic /// authorization control functions, this simplifies the implementation of /// "user permissions". //---...
------------------------------------------------------------------------- @notice Update Colored EHrT contract with new contract address. @dev Throws if `_newAddress` is the zero address. @param _newAddress Updated contract address.-------------------------------------------------------------------------
function updateColoredEhrtContractAddress(address _newAddress) external onlyOwner { coloredEhrtContract = LinkDependency(_newAddress); }
2,522,217
[ 1, 4625, 348, 7953, 560, 30, 8879, 788, 632, 20392, 2315, 1558, 7653, 512, 44, 86, 56, 6835, 598, 394, 6835, 1758, 18, 632, 5206, 22435, 309, 1375, 67, 2704, 1887, 68, 353, 326, 3634, 1758, 18, 632, 891, 389, 2704, 1887, 19301, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 914, 7653, 41, 76, 3797, 8924, 1887, 12, 2867, 389, 2704, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 19757, 41, 76, 3797, 8924, 273, 4048, 7787, 24899, 2704, 1887, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -...
pragma solidity ^0.5.2; // It's important to avoid vulnerabilities due to numeric overflow bugs // OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs // More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmetic/ impor...
* @dev Add an airline to the registration queue For the first 4 airlines, it will be automatically registered For the subsequent airline, it will need a 50% consensus/ register airline with WaitingConsensus status if minimum hasnt been achieved, update status to registered immediately below function is important to ens...
function registerAirline(address _airlineAddress, string calldata _airlineName) external requireIsOperational returns(bool _success, uint256 _votes) { require(dataContract.isAirlineActive(msg.sender) == true, "You are not yet activated"); uint airlineStatus = dataContract.getAirli...
12,647,502
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1436, 392, 23350, 1369, 358, 326, 7914, 2389, 2457, 326, 1122, 1059, 23350, 3548, 16, 518, 903, 506, 6635, 4104, 2457, 326, 10815, 23350, 1369, 16, 518, 903, 1608, 279, 6437, 9, 18318, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1744, 29752, 1369, 12, 2867, 389, 1826, 1369, 1887, 16, 533, 745, 892, 389, 1826, 1369, 461, 13, 3903, 7010, 565, 2583, 2520, 2988, 287, 1135, 12, 6430, 389, 4768, 16, 2254, 5034, 389, 27800, 13, 203, 565, 288, 203, 3...
./partial_match/56/0x2Fc2Bb08E505a0b1d16bd43E7ADAE2020DE65177/sources/MasterChef.sol
View function to see pending GOLDs on frontend.
function pendingGold(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accGoldPerShare = pool.accGoldPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); ...
11,186,650
[ 1, 4625, 348, 7953, 560, 30, 225, 4441, 445, 358, 2621, 4634, 611, 11846, 87, 603, 15442, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4634, 43, 1673, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, ...
// Sources flattened with hardhat v2.0.2 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v3.2.0 pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ funct...
update totalAllocPoint
totalAllocPoint = totalAllocPoint.add(_allocPoint);
1,339,977
[ 1, 4625, 348, 7953, 560, 30, 1089, 2078, 8763, 2148, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 8763, 2148, 273, 2078, 8763, 2148, 18, 1289, 24899, 9853, 2148, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; pragma abicoder v2; import "@openzeppelin/contracts-upgradeable/math/SignedSafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "@rarible/lib-broken-line/contracts/LibIntMapping.sol"; /** * Line describes ...
* @dev Add Line, save data in LineData. Run update BrokenLine, require: 1. slope != 0, slope <= bias 2. line not exists/
function add(BrokenLine storage brokenLine, uint id, Line memory line, uint cliff) internal { require(line.slope != 0, "Slope == 0, unacceptable value for slope"); require(line.slope <= line.bias, "Slope > bias, unacceptable value for slope"); require(brokenLine.initiatedLines[id].line.bias ...
1,840,233
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1436, 5377, 16, 1923, 501, 316, 5377, 751, 18, 1939, 1089, 605, 19906, 1670, 16, 2583, 30, 1377, 404, 18, 17543, 480, 374, 16, 17543, 1648, 12005, 1377, 576, 18, 980, 486, 1704, 19, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 29559, 1670, 2502, 12933, 1670, 16, 2254, 612, 16, 5377, 3778, 980, 16, 2254, 927, 3048, 13, 2713, 288, 203, 3639, 2583, 12, 1369, 18, 30320, 480, 374, 16, 315, 55, 12232, 422, 374, 16, 640, 9436, 429, 460, ...
./full_match/3/0xb9B76944685Dcf1F83a2f28D70beE859B501180f/sources/contracts/kontrakt.sol
* @dev this mapping makes it possible to search for locks, at the cost of paying higher gas fees to store the data./
mapping(address => uint40[]) private _tokenLockersForAddress;
14,243,223
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 333, 2874, 7297, 518, 3323, 358, 1623, 364, 13046, 16, 622, 326, 6991, 434, 8843, 310, 10478, 16189, 1656, 281, 358, 1707, 326, 501, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 2874, 12, 2867, 516, 2254, 7132, 63, 5717, 3238, 389, 2316, 2531, 414, 1290, 1887, 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,...
pragma solidity ^0.5.0; import "./ERC721.sol"; contract Cats is ERC721{ uint256 public _tokenId; struct Employee{ uint EmpID; address EmpAddr; string name; string types; string task; } // struct tokenID{ // uint256 tok; // } mapping(uint ...
To produce unique tokenId when submit button is clickedkeccak256 function is used to input create a pseudo random number as a tokenID each time it is called and is calcToken function is calls tokenId during minting
function calcToken(uint256 number) public returns(uint256) { _tokenId = uint256(keccak256(abi.encodePacked(EmpCount,number,now))) % 10000000; return _tokenId; }
5,410,911
[ 1, 4625, 348, 7953, 560, 30, 225, 2974, 11402, 3089, 1147, 548, 1347, 4879, 3568, 353, 17688, 79, 24410, 581, 5034, 445, 353, 1399, 358, 810, 752, 279, 12454, 2744, 1300, 487, 279, 1147, 734, 1517, 813, 518, 353, 2566, 471, 353, 702...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 7029, 1345, 12, 11890, 5034, 1300, 13, 1071, 1135, 12, 11890, 5034, 13, 203, 565, 288, 27699, 3639, 389, 2316, 548, 273, 2254, 5034, 12, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 12, 41, 1291, 1380, 16, 26...
/** *Submitted for verification at Etherscan.io on 2022-03-04 */ /** *Submitted for verification at Etherscan.io on 2021-12-17 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make ...
* @dev See {IERC721-getApproved}./
function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), 'ERC721BH: approved query for nonexistent token'); return _tokenApprovals[tokenId]; }
8,034,231
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 17, 588, 31639, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 336, 31639, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 3849, 1135, 261, 2867, 13, 288, 203, 3639, 2583, 24899, 1808, 12, 2316, 548, 3631, 296, 654, 39, 27, 5340, 38, 44, 30, 20412, 843, 364, 1661, 19041, 1147, 8284, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "./Reputation.sol"; import "../Interfaces.sol"; /** * @title GReputation extends Reputation with delegation and cross blockchain merkle states * @dev NOTICE: this breaks DAOStack nativeReputation usage, since it is not possiible to upgrade * the origi...
* @title GReputation extends Reputation with delegation and cross blockchain merkle states @dev NOTICE: this breaks DAOStack nativeReputation usage, since it is not possiible to upgrade the original nativeReputation token. it means you can no longer rely on avatar.nativeReputation() or controller.nativeReputation() to ...
contract GReputation is Reputation { bytes32 public constant ROOT_STATE = keccak256("rootState"); bytes32 public constant DOMAIN_TYPEHASH = keccak256( "EIP712Domain(string name,uint256 chainId,address verifyingContract)" ); bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delega...
1,373,420
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 611, 426, 458, 367, 3231, 868, 458, 367, 598, 23595, 471, 6828, 16766, 30235, 5493, 632, 5206, 29940, 30, 333, 16217, 463, 20463, 2624, 6448, 426, 458, 367, 4084, 16, 3241, 518, 353, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 611, 426, 458, 367, 353, 868, 458, 367, 288, 203, 202, 3890, 1578, 1071, 5381, 11011, 67, 7998, 273, 417, 24410, 581, 5034, 2932, 3085, 1119, 8863, 203, 203, 202, 3890, 1578, 1071, 5381, 27025, 67, 2399, 15920, 273, 203, 2...