file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
/** *Submitted for verification at Etherscan.io on 2021-09-19 */ // 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 *...
* @dev Implementation of the basic standard multi-token. _Available since v3.1._/ Mapping from token ID to account balances Mapping from account to operator approvals Used as the URI for all token types by relying on ID substitution, e.g. https:token-cdn-domain/{id}.json
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; mapping(uint256 => mapping(address => uint256)) private _balances; mapping(address => mapping(address => bool)) private _operatorApprovals; string private _uri; constructor(string memory uri_) { ...
15,361,714
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 5337, 4529, 3309, 17, 2316, 18, 389, 5268, 3241, 331, 23, 18, 21, 6315, 19, 9408, 628, 1147, 1599, 358, 2236, 324, 26488, 9408, 628, 2236, 358, 3726, 6617, 4524, 10286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2499, 2539, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 2499, 2539, 16, 467, 654, 39, 2499, 2539, 2277, 3098, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 12, 11890, 5034, 516, 2874, 12,...
./full_match/42/0xcC649E2F8F65758D623Ae37610Bd66489D516758/sources/contracts/Tellor.sol
This Contract now have access to all functions on UsingTellor
contract BtcPriceContract is UsingTellor { uint256 btcPrice; uint256 btcRequetId = 2; pragma solidity >=0.7.0 <0.9.0; constructor(address payable _tellorAddress) UsingTellor(_tellorAddress) public {} function setBtcPrice() public { bool _didGet; uint _timestamp; uin...
9,586,657
[ 1, 4625, 348, 7953, 560, 30, 1220, 13456, 2037, 1240, 2006, 358, 777, 4186, 603, 11637, 21009, 280, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 605, 5111, 5147, 8924, 353, 11637, 21009, 280, 288, 203, 203, 203, 225, 2254, 5034, 12798, 5147, 31, 203, 225, 2254, 5034, 12798, 426, 28357, 548, 273, 576, 31, 203, 203, 203, 683, 9454, 18035, 560, 1545, 20, 18, 27, 18, ...
// Be name Khoda // Bime Abolfazl // SPDX-License-Identifier: GPL-2.0-or-later pragma solidity ^0.8.7; // ================================================================================================================= // _|_|_| _|_|_|_| _| _| _|_|_| _|_|_|_| _| ...
* @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor...
library SafeMath { pragma solidity >=0.6.11; function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(...
14,333,499
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4266, 10422, 1879, 348, 7953, 560, 1807, 30828, 5295, 598, 3096, 9391, 4271, 18, 27443, 5295, 316, 348, 7953, 560, 2193, 603, 9391, 18, 1220, 848, 17997, 563, 316, 22398, 16, 2724, 5402, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 10477, 288, 203, 203, 683, 9454, 18035, 560, 1545, 20, 18, 26, 18, 2499, 31, 203, 565, 445, 527, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, ...
./partial_match/97/0x2bCd10B8e70D6FB0276b4F6BB0FfF0f2aB3E9A16/sources/EmiRouter.sol
**** ADD LIQUIDITY **** create the pair if it doesn't exist yet
function _addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin ) internal returns (uint256 amountA, uint256 amountB) { IERC20 ERC20tokenA = IERC20(tokenA); IERC20 ERC20...
11,435,170
[ 1, 4625, 348, 7953, 560, 30, 225, 380, 14465, 11689, 8961, 53, 3060, 4107, 380, 14465, 752, 326, 3082, 309, 518, 3302, 1404, 1005, 4671, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 389, 1289, 48, 18988, 24237, 12, 203, 3639, 1758, 1147, 37, 16, 203, 3639, 1758, 1147, 38, 16, 203, 3639, 2254, 5034, 3844, 1880, 281, 2921, 16, 203, 3639, 2254, 5034, 3844, 38, 25683, 16, 203, 3639, 2254, 5034, 3844, ...
pragma solidity ^0.5.4; import "./AuctionityStorage1.sol"; import "../CommonContract/AuctionityLibrary_V1.sol"; import "../CommonContract/AuctionityChainId_V1.sol"; import "../CommonContract/AuctionityLibraryDecodeRawTx_V1.sol"; import "../CommonContract/SafeMath.sol"; /// @title Auctionity Treasurer contract Auction...
@notice internal lock of depot ERC721 @param _tokenContractAddress address : ERC721 smart contract @param _tokenId uint256 : tokenId of ERC721 @param _lockedFor uin256 : id to lock for @return _success bool
function lockDepositERC721_V1( address _tokenContractAddress, uint256 _tokenId, uint256 _lockedFor ) public returns (bool _success) { return _lockDeposit_V1( tx.origin, _tokenContractAddress, _tokenId, 1, _lockedFor ...
7,224,479
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2713, 2176, 434, 5993, 352, 4232, 39, 27, 5340, 632, 891, 389, 2316, 8924, 1887, 1758, 294, 4232, 39, 27, 5340, 13706, 6835, 632, 891, 389, 2316, 548, 2254, 5034, 294, 1147, 548, 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, 565, 445, 2176, 758, 1724, 654, 39, 27, 5340, 67, 58, 21, 12, 203, 3639, 1758, 389, 2316, 8924, 1887, 16, 203, 3639, 2254, 5034, 389, 2316, 548, 16, 203, 3639, 2254, 5034, 389, 15091, 1290, 203, 565, 262, 1071, 1135, 261, 6430,...
pragma solidity >= 0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * @dev Interface of the ERC20 standard as defined...
Check that user entered another value. Check that newFee >= 0 Check if new Value + ownersFee is < 100. Set the new fee Trigger event.
function changeburnFee(uint256 _newFee) public onlyOwner { require(burnFee != _newFee,"Fee is Already the wanted fee."); require( _newFee >= 0, "New Fee must be greater than 0." ); require( (_newFee + addressFee + liquidityFee) < 100, "Fee sum between holders and owner should be less ...
12,912,807
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 716, 729, 16219, 4042, 460, 18, 2073, 716, 394, 14667, 1545, 374, 2073, 309, 394, 1445, 397, 25937, 14667, 353, 411, 2130, 18, 1000, 326, 394, 14036, 11321, 871, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2549, 70, 321, 14667, 12, 11890, 5034, 389, 2704, 14667, 13, 1071, 1338, 5541, 288, 203, 377, 203, 3639, 2583, 12, 70, 321, 14667, 480, 389, 2704, 14667, 10837, 14667, 353, 17009, 326, 15504, 14036, 1199, 1769, 203, 203, ...
//By: D-Nice //Make a new contract if you commit any new helpers, using your name pre helpers. contract DNiceHelpers { //Sending function that is compatible with contracts as well. Using built-in send will normally cause inter-contract transactions to fail function safeSend(address _receiver, uint _amtToSend) ...
By: D-NiceMake a new contract if you commit any new helpers, using your name pre helpers.Sending function that is compatible with contracts as well. Using built-in send will normally cause inter-contract transactions to fail
contract DNiceHelpers { function safeSend(address _receiver, uint _amtToSend) private { if (_amtToSend > 0) if (!_receiver.send(_amtToSend)) _receiver.call.gas(4000000).value(_amtToSend)(); } function stringsEqual(string _a, string _b) returns (bool) { return sha3(_a)...
12,904,491
[ 1, 4625, 348, 7953, 560, 30, 2525, 30, 463, 17, 50, 1812, 6464, 279, 394, 6835, 309, 1846, 3294, 1281, 394, 9246, 16, 1450, 3433, 508, 675, 9246, 18, 16322, 445, 716, 353, 7318, 598, 20092, 487, 5492, 18, 11637, 6650, 17, 267, 136...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 18001, 1812, 13375, 288, 203, 203, 565, 445, 4183, 3826, 12, 2867, 389, 24454, 16, 2254, 389, 301, 88, 28878, 13, 3238, 288, 203, 3639, 309, 261, 67, 301, 88, 28878, 405, 374, 13, 203, 5411, 309, 16051, 67, 24454, 18, 46...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzep...
also rewards to be extended Ensure the provided reward amount is sufficient to reward all NFTs there are 73,050 cryptodates possible so make sure balance of CDT left in the contract can cover the rewards
function extendRewards() external { require(block.timestamp >= periodFinish, "rewards still in progress"); uint256 balance = IERC20(CDT).balanceOf(address(this)); require( balance > rewardPerNFTPerPeriod.mul(73050), "insufficient balance" ); updateRewa...
14,098,241
[ 1, 4625, 348, 7953, 560, 30, 225, 2546, 283, 6397, 358, 506, 7021, 7693, 326, 2112, 19890, 3844, 353, 18662, 358, 19890, 777, 423, 4464, 87, 1915, 854, 26103, 16, 20, 3361, 13231, 369, 815, 3323, 1427, 1221, 3071, 11013, 434, 385, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2133, 17631, 14727, 1435, 3903, 288, 203, 3639, 2583, 12, 2629, 18, 5508, 1545, 3879, 11641, 16, 315, 266, 6397, 4859, 316, 4007, 8863, 203, 3639, 2254, 5034, 11013, 273, 467, 654, 39, 3462, 12, 39, 9081, 2934, 12296, 9...
pragma solidity ^0.5.11; pragma experimental ABIEncoderV2; import "./StandardToken.sol"; import "./ReentrancyGuard.sol"; import "./SafeMath.sol"; import "./GeneratedToken.sol"; /** * @title FlowCoin * @dev Token with build-in exchange functionality * * @author Alin Popa * https://github.com/alin1popa/ * * Bas...
* @dev Retract a sell order from the order book @param _ratio the ratio of FLOW-to-ETH @param _amount the amount of tokens to be sold/
function retractSellOrder( uint256 _ratio, uint256 _amount ) external nonReentrant returns (bool) { require(_amount > 0); require(_ratio > 0); bytes32 orderHash = keccak256(abi.encodePacked(_ratio, msg.sender)); require(_amount <= sells[...
1,791,823
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17100, 14266, 279, 357, 80, 1353, 628, 326, 1353, 6978, 632, 891, 389, 9847, 326, 7169, 434, 30214, 17, 869, 17, 1584, 44, 632, 891, 389, 8949, 326, 3844, 434, 2430, 358, 506, 272, 1673...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 283, 1575, 55, 1165, 2448, 12, 203, 3639, 2254, 5034, 389, 9847, 16, 203, 3639, 2254, 5034, 389, 8949, 203, 565, 262, 282, 3903, 203, 3639, 1661, 426, 8230, 970, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 363...
// solhint-disable not-rely-on-time //SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.6; /* solhint-disable no-inline-assembly */ // #if ENABLE_CONSOLE_LOG import "hardhat/console.sol"; // #endif import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/access/Ownable...
@inheritdoc IRelayRegistrar
function readRelayInfos( address relayHub ) public view override returns ( RelayInfo[] memory info ) { uint256 blockTimestamp = block.timestamp; uint256 oldestBlockTimestamp = blockTimestamp >= relayRegistrationMaxAge ? blockTimestamp - relayRegistrationMaxAge...
6,447,961
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 467, 27186, 30855, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 855, 27186, 7655, 12, 203, 3639, 1758, 18874, 8182, 203, 565, 262, 203, 565, 1071, 203, 565, 1476, 203, 565, 3849, 203, 565, 1135, 261, 203, 3639, 4275, 528, 966, 8526, 3778, 1123, 203, 565, 262, 288, 203, 3639, 2254, ...
/** *Submitted for verification at Etherscan.io on 2021-08-13 */ // SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Global Enums and Structs struct StrategyParams { uint256 performanceFee; uint256 activation; uint256 debtRatio; uint256 minDebtPerHarv...
Only use current balance in contract as profit on Pure ALCX staking strat
_profit = balanceAfter.sub(balanceOfWantBefore);
2,424,973
[ 1, 4625, 348, 7953, 560, 30, 5098, 999, 783, 11013, 316, 6835, 487, 450, 7216, 603, 16616, 7981, 39, 60, 384, 6159, 609, 270, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 389, 685, 7216, 273, 11013, 4436, 18, 1717, 12, 12296, 951, 59, 970, 4649, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity 0.8.4; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract PathMinterClaim is Ownable{ IERC20 private immutable token; uint256 public grandTotalClaimed = 0; uint256 public immutable star...
* @dev transfers allocated tokens to recipient to their address @param _recipient the addresss to withdraw tokens for/transfer tokens after subtracting tokens claimed
function transferTokens(address _recipient) external { require(allocations[_recipient].amountClaimed < allocations[_recipient].totalAllocated, "Address should have some allocated tokens"); require(startTime <= block.timestamp, "Start time of claim should be later than current time"); uint ne...
907,511
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 29375, 11977, 2430, 358, 8027, 358, 3675, 1758, 632, 891, 389, 20367, 326, 1758, 87, 358, 598, 9446, 2430, 364, 19, 13866, 2430, 1839, 10418, 310, 2430, 7516, 329, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 5157, 12, 2867, 389, 20367, 13, 3903, 288, 203, 3639, 2583, 12, 9853, 1012, 63, 67, 20367, 8009, 8949, 9762, 329, 411, 23804, 63, 67, 20367, 8009, 4963, 29392, 16, 315, 1887, 1410, 1240, 2690, 11977, 2430, 8863, 2...
./full_match/1001/0xCe12C887FAe83A5f94f6cF3C8d4C1ceE8B1C7786/sources/contracts/swap/DexRouter.sol
* @dev Identical to removeLiquidityKLAY, but succeeds for tokens that take a fee on transfer. msg.sender should have already given the router an allowance of at least liquidity on the pool./
function removeLiquidityKLAYSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountKLAYMin, address to, uint256 deadline ) public virtual override ensure(deadline) returns (uint256 amountKLAY) { (, amountKLAY...
16,364,015
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13128, 1706, 358, 1206, 48, 18988, 24237, 47, 7868, 16, 1496, 21933, 364, 2430, 716, 4862, 279, 14036, 603, 7412, 18, 1234, 18, 15330, 1410, 1240, 1818, 864, 326, 4633, 392, 1699, 1359, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1206, 48, 18988, 24237, 47, 7868, 6289, 310, 14667, 1398, 5912, 5157, 12, 203, 3639, 1758, 1147, 16, 203, 3639, 2254, 5034, 4501, 372, 24237, 16, 203, 3639, 2254, 5034, 3844, 1345, 2930, 16, 203, 3639, 2254, 5034, 3844, ...
// SPDX-License-Identifier: AGPL-3.0-only /* Bounty.sol - SKALE Manager Copyright (C) 2020-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 Softw...
clean existing data
function populate() external onlyOwner { ValidatorService validatorService = ValidatorService(contractManager.getValidatorService()); DelegationController delegationController = DelegationController( contractManager.getContract("DelegationController") ); TimeHelpers timeH...
401,007
[ 1, 4625, 348, 7953, 560, 30, 225, 2721, 2062, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6490, 1435, 3903, 1338, 5541, 288, 203, 3639, 9150, 1179, 4213, 1179, 273, 9150, 1179, 12, 16351, 1318, 18, 588, 5126, 1179, 10663, 203, 3639, 24117, 367, 2933, 23595, 2933, 273, 24117, 367, 2933, 12, 203, 5411, 6835, 131...
pragma solidity 0.4.24; import "./base/ownership/Ownable.sol"; /** @title Approved contract, tokens and gas prices. */ /** @author Kerman Kohli - <kerman@8xprotocol.com> */ contract ApprovedRegistry is Ownable { struct GasCost { uint callValue; uint gasCost; uint gasPrice; } map...
* @dev Set an approved contract call cost. @param _contractAddress is the address of the subscription contract. @param _index is the reference to the call (cancel, subscribe etc). @param _callValue is how much the transaction will cost. @param _gasCost is the amount of gas that will be used. @param _gasPrice is the gas...
function setApprovedContractCallCost( address _contractAddress, uint _index, uint _callValue, uint _gasCost, uint _gasPrice ) public onlyOwner hasContractBeenApproved(_contractAddress, true) { approvedContractMapping[_contractAddress][_...
7,277,492
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1000, 392, 20412, 6835, 745, 6991, 18, 632, 891, 389, 16351, 1887, 353, 326, 1758, 434, 326, 4915, 6835, 18, 632, 891, 389, 1615, 353, 326, 2114, 358, 326, 745, 261, 10996, 16, 9129, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 31639, 8924, 1477, 8018, 12, 203, 3639, 1758, 389, 16351, 1887, 16, 203, 3639, 2254, 389, 1615, 16, 203, 3639, 2254, 389, 1991, 620, 16, 203, 3639, 2254, 389, 31604, 8018, 16, 203, 3639, 2254, 389, 31604, 5147, 203...
./full_match/3/0x3ECB5eEEf93C41fa2D781A69e1EAE55131aC7837/sources/browser/contracts/Shared_Banking.sol
Transfers funds from msg.sender to the account (by address) of their choice for a
function propose_transfer(address receiver, uint amount, bytes32 message, bytes memory signature) hasAccount public returns (string memory response) specified amount.*/ { uint256 account_num = id[msg.sender]; require( id[receiver] > 0 && id[receiver] <= number_of_accounts, "Invalid"); ...
8,109,820
[ 1, 4625, 348, 7953, 560, 30, 2604, 18881, 284, 19156, 628, 1234, 18, 15330, 358, 326, 2236, 261, 1637, 1758, 13, 434, 3675, 6023, 364, 279, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 450, 4150, 67, 13866, 12, 2867, 5971, 16, 2254, 3844, 16, 1731, 1578, 883, 16, 1731, 3778, 3372, 13, 711, 3032, 1071, 1135, 261, 1080, 3778, 766, 13, 203, 565, 1269, 3844, 4509, 19, 203, 565, 288, 203, 3639, 2254, 503...
./full_match/1/0xAAF373516A8aD7Ae0998057035Fa7b74Ed2136dc/sources/contracts/dice.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("Dice", "$Dice") { excludeFromFees(owner(), true); excludeFromFees(marketingWallet, true); excludeFromFees(devWallet, true); excludeFromFees(address(this), true); excludeFromFees(address(0xdead), true); excludeFromMaxTransaction(owner(), true); ...
16,482,233
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 3885, 1435, 4232, 39, 3462, 2932, 40, 1812, 3113, 4662, 40, 1812, 7923, 288, 203, 3639, 4433, 1265, 2954, 281, 12, 8443, 9334, 638, 1769, 203, 3639, 4433, 1265, 2954, 281, 12, 3355, 21747, 16936, 16, 638, 1769, 203, 3639, 44...
./full_match/5/0x3c21Dc6c8336c53Ac50022A38B458FaD954970b5/sources/src/ISECCertifications.sol
@dev Returns the uri for a given tokenId.
function uri( uint256 _tokenId ) public view override returns (string memory) { string memory batchUri = _getBaseURI(_tokenId); return string(abi.encodePacked(batchUri, _tokenId.toString())); }
1,891,938
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 326, 2003, 364, 279, 864, 1147, 548, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2003, 12, 203, 3639, 2254, 5034, 389, 2316, 548, 203, 565, 262, 1071, 1476, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 533, 3778, 2581, 3006, 273, 389, 588, 2171, 3098, 24899, 2316, 548, 1769, 203, 3639, 327, 533,...
pragma solidity ^0.4.17; /** * V 1.0. * (C) profit-chain.net Licensed under MIT terms * * ProfitChain is a game allowing participants to win some Ether. Based on Ethereum intrinsic randomness and difficulty, you must be either lucky or one * hell of a hacker to win... Read the code, and if you find a prob...
promiles of owner fee out of investment
uint32 ownerFee;
6,450,576
[ 1, 4625, 348, 7953, 560, 30, 225, 3012, 1449, 434, 3410, 14036, 596, 434, 2198, 395, 475, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 1578, 3410, 14667, 31, 1171, 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, -10...
// to test issue with nodes breaking with large clients over WS // fixed in web3 with fragmentationThreshold: 8192 pragma solidity ^0.4.17; contract BigFreakingContract { event Transfer(address indexed from, address indexed to, uint value); event Approval( address indexed owner, address indexed spender, uint valu...
TODO: should increase instead
function approve_329(address spender, uint value) public returns (bool ok) { _approvals[msg.sender][spender] = value; emit Approval( msg.sender, spender, value ); return true; }
6,454,042
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 30, 1410, 10929, 3560, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 6617, 537, 67, 1578, 29, 12, 2867, 17571, 264, 16, 2254, 460, 13, 1071, 1135, 261, 6430, 1529, 13, 288, 203, 565, 389, 12908, 4524, 63, 3576, 18, 15330, 6362, 87, 1302, 264, 65, 273, 460, 31, 203, 565, 3626, 1716, 6...
// SPDX-License-Identifier: MIT import "../Interfaces.sol"; pragma solidity >=0.8.0; contract SwapHelperTest { // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token...
returns sorted token addresses, used to handle return values from pairs sorted in this order
contract SwapHelperTest { function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) import "../Interfaces.sol"; { require(tokenA != tokenB, "UniswapV2Library: IDENTICAL_ADDRESSES"); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA...
13,070,951
[ 1, 4625, 348, 7953, 560, 30, 225, 1135, 3115, 1147, 6138, 16, 1399, 358, 1640, 327, 924, 628, 5574, 3115, 316, 333, 1353, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 12738, 2276, 4709, 288, 203, 202, 915, 1524, 5157, 12, 2867, 1147, 37, 16, 1758, 1147, 38, 13, 203, 202, 202, 7236, 203, 202, 202, 84, 594, 203, 202, 202, 6154, 261, 2867, 1147, 20, 16, 1758, 1147, 21, 13, 203, 5666, 3...
//Address: 0x3a018b8245b6d9b0abc2808eb4be03a17e0fecf8 //Contract name: Cryptoya //Balance: 0 Ether //Verification Date: 3/5/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function m...
How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like comparing 1 wei to 1 ether.
uint8 public decimals;
2,506,237
[ 1, 4625, 348, 7953, 560, 30, 9017, 4906, 15105, 358, 2405, 18, 9228, 18, 6149, 3377, 4336, 1026, 4971, 598, 890, 15105, 18, 21979, 310, 374, 18, 29, 3672, 348, 38, 60, 273, 2468, 3672, 1026, 4971, 18, 2597, 1807, 3007, 17553, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 11890, 28, 1071, 15105, 31, 2398, 202, 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, ...
./full_match/5/0xd27F16D365915473c7a19D59aE96Ae4F10a3Ff23/sources/contracts/guild-core/Guild.sol
* @notice Sets the second rental rate slope in the Guild Rental contract. @param rSlope2 The new second rental rate slope./
function guildRental_setRSlope2(uint256 rSlope2) external onlyRole(MANAGER_ROLE) { IGuildRental(_contracts.guildRental).setRSlope2(rSlope2); } GUILD
11,615,798
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11511, 326, 2205, 283, 496, 287, 4993, 17543, 316, 326, 24521, 534, 319, 287, 6835, 18, 632, 891, 436, 55, 12232, 22, 1021, 394, 2205, 283, 496, 287, 4993, 17543, 18, 19, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15488, 54, 319, 287, 67, 542, 13225, 12232, 22, 12, 11890, 5034, 436, 55, 12232, 22, 13, 3903, 1338, 2996, 12, 19402, 67, 16256, 13, 288, 203, 3639, 13102, 680, 54, 319, 287, 24899, 16351, 87, 18, 75, 680, 54, 319, ...
/** WPSmartContracts.com Blockchain Made Easy http://wpsmartcontracts.com/ */ pragma solidity ^0.5.7; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { int256 constant private INT256_MIN = -2**255; /** * @dev Multiplies two unsigned int...
* @dev Burns a specific amount of tokens. @param value The amount of token to be burned./
function burn(uint256 value) public whenBurnableActive { _burn(msg.sender, value); }
890,494
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 605, 321, 87, 279, 2923, 3844, 434, 2430, 18, 632, 891, 460, 1021, 3844, 434, 1147, 358, 506, 18305, 329, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18305, 12, 11890, 5034, 460, 13, 1071, 1347, 38, 321, 429, 3896, 288, 203, 3639, 389, 70, 321, 12, 3576, 18, 15330, 16, 460, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.6.8; import "./ProtoBufRuntime.sol"; import "./GoogleProtobufAny.sol"; import "./Payables.sol"; library IssuanceProperty { //enum definition // Solidity enum definitions enum IssuanceState { IssuanceStateUnknown, Initiated, Engageable, Can...
* @dev The decoder for reading a inner struct field @param p The offset of bytes array to start decode @param bs The bytes array to be decoded @return The decoded inner-struct @return The number of bytes used to decode/
function _decode_Payable(uint256 p, bytes memory bs) internal pure returns (Payable.Data memory, uint) { uint256 pointer = p; (uint256 sz, uint256 bytesRead) = ProtoBufRuntime._decode_varint(pointer, bs); pointer += bytesRead; (Payable.Data memory r, ) = Payable._decode(pointer, bs, sz);...
12,793,129
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1021, 8320, 364, 6453, 279, 3443, 1958, 652, 632, 891, 293, 1021, 1384, 434, 1731, 526, 358, 787, 2495, 632, 891, 7081, 1021, 1731, 526, 358, 506, 6383, 632, 2463, 1021, 6383, 3443, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 3922, 67, 9148, 429, 12, 11890, 5034, 293, 16, 1731, 3778, 7081, 13, 203, 565, 2713, 203, 565, 16618, 203, 565, 1135, 261, 9148, 429, 18, 751, 3778, 16, 2254, 13, 203, 225, 288, 203, 565, 2254, 5034, 4407, 273, ...
pragma solidity ^0.4.17; contract Blockgame { uint public ENTRY_FEE = 0.075 ether; uint public POINTS_TO_SPEND = 150; uint public TEAMS_PER_ENTRY = 6; uint public MAX_ENTRIES = 200; address public owner; uint[6] public payoutPercentages; uint public debt; uint[] public allTeamsCosts; ...
Verify that constest hasn't closed
modifier beforeCutoff(uint _date) { require(gameRecords[_date].closedTime > currentTime()); _; }
12,769,904
[ 1, 4625, 348, 7953, 560, 30, 225, 8553, 716, 1866, 395, 13342, 1404, 4375, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 1865, 15812, 3674, 12, 11890, 389, 712, 13, 288, 203, 565, 2583, 12, 13957, 6499, 63, 67, 712, 8009, 12204, 950, 405, 6680, 10663, 203, 565, 389, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -1...
./full_match/11155111/0x3F874C5ABeb70E97d44dfD5Cf6eA737ebCdb2C8A/sources/project_/contracts/RoyaltiesReceiverFactory.sol
* @title Factory contract to allow for centralized token minting and event detection./============================================================================ State Variables==============================================================================================================================================...
contract RoyaltiesReceiverFactory is Ownable, IRoyaltiesReceiverFactory { address[] public allRoyaltiesReceivers; bool public isDeactivated; import { IRoyaltiesReceiverFactory } from './interfaces/IRoyaltiesReceiverFactory.sol'; import { Ownable } from './helper/Ownable.sol'; import { RoyaltiesReceiver } f...
3,795,976
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 7822, 6835, 358, 1699, 364, 18291, 1235, 1147, 312, 474, 310, 471, 871, 11649, 18, 19, 9917, 14468, 3287, 23536, 9917, 9917, 2429, 1432, 12832, 9917, 14468, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 534, 13372, 2390, 606, 12952, 1733, 353, 14223, 6914, 16, 15908, 13372, 2390, 606, 12952, 1733, 288, 203, 203, 565, 1758, 8526, 1071, 777, 54, 13372, 2390, 606, 4779, 6760, 31, 203, 565, 1426, 1071, 353, 758, 18836, 31, 203,...
// SPDX-License-Identifier: UNLICENSED // Kashi Lending Medium Risk // __ __ __ __ _____ __ __ // | |/ .---.-.-----| |--|__| | |_.-----.-----.--| |__.-----.-----. // | <| _ |__ --| | | | | -__| | _ | | | _ | // |__|\__|___._|_____|__|_...
@title KashiPair @dev This contract allows contract calls to any contract (except BentoBox) from arbitrary callers thus, don't trust calls from this contract in any circumstances. Immutables (for MasterContract and all clones) MasterContract variables Per clone variables Clone init settings Total amounts User balances...
contract KashiPairMediumRiskV1 is ERC20, BoringOwnable, IMasterContract { using BoringMath for uint256; using BoringMath128 for uint128; using RebaseLibrary for Rebase; using BoringERC20 for IERC20; event LogExchangeRate(uint256 rate); event LogAccrue(uint256 accruedAmount, uint256 feeFraction,...
12,545,890
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 1475, 961, 77, 4154, 632, 5206, 1220, 6835, 5360, 6835, 4097, 358, 1281, 6835, 261, 14137, 605, 29565, 3514, 13, 628, 11078, 19932, 12493, 16, 2727, 1404, 10267, 4097, 628, 333, 6835, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 1475, 961, 77, 4154, 25599, 54, 10175, 58, 21, 353, 4232, 39, 3462, 16, 605, 6053, 5460, 429, 16, 6246, 2440, 8924, 288, 203, 565, 1450, 605, 6053, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 605, 6053, 10477, 10392, 364, ...
./full_match/43113/0x38F1f65B33e76a3D5A74E598F73E996758C29001/sources/Tortuga.sol
solhint-disable-next-line no-inline-assembly
New functions added: - New tax created as tresorFee, the treasure of the Tortuga pirates. - taxFee, burnFee and tresorFee have a MAX VALUE so NO RUGPULL can happen : 3%, 3% and 2% (we let the possibity to increase the tresorFee from 1% to 2% for periods of high rewards. - Function ...
7,198,212
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 10047, 17, 28050, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1166, 4186, 3096, 30, 203, 3639, 300, 1166, 5320, 2522, 487, 268, 455, 280, 14667, 16, 326, 9787, 3619, 434, 326, 399, 499, 637, 69, 293, 481, 815, 18, 7010, 3639, 300, 5320, 14667, 16, 18305, 14667, 471, 268, 455, 280, 14...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; library ECStructs { struct ECDSASig { uint8 v; bytes32 r; bytes32 s; } } contract ILotteryForCoke { struct Ticket { address payable ticketAddress; uint256 period; address payable bu...
* @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(value <= _allowed[from][msg.sender], "ERC20 transferFrom, allowance not enough"); _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value); _tra...
7,326,957
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12279, 2430, 628, 1245, 1758, 358, 4042, 632, 891, 628, 1758, 1021, 1758, 1492, 1846, 2545, 358, 1366, 2430, 628, 632, 891, 358, 1758, 1021, 1758, 1492, 1846, 2545, 358, 7412, 358, 632, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7412, 1265, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 460, 203, 565, 262, 203, 565, 1071, 203, 565, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 1132, 1648, 389, 8151, ...
pragma solidity >=0.6.0 <0.8.0; //pragma solidity =0.7.6; pragma abicoder v2; //needed to return struct import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@uniswap/v3-core/contracts/interfaces/IUniswa...
amount * (1 - exitPenalty);
uint256 withdrawAmount = amount.mul(HUNDRED.sub(exitPenalty)).div(HUNDRED);
13,028,018
[ 1, 4625, 348, 7953, 560, 30, 3844, 380, 261, 21, 300, 2427, 24251, 15006, 1769, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 598, 9446, 6275, 273, 3844, 18, 16411, 12, 44, 5240, 5879, 18, 1717, 12, 8593, 24251, 15006, 13, 2934, 2892, 12, 44, 5240, 5879, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.24; /** * @title Helps contracts guard agains reentrancy attacks. * @author Remco Bloemen <remco@2π.com> * @notice If you mark a function `nonReentrant`, you should also * mark it `external`. */ contract ReentrancyGuard { /** * @dev We use a single lock for the whole contract. */ b...
Tranferring to the candidate first
function payOutBounty(address _referrerAddress, address _candidateAddress) public onlyOwner nonReentrant returns(bool){ uint256 individualAmounts = (ERC20(INDToken).balanceOf(this) / 100) * 50; assert(block.timestamp >= endDate); assert(ERC20(INDToken).transfer(_candidateAddress, in...
11,664,685
[ 1, 4625, 348, 7953, 560, 30, 225, 840, 304, 74, 20245, 358, 326, 5500, 1122, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8843, 1182, 38, 592, 93, 12, 2867, 389, 1734, 11110, 1887, 16, 1758, 389, 19188, 1887, 13, 1071, 1338, 5541, 1661, 426, 8230, 970, 1135, 12, 6430, 15329, 203, 3639, 2254, 5034, 7327, 6275, 87, 273, 261, 654, 39, 3462, ...
./full_match/1/0x183A2ef3397f796064ad8Aa1637395B091466f5D/sources/contracts/MysteryBowl.sol
* @dev Throws if called when contract is paused./
modifier isNotPaused() { require(isPaused == false, "Contract Paused"); _; }
16,605,236
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 22435, 309, 2566, 1347, 6835, 353, 17781, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 9606, 8827, 28590, 1435, 288, 203, 3639, 2583, 12, 291, 28590, 422, 629, 16, 315, 8924, 21800, 3668, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity 0.5.4; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is ch...
To make sure if it already was voted
address[] public ballot;
926,679
[ 1, 4625, 348, 7953, 560, 30, 225, 2974, 1221, 3071, 309, 518, 1818, 1703, 331, 16474, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1758, 8526, 1071, 26503, 352, 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, -100, -100, ...
// contracts/BadgeQueryOracle.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../node_modules/@openzeppelin/contracts/access/Ownable.sol"; import "../node_modules/@openzeppelin/contracts/utils/Counters.sol"; /** * @title BadgeQueryOracle * @author Geoffrey Garcia * @notice Contract to use to ru...
the set/subgraph on the indexer to use (possible values: "uniswap", "compound" ,"aave" ,"ethereum")
string protocol;
2,577,660
[ 1, 4625, 348, 7953, 560, 30, 225, 326, 444, 19, 1717, 4660, 603, 326, 12635, 358, 999, 261, 12708, 924, 30, 315, 318, 291, 91, 438, 3113, 315, 22585, 6, 269, 6, 69, 836, 6, 269, 6, 546, 822, 379, 7923, 203, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 533, 1771, 31, 1171, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.4.25; /** * * ETH CRYPTOCURRENCY DISTRIBUTION PROJECT v 1.0 * * GitHub - https://github.com/fortune333/Fortune333 * * * * - GAIN 8% - PER 1 MONTH (interest is charges in equal parts every 1 sec) * 0.26 - PER 1 DAY * 0.011 - PER 1 HOUR * 0.00018 - ...
get current investment from revolution 2
(uint currInvestment, ) = pe.rev2Storage.investorInfo(investorAddr);
7,290,735
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 783, 2198, 395, 475, 628, 5588, 5889, 576, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 261, 11890, 4306, 3605, 395, 475, 16, 262, 273, 2804, 18, 9083, 22, 3245, 18, 5768, 395, 280, 966, 12, 5768, 395, 280, 3178, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.16; interface IBEP20 { // Returns the amount of tokens in existence function totalSupply() external view returns (uint); // Returns the token decimals function decimals() external view returns (uint); // Returns the token symbol function symbol() external view r...
Destroy `amount` tokens from `msg.sender`, reducing `msg.sender` must be the token owner
function burn(uint amount) public onlyOwner returns (bool) { _burn(_msgSender(), amount); return true; }
2,474,174
[ 1, 4625, 348, 7953, 560, 30, 225, 15701, 1375, 8949, 68, 2430, 628, 1375, 3576, 18, 15330, 9191, 9299, 2822, 1375, 3576, 18, 15330, 68, 1297, 506, 326, 1147, 3410, 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, 202, 915, 18305, 12, 11890, 3844, 13, 1071, 1338, 5541, 1135, 261, 6430, 13, 288, 203, 202, 202, 67, 70, 321, 24899, 3576, 12021, 9334, 3844, 1769, 203, 203, 202, 202, 2463, 638, 31, 203, 202, 97, 203, 203, 2, -100, -100, -100,...
./partial_match/1/0x6D3e52161c075E10cDc95B3B0Fc9793A547167a2/sources/OperatorFilterRegistry.sol
* @title OperatorFilterRegistry @notice Borrows heavily from the QQL BlacklistOperatorFilter contract: @notice This contracts allows tokens or token owners to register specific addresses or codeHashes that may be restricted according to the isOperatorAllowed function./
contract OperatorFilterRegistry is IOperatorFilterRegistry, OperatorFilterRegistryErrorsAndEvents { using EnumerableSet for EnumerableSet.AddressSet; using EnumerableSet for EnumerableSet.Bytes32Set; bytes32 constant EOA_CODEHASH = keccak256(""); mapping(address => EnumerableSet.AddressSet) private _f...
15,947,728
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 225, 11097, 1586, 4243, 632, 20392, 605, 280, 3870, 3904, 842, 3220, 628, 326, 2238, 2024, 22467, 1098, 5592, 1586, 6835, 30, 632, 20392, 1220, 20092, 5360, 2430, 578, 1147, 25937, 358, 174...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11097, 1586, 4243, 353, 1665, 457, 639, 1586, 4243, 16, 11097, 1586, 4243, 4229, 1876, 3783, 288, 203, 565, 1450, 6057, 25121, 694, 364, 6057, 25121, 694, 18, 1887, 694, 31, 203, 565, 1450, 6057, 25121, 694, 364, 6057, 25121...
pragma solidity ^0.4.13; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // ...
Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: Please use `increas...
function approve(address spender, uint256 value) public unlessFrozen unlessUpgraded returns (bool) { require(spender != address(0)); require(!frozenAccount[spender]); require(msg.sender != spender); externalStorage.setAllowance(msg.sender, spender, value); emit Approval(msg.sender, spender, valu...
275,489
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 359, 834, 716, 12770, 392, 1699, 1359, 598, 333, 707, 5186, 899, 326, 18404, 716, 18626, 2026, 999, 3937, 326, 1592, 471, 326, 394, 1699, 1359, 635, 640, 22618, 340, 2492, 9543, 18, 6942, 3323,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 5034, 460, 13, 1071, 3308, 42, 9808, 3308, 1211, 19305, 1135, 261, 6430, 13, 288, 203, 565, 2583, 12, 87, 1302, 264, 480, 1758, 12, 20, 10019, 203, 565, 2583, 12, 5, 28138, ...
./full_match/80001/0x145af2AcDfaCecF6ae8B04458c7F54E0fB01d77b/sources/contracts/Metadata.sol
Limit One Admire Per 24Hrs per NFTLimit Admires per NFTOnly Check if Invoked NFT is trying to admire more than 5 times within 24 hrs.Reset Count on New DayReset Last VotedDual Matrix TransferTransfer Royalty to Either sideRoute, if enabled, allows to redirect funds for Task Reward SystemSend Funds to CrowdFund Rewards ...
function admireNft(string memory target, string memory invoker) public virtual { Storage storage s = getStorage(); require(_exists(s.tokenId[target]), "Invalid Target"); require(_exists(s.tokenId[invoker]), "Invalid Invoker"); uint256 invokerId = s.tokenId[invoker...
9,500,882
[ 1, 4625, 348, 7953, 560, 30, 7214, 6942, 4052, 81, 577, 5722, 4248, 44, 5453, 1534, 423, 4464, 3039, 4052, 81, 2814, 1534, 423, 4464, 3386, 2073, 309, 5454, 14276, 423, 4464, 353, 8374, 358, 31003, 577, 1898, 2353, 1381, 4124, 3470, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31003, 577, 50, 1222, 12, 1080, 3778, 1018, 16, 533, 3778, 24920, 13, 203, 3639, 1071, 203, 3639, 5024, 203, 565, 288, 203, 3639, 5235, 2502, 272, 273, 13840, 5621, 203, 3639, 2583, 24899, 1808, 12, 87, 18, 2316, 548, ...
./partial_match/4/0xB721f6205518387c7377Efd8983f62Bb02CC9439/sources/SampleNft.sol
* @dev Returns an Ethereum Signed Message, created from a `hash`. This replicates the behavior of the JSON-RPC method. See {recover}./ 32 is the length in bytes of hash, enforced by the type signature above
function toEthSignedMessageHash(bytes32 hash) public pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); }
8,548,089
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 392, 512, 18664, 379, 16724, 2350, 16, 2522, 628, 279, 1375, 2816, 8338, 1220, 14447, 815, 326, 6885, 434, 326, 1796, 17, 8087, 707, 18, 2164, 288, 266, 3165, 5496, 19, 3847, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 358, 41, 451, 12294, 1079, 2310, 12, 3890, 1578, 1651, 13, 1071, 16618, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 327, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 31458, 92, 3657, 41, 18664, 379, 16724, 2350...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when d...
View function to see pending $KINGs on frontend.
function pendingKing(uint256 pid, address _user) external view returns (uint256) { _validatePid(pid); PoolInfo storage pool = poolInfo[pid]; UserInfo storage user = userInfo[pid][_user]; uint256 kingPerShare = pool.accKingPerShare; uint32 curBloc...
1,345,952
[ 1, 4625, 348, 7953, 560, 30, 225, 4441, 445, 358, 2621, 4634, 271, 47, 1360, 87, 603, 15442, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 4634, 47, 310, 12, 11890, 5034, 4231, 16, 1758, 389, 1355, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 389, 5662, 12478, 12, 6610, 1769, 203, 3639, 8828, 966, ...
./partial_match/42220/0xc9e2af6d4EfEa2BDDC2e836F79272b367fAD1712/sources/contracts/DomainChain.sol
require(bytes(_TLD).length != 0, "Top level domain must be non-empty");
function buyDomain(string memory domain) external payable { require(_saleIsActive, "Sale must be active to buy"); require(bytes(domain).length != 0, "Domain must be non-empty"); require(msg.value >= getPrice(), "Insufficient Token or Token value sent is not correct"); string memory _domain = Strin...
3,498,631
[ 1, 4625, 348, 7953, 560, 30, 2583, 12, 3890, 24899, 5967, 40, 2934, 2469, 480, 374, 16, 315, 3401, 1801, 2461, 1297, 506, 1661, 17, 5531, 8863, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 202, 915, 30143, 3748, 12, 1080, 3778, 2461, 13, 3903, 8843, 429, 7010, 202, 95, 203, 202, 202, 6528, 24899, 87, 5349, 2520, 3896, 16, 315, 30746, 1297, 506, 2695, 358, 30143, 8863, 203, 1082, 203, 202, 202, 6528, 12, 3890, 12, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "./MerkleProof.sol"; import "./Ownable.sol"; import "./ERC721Enumerable.sol"; import "./PaymentSplitter.sol"; contract GnomeFrens is ERC721Enumerable, Ownable, PaymentSplitter { string public baseURI; address public pro...
don't forget to prepend: 0x
function setWhitelistMerkleRoot(bytes32 _whitelistMerkleRoot) external onlyOwner { whitelistMerkleRoot = _whitelistMerkleRoot; }
90,583
[ 1, 4625, 348, 7953, 560, 30, 225, 2727, 1404, 13776, 358, 8254, 30, 374, 92, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 18927, 8478, 15609, 2375, 12, 3890, 1578, 389, 20409, 8478, 15609, 2375, 13, 3903, 1338, 5541, 288, 203, 3639, 10734, 8478, 15609, 2375, 273, 389, 20409, 8478, 15609, 2375, 31, 203, 565, 289, 203, 203, 2, -100, -100,...
// SPDX-License-Identifier: GPL-3.0 /*////////////////////////////////////////////////////////////////////////////////////////////////// * * _____ ____ __ __ __ __ _ _ _____ ______ _____ _____ ______ ______ _____ * / ____/ __ \| \/ | \/ | /\ | \ | | __ \| ____| __ \ | __ \| ____| ...
* @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug...
contract Ownable is Context { using SafeMath for uint256; address private _owner; address payable private _communityWalletAddress; address payable private _maintenanceWalletAddress; address payable private _liquidityWalletAddress; event OwnershipTransferred(address indexed previousOwner, addres...
2,478,803
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13456, 1605, 1492, 8121, 279, 5337, 2006, 3325, 12860, 16, 1625, 1915, 353, 392, 2236, 261, 304, 3410, 13, 716, 848, 506, 17578, 12060, 2006, 358, 2923, 4186, 18, 2525, 805, 16, 326, 3410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 14223, 6914, 353, 1772, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1758, 3238, 389, 8443, 31, 203, 565, 1758, 8843, 429, 3238, 389, 20859, 16936, 1887, 31, 203, 565, 1758, 8843, 429, 3238, 389, 29715, ...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "./GMON.sol"; import "./GameCollectionV2.sol"; import "./GameFactory.sol"; struct GameGuildInfo { uint256 id; uint256 land; string name; string symbol; string logo; } struct GuildRequest { bytes32 referrer; uint256 monster...
Transfer GMON token as join fee Transfer guild token as join fee GMON_GUILD(GUILD_TOKEN_ADDRESS).transferFrom(requester, address(this), JOIN_GTOKEN_AMOUNT);
function requestJoin( address requester, bytes32 referrer, uint256 monsterId ) public { require(_joinRequests[requester].referrer == 0, "Already requested."); address gmon_address = GameFactory(Game_FACTORY).GMON_ADDRESS(); address treasury_address = GameFactory(...
2,549,105
[ 1, 4625, 348, 7953, 560, 30, 225, 12279, 611, 17667, 1147, 487, 1233, 14036, 12279, 15488, 1147, 487, 1233, 14036, 611, 17667, 67, 30673, 11382, 12, 30673, 11382, 67, 8412, 67, 15140, 2934, 13866, 1265, 12, 26192, 16, 1758, 12, 2211, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 590, 4572, 12, 203, 3639, 1758, 19961, 16, 203, 3639, 1731, 1578, 14502, 16, 203, 3639, 2254, 5034, 6921, 8190, 548, 203, 565, 262, 1071, 288, 203, 3639, 2583, 24899, 5701, 6421, 63, 26192, 8009, 1734, 11110, 422, 374, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import './interface/ISCVNFT.sol'; import './Minter.sol'; /** * The contract mints a random SCV NFT. * Users need to pay with an ERC20 `token` with certain `amount` * Random number generated from block.timestamp will be used to * choose a NFT spec */ contra...
* The contract mints a random SCV NFT. Users need to pay with an ERC20 `token` with certain `amount` Random number generated from block.timestamp will be used to choose a NFT spec/
contract BSCNewsMinter is Minter { constructor() Minter(0, address(0)) { baseSpecId = 66; cpShare = 0; maxAmount = 500; } function amountInVault(address) public pure override returns (uint256) { return 0; } function setMaxAmount(uint256 amount) public virtual { require( hasRole(OP...
2,552,730
[ 1, 4625, 348, 7953, 560, 30, 380, 1021, 6835, 312, 28142, 279, 2744, 8795, 58, 423, 4464, 18, 12109, 1608, 358, 8843, 598, 392, 4232, 39, 3462, 1375, 2316, 68, 598, 8626, 1375, 8949, 68, 8072, 1300, 4374, 628, 1203, 18, 5508, 903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 605, 2312, 17948, 49, 2761, 353, 490, 2761, 288, 203, 203, 225, 3885, 1435, 490, 2761, 12, 20, 16, 1758, 12, 20, 3719, 288, 203, 565, 1026, 1990, 548, 273, 22342, 31, 203, 565, 3283, 9535, 273, 374, 31, 203, 565, 943, ...
/** *Submitted for verification at Etherscan.io on 2022-03-17 */ // SPDX-License-Identifier: UNLICENSED // File: contracts/abstract/OwnableDelegateProxy.sol pragma solidity 0.8.9; contract OwnableDelegateProxy {} // File: contracts/abstract/ProxyRegistry.sol pragma solidity 0.8.9; // Part: ProxyRegistry cont...
* @dev return card type of designated NFT with its identifier/
function cardType(uint256 _id) public view returns (uint256) { require(_exists(_id), "Deed NFT doesn't exists"); return tokenType[_id]; }
7,635,464
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 327, 5270, 618, 434, 25264, 423, 4464, 598, 2097, 2756, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5270, 559, 12, 11890, 5034, 389, 350, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 24899, 1808, 24899, 350, 3631, 315, 758, 329, 423, 4464, 3302, 1404, 1704, 8863, 203, 3639, 327, 22302, 63, 67, 350...
./full_match/42/0x2e4c2D09C80616932742410920DB7C1621B00658/sources/TheCrypticZoo/AnimalBase.sol
@dev Total animals, all breeds in all species, in existence currently.
uint256 public totalAnimals;
16,251,251
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 10710, 10536, 1031, 16, 777, 324, 266, 9765, 316, 777, 12891, 16, 316, 15782, 4551, 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, ...
[ 1, 1, 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, 2254, 5034, 1071, 2078, 979, 11366, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.19; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); ...
creates a new swap make sure you aren't overwriting a pre-existing swap (so the original initiator can't rewrite the terms) require that the sender has allowed the tokens to be withdrawn from their account create the new swap
function initiate(uint _expiration, bytes20 _hash, address _participant, address _token, uint256 _value) public { Swap storage s = swaps[_participant][_hash]; require(s.exists == false); ERC20 token = ERC20(_token); require(token.allowance(msg.sender, this) == _value); ...
12,764,198
[ 1, 4625, 348, 7953, 560, 30, 225, 3414, 279, 394, 7720, 1221, 3071, 1846, 11526, 1404, 23492, 279, 675, 17, 11711, 7720, 261, 2048, 326, 2282, 26030, 848, 1404, 10738, 326, 6548, 13, 2583, 716, 326, 5793, 711, 2935, 326, 2430, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18711, 12, 11890, 389, 19519, 16, 1731, 3462, 389, 2816, 16, 1758, 389, 2680, 14265, 16, 1758, 389, 2316, 16, 2254, 5034, 389, 1132, 13, 1071, 288, 203, 3639, 12738, 2502, 272, 273, 1352, 6679, 63, 67, 2680, 14265, 6362...
// ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // ODIN token contract // ---------------------------------------------------------------------------- pragma solidity ^0.4.21; library SafeMath { function mul(uint256 a, uint256 b) internal pu...
no restrictions after june 30, 2019
if (block.timestamp>1569974400) {return true;}
1,769,859
[ 1, 4625, 348, 7953, 560, 30, 225, 1158, 17499, 1839, 525, 7556, 5196, 16, 30562, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 2629, 18, 5508, 34, 28946, 2733, 5608, 16010, 13, 288, 2463, 638, 31, 97, 15604, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** * Copyright (c) 2017-present, Parsec Labs (parseclabs.org) * * This source code is licensed under the Mozilla Public License, version 2, * found in the LICENSE file in the root directory of this source tree. */ pragma solidity ^0.4.19; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "...
check deposit values
uint32 depositId;
944,686
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 443, 1724, 924, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1578, 443, 1724, 548, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; // Copyright © 2018 Weald Technology Trading Limited // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unles...
* generateRandomValue generates a random value for an instance given the round number, the addresses of the participants and their individual values. If any of the values supplied are invalid then this will revert. As such, if it returns then the value can be considered trusted. @param _instanceId the ID of the instan...
function generateRandomValue(uint256 _instanceId, address[] memory _parties, uint256 _round, bytes32[] memory _values) public view returns (bytes32) { require(rounds[_instanceId] != 0); require(_round > 0); require(_round <= rounds[_instanceId]); require(_parties.length > 0); ...
6,444,073
[ 1, 4625, 348, 7953, 560, 30, 380, 2103, 8529, 620, 6026, 279, 2744, 460, 364, 392, 791, 864, 326, 3643, 1300, 16, 326, 6138, 434, 326, 22346, 471, 3675, 7327, 924, 18, 971, 1281, 434, 326, 924, 4580, 854, 2057, 1508, 333, 903, 152...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2103, 8529, 620, 12, 11890, 5034, 389, 1336, 548, 16, 1758, 8526, 3778, 389, 2680, 606, 16, 2254, 5034, 389, 2260, 16, 1731, 1578, 8526, 3778, 389, 2372, 13, 1071, 1476, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 2583, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "./Domain.sol"; contract CookTarget { function onCook(address sender, bytes calldata data) public payable virtual returns (bool success, bytes memory result) { // Check that msg.sender is the BoringCoo...
Verify that the cook call was signed and pass on the cook call params. Split out for stack reasons.
function _verifySignature(bytes memory data) internal returns ( address, CookTarget, bytes memory, uint256 ) { (address sender, CookTarget target, bytes memory data_, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) =...
2,575,808
[ 1, 4625, 348, 7953, 560, 30, 225, 8553, 716, 326, 15860, 745, 1703, 6726, 471, 1342, 603, 326, 15860, 745, 859, 18, 5385, 596, 364, 2110, 14000, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 8705, 5374, 12, 3890, 3778, 501, 13, 203, 3639, 2713, 203, 3639, 1135, 261, 203, 5411, 1758, 16, 203, 5411, 385, 1184, 2326, 16, 203, 5411, 1731, 3778, 16, 203, 5411, 2254, 5034, 203, 3639, 262, 203, 565, 288, 20...
./full_match/4/0x56C0C6a2924aFaB0b9ADad52C8fDf91A5689738D/sources/AglaiaToken.sol
* @dev Throws if called by any account other than the owner./
modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; }
673,743
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 22435, 309, 2566, 635, 1281, 2236, 1308, 2353, 326, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 202, 202, 20597, 1338, 5541, 1435, 288, 203, 1082, 202, 6528, 24899, 8443, 422, 389, 3576, 12021, 9334, 315, 5460, 429, 30, 4894, 353, 486, 326, 3410, 8863, 203, 1082, 202, 67, 31, 203, 202, 202, 97, 203, 203, 2, -100, -100, -1...
./partial_match/4/0x64091B66A573a6C322B0Fe59b19667F5F40f4947/sources/FrogStats.sol
* @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use ...
contract Ownable is Context { address private _owner; address private _factory; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); event FactoryTransferred(address indexed previousFactory, address indexed newFactory); constructor () internal { _owner = _m...
8,611,893
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13456, 1605, 1492, 8121, 279, 5337, 2006, 3325, 12860, 16, 1625, 1915, 353, 392, 2236, 261, 304, 3410, 13, 716, 848, 506, 17578, 12060, 2006, 358, 2923, 4186, 18, 1220, 1605, 353, 1399, 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, 14223, 6914, 353, 1772, 288, 203, 565, 1758, 3238, 389, 8443, 31, 203, 565, 1758, 3238, 389, 6848, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 56...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "../Interfaces.sol"; import "../DAOStackInterfaces.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; interface OldMarketMaker { struct ReserveToken { // Determines the reserve token balance // that the reserve contract...
/identity has no need for special permissions, just needs to be registeredformula has no need to be a registered scheme
function upgradeBasic( INameService ns, bytes32[] calldata nameHash, address[] calldata nameAddress, address[] calldata staking, uint256[] calldata monthlyRewards ) external onlyOwner { require(nameHash.length == nameAddress.length, "length mismatch"); require(staking.length == monthlyRewards.length, "s...
983,927
[ 1, 4625, 348, 7953, 560, 30, 342, 10781, 711, 1158, 1608, 364, 4582, 4371, 16, 2537, 4260, 358, 506, 4104, 18203, 711, 1158, 1608, 358, 506, 279, 4104, 4355, 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, 202, 915, 8400, 8252, 12, 203, 202, 202, 45, 461, 1179, 3153, 16, 203, 202, 202, 3890, 1578, 8526, 745, 892, 508, 2310, 16, 203, 202, 202, 2867, 8526, 745, 892, 508, 1887, 16, 203, 202, 202, 2867, 8526, 745, 892, 384, 6159, 1...
pragma solidity ^0.4.21; // File: node_modules/zeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } u...
* @title FinalizableCrowdsale @dev Extension of Crowdsale where an owner can do extra work after finishing./
contract FinalizableCrowdsale is Crowdsale, Ownable { using SafeMath for uint256; bool public isFinalized = false; event Finalized(); function finalize() onlyOwner public { require(!isFinalized); finalization(); Finalized(); isFinalized = true; } function finalization() internal { }...
2,074,421
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 16269, 6934, 39, 492, 2377, 5349, 632, 5206, 10021, 434, 385, 492, 2377, 5349, 1625, 392, 3410, 848, 741, 2870, 1440, 1839, 4076, 310, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 16269, 6934, 39, 492, 2377, 5349, 353, 385, 492, 2377, 5349, 16, 14223, 6914, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 225, 1426, 1071, 29200, 1235, 273, 629, 31, 203, 203, 225, 871, 16269, 1235, 5...
./full_match/5/0x998bf0Eb2ee683020eC906FAF16f81Fc22641435/sources/contracts/core/connext/helpers/OZERC20.sol
* @dev Destroys `_amount` tokens from `_account`, reducing the total supply. Emits a {Transfer} event with `to` set to the zero address. Requirements: - `_account` cannot be the zero address. - `_account` must have at least `_amount` tokens./
function _burn(address _account, uint256 _amount) internal virtual { require(_account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(_account, address(0), _amount); balances[_account] = balances[_account].sub(_amount, "ERC20: burn amount exceeds balance"); supply = supply....
1,904,036
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 28510, 28599, 1375, 67, 8949, 68, 2430, 628, 1375, 67, 4631, 9191, 9299, 2822, 326, 2078, 14467, 18, 7377, 1282, 279, 288, 5912, 97, 871, 598, 1375, 869, 68, 444, 358, 326, 3634, 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, 1, 1...
[ 1, 225, 445, 389, 70, 321, 12, 2867, 389, 4631, 16, 2254, 5034, 389, 8949, 13, 2713, 5024, 288, 203, 565, 2583, 24899, 4631, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 18305, 628, 326, 3634, 1758, 8863, 203, 203, 565, 389, ...
./full_match/1/0x0Aa2d34Ad40e482ADaF829ff20245f055944D726/sources/contracts/GoalToken.sol
Check that the calling account has the minter role
function mint(address to, uint256 amount) public { require(hasRole(MINTER_ROLE, msg.sender), "Caller is not a minter"); _mint(to, amount); }
2,907,405
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 716, 326, 4440, 2236, 711, 326, 1131, 387, 2478, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 312, 474, 12, 2867, 358, 16, 2254, 5034, 3844, 13, 1071, 288, 203, 3639, 2583, 12, 5332, 2996, 12, 6236, 2560, 67, 16256, 16, 1234, 18, 15330, 3631, 315, 11095, 353, 486, 279, 1131, 387, 8863, 203, 3639, 389, 81, 474,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./UniswapV2Library.sol"; import "./ISwapRouter.sol"; import "./interfaces/IPoolAddressesProvider.sol"; import "./FlashLoanSimpleReceiverBase.sol"; import "./IERC20.sol"; /** * 在 AAVE 中借款 token A * 使用 token A 在 Uniswap V2 中交易兑换 token B,然后在 Uniswa...
asset -> Btoken in uniswap v2 首先授权借的 dai 给 V2 router 在 V2 router 中交易兑换 Btoken amounts1[1] 即为兑换的 Btoken 数量 Btoken -> asset in uniswap v3 1:3 首先授权兑换后的的 Btoken 给 V3 routercheck the contract has the specified balance
function executeOperation( address asset, uint256 amount, uint256 premium, ) public override returns (bool) { (address Btoken, address userAddress) = abi.decode(params, (address, address)); IERC20(asset).approve(SWAP_V2_ROUTER, amount); path1[0] = asse...
15,816,490
[ 1, 4625, 348, 7953, 560, 30, 225, 3310, 317, 605, 2316, 316, 640, 291, 91, 438, 331, 22, 225, 170, 104, 249, 166, 232, 235, 167, 241, 235, 167, 256, 230, 166, 227, 258, 168, 253, 231, 5248, 77, 225, 168, 124, 252, 776, 22, 463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 2988, 12, 203, 3639, 1758, 3310, 16, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 2254, 5034, 23020, 5077, 16, 203, 565, 262, 1071, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 261, 2867, 605, 2316, 16, 1758, 729, ...
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title OxyFarmsNFT * @dev The NFTrees token contract for the fir...
* @dev mintByOwner is a function to allow the preminting for team, partners, and community reserve. Only the contract owner can access this function. @param _to address we are going to mint the NFTrees to. @param _quantity number of NFTrees we want to mint./
function mintByOwner(address _to, uint256 _quantity) public onlyOwner { require(_quantity > 0, "OxyFarmsNFT::mintByOwner: Quantity cannot be zero."); require(_quantity <= MAX_SALE, "OxyFarmsNFT::mintByOwner: Quantity cannot be bigger than MAX_SALE."); require(totalSupply().add(_quantity) <= ...
254,236
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 312, 474, 858, 5541, 353, 279, 445, 358, 1699, 326, 23020, 474, 310, 364, 5927, 16, 1087, 9646, 16, 471, 19833, 20501, 18, 5098, 326, 6835, 3410, 848, 2006, 333, 445, 18, 632, 891, 389,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 474, 858, 5541, 12, 2867, 389, 869, 16, 2254, 5034, 389, 16172, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 24899, 16172, 405, 374, 16, 315, 51, 1698, 17393, 959, 50, 4464, 2866, 81, 474, 858, 5541, 30, 18189, 27...
./full_match/80001/0xCB44972B2035B435Bb095d751F39794bfF564371/sources/contracts/abstract/DIDOpt.sol
* @notice optData is store data, this mapping use 'tokenId' and 'publicKey' as index/* @notice publicKeyUsed is store data boolean status, this mapping use 'tokenId' and 'publicKey' as index/* @notice publicKeyInfo is store data array of 'tokenId', this mapping use 'publicKey' as index/* @dev we create 2 events namely ...
) public view virtual returns (uint256[] memory, string[] memory) { uint256[] memory tokenId = publicKeyTokenList[publicKey]; string[] memory scoops = new string[](tokenId.length); for (uint256 a; a < tokenId.length; a++) { scoops[a] = optData[tokenId[a]][publicKey]; } ...
9,466,016
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2153, 751, 353, 1707, 501, 16, 333, 2874, 999, 296, 2316, 548, 11, 471, 296, 482, 653, 11, 487, 770, 20308, 632, 20392, 12085, 6668, 353, 1707, 501, 1250, 1267, 16, 333, 2874, 999, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 1071, 1476, 5024, 1135, 261, 11890, 5034, 8526, 3778, 16, 533, 8526, 3778, 13, 288, 203, 3639, 2254, 5034, 8526, 3778, 1147, 548, 273, 12085, 1345, 682, 63, 482, 653, 15533, 203, 3639, 533, 8526, 3778, 30178, 4473, 273, ...
./partial_match/1/0xe300C0DBDd784Cc2CD1A86b2126Fc95629389F91/sources/contracts/modules/credit/SecuredLine.sol
see IsecuredLine.rollover require all debt successfully paid already require new line isn't activated yet ensure that line we are sending can accept them. There is no recovery option.
function rollover(address newLine) external override onlyBorrower returns (bool) { if (status != LineLib.STATUS.REPAID) { revert DebtOwed(); } if (ILineOfCredit(newLine).status() != LineLib.STATUS.UNINITIALIZED) { revert BadNewLine(); } SpigotedLineLib...
15,654,261
[ 1, 4625, 348, 7953, 560, 30, 225, 2621, 467, 3321, 2862, 1670, 18, 922, 21896, 2583, 777, 18202, 88, 4985, 30591, 1818, 2583, 394, 980, 5177, 1404, 14892, 4671, 3387, 716, 980, 732, 854, 5431, 848, 2791, 2182, 18, 6149, 353, 1158, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 10643, 21896, 12, 2867, 8093, 13, 3903, 3849, 1338, 38, 15318, 264, 1135, 261, 6430, 13, 288, 203, 3639, 309, 261, 2327, 480, 5377, 5664, 18, 8608, 18, 862, 4066, 734, 13, 288, 203, 5411, 15226, 1505, 23602, 3494, 329, ...
pragma solidity ^0.4.19; // Interface contract to be implemented by SyscoinToken contract SyscoinTransactionProcessor { function processTransaction(uint txHash, uint value, address destinationAddress, uint32 _assetGUID, address superblockSubmitterAddress) public returns (uint); function burn(uint _value, ...
@dev - Returns superblock internal index
function getSuperblockIndex(bytes32 superblockHash) public view returns (uint32) { return superblocks[superblockHash].index; }
5,532,013
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 300, 2860, 2240, 2629, 2713, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15172, 2629, 1016, 12, 3890, 1578, 2240, 2629, 2310, 13, 1071, 1476, 1135, 261, 11890, 1578, 13, 288, 203, 3639, 327, 2240, 7996, 63, 9565, 2629, 2310, 8009, 1615, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.7; import "../strategy-png-farm-base-V2.sol"; contract StrategyPngSporePngLp is StrategyPngFarmBaseV2 { // Token addresses address public png_spore_png_rewards = 0x12A33F6B0dd0D35279D402aB61587fE7eB23f7b0; address public png_spore_png_lp = 0xad24a72ffE0...
Token addresses **** State Mutations ****
contract StrategyPngSporePngLp is StrategyPngFarmBaseV2 { address public png_spore_png_rewards = 0x12A33F6B0dd0D35279D402aB61587fE7eB23f7b0; address public png_spore_png_lp = 0xad24a72ffE0466399e6F69b9332022a71408f10b; address public spore = 0x6e7f5C0b9f4432716bDd0a77a3601291b9D9e985; constructor( ...
1,071,513
[ 1, 4625, 348, 7953, 560, 30, 225, 3155, 6138, 380, 14465, 3287, 14138, 1012, 380, 14465, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19736, 52, 3368, 3389, 479, 52, 3368, 48, 84, 353, 19736, 52, 3368, 42, 4610, 2171, 58, 22, 288, 203, 565, 1758, 1071, 14476, 67, 1752, 479, 67, 6446, 67, 266, 6397, 273, 374, 92, 2138, 37, 3707, 42, 26, 38, 20, 449, ...
//Address: 0xa43ef369d12dc7f016003c933dcbc626cc8ea08d //Contract name: InteractiveCrowdsaleLib //Balance: 0 Ether //Verification Date: 5/15/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.21; /** * @title InteractiveCrowdsaleLib * @author Modular, Inc * * version 2.0.0 * Copyright (c) 2017 ...
Indicates when a bidder submits a bid to the crowdsale
event LogBidAccepted(address indexed bidder, uint256 amount, uint256 personalValuation);
1,753,644
[ 1, 4625, 348, 7953, 560, 30, 225, 18336, 1347, 279, 9949, 765, 720, 22679, 279, 9949, 358, 326, 276, 492, 2377, 5349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 871, 1827, 17763, 18047, 12, 2867, 8808, 9949, 765, 16, 2254, 5034, 3844, 16, 2254, 5034, 17816, 58, 700, 367, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// Beta Job on the Keep4r.Network 🚀 // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function ...
we only want to commit updates once per period (i.e. windowSize / granularity)
function _update(address pair) internal returns (bool) { uint timeElapsed = block.timestamp - lastObservation(pair).timestamp; if (timeElapsed > periodSize) { (uint price0Cumulative, uint price1Cumulative,) = UniswapV2OracleLibrary.currentCumulativePrices(pair); pairObservati...
2,338,974
[ 1, 4625, 348, 7953, 560, 30, 225, 732, 1338, 2545, 358, 3294, 4533, 3647, 1534, 3879, 261, 77, 18, 73, 18, 27064, 342, 25380, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 389, 2725, 12, 2867, 3082, 13, 2713, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 813, 28827, 273, 1203, 18, 5508, 300, 1142, 26199, 367, 12, 6017, 2934, 5508, 31, 203, 3639, 309, 261, 957, 28827, 405, 3879, 1225, 13, 2...
./partial_match/4/0x826596A059569837B5130e36Ef60A3EaB13C2bCf/sources/Inflator.sol
* @param credit Amount of underlyings we got from donor @return borrowAmount Maximum allowed borrow amount in current position @return redeemAmount Maximum allowed redeem amount in current position @return inflateAmount Amount we have to inflate to reach riskThreshold @dev can modify state, by accruing interest @dev he...
function currentAmounts(uint credit) internal returns (Amounts memory a) { (, a.collateralFactor) = COMPTROLLER.markets(ctoken); a.borrowBalance = ctoken.borrowBalanceCurrent(agent); a.supplyBalance = ctoken.balanceOfUnderlying(agent); .mul(a.collateralFactor) .div(1e...
8,605,875
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 891, 12896, 16811, 434, 3613, 715, 899, 732, 2363, 628, 2727, 280, 632, 2463, 29759, 6275, 18848, 2935, 29759, 3844, 316, 783, 1754, 632, 2463, 283, 24903, 6275, 18848, 2935, 283, 24903, 3844, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 783, 6275, 87, 12, 11890, 12896, 13, 2713, 1135, 261, 6275, 87, 3778, 279, 13, 288, 203, 3639, 261, 16, 279, 18, 12910, 2045, 287, 6837, 13, 273, 5423, 1856, 25353, 18, 3355, 2413, 12, 299, 969, 1769, 203, 3639, 279, ...
/** *Submitted for verification at Etherscan.io on 2022-03-06 */ /* * Generated by Black Meta Corporation * Founded by @mikedbecker * Developed by @daveaneo * Advisory by @Thrasher66099 * Truly user operated & owned by @blackmeta_ */ pragma solidity ^0.8.0; interface IByteContract { function burn(address _from...
Check the merkle proof against the root hash array
for(uint256 i = 0; i < rootHash.length; i++)
7,681,689
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 326, 30235, 14601, 5314, 326, 1365, 1651, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 364, 12, 11890, 5034, 277, 273, 374, 31, 277, 411, 1365, 2310, 18, 2469, 31, 277, 27245, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xA16bE8d32934a9AaB272102AC4BB890481F4074E/sources/src/PrivatePool.sol
forgefmt: disable-start
event Initialize(address indexed baseToken, address indexed nft, uint128 virtualBaseTokenReserves, uint128 virtualNftReserves, uint56 changeFee, uint16 feeRate, bytes32 merkleRoot, bool useStolenNftOracle, bool payRoyalties);
9,718,394
[ 1, 4625, 348, 7953, 560, 30, 225, 21388, 8666, 30, 4056, 17, 1937, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 871, 9190, 12, 2867, 8808, 1026, 1345, 16, 1758, 8808, 290, 1222, 16, 2254, 10392, 5024, 2171, 1345, 607, 264, 3324, 16, 2254, 10392, 5024, 50, 1222, 607, 264, 3324, 16, 2254, 4313, 2549, 14667, 16, 2254, 2313, 14036, 4727, ...
/* Copyright 2022 Set Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
* ONLY OWNER: Initializes IssuanceExtension to the DelegatedManager and IssuanceModule to the SetToken @param _delegatedManager Instance of the DelegatedManager to initialize @param _maxManagerFee Maximum fee that can be charged on issue and redeem @param _managerIssueFee Fee to ...
function initializeModuleAndExtension( IDelegatedManager _delegatedManager, uint256 _maxManagerFee, uint256 _managerIssueFee, uint256 _managerRedeemFee, address _feeRecipient, address _managerIssuanceHook ) external onlyOwnerAndValidManager(_delega...
1,613,417
[ 1, 4625, 348, 7953, 560, 30, 380, 20747, 531, 22527, 30, 10188, 3128, 9310, 89, 1359, 3625, 358, 326, 24117, 690, 1318, 471, 9310, 89, 1359, 3120, 358, 326, 1000, 1345, 632, 891, 389, 3771, 1332, 690, 1318, 2398, 5180, 434, 326, 241...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 3120, 1876, 3625, 12, 203, 3639, 1599, 13451, 690, 1318, 389, 3771, 1332, 690, 1318, 16, 203, 3639, 2254, 5034, 389, 1896, 1318, 14667, 16, 203, 3639, 2254, 5034, 389, 4181, 12956, 14667, 16, 203, 3639, 2254, 5034, ...
./full_match/97/0x3A57F9f12928C940308208261e4d92Fa1819C1FB/sources/contracts/3_Ballot.sol
Текущая цена аукциона
uint256 auctionPrice;
5,025,567
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 145, 100, 145, 118, 145, 123, 146, 230, 146, 236, 145, 113, 146, 242, 225, 146, 233, 145, 118, 145, 126, 145, 113, 225, 145, 113, 146, 230, 145, 123, 146, 233, 145, 121, 145, 127, 145, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3639, 2254, 5034, 279, 4062, 5147, 31, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import '../interfaces/IConvexVault.sol'; import '../interfaces/ICurvePool.sol'; import '../interfaces/IStableSwap2Pool.sol'; import '../interfaces/IStableSwap3Pool.sol'; import './BaseStrategy.sol'; import '../interfaces/ExtendedIERC20.sol'; import '../interface...
stablecoin we want to convert to
(address _token, ) = getMostPremium();
71,392
[ 1, 4625, 348, 7953, 560, 30, 225, 14114, 12645, 732, 2545, 358, 1765, 358, 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, 5411, 261, 2867, 389, 2316, 16, 262, 273, 2108, 669, 23890, 5077, 5621, 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, -...
./full_match/1/0xCe677df0f78e471aAcd102d6465Fc53312617eB6/sources/BONE.sol
* @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor...
library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtrac...
3,164,571
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4266, 10422, 1879, 348, 7953, 560, 1807, 30828, 5295, 598, 3096, 9391, 4271, 18, 27443, 5295, 316, 348, 7953, 560, 2193, 603, 9391, 18, 1220, 848, 17997, 563, 316, 22398, 16, 2724, 5402, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 10477, 288, 203, 203, 7010, 565, 445, 527, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 276, 273, 279, 397, 324, 31, 203, 3639, 2583, 12, 71, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.8.0; //pragma experimental ABIEncoderV2; //pragma solidity ^0.5.0; import "./base/Ownable.sol"; import "./SupplychainHub.sol"; import "./registration/StandardRegisterUserHub.sol"; // Controller contract for product interaction & workflow contract P...
* Fund product identified by productID, for userRoleType & receiver address - receives the fund/Required funding
function fundProduct( address payable receiver, uint8 userRoleType, uint8 _universalProductCode ) public payable isFunder(userRoleType) returns (bool) { require(msg.sender.balance >= msg.value); product storage p = productIdToProductMapping[_universalProductCode]; ...
15,817,018
[ 1, 4625, 348, 7953, 560, 30, 380, 478, 1074, 3017, 9283, 635, 3017, 734, 16, 364, 729, 2996, 559, 473, 5971, 1758, 300, 17024, 326, 284, 1074, 19, 3705, 22058, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 284, 1074, 4133, 12, 203, 3639, 1758, 8843, 429, 5971, 16, 203, 3639, 2254, 28, 729, 2996, 559, 16, 203, 3639, 2254, 28, 389, 318, 14651, 4133, 1085, 203, 565, 262, 1071, 8843, 429, 17646, 9341, 12, 1355, 2996, 559, 1...
pragma solidity ^0.5.10; import "@openzeppelin/contracts/math/SafeMath.sol"; contract Bomberman { // Events event GameOpened(uint256 guestNumbers, uint256 stake, uint256 openedTime); event Joined(address participant, uint256 participants); event GameCanceled(uint256 closedTime); event GameReady(ui...
Events enum, structure, library Global Constants for klaytn for ethereum uint256 public EXPLOSION_TIME_DELIVERY = 2 minutes; uint256 public EXPLOSION_TIME_ROUND = 1 hours; Global Variables Modifier
contract Bomberman { event GameOpened(uint256 guestNumbers, uint256 stake, uint256 openedTime); event Joined(address participant, uint256 participants); event GameCanceled(uint256 closedTime); event GameReady(uint256 totalReward); event GameReset(uint256 currentRound); event GameStarted(uint256 ...
886,260
[ 1, 4625, 348, 7953, 560, 30, 225, 9043, 2792, 16, 3695, 16, 5313, 8510, 5245, 364, 417, 5544, 5088, 364, 13750, 822, 379, 565, 2254, 5034, 1071, 5675, 20485, 3686, 67, 4684, 67, 20643, 17529, 273, 576, 6824, 31, 565, 2254, 5034, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 16351, 605, 362, 744, 4728, 288, 203, 565, 871, 14121, 23115, 12, 11890, 5034, 13051, 10072, 16, 2254, 5034, 384, 911, 16, 2254, 5034, 10191, 950, 1769, 203, 565, 871, 4214, 329, 12, 2867, 14188, 16, 2254, 5034, 22346, 1769, 203, ...
pragma ton-solidity >= 0.44.0; pragma AbiHeader expire; pragma AbiHeader time; pragma AbiHeader pubkey; //================================================================================ // import "../interfaces/ILiquidFTRoot.sol"; import "../interfaces/ILiquidFTWallet.sol"; import "../interfaces/IOwnable.sol"; import...
======================================== Empty
function _getPairRatio(uint128 amount1, uint8 decimals1, uint128 amount2, uint8 decimals2) internal view returns (uint256, uint8) { if(amount1 == 0 || amount2 == 0) { return (0, 0); } uint256 ratio = amount1; uint8 decimals = _localDecimals + decimals2 -...
888,116
[ 1, 4625, 348, 7953, 560, 30, 422, 4428, 894, 631, 8953, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 588, 4154, 8541, 12, 11890, 10392, 3844, 21, 16, 2254, 28, 15105, 21, 16, 2254, 10392, 3844, 22, 16, 2254, 28, 15105, 22, 13, 2713, 1476, 1135, 261, 11890, 5034, 16, 2254, 28, 13, 203, 565, 288, 203, 3639, 309, ...
pragma solidity ^0.4.25; import "./BrightCoinTokenOwner_ICO.sol"; import "./BrightCoinERC20Contract_ICO.sol"; //Rules for Accredited Investors /* This is special BrightCoinToken that will allow User to invest to Token Only after Proper Checks and Validation as provide by US Regulatories Authorities */ /* import ...
BrightCoinInvestorKYC InvestorKYCInfo;BrightCoinInvestorCheck AccreditationInfo;
{ address public BrightCoinInvestorKYCAddress; address public BrightCoinInvestorAccreditationAddress; mapping (uint8 => uint256) private PeriodTokenAmount; bool InvestorSecurity; bool KYCSupport; constructor() public This is special BrightCoinToken that will allow User to invest to Token Only after Proper Check...
13,741,395
[ 1, 4625, 348, 7953, 560, 30, 605, 4083, 27055, 3605, 395, 280, 47, 61, 39, 5454, 395, 280, 47, 61, 39, 966, 31, 38, 4083, 27055, 3605, 395, 280, 1564, 15980, 1118, 8773, 966, 31, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 203, 203, 203, 2867, 1071, 605, 4083, 27055, 3605, 395, 280, 47, 61, 39, 1887, 31, 225, 203, 2867, 1071, 605, 4083, 27055, 3605, 395, 280, 8973, 1118, 8773, 1887, 31, 225, 203, 6770, 261, 11890, 28, 516, 2254, 5034, 13...
./full_match/5/0x2E354c5e21169D3FdA64B4a7852A4Fb228426c63/sources/contracts/CrowdFunding.sol
creating comapaignsis everything okay?
function createCampaign(address _owner,string memory _title,string memory _description,uint256 _target,uint256 _deadline,string memory _image) public returns (uint256){ Campaign storage campaign = campaigns[numberOfCampaigns]; require(campaign.deadline<block.timestamp,"the deadline should be a date ...
1,934,699
[ 1, 4625, 348, 7953, 560, 30, 4979, 532, 438, 69, 724, 87, 291, 7756, 21194, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 13432, 12, 2867, 389, 8443, 16, 1080, 3778, 389, 2649, 16, 1080, 3778, 389, 3384, 16, 11890, 5034, 389, 3299, 16, 11890, 5034, 389, 22097, 1369, 16, 1080, 3778, 389, 2730, 13, 1071, 1135, 261, 11890, 5034, 15329, 2...
/** *Submitted for verification at Etherscan.io on 2021-11-24 */ // Sources flattened with hardhat v2.6.8 https://hardhat.org // File contracts/timelib.sol //SPDX-License-Identifier: MIT AND BSD-4-Clause pragma solidity 0.8.3; // ---------------------------------------------------------------------------- // Bok...
------------------------------------------------------------------------ Calculate the number of days from 1970/01/01 to year/month/day using the date conversion algorithm from http:aa.usno.navy.mil/faq/docs/JD_Formula.php and subtracting the offset 2440588 so that 1970/01/01 is day 0 days = day - 32075 + ...
library BokkyPooBahsDateTimeLibrary { uint256 constant SECONDS_PER_DAY = 24 * 60 * 60; uint256 constant SECONDS_PER_HOUR = 60 * 60; uint256 constant SECONDS_PER_MINUTE = 60; int256 constant OFFSET19700101 = 2440588; uint256 constant DOW_MON = 1; uint256 constant DOW_TUE = 2; uint256 constan...
8,038,320
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 9029, 326, 1300, 434, 4681, 628, 5342, 7301, 19, 1611, 19, 1611, 358, 3286, 19, 7496, 19, 2881, 1450, 326, 1509, 4105, 4886, 628, 282, 1062, 30, 7598, 18, 407, 2135, 18, 11589, 93, 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, 12083, 605, 601, 18465, 52, 5161, 38, 69, 4487, 5096, 9313, 288, 203, 565, 2254, 5034, 5381, 17209, 67, 3194, 67, 10339, 273, 4248, 380, 4752, 380, 4752, 31, 203, 565, 2254, 5034, 5381, 17209, 67, 3194, 67, 21372, 273, 4752, 380,...
./full_match/1/0x959D3DdC42740F13A2de31Fb21642B0D332f7203/sources/HoldefiV1.1/Holdefi.sol
@notice Buy collateral in exchange for ERC20 asset @param market Address of the market asset should be paid to buy collateral @param collateral Address of the liquidated collateral @param marketAmount The amount of the given market will be paid
function buyLiquidatedCollateral (address market, address collateral, uint256 marketAmount) external isNotETHAddress(market) { buyLiquidatedCollateralInternal(market, collateral, marketAmount); }
4,911,655
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 605, 9835, 4508, 2045, 287, 316, 7829, 364, 4232, 39, 3462, 3310, 632, 891, 13667, 5267, 434, 326, 13667, 3310, 1410, 506, 30591, 358, 30143, 4508, 2045, 287, 632, 891, 4508, 2045, 287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 30143, 48, 18988, 350, 690, 13535, 2045, 287, 261, 2867, 13667, 16, 1758, 4508, 2045, 287, 16, 2254, 5034, 13667, 6275, 13, 203, 202, 202, 9375, 203, 202, 202, 291, 1248, 1584, 44, 1887, 12, 27151, 13, 203, 202, 95, 2...
/** *Submitted for verification at Etherscan.io on 2022-03-04 */ // File: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. T...
@notice endpoint is unique - i.e. each endpoint maps to at most one ID
mapping(bytes32 => uint256) private endpointToIDMap;
1,993,741
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2494, 353, 3089, 300, 277, 18, 73, 18, 1517, 2494, 7565, 358, 622, 4486, 1245, 1599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 12, 3890, 1578, 516, 2254, 5034, 13, 3238, 2494, 774, 734, 863, 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, ...
/** *Submitted for verification at Etherscan.io on 2021-05-14 */ // SPDX-License-Identifier: MIT pragma solidity ^0.7.6; // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/utils/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the c...
* @dev Source of tokens. Override this method to modify the way in which the crowdsale ultimately gets and sends its tokens. @param _beneficiary Address performing the token purchase @param _weiAmount Number of tokens to be received/
function _recieveUsdt( address _beneficiary, uint256 _weiAmount, BuyType _buyType ) internal { if (_buyType == BuyType.USDT) { usdt.safeTransferFrom(_beneficiary, address(this), _weiAmount); } }
6,796,134
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4998, 434, 2430, 18, 1439, 333, 707, 358, 5612, 326, 4031, 316, 1492, 326, 276, 492, 2377, 5349, 225, 406, 381, 5173, 5571, 471, 9573, 2097, 2430, 18, 632, 891, 389, 70, 4009, 74, 14463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3927, 21271, 3477, 7510, 12, 203, 3639, 1758, 389, 70, 4009, 74, 14463, 814, 16, 203, 3639, 2254, 5034, 389, 1814, 77, 6275, 16, 203, 3639, 605, 9835, 559, 389, 70, 9835, 559, 203, 565, 262, 2713, 288, 203, 3639,...
pragma solidity ^0.4.23; import './IndexableNFTManager.sol'; import '../NFTIndexer.sol'; /** * @title Typeable Non-Fungible Token Manager Standard * @dev Extended Indexable NFT Manager, will allow the handling of token types * on an NFTManager. */ contract TypeableNFTManager is IndexableNFTManager { // nftCont...
* @notice Sets the bytes mask of an NFTContract. @dev Sets the bytes mask of an NFTContract. Will be used to normalize the token at getNFTTypeId. @param _nftContract the address of the NFTContract. @param _quantityMask uint8 bytes that will be used to shift./
function setNFTTypeMask(address _nftContract, uint8 _quantityMask) external onlyOwner { require(_quantityMask < 32); }
12,937,072
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11511, 326, 1731, 3066, 434, 392, 423, 4464, 8924, 18, 632, 5206, 11511, 326, 1731, 3066, 434, 392, 423, 4464, 8924, 18, 9980, 506, 1399, 358, 3883, 326, 1147, 622, 11069, 4464, 11731, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 50, 4464, 559, 5796, 12, 2867, 389, 82, 1222, 8924, 16, 2254, 28, 389, 16172, 5796, 13, 3903, 1338, 5541, 288, 203, 565, 2583, 24899, 16172, 5796, 411, 3847, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -1...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./IVoting.sol"; /** * @title Voting * @dev Simple majority voting system that allows anyone to propose an offer for an NFT held within the Issuance shares sy...
* @dev Create a new proposal for transferring ownership of the underlying NFT to a user making the proposal. @param proposer Who is offering this proposal. @param threshold The amount of votes required to automatically accept or reject a proposal. @param minimumVotesRequired The minimum number of votes required for a p...
function propose( uint threshold, uint minimumVotesRequired, uint expiresIn, address paymentType, uint paymentAmount ) public returns (bool) { require (_currentProposal.proposer == 0, "Only one proposal can be active at a time"); requir...
955,000
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1788, 279, 394, 14708, 364, 906, 74, 20245, 23178, 434, 326, 6808, 423, 4464, 358, 279, 729, 10480, 326, 14708, 18, 632, 891, 450, 5607, 3497, 83, 353, 10067, 310, 333, 14708, 18, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 450, 4150, 12, 203, 3639, 2254, 5573, 16, 203, 3639, 2254, 5224, 29637, 3705, 16, 203, 3639, 2254, 7368, 382, 16, 203, 3639, 1758, 5184, 559, 16, 203, 3639, 2254, 5184, 6275, 203, 565, 262, 203, 3639, 1071, 203, 3639, ...
pragma solidity ^0.5.0; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/ERC721Metadata.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/ERC721MetadataMintable.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/ERC721Metadata.sol"; import "...
* @dev Allow to sell an owned stamp and profit/loose based on current market price @param _tokenId Gen0 NFT index in storage @return bool true if processed/ burn token TODO: disabled when upgrading the contract msg.sender.transfer(payout); This approach can block the asset if owned by a bad actor (contract account) TO...
function sellStamp(uint256 _tokenId) public whenNotPaused returns (bool) { require(balances[msg.sender][_tokenId].owned, "User does not own this stamp"); Stamp storage stamp = stamps[_tokenId]; uint256 payout = stamp.price; require(address(this).balanc...
15,870,837
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7852, 358, 357, 80, 392, 16199, 14429, 471, 450, 7216, 19, 383, 2584, 2511, 603, 783, 13667, 6205, 632, 891, 389, 2316, 548, 10938, 20, 423, 4464, 770, 316, 2502, 632, 2463, 1426, 638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 357, 80, 8860, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 203, 3639, 1347, 1248, 28590, 203, 3639, 1135, 261, 6430, 13, 288, 203, 5411, 2583, 12, 70, 26488, 63, 3576, 18, 15330, 6362, 67, 2316, 548, 8009, 995, 329, 16...
pragma solidity ^0.4.20; /* * In dedication of the ShillMaster himself, we Present... * ====================================* * * PROOF OF CRAIG GRANT COIN * * ====================================* * -> What? * The original autonomous pyramid, improved: * [x] More stable than ever, having withs...
only people with tokens
contract ProofOfCraigGrant { = MODIFIERS = =================================*/ modifier onlyBagholders() { require(myTokens() > 0); _; } modifier onlyStronghands() { require(myDividends(true) > 0); _; } modifier onlyAdministrat...
10,311,008
[ 1, 4625, 348, 7953, 560, 30, 225, 1338, 16951, 598, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1186, 792, 951, 39, 354, 360, 9021, 288, 203, 565, 273, 5411, 8663, 10591, 55, 5411, 273, 203, 565, 28562, 14468, 12275, 5549, 203, 203, 565, 9606, 1338, 5013, 9000, 1435, 288, 203, 3639, 2583, 12, 4811, 5157, 1435, 405, 3...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; /** * @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,...
Transfer PlatformBuyerFee to Beneficiary Transfer PlatformSellerFee to Beneficiary
function transferERC20FeeToBeneficiary(uint256 price, uint256 sellerFee, address erc20Token) internal returns (uint256) { uint256 platformBuyerFee = price.mul(buyerFee).div(maxBuyerFeePercentage); erc20TransferProxy.erc20safeTransferFrom(IERC20(erc20Token), msg.sender, beneficiary, platformBuyerFee)...
10,524,369
[ 1, 4625, 348, 7953, 560, 30, 225, 12279, 11810, 38, 16213, 14667, 358, 605, 4009, 74, 14463, 814, 12279, 11810, 22050, 14667, 358, 605, 4009, 74, 14463, 814, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 654, 39, 3462, 14667, 774, 38, 4009, 74, 14463, 814, 12, 11890, 5034, 6205, 16, 2254, 5034, 29804, 14667, 16, 1758, 6445, 71, 3462, 1345, 13, 2713, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 4072, 38,...
./full_match/10/0xBe3Ff103E3D94CdF40e0a76b0B864143C311FfFb/sources/project_/stable-swap/NomiswapRouter04.sol
**** ADD LIQUIDITY **** create the pair if it doesn't exist yet
function _addLiquidity( address _factory, address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin ) private returns (uint amountA, uint amountB) { if (INomiswapFactory(_factory).getPair(tokenA, tok...
3,784,103
[ 1, 4625, 348, 7953, 560, 30, 225, 380, 14465, 11689, 8961, 53, 3060, 4107, 380, 14465, 752, 326, 3082, 309, 518, 3302, 1404, 1005, 4671, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 389, 1289, 48, 18988, 24237, 12, 203, 3639, 1758, 389, 6848, 16, 203, 3639, 1758, 1147, 37, 16, 203, 3639, 1758, 1147, 38, 16, 203, 3639, 2254, 3844, 1880, 281, 2921, 16, 203, 3639, 2254, 3844, 38, 25683, 16, 203, 363...
// File: contracts/ChewChew.sol /** * */ // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built ...
SPDX-License-Identifier: MITContract based on [https:docs.openzeppelin.com/contracts/3.x/erc721](https:docs.openzeppelin.com/contracts/3.x/erc721) ============ ACCESS CONTROL/SANITY MODIFIERS ============
contract ChewChew is ERC721A, IERC2981, Ownable, ReentrancyGuard { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private tokenCounter; address private openSeaProxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; bool private isOpenSeaProxyActive = tr...
6,035,763
[ 1, 4625, 348, 7953, 560, 30, 11405, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 8924, 2511, 603, 306, 4528, 30, 8532, 18, 3190, 94, 881, 84, 292, 267, 18, 832, 19, 16351, 87, 19, 23, 18, 92, 19, 12610, 27, 5340, 29955, 4528, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 1680, 359, 782, 359, 353, 4232, 39, 27, 5340, 37, 16, 467, 654, 39, 5540, 11861, 16, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 565, 1450, 8139, 364, 2254, ...
// contracts/Blog.sol //SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "hardhat/console.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract Blog { string public name; address public owner; using Counters for Counters.Counter; Counters.Counter private _postIds; ...
when the blog is deployed, give it a name */ also set the creator as the owner of the contract */
constructor(string memory _name) { console.log("Deploying Blog with name:", _name); name = _name; owner = msg.sender; }
909,223
[ 1, 4625, 348, 7953, 560, 30, 225, 1347, 326, 10700, 353, 19357, 16, 8492, 518, 279, 508, 1195, 2546, 444, 326, 11784, 487, 326, 3410, 434, 326, 6835, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 1080, 3778, 389, 529, 13, 288, 203, 3639, 2983, 18, 1330, 2932, 10015, 310, 25464, 598, 508, 2773, 16, 389, 529, 1769, 203, 3639, 508, 273, 389, 529, 31, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 565, 289, ...
./partial_match/1/0x8ed7d143Ef452316Ab1123d28Ab302dC3b80d3ce/sources/SlashingManager.sol
give more reward for faster and less for slower checkpoint checkpoint is faster
function _calculateCheckpointReward( uint256 blockInterval, uint256 signedStakePower, uint256 currentTotalStake if (fullIntervals > 0 && fullIntervals != prevBlockInterval) { if (prevBlockInterval != 0) { uint256 delta = (ckpReward * checkpointRewardDelta ...
3,686,859
[ 1, 4625, 348, 7953, 560, 30, 225, 8492, 1898, 19890, 364, 12063, 471, 5242, 364, 27926, 9776, 9776, 353, 12063, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 11162, 14431, 17631, 1060, 12, 203, 3639, 2254, 5034, 1203, 4006, 16, 203, 3639, 2254, 5034, 6726, 510, 911, 13788, 16, 203, 3639, 2254, 5034, 783, 5269, 510, 911, 203, 3639, 309, 261, 2854, 24224, 405, 374, 597, 1...
/** *Submitted for verification at Etherscan.io on 2021-09-05 */ /** */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.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...
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; } constructor (string memory name_, string m...
2,058,179
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 2277, 288, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 261, 2867, 516, 2874, 261, 2867, 516, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity <0.6.0; //solidity version contract Counter { //unsigned integer uint count; //runs only once, when we deploy this smart contract to blockchain constructor() public { count = 0; } //public - does mean that it can be accessible from o...
using public will automatically create a function with name "count" to view the value of count.
uint public count=0;
6,437,362
[ 1, 4625, 348, 7953, 560, 30, 1450, 1071, 903, 6635, 752, 279, 445, 598, 508, 315, 1883, 6, 358, 1476, 326, 460, 434, 1056, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 1056, 33, 20, 31, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.5.0; // Copyright 2019 OpenST Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
* @notice Set the mock storage root data. @param _storageRoot The mocked storage root value. @param _blockHeight The block height for storage root./
function setStorageRoot( bytes32 _storageRoot, uint256 _blockHeight ) external { storageRoots[_blockHeight] = _storageRoot; }
15,802,149
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1000, 326, 5416, 2502, 1365, 501, 18, 632, 891, 389, 5697, 2375, 1021, 5416, 329, 2502, 1365, 460, 18, 632, 891, 389, 2629, 2686, 1021, 1203, 2072, 364, 2502, 1365, 18, 19, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3245, 2375, 12, 203, 3639, 1731, 1578, 389, 5697, 2375, 16, 203, 3639, 2254, 5034, 389, 2629, 2686, 203, 565, 262, 203, 3639, 3903, 203, 565, 288, 203, 3639, 2502, 17540, 63, 67, 2629, 2686, 65, 273, 389, 5697, 2...
/** *Submitted for verification at Etherscan.io on 2022-05-02 */ pragma solidity 0.6.12; // SPDX-License-Identifier: BSD-3-Clause /** * METR Uniswap LP Tokens Lock till 2nd May 2023 * */ /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * function...
* @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./
contract Ownable { address private _owner; address public pendingOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } function owner() pub...
10,662,505
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14223, 6914, 632, 5206, 1021, 14223, 6914, 6835, 711, 392, 3410, 1758, 16, 471, 8121, 5337, 6093, 3325, 4186, 16, 333, 9330, 5032, 326, 4471, 434, 315, 1355, 4371, 9654, 19, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 14223, 6914, 288, 203, 565, 1758, 3238, 389, 8443, 31, 203, 565, 1758, 1071, 4634, 5541, 31, 203, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 203, 20...
./partial_match/42/0xc7721Dba419C5524d64f8303E44D7dc0a9c17e6d/sources/PynthetixState.sol
A struct for handing values associated with an individual user's debt position
struct IssuanceKindsData { uint periAmount; uint usdcAmount; } mapping(address => IssuanceKindsData) public issuanceKindsData; constructor(address _owner, address _associatedContract) public Owned(_owner) State(_associatedContract) LimitedSetup(1 week...
8,922,600
[ 1, 4625, 348, 7953, 560, 30, 225, 432, 1958, 364, 948, 310, 924, 3627, 598, 392, 7327, 729, 1807, 18202, 88, 1754, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 1958, 9310, 89, 1359, 5677, 87, 751, 288, 203, 3639, 2254, 1534, 77, 6275, 31, 203, 3639, 2254, 584, 7201, 6275, 31, 203, 565, 289, 203, 203, 203, 565, 2874, 12, 2867, 516, 9310, 89, 1359, 5677, 87, 751, 13, 1071, 3385, ...
./full_match/1/0x0E0FDbb257d022c44901C993d13C4aE978354777/sources/contracts/4_OCTOPAL.sol
IPFS URL WILL BE ADDED WHEN BUCKS ARE ALL SOLD OUT
string public OCTOPAL_PROVENANCE = "";
3,152,724
[ 1, 4625, 348, 7953, 560, 30, 225, 2971, 4931, 1976, 678, 15125, 9722, 11738, 7660, 29707, 10937, 3507, 55, 432, 862, 8061, 348, 11846, 8210, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 533, 1071, 531, 1268, 3665, 1013, 67, 3373, 58, 1157, 4722, 273, 1408, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/4/0x2A1e4B4C9AB5C9c4f45Ad6e4d09ee261933EC272/sources/SavingDAOToken.sol
@dev Update mining rate and supply at the start of the epoch Any modifying mining call must also call this
function _update_mining_parameters() internal { uint256 _rate = rate; uint256 _start_epoch_supply = start_epoch_supply; start_epoch_time += RATE_REDUCTION_TIME; mining_epoch += 1; if (_rate == 0) { _rate = INITIAL_RATE; _start_epoch_supply += _rate *...
16,959,683
[ 1, 4625, 348, 7953, 560, 30, 282, 632, 5206, 2315, 1131, 310, 4993, 471, 14467, 622, 326, 787, 434, 326, 7632, 4202, 5502, 21920, 1131, 310, 745, 1297, 2546, 745, 333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2725, 67, 1154, 310, 67, 3977, 1435, 2713, 288, 203, 3639, 2254, 5034, 389, 5141, 273, 4993, 31, 203, 3639, 2254, 5034, 389, 1937, 67, 12015, 67, 2859, 1283, 273, 787, 67, 12015, 67, 2859, 1283, 31, 203, 203, 363...