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.24; import "../common/Error.sol"; import "../lib/AddressArray.sol"; import "../common/Admin.sol"; import "../common/Check.sol"; import "../../interaction/interface/IQuotaManager.sol"; import "../../interaction/interface/IAuthorization.sol"; /// @title Node manager contract /// @author ["Rivtower T...
@notice Get autoExec quota limit
function getAutoExecQL() external pure returns (uint) { return autoExecQL; }
6,445,141
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 968, 3656, 1905, 13257, 1800, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26707, 1905, 2024, 1435, 203, 3639, 3903, 203, 3639, 16618, 203, 3639, 1135, 261, 11890, 13, 203, 565, 288, 203, 3639, 327, 3656, 1905, 2024, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// Copyright (C) 2020 Zerion Inc. <https://zerion.io> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This ...
* @return Amount of staked tokens for a given account. @dev Implementation of ProtocolAdapter interface function./
function getBalance(address token, address account) external view override returns (uint256) { return ERC20(gauge_[token]).balanceOf(account); }
5,746,879
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 16811, 434, 384, 9477, 2430, 364, 279, 864, 2236, 18, 632, 5206, 25379, 434, 4547, 4216, 1560, 445, 18, 19, 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, 2882, 6112, 12, 2867, 1147, 16, 1758, 2236, 13, 3903, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 4232, 39, 3462, 12, 75, 8305, 67, 63, 2316, 65, 2934, 12296, 951, 12, 4631, 1769, 203, 565, 289, 203, ...
./full_match/1/0x43844369A7a6e83b6DA64B9b3121B4b66d71Cad0/sources/contracts/globals/IGlobals.sol
Single registry of global values controlled by multisig. See `LibGlobals` for all valid keys.
interface IGlobals { function getBytes32(uint256 key) external view returns (bytes32); function getUint256(uint256 key) external view returns (uint256); function getBool(uint256 key) external view returns (bool); function getAddress(uint256 key) external view returns (address); function getImple...
17,141,295
[ 1, 4625, 348, 7953, 560, 30, 225, 10326, 4023, 434, 2552, 924, 25934, 635, 22945, 360, 18, 2164, 1375, 5664, 19834, 68, 364, 777, 923, 1311, 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,...
[ 1, 1, 1, 1, 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, 5831, 13102, 1295, 1031, 288, 203, 565, 445, 8425, 1578, 12, 11890, 5034, 498, 13, 3903, 1476, 1135, 261, 3890, 1578, 1769, 203, 203, 565, 445, 336, 5487, 5034, 12, 11890, 5034, 498, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, ...
./full_match/5/0xa3D26064A4ECc6A8e7A88Ac96b878D458Ae09c81/sources/NFTMTG_flattened_v2.sol
* @dev Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner./
function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); }
1,928,541
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3519, 6606, 326, 6835, 2887, 3410, 18, 2597, 903, 486, 506, 3323, 358, 745, 1375, 3700, 5541, 68, 4186, 16828, 18, 4480, 1338, 506, 2566, 635, 326, 783, 3410, 18, 5219, 30, 25921, 465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1654, 8386, 5460, 12565, 1435, 1071, 5024, 1338, 5541, 288, 203, 3639, 389, 542, 5541, 12, 2867, 12, 20, 10019, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } contract WPHCoin { // Public variables of the token string public name; string public symbol; uint8 public decimals = 9; // 18 decimals is the s...
Public variables of the token 18 decimals is the strongly suggested default, avoid changing it This creates an array with all balances
contract WPHCoin { string public name; string public symbol; uint8 public decimals = 9; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; function TokenERC20( uint256 initialSupply, ...
488,904
[ 1, 4625, 348, 7953, 560, 30, 225, 7224, 3152, 434, 326, 1147, 6549, 15105, 353, 326, 11773, 715, 22168, 805, 16, 4543, 12770, 518, 1220, 3414, 392, 526, 598, 777, 324, 26488, 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, 16351, 678, 8939, 27055, 288, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 1071, 15105, 273, 2468, 31, 203, 565, 2254, 5034, 1071, 2078, 3088, 1283, 31, 203, 203, 565, 2874, 261, 2867, 516, 2...
/** *Submitted for verification at Etherscan.io on 2021-08-03 */ // Sources flattened with hardhat v2.5.0 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the t...
Info for incremental adjustments to control variable
struct Adjust { } constructor( address _HADES, address _principle, address _treasury, address _DAO, address _bondCalculator
2,270,102
[ 1, 4625, 348, 7953, 560, 30, 225, 3807, 364, 20649, 5765, 1346, 358, 3325, 2190, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1958, 17720, 288, 203, 225, 289, 203, 203, 225, 3885, 12, 203, 565, 1758, 389, 19191, 26463, 16, 203, 565, 1758, 389, 683, 9523, 2444, 16, 203, 565, 1758, 389, 27427, 345, 22498, 16, 203, 565, 1758, 389, 18485, 16, 203, 56...
/** *Submitted for verification at BscScan.com on 2021-04-29 */ // File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While the...
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but performing a delegate call. _Available since v3.4._/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); }
10,257
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17795, 487, 288, 22044, 17, 1887, 17, 915, 1477, 17, 2867, 17, 3890, 17, 20294, 68, 915, 1477, 68, 6487, 1496, 14928, 279, 7152, 745, 18, 389, 5268, 3241, 331, 23, 18, 24, 6315, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 445, 9586, 1477, 12, 2867, 1018, 16, 1731, 3778, 501, 13, 203, 565, 2713, 203, 565, 1135, 261, 3890, 3778, 13, 203, 225, 288, 203, 565, 327, 203, 1377, 445, 9586, 1477, 12, 203, 3639, 1018, 16, 203, 3639, 501, 16, 2...
./full_match/43113/0x49A560f017EeAcB5F47Ea89770f2219937CF24B3/sources/HexNFT.sol
Concatenate tokenIdString and ".json"
string memory _concatenatedString = string(abi.encodePacked(_tokenIdString, ".json"));
7,148,461
[ 1, 4625, 348, 7953, 560, 30, 225, 23873, 275, 340, 1147, 548, 780, 471, 3552, 1977, 6, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 533, 3778, 389, 16426, 275, 690, 780, 273, 533, 12, 21457, 18, 3015, 4420, 329, 24899, 2316, 548, 780, 16, 3552, 1977, 7923, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File: contracts/ErrorReporter.sol pragma solidity 0.4.24; contract ErrorReporter { /** * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary * contract-specific code that enables us to report opaque error codes from upgradeable contracts. ...
* @notice Admin Functions. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. @param newPendingAdmin New pending admin @param newOracle New oracle address @param requestedState value ...
function _adminFunctions( address newPendingAdmin, address newOracle, bool requestedState, uint256 originationFeeMantissa, uint256 newCloseFactorMantissa, address wethContractAddress, address _rewardControl ) public onlyOwner returns (uint256) { re...
80,947
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 7807, 15486, 18, 1021, 394, 8579, 4446, 1297, 745, 1375, 67, 9436, 4446, 68, 358, 12409, 326, 7412, 18, 632, 5206, 7807, 445, 358, 2376, 2549, 434, 3981, 18, 1021, 394, 8579, 4446, 1297,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 3666, 7503, 12, 203, 3639, 1758, 394, 8579, 4446, 16, 203, 3639, 1758, 394, 23601, 16, 203, 3639, 1426, 3764, 1119, 16, 203, 3639, 2254, 5034, 1647, 1735, 14667, 49, 970, 21269, 16, 203, 3639, 2254, 5034, 394, 4605...
./full_match/1/0x8F8745BD5f9b1464a49F90b95c2F3Aa4d24A1180/sources/contracts/GarbageFriends.sol
* @dev Returns if token ids minted or not @param tokenIds uint[]/
function checkAlreadyMintedIds( uint256[] calldata tokenIds ) external view returns (bool[] memory) { bool[] memory states = new bool[](tokenIds.length); for (uint256 i = 0; i < tokenIds.length; ) { states[i] = _isMintedTokenId.get(tokenIds[i]); unchecked { ...
2,984,343
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 309, 1147, 3258, 312, 474, 329, 578, 486, 632, 891, 1147, 2673, 2254, 8526, 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, 866, 9430, 49, 474, 329, 2673, 12, 203, 3639, 2254, 5034, 8526, 745, 892, 1147, 2673, 203, 565, 262, 3903, 1476, 1135, 261, 6430, 8526, 3778, 13, 288, 203, 3639, 1426, 8526, 3778, 5493, 273, 394, 1426, 8526, 12, 2316, ...
pragma solidity ^0.8.0; //import "../node_modules/@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721.sol"; contract MoraribleMarketContract { struct AuctionItem { uint256 id; address tokenAddr...
for each token address, check if the tokenId of that address is flagged T/F for if it has been sold
mapping (address => mapping (uint256 => bool)) activeItems;
5,349,449
[ 1, 4625, 348, 7953, 560, 30, 225, 364, 1517, 1147, 1758, 16, 866, 309, 326, 1147, 548, 434, 716, 1758, 353, 2982, 2423, 399, 19, 42, 364, 309, 518, 711, 2118, 272, 1673, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 2867, 516, 2874, 261, 11890, 5034, 516, 1426, 3719, 2695, 3126, 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, -...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma abicoder v2; import "@openzeppelin/contracts@4.3.2/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts@4.3.2/access/Ownable.sol"; import "@openzeppelin/contracts@4.3.2/security/ReentrancyGuard.sol"; contract MiniSora is ERC721En...
@dev Closes the sale.
function closeSale() public onlyOwner { saleState = 255; }
12,835,371
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 22442, 2420, 326, 272, 5349, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1746, 30746, 1435, 1071, 1338, 5541, 288, 203, 3639, 272, 5349, 1119, 273, 4561, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** * Lucky Block Network Project Smart-Contracts * @authors https://grox.solutions */ pragma solidity 0.5.7; library SafeMath { function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } function add(u...
* @dev Storage for name proposals./
mapping (string => mapping (string => Proposal)) public nameProp;
922,401
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5235, 364, 508, 450, 22536, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 1080, 516, 2874, 261, 1080, 516, 19945, 3719, 1071, 508, 4658, 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, -1...
pragma solidity ^0.4.13; 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) { // assert(b > 0); // So...
beneficiary of tokens after they are released
contract TokenVesting is Ownable { using SafeMath for uint256; using SafeERC20 for ERC20Basic; event Released(uint256 amount); event Revoked(); address public beneficiary; uint256 public cliff; uint256 public start; uint256 public duration; bool public revocable; mapping (address => uint256) pu...
143,139
[ 1, 4625, 348, 7953, 560, 30, 225, 27641, 74, 14463, 814, 434, 2430, 1839, 2898, 854, 15976, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 58, 10100, 353, 14223, 6914, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 14060, 654, 39, 3462, 364, 4232, 39, 3462, 8252, 31, 203, 203, 225, 871, 10819, 72, 12, 11890, 5034, 3844, 1769, 20...
./partial_match/1/0x85018CF6F53c8bbD03c3137E71F4FCa226cDa92C/sources/contracts/ApeStaking.sol
1, check nfts owner 2, claim rewards
function _withdrawApeCoin( address userAddr, address nftAsset, IApeCoinStaking.SingleNft[] memory _nfts, IApeCoinStaking.PairNftWithdrawWithAmount[] memory _nftPairs, RewardAction actionType ) internal { address ptokenStaking = _getPTokenStaking(nftAsset); ...
4,470,144
[ 1, 4625, 348, 7953, 560, 30, 225, 404, 16, 866, 290, 1222, 87, 3410, 576, 16, 7516, 283, 6397, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 1918, 9446, 37, 347, 27055, 12, 203, 3639, 1758, 729, 3178, 16, 203, 3639, 1758, 290, 1222, 6672, 16, 203, 3639, 467, 37, 347, 27055, 510, 6159, 18, 5281, 50, 1222, 8526, 3778, 389, 82, 1222, 87, 16, 203, 3639, ...
./full_match/1/0xc75f89C55fd71B07A54976575C774EA6Fa283d7A/sources/@mimic-fi/v2-registry/contracts/implementations/BaseImplementation.sol
* @dev Internal function to validate a new dependency that must be registered as stateless. It checks the new dependency is registered, not deprecated, and stateless. @param dependency New stateless dependency to be set/
function _validateStatelessDependency(address dependency) internal view { require(_validateDependency(dependency), 'DEPENDENCY_NOT_STATELESS'); }
17,143,903
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 445, 358, 1954, 279, 394, 4904, 716, 1297, 506, 4104, 487, 610, 12617, 18, 2597, 4271, 326, 394, 4904, 353, 4104, 16, 486, 6849, 16, 471, 610, 12617, 18, 632, 891, 4904, 1166, 610...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5662, 5000, 12617, 7787, 12, 2867, 4904, 13, 2713, 1476, 288, 203, 3639, 2583, 24899, 5662, 7787, 12, 15896, 3631, 296, 1639, 25690, 26325, 67, 4400, 67, 7998, 26005, 8284, 203, 565, 289, 203, 203, 2, -100, -100, -...
/** *Submitted for verification at Etherscan.io on 2021-07-28 */ // SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Global Enums and Structs library DataTypes { // refer to the whitepaper, section 1.1 basic concepts for a formal description of these properties. ...
* Leverage Manual Functions */ Emergency function to immediately deleverage to 0
function manualDivestFromAAVE() public onlyVaultManagers { _divestFromAAVE(); }
6,544,874
[ 1, 4625, 348, 7953, 560, 30, 380, 3519, 5682, 8660, 1462, 15486, 1195, 512, 6592, 75, 2075, 445, 358, 7636, 1464, 73, 5682, 358, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11297, 7244, 395, 1265, 5284, 3412, 1435, 1071, 1338, 12003, 17570, 288, 203, 3639, 389, 2892, 395, 1265, 5284, 3412, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "hardhat/console.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract Merkle_Airdrop { // deployed address of Dynamos contract; address dynamoAddr = 0x0C...
Verify the merkle proof.
) external { require(claimedAlready[msg.sender] == false, "cannot claim twice"); bytes32 node = keccak256(abi.encodePacked(msg.sender, _itemId, _amount)); bytes32 merkleRoot = root; require(MerkleProof.verify(_merkleProof, merkleRoot, node), "MerkleDistributor: Invalid proof."); ...
1,773,936
[ 1, 4625, 348, 7953, 560, 30, 225, 8553, 326, 30235, 14601, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 288, 203, 3639, 2583, 12, 14784, 329, 9430, 63, 3576, 18, 15330, 65, 422, 629, 16, 315, 12892, 7516, 13605, 8863, 203, 3639, 1731, 1578, 756, 273, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 12, 3576, ...
./partial_match/1/0x3c3Ec68f7252cc8d58b5637c247a61AF7BF565B9/sources/chenyuluoyan.sol
set as marketing wallet
marketingWallet = address(0x0659428F7026c73fCAD33A5020057b9960D78Ee7);
9,235,704
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 487, 13667, 310, 9230, 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, 13667, 310, 16936, 273, 1758, 12, 20, 92, 7677, 6162, 24, 6030, 42, 27, 3103, 26, 71, 9036, 74, 39, 1880, 3707, 37, 25, 3103, 713, 10321, 70, 2733, 4848, 40, 8285, 41, 73, 27, 1769, 225, 2, -100, -100, -100, -100, -100,...
/** Copyright (c) 2018 SmartTaylor Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
@param _spender The address which will spend the funds. @param _value The amount of tokens to be spent./
function approve(address _spender, uint256 _value) public onlyWhenTransferable returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
475,138
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 891, 389, 87, 1302, 264, 1021, 1758, 1492, 903, 17571, 326, 284, 19156, 18, 632, 891, 389, 1132, 1021, 3844, 434, 2430, 358, 506, 26515, 18, 19, 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, 565, 445, 6617, 537, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 13, 203, 1377, 1071, 203, 1377, 1338, 9434, 5912, 429, 203, 1377, 1135, 261, 6430, 2216, 13, 203, 565, 288, 203, 1377, 2935, 63, 3576, 18, 15330, 636...
./partial_match/1/0x03E6B3f4D96Bad6E0B34E09DE9C507655689C417/sources/src/Jackpot.sol
Store game players.
mapping(uint => address[]) public players;
3,593,675
[ 1, 4625, 348, 7953, 560, 30, 225, 4994, 7920, 18115, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 516, 1758, 63, 5717, 1071, 18115, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.11; contract owned { address public owner; function owned() payable { owner = msg.sender; } modifier onlyOwner { require(owner == msg.sender); _; } } contract ARCEON is owned { using SafeMath for uint256; string public name; string public ...
Эти токены принадлежат создателю
balanceOf[owner] = initialSupply.safeDiv(2);
7,241,100
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 145, 260, 146, 229, 145, 121, 225, 146, 229, 145, 127, 145, 123, 145, 118, 145, 126, 146, 238, 225, 145, 128, 146, 227, 145, 121, 145, 126, 145, 113, 145, 117, 145, 124, 145, 118, 145, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 11013, 951, 63, 8443, 65, 273, 2172, 3088, 1283, 18, 4626, 7244, 12, 22, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-07-12 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /******************************************/ /* IERC20 starts here */ /******************************************/ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol /*...
* @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug...
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } f...
911,188
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13456, 1605, 1492, 8121, 279, 5337, 2006, 3325, 12860, 16, 1625, 1915, 353, 392, 2236, 261, 304, 3410, 13, 716, 848, 506, 17578, 12060, 2006, 358, 2923, 4186, 18, 2525, 805, 16, 326, 3410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14223, 6914, 353, 1772, 288, 203, 565, 1758, 3238, 389, 8443, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 203, 203, 203, 565, 3885, 1435, 2...
pragma solidity 0.5.4; import "./BootlegToken.sol"; contract BootlegTraderApp { // The bootleg token contract BootlegToken public bootlegToken; // Only trading one token for this dApp, this is the ID for the token uint256 public bootlegTokenId; // Only one token traded only requires one price to store ui...
* @notice Sets the token price given a tokenId Emits a PriceChanged event @param newPrice uint256 The new token price in Wei/ TODO: Or allow minter to do this
function setTokenPrice(uint256 newPrice) public { address currentOwner = bootlegToken.ownerOf(bootlegTokenId); require(msg.sender == currentOwner, "Only the owner can change the token price"); uint256 oldPrice = tokenPrice; tokenPrice = newPrice; emit PriceChanged(msg.sender, oldPrice, newPrice);...
2,529,457
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11511, 326, 1147, 6205, 864, 279, 1147, 548, 7377, 1282, 279, 20137, 5033, 871, 632, 891, 394, 5147, 2254, 5034, 1021, 394, 1147, 6205, 316, 1660, 77, 19, 2660, 30, 2965, 1699, 1131, 387...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 22629, 5147, 12, 11890, 5034, 394, 5147, 13, 1071, 288, 203, 565, 1758, 783, 5541, 273, 4835, 1935, 1345, 18, 8443, 951, 12, 7137, 1935, 1345, 548, 1769, 203, 565, 2583, 12, 3576, 18, 15330, 422, 783, 5541, 16, 315, 3...
./full_match/43114/0x144c442A3Be65625D06b39D5247eb86a72531983/sources/contracts/Masterchef.sol
address _vaultAddress vaultAddress = _vaultAddress;
) public { Yeld = _Yeld; startBlock = _startBlock; devAddress = _devAddress; feeAddress = _feeAddress; }
16,384,298
[ 1, 4625, 348, 7953, 560, 30, 225, 1758, 389, 26983, 1887, 9229, 1887, 273, 389, 26983, 1887, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 262, 1071, 288, 203, 3639, 1624, 488, 273, 389, 61, 488, 31, 203, 3639, 787, 1768, 273, 389, 1937, 1768, 31, 203, 203, 3639, 4461, 1887, 273, 389, 5206, 1887, 31, 203, 3639, 14036, 1887, 273, 389, 21386, 1887, 31, 203, 565...
/** *Submitted for verification at Etherscan.io on 2022-03-08 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.11; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes call...
Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract Fixed_ESG is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; mapping (address => bool) private _isSniper; bool private _swapping; uint256 private _launchTime; address public feeWallet; ...
10,746,790
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 431, 17704, 1317, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 380, 869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 15038, 67, 3991, 43, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceO...
By storing the original amount once again, a refund is triggered (see https:eips.ethereum.org/EIPS/eip-2200).
_status = RE_NOT_ENTERED;
25,313
[ 1, 4625, 348, 7953, 560, 30, 225, 2525, 15729, 326, 2282, 3844, 3647, 3382, 16, 279, 16255, 353, 10861, 261, 5946, 2333, 30, 73, 7146, 18, 546, 822, 379, 18, 3341, 19, 41, 2579, 55, 19, 73, 625, 17, 3787, 713, 2934, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 2327, 273, 2438, 67, 4400, 67, 12278, 2056, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
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. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. ...
6500 blocks in average day --- decimals * LunaCore balance of rewardPool / blocks / 10000 * dailyReward (in hundredths of %) = rewardPerBlock
function getRewardPerBlock() public view returns(uint256) { return LunaCoreToken.balanceOf(rewardPool).div(6500).div(10000).mul(dailyReward); }
313,999
[ 1, 4625, 348, 7953, 560, 30, 225, 1666, 12483, 4398, 316, 8164, 2548, 9948, 15105, 380, 511, 31172, 4670, 11013, 434, 19890, 2864, 342, 4398, 342, 12619, 380, 18872, 17631, 1060, 261, 267, 366, 1074, 1118, 451, 87, 434, 738, 13, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 4170, 359, 1060, 2173, 1768, 1435, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 565, 327, 511, 31172, 4670, 1345, 18, 12296, 951, 12, 266, 2913, 2864, 2934, 2892, 12, 9222, 713, 2934, 2892, 12, 23899, 2934, 16411, 1...
pragma solidity ^0.4.24; import "../../token/ERC20/GDPOraclizedToken.sol"; /** * @title M5LogicMock3 * @dev ERC20 Token for mining when GDP is negative - Reference implementation of M5 mining logic */ contract M5LogicMock3 is GDPOraclizedToken { string public constant name = "Token"; // solium-disabl...
solium-disable-line
require(M5Token_.call(bytes4(keccak256("mint(address,uint256)")), msg.sender, reward));
15,864,205
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 5077, 17, 8394, 17, 1369, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2583, 12, 49, 25, 1345, 27799, 1991, 12, 3890, 24, 12, 79, 24410, 581, 5034, 2932, 81, 474, 12, 2867, 16, 11890, 5034, 2225, 13, 3631, 1234, 18, 15330, 16, 19890, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; import "../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contra...
Gas savings Subtract old inactive value Add new inactive value
function setShares( address account, uint128 value, bool isActive ) public virtual override onlyOwner { require( account != address(0), "RewardsManager: cannot set shares for zero address" ); require( account != address(this), "RewardsManager: cannot set shares for this contract address" ); ...
11,988,062
[ 1, 4625, 348, 7953, 560, 30, 225, 31849, 4087, 899, 2592, 1575, 1592, 16838, 460, 1436, 394, 16838, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 915, 444, 24051, 12, 203, 202, 202, 2867, 2236, 16, 203, 202, 202, 11890, 10392, 460, 16, 203, 202, 202, 6430, 15083, 203, 202, 13, 1071, 5024, 3849, 1338, 5541, 288, 203, 202, 202, 6528, 12, 203, 1082, 202, 4631, 480, 175...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.4; contract SmartOne { using SafeMath for uint256; address payable private owner; // Smart Contract Owner (Who deploys) address payable private adminAddress; // Project manager uint256 public PAYMENT_FACTOR = 1000; uint256 private constant DIV...
Primer usuario Buscar el ultimo espacio vacio en el pool 1 Desplazar Si es el primer pool liberar el ultimo espacio Buscar ultimo espacio vacio en el pool Si existe un espacio libre usarlo, sino desplazar
function addUserPool(address user) internal { address[4][] memory memoryPool = pool; address firstUser = address(0); uint256 emptySpace = 9; for (uint256 j = 0; j < USERS_PER_POOL; j++) { if (pool[0][j] == address(0)) { emptySpace = j; br...
13,990,635
[ 1, 4625, 348, 7953, 560, 30, 225, 2301, 4417, 584, 89, 25124, 13190, 9815, 415, 225, 406, 381, 83, 5001, 84, 1077, 1594, 30602, 1594, 570, 415, 2845, 404, 10597, 412, 1561, 297, 27834, 5001, 415, 31533, 2845, 2561, 264, 297, 415, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 17885, 12, 2867, 729, 13, 2713, 288, 203, 3639, 1758, 63, 24, 6362, 65, 3778, 3778, 2864, 273, 2845, 31, 203, 203, 3639, 1758, 1122, 1299, 273, 1758, 12, 20, 1769, 203, 3639, 2254, 5034, 1008, 3819, 273, 2468, 31...
pragma solidity >=0.4.21 <0.7.0; pragma experimental ABIEncoderV2; import {BandChainLib} from "bandchain-helper-library/contracts/BandChainLib.sol"; import {IBridge} from "bandchain-helper-library/contracts/IBridge.sol"; import "./Users.sol"; contract Settle { using BandChainLib for bytes; address private _...
this is how many i need x 100 - how much to decrease by
uint256 requiredCoins = usd * 100 * 100 * 100 * 100 / latestPrice;
5,362,082
[ 1, 4625, 348, 7953, 560, 30, 225, 333, 353, 3661, 4906, 277, 1608, 619, 2130, 300, 3661, 9816, 358, 20467, 635, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1931, 39, 9896, 273, 584, 72, 380, 2130, 380, 2130, 380, 2130, 380, 2130, 342, 4891, 5147, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/137/0x2BD21aD1C2ae155EfEfEe7f579FEe3beCCC2529a/sources/contracts/coinflip.sol
Routing path for computing price of 0.0001 LINK at time of bet*/
function get_path() internal pure returns (address[] memory _path) { address[] memory path = new address[](3); return path; }
3,737,261
[ 1, 4625, 348, 7953, 560, 30, 19349, 589, 364, 20303, 6205, 434, 374, 18, 13304, 22926, 622, 813, 434, 2701, 5549, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 67, 803, 1435, 2713, 16618, 1135, 261, 2867, 8526, 3778, 389, 803, 13, 288, 203, 3639, 1758, 8526, 3778, 589, 273, 394, 1758, 8526, 12, 23, 1769, 203, 3639, 327, 589, 31, 203, 565, 289, 203, 203, 2, -100, -100, ...
/*************************************************************************************************** * * * (c) 2018, 2019 Quantstamp, Inc. This content and its use are governed by the license terms at * * <https://raw.gi...
* Returns true if the pool timed out in state 1. The time out concept is undefined for all other states. @param poolIndex - the index of the pool to check/
function isTimedOut(uint poolIndex) internal view returns (bool) { QuantstampStakingData.PoolState s = getPoolState(poolIndex); function createPool( address candidateContract, address contractPolicy, uint maxPayoutQspWei, uint minStakeQspWei, uint depositQspWei, ...
12,945,983
[ 1, 4625, 348, 7953, 560, 30, 380, 2860, 638, 309, 326, 2845, 7491, 596, 316, 919, 404, 18, 1021, 813, 596, 12402, 353, 3109, 364, 777, 1308, 5493, 18, 632, 891, 2845, 1016, 300, 326, 770, 434, 326, 2845, 358, 866, 19, 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, 353, 30416, 12, 11890, 2845, 1016, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 4783, 970, 14317, 510, 6159, 751, 18, 2864, 1119, 272, 273, 28575, 1119, 12, 6011, 1016, 1769, 203, 565, 445, 752, 2864, 12, 203, ...
/** *Submitted for verification at Etherscan.io on 2021-09-02 */ // SPDX-License-Identifier: AGPL V3.0 pragma solidity 0.6.12; // Part: OpenZeppelin/[email protected]/Initializable /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind...
* @notice Sets the minimum amount of which can be swapped. 0 by default @param _minAmount Minimum amount in wei (the least decimals)/
function setMinClaimAmount(uint256 _minAmount) external onlyOwner { minAmountToClaim = _minAmount; }
7,883,730
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11511, 326, 5224, 3844, 434, 225, 1492, 848, 506, 7720, 1845, 18, 374, 635, 805, 632, 891, 389, 1154, 6275, 23456, 3844, 316, 732, 77, 261, 5787, 4520, 15105, 13176, 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, 27724, 9762, 6275, 12, 11890, 5034, 389, 1154, 6275, 13, 3903, 1338, 5541, 288, 203, 3639, 1131, 6275, 774, 9762, 273, 389, 1154, 6275, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.5.0; /** * @title Math * @dev Assorted math operations */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the small...
* Base crowdsale override/
function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view { if (_KYC) { require(isWhitelisted(beneficiary), 'Only whitelisted'); } uint256 kickAmount = weiAmount.mul(_rate); require(kickAmount >= _kickMinPay, 'Min purchase 100 kick'); req...
1,012,633
[ 1, 4625, 348, 7953, 560, 30, 380, 3360, 276, 492, 2377, 5349, 3849, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1484, 4270, 23164, 12, 2867, 27641, 74, 14463, 814, 16, 2254, 5034, 732, 77, 6275, 13, 2713, 1476, 288, 203, 3639, 309, 261, 67, 47, 61, 39, 13, 288, 203, 5411, 2583, 12, 291, 18927, 329, 12, 70, 4009, 74, 1446...
pragma solidity 0.4.24; import "./libraries/openzeppelin/migrations/Initializable.sol"; import "./libraries/tokenfoundry/StateMachine.sol"; import "./libraries/openzeppelin/ECRecovery.sol"; import "./libraries/Bytes.sol"; /// @title Battleship game over state channels. /// @author Ricardo Rius - <ricardo@rius.info> ...
@dev Initialize registries addresses. @param _ethrReg The address of the Ethr DID registry. @param _gameReg The address of the Game registry.
function initialize(address _ethrReg, address _gameReg) external isInitializer ifOwner{ require(gameReg == address(0) && ethrReg == address(0), ", registry already set."); ethrReg = _ethrReg; gameReg = _gameReg; }
1,824,975
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9190, 960, 22796, 6138, 18, 632, 891, 389, 546, 86, 1617, 1021, 1758, 434, 326, 512, 451, 86, 463, 734, 4023, 18, 632, 891, 389, 13957, 1617, 1021, 1758, 434, 326, 14121, 4023, 18, 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, 4046, 12, 2867, 389, 546, 86, 1617, 16, 1758, 389, 13957, 1617, 13, 3903, 353, 14729, 309, 5541, 95, 203, 3639, 2583, 12, 13957, 1617, 422, 1758, 12, 20, 13, 597, 13750, 86, 1617, 422, 1758, 12, 20, 3631, 3104, 4023, ...
./full_match/5/0x6022eFfDd18125A83cccd0B9D59017a3e392580D/sources/contracts/TheGardens.sol
* @dev hiveMint: Function to mint a specified number of bee NFTs for a given address as a reward from the staking contract, which is the hive. Ensures that the sender has the appropriate "hive" role, the minted amount doesn't exceed the total supply limit, and the contract is not locked. @param _to ...
function hiveMint( address _to, uint256 _amount ) public hive isHive maxHoneycombSupplyMint(_amount) noBeehiveLock { _mint(_to, _amount); }
7,039,116
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 20249, 49, 474, 30, 1377, 4284, 358, 312, 474, 279, 1269, 1300, 434, 27203, 423, 4464, 87, 364, 279, 864, 1758, 1377, 487, 279, 19890, 628, 326, 384, 6159, 6835, 16, 1492, 353, 326, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20249, 49, 474, 12, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 8949, 203, 565, 262, 1071, 20249, 27803, 688, 943, 44, 265, 402, 9301, 3088, 1283, 49, 474, 24899, 8949, 13, 1158, 27997, 76, 688, 2531, 2...
pragma solidity ^0.4.24; // File: node_modules\zeppelin-solidity\contracts\math\SafeMath.sol /** * @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) i...
* @dev Checks rest of tokens supply./
function supplyRest() public view returns (uint256) { return (tokenSupplyLimit.sub(token.totalSupply())); }
6,432,648
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13074, 3127, 434, 2430, 14467, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14467, 5188, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 261, 2316, 3088, 1283, 3039, 18, 1717, 12, 2316, 18, 4963, 3088, 1283, 1435, 10019, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100...
./partial_match/42/0x718D43051ec7E817920a9d736cabf3e55f82c6b5/sources/FannyVault.sol
this writes to storage
userInfo[from].deposits[depositID].withdrawed = true;
3,355,484
[ 1, 4625, 348, 7953, 560, 30, 225, 333, 7262, 358, 2502, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 16753, 63, 2080, 8009, 323, 917, 1282, 63, 323, 1724, 734, 8009, 1918, 9446, 329, 273, 638, 31, 225, 2, -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.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import '@openzeppelin/cont...
* @notice return all staked token ids for a given account @param account the account to return token ids for/
function stakedTokensOf(address account) external view returns (uint256[] memory) { uint256[] memory tokenIds = new uint256[](stakedTokens[account].length()); for (uint256 i; i < tokenIds.length; i++) { tokenIds[i] = stakedTokens[account].at(i); } return tokenIds; }
550,772
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 327, 777, 384, 9477, 1147, 3258, 364, 279, 864, 2236, 632, 891, 2236, 326, 2236, 358, 327, 1147, 3258, 364, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 9477, 5157, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 8526, 3778, 13, 288, 203, 1377, 2254, 5034, 8526, 3778, 1147, 2673, 273, 394, 2254, 5034, 8526, 12, 334, 9477, 5157, 63, 4631, 8009, 2469, 10...
/* ----------------------------------------------------------------- FILE INFORMATION ----------------------------------------------------------------- file: Owned.sol version: 1.1 author: Anton Jurisevic Dominic Romanowski date: 2018-2-26 ----------------------------------------------...
* @notice Obtain the next schedule entry that will vest for a given user. @return A pair of uints: (timestamp, havven quantity). /
function getNextVestingEntry(address account) public view returns (uint[2]) { uint index = getNextVestingIndex(account); if (index == numVestingEntries(account)) { return [uint(0), 0]; } return getVestingScheduleEntry(account, index); }
2,140,119
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 24850, 326, 1024, 4788, 1241, 716, 903, 331, 395, 364, 279, 864, 729, 18, 632, 2463, 432, 3082, 434, 2254, 87, 30, 261, 5508, 16, 366, 842, 3995, 10457, 2934, 342, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6927, 58, 10100, 1622, 12, 2867, 2236, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 63, 22, 5717, 203, 565, 288, 203, 3639, 2254, 770, 273, 6927, 58, 10100, 1016, 12, 4631, 1769, 203, 3639, 309, ...
./partial_match/1/0x12746bD686306bB78E525D05CC391963972d77C1/sources/D4ACreateProjectProxy.sol
some default value here
function initializeD4ASettings() public { D4ASettingsBaseStorage.Layout storage l = D4ASettingsBaseStorage.layout(); require(!l.initialized, "already initialized"); _grantRole(AccessControlStorage.DEFAULT_ADMIN_ROLE, msg.sender); _setRoleAdmin(DAO_ROLE, OPERATION_ROLE); _set...
9,289,288
[ 1, 4625, 348, 7953, 560, 30, 2690, 805, 460, 2674, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4046, 40, 24, 37, 2628, 1435, 1071, 288, 203, 3639, 463, 24, 37, 2628, 2171, 3245, 18, 3744, 2502, 328, 273, 463, 24, 37, 2628, 2171, 3245, 18, 6741, 5621, 203, 203, 3639, 2583, 12, 5, 80, 18, 13227, 16, 315, 17583,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed start...
* @notice Transfer `amount` tokens from `msg.sender` to `dst` @dev This function is expected to ALWAYS return true, or else it should throw @param dst The address of the destination account @param rawAmount The number of tokens to transfer @return Whether or not the transfer succeeded/
function transfer(address dst, uint256 rawAmount) external returns (bool) { uint96 amount = safe96(rawAmount, 'Ptp::transfer: amount exceeds 96 bits'); _transferTokens(msg.sender, dst, amount); return true; }
2,481,008
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 12279, 1375, 8949, 68, 2430, 628, 1375, 3576, 18, 15330, 68, 358, 1375, 11057, 68, 632, 5206, 1220, 445, 353, 2665, 358, 7981, 29295, 327, 638, 16, 578, 469, 518, 1410, 604, 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, 12, 2867, 3046, 16, 2254, 5034, 1831, 6275, 13, 3903, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 10525, 3844, 273, 4183, 10525, 12, 1899, 6275, 16, 296, 52, 6834, 2866, 13866, 30, 3844, 14399, 19332, 4125, 8284, 2...
pragma solidity >0.4.0 <0.7.0; pragma experimental ABIEncoderV2; //SPDX-License-Identifier: UNLICENSED import { Tasks, Task, TaskStatus, Lifecycle } from '../libraries/Tasks.sol'; import { Documents, Document } from '../libraries/Documents.sol'; import { Agreements, Agreement } from '../libraries/Agreements.sol'; /**...
* Ensure that the lifecycle alerts can be recovered from a task @param _index uint the index of the task within the testing contract @return _alerts bool[4] array of alert statuses/
function testGetAlerts(uint256 _index) public view returns (bool[4] memory _alerts) { return tasks[_index].getAlerts(); }
2,508,257
[ 1, 4625, 348, 7953, 560, 30, 380, 7693, 716, 326, 6596, 24304, 848, 506, 24616, 628, 279, 1562, 632, 891, 389, 1615, 2254, 326, 770, 434, 326, 1562, 3470, 326, 7769, 6835, 632, 2463, 389, 11798, 87, 1426, 63, 24, 65, 526, 434, 688...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1842, 967, 37, 29729, 12, 11890, 5034, 389, 1615, 13, 1071, 1476, 1135, 261, 6430, 63, 24, 65, 3778, 389, 11798, 87, 13, 288, 203, 565, 327, 4592, 63, 67, 1615, 8009, 588, 37, 29729, 5621, 203, 225, 289, 203, 203, 2...
./full_match/1/0x3f741D4E1279aC292281573cB8dEf98ab408Af6C/sources/EveRich.sol
initial tokens generation for the liquidity
constructor(uint256 initialTokens) public DeflationaryERC20("Pluton Finance | t.me/plutonfinance", "PLUTON") { _totalSupply = _totalSupply.add(initialTokens); _balances[msg.sender] = _balances[msg.sender].add(initialTokens); emit Transfer(address(0), msg.sender, initialTokens); }
5,011,977
[ 1, 4625, 348, 7953, 560, 30, 225, 2172, 2430, 9377, 364, 326, 4501, 372, 24237, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 12, 11890, 5034, 2172, 5157, 13, 1071, 1505, 2242, 367, 814, 654, 39, 3462, 2932, 1749, 322, 265, 9458, 1359, 571, 268, 18, 3501, 19, 412, 322, 265, 926, 1359, 3113, 315, 6253, 1693, 673, 7923, 288, 203, 3639, 389, 4...
pragma solidity ^0.4.23; import "./library/SaferMath.sol"; /** @title Bounty Collector. */ contract BountyCollector { using SaferMath for uint; /* Enums and Structs */ enum DisputeStatus { None, Reviewable, Declined, Accepted, Withdrawn } enum ProposalStatus { Reviewable, Declined, Accepted } en...
* @dev Decline a proposal @param _bountyIdentifier The identifier of the bounty that has the proposal to be declined @param _proposalIdentifier The identifier of the proposal to be declined @param _review The review of the proposal/
function declineProposal(uint _bountyIdentifier, uint _proposalIdentifier, string _review) external isNotStoppedOrExpired() bountyExists(_bountyIdentifier) proposalExists(_bountyIdentifier, _proposalIdentifier) onlyBountyPoster(_bountyIdentifier) openBounty(_bountyIdentifier) latestProposal(_bountyIdent...
12,687,092
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3416, 1369, 279, 14708, 632, 891, 389, 70, 592, 93, 3004, 1021, 2756, 434, 326, 324, 592, 93, 716, 711, 326, 14708, 358, 506, 3496, 1920, 632, 891, 389, 685, 8016, 3004, 1021, 2756, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 3496, 558, 14592, 12, 11890, 389, 70, 592, 93, 3004, 16, 2254, 389, 685, 8016, 3004, 16, 533, 389, 16041, 13, 203, 1377, 3903, 203, 1377, 8827, 15294, 1162, 10556, 1435, 324, 592, 93, 4002, 24899, 70, 592, 93, 3004, 1...
./partial_match/1/0x73c4D9238a9F6af8D35ddA9d9D98f2e81a983610/sources/contracts/Z3roUtility.sol
external */mint Utility
function useZ3ro(uint256 qty) external payable nonReentrant isZ3ro isEligibleMint(qty) { _safeMint(tx.origin, qty); emit utilityMinted(tx.origin, qty); }
9,411,545
[ 1, 4625, 348, 7953, 560, 30, 225, 3903, 1195, 81, 474, 13134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 999, 62, 23, 303, 12, 11890, 5034, 26667, 13, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 1661, 426, 8230, 970, 203, 3639, 353, 62, 23, 303, 203, 3639, 353, 4958, 16057, 49, 474, 12, 85, 4098, 13, 203, 565, 28...
./partial_match/1/0x89fAB7A248d4bCd83767297e5c168D032a72C1Fc/sources/Bitebull.sol
CONTRACT BY @DUMMYDU on Telegram
function transfer(address recipient, uint256 amount) external returns (bool);
15,562,910
[ 1, 4625, 348, 7953, 560, 30, 225, 8020, 2849, 1268, 6953, 632, 40, 2799, 22114, 16214, 603, 31256, 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, ...
[ 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, 7412, 12, 2867, 8027, 16, 2254, 5034, 3844, 13, 3903, 1135, 261, 6430, 1769, 3639, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; pragma experimental ABIEncoderV2; library Internal_Merkle_Library_Sorted_Hash { // Hashes a and b in the order they are passed function hash_node(bytes32 a, bytes32 b) internal pure returns (bytes32 hash) { assembly { mstore(0x00, a) ...
INTERFACE: Try to append a bytes element in memory, given a root, an index, a bytes element in calldata, and a Single Proof
function try_append_one_using_one_m( bytes32 root, uint256 index, bytes calldata element, bytes memory append_element, bytes32[] calldata proof ) internal pure returns (bytes32 element_root) { bytes32 total_element_count = proof[0]; require(root != bytes32(0) || total_element_count == b...
12,859,782
[ 1, 4625, 348, 7953, 560, 30, 225, 11391, 11300, 30, 6161, 358, 714, 279, 1731, 930, 316, 3778, 16, 864, 279, 1365, 16, 392, 770, 16, 279, 1731, 930, 316, 745, 892, 16, 471, 279, 10326, 1186, 792, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 775, 67, 6923, 67, 476, 67, 9940, 67, 476, 67, 81, 12, 203, 565, 1731, 1578, 1365, 16, 203, 565, 2254, 5034, 770, 16, 203, 565, 1731, 745, 892, 930, 16, 203, 565, 1731, 3778, 714, 67, 2956, 16, 203, 565, 1731, 157...
pragma solidity >=0.4.21 <0.6.0; import "./SafeMath.sol"; contract Earnings { using SafeMath for *; // -------------------- mapping ------------------------ // mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information // -------------------- variate -...
returns contract statistics
{ recommendRankPool = straightSortRewards; terminatorPool = getCurrentTerminatorAmountPool(); }
939,127
[ 1, 4625, 348, 7953, 560, 30, 225, 1135, 6835, 7691, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 22867, 12925, 2864, 273, 21251, 4416, 17631, 14727, 31, 203, 3639, 24965, 2864, 273, 5175, 31868, 6275, 2864, 5621, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT // File: contracts/Base64.sol pragma solidity ^0.8.0; /** * @author Artur Chmarusso (https://gist.github.com/Chmarusso + https://twitter.com/ArtiChmaro) */ library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+...
* @notice Update a payout wallet address @param newAddress New wallet address./
function _setAccountSplit30Address(address newAddress) external onlyOwner { accountSplit30 = newAddress; }
14,606,727
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2315, 279, 293, 2012, 9230, 1758, 632, 891, 394, 1887, 1166, 9230, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 542, 3032, 5521, 5082, 1887, 12, 2867, 394, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 2236, 5521, 5082, 273, 394, 1887, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import './IPool.sol'; import './ICorePool.sol'; import './ModaConstants.sol'; import './EscrowedModaERC20.sol'; import './ModaPoolFacto...
* @notice Unstakes specified amount of tokens, and pays pending yield rewards if any @dev Requires amount to unstake to be greater than zero @param _depositId deposit ID to unstake from, zero-indexed @param _amount amount of tokens to unstake/ delegate call to an internal function
function unstake( uint256 _depositId, uint256 _amount ) external override { _unstake(msg.sender, _depositId, _amount); }
12,828,328
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1351, 334, 3223, 1269, 3844, 434, 2430, 16, 471, 293, 8271, 4634, 2824, 283, 6397, 309, 1281, 632, 5206, 16412, 3844, 358, 640, 334, 911, 358, 506, 6802, 2353, 3634, 632, 891, 389, 323, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 640, 334, 911, 12, 203, 202, 202, 11890, 5034, 389, 323, 1724, 548, 16, 203, 202, 202, 11890, 5034, 389, 8949, 203, 202, 13, 3903, 3849, 288, 203, 202, 202, 67, 23412, 911, 12, 3576, 18, 15330, 16, 389, 323, 1724, 5...
pragma solidity ^0.4.11; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a,...
* @title TKRToken @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator. Note they can later distribute these tokens as they wish using `transfer` and other `StandardToken` functions./
contract TKRToken is StandardToken { event Destroy(address indexed _from, address indexed _to, uint256 _value); string public name = "TKRToken"; string public symbol = "TKR"; uint256 public decimals = 18; uint256 public initialSupply = 65500000 * 10 ** 18; function TKRToken() { totalSu...
7,781,515
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 399, 47, 54, 1345, 632, 5206, 776, 627, 4143, 4232, 39, 3462, 3155, 3454, 16, 1625, 777, 2430, 854, 675, 17, 15938, 358, 326, 11784, 18, 3609, 2898, 848, 5137, 25722, 4259, 2430, 487, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 16351, 399, 47, 54, 1345, 353, 8263, 1345, 288, 203, 565, 871, 15701, 12, 2867, 8808, 389, 2080, 16, 1758, 8808, 389, 869, 16, 2254, 5034, 389, 1132, 1769, 203, 203, 565, 533, 1071, 508, 273, 315, 56, 47, 54, 1345, 14432, 203, ...
/** * Coffee * * Just a very simple example of deploying a contract at a vanity address * across several chains. * * See: https://blog.ricmoo.com/contract-addresses-549074919ec8 * */ pragma solidity ^0.4.20; contract Coffee { address _owner; uint48 _mgCaffeine; uint48 _count; function C...
* status() Returns the number of drinks and amount of caffeine this contract has been responsible for installing into the developer./
function status() public constant returns (uint48 count, uint48 mgCaffeine) { count = _count; mgCaffeine = _mgCaffeine; }
5,957,989
[ 1, 4625, 348, 7953, 560, 30, 380, 282, 1267, 1435, 282, 2860, 326, 1300, 434, 5081, 754, 87, 471, 3844, 434, 3474, 1403, 73, 558, 333, 6835, 282, 711, 2118, 14549, 364, 3799, 310, 1368, 326, 8751, 18, 19, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1267, 1435, 1071, 5381, 1135, 261, 11890, 8875, 1056, 16, 2254, 8875, 11174, 39, 7329, 73, 558, 13, 288, 203, 3639, 1056, 273, 389, 1883, 31, 203, 3639, 11174, 39, 7329, 73, 558, 273, 389, 81, 75, 39, 7329, 73, 558, ...
./full_match/1/0x74700F8E2dD1B6B1e5C71723e5d976ef391c3EAb/sources/browser/MXXERC20.sol
* @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` must have a balance of at least `amount`./require(sender != address(0), "...
function _transfer(address sender, address recipient, uint256 amount) internal virtual { _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); ...
8,397,566
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 10829, 2430, 1375, 8949, 68, 628, 1375, 15330, 68, 358, 1375, 20367, 8338, 1220, 353, 2713, 445, 353, 7680, 358, 288, 13866, 5779, 471, 848, 506, 1399, 358, 425, 18, 75, 18, 2348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 2713, 5024, 288, 203, 203, 3639, 389, 5771, 1345, 5912, 12, 15330, 16, 8027, 16, 3844, 1769, 203, 203, 3639, 389, 70, 26488, 63, 15330, 65, 273, 38...
./partial_match/8453/0xFc29813Beeb3c7395C7A5f8dfC3352491D5ea0E2/sources/contracts/burnredeem/IBurnRedeemCore.sol
* @notice parameters for burn redeem intialization/updates @param paymentReceiver the address to forward proceeds from paid burn redeems @param storageProtocol the type of storage used for the redeem token URIs @param redeemAmount the number of redeem tokens to mint for each burn redeem @param totalSupply ...
struct BurnRedeemParameters { address payable paymentReceiver; StorageProtocol storageProtocol; uint16 redeemAmount; uint32 totalSupply; uint48 startDate; uint48 endDate; uint160 cost; string location; BurnGroup[] burnSet; }
16,794,476
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1472, 364, 18305, 283, 24903, 509, 649, 1588, 19, 14703, 632, 891, 5184, 12952, 282, 326, 1758, 358, 5104, 11247, 87, 628, 30591, 18305, 283, 323, 7424, 632, 891, 2502, 5752, 282, 326, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 605, 321, 426, 24903, 2402, 288, 203, 3639, 1758, 8843, 429, 5184, 12952, 31, 203, 3639, 5235, 5752, 2502, 5752, 31, 203, 3639, 2254, 2313, 283, 24903, 6275, 31, 203, 3639, 2254, 1578, 2078, 3088, 1283, 31, 203, 3639, ...
./full_match/1/0xECedA78E9F69E8bB667FC0829c034C9fC8DAf665/sources/@franknft.eth/erc721-f/contracts/token/ERC721/ERC721F.sol
Base URI for Meta data
contract ERC721F is Ownable, ERC721 { uint256 private _tokenSupply; uint256 private _burnCounter; string private _baseTokenURI; constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) function walletOfOwner(address _owner) external view virtu...
16,452,159
[ 1, 4625, 348, 7953, 560, 30, 225, 3360, 3699, 364, 6565, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 42, 353, 14223, 6914, 16, 4232, 39, 27, 5340, 288, 203, 565, 2254, 5034, 3238, 389, 2316, 3088, 1283, 31, 203, 565, 2254, 5034, 3238, 389, 70, 321, 4789, 31, 203, 203, 565, 533, 3238, 389, 1969, 1345,...
./partial_match/1313161554/0x89AC9ceFC4E69B484fb46602964B38380FD19fb5/sources/ReaperStrategyTrisolaris.sol
* @title SafeERC20 @dev Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for IERC20...
library SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value function lpToken(uint256 pid) external view returns (address); function poolInfo(uint256 pid) external view returns (IMasterChef.PoolIn...
16,939,426
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14060, 654, 39, 3462, 632, 5206, 4266, 10422, 6740, 4232, 39, 3462, 5295, 716, 604, 603, 5166, 261, 13723, 326, 1147, 6835, 1135, 629, 2934, 13899, 716, 327, 1158, 460, 261, 464, 3560, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 654, 39, 3462, 10784, 429, 288, 203, 565, 1450, 5267, 10784, 429, 364, 1758, 31, 203, 203, 565, 445, 4183, 5912, 12, 203, 3639, 467, 654, 39, 3462, 10784, 429, 1147, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, ...
./full_match/137/0x8785A084FEee5Da46bfa70b3abD94EA157875037/sources/contracts/MasterChef.sol
Deposit LP tokens to MasterChef for Squid allocation. direct ref direct refs from direct ref their refs
function deposit(uint _pid, uint _amount, address _ref) external nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; _updatePool(_pid); user.rewardKept += _pendingSquid(_pid, msg.sender); if(_amount > 0) { i...
4,712,335
[ 1, 4625, 348, 7953, 560, 30, 225, 4019, 538, 305, 511, 52, 2430, 358, 13453, 39, 580, 74, 364, 348, 26595, 13481, 18, 2657, 1278, 2657, 9047, 628, 2657, 1278, 3675, 9047, 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, 443, 1724, 12, 11890, 389, 6610, 16, 2254, 389, 8949, 16, 1758, 389, 1734, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, ...
pragma solidity 0.6.2; pragma experimental ABIEncoderV2; import 'RLP.sol'; import 'StorageStructure.sol'; /// @title CertiÐApp Smart Contract /// @author Soham Zemse from The EraSwap Team /// @notice This contract accepts certificates signed by multiple authorised signers contract CertiDApp is StorageStructure { us...
@title CertiÐApp Smart Contract @author Soham Zemse from The EraSwap Team @notice This contract accepts certificates signed by multiple authorised signers
contract CertiDApp is StorageStructure { using RLP for bytes; using RLP for RLP.RLPItem; constructor() public { _changeManager(msg.sender); } function changeManager(address _newManagerAddress) public onlyManager { _changeManager(_newManagerAddress); } function updateCertifyingAuthority( add...
6,458,680
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 11921, 77, 132, 243, 3371, 19656, 13456, 632, 4161, 6155, 31698, 2285, 351, 307, 628, 1021, 512, 354, 12521, 10434, 632, 20392, 1220, 6835, 8104, 12522, 6726, 635, 3229, 2869, 5918, 1573, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 11921, 77, 40, 3371, 353, 5235, 6999, 288, 203, 225, 1450, 534, 14461, 364, 1731, 31, 203, 225, 1450, 534, 14461, 364, 534, 14461, 18, 54, 48, 1102, 874, 31, 203, 203, 225, 3885, 1435, 1071, 288, 203, 565, 389, 3427, 131...
pragma solidity ^0.4.13; interface ERC721Enumerable /* is ERC721 */ { /// @notice Count NFTs tracked by this contract /// @return A count of valid NFTs tracked by this contract, where each one of /// them has an assigned and queryable owner not equal to the zero address function totalSupply() public v...
* @notice Internal function to clear current approval of a given token ID @param _tokenId uint256 ID of the token to be transferred/
function _clearApproval(address _owner, uint256 _tokenId) private { require(ownerOf(_tokenId) == _owner); tokenApprovals[_tokenId] = 0; Approval(_owner, 0, _tokenId); }
478,495
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3186, 445, 358, 2424, 783, 23556, 434, 279, 864, 1147, 1599, 632, 891, 389, 2316, 548, 2254, 5034, 1599, 434, 326, 1147, 358, 506, 906, 4193, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 8507, 23461, 12, 2867, 389, 8443, 16, 2254, 5034, 389, 2316, 548, 13, 3238, 288, 203, 565, 2583, 12, 8443, 951, 24899, 2316, 548, 13, 422, 389, 8443, 1769, 203, 565, 1147, 12053, 4524, 63, 67, 2316, 548, 65, 273,...
./full_match/1/0xC493a42Cb57b7cf09787E4bc9f234216D6998d80/sources/contracts/NobleICONS.sol
* @dev See {IERC721Metadata-tokenURI}./
function tokenURI( uint256 tokenId ) public virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0...
4,958,517
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 2277, 17, 2316, 3098, 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...
[ 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, 1147, 3098, 12, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 1071, 5024, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 2583, 12, 203, 5411, 389, 1808, 12, 2316, 548, 3631, 203, 5411, 315, 654, 39, 27, 5340, 227...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import {ContextUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import {ERC165Upgradeable} from "@openzeppelin/contracts-upgrade...
transfers ownership of the upgradeable becon to the initializer
_beacon.transferOwnership(msg.sender);
13,128,374
[ 1, 4625, 348, 7953, 560, 30, 225, 29375, 23178, 434, 326, 8400, 429, 506, 591, 358, 326, 12562, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 2196, 16329, 18, 13866, 5460, 12565, 12, 3576, 18, 15330, 1769, 10402, 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: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Provides a flexible and updatable auth pattern which is completely separate from application logic. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Auth.sol) /// @author Modified from Dappsys (https://github....
set authority to something that enables operators for aphra
) Auth(GOVERNANCE_, AUTHORITY_) {
6,970,562
[ 1, 4625, 348, 7953, 560, 30, 444, 11675, 358, 5943, 716, 19808, 12213, 364, 513, 76, 354, 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, ...
[ 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, 262, 3123, 12, 43, 12959, 50, 4722, 67, 16, 12790, 14751, 67, 13, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/43113/0xe542794321E8FFAf2F00022C45d582AaEBB3Da92/sources/contracts/AscendersLand.sol
@dev See {IERC4907-setUser}
function setUser(uint256 tokenId, address user, uint64 expires) public virtual { require(_isApprovedOrOwner(msg.sender, tokenId), "ERC4907: transfer caller is not owner nor approved"); UserInfo storage info = _users[tokenId]; info.user = user; info.expires = expires; emit Up...
7,114,002
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2164, 288, 45, 654, 39, 7616, 8642, 17, 542, 1299, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 14365, 12, 11890, 5034, 1147, 548, 16, 1758, 729, 16, 2254, 1105, 7368, 13, 1071, 5024, 288, 203, 3639, 2583, 24899, 291, 31639, 1162, 5541, 12, 3576, 18, 15330, 16, 1147, 548, 3631, 315, 654, 39, 7616, 8642, 30, 7412, ...
./full_match/42161/0x2679753c8037b6c1404b33EB7690331C902F0075/sources/lib/solrary/src/structs/EnumerableMap.sol
* @notice Adds a value to the set. @param self The bytes32 set to update. @param value The bytes32 value. @return True if the value was added, that is if the value was not already in the set./
function add(Bytes32Set storage self, bytes32 value) internal returns (bool) { return _add(self._inner, _BYTES32_SET_OFFSET, value, bytes32(0)); }
16,298,216
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 15605, 279, 460, 358, 326, 444, 18, 632, 891, 365, 1021, 1731, 1578, 444, 358, 1089, 18, 632, 891, 460, 1021, 1731, 1578, 460, 18, 632, 2463, 1053, 309, 326, 460, 1703, 3096, 16, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 2160, 1578, 694, 2502, 365, 16, 1731, 1578, 460, 13, 2713, 1135, 261, 6430, 13, 288, 203, 3639, 327, 389, 1289, 12, 2890, 6315, 7872, 16, 389, 13718, 1578, 67, 4043, 67, 11271, 16, 460, 16, 1731, 1578, 12, ...
// contracts/TVL.sol // SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155PausableUpgradeable.sol"; import "./TrancheSystem.sol"; /// --------------------------------------- ...
@dev function to get total amount of tokens over all token ids @return uint256 number of total tokens
function getTotalNumberTokens() external view returns (uint256) { uint256 totalNum = 0; for (uint256 i = 0; i < maxTokenId; i++) { totalNum = totalNum.add(numTokensById[i]); } return totalNum; }
5,458,731
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 445, 358, 336, 2078, 3844, 434, 2430, 1879, 777, 1147, 3258, 632, 2463, 2254, 5034, 1300, 434, 2078, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 12831, 1854, 5157, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 2078, 2578, 273, 374, 31, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 943, 1345, 548, 31, 277, 27245, 288, ...
/** *Submitted for verification at Etherscan.io on 2021-09-05 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.4; // _______ ______ __ __ _______ _______ _______ _______ _______ _______ __ __ ___ // | || _ | | | | || || || | | || || || | | ...
* @dev Deployer sets PROVENANCE/
function deployerSetProvenance(string memory finalProvenance) external onlyDeployer { require(!contractSealed, "Contract sealed"); PROVENANCE = finalProvenance; }
7,921,405
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7406, 264, 1678, 4629, 58, 1157, 4722, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7286, 264, 694, 626, 15856, 12, 1080, 3778, 727, 626, 15856, 13, 3903, 1338, 10015, 264, 288, 203, 3639, 2583, 12, 5, 16351, 1761, 18931, 16, 315, 8924, 695, 18931, 8863, 203, 3639, 4629, 58, 1157, 4722, 273, 727, 626, ...
pragma solidity ^0.5.5; //DCC VERSION 5 /// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens /// @author Dieter Shirley <dete@axiomzen.co> (https://github.com/dete) interface ERC721 { // Required methods function totalSupply() external view returns (uint256 total); ...
* Not necessary in the contract/
function approve(address _to, uint256 _tokenId) external { }
6,380,463
[ 1, 4625, 348, 7953, 560, 30, 380, 2288, 4573, 316, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 12, 2867, 389, 869, 16, 2254, 5034, 389, 2316, 548, 13, 3903, 288, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0xc3ED798159e449d224DE05515385F86C1d10608F/sources/AllMarketsV2.sol
* @dev Withdraw maximum possible deposited and available assets @param _maxRecords Maximum number of records to check/
function withdrawMax(uint _maxRecords) public { (uint _plotLeft, uint _plotReward, uint _ethLeft, uint _ethReward) = getUserUnusedBalance(msg.sender); _plotLeft = _plotLeft.add(_plotReward); _ethLeft = _ethLeft.add(_ethReward); _withdraw(_plotLeft, _ethLeft, _maxRecords, _plotLeft, _ethLeft)...
2,788,273
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3423, 9446, 4207, 3323, 443, 1724, 329, 471, 2319, 7176, 632, 891, 389, 1896, 6499, 18848, 1300, 434, 3853, 358, 866, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 2747, 12, 11890, 389, 1896, 6499, 13, 1071, 288, 203, 1377, 261, 11890, 389, 4032, 3910, 16, 2254, 389, 4032, 17631, 1060, 16, 2254, 389, 546, 3910, 16, 2254, 389, 546, 17631, 1060, 13, 273, 4735, 21106, 1393...
./full_match/80001/0xd3798E3e7b5332EFb7753e82edb7E1241E423302/sources/contracts/GetVotedToEarn.sol
func list create a contest and fund the contest at the same time
contract GetVotedToEarnV3 { pragma solidity ^0.8.9; struct Contest { address contestCreator; Participant[] participants; string contestTitle; string contestDescription; uint256 contestPrizeAmount; uint256 contestDeadline; Winner[] winner; } struct Wi...
9,516,437
[ 1, 4625, 348, 7953, 560, 30, 225, 1326, 666, 752, 279, 466, 395, 471, 284, 1074, 326, 466, 395, 622, 326, 1967, 813, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 968, 58, 16474, 774, 41, 1303, 58, 23, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 29, 31, 203, 203, 565, 1958, 1816, 395, 288, 203, 3639, 1758, 466, 395, 10636, 31, 203, 3639, 31333, 8526, 22346, 31, 203, 3...
./full_match/5/0xcBd48b75f63860bD2E260291BB3E843F7C2377BB/sources/contracts/XChainController.sol
@notice Resets all stages in vaultStage struct for a vaultNumber @notice Must be run when a new vaultNumber is deployed @dev onlyGuardian modifier so the dao can reset all stages for a vaultNumber incase something goes wrong
function resetVaultStagesDao(uint256 _vaultNumber) external onlyGuardian { return resetVaultStages(_vaultNumber); }
7,056,766
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1124, 2413, 777, 20298, 316, 9229, 8755, 1958, 364, 279, 9229, 1854, 632, 20392, 6753, 506, 1086, 1347, 279, 394, 9229, 1854, 353, 19357, 632, 5206, 1338, 16709, 2779, 9606, 1427, 326, 152...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2715, 12003, 31359, 11412, 12, 11890, 5034, 389, 26983, 1854, 13, 3903, 1338, 16709, 2779, 288, 203, 565, 327, 2715, 12003, 31359, 24899, 26983, 1854, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functio...
* @dev Transfers `tokenId` from `from` to `to`. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./ Clear approvals from the previous owner
function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721Sequential.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own" ); require(to != address(0), "ERC721: transfer to the zero ad...
5,978,740
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2604, 18881, 1375, 2316, 548, 68, 628, 1375, 2080, 68, 358, 1375, 869, 8338, 225, 2970, 1061, 7423, 358, 288, 13866, 1265, 5779, 333, 709, 10522, 1158, 17499, 603, 1234, 18, 15330, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 5024, 288, 203, 3639, 2583, 12, 203, 5411, 4232, 39, 27, 5340, 28241, 18, 8443, 951, 12, 2316,...
./full_match/44787/0x45C4071eF868Df5237069FF383964f8bA246D4FF/sources/project_/contracts/LandNFT.sol
NFT info Owned lands to use in enumeration mapping to get buyers of a land mappings of conflictive data such as species and location
{ using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; address public marketplace; string public baseURI; mapping(uint256 => NFTInfo) private mintedNFTSInfo; mapping(address => mapping(uint256 => uint256)) private ownedLands; mapping(uint256 => uint256) private...
13,291,133
[ 1, 4625, 348, 7953, 560, 30, 225, 423, 4464, 1123, 14223, 11748, 328, 5708, 358, 999, 316, 16836, 2874, 358, 336, 30143, 414, 434, 279, 19193, 7990, 434, 7546, 688, 501, 4123, 487, 12891, 471, 2117, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 203, 565, 9354, 87, 18, 4789, 3238, 389, 2316, 548, 4789, 31, 203, 565, 1758, 1071, 29917, 31, 203, 203, 203, 565, 533, 1071, 1026, 3098, 31, 203, 203, 565, 2874...
./partial_match/82/0xeE645d3f728Eb12AAdf13cA253df7f7990fEeE72/sources/MeterMallows.sol
which mallow is approved to be transfered
mapping(uint256 => address) public approvalOneMallow;
16,903,570
[ 1, 4625, 348, 7953, 560, 30, 1492, 312, 5965, 353, 20412, 358, 506, 7412, 329, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 1758, 13, 1071, 23556, 3335, 49, 5965, 31, 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...
/** * @title ClaimableCrowdsale * @title TORX.network claimable crowdsale contract. */ contract ClaimableCrowdsale is Pausable { using SafeMath for uint256; // all accepted ethers will be sent to this address address beneficiaryAddress1; address beneficiaryAddress2; address beneficiaryAddress3;...
@dev Set new TORX token exchange rate./
function setTokenRate(uint256 _tokenRate) onlyOwner { require (_tokenRate > 0); tokenRate = _tokenRate; }
12,565,225
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1000, 394, 399, 916, 60, 1147, 7829, 4993, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4727, 12, 11890, 5034, 389, 2316, 4727, 13, 1338, 5541, 288, 203, 3639, 2583, 261, 67, 2316, 4727, 405, 374, 1769, 203, 3639, 1147, 4727, 273, 389, 2316, 4727, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //interface of a MultiClassOrderBook compliant contract import "./../interfaces/IMultiClassOrderBook.sol"; /** * @dev Abstract that allows tokens to be listed in an order book */ abstract contract MultiClassOrderBook is IMultiClassOrderBook { // mapping of ...
* @dev Abstract that allows tokens to be listed in an order book/ mapping of `tokenId` to amount amount defaults to 0 and is in wei apparently the data type for ether units is uint256 so we can interact with it the same see: https:docs.soliditylang.org/en/v0.7.1/units-and-global-variables.html
abstract contract MultiClassOrderBook is IMultiClassOrderBook { mapping (uint256 => uint256) private _book; function ownerOf(uint256 tokenId) public view virtual returns (address); function _msgSender() internal view virtual returns (address); function listingOf(uint256 tokenId) public view virtual...
13,034,264
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4115, 716, 5360, 2430, 358, 506, 12889, 316, 392, 1353, 6978, 19, 2874, 434, 1375, 2316, 548, 68, 358, 3844, 3844, 3467, 358, 374, 471, 353, 316, 732, 77, 29614, 715, 326, 501, 618, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 5991, 797, 2448, 9084, 353, 467, 5002, 797, 2448, 9084, 288, 203, 225, 2874, 261, 11890, 5034, 516, 2254, 5034, 13, 3238, 389, 3618, 31, 203, 203, 225, 445, 3410, 951, 12, 11890, 5034, 1147, 548, 13, 7010, 565, 1071,...
./full_match/137/0x17c37317ecC453891e3C2385005Ab5046516Bc03/sources/contracts/CP.sol
in case something wrong with base token contract
function emergencySettle() external isNotForceStop phaseSettlement preventReentrant { require(block.timestamp >= _PHASE_CALM_ENDTIME_.add(_SETTLEMENT_EXPIRE_), "NOT_EMERGENCY"); _settle(); _UNUSED_QUOTE_ = _QUOTE_TOKEN_.balanceOf(address(this)); }
4,697,383
[ 1, 4625, 348, 7953, 560, 30, 225, 316, 648, 5943, 7194, 598, 1026, 1147, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 801, 24530, 694, 5929, 1435, 3903, 8827, 10997, 4947, 6855, 694, 88, 806, 5309, 426, 8230, 970, 288, 203, 3639, 2583, 12, 2629, 18, 5508, 1545, 389, 8939, 4429, 67, 7913, 49, 67, 4415, 4684, 27799, 1289, 24899, 27543, 7...
pragma solidity ^0.4.24; /* * ZETHR PRESENTS: SLOTS * * Written August 2018 by the Zethr team for zethr.game. * * Code framework written by Norsefire. * EV calculations written by TropicalRogue. * Audit and edits written by Klob. * Multiroll framework written by Etherguy. * * Rolling Odds: * 49.31% Lose / 50.69% Wi...
* @dev Multiplies two numbers, throws on overflow./
{ if (a == 0) { return 0; } uint c = a * b; assert(c / a == b); return c; }
8,027,268
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5991, 5259, 2795, 5600, 16, 1216, 603, 9391, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 288, 203, 565, 309, 261, 69, 422, 374, 13, 288, 203, 1377, 327, 374, 31, 203, 565, 289, 203, 565, 2254, 276, 273, 279, 380, 324, 31, 203, 565, 1815, 12, 71, 342, 279, 422, 324, 1769, 203, 565, 327, 276, 31, 203, 225, ...
// Правила для изменения достоверности распознавания конкретных словоформ в русском словаре. // Обычное предназначение этих правил - изменить равновероятные распознавания // омонимичных форм жаль(безличный глагол)>жаль(императив), // либо повлиять на выбор многословных форм в противовес // выбору отдельных слов: [сле...
Санкционированная акция прошла с 16 до 17 часов.
wordforms_score до{ существительное }=-5
7,303,440
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 145, 99, 145, 113, 145, 126, 145, 123, 146, 233, 145, 121, 145, 127, 145, 126, 145, 121, 146, 227, 145, 127, 145, 115, 145, 113, 145, 126, 145, 126, 145, 113, 146, 242, 225, 145, 113, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 1095, 9741, 67, 6355, 225, 145, 117, 145, 127, 95, 225, 146, 228, 146, 230, 146, 236, 145, 118, 146, 228, 146, 229, 145, 115, 145, 121, 146, 229, 145, 118, 145, 124, 146, 239, 145, 126, 145, 127, 145, 118, 289, 29711, 25, 2...
pragma solidity ^0.5.0; contract TestContract { function swapAllAndMix23(uint a, uint b, uint c) public returns (uint, uint, uint) { uint mixed = mixParameters(b, c); uint a1; uint b1; // Weed out solutions with less than 2-context-sensitivity swapParameters(a, b); ...
Weed out solutions with less than 2-context-sensitivity
function swapAllAndMix23_3(uint a, uint b, uint c) public returns (uint, uint, uint) { uint mixed = mixParameters(b, c); uint a1; uint b1; swapParameters(a, b); swapParameters(b, c); swapParameters(a, c); mixParameters(a, c); mixParameters(a, b); ...
14,108,805
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 329, 596, 22567, 598, 5242, 2353, 576, 17, 2472, 17, 87, 773, 20862, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7720, 1595, 1876, 21294, 4366, 67, 23, 12, 11890, 279, 16, 2254, 324, 16, 2254, 276, 13, 1071, 1135, 261, 11890, 16, 2254, 16, 2254, 13, 288, 203, 3639, 2254, 7826, 273, 6843, 2402, 12, 70, 16, 276, 1769, 203, 3639, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.5.16; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; //import "@Uniswap/contracts/UniswapV2ERC20.sol"; //import "@Uniswap/contracts/interfaces/IUniswapV2Pair.sol"; //import "./farms/ComethFarm.sol"; import "../interfaces/IStakingMultiRewards.sol"; cont...
get balance withdraw from farm transferFrom this to sender
function withdraw(uint256 _amount) public onlyUser { IStakingMultiRewards comethFarm = IStakingMultiRewards(farm); uint256 balance = comethFarm.balanceOf(address(this)); require(_amount <= balance, "Cannot withdraw more than deposited"); comethFarm.withdraw(_amount); IERC2...
1,052,238
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 11013, 598, 9446, 628, 284, 4610, 7412, 1265, 333, 358, 5793, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 598, 9446, 12, 11890, 5034, 389, 8949, 13, 1071, 1338, 1299, 288, 203, 3639, 467, 510, 6159, 5002, 17631, 14727, 532, 546, 42, 4610, 273, 467, 510, 6159, 5002, 17631, 14727, 12, 74, 4610, 1769, 203, 203, 3639, 2254, 503...
pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ChainlinkToOracleBridge.sol"; import "./IMedianOracleGetter.sol"; /** * @title ChainlinkToOracleBridge requests data from the Chainlink network and feeds it to xBTCs * Dominance Oracle * @dev This contract is designed to wor...
* @notice Changes the Chainlink data source. @param _chainlinkBridge Address of the new Chainlink data source./
function setChainlinkBridge(ChainlinkToOracleBridge _chainlinkBridge) external onlyOwner { require(chainlinkBridge != _chainlinkBridge, 'New bridge must be different'); chainlinkBridge = _chainlinkBridge; emit ChainlinkBridgeSet(_chainlinkBridge); }
15,881,724
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 17776, 326, 7824, 1232, 501, 1084, 18, 632, 891, 389, 5639, 1232, 13691, 5267, 434, 326, 394, 7824, 1232, 501, 1084, 18, 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, 225, 445, 444, 3893, 1232, 13691, 12, 3893, 1232, 774, 23601, 13691, 389, 5639, 1232, 13691, 13, 203, 565, 3903, 203, 565, 1338, 5541, 203, 225, 288, 203, 565, 2583, 12, 5639, 1232, 13691, 480, 389, 5639, 1232, 13691, 16, 296, 19...
./partial_match/1/0x4B2Fb80953014BEF41C23353519a461E95d2d7cb/sources/FrameDataStoreOwnable.sol
Create the header for the contract data Prepare the code for storage in a contract Create the contract
function saveData( string memory _key, uint128 _pageNumber, bytes memory _b ) public onlyOwner { require( _b.length < 24576, "FrameDataStore: Exceeded 24,576 bytes max contract size" ); require( (!hasKey(_key) && _pageNumber ==...
2,667,443
[ 1, 4625, 348, 7953, 560, 30, 225, 1788, 326, 1446, 364, 326, 6835, 501, 7730, 326, 981, 364, 2502, 316, 279, 6835, 1788, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 1923, 751, 12, 203, 3639, 533, 3778, 389, 856, 16, 203, 3639, 2254, 10392, 389, 2433, 1854, 16, 203, 3639, 1731, 3778, 389, 70, 203, 565, 262, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 389, 70, 18, 2469, ...
// Sources flattened with hardhat v2.4.1 https://hardhat.org // File contracts/upgrades/MathUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity =0.6.12; pragma experimental ABIEncoderV2; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { /** * @dev...
Approve Chef and xSushi (aka SushiBar) to use our sushi Approve sushi router to transfer sushi, token0, and token1
function initialize( address _governance, address _strategist, address _controller, address _keeper, address _guardian, address _want, uint256 _pid, uint256[3] memory _feeConfig, address[] memory _pathRewardToToken0, address[] memory _p...
14,011,491
[ 1, 4625, 348, 7953, 560, 30, 225, 1716, 685, 537, 31296, 471, 619, 55, 1218, 77, 261, 581, 69, 348, 1218, 77, 5190, 13, 358, 999, 3134, 272, 1218, 77, 1716, 685, 537, 272, 1218, 77, 4633, 358, 7412, 272, 1218, 77, 16, 1147, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4046, 12, 203, 3639, 1758, 389, 75, 1643, 82, 1359, 16, 203, 3639, 1758, 389, 701, 1287, 376, 16, 203, 3639, 1758, 389, 5723, 16, 203, 3639, 1758, 389, 79, 9868, 16, 203, 3639, 1758, 389, 24594, 2779, 16, 203, 3639, ...
pragma solidity ^0.4.24; /** title -LuckyETH- v0.1.0 * ┌┬┐┌─┐┌─┐┌┬┐ ╦ ╦ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐ * │ ├┤ ├─┤│││ ║ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐ * ┴ └─┘┴ ┴┴ ┴ ╚╝ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘ */ //============================================================================== // _ _ _ _|_ _ . // ...
call end tx function to fire end tx event.
endTx(_eventData_);
2,232,341
[ 1, 4625, 348, 7953, 560, 30, 225, 745, 679, 2229, 445, 358, 4452, 679, 2229, 871, 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...
[ 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, 3639, 679, 4188, 24899, 2575, 751, 67, 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, ...
pragma solidity ^0.4.24; /** New808token ERC20 contract Symbol : T808 Name : New808token Decimals : 0 Owner Account : 0x9BDD969B35b0BA80014A9Ba771a3842883Eac1bA (c) by Didar Metu 2021. MIT Licence. */ /** Lib: Safe Math */ contract SafeMath { function safeAdd(uint a, uint b) public pure retu...
Check if the sender has enough
require(tokens <= balances[msg.sender]);
5,994,286
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 326, 5793, 711, 7304, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 7860, 1648, 324, 26488, 63, 3576, 18, 15330, 19226, 18701, 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,...
pragma solidity ^0.5.11; // Public-Sale for #3277-12000 stage of Voken2.0 // // More info: // https://vision.network // https://voken.io // // Contact us: // support@vision.network // support@voken.io /** * @dev Uint256 wrappers over Solidity's arithmetic operations with added overflow checks. */ library S...
Season => account: usd, wei
_usdSeasonAccountPurchased[_season][msg.sender] = _usdSeasonAccountPurchased[_season][msg.sender].add(__usd);
14,102,056
[ 1, 4625, 348, 7953, 560, 30, 225, 3265, 2753, 516, 2236, 30, 584, 72, 16, 732, 77, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 389, 407, 72, 1761, 2753, 3032, 10262, 343, 8905, 63, 67, 30321, 6362, 3576, 18, 15330, 65, 273, 389, 407, 72, 1761, 2753, 3032, 10262, 343, 8905, 63, 67, 30321, 6362, 3576, 18, 15330, 8009, 1289, 12, 972, 407, 72, 1769, ...
// SPDX-License-Identifier: MIT // Copyright 2021 Primitive Finance // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // us...
only accept ETH via fallback from the WETH contract
assert(_msgSender() == address(_weth));
11,694,676
[ 1, 4625, 348, 7953, 560, 30, 225, 1338, 2791, 512, 2455, 3970, 5922, 628, 326, 678, 1584, 44, 6835, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1815, 24899, 3576, 12021, 1435, 422, 1758, 24899, 91, 546, 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, -10...
/** *Submitted for verification at Etherscan.io on 2022-04-28 */ pragma solidity ^0.8.9; // SPDX-License-Identifier: NONE // // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns...
GETS PENDING REWARDS FOR A GIVEN USER IN ALL POOLS
function userPendingAll(address _user) public view returns (uint256) { uint256 totalReward = 0; for (uint256 pid = 0; pid < rewardPools.length; ++pid) { uint256 pending = userPendingPool(pid, _user); totalReward = totalReward.add(pending); } return totalReward...
7,938,627
[ 1, 4625, 348, 7953, 560, 30, 225, 4978, 55, 28454, 2438, 16777, 3948, 12108, 432, 611, 8188, 1157, 7443, 2120, 8061, 13803, 1741, 55, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 729, 8579, 1595, 12, 2867, 389, 1355, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 2078, 17631, 1060, 273, 374, 31, 203, 3639, 364, 261, 11890, 5034, 4231, 273, 374, 31, 4231, 411, 19890, 1663...
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md // ---------------------------------------------------------------------------- contract ERC20Interface { ...
Is tehere enough coins on account
require(_value <= _balanceOf[_from], "balance too low");
1,818,203
[ 1, 4625, 348, 7953, 560, 30, 225, 2585, 6489, 14852, 7304, 276, 9896, 603, 2236, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24899, 1132, 1648, 389, 12296, 951, 63, 67, 2080, 6487, 315, 12296, 4885, 4587, 8863, 4766, 3639, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xc0B274b3979bbDB8BA485Bd3264ec58b81c28202/sources/eth/CzzV7Router.sol
_swapEthMint(gas, _gasMin, path, msg.sender, routerAddr, deadline);
{ if(getItem(mid) != 0){ return; } bool success = true; if(gas > 0){ (success) = ICzzSwap(czzToken).transfer(msg.sender, gas); require(success, 'mintWithGas gas Transfer error'); } ...
4,981,526
[ 1, 4625, 348, 7953, 560, 30, 389, 22270, 41, 451, 49, 474, 12, 31604, 16, 389, 31604, 2930, 16, 589, 16, 1234, 18, 15330, 16, 4633, 3178, 16, 14096, 1769, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 288, 203, 5411, 309, 12, 588, 1180, 12, 13138, 13, 480, 374, 15329, 203, 7734, 327, 31, 203, 5411, 289, 203, 5411, 1426, 2216, 273, 638, 31, 27699, 5411, 309, 12, 31604, 405, 374, 15329, 203, 5375, 203, 7734, 261, 4768, 1...
pragma solidity 0.4.25; /** * Utility library of inline functions on addresses */ library Address { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until after the c...
Return available amount of Ether to withdraw when the Box withdrawable amount of Ether is smaller than global withdrawable amount of Ether
else return _free;
911,881
[ 1, 4625, 348, 7953, 560, 30, 225, 2000, 2319, 3844, 434, 512, 1136, 358, 598, 9446, 1347, 326, 8549, 598, 9446, 429, 3844, 434, 512, 1136, 353, 10648, 2353, 2552, 598, 9446, 429, 3844, 434, 512, 1136, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 469, 327, 389, 9156, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/3/0xB1D0C0Cd6fdA42cfb14d50EE87B9cffcf8c92d81/sources/Users/kstasi/Documents/work/dANT/contracts/GnosisMultisig.sol
@title Multisignature wallet - Allows multiple parties to agree on transactions before execution. @author Stefan George - <stefan.george@consensys.net>
contract MultiSigWallet { event Confirmation(address indexed sender, uint256 indexed transactionId); event Revocation(address indexed sender, uint256 indexed transactionId); event Submission(uint256 indexed transactionId); event Execution(uint256 indexed transactionId); event ExecutionFailure(uint25...
8,116,721
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 7778, 291, 724, 1231, 9230, 300, 25619, 3229, 1087, 606, 358, 1737, 992, 603, 8938, 1865, 4588, 18, 632, 4161, 7780, 74, 304, 15391, 280, 908, 300, 411, 334, 10241, 304, 18, 908, 280, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 5991, 8267, 16936, 288, 203, 565, 871, 17580, 367, 12, 2867, 8808, 5793, 16, 2254, 5034, 8808, 24112, 1769, 203, 565, 871, 14477, 4431, 12, 2867, 8808, 5793, 16, 2254, 5034, 8808, 24112, 1769, 203, 565, 871, 2592, 3951, 12, ...
pragma solidity ^0.4.24; /** * @title - Crypto Skully * ________ ___ __ ___ ___ ___ ___ ___ ___ * |\ ____\ |\ \|\ \ |\ \|\ \ |\ \ |\ \ |\ \ / /| * \ \ \___|_ \ \ \/ /|_ \ \ \\\ \ \ \ \ \ \ \ \ \ \/ / ...
Actually unpause the contract.
function unpause() public onlyAdministrator whenPaused { require(saleAuction != address(0)); require(newContractAddress == address(0)); super.setUnPaused(); }
5,391,700
[ 1, 4625, 348, 7953, 560, 30, 225, 4603, 3452, 640, 19476, 326, 6835, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 640, 19476, 1435, 1071, 1338, 4446, 14207, 1347, 28590, 288, 203, 3639, 2583, 12, 87, 5349, 37, 4062, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12, 2704, 8924, 1887, 422, 1758, 12, 20, 10019, 203, 203, 3639, 2240, 18, ...
./full_match/4/0x999B3AC9F446374F1D1779daf768b904586E812b/sources/TimelockController.sol
* @dev See {IERC1155Receiver-onERC1155Received}./
function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; }
827,935
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 2499, 2539, 12952, 17, 265, 654, 39, 2499, 2539, 8872, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 603, 654, 39, 2499, 2539, 8872, 12, 203, 3639, 1758, 16, 203, 3639, 1758, 16, 203, 3639, 2254, 5034, 16, 203, 3639, 2254, 5034, 16, 203, 3639, 1731, 3778, 203, 565, 262, 1071, 5024, 3849, 1135, 261, 3890, 24, 13, 288,...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; pragma abicoder v2; import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol"; import "@openzepp...
Subtract two numbers and return absolute value
function subAbs(uint256 amount0, uint256 amount1) internal pure returns (uint256) { return amount0 >= amount1 ? amount0.sub(amount1) : amount1.sub(amount0); }
11,924,464
[ 1, 4625, 348, 7953, 560, 30, 225, 2592, 1575, 2795, 5600, 471, 327, 4967, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 720, 9382, 12, 11890, 5034, 3844, 20, 16, 2254, 5034, 3844, 21, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 3844, 20, 1545, 3844, 21, 692, 3844, 20, 18,...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "hardhat/console.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; contract Lottery is Ownable { using Enumerable...
Store the entries count of each submit number.
mapping(uint256 => uint256) public entriesCounts;
13,054,033
[ 1, 4625, 348, 7953, 560, 30, 225, 4994, 326, 3222, 1056, 434, 1517, 4879, 1300, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 13, 1071, 3222, 9211, 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, -1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() e...
OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)* @dev Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (via event analysis)./
abstract contract ERC20Burnable is Context, ERC20 { function _beforeTokenTransfer( address from, address to, uint256 amount function _afterTokenTransfer( address from, address to, uint256 amount } function burn(uint256 amount) public virtual { _burn(...
1,247,259
[ 1, 4625, 348, 7953, 560, 30, 225, 3502, 62, 881, 84, 292, 267, 30131, 261, 2722, 3526, 331, 24, 18, 25, 18, 20, 13, 261, 2316, 19, 654, 39, 3462, 19, 9489, 19, 654, 39, 3462, 38, 321, 429, 18, 18281, 17653, 632, 5206, 10021, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3462, 38, 321, 429, 353, 1772, 16, 4232, 39, 3462, 288, 203, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 203, 565, 445, 389, ...