file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
pragma solidity ^0.4.18; // // EtherPiggyBank // (etherpiggybank.com) // // <`--'\>______ // /. . `' \ // (`') , @ // `-._, / // )-)_/--( > // '''' '''' // // Invest Ethereum into a long term stable solution where // your investment can grow organically as t...
ref cannot be the sender or the dev
bool flaggedRef = (referral == msg.sender || referral == dev);
988,592
[ 1, 1734, 2780, 506, 326, 5793, 578, 326, 4461, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1426, 2982, 2423, 1957, 273, 261, 1734, 29084, 422, 1234, 18, 15330, 747, 1278, 29084, 422, 4461, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppe...
* @notice Checks whether the address is beneficiary of the pool./
modifier onlyBeneficiary(uint _poolIndex) { require( vestingPools[_poolIndex].beneficiaries[msg.sender].totalTokens > 0, "Address is not in the beneficiary list." ); _; }
12,570,378
[ 1, 4081, 2856, 326, 1758, 353, 27641, 74, 14463, 814, 434, 326, 2845, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 38, 4009, 74, 14463, 814, 12, 11890, 389, 6011, 1016, 13, 288, 203, 3639, 2583, 12, 203, 5411, 331, 10100, 16639, 63, 67, 6011, 1016, 8009, 70, 4009, 74, 14463, 5646, 63, 3576, 18, 15330, 8009, 4963, 5157, 405, ...
pragma solidity ^0.4.23; /** * _____ ___ ___ _____ _ * \_ \/ __\ / __\ /__ \___ | | _____ _ __ * / /\/__\// / / / /\/ _ \| |/ / _ \ '_ \ * /\/ /_/ \/ \/ /___ / / | (_) | < __/ | | | * \____/\_____/\____/ \/ \___/|_|\_\___|_| |_| * * Token Address:...
(pID => rID => data) player round data by player id & round id
mapping (uint256 => IBCLotteryDatasets.PlayerRounds) public plyrRnds_;
13,061,720
[ 1, 12, 84, 734, 516, 436, 734, 516, 501, 13, 7291, 3643, 501, 635, 7291, 612, 473, 3643, 612, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 261, 11890, 5034, 516, 23450, 5017, 352, 387, 93, 14305, 2413, 18, 12148, 54, 9284, 13, 1071, 293, 715, 86, 54, 82, 2377, 67, 31, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // Standard ERC-20 import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // Burnable Token import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; // ERC-2612/ERC-712 Permit import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Pe...
* @title ERC20TokenRecover @author Henk ter Harmsel @dev Allows owner to recover any ERC20 or ETH sent into the contract/
contract ERC20TokenRecover is AccessControl { using SafeERC20 for IERC20; bytes32 public constant RECOVER_ROLE = keccak256("RECOVER_ROLE"); constructor(address owner) { _grantRole(RECOVER_ROLE, owner); } function recoverERC20(address tokenAddress, uint256 tokenAmount) public virtual only...
6,083,362
[ 1, 654, 39, 3462, 1345, 27622, 225, 670, 13775, 19272, 670, 20452, 292, 225, 25619, 3410, 358, 5910, 1281, 4232, 39, 3462, 578, 512, 2455, 3271, 1368, 326, 6835, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3462, 1345, 27622, 353, 24349, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 1731, 1578, 1071, 5381, 2438, 3865, 2204, 67, 16256, 273, 417, 24410, 581, 5034, 2932, 30724, ...
./full_match/11155111/0xDb8e2Ba0Fc1F8C37Ab13BC5bD9795ca6Ece5fecb/sources/facets/LzAppFacet.sol
_path = abi.encodePacked(remoteAddress, localAddress) this function set the trusted path for the cross-chain communication
function setTrustedRemote(uint16 _remoteChainId, bytes calldata _path) external onlyOwner { LibLzApp.LzAppStorage storage ds = LibLzApp.diamondStorage(); ds.trustedRemoteLookup[_remoteChainId] = _path; emit SetTrustedRemote(_remoteChainId, _path); }
3,787,243
[ 1, 67, 803, 273, 24126, 18, 3015, 4420, 329, 12, 7222, 1887, 16, 1191, 1887, 13, 333, 445, 444, 326, 13179, 589, 364, 326, 6828, 17, 5639, 18279, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 16950, 5169, 12, 11890, 2313, 389, 7222, 3893, 548, 16, 1731, 745, 892, 389, 803, 13, 3903, 1338, 5541, 288, 203, 3639, 10560, 48, 94, 3371, 18, 48, 94, 3371, 3245, 2502, 3780, 273, 10560, 48, 94, 3371, 18, 3211,...
pragma solidity ^0.4.24; pragma experimental ABIEncoderV2; import "./BAC001.sol"; import "./HTLC.sol"; contract BACHTLC is HTLC, BAC001Holder { // bac001 asset contract address address assetContract; function init(string[] _ss) public returns (string[] result) { result = new string[]...
transfer from htlc contract to sender
address sender = getSender(_hash);
13,034,096
[ 1, 13866, 628, 18962, 6835, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 5793, 273, 1322, 2345, 24899, 2816, 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, -10...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
встраиваться в систему безопасности
rus_verbs:встраиваться{},
5,483,630
[ 1, 145, 115, 146, 228, 146, 229, 146, 227, 145, 113, 145, 121, 145, 115, 145, 113, 146, 229, 146, 239, 146, 228, 146, 242, 225, 145, 115, 225, 146, 228, 145, 121, 146, 228, 146, 229, 145, 118, 145, 125, 146, 230, 225, 145, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 436, 407, 67, 502, 2038, 30, 145, 115, 146, 228, 146, 229, 146, 227, 145, 113, 145, 121, 145, 115, 145, 113, 146, 229, 146, 239, 146, 228, 146, 242, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** BlueJay Inu - $BLUEJAY Tg: https://t.me/BlueJayInu */ // SPDX-License-Identifier: MIT pragma solidity 0.8.9; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return payable(msg.sender); } function _msgData() internal view virtua...
these values are pretty much arbitrary since they get overwritten for every txn, but the placeholders make it easier to work with current contract. Anti-bot and anti-whale mappings and variables store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfe...
contract BlueJayInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public liquidityAddress = mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private ...
13,403,675
[ 1, 451, 3392, 924, 854, 7517, 9816, 11078, 3241, 2898, 336, 15345, 364, 3614, 7827, 16, 1496, 326, 12150, 1221, 518, 15857, 358, 1440, 598, 783, 6835, 18, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 1707, 6138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 8069, 344, 46, 528, 382, 89, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 203, 565, 1758, 8843, 429, 1071, 450...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when d...
* @dev Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` mus...
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
1,149,360
[ 1, 3641, 6478, 23850, 3304, 326, 1699, 1359, 17578, 358, 1375, 87, 1302, 264, 68, 635, 326, 4894, 18, 1220, 353, 392, 10355, 358, 288, 12908, 537, 97, 716, 848, 506, 1399, 487, 279, 20310, 360, 367, 364, 9688, 11893, 316, 288, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20467, 7009, 1359, 12, 2867, 17571, 264, 16, 2254, 5034, 10418, 329, 620, 13, 1071, 5024, 1135, 261, 6430, 13, 288, 203, 202, 202, 67, 12908, 537, 24899, 3576, 12021, 9334, 17571, 264, 16, 389, 5965, 6872, 63, 67, 3576,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "hardhat/console.sol"; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; contract TheRevolutionaries is ERC721Enumerable, Ownable { using Strings for uint256; str...
Team Allocation and Giveaways
function reserve() public onlyOwner { uint256 total = _totalSupply(); for (uint256 i = 0; i < 50; i++) { _safeMint(msg.sender, total + i); } }
1,278,516
[ 1, 8689, 24242, 471, 22374, 69, 3052, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 20501, 1435, 1071, 1338, 5541, 288, 540, 203, 3639, 2254, 5034, 2078, 273, 389, 4963, 3088, 1283, 5621, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 6437, 31, 277, 27245, 288, 203, 5411, 389, 4626, 49,...
pragma solidity 0.5.3; // File: /private/var/folders/2q/x2n3s2rx0d16552ynj1lx90r0000gn/T/tmp.ODkPvI0P/gluon-plasma/packages/on-chain/contracts/Stoppable.sol /* using a master switch, allowing to permanently turn-off functionality */ contract Stoppable { /************************************ abstract *******...
*******************************************************************************/
modifier whenOn() { require(isOn, "must be on"); _; }
885,031
[ 1, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 1347, 1398, 1435, 288, 2583, 12, 291, 1398, 16, 315, 11926, 506, 603, 8863, 389, 31, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xDaf6F80AD2AFdC45014c59bfE507ED728656D11B/sources/contracts/AuctionMarketplace.sol
* @dev Changes The MintPass ProjectID @param SaleIndex The Sale Index To Change @param MintPassProjectID The New MintPass ProjectID To Change/
function ___ChangeMintPassProjectID(uint SaleIndex, uint MintPassProjectID) external onlyAdmin { AuctionParams[SaleIndex]._ProjectIDMintPass = MintPassProjectID;}
3,006,951
[ 1, 7173, 1021, 490, 474, 6433, 5420, 734, 225, 348, 5349, 1016, 1021, 348, 5349, 3340, 2974, 7576, 225, 490, 474, 6433, 4109, 734, 1021, 1166, 490, 474, 6433, 5420, 734, 2974, 7576, 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, 0, 0, 0, 0, 0, 0, 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, 19608, 3043, 49, 474, 6433, 4109, 734, 12, 11890, 348, 5349, 1016, 16, 2254, 490, 474, 6433, 4109, 734, 13, 3903, 1338, 4446, 288, 432, 4062, 1370, 63, 30746, 1016, 65, 6315, 4109, 734, 49, 474, 6433, 273, 490, 474, 6...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "../libraries/Address.sol"; import "../libraries/Context.sol"; import "../utils/ERC165.sol"; import "../interfaces/ICloneablePaymentSplitter.sol"; // OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol) // OpenZeppelin Contract Commit Hash: 6bd6b76...
* @dev Getter for the total shares held by payees./
function totalShares() external view override returns (uint256) { return _totalShares; }
6,122,319
[ 1, 8461, 364, 326, 2078, 24123, 15770, 635, 8843, 25521, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 24051, 1435, 3903, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 4963, 24051, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
//https://solidity.readthedocs.io/en/v0.5.11/index.html ///@dev: this version requires conversion of string to string memory pragma solidity ^0.5.11; ///@dev: The ABI v2 encoder allows structs, nested and dynamic variables to be passed/returned into/from functions/events ///@dev: do not use ABIEncoderV2 on live/relea...
@notice Implements the use case: register Product https:github.com/ethereum/solidity/releases/tag/v0.5.7 has fix for ABIEncoderV2next line commented to remove balance of productsaddEPC(callerAddress_, EPC_);Start the Product certificate validation: import the ID and Certificates
function registerProduct(address callerAddress_, uint96 EPC_, geoPosition memory _location ) isAddressValidated(msg.sender) isSupplier isAddressFromCaller(callerAddress_) isEPCcorrect(EPC_,callerAddress_) notRegisteredEPC(EPC_) public returns (bool ret){ productMap[EPC_].owner = callerA...
7,237,336
[ 1, 17516, 326, 999, 648, 30, 1744, 8094, 2333, 30, 6662, 18, 832, 19, 546, 822, 379, 19, 30205, 560, 19, 28416, 19, 2692, 19, 90, 20, 18, 25, 18, 27, 711, 2917, 364, 10336, 45, 7204, 58, 22, 4285, 980, 31813, 358, 1206, 11013, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1744, 4133, 12, 2867, 4894, 1887, 67, 16, 2254, 10525, 512, 3513, 67, 16, 7856, 2555, 3778, 389, 3562, 225, 262, 203, 565, 353, 1887, 24258, 12, 3576, 18, 15330, 13, 203, 565, 353, 13254, 203, 565, 353, 1887, 1265, 11...
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.8.4 <0.9.0; pragma abicoder v2; import '@openzeppelin/contracts/utils/Address.sol'; import './Verifier.sol'; import './Bytes.sol'; import './RegistryUser.sol'; /** * Oracle Proxy * Name: Oracle * Domain: DKDAO, * */ contract OracleProxy is RegistryUser { ...
Get valid nonce of next transaction
function getValidTimeNonce(uint256 timeout, uint256 randomNonce) external view returns (uint256) { return ((block.timestamp + timeout) << 128) | randomNonce; }
13,043,561
[ 1, 967, 923, 7448, 434, 1024, 2492, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 22574, 950, 13611, 12, 11890, 5034, 2021, 16, 2254, 5034, 2744, 13611, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 14015, 2629, 18, 5508, 397, 2021, 13, 2296, 8038, 13, 571, 2744, 13611, 31, 203, 225...
// SPDX-License-Identifier: MIT pragma solidity 0.6.8; /** * @title ERC-1155 Multi Token Standard, optional Inventory extension * @dev See https://eips.ethereum.org/EIPS/eip-xxxx * Interface for fungible/non-fungible tokens management on a 1155-compliant contract. * * This interface rationalizes the co-existence...
Identifiers nature | Type | isFungible | isCollection | isToken | | Fungible Token | true | true | true | | Non-Fungible Collection | false | true | false | | Non-Fungible Token | false | false | true | Identifiers compatibilit...
interface IERC1155Inventory { event CollectionCreated(uint256 indexed collectionId, bool indexed fungible); function ownerOf(uint256 nftId) external view returns (address); function isFungible(uint256 id) external pure returns (bool); function collectionOf(uint256 nftId) external pure returns (uint25...
12,694,110
[ 1, 12745, 28700, 571, 4202, 1412, 7734, 571, 17646, 20651, 1523, 225, 571, 26506, 571, 353, 1345, 571, 571, 225, 478, 20651, 1523, 3155, 6647, 571, 282, 638, 1377, 571, 377, 638, 377, 571, 225, 638, 282, 571, 571, 225, 3858, 17, 42,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 467, 654, 39, 2499, 2539, 15059, 288, 203, 565, 871, 2200, 6119, 12, 11890, 5034, 8808, 1849, 548, 16, 1426, 8808, 9831, 75, 1523, 1769, 203, 203, 565, 445, 3410, 951, 12, 11890, 5034, 290, 1222, 548, 13, 3903, 1476, 1135, ...
./full_match/1/0xEeaB15F5268923B0E8B286cCC78986366a54C99F/sources/franchisedCP.sol
@title Baal ';_;'. @notice Flexible guild contract inspired by Moloch DAO framework.
contract Baal { bool public lootPaused; /*tracks transferability of `loot` economic weight - amendable through 'period'[2] proposal*/ bool public sharesPaused; /*tracks transferability of erc20 `shares` - amendable through 'period'[2] proposal*/ bool singleSummoner; /*internal flag to gauge speedy proposal ...
8,370,843
[ 1, 38, 69, 287, 12386, 67, 4359, 18, 225, 478, 21873, 15488, 6835, 316, 1752, 2921, 635, 490, 355, 9842, 463, 20463, 8257, 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...
[ 1, 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, 16351, 605, 69, 287, 288, 203, 565, 1426, 1071, 437, 352, 28590, 31, 1748, 21499, 7412, 2967, 434, 1375, 383, 352, 68, 425, 591, 24721, 3119, 300, 2125, 409, 429, 3059, 296, 6908, 11, 63, 22, 65, 14708, 5549, 203, 565, 1426, 10...
// SPDX-License-Identifier: <SPDX-License> /* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓ ▓▓░░░░░░░░░░░░░░░░░░░░░▒▒▒▒░░░▒▒▒▒░░░░░░▓▓ ▓▓░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒░▒▒▒▒▒▒░░░░░▓▓ ▓▓░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░▓▓ ▓▓░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒░░░░░░▓▓ ▓▓░░░░░░░░░░░...
* @dev Function to check the amount of tokens that an owner has allowed to a spender. @param owner_ The address which owns the funds. @param spender The address which will spend the funds. @return The number of tokens still available for the spender./
function allowance(address owner_, address spender) public override view returns (uint256) { return _allowedAP3L[owner_][spender]; }
9,847,548
[ 1, 2083, 358, 866, 326, 3844, 434, 2430, 716, 392, 3410, 711, 2935, 358, 279, 17571, 264, 18, 225, 3410, 67, 1021, 1758, 1492, 29065, 326, 284, 19156, 18, 225, 17571, 264, 1021, 1758, 1492, 903, 17571, 326, 284, 19156, 18, 327, 1021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1699, 1359, 12, 2867, 3410, 67, 16, 1758, 17571, 264, 13, 203, 3639, 1071, 203, 3639, 3849, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 389, 8151, 2203, 23, 48, 63, 8443, 67,...
./partial_match/1/0x89bc08BA00f135d608bc335f6B33D7a9ABCC98aF/sources/contracts/LoanCore.sol
* @dev Blocks the contract from unpausing once paused./
function _unpause() internal override whenPaused { revert LC_Shutdown(); }
15,886,977
[ 1, 6450, 326, 6835, 628, 640, 8774, 9940, 3647, 17781, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 318, 19476, 1435, 2713, 3849, 1347, 28590, 288, 203, 3639, 15226, 27727, 67, 10961, 5621, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity 0.5.12; /** * @dev Interface of the ERC165 standard, as defined in the * [EIP](https://eips.ethereum.org/EIPS/eip-165). * * Implementers can declare support of contract interfaces, which can then be * queried by others (`ERC165Checker`). * * For an implementation, see `ERC165`. */ interface IER...
* @dev Function to get keys by provided key hashes. Keys hashes can be found in Sync event emitted by Registry.sol contract. @param hashes The key to query the value of. @return Keys/
function hashesToKeys(uint256[] memory hashes) public view returns (string[] memory) { uint256 keyCount = hashes.length; string[] memory values = new string[](keyCount); for (uint256 i = 0; i < keyCount; i++) { values[i] = hashToKey(hashes[i]); } return values; ...
503,511
[ 1, 2083, 358, 336, 1311, 635, 2112, 498, 9869, 18, 11432, 9869, 848, 506, 1392, 316, 9721, 871, 17826, 635, 5438, 18, 18281, 6835, 18, 225, 9869, 1021, 498, 358, 843, 326, 460, 434, 18, 327, 11432, 19, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9869, 774, 2396, 12, 11890, 5034, 8526, 3778, 9869, 13, 1071, 1476, 1135, 261, 1080, 8526, 3778, 13, 288, 203, 3639, 2254, 5034, 498, 1380, 273, 9869, 18, 2469, 31, 203, 3639, 533, 8526, 3778, 924, 273, 394, 533, 8526, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; /** * @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 contract can't have a constructor, it's common to move constructor logic to an * external initializer fun...
@notice Returns the comission for the cluster redemption. @param _cluster Address of the cluster @param _ethValue Eth equivalent to calculate fee from. @return Equivalent of the fee in ETH.
function getRedeemComission(address _cluster, uint256 _ethValue) external view override returns (uint256) { return (_ethValue * redeemComission[_cluster]) / SHARES_DECIMALS; }
10,368,899
[ 1, 1356, 326, 532, 19710, 364, 326, 2855, 283, 19117, 375, 18, 225, 389, 7967, 5267, 434, 326, 2855, 225, 389, 546, 620, 512, 451, 7680, 358, 4604, 14036, 628, 18, 327, 31208, 434, 326, 14036, 316, 512, 2455, 18, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5561, 24903, 799, 19710, 12, 2867, 389, 7967, 16, 2254, 5034, 389, 546, 620, 13, 3903, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 261, 67, 546, 620, 380, 283, 24903, 799, 19710, 63, 67, 7967, 5717, 3...
pragma solidity ^0.6.12; import './IPonziToken.sol'; import './PriceFormula.sol'; contract PonziMinter { using SafeMath for uint; IPonziToken public token; PriceFormula public priceFormula; uint32 public reserveRatio; // precision of 1000 uint public deflationFactor; uint public deflationInc...
deflationFactor = 1
deflationFactor = _deflationPrecision;
1,804,223
[ 1, 536, 80, 367, 6837, 273, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1652, 80, 367, 6837, 273, 389, 536, 80, 367, 15410, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/42/0x729E09EFA5ab4c0B4FF596E08897d5c1ABd10201/sources/tunaToken.sol
Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); poo...
3,301,860
[ 1, 986, 279, 394, 12423, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 11329, 5467, 4269, 527, 326, 1967, 511, 52, 1147, 1898, 2353, 3647, 18, 534, 359, 14727, 903, 506, 15216, 730, 731, 309, 1846, 741, 18, 2, 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, 527, 12, 11890, 5034, 389, 9853, 2148, 16, 467, 654, 39, 3462, 389, 9953, 1345, 16, 1426, 389, 1918, 1891, 13, 1071, 1338, 5541, 288, 203, 3639, 309, 261, 67, 1918, 1891, 13, 288, 203, 5411, 8039, 1891, 16639, 5621, 2...
/** *Submitted for verification at Etherscan.io on 2021-10-08 */ pragma solidity 0.8.4; // SPDX-License-Identifier: MIT /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external...
Reward distribution ratio - monthly, quarterly, yearly Minimum stake amount Address of deposit token. Address of reward token. Timestamp when stake pool was deployed to mainnet.
contract StakePoolSimpleCombined is IStakePool, StakeToken, AccessControl, ReentrancyGuard { using SafeERC20 for IERC20; bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE"); uint256 public constant MONTH = 31 days; uint256 public constant QUARTER = 93 days; uint256 public constant YE...
15,137,236
[ 1, 17631, 1060, 7006, 7169, 300, 31114, 16, 24821, 715, 16, 3286, 715, 23456, 384, 911, 3844, 5267, 434, 443, 1724, 1147, 18, 5267, 434, 19890, 1147, 18, 8159, 1347, 384, 911, 2845, 1703, 19357, 358, 2774, 2758, 18, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 934, 911, 2864, 5784, 27994, 353, 467, 510, 911, 2864, 16, 934, 911, 1345, 16, 24349, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 1731, 1578, 1071, ...
./full_match/5/0xc80feBb5b39C009016F38C6031eC112Efa6c4658/sources/project_/contracts/Parameters.sol
/ The minimum # of votes required
uint256 voteMinParticipation;
7,065,308
[ 1, 19, 1021, 5224, 225, 434, 19588, 1931, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 12501, 2930, 1988, 24629, 367, 31, 5411, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/3/0x334b2fEc754c29E2a37B38deE423Af9168C2d3E5/sources/contracts/EEGGSTOKEN.sol
add the direct referrer to the user's payout tree check if the referrer was referred through a tree of their own; set payout tree accordingly if so
function setReferrer(address _referrer) public { require(_referrer != address(0),"Not a valid referrer"); require(_referrer != msg.sender, "You cannot refer yourself"); require(referrerTree[msg.sender][0] == address(0), "Referrer cannot be changed!"); referrerTree[msg.sender][0] = _...
8,101,137
[ 1, 1289, 326, 2657, 14502, 358, 326, 729, 1807, 293, 2012, 2151, 866, 309, 326, 14502, 1703, 29230, 3059, 279, 2151, 434, 3675, 4953, 31, 444, 293, 2012, 2151, 15905, 309, 1427, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 1957, 11110, 12, 2867, 389, 1734, 11110, 13, 1071, 288, 203, 3639, 2583, 24899, 1734, 11110, 480, 1758, 12, 20, 3631, 6, 1248, 279, 923, 14502, 8863, 203, 3639, 2583, 24899, 1734, 11110, 480, 1234, 18, 15330, 16, 3...
./partial_match/1/0x3650b99D107d581eF8ff004365A4Ada8DA6bf62F/sources/DataunionVault.sol
* Withdraw a specified amount of your own proven earnings (see `function prove`). @param amount of tokens to withdraw/
function withdraw(uint amount) public { _withdraw(msg.sender, msg.sender, amount); }
3,607,042
[ 1, 1190, 9446, 279, 1269, 3844, 434, 3433, 4953, 450, 3995, 425, 1303, 899, 261, 5946, 1375, 915, 450, 537, 68, 2934, 225, 3844, 434, 2430, 358, 598, 9446, 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, 598, 9446, 12, 11890, 3844, 13, 1071, 288, 203, 3639, 389, 1918, 9446, 12, 3576, 18, 15330, 16, 1234, 18, 15330, 16, 3844, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/56/0x630413bA99b6a7f911614e759dA6eAE769672c76/sources/MasterChef.sol
Safe egg transfer function, just in case if rounding error causes pool to not have enough EGGs.
function safeEggTransfer(address _to, uint256 _amount) internal { uint256 eggBal = egg.balanceOf(address(this)); if (_amount > eggBal) { egg.transferSimple(_to, eggBal); egg.transferSimple(_to, _amount); } }
11,161,802
[ 1, 9890, 25144, 7412, 445, 16, 2537, 316, 648, 309, 13885, 555, 14119, 2845, 358, 486, 1240, 7304, 512, 19491, 87, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 41, 14253, 5912, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 2254, 5034, 25144, 38, 287, 273, 25144, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 309, 261, 67, 8949, 405, 25...
./partial_match/42/0xcd3A06675f584B6Fb1B952FAb3d4bc4C0AdB10Ab/sources/FuturesMarketData.sol
Close the position itself.
int positionSize = position.size;
3,456,931
[ 1, 4605, 326, 1754, 6174, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 509, 1754, 1225, 273, 1754, 18, 1467, 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, -...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
растворить в кислоте
rus_verbs:растворить{},
5,482,040
[ 1, 146, 227, 145, 113, 146, 228, 146, 229, 145, 115, 145, 127, 146, 227, 145, 121, 146, 229, 146, 239, 225, 145, 115, 225, 145, 123, 145, 121, 146, 228, 145, 124, 145, 127, 146, 229, 145, 118, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 436, 407, 67, 502, 2038, 30, 146, 227, 145, 113, 146, 228, 146, 229, 145, 115, 145, 127, 146, 227, 145, 121, 146, 229, 146, 239, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.17; import "./MintableToken.sol"; import "./Pausable.sol"; /** * @title XulToken * @dev ERC20 Token that can be minted with a preico period with a goal. * It is meant to be used in XulCrowdsale contract. */ contract XulToken is MintableToken, Pausable { string public constant n...
* @dev Returns true if preIcoEndDate is in the future./
function isPreIcoDate() public returns(bool) { return now <= preIcoEndDate; }
12,619,172
[ 1, 1356, 638, 309, 675, 45, 2894, 24640, 353, 316, 326, 3563, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 353, 1386, 45, 2894, 1626, 1435, 1071, 1135, 12, 6430, 13, 288, 203, 565, 327, 2037, 1648, 675, 45, 2894, 24640, 31, 203, 225, 289, 1377, 203, 21281, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "./Interfaces/ILosslessER...
@notice This function sets the amount of tokens to be staked when staking @dev Only can be called by the Lossless Admin @param _stakingAmount Amount to be staked
function setStakingAmount(uint256 _stakingAmount) override public onlyLosslessAdmin { require(_stakingAmount != 0, "LSS: Must be greater than zero"); require(_stakingAmount != stakingAmount, "LSS: Already set to that amount"); stakingAmount = _stakingAmount; emit NewStakingAmount(_st...
14,771,679
[ 1, 2503, 445, 1678, 326, 3844, 434, 2430, 358, 506, 384, 9477, 1347, 384, 6159, 225, 5098, 848, 506, 2566, 635, 326, 511, 538, 2069, 403, 7807, 225, 389, 334, 6159, 6275, 16811, 358, 506, 384, 9477, 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, 565, 445, 444, 510, 6159, 6275, 12, 11890, 5034, 389, 334, 6159, 6275, 13, 3849, 1071, 1338, 48, 538, 2069, 403, 4446, 288, 203, 3639, 2583, 24899, 334, 6159, 6275, 480, 374, 16, 315, 48, 1260, 30, 6753, 506, 6802, 2353, 3634, ...
pragma solidity ^0.6.0; import "./ERC865.sol"; import "./ERC20.sol"; /** * @title ERC865Token Token * * ERC865Token allows users paying transfers in tokens instead of gas * https://github.com/ethereum/EIPs/issues/865 * */ contract ERC865Token is ERC865, ERC20 { /* Nonces of transfers performed */ map...
* @notice Hash (keccak256) of the payload used by transferPreSigned @param _token address The address of the token. @param _to address The address which you want to transfer to. @param _value uint256 The amount of tokens to be transferred. @param _fee uint256 The amount of tokens paid to msg.sender, by the owner. @para...
function transferPreSignedHashing( address _token, address _to, uint256 _value, uint256 _fee, uint256 _nonce ) public pure returns (bytes32) { return keccak256(bytes4(0x48664c16), _token, _to, _value, _fee, _nonce);
884,807
[ 1, 2310, 261, 79, 24410, 581, 5034, 13, 434, 326, 2385, 1399, 635, 7412, 1386, 12294, 225, 389, 2316, 1758, 1021, 1758, 434, 326, 1147, 18, 225, 389, 869, 1758, 1021, 1758, 1492, 1846, 2545, 358, 7412, 358, 18, 225, 389, 1132, 2254,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1386, 12294, 2310, 310, 12, 203, 3639, 1758, 389, 2316, 16, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 1132, 16, 203, 3639, 2254, 5034, 389, 21386, 16, 203, 3639, 2254, 5034, 389, 12824, 203, 565, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../../../../../common/openzeppelin/src/main/solidity/utils/Context.sol"; import "../../../../../../common/openzeppelin/src/main/solidity/access/AccessControlEnumerable.sol"; import "../../../../../../common/openzeppelin/src/main/solidity/token/ERC721/...
* @dev Creates a new token with the specified token ID. This should be called by the crosschain control contract / function call bridge. @param _recipient Address to assign the token to. @param _tokenId Token to create. Requirements: - the caller must have the `MINTER_ROLE`./
function mint( address _recipient, uint256 _tokenId, bytes memory _data ) public virtual { require( hasRole(MINTER_ROLE, _msgSender()), "ERC721CrosschainEndPoint: must have minter role to mint" ); _safeMint(_recipient, _tokenId, _data); ...
12,553,786
[ 1, 2729, 279, 394, 1147, 598, 326, 1269, 1147, 1599, 18, 1220, 1410, 506, 2566, 635, 326, 6828, 5639, 3325, 6835, 342, 445, 745, 10105, 18, 225, 389, 20367, 565, 5267, 358, 2683, 326, 1147, 358, 18, 225, 389, 2316, 548, 1377, 3155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 565, 445, 312, 474, 12, 203, 3639, 1758, 389, 20367, 16, 203, 3639, 2254, 5034, 389, 2316, 548, 16, 203, 3639, 1731, 3778, 389, 892, 203, 565, 262, 1071, 5024, 288, 203, 3639, 2583, 12, 203, 5411, 28335, 12, 6236, 2560, 67, 162...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title Voting Defi Contract * @notice Protocol to enable users to create and vote on proposals * @author Fabien Frick */ contract Voting is Ownable { // Contract ordering structure // 1. Stat...
* @notice Ends proposals registration. Updates workflow status to ProposalsRegistrationEnded. Only owner./
function endProposalsRegistering() external onlyOwner { require( workflowStatus == WorkflowStatus.ProposalsRegistrationStarted, "Registering proposals havent started yet" ); workflowStatus = WorkflowStatus.ProposalsRegistrationEnded; emit WorkflowStatusChange(...
15,871,735
[ 1, 24980, 450, 22536, 7914, 18, 15419, 6095, 1267, 358, 1186, 22536, 7843, 28362, 18, 5098, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 679, 626, 22536, 3996, 310, 1435, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 6095, 1482, 422, 11363, 1482, 18, 626, 22536, 7843, 9217, 16, 203, 5411, 315, 3996, 310, 450, 22536, 10677, 616, 5746, 4671, 6, 20...
// SPDX-License-Identifier: MIT // File: contracts/SR25519Dummy.sol pragma solidity >=0.7.0; /** * @title Dummy implementation for SR25519 */ contract SR25519 { /** * @dev Dummy implementation. This code is implemented in the precomiled contract * @return A boolean confirming whether the public key is...
* @title Dummy implementation for SR25519/
contract SR25519 { function verify( bytes32 public_key, bytes calldata signature, bytes calldata message pragma solidity >=0.7.0; ) external pure returns (bool){ if( public_key == 0 || signature[0] == 0 || message[0] == 0) return false; return true; } }
12,726,236
[ 1, 20094, 4471, 364, 19145, 17443, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19145, 17443, 288, 203, 565, 445, 3929, 12, 203, 3639, 1731, 1578, 1071, 67, 856, 16, 203, 3639, 1731, 745, 892, 3372, 16, 203, 3639, 1731, 745, 892, 883, 203, 203, 683, 9454, 18035, 560, 1545, 20, 18, 27, 18, 20, 31, ...
./full_match/1/0xB6791f028447D679214D47127d4d7ea1Fab3e1d8/sources/Media.sol
Burn nft (only contract Owner)*/
function burn( address from, uint256 tokenId, uint256 amount ) external onlyOwner { require(tokenId > 0, "Not valid tokenId"); epikoErc1155.burn(from, tokenId, amount); }
2,976,671
[ 1, 38, 321, 290, 1222, 261, 3700, 6835, 16837, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18305, 12, 203, 3639, 1758, 628, 16, 203, 3639, 2254, 5034, 1147, 548, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 2316, 548, 405, 374, 16, 315, 1248, 923, 1147, 548, 88...
pragma solidity ^0.5.16; import "./ComptrollerInterface.sol"; import "./CTokenInterfaces.sol"; import "./ErrorReporter.sol"; import "./Exponential.sol"; import "./EIP20Interface.sol"; import "./EIP20NonStandardInterface.sol"; import "./InterestRateModel.sol"; /** * @title Compound's CToken Contract * @notice Abstra...
* @dev Divide a scalar by an Exp, then truncate to return an unsigned integer./
function divScalarByExpTruncate(uint256 scalar, Exp memory divisor) internal pure returns (MathError, uint256) { (MathError err, Exp memory fraction) = divScalarByExp(scalar, divisor); if (err != MathError.NO_ERROR) { return (err, 0); } return (MathError.NO_ERROR, trunca...
333,421
[ 1, 7244, 831, 279, 4981, 635, 392, 7784, 16, 1508, 10310, 358, 327, 392, 9088, 3571, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3739, 13639, 858, 2966, 25871, 12, 11890, 5034, 4981, 16, 7784, 3778, 15013, 13, 2713, 16618, 1135, 261, 10477, 668, 16, 2254, 5034, 13, 288, 203, 3639, 261, 10477, 668, 393, 16, 7784, 3778, 8330, 13, 273, 3739, 13639, ...
./partial_match/5/0xCc83Dd82FB74B5056De897B68244D0895a9a07e4/sources/TokenFactory.sol
@TODO: Template interface check. solhint-disable-next-line no-inline-assembly call `CREATE2` w/ 4 arguments. pass along failure message from failed contract deployment and revert.
function _newToken( bytes32 key, string memory version, string memory name, string memory symbol, uint8 decimals ) internal returns (address result) { TemplateInfo memory info = _get(key); require(info.price == msg.value, "TokenFactory/Different deposited"...
16,834,363
[ 1, 36, 6241, 30, 5035, 1560, 866, 18, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 10047, 17, 28050, 745, 1375, 9344, 22, 68, 341, 19, 1059, 1775, 18, 1342, 7563, 5166, 883, 628, 2535, 6835, 6314, 471, 15226, 18, 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, 389, 2704, 1345, 12, 203, 3639, 1731, 1578, 498, 16, 203, 3639, 533, 3778, 1177, 16, 203, 3639, 533, 3778, 508, 16, 203, 3639, 533, 3778, 3273, 16, 203, 3639, 2254, 28, 15105, 203, 565, 262, 2713, 1135, 261, 2867, 563...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /** * @title SymbiosisTokenVesting * * @dev A token holder contract that can release its token balance gradually like a * typical vesting s...
released (transferred) tokens to beneficiary
mapping(address => uint256) public releasedToBeneficiary;
6,131,502
[ 1, 9340, 72, 261, 2338, 4193, 13, 2430, 358, 27641, 74, 14463, 814, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 15976, 774, 38, 4009, 74, 14463, 814, 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, ...
./full_match/1/0xA4B8faEA88a7Ea4CCa5E0787828EC1dC79Dce0Ce/sources/contracts/libraries/ERC721A.sol
* @dev See {IERC721-isApprovedForAll}./
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return getState().operatorApprovals[owner][operator]; }
3,144,793
[ 1, 9704, 288, 45, 654, 39, 27, 5340, 17, 291, 31639, 1290, 1595, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 31639, 1290, 1595, 12, 2867, 3410, 16, 1758, 3726, 13, 1071, 1476, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 327, 8997, 7675, 9497, 12053, 4524, 63, 8443, 6362, 9497, 15533, 203, 565, 289, 203, 203, 2, -100,...
pragma solidity ^0.4.11; //import "./oraclizeAPI_0.4.sol"; //import "github.com/oraclize/ethereum-api/oraclizeAPI.sol"; // <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016 Oraclize LTD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
Canceled by the player
uint constant BET_STATE_CANCEL_BY_PLAYER = 3;
2,345,192
[ 1, 23163, 635, 326, 7291, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5381, 605, 1584, 67, 7998, 67, 25268, 67, 6486, 67, 52, 22166, 273, 890, 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, ...
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.6.12; import "./PodPut.sol"; import "../interfaces/IWETH.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "../lib/Conversion.sol"; /** * @title WPodPut * @author Pods Finance * * @notice Represents a tokenized Put option series for ETH. Inter...
* @title PodOption @author Pods Finance @notice This contract represents the basic structure of the financial instrument known as Option, sharing logic between both a PUT or a CALL types. @dev There are four main actions that can be called in an Option: A) mint => A minter can lock collateral and create new options bef...
abstract contract PodOption is IPodOption, ERC20, RequiredDecimals, CappedOption { using SafeERC20 for IERC20; uint256 public constant MIN_EXERCISE_WINDOW_SIZE = 86400; OptionType private immutable _optionType; ExerciseType private immutable _exerciseType; IConfigurationManager public immutable co...
527,967
[ 1, 5800, 1895, 225, 20526, 9458, 1359, 225, 1220, 6835, 8686, 326, 5337, 3695, 434, 326, 574, 19292, 649, 10353, 4846, 487, 2698, 16, 21001, 4058, 3086, 3937, 279, 11443, 578, 279, 22753, 1953, 18, 225, 6149, 854, 12792, 2774, 4209, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6488, 1895, 353, 2971, 369, 1895, 16, 4232, 39, 3462, 16, 10647, 31809, 16, 11200, 1845, 1895, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 2254, 5034, 1071, 5381, 6989, 67, ...
./full_match/1/0x2539Edf3969cA8Bb8659BfaDc27d626bD5cd8f13/sources/DumpBusterv1.sol
Is exchange buying available
bool private _buyIsOpen;
3,180,137
[ 1, 2520, 7829, 30143, 310, 2319, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1426, 3238, 389, 70, 9835, 2520, 3678, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.18; import './PNS.sol'; /** * A simple resolver anyone can use; only allows the owner of a node to set its * address. */ contract PNSResolver { bytes4 constant INTERFACE_META_ID = 0x01ffc9a7; bytes4 constant ADDR_INTERFACE_ID = 0x3b3b57de; bytes4 constant CONTENT_INTERFACE_ID = 0x...
* A simple resolver anyone can use; only allows the owner of a node to set its address./
contract PNSResolver { bytes4 constant INTERFACE_META_ID = 0x01ffc9a7; bytes4 constant ADDR_INTERFACE_ID = 0x3b3b57de; bytes4 constant CONTENT_INTERFACE_ID = 0xd8389dc5; bytes4 constant NAME_INTERFACE_ID = 0x691f3431; bytes4 constant TEXT_INTERFACE_ID = 0x59d1d43c; bytes4 constant MULTIHASH_INT...
5,355,101
[ 1, 37, 4143, 5039, 1281, 476, 848, 999, 31, 1338, 5360, 326, 3410, 434, 279, 756, 358, 444, 2097, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 453, 3156, 4301, 288, 203, 203, 565, 1731, 24, 5381, 11391, 11300, 67, 19294, 67, 734, 273, 374, 92, 1611, 1403, 71, 29, 69, 27, 31, 203, 565, 1731, 24, 5381, 11689, 54, 67, 18865, 67, 734, 273, 374, 92, 23, 70, 23, ...
./full_match/5/0x939B84B4b4978B8A1e11A2AeC009d219217a1175/sources/project_/contracts/Factory/BXNFTFactory.sol
* @dev Update beacon address by owner. @param erc721BeaconAddress. @param erc721ABeaconAddress. @param erc1155BeaconAddress. Emits a {UpdatedBeacon} event./
function updateBeacon(address erc721BeaconAddress, address erc721ABeaconAddress, address erc1155BeaconAddress) external onlyOwner { require(erc721BeaconAddress != address(0), "Factory: Cant be zero address"); require(erc721ABeaconAddress != address(0), "Factory: Cant be zero address"); requi...
1,950,898
[ 1, 1891, 29203, 1758, 635, 3410, 18, 225, 6445, 71, 27, 5340, 1919, 16329, 1887, 18, 225, 6445, 71, 27, 5340, 37, 1919, 16329, 1887, 18, 225, 6445, 71, 2499, 2539, 1919, 16329, 1887, 18, 7377, 1282, 279, 288, 7381, 1919, 16329, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 1919, 16329, 12, 2867, 6445, 71, 27, 5340, 1919, 16329, 1887, 16, 1758, 6445, 71, 27, 5340, 37, 1919, 16329, 1887, 16, 1758, 6445, 71, 2499, 2539, 1919, 16329, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12,...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; // ---------------------------------------------------------------------------- // Owned contract // ---------------------------------------------------------------------------- contract Owned { address payable public owner; event OwnershipTransfe...
------------------------------------------------------------------------ Query to get the staking time left ------------------------------------------------------------------------
function StakingTimeLeft(address _user) external view returns(uint256 _secsLeft){ uint256 left = 0; uint256 expiryDate = (users[_user][SYFP].period).add(LastStakedOn(_user)); if(now < expiryDate) left = expiryDate.sub(now); return left; }
15,358,943
[ 1, 29461, 2770, 358, 336, 326, 384, 6159, 813, 2002, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 934, 6159, 950, 3910, 12, 2867, 389, 1355, 13, 3903, 1476, 1135, 12, 11890, 5034, 389, 21317, 3910, 15329, 203, 3639, 2254, 5034, 2002, 273, 374, 31, 7010, 3639, 2254, 5034, 10839, 1626, 273, 261, 5577, 63, 67, 1355, 63...
./partial_match/1/0x0044B4CcecD2b09906a43e27c62645894d69c9c9/sources/ERC721Contract.sol
// ERC721 Approvals //
function approve(address spender_, uint256 tokenId_) public virtual { address _owner = ownerOf(tokenId_); require(msg.sender == _owner || isApprovedForAll[_owner][msg.sender], "approve not authorized!"); getApproved[tokenId_] = spender_; emit Approval(_owner, spender_...
2,726,834
[ 1, 759, 4232, 39, 27, 5340, 1716, 685, 4524, 368, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6617, 537, 12, 2867, 17571, 264, 67, 16, 2254, 5034, 1147, 548, 67, 13, 1071, 5024, 288, 203, 3639, 1758, 389, 8443, 273, 3410, 951, 12, 2316, 548, 67, 1769, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 389, 8443, 747, ...
// SPDX-License-Identifier: CONSTANTLY WANTS TO MAKE THE WORLD BEAUTIFUL // ///..//*..//..//,..////////#,,,,,,,,,,,,,,,,,&&&&&,**(*./,///*%(.%,,%*,#%/%#(/// // *#%%%%%%%%%%/%/////*&@@(*#(#,,,,,,,,,,,,,,,,,@@@@@/***,./,///%./%#(%.#%/.(.*//// // *******%%%%(/(/(/(/******#(#,,,,,,,,,,,,,,,,,********((#((@%%.........%@@@@...
* @dev Set base metadata URI./
function setBaseURI(string memory baseURI) public onlyOwner { _setBaseURI(baseURI); }
953,228
[ 1, 694, 1026, 1982, 3699, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 26435, 3098, 12, 1080, 3778, 1026, 3098, 13, 1071, 1338, 5541, 288, 203, 3639, 389, 542, 2171, 3098, 12, 1969, 3098, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0xeF6303006a994f469Ef0FBDe20b269e804adB985/sources/src/Staking/StakingV1.sol
* @dev used to limit the amount of gas spent during auto claim */
uint256 internal _autoClaimGasLimit = 200000;
16,403,950
[ 1, 3668, 358, 1800, 326, 3844, 434, 16189, 26515, 4982, 3656, 7516, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 2713, 389, 6079, 9762, 27998, 3039, 273, 576, 11706, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x1abA0662017dC7739F5238f62717A30405CA84c9/sources/Betting.sol
function to change owner
function changeOwnership(address _newOwner) onlyOwner external { require(now > chronus.starting_time + chronus.race_duration + 60 minutes); owner = _newOwner; }
15,920,738
[ 1, 915, 358, 2549, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2549, 5460, 12565, 12, 2867, 389, 2704, 5541, 13, 1338, 5541, 3903, 288, 203, 3639, 2583, 12, 3338, 405, 12227, 407, 18, 18526, 67, 957, 397, 12227, 407, 18, 9963, 67, 8760, 397, 4752, 6824, 1769, 203, 3639, 3410, 273, ...
./partial_match/1/0xA560e470B82bdd50b47A03bab9A630FFBD43063E/sources/FlashLoanLiquidateWePiggy.sol
去 uniSwap等交易所进行交易,获得 对应的token
uint amountIn = self.balance;
4,105,234
[ 1, 166, 241, 124, 7738, 12521, 168, 260, 236, 165, 123, 102, 167, 251, 246, 167, 236, 227, 169, 128, 254, 169, 99, 239, 165, 123, 102, 167, 251, 246, 176, 125, 239, 169, 241, 120, 166, 127, 250, 225, 166, 112, 122, 166, 123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 3844, 382, 273, 365, 18, 12296, 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, -...
pragma solidity ^0.4.0; import "./insurer.sol"; import "./policyrecord.sol"; contract InsuranceService { Insurer[] public insurers; address public owner; mapping (address => PolicyRecord[]) public pendingPolicies; mapping (address => PolicyRecord) public activePolicies; constructor() public { ...
have to find insurer from insurers and give refund...
function buyPolicy(Policy policy, Money money, uint i) public returns (Money){ require(policy.cost() == money.amount(), "Not enough money to buy policy."); require(policy.currentState() == Policy.States.Offered, "Policy must be Offered in order to purchase."); if (now > policy.exp...
1,022,309
[ 1, 21516, 358, 1104, 2763, 11278, 628, 2763, 295, 414, 471, 8492, 16255, 2777, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30143, 2582, 12, 2582, 3329, 16, 16892, 15601, 16, 2254, 277, 13, 1071, 1135, 261, 23091, 15329, 203, 3639, 2583, 12, 5086, 18, 12398, 1435, 422, 15601, 18, 8949, 9334, 315, 1248, 7304, 15601, 358, 30143, 3329, 1199, 1769...
pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract Infinix { // Public variables of the token string public name = "Infinix"; string public symbol = "IFNX"; uint8 public decimals = 18; // ...
Public variables of the token 18 decimals is the strongly suggested default This creates an array with all balances This generates a public event on the blockchain that will notify clients
contract Infinix { string public name = "Infinix"; string public symbol = "IFNX"; uint8 public decimals = 18; uint256 public totalSupply; uint256 public InfinixSupply = 4000000000; uint256 public buyPrice = 10000000; address public creator; mapping (address => uint256) public balanceOf; ...
10,426,372
[ 1, 4782, 3152, 434, 326, 1147, 6549, 15105, 353, 326, 11773, 715, 22168, 805, 1220, 3414, 392, 526, 598, 777, 324, 26488, 1220, 6026, 279, 1071, 871, 603, 326, 16766, 716, 903, 5066, 7712, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 657, 926, 697, 288, 203, 565, 533, 1071, 508, 273, 315, 382, 926, 697, 14432, 203, 565, 533, 1071, 3273, 273, 315, 5501, 17106, 14432, 203, 565, 2254, 28, 1071, 15105, 273, 6549, 31, 203, 565, 2254, 5034, 1071, 2078, 3088,...
./full_match/80001/0x06CEDa400205FA2D75780db65ae6F86174402380/sources/contracts/RecruitmentATSSmartContract.sol
Define a struct to store user information
contract RecruitmentATSSmartContract { struct User { string email; bool isRegistered; } struct Applicant { string name; uint age; string resumeHash; address applicantAddress; string emailAddress; } struct Job { uint jobId; str...
9,472,007
[ 1, 11644, 279, 1958, 358, 1707, 729, 1779, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 868, 3353, 14945, 475, 789, 1260, 81, 485, 8924, 288, 203, 565, 1958, 2177, 288, 203, 3639, 533, 2699, 31, 203, 3639, 1426, 353, 10868, 31, 203, 565, 289, 203, 203, 565, 1958, 1716, 1780, 970, 288, 203, 3639, 533, 508, 3...
/** *Submitted for verification at Etherscan.io on 2021-04-03 */ pragma solidity ^0.5.0; /** * @title ERC20Interface * @dev The ERC20Interface contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract ERC20Interface ...
@param _totalSupply Initial supply of the contract
function totalSupply() public view returns (uint) { return _totalSupply - balances[address(0)]; }
2,079,527
[ 1, 67, 4963, 3088, 1283, 10188, 14467, 434, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2078, 3088, 1283, 1435, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 389, 4963, 3088, 1283, 225, 300, 324, 26488, 63, 2867, 12, 20, 13, 15533, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -...
// File: @aragon/os/contracts/common/UnstructuredStorage.sol /* * SPDX-License-Identitifer: MIT */ pragma solidity ^0.4.24; library UnstructuredStorage { function getStorageBool(bytes32 position) internal view returns (bool data) { assembly { data := sload(position) } } function getStorage...
The while() predicate prevents these two from ever overflowing
paid += 1;
5,439,329
[ 1, 1986, 1323, 1435, 5641, 17793, 4259, 2795, 628, 14103, 9391, 310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30591, 1011, 404, 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, -100,...
pragma solidity ^0.4.18; import "./0xBitcoinBase.sol"; /* Create a 0xb based mineable token */ contract _0xdoge is _0xBitcoinBase('0xDoge', '0xDoge Mineable Token', 113000000000, 12, 200, 512) { /** * _hash function * * Override the default hash phase of the mine operation */ function _hash(uint256 nonce, ...
* _hash function Override the default hash phase of the mine operation/
function _hash(uint256 nonce, bytes32 challenge_digest) internal returns (bytes32 digest) { digest = super._hash(nonce, challenge_digest);
12,678,660
[ 1, 67, 2816, 445, 1439, 326, 805, 1651, 6855, 434, 326, 312, 558, 1674, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 389, 2816, 12, 11890, 5034, 7448, 16, 1731, 1578, 12948, 67, 10171, 13, 2713, 1135, 261, 3890, 1578, 5403, 13, 288, 203, 202, 202, 10171, 273, 2240, 6315, 2816, 12, 12824, 16, 12948, 67, 10171, 1769, 203, 203, 203, 2, ...
pragma solidity 0.5.16; import "./Controllable.sol"; import "./RewardPool.sol"; contract NotifyHelper is Controllable { constructor(address _storage) public Controllable(_storage) {} /** * Notifies all the pools, safe guarding the notification amount. */ function notifyPools(uint256[] memory am...
* Notifies all the pools, safe guarding the notification amount./
{ require( amounts.length == pools.length, "Amounts and pools lengths mismatch" ); for (uint256 i = 0; i < pools.length; i++) { if (amounts[i] == 0) { continue; } NoMintRewardPool pool = NoMintRewardPool(pools[i]); ...
13,069,817
[ 1, 1248, 5032, 777, 326, 16000, 16, 4183, 11026, 310, 326, 3851, 3844, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 2583, 12, 203, 5411, 30980, 18, 2469, 422, 16000, 18, 2469, 16, 203, 5411, 315, 6275, 87, 471, 16000, 10917, 13484, 6, 203, 3639, 11272, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 16000, ...
./partial_match/44787/0x3520602E849f1172E43FfCd77778F7E4e8effcab/sources/CeloProxyFlattened.sol
@notice Gets a list of prices from a list of assets addresses @param _assets The list of assets addresses
function getAssetsPrices(address[] memory _assets) public view returns (uint256[] memory) { uint256[] memory prices = new uint256[](_assets.length); for (uint256 i = 0; i < _assets.length; i++) { prices[i] = getAssetPrice(_assets[i]); } return prices; }
16,954,434
[ 1, 3002, 279, 666, 434, 19827, 628, 279, 666, 434, 7176, 6138, 225, 389, 9971, 1021, 666, 434, 7176, 6138, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 336, 10726, 31862, 12, 2867, 8526, 3778, 389, 9971, 13, 1071, 1476, 1135, 261, 11890, 5034, 8526, 3778, 13, 288, 203, 565, 2254, 5034, 8526, 3778, 19827, 273, 394, 2254, 5034, 8526, 24899, 9971, 18, 2469, 1769, 203, 565, ...
./full_match/1/0xcD2609a25407ce8B1bDc31038Fb0B86637cB2063/sources/contracts/assetToken/AssetToken.sol
@notice Requests an amount of assetToken Redemption @param _assetTokenAmount the amount of Asset Token to be redeemed @param _destination the off chain hash of the redemption transaction @return uint256 redemptionRequest ID to be referenced in the mapping @dev approve instantly when called by issuer or guardian
function requestRedemption(uint256 _assetTokenAmount, string memory _destination) external nonReentrant returns (uint256) { require(_assetTokenAmount > 0, "RRD Err amount"); require(balanceOf(_msgSender()) >= _assetTokenAmount, "RRD not enough funds"); IAssetToke...
3,064,703
[ 1, 6421, 392, 3844, 434, 3310, 1345, 868, 19117, 375, 225, 389, 9406, 1345, 6275, 326, 3844, 434, 10494, 3155, 358, 506, 283, 24903, 329, 225, 389, 10590, 326, 3397, 2687, 1651, 434, 326, 283, 19117, 375, 2492, 327, 2254, 5034, 283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 590, 426, 19117, 375, 12, 11890, 5034, 389, 9406, 1345, 6275, 16, 533, 3778, 389, 10590, 13, 203, 3639, 3903, 203, 3639, 1661, 426, 8230, 970, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 24899...
./partial_match/3/0x5b739c711fFC6AFd3AeaE1578af608EDCdE6fd87/sources/BerserkVote.sol
poolAddress -> votingItem (periodFinish) -> voter2VotingValue (map: voter -> voting value)
mapping(address => mapping(uint256 => mapping(address => uint16))) public voter2VotingValue;
5,239,563
[ 1, 6011, 1887, 317, 331, 17128, 1180, 261, 6908, 11641, 13, 317, 331, 20005, 22, 58, 17128, 620, 261, 1458, 30, 331, 20005, 317, 331, 17128, 460, 13, 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, 2874, 12, 2867, 516, 2874, 12, 11890, 5034, 516, 2874, 12, 2867, 516, 2254, 2313, 20349, 1071, 331, 20005, 22, 58, 17128, 620, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"...
* @param hcAddr Initialize HC Address @param hclpAddr Initialize HC LP Address @param manager Initialize Manager Role/
) { hc = IHC(hcAddr); lpToken = IERC20(hclpAddr); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(MANAGER_ROLE, manager); }
15,819,370
[ 1, 28353, 3178, 9190, 31979, 5267, 225, 29265, 84, 3178, 9190, 31979, 511, 52, 5267, 225, 3301, 9190, 8558, 6204, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 288, 203, 3639, 11684, 273, 467, 23408, 12, 28353, 3178, 1769, 203, 3639, 12423, 1345, 273, 467, 654, 39, 3462, 12, 76, 830, 84, 3178, 1769, 203, 203, 3639, 389, 8401, 2996, 12, 5280, 67, 15468, 67, 16256, 16, 1234, 1...
./partial_match/56/0x0B820e2F7A06F2fE382C8E59248163003BE8CD1A/sources/OptionPandaToken.sol
* @dev Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`./
function burnFrom(address account, uint256 amount) public { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "OPA: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); }
11,097,467
[ 1, 9378, 28599, 1375, 8949, 68, 2430, 628, 1375, 4631, 9191, 11140, 853, 310, 628, 326, 4894, 1807, 1699, 1359, 18, 2164, 288, 654, 39, 3462, 17, 67, 70, 321, 97, 471, 288, 654, 39, 3462, 17, 5965, 1359, 5496, 29076, 30, 300, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 18305, 1265, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 1071, 288, 203, 3639, 2254, 5034, 23850, 8905, 7009, 1359, 273, 1699, 1359, 12, 4631, 16, 389, 3576, 12021, 1435, 2934, 1717, 12, 8949, 16, 315, 3665, 37, 30, 18305...
./partial_match/1/0x5fF76370DD1158cFc3BE7238111F2E5e16B9Ff98/sources/SpotInu.sol
2% from total supply maxWallet
maxWallet = 1600000 * 1e18;
2,753,506
[ 1, 22, 9, 628, 2078, 14467, 943, 16936, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 943, 16936, 273, 2872, 11706, 380, 404, 73, 2643, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT // ============ Imports ============ import "./subcontracts/ERC721.sol"; import "./interfaces/IERC20.sol"; import "./libraries/Ownable.sol"; import "./subcontracts/VRFConsumerBase.sol"; contract generativeNFT is ERC721, Ownable, VRFConsumerBase { // ==...
* Start the nft sale/ Flip sale status Emit sale status
function flipSaleState() public onlyOwner { saleIsActive = !saleIsActive; emit SaleActive(saleIsActive); }
13,022,574
[ 1, 1685, 326, 290, 1222, 272, 5349, 19, 478, 3169, 272, 5349, 1267, 16008, 272, 5349, 1267, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9668, 30746, 1119, 1435, 1071, 1338, 5541, 288, 203, 3639, 272, 5349, 2520, 3896, 273, 401, 87, 5349, 2520, 3896, 31, 203, 3639, 3626, 348, 5349, 3896, 12, 87, 5349, 2520, 3896, 1769, 203, 565, 289, 203, 203, 2, -100, ...
// SPDX-License-Identifier: MIT pragma solidity =0.7.4; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {I...
* @dev Returns the domain separator for the current chain./
function _domainSeparatorV4() internal view returns (bytes32) { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); }
5,870,993
[ 1, 1356, 326, 2461, 4182, 364, 326, 783, 2687, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 4308, 6581, 58, 24, 1435, 2713, 1476, 1135, 261, 3890, 1578, 13, 288, 203, 565, 327, 389, 3510, 3748, 6581, 24899, 2399, 67, 15920, 16, 389, 15920, 2056, 67, 1985, 16, 389, 15920, 2056, 67, 5757, 1769, 203, 225, ...
pragma solidity ^0.4.11; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { mapping(address => bool) owners; address root; event ChangeOwner(address inde...
* @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./
contract Ownable { mapping(address => bool) owners; address root; event ChangeOwner(address indexed from, address indexed to, address indexed by); function Ownable() { owners[msg.sender] = true; root = msg.sender; } modifier onlyOwner() { require(owners[msg.sender]); _; } function ...
1,035,461
[ 1, 5460, 429, 225, 1021, 14223, 6914, 6835, 711, 392, 3410, 1758, 16, 471, 8121, 5337, 6093, 3325, 4186, 16, 333, 9330, 5032, 326, 4471, 434, 315, 1355, 4371, 9654, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 6914, 288, 203, 225, 2874, 12, 2867, 516, 1426, 13, 25937, 31, 203, 225, 1758, 1365, 31, 203, 203, 225, 871, 7576, 5541, 12, 2867, 8808, 628, 16, 1758, 8808, 358, 16, 1758, 8808, 635, 1769, 7010, 203, 225, 445, 14...
//SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; //import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; import "./VRFConsumerBase.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract FairLotto is VRFConsumerBase, Ownable { ...
Only FairLotto NFT owners can play at a preferential price
IERC721 token = IERC721(lottoNftAddress);
12,544,499
[ 1, 3386, 478, 1826, 48, 352, 869, 423, 4464, 25937, 848, 6599, 622, 279, 13256, 2001, 6205, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 467, 654, 39, 27, 5340, 1147, 273, 467, 654, 39, 27, 5340, 12, 23372, 869, 50, 1222, 1887, 1769, 3639, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: LGPL-3.0-or-later pragma solidity ^0.8.10; import "./mixins/NonTransferrableErc20.sol"; import "./mixins/Vesting.sol"; import "./mixins/Claiming.sol"; import "./mixins/MerkleDistributor.sol"; import "./vendored/mixins/StorageAccessible.sol"; /// @dev The token that manages how the CoW Prot...
@dev The contract functions that are shared between the `Vesting` and `Claiming` contracts. The two components are handled and tested separately and are linked to each other by the functions in this contract. This contracs is for all intents and purposes an interface, however actual interfaces cannot declare internal ...
abstract contract VestingInterface { function addVesting( address user, uint256 vestingAmount, bool isCancelableFlag ) internal virtual; function vest(address user) internal virtual returns (uint256); function shiftVesting(address user, address freedVestingBeneficiary) ...
12,096,523
[ 1, 1986, 6835, 4186, 716, 854, 5116, 3086, 326, 1375, 58, 10100, 68, 471, 1375, 9762, 310, 68, 20092, 18, 1021, 2795, 4085, 854, 7681, 471, 18432, 18190, 471, 854, 8459, 358, 1517, 1308, 635, 326, 4186, 316, 333, 6835, 18, 1220, 162...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 776, 10100, 1358, 288, 203, 565, 445, 527, 58, 10100, 12, 203, 3639, 1758, 729, 16, 203, 3639, 2254, 5034, 331, 10100, 6275, 16, 203, 3639, 1426, 353, 6691, 429, 4678, 203, 565, 262, 2713, 5024, 31, 203, 203, 565, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.0 <0.9.0; /** * @title Long Bets, but Crypto TM * @dev Store & retrieve value in a variable */ contract LongBet { // todo: add "earliest date this can be voted on" // todo: add duration (e.g. this bet is over x years) // todo: add way for arbite...
todo: add check that value is > 0 right now, these conditions are suboptimal: it's a hacky way of approximating null todo: improve this todo: add assertion these aren't empty
payable { require(arg_predictor != arg_challenger && arg_challenger != arg_arbiter && arg_arbiter != arg_predictor, "predictor, challenger, arbiter must be different addresses"); require( keccak256(bytes(pArg)) != keccak256(bytes("")) && keccak256(bytes(t...
12,956,796
[ 1, 9012, 30, 527, 866, 716, 460, 353, 405, 374, 2145, 2037, 16, 4259, 4636, 854, 720, 3838, 2840, 30, 518, 1807, 279, 11769, 93, 4031, 434, 26962, 1776, 446, 10621, 30, 21171, 333, 10621, 30, 527, 11240, 4259, 11526, 1404, 1008, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 8843, 429, 288, 203, 5411, 2583, 12, 3175, 67, 14491, 280, 480, 1501, 67, 343, 7862, 693, 597, 1501, 67, 343, 7862, 693, 480, 1501, 67, 6779, 2165, 597, 1501, 67, 6779, 2165, 480, 1501, 67, 14491, 280, 16, 315, 14491, 280...
pragma solidity ^0.4.18; // For the sake of simplicity lets assume EUR is a ERC20 token // Also lets assume we can 100% trust the exchange rate oracle contract PayrollInterface { /* OWNER ONLY */ function addEmployee(address accountAddress, address[] allowedTokens, uint256[] initialTokenDistribution, uint256 i...
For the sake of simplicity lets assume EUR is a ERC20 token Also lets assume we can 100% trust the exchange rate oracle function addTokenFunds()? Use approveAndCall or ERC223 tokenFallback
contract PayrollInterface { function addEmployee(address accountAddress, address[] allowedTokens, uint256[] initialTokenDistribution, uint256 initialYearlyEURSalary) public; function setEmployeeSalary(uint256 employeeId, uint256 yearlyEURSalary) public; function removeEmployee(uint256 employeeId) public; ...
934,578
[ 1, 1290, 326, 272, 911, 434, 3142, 20458, 14557, 6750, 512, 1099, 353, 279, 4232, 39, 3462, 1147, 8080, 14557, 6750, 732, 848, 2130, 9, 10267, 326, 7829, 4993, 20865, 445, 527, 1345, 42, 19156, 1435, 35, 225, 2672, 6617, 537, 1876, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 13838, 2693, 1358, 288, 203, 565, 445, 527, 41, 27520, 12, 2867, 2236, 1887, 16, 1758, 8526, 2935, 5157, 16, 2254, 5034, 8526, 2172, 1345, 9003, 16, 2254, 5034, 2172, 5593, 715, 41, 1099, 55, 287, 814, 13, 1071, 31, 203, ...
pragma solidity ^0.4.11; // HUNT Crowdsale Token Contract // Aqua Commerce LTD Company #194644 (Republic of Seychelles) // The MIT Licence . contract SafeMath { function sub(uint256 x, uint256 y) constant internal returns (uint256 z) { assert((z = x - y) <= x); } function add(...
Spender of tokens transfer an amount of tokens from the token owner's balance to another account, with a check that the crowdsale is finalised Cannot transfer before crowdsale ends + 7 days Standard transferFrom
function transferFrom(address _from, address _to, uint _amount) returns (bool success) { require((time() > endDate + 7 days )); return super.transferFrom(_from, _to, _amount); }
952,116
[ 1, 27223, 264, 434, 2430, 7412, 392, 3844, 434, 2430, 628, 326, 1147, 3410, 1807, 11013, 358, 4042, 2236, 16, 598, 279, 866, 716, 326, 276, 492, 2377, 5349, 353, 727, 5918, 14143, 7412, 1865, 276, 492, 2377, 5349, 3930, 397, 2371, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 389, 8949, 13, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 2583, 12443, 957, 1435, 405, 13202, 397, 2371, 4681, 262, 1769, 203, 3639, 327, 2240, 18, 13866, ...
./partial_match/42220/0x1EC3366D384ee7996F2F70B67A65C5d54Ce96040/sources/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/identity/Attestations.sol
* @notice Require that a given identifier/address pair has requested a specific number of attestations. @param identifier Hash of the identifier. @param account Address of the account. @param expected Number of expected attestations @dev It can be used when batching meta-transactions to validate attestation are request...
function requireNAttestationsRequested(bytes32 identifier, address account, uint32 expected) external view { uint256 requested = identifiers[identifier].attestations[account].requested; require(requested == expected, "requested attestations does not match expected"); }
3,499,759
[ 1, 8115, 716, 279, 864, 2756, 19, 2867, 3082, 711, 3764, 279, 2923, 1300, 434, 2403, 395, 1012, 18, 225, 2756, 2474, 434, 326, 2756, 18, 225, 2236, 5267, 434, 326, 2236, 18, 225, 2665, 3588, 434, 2665, 2403, 395, 1012, 225, 2597, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 2583, 50, 3075, 395, 1012, 11244, 12, 3890, 1578, 2756, 16, 1758, 2236, 16, 2254, 1578, 2665, 13, 203, 565, 3903, 203, 565, 1476, 203, 225, 288, 203, 565, 2254, 5034, 3764, 273, 9863, 63, 5644, 8009, 270, 3813, 1012, ...
./full_match/1/0x7132c10A5fDeb8236Be65F451c1973E26E8515EF/sources/contracts/sugartown/SugartownOrasNFT.sol
* @dev unlock function that unstakes given token ID. Please see {ERC721z}./
function unlock(uint256 tokenId) public virtual whenNotPaused nonReentrant { _unstake(tokenId, msg.sender); }
3,072,420
[ 1, 26226, 445, 716, 640, 334, 3223, 864, 1147, 1599, 18, 7801, 2621, 288, 654, 39, 27, 5340, 94, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7186, 12, 11890, 5034, 1147, 548, 13, 1071, 5024, 1347, 1248, 28590, 1661, 426, 8230, 970, 288, 203, 3639, 389, 23412, 911, 12, 2316, 548, 16, 1234, 18, 15330, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
pragma solidity 0.5.12; import {ERC20} from "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import {Ownable} from "openzeppelin-solidity/contracts/ownership/Ownable.sol"; /** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation and update of max supply */ contract Mint...
* @dev Function to stop minting new tokens. @return True if the operation was successful./
function finishMinting() public onlyOwner canMint returns (bool) { mintingFinished = true; emit MintFinished(); return true; }
12,803,814
[ 1, 2083, 358, 2132, 312, 474, 310, 394, 2430, 18, 327, 1053, 309, 326, 1674, 1703, 6873, 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, 4076, 49, 474, 310, 1435, 1071, 1338, 5541, 848, 49, 474, 1135, 261, 6430, 13, 288, 203, 3639, 312, 474, 310, 10577, 273, 638, 31, 203, 3639, 3626, 490, 474, 10577, 5621, 203, 203, 3639, 327, 638, 31, 203, 565, 289, ...
./full_match/1/0x5D8d9F5b96f4438195BE9b99eee6118Ed4304286/sources/contracts/Blacksmith.sol
update writeoff to match current acc rewards & bonus per token
function claimRewards(address _lpToken) public override { updatePool(_lpToken); Pool memory pool = pools[_lpToken]; Miner storage miner = miners[_lpToken][msg.sender]; BonusToken memory bonusToken = bonusTokens[_lpToken]; _claimCoverRewards(pool, miner); _claimBonus(bonusToken, miner); m...
2,907,499
[ 1, 2725, 1045, 3674, 358, 845, 783, 4078, 283, 6397, 473, 324, 22889, 1534, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 7516, 17631, 14727, 12, 2867, 389, 9953, 1345, 13, 1071, 3849, 288, 203, 565, 1089, 2864, 24899, 9953, 1345, 1769, 203, 203, 565, 8828, 3778, 2845, 273, 16000, 63, 67, 9953, 1345, 15533, 203, 565, 5444, 264, 2502, 1131, ...
/** *Submitted for verification at Etherscan.io on 2021-08-07 */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; interface Etheria { function getOwner(uint8 col, uint8 row) external view returns(address); function setOwner(uint8 col, uint8 row, address newOwner) external; } interface MapElevatio...
syntax: (bool success, bytes memory data) = _addr.call{value: msg.value, gas: 5000}(encoded function and data)
(bool success, ) = recipient.call{ value: amount }("");
7,921,841
[ 1, 14308, 30, 261, 6430, 2216, 16, 1731, 3778, 501, 13, 273, 389, 4793, 18, 1991, 95, 1132, 30, 1234, 18, 1132, 16, 16189, 30, 20190, 97, 12, 10787, 445, 471, 501, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 261, 6430, 2216, 16, 262, 273, 8027, 18, 1991, 95, 460, 30, 3844, 289, 2932, 8863, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/4/0x7a192909d574F879A7cF3aFa822f8e13F7f8c84B/sources/Users/kirillfedoseev/work/omnibridge-nft/contracts/tokens/ERC1155BridgeToken.sol
If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
return string(abi.encodePacked(base, tokenURI));
758,471
[ 1, 2047, 3937, 854, 444, 16, 11361, 326, 1026, 3098, 471, 1147, 3098, 261, 21985, 24126, 18, 3015, 4420, 329, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 327, 533, 12, 21457, 18, 3015, 4420, 329, 12, 1969, 16, 1147, 3098, 10019, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: UNLICENSED // Cauldron // ( ( ( // )\ ) ( )\ )\ ) ( // (((_) ( /( ))\ ((_)(()/( )( ( ( // )\___ )(_)) /((_) _ ((_))(()\ )\ )\ ) // ((/ __|((_)_ (_))( | | _| | ((_) ((_) _(_/( // | (__ / _` || || || |/ _` | | '_|/ _ \| ' \)) // \___...
@inheritdoc IOracle
function symbol(bytes calldata) public view override returns (string memory) { return "ICE"; }
6,036,988
[ 1, 36, 10093, 1665, 16873, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3273, 12, 3890, 745, 892, 13, 1071, 1476, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 315, 11774, 14432, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/4/0xBEA27bd84fea3ccd30848245a81B71a07f435C5a/sources/contracts/AfterLife.sol
* @notice Registers a new beneficiary in the system @param currentPublicKey the public key to be used in the first secret @param endpoint where to contact this beneficiary on the internet @param paymentAddress all collected payments for the beneficiary will be sent here @param feePerByte amount of LIFE tokens charged p...
function registerBeneficiary( bytes memory currentPublicKey, string memory endpoint, address paymentAddress, uint256 feePerByte, uint256 minimumReward, uint256 minimumHandlingFee, uint256 maximumLockTime, uint256 freeBond ) public virtual returns (...
12,427,240
[ 1, 10277, 279, 394, 27641, 74, 14463, 814, 316, 326, 2619, 225, 783, 9632, 326, 1071, 498, 358, 506, 1399, 316, 326, 1122, 4001, 225, 2494, 1625, 358, 5388, 333, 27641, 74, 14463, 814, 603, 326, 24264, 225, 5184, 1887, 777, 12230, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1744, 38, 4009, 74, 14463, 814, 12, 203, 3639, 1731, 3778, 783, 9632, 16, 203, 3639, 533, 3778, 2494, 16, 203, 3639, 1758, 5184, 1887, 16, 203, 3639, 2254, 5034, 14036, 2173, 3216, 16, 203, 3639, 2254, 5034, 5224, 17631...
./full_match/5/0x3655A0FfF28034894A5750168e0069a2f6d8aE43/sources/contracts/333Updated.sol
* @notice Update blocklist contract address to a custom contract addresss if desired for custom functionality/
function updateBlocklistContractAddress(address _blocklistContractAddress) external onlyOwner { blocklistContractAddress = _blocklistContractAddress; }
1,850,944
[ 1, 1891, 1203, 1098, 6835, 1758, 358, 279, 1679, 6835, 1758, 87, 309, 6049, 364, 1679, 14176, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 1768, 1098, 8924, 1887, 12, 2867, 389, 2629, 1098, 8924, 1887, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 1203, 1098, 8924, 1887, 273, 389, 2629, 1098, 8924, 1887, 31, 203, 565, 289, 203...
./full_match/5/0x7E1d0B855200DfE1b840269480fc08C043e978A6/sources/contracts/CrowdFunding.sol
is everything good???
function createCampaign(address _owner,string memory _title, string memory _description, uint256 _target, uint256 _deadline, string memory _image) public returns(uint256) { Campaign storage campaign = campaigns[numberOfCampaigns]; require(campaign.deadline < block.timestamp, "The deadline should b...
11,628,717
[ 1, 291, 7756, 7494, 14646, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 13432, 12, 2867, 389, 8443, 16, 1080, 3778, 389, 2649, 16, 533, 3778, 389, 3384, 16, 2254, 5034, 389, 3299, 16, 2254, 5034, 389, 22097, 1369, 16, 533, 3778, 389, 2730, 13, 1071, 1135, 12, 11890, 5034, 13, 288, 20...
./full_match/122/0xFAE02d404c327A1Eb2fB38eb89C38860a02D70e6/sources/contracts/LiquidStakingPool.sol
* @notice Returns the current number of validators on list/
function getValidatorsLength() public view returns(uint256) { address[] memory validatorList = getValidators(); return validatorList.length; }
16,366,173
[ 1, 1356, 326, 783, 1300, 434, 11632, 603, 666, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 19420, 1782, 1435, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 1758, 8526, 3778, 4213, 682, 273, 336, 19420, 5621, 203, 3639, 327, 4213, 682, 18, 2469, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, ...
./partial_match/4/0xb9132D6b42492Ba3e291492D9849fFB3Cc1bAB4F/sources/contracts/Staking.sol
amount of TIME/BASH in contract
uint balance = contractBalance();
8,731,116
[ 1, 8949, 434, 8721, 19, 38, 10793, 316, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 2254, 11013, 273, 6835, 13937, 5621, 13491, 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, ...
./full_match/5/0x5A77FBEb4f331f771bbc225f02E4c56ce51Eacba/sources/project_/contracts/GBM/GBM.sol
_auctionID => duration in seconds
uint256 hammerTimeDuration;
1,911,059
[ 1, 67, 69, 4062, 734, 516, 3734, 316, 3974, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 366, 301, 6592, 950, 5326, 31, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0xf1d6CB2B344571963fe66a3aa10f84AC530b2DC6/sources/contracts/MXBITokenExchange.sol
Emitted when an exchange rate is updated.
event ExchangeRateUpdated(address indexed token, uint256 rate);
1,938,162
[ 1, 1514, 11541, 1347, 392, 7829, 4993, 353, 3526, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 18903, 4727, 7381, 12, 2867, 8808, 1147, 16, 2254, 5034, 4993, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; import "./QuadrantToken.sol"; import "zeppelin-solidity/contracts/lifecycle/Pausable.sol"; import "zeppelin-solidity/contracts/ownership/Ownable.sol"; import "zeppelin-solidity/contracts/math/SafeMath.sol"; import "./Whitelister.sol"; /// @title Dutch auction contract - distribution of a fixed...
@notice Start the auction. @dev Starts auction and sets start_time.
function startAuction() public onlyOwner atStage(Stages.AuctionSetUp) { stage = Stages.AuctionStarted; start_time = now; end_time = now + auction_duration; start_block = block.number; emit AuctionStarted(start_time, start_block); }
12,907,225
[ 1, 1685, 326, 279, 4062, 18, 225, 30620, 279, 4062, 471, 1678, 787, 67, 957, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 787, 37, 4062, 1435, 1071, 1338, 5541, 622, 8755, 12, 31359, 18, 37, 4062, 694, 1211, 13, 288, 203, 3639, 6009, 273, 934, 1023, 18, 37, 4062, 9217, 31, 203, 3639, 787, 67, 957, 273, 2037, 31, 203, 3639, 679, 67, 957...
./full_match/44787/0x3B9EDfC6eB4B29341ca232350EcC65BC070f8574/sources/Contracts/Dcolab.sol
* !This function is called to close the poll ? when this function is called, users wouldn't be able to vote/
function closePoll(uint256 _pollID) external { require( msg.sender == allPolls[_pollID].initiator, " only the initiator can close the poll" ); allPolls[_pollID].isOpen = false; }
13,284,709
[ 1, 5, 2503, 445, 353, 2566, 358, 1746, 326, 7672, 692, 1347, 333, 445, 353, 2566, 16, 3677, 4102, 82, 1404, 506, 7752, 358, 12501, 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, 1746, 19085, 12, 11890, 5034, 389, 13835, 734, 13, 3903, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 777, 5850, 3251, 63, 67, 13835, 734, 8009, 2738, 10620, 16, 203, 5411, 315, 1338, 326, 26030, 848, 1746...
./partial_match/1/0x6B4b3B0B0130C9b4dDa7c6FB4602BEefBBF10672/sources/FarmToken.sol
* @notice Delegates votes from signatory to `delegatee` @param delegatee The address to delegate votes to @param nonce The contract state required to match the signature @param expiry The time at which to expire the signature @param v The recovery byte of the signature @param r Half of the ECDSA signature pair @param s...
function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())...
2,891,977
[ 1, 15608, 815, 19588, 628, 1573, 8452, 358, 1375, 22216, 73, 68, 225, 7152, 73, 1021, 1758, 358, 7152, 19588, 358, 225, 7448, 1021, 6835, 919, 1931, 358, 845, 326, 3372, 225, 10839, 1021, 813, 622, 1492, 358, 6930, 326, 3372, 225, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7152, 858, 8267, 12, 203, 3639, 1758, 7152, 73, 16, 203, 3639, 2254, 7448, 16, 203, 3639, 2254, 10839, 16, 203, 3639, 2254, 28, 331, 16, 203, 3639, 1731, 1578, 436, 16, 203, 3639, 1731, 1578, 272, 203, 565, 262, 203, ...
// File: contracts/IERC20Token.sol pragma solidity ^0.4.24; /* ERC20 Standard Token interface */ contract IERC20Token { // these functions aren't abstract since the compiler emits automatically generated getter functions as external function name() public view returns (string) {} function symbol() pub...
we are filling sell orders in delta
function makeBuyTradeEtherDeltaTrade(DeltaTrade[] trades, uint256 depositValue) private returns (uint256) { for (uint256 i = 0; i < trades.length; i++) { etherDelta.trade( ); } }
13,109,908
[ 1, 1814, 854, 25740, 357, 80, 11077, 316, 3622, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1221, 38, 9835, 22583, 41, 1136, 9242, 22583, 12, 9242, 22583, 8526, 1284, 5489, 16, 2254, 5034, 443, 1724, 620, 13, 3238, 1135, 261, 11890, 5034, 13, 288, 203, 203, 565, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, ...
./full_match/44787/0x218F66D2734d8E4D80C2F0908a6D8f973b0Ea83e/sources/contracts/community/CommunityImplementation.sol
* @notice Returns the current implementation version/
function getVersion() external pure override returns (uint256) { return 2; }
13,243,646
[ 1, 1356, 326, 783, 4471, 1177, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8343, 1435, 3903, 16618, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 576, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/3/0xe8DB741883fB5ea7eFcBD7e95bAE68497317F1FB/sources/contracts/ROM.sol
* @dev purchase _tokenId @param _tokenId uint256 token ID (token number)/
function purchaseToken(uint256 _tokenId) public payable nonReentrant { require(msg.sender != address(0) && msg.sender != ownerOf(_tokenId)); require(msg.value >= _tokenPrices[_tokenId]); address tokenSeller = ownerOf(_tokenId); payable(tokenSeller).transfer(msg.value); setApprovalForAll(tokenSel...
14,194,666
[ 1, 12688, 12104, 389, 2316, 548, 225, 389, 2316, 548, 2254, 5034, 1147, 1599, 261, 2316, 1300, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 23701, 1345, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 8843, 429, 1661, 426, 8230, 970, 288, 203, 565, 2583, 12, 3576, 18, 15330, 480, 1758, 12, 20, 13, 597, 1234, 18, 15330, 480, 3410, 951, 24899, 2316, 548, 10019, ...
/* ______ _________ ___ ___ _______ _______ ________ ______ /_____/\ /________/\/__/\ /__/\ /______/\ /______/\ /_______/\/_____/\ \::::_\/_\__.::.__\/\::\ \\ \ \\::::__\/__\::::__\/__ \__.::._\/\:::_ \ \ \:\/___/\ \::\ \ \::\/_\ .\ \\:\ /____/\\:\ /___...
Minimum number of lottery tickets
gameConfig_.minBetNum=10;
2,485,032
[ 1, 13042, 1300, 434, 17417, 387, 93, 24475, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 7920, 809, 27799, 1154, 38, 278, 2578, 33, 2163, 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, -100, -100, -100, -...
contract caller { function do_call(callee e, int64 v) public { e.set_x(v); } function do_call2(callee e, int64 v) view public returns (int64) { return v + e.get_x(); } // call two different functions function do_call3(callee e, callee2 e2, int64[4] memory x, string memory y) p...
call two different functions
function do_call3(callee e, callee2 e2, int64[4] memory x, string memory y) pure public returns (int64, string memory) { return (e2.do_stuff(x), e.get_name()); }
12,545,342
[ 1, 1991, 2795, 3775, 4186, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 741, 67, 1991, 23, 12, 771, 11182, 425, 16, 14425, 22, 425, 22, 16, 509, 1105, 63, 24, 65, 3778, 619, 16, 533, 3778, 677, 13, 16618, 1071, 1135, 261, 474, 1105, 16, 533, 3778, 13, 288, 203, 3639, 327, 261, 73, 22,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "hardhat/console.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; /** * @author Oighty. Please contact me on Twitter (@oightytag) or Discord (Oighty #4287) if you have any questions about this contract. */ contract ArbitratedAgree...
-------------------- ENTITY FUNCTIONS --------------------* @dev Called by the purchaser to fund the contract. Expects ether equivalent to the agreement amount to be sent./
function fund() external payable onlyPurchaser nonReentrant isActive { require(msg.value == amount); funded = true; emit AgreementFunded(); }
902,245
[ 1, 1271, 553, 17020, 13690, 55, 12146, 6062, 225, 11782, 635, 326, 5405, 343, 14558, 358, 284, 1074, 326, 6835, 18, 15510, 87, 225, 2437, 7680, 358, 326, 19602, 3844, 358, 506, 3271, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 284, 1074, 1435, 3903, 8843, 429, 1338, 10262, 343, 14558, 1661, 426, 8230, 970, 15083, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 422, 3844, 1769, 203, 3639, 9831, 785, 273, 638, 31, 203, 3639, 3626, 5495, 10606, 42, 12...
./full_match/5/0x5256308608B6865F486b59136e7826ACF648a2a1/sources/contracts/prebuilts/account/utils/AccountCore.sol
Extract the `target` and `value` array arguments from the calldata for `executeBatch`.
(address[] memory targets, uint256[] memory values, ) = decodeExecuteBatchCalldata(_userOp.callData);
1,960,712
[ 1, 4976, 326, 1375, 3299, 68, 471, 1375, 1132, 68, 526, 1775, 628, 326, 745, 892, 364, 1375, 8837, 4497, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 261, 2867, 8526, 3778, 5774, 16, 2254, 5034, 8526, 3778, 924, 16, 262, 273, 2495, 5289, 4497, 1477, 892, 24899, 1355, 3817, 18, 1991, 751, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; // Code from Open Zeppelin import "./Ownable.sol"; import "./SafeMath.sol"; import "./ERC20.sol"; import "./DetailedERC20.sol"; import "./StandardToken.sol"; import "./MintableToken.sol"; /** * @title Capped token * @dev Mintable token with a token cap. */ contract CappedToken is MintableTo...
no need to require value <= totalSupply, since that would imply the sender's balance is greater than the totalSupply, which *should* be an assertion failure
function _burn(address _who, uint256 _value) internal { require(_value <= balances[_who]); balances[_who] = balances[_who].sub(_value); valueBurned[_who] = valueBurned[_who].add(_value); totalSupply_ = totalSupply_.sub(_value); emit Burn(_who, _value); emit Transfer(_who, address(0), _value);...
1,013,597
[ 1, 2135, 1608, 358, 2583, 460, 1648, 2078, 3088, 1283, 16, 3241, 716, 4102, 709, 1283, 326, 5793, 1807, 11013, 353, 6802, 2353, 326, 2078, 3088, 1283, 16, 1492, 1410, 506, 392, 11240, 5166, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 70, 321, 12, 2867, 389, 3350, 83, 16, 2254, 5034, 389, 1132, 13, 2713, 288, 203, 565, 2583, 24899, 1132, 1648, 324, 26488, 63, 67, 3350, 83, 19226, 203, 203, 565, 324, 26488, 63, 67, 3350, 83, 65, 273, 324, 264...
./partial_match/1/0xae308E57FD7F179e25D62988ec4c7a3676E603B7/sources/contracts/TheLittleKingsV2.sol
Owner keeping some for gifts / prizes / whatver Fixed Reserved amount
{ KingsV2 = TheLittleKingsOld(payable(_kingsV1Adday)); accounts[0x04A7dC490C42712393513B707A8Bf2fB5c4D8d3c] = Account( 5, 0, 1); accounts[0xDF298eB4f3F6b7bDA80c3408211b953b563eF9cb] = Account( 5, 0, 1); accounts[0x75D251f95888e963AA1Fe4a7E5b755F0b181AB07] = Account( 5, 0, 1); ...
4,221,560
[ 1, 5541, 19966, 2690, 364, 314, 2136, 87, 342, 846, 3128, 342, 4121, 502, 15038, 16237, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 203, 3639, 1475, 899, 58, 22, 273, 1021, 48, 7188, 47, 899, 7617, 12, 10239, 429, 24899, 79, 899, 58, 21, 986, 528, 10019, 203, 203, 3639, 9484, 63, 20, 92, 3028, 37, 27, 72, 39, 7616, 20, 39, 24, 5324, 2138,...
./partial_match/1/0x0000000000000aF8FE6E4DE40F4804C90fA8Ea8F/sources/contracts/EPS FOR VERIFICATION/ProxyRegister.sol
* @dev _acceptNominationValidation: validate passed parameters/ Check that the address passed in matches a pending record for the hot address: Check that the cold address isn't live or pending payment anywhere on the register:
function _acceptNominationValidation(address hot_, address cold_) internal view { if ( hotToRecord[hot_].cold != cold_ || hotToRecord[hot_].status != ProxyStatus.PendingAcceptance ) revert AddressMismatch(); if (!addressIsAvailable(cold_, false)) revert AlreadyProxied(); }
3,909,970
[ 1, 67, 9436, 26685, 1735, 4354, 30, 1954, 2275, 1472, 19, 2073, 716, 326, 1758, 2275, 316, 1885, 279, 4634, 1409, 364, 326, 12811, 1758, 30, 2073, 716, 326, 645, 72, 1758, 5177, 1404, 8429, 578, 4634, 5184, 25651, 603, 326, 1744, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 389, 9436, 26685, 1735, 4354, 12, 2867, 12811, 67, 16, 1758, 645, 72, 67, 13, 203, 565, 2713, 203, 565, 1476, 203, 225, 288, 203, 203, 565, 309, 261, 203, 1377, 12811, 774, 2115, 63, 15224, 67, 8009, 1293, 72, 480, ...