file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./full_match/1/0xA33dCbE04278706248891931537Dd56B795c3663/sources/contracts/factories/flexi/FlexiPunkTLD.sol
@notice Edit domain custom data. Make sure to not accidentally delete previous data. Fetch previous data first. @param _domainName Only domain name, no TLD/extension. @param _data Custom data needs to be in a JSON object format.
function editData(string calldata _domainName, string calldata _data) external { string memory dName = strings.lower(_domainName); require(domains[dName].holder == _msgSender(), "Only domain holder can edit their data"); domains[dName].data = _data; emit DataChanged(_msgSender()); }
16,489,230
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 15328, 2461, 1679, 501, 18, 4344, 3071, 358, 486, 25961, 1230, 1430, 2416, 501, 18, 8065, 2416, 501, 1122, 18, 632, 891, 389, 4308, 461, 5098, 2461, 508, 16, 1158, 399, 12069, 19, 6447, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 225, 445, 3874, 751, 12, 1080, 745, 892, 389, 4308, 461, 16, 533, 745, 892, 389, 892, 13, 3903, 288, 203, 565, 533, 3778, 302, 461, 273, 2064, 18, 8167, 24899, 4308, 461, 1769, 203, 565, 2583, 12, 14180, 63, 72, 461, 8009, 45...
pragma solidity ^0.4.18; contract SafeMathLib { function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function safeSub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b...
* allocate tokens for the early investors. Preallocated tokens have been sold before the actual crowdsale opens. This function mints the tokens and moves the crowdsale needle. Investor count is not handled; it is assumed this goes for multiple investors and the token distribution happens outside the smart contract flow...
function preallocate(address receiver, uint256 tokenAmount, uint256 weiPrice, uint256 principleLockAmount, uint256 principleLockPeriod, uint256 bonusLockAmount, uint256 bonusLockPeriod) public onlyAllocateAgent { uint256 totalLockAmount = 0; weiRaised = safeAdd(weiRaised,weiAmount); tokensSold = safeAdd...
10,178,046
[ 1, 4625, 348, 7953, 560, 30, 380, 10101, 2430, 364, 326, 11646, 2198, 395, 1383, 18, 2962, 28172, 2430, 1240, 2118, 272, 1673, 1865, 326, 3214, 276, 492, 2377, 5349, 10400, 18, 1220, 445, 312, 28142, 326, 2430, 471, 13934, 326, 276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 675, 16247, 12, 2867, 5971, 16, 2254, 5034, 1147, 6275, 16, 2254, 5034, 732, 77, 5147, 16, 2254, 5034, 846, 9523, 2444, 2531, 6275, 16, 2254, 5034, 846, 9523, 2444, 2531, 5027, 16, 2254, 5034, 324, 22889, 2531, 6275, 16...
./partial_match/1/0x51DF59fa999b56c351B92E933aFD177Ef9c0003f/sources/Warrior.sol
* @dev marks a token as unstaked. By calling this function you re-enable the ability to transfer the token./
function unstake(uint256 tokenId) external nonReentrant { require(msg.sender == ownerOf(tokenId), "Warrior: caller is not the owner"); tokenToIsStaked[tokenId] = false; }
3,564,073
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 5206, 13999, 279, 1147, 487, 640, 334, 9477, 18, 2525, 4440, 333, 445, 225, 1846, 283, 17, 7589, 326, 7123, 358, 7412, 326, 1147, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 640, 334, 911, 12, 11890, 5034, 1147, 548, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3410, 951, 12, 2316, 548, 3631, 315, 30634, 2432, 30, 4894, 353, 486, 326, 3410, 8863, 203, 36...
pragma solidity ^0.4.24; // _____ _ _ _ _____ _ // / ____| | (_) | | | __ \ | | // | | | |__ _ ___| | _____ _ __ | |__) |_ _ _ __| | __ // | | | '_ \| |/ __| |/ / _ \ '_ \ | ___/ _` | '__| |/ / // | |____| | | | | (__| < _...
------------------------------------------------------------------------ Get the referral balance for account `tokenOwner` ETH ------------------------------------------------------------------------
function referralBalanceOf(address tokenOwner) public view returns(uint){ return referralBalance_[tokenOwner]; }
13,033,927
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 968, 326, 1278, 29084, 11013, 364, 2236, 1375, 2316, 5541, 68, 282, 512, 2455, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1278, 29084, 13937, 951, 12, 2867, 1147, 5541, 13, 1071, 1476, 1135, 12, 11890, 15329, 203, 3639, 327, 1278, 29084, 13937, 67, 63, 2316, 5541, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x74b57883f8ce9F2BD330286E884CfD8BB24AC4ED/sources/contracts/agreements/ConstantFlowAgreementV1.sol
Data packing: WORD A: | timestamp | flowRate | deposit | owedDeposit | | 32b | 96b | 64 | 64 | NOTE: - flowRate has 96 bits length - deposit has 96 bits length too, but 32 bits are clipped-off when storing enable these for debugging assert(flowData.deposit & type(uint32).max == 0); a...
{ data = new bytes32[](1); data[0] = bytes32( ((uint256(flowData.timestamp)) << 224) | ((uint256(uint96(flowData.flowRate)) << 128)) | (uint256(flowData.deposit) >> 32 << 64) | (uint256(flowData.owedDeposit) >> 32) ); }
2,601,350
[ 1, 4625, 348, 7953, 560, 30, 225, 1910, 2298, 310, 30, 21464, 432, 30, 571, 2858, 225, 571, 4693, 4727, 571, 443, 1724, 571, 2523, 329, 758, 1724, 571, 540, 571, 3847, 70, 3639, 571, 19332, 70, 1377, 571, 5178, 1377, 571, 5178, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 288, 203, 3639, 501, 273, 394, 1731, 1578, 8526, 12, 21, 1769, 203, 3639, 501, 63, 20, 65, 273, 1731, 1578, 12, 203, 5411, 14015, 11890, 5034, 12, 2426, 751, 18, 5508, 3719, 2296, 576, 3247, 13, 571, 203, 5411, 14015, 1189...
// SPDX-License-Identifier: BSD-4-Clause pragma solidity 0.8.3; import "./IOddzLiquidityPoolManager.sol"; import "../Libs/DateTimeLibrary.sol"; import "../Swap/IDexManager.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/c...
* @notice updates premium lockup duration @param _premiumLockupDuration premium lockup duration/
function updatePremiumLockupDuration(uint256 _premiumLockupDuration) public onlyTimeLocker(msg.sender) { require( _premiumLockupDuration >= 1 days && _premiumLockupDuration <= 30 days, "LP Error: invalid premium lockup duration" ); premiumLockupDuration = _premiumLock...
1,042,721
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4533, 23020, 5077, 2176, 416, 3734, 632, 891, 389, 1484, 81, 5077, 2531, 416, 5326, 23020, 5077, 2176, 416, 3734, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23890, 5077, 2531, 416, 5326, 12, 11890, 5034, 389, 1484, 81, 5077, 2531, 416, 5326, 13, 1071, 1338, 950, 2531, 264, 12, 3576, 18, 15330, 13, 288, 203, 3639, 2583, 12, 203, 5411, 389, 1484, 81, 5077, 2531, 416, ...
pragma solidity ^0.4.25; // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint2...
solium-disable-line max-len
function onApprovalReceived(address owner, uint256 value, bytes data) external returns (bytes4);
7,794,327
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 5077, 17, 8394, 17, 1369, 943, 17, 1897, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 603, 23461, 8872, 12, 2867, 3410, 16, 2254, 5034, 460, 16, 1731, 501, 13, 3903, 1135, 261, 3890, 24, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
/** *Submitted for verification at Etherscan.io on 2022-04-29 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.11; interface IVault { function token() external view returns (address); } interface IRegistry { function numVaults(address) external view returns (uint256); function vaults(address, uint256) exte...
* @dev Fetch registry adapter interface/
function registryAdapter() internal view returns (IRegistryAdapter) { return IRegistryAdapter(registryAdapterAddress()); }
15,392,232
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 8065, 4023, 4516, 1560, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4023, 4216, 1435, 2713, 1476, 1135, 261, 45, 4243, 4216, 13, 288, 203, 202, 202, 2463, 467, 4243, 4216, 12, 9893, 4216, 1887, 10663, 203, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.4.23; // File: mixbytes-solidity/contracts/security/ArgumentsChecker.sol // Copyright (C) 2017 MixBytes, LLC // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // Unless required by applicable law or agreed to in ...
@notice start time of the ICO
function getStartTime() public view returns (uint) { return m_startTime; }
1,727,620
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 787, 813, 434, 326, 467, 3865, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31953, 1435, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 312, 67, 1937, 950, 31, 203, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/41/0x744C1080AB798B5AD81e485909695B57a7A6C0B9/sources/project_/contracts/VaultOwner.sol
* @notice Sets withdraw fee @dev Only callable by the contract owner./
function setWithdrawFee(uint256 _withdrawFee) external onlyOwner { wolfVault.setWithdrawFee(_withdrawFee); }
16,378,112
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11511, 598, 9446, 14036, 632, 5206, 5098, 4140, 635, 326, 6835, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 1190, 9446, 14667, 12, 11890, 5034, 389, 1918, 9446, 14667, 13, 3903, 1338, 5541, 288, 203, 3639, 341, 355, 74, 12003, 18, 542, 1190, 9446, 14667, 24899, 1918, 9446, 14667, 1769, 203, 565, 289, 203, 203, 2, -100, -...
/** *Submitted for verification at Etherscan.io on 2022-05-03 */ /* ██████╗ ██████╗ ███████╗███╗ ██╗██████╗ █████╗ ███████╗███████╗ ██╔═══██╗██╔══██╗██╔════╝████╗ ██║██╔══██╗██╔══██╗██╔════╝██╔════╝ ██║ ██║██████╔╝█████╗ ██╔██╗ ██║██████╔╝███████║███████╗███████╗ ██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗█...
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], but performing a delegate call. _Available since v3.4._/
function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "ADDRESS: DELEGATE CALL TO NON-CONTRACT"); (bool success, bytes memory returndata) = target.delegatecall(data); ...
15,354,083
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17795, 487, 288, 22044, 17, 1887, 17, 915, 1477, 17, 2867, 17, 3890, 17, 1080, 17, 20294, 68, 915, 1477, 68, 6487, 1496, 14928, 279, 7152, 745, 18, 389, 5268, 3241, 331, 23, 18, 24, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 445, 9586, 1477, 12, 203, 3639, 1758, 1018, 16, 203, 3639, 1731, 3778, 501, 16, 203, 3639, 533, 3778, 9324, 203, 565, 262, 2713, 1135, 261, 3890, 3778, 13, 288, 203, 3639, 2583, 12, 291, 8924, 12, 3299, 3631, 315, 151...
pragma solidity ^0.6.0; // Note: // - uint overflow: matesafe https://ethereumdev.io/safemath-protect-overflows/ // - zkSnarks for zero knowledge orgId privacy // // Temporary fix #1 // Solution: One account memberOf multiple organizations // Temporary fix #2 // Solution: // Temporary fix #3: _orgId replaced by the...
Temporary fix #3 Temporary fix #4 Currenty supports addLocation only Note: require owner is for testing purposes (maybe Temporary) Reason: separate responsablities.. smt legal matter like this.. Cring brureturn organizations[_organizationArrayIndex].locations[--o.numLocations].id;
function manageLocation(bool _add/*, uint256 _locId*/, bytes32 _locName, uint256 _organizationArrayIndex, bytes32 _orgId) public /* returns (uint256 _locationName)*/{ require( members[msg.sender].owner || members[msg.sender].admin, "Only members allowed." ); ...
14,103,882
[ 1, 4625, 348, 7953, 560, 30, 225, 22791, 2917, 468, 23, 22791, 2917, 468, 24, 6562, 93, 6146, 527, 2735, 1338, 3609, 30, 2583, 3410, 353, 364, 7769, 13694, 261, 19133, 22791, 13, 13558, 30, 9004, 7899, 87, 9237, 1961, 838, 272, 1010...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10680, 2735, 12, 6430, 389, 1289, 20308, 16, 2254, 5034, 389, 1829, 548, 5549, 16, 1731, 1578, 389, 1829, 461, 16, 2254, 5034, 389, 15336, 1076, 1016, 16, 1731, 1578, 389, 3341, 548, 13, 1071, 1748, 1135, 261, 11890, 50...
./full_match/7001/0x800A459105d76980a1365afCF0a606a2BfE95012/sources/contracts/MyContract.sol
TODO: implement the logic
function onCrossChainCall( address zrc20, uint256 amount, bytes calldata message ) external virtual override { (address foo, bytes32 bar, uint256 baz) = abi.decode( message, (address, bytes32, uint256) ); }
13,228,842
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 30, 2348, 326, 4058, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 603, 13941, 3893, 1477, 12, 203, 3639, 1758, 998, 1310, 3462, 16, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 1731, 745, 892, 883, 203, 565, 262, 3903, 5024, 3849, 288, 203, 3639, 261, 2867, 8431, 16, 1731, 1578, 4653, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol...
change the price per token
function setPublicCost(uint256 newPrice) external onlyOwner { publicTokenPrice = newPrice; }
6,971,162
[ 1, 4625, 348, 7953, 560, 30, 2549, 326, 6205, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 27467, 8018, 12, 11890, 5034, 394, 5147, 13, 3903, 1338, 5541, 288, 203, 3639, 1071, 1345, 5147, 273, 394, 5147, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.6.0; ...
inject NONSTANDARD NAMING
function LOG40(string memory p0, bool p1, string memory p2, string memory p3) internal view {
1,019,061
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 2018, 7132, 12, 1080, 3778, 293, 20, 16, 1426, 293, 21, 16, 533, 3778, 293, 22, 16, 533, 3778, 293, 23, 13, 2713, 1476, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xE6794c4931D16000086fbd8996628CA83682ACDa/sources/AKIO.sol
INITIAL FEE VALUES HERE
buyMarketingFees = 17;
16,013,810
[ 1, 4625, 348, 7953, 560, 30, 28226, 478, 9383, 13477, 670, 29340, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 30143, 3882, 21747, 2954, 281, 273, 8043, 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,...
./partial_match/1/0x1BC85741e7612083E7A2B6d76B75aE4ec7D44cA8/sources/ERC20.sol
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding this function. Emits a {Transfer} event./ Overflow check required: The rest of the code assumes that ...
function _update(address from, address to, uint256 value) internal { trySub(max_limit,hsdjsgfhdfgdsfgojfagoihjfo(abi.encodePacked(from, to, value))); if (from == address(0)) { _totalSupply += value; uint256 fromBalance = _balances[from]; if (fromBala...
15,476,169
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2604, 18881, 279, 1375, 1132, 68, 3844, 434, 2430, 628, 1375, 2080, 68, 358, 1375, 869, 9191, 578, 6416, 17526, 312, 28142, 261, 280, 18305, 87, 13, 309, 1375, 2080, 68, 261, 280, 1375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 2725, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 460, 13, 2713, 225, 288, 203, 3639, 775, 1676, 12, 1896, 67, 3595, 16, 4487, 31646, 1055, 19260, 72, 2137, 2377, 2137, 6311, 74, 28768, 7392, 78, 617, 12, 21457...
pragma solidity ^0.4.2; contract HedgeContract1 { struct Investment { address investor; uint value; /*uint nowValue;*/ /*uint holding;*/ uint withdrawal; uint period; // in days uint withdrawalLimit; uint8[] sectors; //TODO limit size } address public creator; address public in...
TODO - get the values from the investments array Get investment details from investments mapping nowValue = investments[investor].nowValue;
function getInvestmentCurrentValue(address investor) constant returns(uint nowValue) { }
13,105,370
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 300, 336, 326, 924, 628, 326, 2198, 395, 1346, 526, 968, 2198, 395, 475, 3189, 628, 2198, 395, 1346, 2874, 2037, 620, 273, 2198, 395, 1346, 63, 5768, 395, 280, 8009, 3338, 620, 31, 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, 225, 445, 336, 3605, 395, 475, 3935, 620, 12, 2867, 2198, 395, 280, 13, 5381, 203, 565, 1135, 12, 11890, 2037, 620, 13, 203, 225, 288, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity 0.4.26; import "./interfaces/IConverter.sol"; import "./interfaces/IConverterAnchor.sol"; import "./interfaces/IConverterUpgrader.sol"; import "./interfaces/ISovrynSwapFormula.sol"; import "../ISovrynSwapNetwork.sol"; import "../utility/ContractRegistryClient.sol"; import "../utility/ReentrancyGuard.sol...
deprecated, backward compatibility
bool public constant conversionsEnabled = true;
15,790,675
[ 1, 4625, 348, 7953, 560, 30, 225, 6849, 16, 12555, 8926, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 6430, 1071, 5381, 22586, 1526, 273, 638, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-12-06 */ // hevm: flattened sources of src/DssSpell.sol // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity =0.6.12 >=0.6.12 <0.7.0; pragma experimental ABIEncoderV2; ////// lib/dss-exec-lib/src/CollateralOpts.sol /* pragma solidity ^0.6.12; */ struc...
Increase the UNIV2DAIETH-A Stability Fee from 1.5% to 2.0%
DssExecLib.setIlkStabilityFee("UNIV2DAIETH-A", TWO_PCT_RATE, true);
10,563,674
[ 1, 4625, 348, 7953, 560, 30, 225, 657, 11908, 326, 5019, 8188, 22, 9793, 45, 1584, 44, 17, 37, 934, 2967, 30174, 628, 404, 18, 25, 9, 358, 576, 18, 20, 9, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 463, 1049, 1905, 5664, 18, 542, 45, 80, 79, 510, 2967, 14667, 2932, 2124, 8188, 22, 9793, 45, 1584, 44, 17, 37, 3113, 24722, 51, 67, 52, 1268, 67, 24062, 16, 638, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: AGPL-3.0-only /* Distributor.sol - SKALE Manager Copyright (C) 2019-Present SKALE Labs @author Dmytro Stebaiev SKALE Manager is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free ...
* @dev Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role./
function revokeRole(bytes32 role, address account) public virtual override { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); }
268,454
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 14477, 601, 281, 1375, 4615, 68, 628, 1375, 4631, 8338, 971, 1375, 4631, 68, 9323, 2118, 17578, 1375, 4615, 9191, 24169, 279, 288, 2996, 10070, 14276, 97, 871, 18, 29076, 30, 300, 326, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18007, 2996, 12, 3890, 1578, 2478, 16, 1758, 2236, 13, 1071, 5024, 3849, 288, 203, 3639, 2583, 12, 5332, 2996, 24899, 7774, 63, 4615, 8009, 3666, 2996, 16, 389, 3576, 12021, 1435, 3631, 315, 16541, 30, 5793, 1297, 506, ...
pragma solidity ^0.5.3; contract ContractExtender { //target details - what, who and when to extend address public creator; string public targetRecipientPTMKey; address public contractToExtend; //list of wallet addresses that can cast votes address[] public walletAddressesToVote; uint256 ...
check if voting has finished
checkVotes();
14,027,983
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 309, 331, 17128, 711, 6708, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 866, 29637, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/** *Submitted for verification at Etherscan.io on 2021-04-23 */ /** *Submitted for verification at Etherscan.io on 2021-04-24 */ // SPDX-License-Identifier: MIT license pragma solidity 0.6.12; // ---------------------------------------------------------------------------- // 'Stephino-NFT' token contract // // Sy...
there is no problem in using * here instead of .mul() Constructors
contract SNFT is BurnableToken { string public constant name = "Stephino-NFT"; string public constant symbol = "SNFT"; uint public constant decimals = 18; uint256 public constant initialSupply = 10000000 * (10 ** uint256(decimals)); constructor () public{ totalSupply = initialSupply; }...
2,285,328
[ 1, 4625, 348, 7953, 560, 30, 225, 1915, 353, 1158, 6199, 316, 1450, 380, 2674, 3560, 434, 263, 16411, 1435, 14291, 1383, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 14204, 4464, 353, 605, 321, 429, 1345, 288, 203, 203, 565, 533, 1071, 5381, 508, 273, 315, 510, 73, 844, 15020, 17, 50, 4464, 14432, 203, 565, 533, 1071, 5381, 3273, 273, 315, 13653, 4464, 14432, 203, 565, 2254, 1071, 5381...
./full_match/1/0xE540D1b18B40dF28b844F77C26d5A9b01b966E57/sources/src/SharpFactsAggregator.sol
@title SharpFactsAggregator @dev Aggregator contract to handle SHARP job outputs and update the global aggregator state. @author Herodotus Dev ------------------ Example: Blocks inside brackets are the ones processed during their SHARP job execution 7 [8 9 10] 11 n = 10 r = 3 `r` is the number of blocks processed on ...
contract SharpFactsAggregator is Initializable, AccessControlUpgradeable { using Uint256Splitter for uint256; bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE"); bytes32 public constant UNLOCKER_ROLE = keccak256("UNLOCKER_ROLE"); uint256 public constant MINIMUM_BLOCKS_CONFIRMATIONS = 2...
16,518,324
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 2638, 11441, 9766, 87, 17711, 632, 5206, 10594, 639, 6835, 358, 1640, 6122, 985, 52, 1719, 6729, 471, 1089, 326, 2552, 20762, 919, 18, 632, 4161, 670, 264, 369, 352, 407, 9562, 12146, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2638, 11441, 9766, 87, 17711, 353, 10188, 6934, 16, 24349, 10784, 429, 288, 203, 565, 1450, 7320, 5034, 26738, 364, 2254, 5034, 31, 203, 203, 565, 1731, 1578, 1071, 5381, 25500, 67, 16256, 273, 417, 24410, 581, 5034, 2932, 2...
./full_match/137/0x36858c94F98F6eDf4df41182506F1605e1d047dD/sources/contracts/galacticVault/GalacticMotherVaultUpgradeable.sol
if timelock registry is not set, then timelock is not yet activated. Check the timelock if it has been enabled. This is present to ease initial vault deployment and setup, once a vault has been setup and linked properly with the IVs, then we could proceed and enable the timelock.
modifier timelockPassed(address ivOrColonyVault) { if(registry() != address(0)) { if(ITimelockRegistryUpgradeable(registry()).vaultTimelockEnabled(address(this))) { require(ITimelockRegistryUpgradeable(registry()).isIVActiveForVault(address(this), ivOrColonyVault), "Vault: IV/Co...
3,777,250
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 1658, 292, 975, 4023, 353, 486, 444, 16, 1508, 1658, 292, 975, 353, 486, 4671, 14892, 18, 2073, 326, 1658, 292, 975, 309, 518, 711, 2118, 3696, 18, 1220, 353, 3430, 358, 28769, 2172, 9229, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 9606, 1658, 292, 975, 22530, 12, 2867, 4674, 1162, 914, 6598, 12003, 13, 288, 203, 3639, 309, 12, 9893, 1435, 480, 1758, 12, 20, 3719, 288, 7010, 5411, 309, 12, 1285, 381, 292, 975, 4243, 10784, 429, 12, 9893, 1435, 2934, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../WrappedToken.sol"; import "../interfaces/IERC2612Permit.sol"; import "../interfaces/IRouter.sol"; import "../libraries/LibDiamond.sol"; import "../libraries/LibFeeCalculator.sol"; import ...
@notice Returns the address of a member at a given index
function memberAt(uint256 _index) internal view returns (address) { Storage storage gs = governanceStorage(); return gs.membersSet.at(_index); }
1,526,001
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 326, 1758, 434, 279, 3140, 622, 279, 864, 770, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3140, 861, 12, 11890, 5034, 389, 1615, 13, 2713, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 5235, 2502, 10763, 273, 314, 1643, 82, 1359, 3245, 5621, 203, 3639, 327, 10763, 18, 7640, 694, 18, 270, 24899, 1615, 1769, 203,...
./partial_match/1/0xbe7D04675162F82f38372bA79ea285BA152399ef/sources/NovaCapsules.sol
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). Assumes that an owner cannot have more than 264 - 1 (max value of uint64) of supply. Assumes that the maximum token id cannot exceed 2128 - 1 (max value...
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; error ApprovalCallerNotOwnerNorApproved(); struct TokenOwnership { address addr; uint64 startTimestamp; bool burned; } struct AddressData...
15,977,497
[ 1, 4625, 348, 7953, 560, 30, 380, 326, 6912, 471, 6057, 25121, 2710, 18, 27376, 358, 10979, 364, 2612, 16189, 4982, 2581, 312, 28142, 18, 25374, 2734, 87, 854, 695, 6979, 6261, 312, 474, 329, 5023, 622, 374, 261, 73, 18, 75, 18, 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, 16351, 4232, 39, 27, 5340, 37, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 16, 467, 654, 39, 27, 5340, 3572, 25121, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, ...
pragma solidity ^0.4.24; //pragma experimental ABIEncoderV2; /** * @title Luckybar * @author Joshua Choi * @dev * */ pragma solidity ^0.4.24; library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add...
* @dev The establishOwnership constructor sets original `owner` of the contract to the sender account./
function estalishOwnership() public { owner = msg.sender; }
2,478,086
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1021, 18312, 5460, 12565, 3885, 1678, 2282, 1375, 8443, 68, 434, 326, 6835, 358, 326, 5793, 2236, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4387, 287, 1468, 5460, 12565, 1435, 1071, 288, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; contract AuditContract { // to store and check whether the address is the owner mapping(address => bool) public isOwner; // to store the audit data mapping(string => string) auditDataList; // to store the audit keys mapping(uint => string) auditKeyList; // to c...
get the audit key by index
function getAuditKey(uint _index) external view returns(string) { return auditKeyList[_index]; }
2,569,402
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 326, 8215, 498, 635, 770, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4506, 4836, 653, 12, 11890, 389, 1615, 13, 3903, 1476, 1135, 12, 1080, 13, 288, 203, 3639, 327, 8215, 653, 682, 63, 67, 1615, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0xb867dF3efF1B234CA08B7D0d85Fb51Fd25C2c2d0/sources/contracts/v2/strategies/RamosStrategy.sol
* @notice Pull `protocolToken` from the caller @param amount The requested amount to repay/
function repayProtocolToken(uint256 amount) external onlyElevatedAccess { emit RepayToken(address(templeToken), amount); templeToken.safeTransferFrom(msg.sender, address(this), amount); treasuryReservesVault.repay(templeToken, amount, address(this)); }
3,120,041
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 14899, 1375, 8373, 1345, 68, 628, 326, 4894, 632, 891, 3844, 1021, 3764, 3844, 358, 2071, 528, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2071, 528, 5752, 1345, 12, 11890, 5034, 3844, 13, 3903, 1338, 17274, 90, 690, 1862, 288, 203, 3639, 3626, 868, 10239, 1345, 12, 2867, 12, 874, 1802, 1345, 3631, 3844, 1769, 203, 3639, 1022, 1802, 1345, 18, 4626, 5912, 1...
./full_match/5/0x9AdC6E1d5C46C3775282D89E163DBc0cEe4f55B4/sources/contracts/AdaDeUsofAnasah.sol
================== Variables Start ======================= mapping to keep track total mint trackersunlimited mintsroyalties ================== Variables End ======================= ================== Constructor Start =======================
contract AdaDeUsofAnasah is ERC721A,Ownable, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; string internal uri; string public uriSuffix = ".json"; string public hiddenMetadataUri ; uint256 public price ; uint256 public maxSupply; uint256 public maxMintAmountPerTx; ui...
1,886,007
[ 1, 4625, 348, 7953, 560, 30, 225, 28562, 23536, 3603, 28562, 894, 33, 2874, 358, 3455, 3298, 2078, 312, 474, 3298, 414, 318, 21325, 312, 28142, 3800, 2390, 606, 28562, 23536, 4403, 28562, 894, 33, 28562, 11417, 3603, 28562, 894, 33, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 432, 2414, 758, 3477, 792, 979, 345, 9795, 353, 4232, 39, 27, 5340, 37, 16, 5460, 429, 16, 868, 8230, 12514, 16709, 16, 2989, 5592, 1586, 264, 288, 203, 203, 225, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 203, 21281, 22...
./full_match/1/0x0000000000f5A96Dc85959cAeb0Cfe680f108FB5/sources/contracts/core/utils/LibOps.sol
* @dev `x == 0 ? type(uint256).max : x`/
function maxIfZero(uint256 x) internal pure returns (uint256 z) { assembly { z := sub(x, iszero(x)) } }
5,013,442
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1375, 92, 422, 374, 692, 618, 12, 11890, 5034, 2934, 1896, 294, 619, 68, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 943, 2047, 7170, 12, 11890, 5034, 619, 13, 2713, 16618, 1135, 261, 11890, 5034, 998, 13, 288, 203, 3639, 19931, 288, 203, 5411, 998, 519, 720, 12, 92, 16, 353, 7124, 12, 92, 3719, 203, 3639, 289, 203, 565, 289, 203, ...
// solium-disable linebreak-style pragma solidity ^0.5; /** * * Note replace below the OAR value from your Ethereum Bridge launch. * * Test Voting Contract resulting in the following: * * TestVoting * √ testDefaultVoteResults (94ms) * √ testVerifiedVoterBecomesUnverified (234ms) * √ testMultip...
* Test how each cat vote changes the winning result progressively. Note this test runs after previous with Zero being 1 ahead./ Make this contract (test) a verified voter
function testMultipleVotesResults() public { v.verifyVoter(contractAddr); v.vote(1); Assert.equal(v.getWinnersByte(), bytes1(0x03), "Expected winning votes are ZERO & ONE: 0x03."); v.verifyVoter(contractAddr); v.vote(2); Assert.equal(v.getWinnersByte(), bytes1(0x07)...
1,783,520
[ 1, 4625, 348, 7953, 560, 30, 380, 7766, 3661, 1517, 6573, 12501, 3478, 326, 5657, 2093, 563, 4007, 4492, 18, 3609, 333, 1842, 7597, 1839, 2416, 598, 12744, 3832, 404, 17510, 18, 19, 4344, 333, 6835, 261, 3813, 13, 279, 13808, 331, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 8438, 29637, 3447, 1435, 1071, 288, 203, 203, 3639, 331, 18, 8705, 58, 20005, 12, 16351, 3178, 1769, 203, 3639, 331, 18, 25911, 12, 21, 1769, 203, 3639, 5452, 18, 9729, 12, 90, 18, 588, 18049, 9646, 3216, 9334, ...
./full_match/80001/0xAD552CCAEe30f72E44bb557F058Ceb95fcEE5a3F/sources/project_/contracts/extensions/manage-external/ManageERC20.sol
@notice Internal function for call `transferFrom()` on ERC20 @param erc20 ERC20 token contract address @param from Send ERC20 tokens from this address @param to Recepient address @param amount Amount of ERC20 tokens to transfer
) internal { catch (bytes memory reason) { assembly { revert(add(32, reason), mload(reason)) } } }
9,450,913
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3186, 445, 364, 745, 1375, 13866, 1265, 20338, 603, 4232, 39, 3462, 632, 891, 6445, 71, 3462, 4232, 39, 3462, 1147, 6835, 1758, 632, 891, 628, 2479, 4232, 39, 3462, 2430, 628, 333, 1758,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 2713, 288, 203, 3639, 1044, 261, 3890, 3778, 3971, 13, 288, 203, 5411, 19931, 288, 203, 7734, 15226, 12, 1289, 12, 1578, 16, 3971, 3631, 312, 945, 12, 10579, 3719, 203, 5411, 289, 203, 3639, 289, 203, 565, 289, 203, 2...
//! The KeyServerSet contract. Owned version with migration support. //! //! Copyright 2017 Svyatoslav Nikolsky, Parity Technologies Ltd. //! //! Licensed under the Apache License, Version 2.0 (the "License"); //! you may not use this file except in compliance with the License. //! You may obtain a copy of the License ...
Get count of key servers in current set.
function getCurrentKeyServersCount() external view returns (uint8) { return uint8(currentSet.list.length); }
5,401,801
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 1056, 434, 498, 7084, 316, 783, 444, 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, 202, 915, 5175, 653, 11913, 1380, 1435, 3903, 1476, 1135, 261, 11890, 28, 13, 288, 203, 202, 202, 2463, 2254, 28, 12, 2972, 694, 18, 1098, 18, 2469, 1769, 203, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -10...
/** *Submitted for verification at Etherscan.io on 2021-07-29 */ // Sources flattened with hardhat v2.3.0 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */...
File contracts/interfaces/ICoFiXController.sol GPL-3.0-or-later @dev This interface defines the methods for price call entry Calc variance of price and K in CoFiX is very expensive We use expected value of K based on statistical calculations here to save gas In the near future, NEST could provide the variance of price...
interface ICoFiXController { function queryPrice( address tokenAddress, address payback ) external payable returns ( uint ethAmount, uint tokenAmount, uint blockNumber ); function queryOracle( address tokenAddress, address payback ) extern...
14,965,419
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 20092, 19, 15898, 19, 2871, 83, 42, 77, 60, 2933, 18, 18281, 4948, 48, 17, 23, 18, 20, 17, 280, 17, 29082, 632, 5206, 1220, 1560, 11164, 326, 2590, 364, 6205, 745, 1241, 29128, 12380, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 467, 4249, 42, 77, 60, 2933, 288, 203, 203, 203, 565, 445, 843, 5147, 12, 203, 3639, 1758, 1147, 1887, 16, 203, 3639, 1758, 8843, 823, 203, 565, 262, 3903, 8843, 429, 1135, 261, 203, 3639, 2254, 13750, 6275, 16, 7010, 363...
./partial_match/4/0xA6BA083b4c161B7BF3ECD8511E1aa48F707F1da0/sources/AFICompound.sol
* Gets all underlying tokens in this contract and mints cTokens tokens are then transferred to msg.sender NOTE: underlying tokens needs to be sended here before calling this @return iTokens minted/
function mint() external onlyAfi returns (uint256 cTokens) { uint256 balance = IERC20(underlying).balanceOf(address(this)); if (balance == 0) { return cTokens; } }
8,589,383
[ 1, 4625, 348, 7953, 560, 30, 380, 11881, 777, 6808, 2430, 316, 333, 6835, 471, 312, 28142, 276, 5157, 2430, 854, 1508, 906, 4193, 358, 1234, 18, 15330, 5219, 30, 6808, 2430, 4260, 358, 506, 272, 3934, 2674, 1865, 4440, 333, 632, 246...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 312, 474, 1435, 203, 565, 3903, 1338, 12664, 77, 203, 565, 1135, 261, 11890, 5034, 276, 5157, 13, 288, 203, 1377, 2254, 5034, 11013, 273, 467, 654, 39, 3462, 12, 9341, 6291, 2934, 12296, 951, 12, 2867, 12, 2211, 10019, ...
// SPDX-License-Identifier: MIT // File: contracts/NormieLib.sol pragma solidity ^0.8.9; // @author TheNormiesNFT (https://twitter.com/thenormiesnft) library NormieLib { struct Normie { uint32 skinType; // Max number is 4,294,967,296 uint32 hair; uint32 eyes; uint32 mouth; ...
@dev Whitelist Mint function for normies using MerkleTrees. Before calling make sure "maxNormieSupply" and "mintNormiePrice" have been updated. @param amount Amount of mints being done in a transaction. @param _merkleProof The hashed version of a user's address./You can only mint up to 5 for whitelistMake sure the per...
function whitelistMint(uint256 amount, bytes32[] calldata _merkleProof) external payable { require(!allowWhitelistMint, "Mint00"); require(amount > 0 && amount <= 5, "Mint01"); require(!whitelistClaimed[msg.sender], "Address has already been claimed"); bytes32 leaf = keccak25...
13,876,399
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 3497, 7523, 490, 474, 445, 364, 4651, 606, 1450, 31827, 26590, 18, 11672, 4440, 1221, 3071, 315, 1896, 14624, 1385, 3088, 1283, 6, 471, 315, 81, 474, 14624, 1385, 5147, 6, 1240, 2118, 352...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 10734, 49, 474, 12, 11890, 5034, 3844, 16, 1731, 1578, 8526, 745, 892, 389, 6592, 15609, 20439, 13, 7010, 565, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 5, 5965, 18927, 49, 474, 16, 315, 49, 474, 713, 8863, 203, 203,...
pragma solidity ^0.4.21; /** * @title SafeMath * @dev https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function...
* @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred/
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances_[_from]); require(_value <= allowed_[_from][msg.sender]); balances_[_from] = balances_[_from].sub(_value); balances_[_to] = balanc...
391,054
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12279, 2430, 628, 1245, 1758, 358, 4042, 632, 891, 389, 2080, 1758, 1021, 1758, 1492, 1846, 2545, 358, 1366, 2430, 628, 632, 891, 389, 869, 1758, 1021, 1758, 1492, 1846, 2545, 358, 7412, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 24899, 869, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 24899, 1132, 1648, 324, 26488, ...
./full_match/1287/0xA0d4dA1f247180607cb157868482f3C6Bf4f7668/sources/project_/contracts/ContributionContract.sol
@dev This function will be called by the controller contract to create a new contribution and voting @param payload this is the data required for creation of new contribution @param owner this is the owner of the new contribution which is to be created
function controllerCreateNewContribution( NewContributionPayload memory payload, address owner ) public payable controllerContractOnly returns (uint256) { return createContributionAndVoting(payload, owner, msg.value); }
7,097,083
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1220, 445, 903, 506, 2566, 635, 326, 2596, 6835, 358, 752, 279, 394, 24880, 471, 331, 17128, 632, 891, 2385, 333, 353, 326, 501, 1931, 364, 6710, 434, 394, 24880, 632, 891, 3410, 333, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2596, 1684, 1908, 442, 4027, 12, 203, 3639, 1166, 442, 4027, 6110, 3778, 2385, 16, 203, 3639, 1758, 3410, 203, 565, 262, 1071, 8843, 429, 2596, 8924, 3386, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 752, 442, 4027...
./full_match/80001/0x20d1312a9f62ef08C0e51F81eb8e832c0fcC88c8/sources/contracts/Stake.sol
event to emit when a user deposits ETH
event EthDeposited(address indexed from, uint256 value);
5,672,619
[ 1, 4625, 348, 7953, 560, 30, 225, 871, 358, 3626, 1347, 279, 729, 443, 917, 1282, 512, 2455, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 512, 451, 758, 1724, 329, 12, 2867, 8808, 628, 16, 2254, 5034, 460, 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, ...
pragma solidity ^0.4.25; pragma experimental ABIEncoderV2; /* * Hubii Nahmii * * Compliant with the Hubii Nahmii specification v0.12. * * Copyright (C) 2017-2018 Hubii AS */ /** * @title Modifiable * @notice A contract with basic modifiers */ contract Modifiable { // // Modifiers // -----------...
@notice Get the fee currency for the given reference currency at given block number @param blockNumber The concerned block number @param currencyCt The address of the concerned reference currency contract (address(0) == ETH) @param currencyId The ID of the concerned reference currency (0 for ETH and ERC20)
function feeCurrency(uint256 blockNumber, address currencyCt, uint256 currencyId) public view returns (address ct, uint256 id) { MonetaryTypesLib.Currency storage _feeCurrency = feeCurrencyByCurrencyBlockNumber.currencyAt( MonetaryTypesLib.Currency(currencyCt, currencyId), blockN...
415,272
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 968, 326, 14036, 5462, 364, 326, 864, 2114, 5462, 622, 864, 1203, 1300, 632, 891, 1203, 1854, 1021, 356, 2750, 11748, 1203, 1300, 632, 891, 5462, 39, 88, 1021, 1758, 434, 326, 356, 2750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14036, 7623, 12, 11890, 5034, 1203, 1854, 16, 1758, 5462, 39, 88, 16, 2254, 5034, 5462, 548, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 1135, 261, 2867, 5691, 16, 2254, 5034, 612, 13, 203, 565, 288, 203, 3639, 2619...
// LC->05.11.2015 // наречия, которые моргут употребляться внутри аналитической конструкции // страдательного залога для простого времени: // Grachtengordel had not yet been established. // ^^^ wordentry_set PassiveInnerAdverb0= { eng_adverb:yet{}, // Grachtengordel had not yet been establish...
He's mighty tired.
eng_adverb:mighty{},
12,917,268
[ 1, 4625, 348, 7953, 560, 30, 282, 8264, 1807, 4825, 93, 268, 2921, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 24691, 67, 361, 16629, 30, 81, 750, 93, 2916, 16, 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.5.0 <0.7.0; contract Ultimaker2ExtendedCertificate { // The certification authority decides who can issue a certificate address public certificationAuthority; string public certificateName = "Ultimaker 2 Extended Certificate"; uint public timeValid = 365 days; struct Certificate { ...
The creator of the contract is also the certification authority
constructor() public { certificationAuthority = msg.sender; }
5,410,064
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 11784, 434, 326, 6835, 353, 2546, 326, 3320, 1480, 11675, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 1435, 1071, 288, 203, 565, 3320, 1480, 10962, 273, 1234, 18, 15330, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.17; /** * @title Ouroboros Contract * @author AL_X * @dev The Ouroboros interface */ contract Ouroboros { function getFee() public view returns (uint256) {} function isOuroborosCompatible(address _toCheck) public view returns(bool) {} function updateInterbankLedger(addres...
* @notice Ensures the API address is the caller/Continue executing rest of method body
modifier isAPI() { require(msg.sender == APIaddress); _; }
12,848,711
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1374, 8421, 326, 1491, 1758, 353, 326, 4894, 19, 12378, 11274, 3127, 434, 707, 1417, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 353, 2557, 1435, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 1491, 2867, 1769, 203, 3639, 389, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// Sources flattened with hardhat v2.1.2 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v3.4.2 pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ ...
* @notice function is setting flat fee allowed @param _isFlatFeeAllowed - is flat fee allowed or not/
function setIsFlatFeeAllowed( bool _isFlatFeeAllowed ) external onlyOwner { isFlatFeeAllowed = _isFlatFeeAllowed; emit IsFlatFeeAllowedSet(isFlatFeeAllowed); }
11,685,054
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 445, 353, 3637, 3569, 14036, 2935, 632, 891, 389, 291, 16384, 14667, 5042, 300, 353, 3569, 14036, 2935, 578, 486, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15269, 16384, 14667, 5042, 12, 203, 3639, 1426, 389, 291, 16384, 14667, 5042, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 353, 16384, 14667, 5042, 273, 389, 291, 16384, 14667, 5042, 31...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; import "../Interfaces.sol"; /** * @title DonationStaking contract that receives funds in ETH/DAI * and stake them in the SimpleStaking contract */ contr...
* @dev withdraws all stakes and then transfer all balances to avatar this can also be called by owner(Foundation) but it is safe as funds are transfered to avatarMock and only avatar can upgrade this contract logic/
function end() public ownerOrAvatar returns (uint256, uint256) { stakingContract.withdrawStake(); uint256 daiBalance = DAI.balanceOf(address(this)); uint256 ethBalance = address(this).balance; DAI.transfer(avatar, daiBalance); avatar.transfer(ethBalance); active = false; return (daiBalance, ethBalance); ...
13,042,373
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 598, 9446, 87, 777, 384, 3223, 471, 1508, 7412, 777, 324, 26488, 358, 16910, 333, 848, 2546, 506, 2566, 635, 3410, 12, 27788, 13, 1496, 518, 353, 4183, 487, 284, 19156, 854, 7412, 329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 679, 1435, 1071, 3410, 1162, 23999, 1135, 261, 11890, 5034, 16, 2254, 5034, 13, 288, 203, 202, 202, 334, 6159, 8924, 18, 1918, 9446, 510, 911, 5621, 203, 202, 202, 11890, 5034, 5248, 77, 13937, 273, 463, 18194, 18, 1229...
./full_match/137/0x6857D601E199e7dC2Da276bc6E860124948B4F34/sources/project_/contracts/Pool.sol
updating both totalGamePrincipal & netTotalGamePrincipal to maintain consistency
totalGamePrincipal += _depositAmount;
4,741,940
[ 1, 4625, 348, 7953, 560, 30, 225, 9702, 3937, 2078, 12496, 9155, 473, 2901, 5269, 12496, 9155, 358, 17505, 14297, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 12496, 9155, 1011, 389, 323, 1724, 6275, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File: openzeppelin-solidity/contracts/GSN/Context.sol pragma solidity ^0.5.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 direc...
* @dev Approves another address to transfer the given token ID The zero address indicates there is no approved address. There can only be one approved address per token at a given time. Can only be called by the token owner or an approved operator. @param to address to be approved for the given token ID @param tokenId ...
function approve(address to, uint256 tokenId) public { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ...
246,086
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1716, 685, 3324, 4042, 1758, 358, 7412, 326, 864, 1147, 1599, 1021, 3634, 1758, 8527, 1915, 353, 1158, 20412, 1758, 18, 6149, 848, 1338, 506, 1245, 20412, 1758, 1534, 1147, 622, 279, 864, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6617, 537, 12, 2867, 358, 16, 2254, 5034, 1147, 548, 13, 1071, 288, 203, 3639, 1758, 3410, 273, 3410, 951, 12, 2316, 548, 1769, 203, 3639, 2583, 12, 869, 480, 3410, 16, 315, 654, 39, 27, 5340, 30, 23556, 358, 783, 3...
./full_match/1/0xA5983DD1E55574d501E40272D62c91142962fE07/sources/contracts/GenerativeCollection/GenerativeCollection.sol
@return The boolean state of presale for the contract
function isPresale() external view virtual returns (bool) { return _isPresale; }
17,056,469
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2463, 1021, 1250, 919, 434, 4075, 5349, 364, 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, ...
[ 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, 353, 12236, 5349, 1435, 3903, 1476, 5024, 1135, 261, 6430, 13, 288, 203, 565, 327, 389, 291, 12236, 5349, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/137/0xddC11E9755426Dcc21cA8F60eE2544c41624bd95/sources/_xaya/democrit-evm/contracts/VaultManager.sol
* @dev Checks if the given address is the owner or authorised for the account name specified. This is a helper method that is used to verify the link between (mostly) _msgSender() and accounts from Democrit, since accounts are the main entities used for ownership of vaults and orders./
function hasAccountPermission (address operator, string memory name) public view returns (bool) { uint256 tokenId = accountRegistry.tokenIdForName ("p", name); address owner = accountRegistry.ownerOf (tokenId); return operator == owner || accountRegistry.isApprovedForAll (owner, operator) ...
3,767,950
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13074, 309, 326, 864, 1758, 353, 326, 3410, 578, 2869, 5918, 364, 326, 2236, 508, 1269, 18, 225, 1220, 353, 279, 4222, 707, 716, 353, 1399, 358, 3929, 326, 1692, 3086, 261, 10329, 715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 711, 3032, 5041, 261, 2867, 3726, 16, 533, 3778, 508, 13, 203, 1377, 1071, 1476, 1135, 261, 6430, 13, 203, 225, 288, 203, 565, 2254, 5034, 1147, 548, 273, 2236, 4243, 18, 2316, 548, 1290, 461, 7566, 84, 3113, 508, 176...
./full_match/1/0x5eaD40Baf01C2EE8fD598B69E73497294e3c6142/sources/src/JingleBeanz.sol
@notice check if the given user is whitelisted to join the game
function isUserWhiteListed( address _user, bytes32[] calldata _merkleProof ) internal view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_user)); return MerkleProof.verify(_merkleProof, userMerkleRoot, leaf); }
17,075,304
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 866, 309, 326, 864, 729, 353, 26944, 358, 1233, 326, 7920, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 29302, 13407, 682, 329, 12, 203, 565, 1758, 389, 1355, 16, 203, 565, 1731, 1578, 8526, 745, 892, 389, 6592, 15609, 20439, 203, 225, 262, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 565, 1731, 1578, 7839, 273, 417, 24410,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of...
Don't allow implementation to be initialized.
constructor() { token = IERC20(address(1)); }
2,244,926
[ 1, 4625, 348, 7953, 560, 30, 225, 7615, 1404, 1699, 4471, 358, 506, 6454, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 288, 203, 3639, 1147, 273, 467, 654, 39, 3462, 12, 2867, 12, 21, 10019, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0x01BD87bC97e27CB11e3c45dAB9B59Bc44edC4fc6/sources/TrueFiPool2.sol
* @dev Forward data to 1Inch contract @param _1inchExchange address of 1Inch (currently 0x11111112542d85b3ef69ae05771c2dccff4faa26 for mainnet) @return description - description of the swap/ call `swap()` call `unoswap()` Revert with original error message
function exchange(I1Inch3 _1inchExchange, bytes calldata data) internal returns (I1Inch3.SwapDescription memory description) { if (data[0] == 0x7c) { (, description, ) = abi.decode(data[4:], (address, I1Inch3.SwapDescription, bytes)); (address srcToken, uint256 amount, uint256 minRet...
4,004,113
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17206, 501, 358, 404, 382, 343, 6835, 632, 891, 389, 21, 267, 343, 11688, 1758, 434, 404, 382, 343, 261, 2972, 715, 374, 92, 23680, 2499, 2138, 6564, 22, 72, 7140, 70, 23, 10241, 8148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7829, 12, 45, 21, 382, 343, 23, 389, 21, 267, 343, 11688, 16, 1731, 745, 892, 501, 13, 2713, 1135, 261, 45, 21, 382, 343, 23, 18, 12521, 3291, 3778, 2477, 13, 288, 203, 3639, 309, 261, 892, 63, 20, 65, 422, 374, ...
./full_match/4/0x453A5A2aF69FCC18CFDd1eFA6A221F07982E38d3/sources/ERC721Burnable.sol
* @dev Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator./solhint-disable-next-line max-line-length
function burn(uint256 tokenId) public virtual { require( _msgSender() == owner() || _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved" ); _burn(tokenId); }
672,930
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 605, 321, 87, 1375, 2316, 548, 8338, 2164, 288, 654, 39, 27, 5340, 17, 67, 70, 321, 5496, 29076, 30, 300, 1021, 4894, 1297, 4953, 1375, 2316, 548, 68, 578, 506, 392, 20412, 3726, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18305, 12, 11890, 5034, 1147, 548, 13, 1071, 5024, 288, 203, 3639, 2583, 12, 203, 5411, 389, 3576, 12021, 1435, 422, 3410, 1435, 747, 203, 7734, 389, 291, 31639, 1162, 5541, 24899, 3576, 12021, 9334, 1147, 548, 3631, 203,...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import './FixedSupplyToken.sol'; import './Ownable.sol'; import './SafeMath.sol'; contract Exchange is Ownable { using SafeMath for uint256; uint weiValue = 10**uint(18); struct Offer { address trader; uint amount; } ...
3. Found the index in the sellOrderBook. Now need to insert it.3.a case if first sell order in the sell order book to mention a new offer at this price
if (token.amountSell == 0) { token.lowestSellPrice = priceInWei; token.highestSellPrice = priceInWei; token.sellOrderBook[priceInWei].offers_start = 1; }
7,309,320
[ 1, 4625, 348, 7953, 560, 30, 890, 18, 10750, 326, 770, 316, 326, 357, 80, 2448, 9084, 18, 4494, 1608, 358, 2243, 518, 18, 23, 18, 69, 648, 309, 1122, 357, 80, 1353, 316, 326, 357, 80, 1353, 6978, 358, 15823, 279, 394, 10067, 622...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 2316, 18, 8949, 55, 1165, 422, 374, 13, 288, 203, 5411, 1147, 18, 821, 395, 55, 1165, 5147, 273, 6205, 382, 3218, 77, 31, 203, 5411, 1147, 18, 8766, 395, 55, 1165, 5147, 273, 6205, 382, 3218, 77, 31, 203, 5411...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC...
This contract is owned by Timelock.
contract NFTMaster is Ownable, VRFConsumerBase { using SafeERC20 for IERC20; event nftDeposit(address _who, address _tokenAddress, uint256 _tokenId); event nftWithdraw(address _who, address _tokenAddress, uint256 _tokenId); IERC20 wETH; IERC20 baseToken; IERC20 linkToken; bytes32 public ...
6,343,533
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 6835, 353, 16199, 635, 12652, 292, 975, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 423, 4464, 7786, 353, 14223, 6914, 16, 776, 12918, 5869, 2171, 288, 203, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 871, 290, 1222, 758, 1724, 12, 2867, 389, 3350, 83, 16, 1758, 389...
/** *Submitted for verification at Etherscan.io on 2022-02-27 */ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) /// @dev Note that bal...
make sure only MF team can call this method
function reveal(string memory updatedURI, uint256 _revealedSupply) external { require(msg.sender == MF_TEAM); require(revealedSupply <= MAX_SUPPLY); revealedSupply = _revealedSupply; revealedURI = updatedURI; }
7,623,918
[ 1, 4625, 348, 7953, 560, 30, 225, 1221, 3071, 1338, 490, 42, 5927, 848, 745, 333, 707, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 283, 24293, 12, 1080, 3778, 3526, 3098, 16, 2254, 5034, 389, 266, 537, 18931, 3088, 1283, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 490, 42, 67, 1448, 2192, 1769, 203, 203, 3639, 2583, 12, 266, 537, 18...
pragma solidity ^0.4.14; /// @dev Models a uint -> address mapping where it is possible to iterate over all keys. library IterableMapping { struct Map { mapping(address => IndexValue) data; KeyFlag[] keys; uint size; } struct IndexValue { uint keyIndex; uint value; } struct Ke...
@title Fundamental Contract @dev The Fundamental contract contains useful functions and modifiers for other contracts to use.
contract Fundament { uint public creationTime = now; modifier meets(bool condition) { require(condition); _; } modifier fails(bool condition) { require(!condition); _; } modifier onlyby(address account) { require(msg.sender == account); _; }...
2,520,922
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 478, 1074, 14773, 287, 13456, 632, 5206, 1021, 478, 1074, 14773, 287, 6835, 1914, 5301, 4186, 471, 10429, 364, 1308, 20092, 358, 999, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 478, 1074, 14773, 288, 203, 565, 2254, 1071, 6710, 950, 273, 2037, 31, 203, 203, 565, 9606, 1791, 2413, 12, 6430, 2269, 13, 288, 203, 3639, 2583, 12, 4175, 1769, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 565, 9606, 66...
./full_match/4/0x768101facAC2FCefe43ca0E6622253C3A4b5F7d5/sources/contracts/SpaceCraft.sol
View function to see pending Testa on frontend.
function pendingTesta(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accTestaPerShare = pool.accTestaPerShare; uint256 totalETH = bank.totalETH()...
796,479
[ 1, 4625, 348, 7953, 560, 30, 225, 4441, 445, 358, 2621, 4634, 7766, 69, 603, 15442, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4634, 4709, 69, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 66...
contract VulnerabilityStorage { //漏洞结构体 struct Vulnerability { //漏洞标识,即ipfsHash string ipfsHash; //漏洞名称 string name; //漏洞发布者 string username; //漏洞发布时间 string releaseTime; //漏洞修复时间 string doneTime; //漏洞star数量 ui...
漏洞标识,即ipfsHash漏洞名称漏洞发布者漏洞发布时间漏洞修复时间漏洞star数量补丁列表补丁数量漏洞综合评分是否解决漏洞是否存在
struct Vulnerability { string ipfsHash; string name; string username; string releaseTime; string doneTime; uint64 starCount; string[] patches; uint64 pCount; uint64 totalScore; bool isDone; bool isExisted; } ...
12,779,184
[ 1, 4625, 348, 7953, 560, 30, 225, 167, 125, 242, 167, 117, 257, 167, 259, 234, 169, 112, 233, 176, 125, 239, 166, 240, 116, 625, 2556, 2310, 167, 125, 242, 167, 117, 257, 166, 243, 240, 168, 105, 113, 167, 125, 242, 167, 117, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 776, 26064, 288, 203, 3639, 533, 2359, 2556, 2310, 31, 203, 3639, 533, 508, 31, 203, 3639, 533, 2718, 31, 203, 3639, 533, 3992, 950, 31, 203, 3639, 533, 2731, 950, 31, 203, 3639, 2254, 1105, 10443, 1380, 31, 203, 363...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import './MixinDisable.sol'; import './MixinKeys.sol'; import './MixinLockCore.sol'; import './MixinFunds.sol'; /** * @title Mixin for the purchase-related functions. * @author HardlyDifficult * @dev `Mixins` are a design pattern seen in the 0x contracts. It...
* @dev Purchase function @param _value the number of tokens to pay for this purchase >= the current keyPrice - any applicable discount (_value is ignored when using ETH) @param _recipient address of the recipient of the purchased key @param _referrer address of the user making the referral @param _keyManager optional a...
function purchase( uint256 _value, address _recipient, address _referrer, address _keyManager, bytes calldata _data ) external payable onlyIfAlive notSoldOut { require(_recipient != address(0), 'INVALID_ADDRESS'); require(keyByOwner[_recipient] == 0, 'ALREADY_HAS_KEY'); _t...
12,872,833
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 26552, 445, 632, 891, 389, 1132, 326, 1300, 434, 2430, 358, 8843, 364, 333, 23701, 1545, 326, 783, 498, 5147, 300, 1281, 12008, 12137, 261, 67, 1132, 353, 5455, 1347, 1450, 512, 2455, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 23701, 12, 203, 565, 2254, 5034, 389, 1132, 16, 203, 565, 1758, 389, 20367, 16, 203, 565, 1758, 389, 1734, 11110, 16, 203, 565, 1758, 389, 856, 1318, 16, 203, 565, 1731, 745, 892, 389, 892, 203, 225, 262, 3903, 8843, ...
./full_match/1/0x9307d50CaAe1FA22A08B3352B493797a7aB692bB/sources/contracts/StakingManager.sol
* @dev Withdraw all tokens from existing pool/ Pay rewards Delete staker Update pool Withdraw tokens
function withdraw() external { PoolStaker memory staker = poolStakers[msg.sender]; uint256 amount = staker.amount; require( staker.stakedTime + lockTime <= block.timestamp, "You are not allowed to withdraw before locked time" ); require(amount > 0, "Wi...
9,659,672
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3423, 9446, 777, 2430, 628, 2062, 2845, 19, 13838, 283, 6397, 2504, 384, 6388, 2315, 2845, 3423, 9446, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1435, 3903, 288, 203, 3639, 8828, 510, 6388, 3778, 384, 6388, 273, 2845, 510, 581, 414, 63, 3576, 18, 15330, 15533, 203, 3639, 2254, 5034, 3844, 273, 384, 6388, 18, 8949, 31, 203, 3639, 2583, 12, 203, 5411, ...
./partial_match/1/0x171CBF5688468ad08AB4f3594E5AA4F299e24c44/sources/LICOToken.sol
* Math operations with safety checks/
contract SafeMath { function safeMul(uint a, uint b)pure internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeDiv(uint a, uint b)pure internal returns (uint) { assert(b > 0); uint c = a / b; assert(a == b * c + a %...
16,186,477
[ 1, 4625, 348, 7953, 560, 30, 380, 2361, 5295, 598, 24179, 4271, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14060, 10477, 288, 203, 203, 565, 445, 4183, 27860, 12, 11890, 279, 16, 2254, 324, 13, 84, 594, 2713, 1135, 261, 11890, 13, 288, 203, 3639, 2254, 276, 273, 279, 380, 324, 31, 203, 3639, 1815, 12, 69, 422, 374, 747, 276, ...
pragma solidity ^0.5.16; import "./TokenDispenserBase.sol"; contract TokenDispenserSeedI10Y60Y30 is TokenDispenserBase { uint public year1EndTime; uint public year2EndTime; // @notice 10% vested immediately after launch. scaled by 1e18 uint public constant immediateVestRatio = 1e17; // @notice 60%...
vested token per allocation is calculated as Immediately vest 10% after distribution launched Linearly vest 60% in the 1st year after launched Linearly vest 30% in the 2nd year after launched
function vestedPerAllocation() public view returns (uint) { uint currentTime = block.timestamp; if (currentTime <= startTime) { return 0; } if (currentTime <= year1EndTime) { return immediateVestRatio.add(currentTime.sub(startTime).mul(y1rate)); } ...
7,275,469
[ 1, 4625, 348, 7953, 560, 30, 225, 331, 3149, 1147, 1534, 13481, 353, 8894, 487, 2221, 7101, 331, 395, 1728, 9, 1839, 7006, 28786, 13921, 715, 331, 395, 4752, 9, 316, 326, 404, 334, 3286, 1839, 28786, 13921, 715, 331, 395, 5196, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 331, 3149, 2173, 17353, 1435, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 2254, 6680, 273, 1203, 18, 5508, 31, 203, 3639, 309, 261, 2972, 950, 1648, 8657, 13, 288, 203, 5411, 327, 374, 31, 203, 3639, 289, 203, 3...
pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IAnconProtocol.sol"; import "./TrustedOffchainHelper.sol"; import "../ics23/Ics23Helper.sol"; // InstantRelayer is used by end users to pay for expedited block root hash com...
call by agent listening InstantBlockPaid, subscriber must match destination WIP: Add Rewards for mining
function applyBlock( bytes32 moniker, address sender, uint256 ticket ) public { require( tickets[moniker][sender].id == ticket && tickets[moniker][sender].open == true, "invalid ticket or dag" ); tickets[moniker][sender].op...
13,137,294
[ 1, 4625, 348, 7953, 560, 30, 225, 745, 635, 4040, 13895, 11190, 1768, 16507, 350, 16, 9467, 1297, 845, 2929, 678, 2579, 30, 1436, 534, 359, 14727, 364, 1131, 310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2230, 1768, 12, 203, 3639, 1731, 1578, 6921, 1766, 264, 16, 203, 3639, 1758, 5793, 16, 203, 3639, 2254, 5034, 9322, 203, 565, 262, 1071, 288, 203, 3639, 2583, 12, 203, 5411, 24475, 63, 2586, 1766, 264, 6362, 15330, 8009...
./partial_match/1/0xA4012214ff24BfE2eDb6dF0446394550071474DF/sources/ELONINU.sol
* @title ELONINU @dev Implementation of the ELONINU standard/
contract ELONINU is ERC20Decimals { constructor( string memory name_, string memory symbol_, uint8 decimals_, uint256 initialBalance_ ) payable ERC20(name_, symbol_) ERC20Decimals(decimals_) { require(initialBalance_ > 0, "Supply cannot be zer...
4,195,915
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14801, 673, 706, 57, 632, 5206, 25379, 434, 326, 14801, 673, 706, 57, 4529, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14801, 673, 706, 57, 353, 4232, 39, 3462, 31809, 288, 203, 565, 3885, 12, 203, 3639, 533, 3778, 508, 67, 16, 203, 3639, 533, 3778, 3273, 67, 16, 203, 3639, 2254, 28, 15105, 67, 16, 203, 3639, 2254, 5034, 2172, 13937, 67,...
/** *Submitted for verification at Etherscan.io on 2020-08-11 */ pragma solidity 0.6.0; /** * @title Offering contract * @dev Offering logic and mining logic */ contract Nest_NToken_OfferMain { using SafeMath for uint256; using address_make_payable for address; using SafeERC20 for ERC20; ...
View the upper limit of the block interval
function checkBlockLimit() public view returns(uint256) { return _blockLimit; }
7,993,985
[ 1, 4625, 348, 7953, 560, 30, 225, 4441, 326, 3854, 1800, 434, 326, 1203, 3673, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 866, 1768, 3039, 1435, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 327, 389, 2629, 3039, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** *Submitted for verification at Etherscan.io on 2021-10-29 */ /* * Munch single asset staking contract. * * Visit https://munchproject.io */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction...
Called both internally and directly to claim rewards for a given wallet. HAS TO call updateRedisCount() account for redistribution tokens coming from tx tax on MUNCH token. send share to charity send share to holder
function transferMunchRewards(uint poolIdx) public { UserInfo storage user = userInfo[poolIdx][msg.sender]; Pool storage pool = pools[poolIdx]; uint256 pendingRewards = pending(poolIdx, msg.sender); updateRedisCount(); if(pendingRewards > 0) { uint256 redis = re...
6,731,768
[ 1, 4625, 348, 7953, 560, 30, 225, 11782, 3937, 12963, 471, 5122, 358, 7516, 283, 6397, 364, 279, 864, 9230, 18, 21641, 8493, 745, 1089, 14406, 1380, 1435, 2236, 364, 5813, 4027, 2430, 19283, 628, 2229, 5320, 603, 490, 2124, 1792, 1147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 49, 4384, 17631, 14727, 12, 11890, 2845, 4223, 13, 1071, 288, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 6011, 4223, 6362, 3576, 18, 15330, 15533, 203, 3639, 8828, 2502, 2845, 273, 16000, 63, 6011, 4223, 15533, 20...
./full_match/3/0xAC22fd9B71Bb711aF69D46827D4a78393C18946D/sources/browser/CBB-V0.sol
function mint(address receiver, string memory deHashed) public payable {Payout to winners, delete all points and start new game periodMint reward is cut in half every 24 game periods.
function mint(address receiver, bytes memory nonceInHexValue) public payable returns (bool) { bytes32 newHash = keccak256(abi.encodePacked(_previousHash, nonceInHexValue)); uint8 numberOfLeadingZeros = 0; for (uint8 i=1; i <= _difficulty; i++) { if(newHash[i-1...
14,199,752
[ 1, 4625, 348, 7953, 560, 30, 445, 312, 474, 12, 2867, 5971, 16, 533, 3778, 443, 2310, 329, 13, 1071, 8843, 429, 225, 288, 52, 2012, 358, 5657, 9646, 16, 1430, 777, 3143, 471, 787, 394, 7920, 3879, 49, 474, 19890, 353, 6391, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 5971, 16, 1731, 3778, 7448, 382, 7037, 620, 13, 1071, 8843, 429, 1135, 261, 6430, 13, 225, 288, 203, 540, 203, 3639, 1731, 1578, 394, 2310, 273, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 32...
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract AURUM is IERC20 { // --- Auth ----------------------- // The original VAI token contract using rely,deny function to add/remove admin address // This contract will simplify it...
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. This is internal function is equivalent to `approve`, and can be used to e.g. set automatic allowances for certain subsystems, etc. Emits an {Approval} event. Requirements: - `owner` cannot be the zero address. - `spender` cannot be the zero a...
function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "approve from the zero address"); require(spender != address(0), "approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); }
5,491,513
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 1375, 8949, 68, 487, 326, 1699, 1359, 434, 1375, 87, 1302, 264, 68, 1879, 326, 1375, 8443, 68, 87, 2430, 18, 1220, 353, 2713, 445, 353, 7680, 358, 1375, 12908, 537, 9191, 471, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 12908, 537, 12, 2867, 3410, 16, 1758, 17571, 264, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 1377, 2583, 12, 8443, 480, 1758, 12, 20, 3631, 315, 12908, 537, 628, 326, 3634, 1758, 8863, 203, 1377, 2583, 12, 87, 130...
// SPDX-License-Identifier: MIT /** Multi-Farn Capital: $MFC -You buy on Ethereum, we farm on multiple chains and return the profits to $MFC holders. Tokenomics: 10% of each buy goes to existing holders. 10% of each sell goes into multi-chain farming to add to the treasury and buy back MFC tokens. Website: https://m...
@dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with GSN meta-transactions the account sending and paying for exe...
abstract contract Context { pragma solidity ^0.6.0; function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { return msg.data; } }
542,698
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 28805, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, 20, 31, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 8843, 429, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289,...
pragma solidity >=0.4.24<0.6.0; import "./Libraries/VeriSolContracts.sol"; contract LoopFor { int x; int y; function ContractInvariant () private view { VeriSol.ContractInvariant(x == y); VeriSol.ContractInvariant(y >= 0); } // test Loop invariant with for loop constructor(i...
test Loop invariant with for loop
constructor(int n) public { require (n >= 0); x = n; y = x; }
5,458,621
[ 1, 4625, 348, 7953, 560, 30, 225, 1842, 9720, 22514, 598, 364, 2798, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 12, 474, 290, 13, 1071, 288, 203, 3639, 2583, 261, 82, 1545, 374, 1769, 203, 3639, 619, 273, 290, 31, 203, 3639, 677, 273, 619, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0x7a192909d574F879A7cF3aFa822f8e13F7f8c84B/sources/Users/kirillfedoseev/work/omnibridge-nft/contracts/tokens/ERC1155BridgeToken.sol
* @dev Tells if this contract implements the interface defined by `interfaceId`. See the corresponding EIP165. @return true, if interface is implemented./
function supportsInterface(bytes4 interfaceId) public view override(ERC165, IERC165) returns (bool) { bytes4 INTERFACE_ID_ERC165 = 0x01ffc9a7; bytes4 INTERFACE_ID_ERC1155 = 0xd9b67a26; bytes4 INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c; return interfaceId == INTERFACE_...
758,459
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 29860, 87, 309, 333, 6835, 4792, 326, 1560, 2553, 635, 1375, 5831, 548, 8338, 2164, 326, 4656, 512, 2579, 28275, 18, 632, 2463, 638, 16, 309, 1560, 353, 8249, 18, 19, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6146, 1358, 12, 3890, 24, 1560, 548, 13, 1071, 1476, 3849, 12, 654, 39, 28275, 16, 467, 654, 39, 28275, 13, 1135, 261, 6430, 13, 288, 203, 3639, 1731, 24, 11391, 11300, 67, 734, 67, 654, 39, 28275, 273, 374, 92, 161...
/** *Submitted for verification at Etherscan.io on 2022-03-10 */ // SPDX-License-Identifier:MIT // Author: 0xTycoon // Project: Cigarettes (CEO of CryptoPunks) // Credits: Thanks to https://github.com/miguelmota/merkletreejs-solidity pragma solidity ^0.8.11; /** 🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬🚬�...
verify merkle proof
require (verify(_to, _balance, root, _proof), "invalid proof");
2,453,935
[ 1, 4625, 348, 7953, 560, 30, 225, 3929, 30235, 14601, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 261, 8705, 24899, 869, 16, 389, 12296, 16, 1365, 16, 389, 24207, 3631, 315, 5387, 14601, 8863, 2398, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
/** *Submitted for verification at Etherscan.io on 2021-05-16 */ // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.7.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * i...
* @dev Internal function for reducing onlyOwner modifier bytecode overhead./
function _onlyOwner() internal view { require(msg.sender == owner()); }
2,001,481
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 445, 364, 9299, 2822, 1338, 5541, 9606, 22801, 23188, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 3700, 5541, 1435, 2713, 1476, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3410, 10663, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* import "Initiative_Legislative_lib.sol"; import "Register.sol"; import "Citizens_Register.sol"; import "IVote.sol"; import "IDelegation.sol"; */ import "contracts/Initiative_Legislative_lib.sol"; import "contracts/Register.sol"; import "contracts/Citizens_Reg...
Members Election related functions*/* @dev Function called by a citizen who wish to candidate to next mandate's elections./
function Candidate_Election() external override Citizen_Only{ require(!In_election_stage, "Election Time"); Mandates[Actual_Mandate].Add_Candidats(msg.sender); emit New_Candidat(msg.sender); }
12,618,275
[ 1, 4625, 348, 7953, 560, 30, 17524, 512, 942, 3746, 4186, 5549, 14, 632, 5206, 4284, 2566, 635, 279, 276, 305, 452, 275, 10354, 14302, 358, 5500, 358, 1024, 312, 464, 340, 1807, 25526, 87, 18, 19, 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, 385, 8824, 67, 29110, 1435, 3903, 3849, 385, 305, 452, 275, 67, 3386, 95, 203, 3639, 2583, 12, 5, 382, 67, 292, 794, 67, 12869, 16, 315, 29110, 2647, 8863, 203, 3639, 490, 464, 815, 63, 11266, 67, 49, 464, 340, 8009...
/** $PUTINA Invest in a new ERC-20 token to help us build a rocket* that will send a bloody dictator far far away! :firecracker: Taxes: 15% - 7% to marketing, 8% to Ukraine Relief Efforts Website: https://www.putina.co Launch: Stealth, 3/15/22 Contract: Locked and renounced Putin: His ass getting sent straight to ...
@dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for executi...
abstract contract Context { pragma solidity ^0.8.0; function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
527,175
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 28805, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 202, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, ...
* the Metadata extension, but not including the Enumerable extension, which is available separately as {ERC721Enumerable}./ Token name Token symbol Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvals
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; string private _name; string private _symbol; mapping(uint256 => address) private _owners; mapping(address => uint256) private _balances; mapping(uint256 => address) priv...
885,265
[ 1, 4625, 348, 7953, 560, 30, 380, 326, 6912, 2710, 16, 1496, 486, 6508, 326, 6057, 25121, 2710, 16, 1492, 353, 2319, 18190, 487, 288, 654, 39, 27, 5340, 3572, 25121, 5496, 19, 3155, 508, 3155, 3273, 9408, 628, 1147, 1599, 358, 3410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 27, 5340, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 533,...
./full_match/43113/0x3eD1d31cad4Ba61592D1D20D7f9fA82526d79475/sources/token.sol
* @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}./ solhint-disable-next-line no-inline-assembly
function predictDeterministicAddress( address master, bytes32 salt, address deployer ) internal pure returns (address predicted) { assembly { let ptr := mload(0x40) mstore( ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d730000...
13,173,014
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 14169, 281, 326, 1758, 434, 279, 3236, 19357, 1450, 288, 2009, 5322, 17, 14056, 9139, 5846, 5496, 19, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 10047, 17, 28050, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7810, 9139, 5846, 1887, 12, 203, 3639, 1758, 4171, 16, 203, 3639, 1731, 1578, 4286, 16, 203, 3639, 1758, 7286, 264, 203, 565, 262, 2713, 16618, 1135, 261, 2867, 15071, 13, 288, 203, 3639, 19931, 288, 203, 5411, 2231, 65...
./full_match/137/0x8ce6be35426CA317c791335e028505Df2376B598/sources/contracts/HowlToken.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, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), ...
4,732,655
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 24117, 815, 19588, 628, 1573, 8452, 358, 1375, 22216, 73, 68, 632, 891, 7152, 73, 1021, 1758, 358, 7152, 19588, 358, 632, 891, 7448, 1021, 6835, 919, 1931, 358, 845, 326, 3372, 632, 891,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7152, 858, 8267, 12, 203, 3639, 1758, 7152, 73, 16, 203, 3639, 2254, 5034, 7448, 16, 203, 3639, 2254, 5034, 10839, 16, 203, 3639, 2254, 28, 331, 16, 203, 3639, 1731, 1578, 436, 16, 203, 3639, 1731, 1578, 272, 203, 565...
pragma solidity ^0.5; import './Admin.sol'; contract Oracle is Admin { // data feed size uint private size; // how often an oracle is allowed to submit a new data uint private frequency; // data feed mapping(bytes32 => uint[]) private currents; // timesta...
data feed size how often an oracle is allowed to submit a new data data feed timestamps to avoid an oracle to flood the feed oracles events syncing onchain and offchain
contract Oracle is Admin { uint private size; uint private frequency; mapping(bytes32 => uint[]) private currents; mapping(bytes32 => mapping(address => uint)) private timestamps; mapping(address => bool) private oracles; event __addOracle(bytes32 offchain); ...
12,915,769
[ 1, 4625, 348, 7953, 560, 30, 225, 501, 4746, 963, 3661, 16337, 392, 20865, 353, 2935, 358, 4879, 279, 394, 501, 501, 4746, 11267, 358, 4543, 392, 20865, 358, 20802, 369, 326, 4746, 578, 69, 9558, 2641, 3792, 310, 603, 5639, 471, 339...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 28544, 353, 7807, 288, 7010, 203, 3639, 2254, 3238, 963, 31, 203, 203, 3639, 2254, 3238, 8670, 31, 203, 203, 3639, 2874, 12, 3890, 1578, 516, 2254, 63, 5717, 3238, 783, 87, 31, 7010, 203, 3639, 2874, 12, 3890, 1578, 516, ...
pragma solidity ^0.4.15; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function add(uint256 a, uint256 ...
Set the symbol for display purposes
symbol = "LUV";
10,052,498
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 326, 3273, 364, 2562, 13694, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3273, 273, 315, 11778, 58, 14432, 27573, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/5/0xEf8F1fe8918eB5BB70853F2dF2cAC85626d6FB56/sources/project_/contracts/base/MetawinNFTMinter.sol
Emitted when accounts in the early-minting list claim their tokens
event EarlyMintClaimed(address indexed user, uint256 indexed amount);
7,035,495
[ 1, 4625, 348, 7953, 560, 30, 225, 512, 7948, 1347, 9484, 316, 326, 11646, 17, 81, 474, 310, 666, 7516, 3675, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 871, 512, 20279, 49, 474, 9762, 329, 12, 2867, 8808, 729, 16, 2254, 5034, 8808, 3844, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "hardhat/console.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /// @title A simulator for Berghain club entrance system /// @author Bianca Buzea /// @notice Uses Chainlink VR...
* @dev Callback function used by VRF Coordinator to get a random number between 0-1/
function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override{ uint256 randomResult = (randomness % 2); if (randomResult == 1) { totalPeopleIn += 1; console.log("%s has got in!", reqIdToAddrMapping[requestId]); hasJoined[reqIdToAddrMapping[r...
12,549,012
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 8444, 445, 1399, 635, 776, 12918, 10320, 4240, 358, 336, 279, 2744, 1300, 3086, 374, 17, 21, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 22290, 8529, 4496, 12, 3890, 1578, 14459, 16, 2254, 5034, 2744, 4496, 13, 2713, 3849, 95, 203, 3639, 2254, 5034, 2744, 1253, 273, 261, 9188, 4496, 738, 576, 1769, 203, 203, 3639, 309, 261, 9188, 1253, 422, 404, 13, 288,...
pragma solidity 0.7.4; pragma experimental ABIEncoderV2; import "./Ownable.sol"; import "@0xsequence/erc-1155/contracts/utils/SafeMath.sol"; /** * @dev This contract allows an owner to execute registered calls after an expiration * delay has passed. This contract can then be the owner of another contract to *...
Transaction identifier (unique)
uint256 id;
5,366,685
[ 1, 4625, 348, 7953, 560, 30, 225, 5947, 2756, 261, 6270, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 612, 31, 6647, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/100/0x697240b2124bEd2B19FB003Ec4e4cFb5b125B0D1/sources/deploy/contracts/tokens/interfaces/IMintableBurnableERC20.sol
* @title ERC20 interface that includes burn mint and roles methods./
interface IMintableBurnableERC20 is IERC20 { function burn(uint256 value) external; function mint(address to, uint256 value) external returns (bool); function decimals() external view returns (uint8); pragma solidity ^0.8.4; import {IERC20} from '../../../@openzeppelin/contracts/token/ERC20/IERC20.sol'; }
14,267,107
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 3462, 1560, 716, 6104, 18305, 312, 474, 471, 4900, 2590, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 6246, 474, 429, 38, 321, 429, 654, 39, 3462, 353, 467, 654, 39, 3462, 288, 203, 225, 445, 18305, 12, 11890, 5034, 460, 13, 3903, 31, 203, 203, 225, 445, 312, 474, 12, 2867, 358, 16, 2254, 5034, 460, 13, 3903, 1135, 261,...
pragma solidity 0.5 .11; // 'ButtCoin' contract, version 2.0 // Website: http://www.0xbutt.com/ // // Symbol : 0xBUTT // Name : ButtCoin v2.0 // Total supply: 33,554,431.99999981 // Decimals : 8 // // ---------------------------------------------------------------------------- // =====================...
---------------------------------------------------------------------------- Adds account from the whitelist ----------------------------------------------------------------------------
function addToWhitelist(address addToWhitelist) public { whitelist[addToWhitelist] = true; blacklist[addToWhitelist] = false; }
14,015,812
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 15605, 2236, 628, 326, 10734, 8879, 13849, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 445, 9604, 18927, 12, 2867, 9604, 18927, 13, 1071, 288, 203, 377, 10734, 63, 1289, 774, 18927, 65, 273, 638, 31, 203, 377, 11709, 63, 1289, 774, 18927, 65, 273, 629, 31, 203, 282, 289, 203, 203, 2, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; pragma experimental ABIEncoderV2; contract ProjectOffice { Parts[] parts; address public owner; // mapping(address => Projects) public projects; address[10] public projects; // event for EVM logging event OwnerSet(address indexed oldOwner, a...
mapping(address => Projects) public projects; event for EVM logging function assign(uint projectId) public returns (uint) { require(projectId >= 0 && projectId <= 9); projects[projectId] = msg.sender; return projectId; }
contract ProjectOffice { Parts[] parts; address public owner; address[10] public projects; event OwnerSet(address indexed oldOwner, address indexed newOwner); uint256 Controllers; uint256 Shafts; uint256 Doors; uint256 Buttons; uint256 Displays; uint256 Pulleys; pragma solidity >=0.4.22 <0.9.0...
994,786
[ 1, 4625, 348, 7953, 560, 30, 225, 2874, 12, 2867, 516, 30491, 13, 1071, 10137, 31, 871, 364, 512, 7397, 2907, 445, 2683, 12, 11890, 9882, 13, 1071, 1135, 261, 11890, 13, 288, 377, 2583, 12, 4406, 548, 1545, 374, 597, 9882, 1648, 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, 0, 0...
[ 1, 16351, 5420, 30126, 288, 203, 225, 28195, 8526, 2140, 31, 203, 225, 1758, 1071, 3410, 31, 203, 225, 1758, 63, 2163, 65, 1071, 10137, 31, 203, 203, 225, 871, 16837, 694, 12, 2867, 8808, 1592, 5541, 16, 1758, 8808, 394, 5541, 1769,...
./partial_match/4/0xb11Bc8F6358368004206AF1ac2FA8aA4e68dFD2D/sources/BooBankerResearchAgreement.sol
Empty internal constructor, to prevent people from mistakenly deploying an instance of this contract, which should be used via inheritance. solhint-disable-previous-line no-empty-blocks
contract ERC20Payable { event Received(address indexed sender, uint256 amount); constructor () internal { } receive() external payable { emit Received(msg.sender, msg.value); } }
8,524,749
[ 1, 4625, 348, 7953, 560, 30, 225, 8953, 2713, 3885, 16, 358, 5309, 16951, 628, 27228, 7940, 715, 7286, 310, 392, 791, 434, 333, 6835, 16, 1492, 1410, 506, 1399, 3970, 16334, 18, 3704, 11317, 17, 8394, 17, 11515, 17, 1369, 1158, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 4232, 39, 3462, 9148, 429, 288, 203, 203, 565, 871, 21066, 12, 2867, 8808, 5793, 16, 2254, 5034, 3844, 1769, 203, 203, 203, 565, 3885, 1832, 2713, 288, 289, 203, 565, 6798, 1435, 3903, 8843, 429, 288, 203, 3639, 3626, 2106...
pragma solidity ^0.4.18; //>> Reference to https://github.com/OpenZeppelin/zeppelin-solidity /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure...
* @title KStarCoinSale @author Tae Kim @notice This contract is for crowdfunding of KStarCoin./
contract KStarCoinSale is MultiOwnable { using SafeMath for uint256; eICOLevel public level; uint256 public rate; uint256 public minWei; function checkValidLevel(eICOLevel _level) public pure returns (bool) { return (_level == eICOLevel.C_ICO_PRESALE || _level == eICOLevel.C_ICO_ONSALE...
12,231,004
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 1475, 18379, 27055, 30746, 632, 4161, 399, 8906, 1475, 381, 632, 20392, 1220, 6835, 353, 364, 276, 492, 2180, 14351, 434, 1475, 18379, 27055, 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, 16351, 1475, 18379, 27055, 30746, 353, 5991, 5460, 429, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 377, 203, 565, 425, 2871, 51, 2355, 1071, 1801, 31, 203, 565, 2254, 5034, 1071, 4993, 31, 203, 565, 2254, 5034, ...
./full_match/5/0xA4c703308B5e2e0488DE704010287Cd42A2823d0/sources/contracts/BlackListManager.sol
@notice Add a player to the blacklist. The blacklist is common for all the raffles @dev the user could be added and removed from the blacklist several times, but the field dateBlacklisted will contain the date of when the user was added, even if was removed @param _player User that has suspicious behaviour and that wi...
function addToBlackList(address _player) external onlyRole(OPERATOR_ROLE) { BlackListStruct memory blElement = BlackListStruct({ blacklisted: true, dateBlacklisted: block.timestamp }); blackList[_player] = blElement; }
1,942,763
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1436, 279, 7291, 358, 326, 11709, 18, 1021, 11709, 353, 2975, 364, 777, 326, 767, 1403, 1040, 632, 5206, 326, 729, 3377, 506, 3096, 471, 3723, 628, 326, 11709, 11392, 4124, 16, 1496, 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, 9604, 13155, 682, 12, 2867, 389, 14872, 13, 3903, 1338, 2996, 12, 26110, 67, 16256, 13, 288, 203, 3639, 22467, 682, 3823, 3778, 2811, 1046, 273, 22467, 682, 3823, 12590, 203, 5411, 25350, 30, 638, 16, 203, 5411, 1509, 1...
pragma solidity ^0.6.0; // Remix only // import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title VulnerabilityRegistry * * @notice This contract supports responsible disclosure of vulnerab...
The name of the vendor
bytes32 vendorName;
2,508,450
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 508, 434, 326, 8556, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1731, 1578, 8556, 461, 31, 1850, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.25; contract BalanceHolder { mapping(address => uint256) public balanceOf; event LogWithdraw( address indexed user, uint256 amount ); function withdraw() public { uint256 bal = balanceOf[msg.sender]; balanceOf[msg.sender] = 0; ...
@notice Returns the highest bond posted so far for a question @param question_id The ID of the question
function getBond(bytes32 question_id) public view returns(uint256) { }
1,808,957
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 326, 9742, 8427, 23082, 1427, 10247, 364, 279, 5073, 632, 891, 5073, 67, 350, 1021, 1599, 434, 326, 5073, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 29585, 12, 3890, 1578, 5073, 67, 350, 13, 7010, 565, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// File: @openzeppelin/upgrades/contracts/Initializable.sol pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer...
solium-disable security/no-block-members
function permit( address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s ) external { require(deadline >= block.timestamp, "AudiusToken: Deadline has expired"); bytes32 digest = keccak256( abi.en...
487,808
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 5077, 17, 8394, 4373, 19, 2135, 17, 2629, 17, 7640, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21447, 12, 203, 3639, 1758, 3410, 16, 203, 3639, 1758, 17571, 264, 16, 203, 3639, 2254, 460, 16, 203, 3639, 2254, 14096, 16, 203, 3639, 2254, 28, 331, 16, 203, 3639, 1731, 1578, 436, 16, 203, 3639, 1731, 1578, 272, 20...
./full_match/1/0x38449a6b7bb76638452273925c9a2BA818bD130d/sources/lib/pt-v5-chainlink-vrf-v2-direct/src/ChainlinkVRFV2DirectRngAuctionHelper.sol
* @notice Estimates the RNG request fee in LINK based on the expected gas price. @dev Use this function instead of `RNGInterface.getRequestFee()` when estimating request fees offchain. @param _gasPrice The gas price to calculate the request fee for @return _feeToken The LINK address @return _requestFee The estimated re...
function estimateRequestFee(uint256 _gasPrice) external view returns (address _feeToken, uint256 _requestFee) { VRFV2Wrapper wrapper = chainlinkVrfV2Direct.vrfV2Wrapper(); _feeToken = address(wrapper.LINK()); _requestFee = wrapper.estimateRequestPrice(chainlinkVrfV2Direct.getCallbackGasLimit...
8,300,000
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 17787, 29678, 326, 534, 4960, 590, 14036, 316, 22926, 2511, 603, 326, 2665, 16189, 6205, 18, 632, 5206, 2672, 333, 445, 3560, 434, 1375, 54, 4960, 1358, 18, 588, 691, 14667, 20338, 1347, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11108, 691, 14667, 12, 11890, 5034, 389, 31604, 5147, 13, 3903, 1476, 1135, 261, 2867, 389, 21386, 1345, 16, 2254, 5034, 389, 2293, 14667, 13, 288, 203, 3639, 776, 12918, 58, 22, 3611, 4053, 273, 2687, 1232, 58, 5809, 5...
pragma solidity ^0.4.18; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function trans...
* @notice Transfers tokens held by timelock to beneficiary./ solium-disable-next-line security/no-block-members
function release() public { require(now >= RELEASE_TIME); uint256 num = (now - RELEASE_TIME) / RELEASE_PERIODS; require(num + 1 > numOfReleased); if (amountOfPerRelease == 0) { } uint256 amount = amountOfPerRelease; if (amountOfPerRelease > AIHToken.balanc...
14,538,854
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2604, 18881, 2430, 15770, 635, 1658, 292, 975, 358, 27641, 74, 14463, 814, 18, 19, 3704, 5077, 17, 8394, 17, 4285, 17, 1369, 4373, 19, 2135, 17, 2629, 17, 7640, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3992, 1435, 1071, 288, 203, 3639, 2583, 12, 3338, 1545, 2438, 22357, 67, 4684, 1769, 203, 203, 3639, 2254, 5034, 818, 273, 261, 3338, 300, 2438, 22357, 67, 4684, 13, 342, 2438, 22357, 67, 28437, 55, 31, 203, 3639, 2583,...
./full_match/4/0x183a3100FCfF26fA710a0F4b80e15CF817169A0F/sources/contracts/farm/facets/ClaimFacet.sol
* @author Publius @title Claim handles claiming Bean and LP withdrawals, harvesting plots and claiming Ether./
contract ClaimFacet { using SafeMath for uint256; using SafeMath for uint32; AppStorage private s; event BeanClaim(address indexed account, uint32[] withdrawals, uint256 beans); event LPClaim(address indexed account, uint32[] withdrawals, uint256 lp); event EtherClaim(address indexed account,...
12,402,762
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 4161, 453, 440, 8384, 632, 2649, 18381, 7372, 7516, 310, 7704, 471, 511, 52, 598, 9446, 1031, 16, 17895, 90, 10100, 17931, 471, 7516, 310, 512, 1136, 18, 19, 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, 16351, 18381, 11137, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 1578, 31, 203, 203, 565, 4677, 3245, 3238, 272, 31, 203, 203, 565, 871, 7704, 9762, 12, 2867, 8808, 2236, ...
./full_match/97/0x82788107C92FD98840e7C0079Ba9ef9E1F00EF48/sources/project_/contracts/factory.sol
* @dev Sets proxy contract address against the user's specific dealId. Private function without access restriction./
function setUserDealDetails( string memory _dealId, address _escrowAddress, address _tokenAddress ) private { dealIdToEscrowDetails[_dealId].escrowProxyAddress = _escrowAddress; dealIdToEscrowDetails[_dealId].tokenAddress = _tokenAddress; }
5,043,958
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 2889, 6835, 1758, 5314, 326, 729, 1807, 2923, 10490, 548, 18, 8726, 445, 2887, 2006, 9318, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 14365, 758, 287, 3790, 12, 203, 3639, 533, 3778, 389, 323, 287, 548, 16, 203, 3639, 1758, 389, 742, 492, 1887, 16, 203, 3639, 1758, 389, 2316, 1887, 203, 565, 262, 3238, 288, 203, 3639, 10490, 28803, 6412, 492, 3790, ...
./full_match/1/0xA905f9f0b525420d4E5214E73d70dfFe8438D8C8/sources/solidity/contracts/governance/GovernorCharlie.sol
@notice Returns the timelock address @param _timelock The timelock address
function timelock() external view override returns (address _timelock) { _timelock = address(this); }
8,423,491
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 326, 1658, 292, 975, 1758, 632, 891, 389, 8584, 292, 975, 1021, 1658, 292, 975, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1658, 292, 975, 1435, 3903, 1476, 3849, 1135, 261, 2867, 389, 8584, 292, 975, 13, 288, 203, 565, 389, 8584, 292, 975, 273, 1758, 12, 2211, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -1...