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
// SPDX-License-Identifier: AGPL-3.0-only /* Pricing.sol - SKALE Manager Copyright (C) 2018-Present SKALE Labs @author Artem Payvin @author Vadim Yavorsky SKALE Manager is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as publis...
* @dev Returns the total load percentage./
function getTotalLoadPercentage() external view override returns (uint) { return _getTotalLoad() * 100 / _getTotalCapacity(); }
12,234,372
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 2078, 1262, 11622, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 12831, 2563, 16397, 1435, 3903, 1476, 3849, 1135, 261, 11890, 13, 288, 203, 3639, 327, 389, 588, 5269, 2563, 1435, 380, 2130, 342, 389, 588, 5269, 7437, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -1...
//Address: 0xf1f4886c8fdf3ee1fc5aced99dd11b0b593ee88c //Contract name: SharderToken //Balance: 0 Ether //Verification Date: 2/22/2018 //Transacion Count: 1 // CODE STARTS HERE /* Copyright 2017 Sharder Foundation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except...
@dev Close the crowdsale and issue unsold tokens to `owner` address.
function closeCrowdsale() public onlyOwner afterEnd { require(!unsoldTokenIssued); if (totalEthReceived >= SOFT_CAP) { saleEndAtBlock = block.number; issueUnsoldToken(); SaleSucceeded(); SaleFailed(); } }
12,690,090
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 3527, 326, 276, 492, 2377, 5349, 471, 5672, 16804, 1673, 2430, 358, 1375, 8443, 68, 1758, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1746, 39, 492, 2377, 5349, 1435, 1071, 1338, 5541, 1839, 1638, 288, 203, 3639, 2583, 12, 5, 27595, 1673, 1345, 7568, 5957, 1769, 203, 203, 3639, 309, 261, 4963, 41, 451, 8872, 1545, 348, 3932, 56, 67, 17296, 13, 288, ...
pragma solidity ^0.4.24; // File: contracts/eternal_storage/EternalStorage.sol /** * @title EternalStorage * @dev This contract holds all the necessary state variables to carry out the storage of any contract. */ contract EternalStorage { mapping(bytes32 => uint256) internal uintStorage; mapping(bytes32 => st...
* @title EternalStorageProxy @dev This proxy holds the storage of the token contract and delegates every call to the current implementation set. Besides, it allows to upgrade the token's behaviour towards further implementations, and provides basic authorization control functionalities/
contract EternalStorageProxy is EternalStorage, OwnedUpgradeabilityProxy {}
12,097,044
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 512, 1174, 3245, 3886, 632, 5206, 1220, 2889, 14798, 326, 2502, 434, 326, 1147, 6835, 471, 22310, 3614, 745, 358, 326, 783, 4471, 444, 18, 605, 281, 4369, 16, 518, 5360, 358, 8400, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 16351, 512, 1174, 3245, 3886, 353, 512, 1174, 3245, 16, 14223, 11748, 10784, 2967, 3886, 2618, 203, 2, -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.5.16; import "./libraries/TransferHelper.sol"; import "./libraries/SafeMath.sol"; import "./modules/Configable.sol"; import "./modules/ConfigNames.sol"; import "./modules/BaseMintField.sol"; interface IONXMint { function take() external view returns (uint256); fun...
TransferHelper.safeTransferFrom(supplyToken, from, address(this), repayAmount.add(repayInterest));
function repay(uint256 amountCollateral, address from) public onlyPlatform returns (uint256 repayAmount, uint256 repayInterest) { require(amountCollateral <= borrows[from].amountCollateral, "ONX: NOT ENOUGH COLLATERAL"); require(amountCollateral > 0, "ONX: INVALID AMOUNT"); uint256 amountIn = IERC20(supp...
2,555,549
[ 1, 4625, 348, 7953, 560, 30, 225, 12279, 2276, 18, 4626, 5912, 1265, 12, 2859, 1283, 1345, 16, 628, 16, 1758, 12, 2211, 3631, 2071, 528, 6275, 18, 1289, 12, 266, 10239, 29281, 10019, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 2071, 528, 12, 11890, 5034, 3844, 13535, 2045, 287, 16, 1758, 628, 13, 203, 202, 202, 482, 203, 202, 202, 3700, 8201, 203, 202, 202, 6154, 261, 11890, 5034, 2071, 528, 6275, 16, 2254, 5034, 2071, 528, 29281, 13, 203, ...
// This oracle is a slight adaption of the following sources: // Tutorial: https://medium.com/@pedrodc/implementing-a-blockchain-oracle-on-ethereum-cedc7e26b49e // Code Source: https://github.com/pedroduartecosta/blockchain-oracle/tree/master/on-chain-oracle pragma solidity >=0.6.0 <0.8.0; import "../../erc20-depende...
called by the oracle to record its answercheck if oracle is in the list of trusted oraclesand if the oracle hasn't voted yetmarking that this address has votediterate through "array" of answers until a position if free and save the retrieved valuefind first empty slotiterate through oracle list and check if enough orac...
function updateRequest ( uint _id, string memory _priceRetrievedUsd ) public { Request storage currRequest = requests[_id]; if(currRequest.quorum[address(msg.sender)] == 1){ currRequest.quorum[msg.sender] = 2; uint tmpI = 0; bool found = fa...
7,218,164
[ 1, 4625, 348, 7953, 560, 30, 2566, 635, 326, 20865, 358, 1409, 2097, 5803, 1893, 309, 20865, 353, 316, 326, 666, 434, 13179, 578, 69, 9558, 464, 309, 326, 20865, 13342, 1404, 331, 16474, 4671, 3355, 310, 716, 333, 1758, 711, 331, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 691, 261, 203, 3639, 2254, 389, 350, 16, 203, 3639, 533, 3778, 389, 8694, 3848, 2155, 3477, 72, 203, 565, 262, 1071, 288, 203, 203, 3639, 1567, 2502, 4306, 691, 273, 3285, 63, 67, 350, 15533, 203, 203, 3639, 309...
./full_match/42/0x4dB7F02C8a93984A90342e32B352A23C5b2AAB65/sources/test.sol
if true, that person already voted
bool enrolled;
9,570,654
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 638, 16, 716, 6175, 1818, 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, 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, 1426, 14905, 1259, 31, 282, 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...
./partial_match/100/0x580839f1Cbd3F00565043043E98f8CEd02942851/sources/InsuranceFund.sol
* @dev only owner can call @param _amm IAmm address/ add token if it's new one
function addAmm(IAmm _amm) public onlyOwner { require(!isExistedAmm(_amm), "amm already added"); ammMap[address(_amm)] = true; amms.push(_amm); IERC20 token = _amm.quoteAsset(); if (!isQuoteTokenExisted(token)) { quoteTokens.push(token); quoteTokenMap...
16,645,295
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1338, 3410, 848, 745, 632, 891, 389, 301, 81, 467, 37, 7020, 1758, 19, 527, 1147, 309, 518, 1807, 394, 1245, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 37, 7020, 12, 15188, 7020, 389, 301, 81, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 5, 291, 4786, 329, 37, 7020, 24899, 301, 81, 3631, 315, 301, 81, 1818, 3096, 8863, 203, 3639, 2125, 81, 863, 63, 2867, 24...
./full_match/5/0x39D73647c86eD1072E930A693A527c3dd635eBA4/sources/contracts/Playerbook.sol
premine the dev names (sorry not sorry) No keys are purchased with this method, it's simply locking our addresses, PID's and names for referral codes.
{ plyr_[1].addr = 0xef15cB58639c116d66C283a1bF63415F2e3015Ae; plyr_[1].name = "justo"; plyr_[1].names = 1; pIDxAddr_[0xef15cB58639c116d66C283a1bF63415F2e3015Ae] = 1; pIDxName_["justo"] = 1; plyrNames_[1]["justo"] = true; plyrNameList_[1][1] = "justo"; ...
1,870,318
[ 1, 4625, 348, 7953, 560, 30, 225, 675, 3081, 326, 4461, 1257, 261, 2467, 1176, 486, 272, 21637, 13, 2631, 1311, 854, 5405, 343, 8905, 598, 333, 707, 16, 518, 1807, 8616, 18887, 3134, 6138, 16, 14788, 1807, 471, 1257, 364, 1278, 2908...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 3639, 293, 715, 86, 67, 63, 21, 8009, 4793, 273, 374, 30773, 3600, 71, 38, 8204, 21607, 71, 20562, 72, 6028, 39, 6030, 23, 69, 21, 70, 42, 4449, 24, 3600, 42, 22, 73, 31831, 25, 37, 73, 31, 203, 3639, 293, ...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
разъехаться на узкой дороге
rus_verbs:разъехаться{},
5,484,875
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 146, 227, 145, 113, 145, 120, 146, 237, 145, 118, 146, 232, 145, 113, 146, 229, 146, 239, 146, 228, 146, 242, 225, 145, 126, 145, 113, 225, 146, 230, 145, 120, 145, 123, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 436, 407, 67, 502, 2038, 30, 146, 227, 145, 113, 145, 120, 146, 237, 145, 118, 146, 232, 145, 113, 146, 229, 146, 239, 146, 228, 146, 242, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/5/0x52Be7fDaF8bD5755aFb99c579008a123Ac1f3b0e/sources/contracts/Minter.sol
* @dev Adds an address to the whitelist. @param _account The address to add to the whitelist./
function whitelist(address _account) public onlyRole(DEFAULT_ADMIN_ROLE) { _whitelist(_account); }
1,934,691
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15605, 392, 1758, 358, 326, 10734, 18, 632, 891, 389, 4631, 1021, 1758, 358, 527, 358, 326, 10734, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10734, 12, 2867, 389, 4631, 13, 1071, 1338, 2996, 12, 5280, 67, 15468, 67, 16256, 13, 288, 203, 3639, 389, 20409, 24899, 4631, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0xFccc39Ffd6002a60e7582f10F6E6C94BEaeaA73c/sources/contracts/option/Distributions.sol
* @notice Only the contract owner can call this function. @dev Sets the entry fee ratio. @param _feeRatio The new entry fee ratio./
function setEntryFee(uint16 _feeRatio) external onlyOwner { require(0 <= _feeRatio && _feeRatio < 10000, "Distributions: Illegal value range"); uint16 oldFeeRatio = entryFeeRatio; entryFeeRatio = _feeRatio; emit EntryFeeRatioChanged(oldFeeRatio, entryFeeRatio); }
15,668,566
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 5098, 326, 6835, 3410, 848, 745, 333, 445, 18, 632, 5206, 11511, 326, 1241, 14036, 7169, 18, 632, 891, 389, 21386, 8541, 1021, 394, 1241, 14036, 7169, 18, 19, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 1622, 14667, 12, 11890, 2313, 389, 21386, 8541, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 20, 1648, 389, 21386, 8541, 597, 389, 21386, 8541, 411, 12619, 16, 315, 1669, 15326, 30, 2141, 460, 1048, 8863, 203, 2...
./full_match/80001/0xD8F2975dF9Cd9BF062FC4ccB0f66E8C9BF72709d/sources/_openzeppelin/contracts-upgradeable/governance/GovernorUpgradeable.sol
* @dev See {IGovernor-state}./
function state(uint256 proposalId) public view virtual override returns (ProposalState) { ProposalCore storage proposal = _proposals[proposalId]; if (proposal.executed) { return ProposalState.Executed; } if (proposal.canceled) { return ProposalState.Canceled...
5,564,165
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 3047, 1643, 29561, 17, 2019, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 919, 12, 11890, 5034, 14708, 548, 13, 1071, 1476, 5024, 3849, 1135, 261, 14592, 1119, 13, 288, 203, 3639, 19945, 4670, 2502, 14708, 273, 389, 685, 22536, 63, 685, 8016, 548, 15533, 203, 203, 3639, 309, 261, 685, 8016, 1...
./partial_match/288/0xeBb58F932729aBB31d6fd7200088ba43A1631595/sources/contracts/Ola/Core/LendingNetwork/versions/0.01/ODelegatorFactoryV0_01.sol
Ensure ministry is the caller Take constant parameters for Native Calculate parameters for ERC20
function deployODelegator( address underlying, bytes32 contractNameHash, bytes calldata params, address comptroller, address interestRateModel, address payable admin, bytes calldata becomeImplementationData ) external override returns (address) { r...
16,906,214
[ 1, 4625, 348, 7953, 560, 30, 225, 7693, 1131, 2128, 353, 326, 4894, 17129, 5381, 1472, 364, 16717, 9029, 1472, 364, 4232, 39, 3462, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7286, 1212, 13451, 639, 12, 203, 3639, 1758, 6808, 16, 203, 3639, 1731, 1578, 6835, 461, 2310, 16, 203, 3639, 1731, 745, 892, 859, 16, 203, 3639, 1758, 532, 337, 1539, 16, 203, 3639, 1758, 16513, 4727, 1488, 16, 203, ...
./full_match/1/0x8a0F72aABfeE510e9D88bCc6D426Fd47b8694176/sources/contracts/libraries/Proxy.sol
slither-disable-next-line locked-ether Proxy call by default.
receive() external payable { _doProxyCall(); }
3,111,034
[ 1, 4625, 348, 7953, 560, 30, 225, 2020, 2927, 17, 8394, 17, 4285, 17, 1369, 8586, 17, 2437, 7659, 745, 635, 805, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6798, 1435, 3903, 8843, 429, 288, 203, 3639, 389, 2896, 3886, 1477, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; abstract contract GlobalsAndUtility is ERC20 { /* XfLobbyEnter (auto-generated event) uint40 timestamp --> data0 [ 39: 0] address indexed memberAddr uint256 indexed entryId ...
* @dev Open a stake. @param g Cache of stored globals @param newStakedHearts Number of Hearts to stake @param newStakedDays Number of days to stake @param newAutoStake Stake is automatic directly from a new claim/
function _stakeStart( GlobalsCache memory g, uint256 newStakedHearts, uint256 newStakedDays, bool newAutoStake ) internal { require( newStakedDays <= MAX_STAKE_DAYS, "HEX: newStakedDays higher than maximum" ); uint256 bonusHearts =...
2,487,091
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3502, 279, 384, 911, 18, 632, 891, 314, 4379, 434, 4041, 10941, 632, 891, 394, 510, 9477, 5256, 485, 87, 3588, 434, 8264, 485, 87, 358, 384, 911, 632, 891, 394, 510, 9477, 9384, 3588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 334, 911, 1685, 12, 203, 3639, 18901, 1031, 1649, 3778, 314, 16, 203, 3639, 2254, 5034, 394, 510, 9477, 5256, 485, 87, 16, 203, 3639, 2254, 5034, 394, 510, 9477, 9384, 16, 203, 3639, 1426, 394, 4965, 510, 911, 20...
./full_match/80001/0xeE72CBB6B9f066cb6895E416cB7F4abC4aaeeC41/sources/src/TokenGatedAccountFactory.sol
//*/ @notice Generates a salt for the new Account using the erc-721 token data.
) internal view virtual override returns (bytes32) { return keccak256(abi.encode(_data)); }
5,600,956
[ 1, 4625, 348, 7953, 560, 30, 368, 5549, 632, 20392, 31902, 279, 4286, 364, 326, 394, 6590, 1450, 326, 6445, 71, 17, 27, 5340, 1147, 501, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 2713, 1476, 5024, 3849, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 327, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 24899, 892, 10019, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity 0.4.23; /* *DivvyUp for Goo * * ====================================================================* *'||''|. || '||' '|' * || || ... .... ... .... ... .... ... , || | ... ... * || || || '|. | '|. | '|. | <> / || ...
* Retrieve the total token supply./
function totalSupply() public view returns(uint256) { return tokenSupply; }
957,416
[ 1, 4625, 348, 7953, 560, 30, 380, 10708, 326, 2078, 1147, 14467, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 3088, 1283, 1435, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 12, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 1147, 3088, 1283, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0x14a733278d2C792d1b93DEF58C30CC16AED0DcCD/sources/Ownable.sol
* @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug...
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { _setOwner(_msgSender()); } function owner() public view virtual returns (address) { return _owner; } modifie...
729,075
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13456, 1605, 1492, 8121, 279, 5337, 2006, 3325, 12860, 16, 1625, 1915, 353, 392, 2236, 261, 304, 3410, 13, 716, 848, 506, 17578, 12060, 2006, 358, 2923, 4186, 18, 2525, 805, 16, 326, 3410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 14223, 6914, 353, 1772, 288, 203, 565, 1758, 3238, 389, 8443, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 203, 203, 565, 3885, 1435, 288, 2...
// This is a test that checks that the type of the `bytes` parameter is // correctly changed from its own type `bytes calldata` to `bytes memory` // when converting to a function type. contract C { function f(function(bytes memory) pure external /*g*/) pure public { } function callback(bytes calldata) pure exte...
This is a test that checks that the type of the `bytes` parameter is correctly changed from its own type `bytes calldata` to `bytes memory` when converting to a function type.
contract C { function f(function(bytes memory) pure external /*g*/) pure public { } function callback(bytes calldata) pure external {} function g() view public { f(this.callback); } }
2,558,957
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 353, 279, 1842, 716, 4271, 716, 326, 618, 434, 326, 1375, 3890, 68, 1569, 353, 8783, 3550, 628, 2097, 4953, 618, 1375, 3890, 745, 892, 68, 358, 1375, 3890, 3778, 68, 1347, 14540, 358, 279, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 385, 288, 203, 565, 445, 284, 12, 915, 12, 3890, 3778, 13, 16618, 3903, 1748, 75, 5549, 13, 16618, 1071, 288, 289, 203, 565, 445, 1348, 12, 3890, 745, 892, 13, 16618, 3903, 2618, 203, 565, 445, 314, 1435, 1476, 1071, 288...
./partial_match/56/0xB44c848824a53c69F73B1Ac8d84381F91A5a8C71/sources/HoldPlatformDapps.sol
--o 01 [5] ActiveContribution && [5] Max Contribution
function Holdplatform(address tokenAddress, uint256 amount) public { require(amount >= 1 ); require(add(Statistics[msg.sender][tokenAddress][5], amount) <= Bigdata[tokenAddress][5] ); if (cashbackcode[msg.sender] == 0x0000000000000000000000000000000000000000 ) { cashbackcode[msg.sender] = EthereumNod...
11,066,433
[ 1, 4625, 348, 7953, 560, 30, 1493, 83, 8743, 306, 25, 65, 8857, 442, 4027, 597, 306, 25, 65, 4238, 735, 4027, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 670, 1673, 9898, 12, 2867, 1147, 1887, 16, 2254, 5034, 3844, 13, 1071, 288, 203, 202, 202, 6528, 12, 8949, 1545, 404, 11272, 203, 202, 202, 6528, 12, 1289, 12, 8569, 63, 3576, 18, 15330, 6362, 2316, 1887, 6362, 25, 64...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* Contract that's primarily responsible for generating the metadata, including the image itself in SVG. Parts of the SVG is encapsulated into custom re-usable components specific to this collection. */ contract SoulsDescriptor { function generateName(string...
Layer 2 - Inner Frame Hash Bytes Used - 6,7
{ uint256 frameFrequency = (uint256(toUint8(hash, 6)) * 1000) / 255; uint256 frameStrokeWidth = (uint256(toUint8(hash, 7)) * 40) / 255; return string( abi.encodePacked( svgFilter("frameDisplacement"), svgFeTurbulence( ...
5,467,070
[ 1, 4625, 348, 7953, 560, 30, 225, 12112, 576, 300, 19494, 8058, 2474, 5985, 10286, 300, 1666, 16, 27, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 2254, 5034, 2623, 13865, 273, 261, 11890, 5034, 12, 869, 5487, 28, 12, 2816, 16, 1666, 3719, 380, 4336, 13, 342, 4561, 31, 203, 3639, 2254, 5034, 2623, 14602, 2384, 273, 261, 11890, 5034, 12, 869, 5487, 28, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "./IERC1190.sol"; import "./IERC1190Metadata.sol"; import "./IERC1190OwnershipLicenseReceiver.sol"; import "./IERC1190CreativeLicenseReceiver.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/C...
* @dev See {IERC1190-ownerOf}./
function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require( owner != address(0), "ERC1190: Nobody has ownership over tokenId." ); return owner; }...
5,414,092
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 2499, 9349, 17, 8443, 951, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3410, 951, 12, 11890, 5034, 1147, 548, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 3849, 203, 3639, 1135, 261, 2867, 13, 203, 565, 288, 203, 3639, 1758, 3410, 273, 389, 995, 414, 63, 2316, 548, 1...
pragma solidity ^0.5.2; import "./Host.sol"; /// the patent hub will be hosted by one of the innovators contract PatentHub is Host { // ***** STRUCTS ***** // contribution phase struct Share { address shareholder; uint percentage; // denoted in values between 0 and 100 bool accepted; // true ...
denoted in values between 0 and 100
uint percentage;
12,802,295
[ 1, 4625, 348, 7953, 560, 30, 225, 5545, 16474, 316, 924, 3086, 374, 471, 2130, 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, 202, 202, 11890, 11622, 31, 1875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0x414Cb1508B05e5556650D59d55Ed9A94bFb1A140/sources/contracts/MBS.sol
* @dev Returns the address of the current owner./
function owner() internal view virtual returns (address) { return _owner; }
4,991,677
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 1758, 434, 326, 783, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3410, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 389, 8443, 31, 203, 565, 289, 27699, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.8.9; // SPDX-License-Identifier: Unlicensed interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves...
this method is responsible for taking all fee, if takeFee is true
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if(!canTrade){ } if(botWallets[sender] || botWallets[recipient]){ require(botscantrade, "bots arent allowed to trade"); } if(!takeFee) r...
2,455
[ 1, 4625, 348, 7953, 560, 30, 333, 707, 353, 14549, 364, 13763, 777, 14036, 16, 309, 4862, 14667, 353, 638, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2316, 5912, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 16, 6430, 4862, 14667, 13, 3238, 288, 203, 3639, 309, 12, 5, 4169, 22583, 15329, 203, 3639, 289, 203, 540, 203, 3639, 309, 12, 4819, 26558, 2413, ...
./full_match/43114/0xecC4A15F3a46EB5747c5C51523fD7CFB756be85B/sources/contracts/FeesProcessor.sol
@dev Swap Tokens to USDC generate the USDC pair path of tokens Give Pangolin Allowance to Spend Tokens Make the swap from entryTokens to USDC
function convertToUSDC(IBEP20 entryToken, uint256 tokenAmount) private { address[] memory path = new address[](2); path[0] = address(entryToken); path[1] = address(USDC); entryToken.approve(address(pangolinRouter), tokenAmount); USDC.approve(address(pangolinRouter), tokenAm...
4,506,824
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 12738, 13899, 358, 11836, 5528, 2103, 326, 11836, 5528, 3082, 589, 434, 2430, 22374, 453, 539, 355, 267, 7852, 1359, 358, 348, 1302, 13899, 4344, 326, 7720, 628, 1241, 5157, 358, 11836, 552...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8137, 3378, 5528, 12, 45, 5948, 52, 3462, 1241, 1345, 16, 2254, 5034, 1147, 6275, 13, 3238, 288, 203, 203, 3639, 1758, 8526, 3778, 589, 273, 394, 1758, 8526, 12, 22, 1769, 203, 3639, 589, 63, 20, 65, 273, 1758, 12, ...
./full_match/4/0x7dcD4A6858415C110cee5bBD6Edc21d3C3afBAfb/sources/contracts/FennecFox.sol
* @dev Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint2...
789,772
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 326, 4232, 39, 3462, 4529, 487, 2553, 316, 326, 512, 2579, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 11013, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 741...
./partial_match/4/0x6f20C45085870f281715561B6894990dffA759d3/sources/EventTicketSystem.sol
* @dev buy request for a ticket available on secondary market (callable from any approved account/contract)/Return overpaid amount to sender if necessary
function buyTicketFromAttendee(uint256 _ticketId) external payable EventNotStarted whenNotPaused { require(tickets[_ticketId].forSale = true,"ticket not for sale"); require(getApproved(_ticketId) == msg.sender,"not approved"); uint256 _priceToPay = tickets[_ticketId]...
8,717,429
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 30143, 590, 364, 279, 9322, 2319, 603, 9946, 13667, 261, 7293, 628, 1281, 20412, 2236, 19, 16351, 13176, 990, 1879, 29434, 3844, 358, 5793, 309, 4573, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 13614, 1265, 3075, 275, 20953, 12, 11890, 5034, 389, 16282, 548, 13, 7010, 565, 3903, 7010, 565, 8843, 429, 7010, 565, 2587, 1248, 9217, 7010, 565, 1347, 1248, 28590, 7010, 565, 288, 203, 3639, 2583, 12, 6470, 2413...
// SPDX-License-Identifier: MIT import "./ReentrancyGuard.sol"; import "./Ownable.sol"; import "./IDecimals.sol"; import "./IERC20.sol"; import "./SafeERC20.sol"; import "./IERC721.sol"; import "./IERC721Receiver.sol"; pragma solidity ^0.8.0; contract Bidify is ReentrancyGuard, Ownable, IERC165 { using SafeERC20 f...
Fallbacks to return ETH flippantly sent
receive() payable external { require(false); }
12,727,521
[ 1, 4625, 348, 7953, 560, 30, 225, 21725, 87, 358, 327, 512, 2455, 9668, 84, 970, 715, 3271, 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, 225, 6798, 1435, 8843, 429, 3903, 288, 203, 565, 2583, 12, 5743, 1769, 203, 225, 289, 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.4.25; // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view ret...
update recipient status
_recipientList[account].tokens = _recipientList[account].tokens.add(_dailyRate);
12,706,635
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 8027, 1267, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 20367, 682, 63, 4631, 8009, 7860, 273, 389, 20367, 682, 63, 4631, 8009, 7860, 18, 1289, 24899, 26790, 4727, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x5349E94435Cc9Cab9FfB40A492DA46935052733A/sources/cache/solpp-generated-contracts/common/libraries/L2ContractHelper.sol
@notice Computes the create2 address for a Layer 2 contract. @param _sender The address of the sender. @param _salt The salt value to use in the create2 address computation. @param _bytecodeHash The contract bytecode hash. @param _constructorInputHash The hash of the constructor input data. @return The create2 address...
function computeCreate2Address( address _sender, bytes32 _salt, bytes32 _bytecodeHash, bytes32 _constructorInputHash ) internal pure returns (address) { bytes32 senderBytes = bytes32(uint256(uint160(_sender))); bytes32 data = keccak256( bytes.concat(CR...
3,023,262
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 14169, 281, 326, 752, 22, 1758, 364, 279, 12112, 576, 6835, 18, 632, 891, 389, 15330, 1021, 1758, 434, 326, 5793, 18, 632, 891, 389, 5759, 1021, 4286, 460, 358, 999, 316, 326, 752, 22,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 3671, 1684, 22, 1887, 12, 203, 3639, 1758, 389, 15330, 16, 203, 3639, 1731, 1578, 389, 5759, 16, 203, 3639, 1731, 1578, 389, 1637, 16651, 2310, 16, 203, 3639, 1731, 1578, 389, 12316, 1210, 2310, 203, 565, 262, 2713, 166...
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is ...
* @dev Returns tokens locked for a specified address for a specified reason @param _of The address whose tokens are locked @param _reason The reason to query the lock tokens for/
function tokensLocked(address _of, bytes32 _reason) public view returns (uint256 amount) { if (!locked[_of][_reason].claimed) amount = locked[_of][_reason].amount; }
1,829,003
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 2430, 8586, 364, 279, 1269, 1758, 364, 279, 1377, 1269, 3971, 632, 891, 389, 792, 1021, 1758, 8272, 2430, 854, 8586, 632, 891, 389, 10579, 1021, 3971, 358, 843, 326, 2176, 2430, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 2430, 8966, 12, 2867, 389, 792, 16, 1731, 1578, 389, 10579, 13, 1071, 1476, 1135, 261, 11890, 5034, 3844, 13, 288, 203, 202, 202, 430, 16051, 15091, 63, 67, 792, 6362, 67, 10579, 8009, 14784, 329, 13, 203, 1082, 202, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.8; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; /** * Hashed Timelock Contract on Fungible Assets in an Ethereum network (Support only for ERC20 tokens right now) **/ contract InteroperationBaseClassERC20 { mapping (bytes32 => LockContract) pu...
Function to check if there is an active contract with the input lockContractId.
function isFungibleAssetLocked(bytes32 lockContractId) external returns (bool) { LockContract storage c = lockContracts[lockContractId]; bool lockContractStatus; if ( c.status == LOCKED ){ lockContractStatus = true; lockContractStatus = false; } return lockContractStatus; }
7,297,646
[ 1, 4625, 348, 7953, 560, 30, 225, 4284, 358, 866, 309, 1915, 353, 392, 2695, 6835, 598, 326, 810, 2176, 8924, 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...
[ 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, 202, 915, 17646, 20651, 1523, 6672, 8966, 12, 3890, 1578, 2176, 8924, 548, 13, 203, 202, 202, 9375, 203, 202, 202, 6154, 261, 6430, 13, 203, 202, 95, 203, 202, 202, 2531, 8924, 2502, 276, 273, 2176, 20723, 63, 739, 8924, 548, 1...
/** *Submitted for verification at Etherscan.io on 2022-03-17 */ // File: https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.0/contracts/utils/StringsUpgradeable.sol pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant...
* @dev String operations./
library StringsUpgradeable { bytes16 private constant alphabet = "0123456789abcdef"; function toString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { ...
2,322,408
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 514, 5295, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 8139, 10784, 429, 288, 203, 565, 1731, 2313, 3238, 5381, 10877, 273, 315, 26684, 28953, 14432, 203, 203, 203, 203, 565, 445, 1762, 12, 11890, 5034, 460, 13, 2713, 16618, 1135, 261, 1080, 3778, 13, 288, 203, 203, 3639, 309, ...
pragma solidity ^0.4.16; /* * Abstract Token Smart Contract. Copyright © 2017 by ABDK Consulting. * Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com> */ pragma solidity ^0.4.20; /* * EIP-20 Standard Token Smart Contract Interface. * Copyright © 2016–2018 by ABDK Consulting. * Author: Mikhail Vladimirov...
* Mapping from addresses of token holders to the mapping of addresses of spenders to the allowances set by these token holders to these spenders./
mapping (address => mapping (address => uint256)) internal allowances;
706
[ 1, 4625, 348, 7953, 560, 30, 380, 9408, 628, 6138, 434, 1147, 366, 4665, 358, 326, 2874, 434, 6138, 434, 17571, 414, 358, 326, 1699, 6872, 444, 635, 4259, 1147, 366, 4665, 358, 4259, 17571, 414, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2874, 261, 2867, 516, 2874, 261, 2867, 516, 2254, 5034, 3719, 2713, 1699, 6872, 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, -1...
pragma solidity ^0.4.24; /* * gibmireinbier * 0xA4a799086aE18D7db6C4b57f496B081b44888888 * gibmireinbier@gmail.com */ interface F2mInterface { function joinNetwork(address[6] _contract) public; // one time called function disableRound0() public; function activeBuy() public; // Dividends from...
used to calculate grandPot results
uint256 public curRWeight;
13,442,694
[ 1, 4625, 348, 7953, 560, 30, 225, 1399, 358, 4604, 16225, 18411, 1686, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 662, 54, 6544, 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, -...
//Address: 0x48c1b2f3efa85fbafb2ab951bf4ba860a08cdbb7 //Contract name: HAND //Balance: 2 Ether //Verification Date: 2/17/2018 //Transacion Count: 8963 // CODE STARTS HERE pragma solidity ^0.4.19; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; ...
lock token of founder for periodically release _address: founder address; _value: totoal locked token; _round: rounds founder could withdraw; _period: interval time between two rounds
function setFounderLock(address _address, uint256 _value, uint _round, uint256 _period) internal onlyOwner{ founderLockance[_address].amount = _value; founderLockance[_address].startTime = now; founderLockance[_address].remainRound = _round; founderLockance[_address].totalRound = _r...
12,946,109
[ 1, 4625, 348, 7953, 560, 30, 225, 2176, 1147, 434, 284, 465, 765, 364, 26736, 3992, 389, 2867, 30, 284, 465, 765, 1758, 31, 389, 1132, 30, 268, 6302, 287, 8586, 1147, 31, 389, 2260, 30, 21196, 284, 465, 765, 3377, 598, 9446, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 24340, 465, 765, 2531, 12, 2867, 389, 2867, 16, 2254, 5034, 389, 1132, 16, 2254, 389, 2260, 16, 2254, 5034, 389, 6908, 13, 225, 2713, 1338, 5541, 95, 203, 3639, 284, 465, 765, 2531, 1359, 63, 67, 2867, 8009, 8949, 273...
./full_match/5/0x13970A970f999Ed920B12aBf4F4aF53b046a9B2d/sources/external/integrations/nouns/VRF.sol
((qy-py)/(qx-px))(px-sx)
(sy, dy) = projectiveMul(sy, dy, lx, lz);
11,589,974
[ 1, 4625, 348, 7953, 560, 30, 225, 14015, 85, 93, 17, 2074, 13176, 12, 85, 92, 17, 4430, 3719, 12, 4430, 17, 30319, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 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, 5411, 261, 9009, 16, 7732, 13, 273, 1984, 688, 27860, 12, 9009, 16, 7732, 16, 15855, 16, 328, 94, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x0A72F3A18FEF15eE5F9d337f4c81C3b99990Bd2d/sources/contracts/TopiaLpStaking.sol
lockup multiplier, must match lockup intervals array length
uint8[] public lockupIntervalMultipliers;
2,952,904
[ 1, 4625, 348, 7953, 560, 30, 225, 2176, 416, 15027, 16, 1297, 845, 2176, 416, 10389, 526, 769, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 28, 8526, 1071, 2176, 416, 4006, 5002, 8127, 414, 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, -1...
./partial_match/1/0xB690fC16279C096999264e3C049fA133024b4d69/sources/contracts/factory/DynamicBlueprintsFactoryPreInitialized.sol
* @notice Beacon keeping track of current DynamicBlueprint implementation/
address public immutable dynamicBlueprintsBeacon;
3,599,410
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4823, 16329, 19966, 3298, 434, 783, 12208, 30123, 4471, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 11732, 5976, 30123, 87, 1919, 16329, 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,...
pragma solidity ^0.4.13; contract IERC20Token { function totalSupply() constant returns (uint256 totalSupply); function balanceOf(address _owner) constant returns (uint256 balance) {} function transfer(address _to, uint256 _value) returns (bool success) {} function transferFrom(address _from, address _to, ...
Owner can set multisig address for crowdsale
function setCompanyAddress(address _newAddress) public onlyOwner { companyAddress = _newAddress; treasuryLocked = true; }
14,021,664
[ 1, 4625, 348, 7953, 560, 30, 225, 16837, 848, 444, 22945, 360, 1758, 364, 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, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 12627, 1887, 12, 2867, 389, 2704, 1887, 13, 1071, 1338, 5541, 288, 203, 565, 9395, 1887, 273, 389, 2704, 1887, 31, 203, 565, 9787, 345, 22498, 8966, 273, 638, 31, 203, 225, 289, 203, 2, -100, -100, -100, -100, -1...
./partial_match/3/0x6c1b6b9d70dE55a6d7eC20B15516CCB9b5E47e19/sources/Seekreward.sol
Deposit payout referal earn matching bonus
function withdraw() isLock external { (uint256 to_payout, uint256 max_payout) = this.payoutOf(msg.sender); require(users[msg.sender].payouts < max_payout, "Full payouts"); if(to_payout > 0) { if(users[msg.sender].payouts.add(to_payout) > max_payout) { to...
5,164,542
[ 1, 4625, 348, 7953, 560, 30, 225, 4019, 538, 305, 293, 2012, 8884, 287, 425, 1303, 3607, 324, 22889, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1435, 353, 2531, 3903, 288, 203, 3639, 261, 11890, 5034, 358, 67, 84, 2012, 16, 2254, 5034, 943, 67, 84, 2012, 13, 273, 333, 18, 84, 2012, 951, 12, 3576, 18, 15330, 1769, 203, 540, 203, 3639, 2583, 12, 55...
pragma solidity ^0.4.18; /* ==================================================================== */ /* Copyright (c) 2018 The MagicAcademy Project. All rights reserved. /* /* https://www.magicacademy.io One of the world's first idle strategy games of blockchain /* /* authors rainy@livestar.com/fanny.zheng@li...
get normal cardlist;
function getNormalCardList(address _owner) external view returns(uint256[],uint256[]){ uint256 startId; uint256 endId; (startId,endId) = schema.productionCardIdRange(); uint256 len = SafeMath.add(SafeMath.sub(endId,startId),1); uint256[] memory itemId = new uint256[](len); uint256[] memory it...
5,393,048
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 2212, 5270, 1098, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 336, 5506, 6415, 682, 12, 2867, 389, 8443, 13, 3903, 1476, 1135, 12, 11890, 5034, 63, 6487, 11890, 5034, 63, 5717, 95, 203, 565, 2254, 5034, 787, 548, 31, 203, 565, 2254, 5034, 679, 548, 31, 203, 565, 261, 1937, 548, ...
/* Copyright 2020 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...
============ Modifiers ============ */* Throws if the underlying/wrapped token pair is not valid/
modifier _onlyValidTokenPair(address _underlyingToken, address _wrappedToken) { require(validTokenPair(_underlyingToken, _wrappedToken), "Must be a valid token pair"); _; }
12,974,331
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 631, 3431, 3383, 422, 1432, 631, 1195, 14, 22435, 309, 326, 6808, 19, 18704, 1147, 3082, 353, 486, 923, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 389, 3700, 1556, 1345, 4154, 12, 2867, 389, 9341, 6291, 1345, 16, 1758, 389, 18704, 1345, 13, 288, 203, 3639, 2583, 12, 877, 1345, 4154, 24899, 9341, 6291, 1345, 16, 389, 18704, 1345, 3631, 315, 10136, 506, 279, 923, 1...
./full_match/8453/0x50e8aA83B81758AFBC39b1dE4cF46b3049488fFA/sources/contracts/BaseEther.sol
Fri Sep 01 2023 00:00:00 GMT+0000
uint256 public endMint = 1693526400;
11,555,285
[ 1, 4625, 348, 7953, 560, 30, 478, 566, 18032, 8743, 26599, 23, 9631, 30, 713, 30, 713, 21706, 15, 2787, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 679, 49, 474, 273, 2872, 29, 4763, 23728, 713, 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,...
./full_match/43113/0x82d4d5B0D89Ab194Dd1D8e7364130990463685D6/sources/PolyCrystal_MasterChef.sol
Deposit LP tokens to MasterHealer for CRYSTL allocation.
function deposit(uint256 _pid, uint256 _amount) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accCrystalPerShare).div(1e18)....
13,162,763
[ 1, 4625, 348, 7953, 560, 30, 225, 4019, 538, 305, 511, 52, 2430, 358, 13453, 5256, 6774, 364, 30565, 882, 48, 13481, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 1071, 1661, 426, 8230, 970, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, ...
./full_match/295/0x0000000000000000000000000000000000233233/sources/HederaResponseCodes.sol
Only tokens of type FUNGIBLE_COMMON can have fractional fees
int32 internal constant CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON = 246;
4,664,346
[ 1, 4625, 348, 7953, 560, 30, 225, 5098, 2430, 434, 618, 478, 2124, 43, 13450, 900, 67, 4208, 17667, 848, 1240, 20462, 1656, 281, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 1578, 2713, 5381, 21012, 67, 30316, 1013, 67, 8090, 41, 67, 10857, 67, 16852, 67, 7473, 67, 42, 2124, 43, 13450, 900, 67, 4208, 17667, 273, 4248, 26, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; impo...
* @dev Remove White List/
function removeWhiteList(uint256 tokenId, address[] calldata whiteUsers) external onlyRole(MANAGER_ROLE) { for (uint256 i = 0; i < whiteUsers.length; i++) { whiteList[tokenId].remove(whiteUsers[i]); } emit RemoveWhiteList(tokenId, whiteUsers); }
7,290,930
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3581, 30233, 987, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1206, 13407, 682, 12, 11890, 5034, 1147, 548, 16, 1758, 8526, 745, 892, 9578, 6588, 13, 203, 3639, 3903, 203, 3639, 1338, 2996, 12, 19402, 67, 16256, 13, 203, 565, 288, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, ...
pragma solidity 0.5.11; pragma experimental ABIEncoderV2; import "./PaymentExitGameArgs.sol"; import "./routers/PaymentStandardExitRouter.sol"; import "./routers/PaymentInFlightExitRouter.sol"; import "../utils/ExitId.sol"; import "../registries/SpendingConditionRegistry.sol"; import "../../framework/interfaces/IExitP...
* @dev use struct PaymentExitGameArgs to avoid stack too deep compilation error./ makes sure that the spending condition has already renounced ownership
{ plasmaFramework = args.framework; require(args.spendingConditionRegistry.owner() == address(0), "Spending condition registry ownership needs to be renounced"); }
1,088,142
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 999, 1958, 12022, 6767, 12496, 2615, 358, 4543, 2110, 4885, 4608, 8916, 555, 18, 19, 7297, 3071, 716, 326, 272, 9561, 2269, 711, 1818, 1654, 27373, 23178, 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, 565, 288, 203, 3639, 886, 345, 2540, 13701, 273, 833, 18, 12303, 31, 203, 203, 3639, 2583, 12, 1968, 18, 87, 9561, 3418, 4243, 18, 8443, 1435, 422, 1758, 12, 20, 3631, 315, 55, 9561, 2269, 4023, 23178, 4260, 358, 506, 1654, 273...
// File: contracts\modules\SafeMath.sol pragma solidity =0.5.16; // a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math) library SafeMath { function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x, 'SafeMath: addition overflow...
* @dev An auxiliary function, add user's locked balance. @param account user's account. @param amount amount of FPT. @param lockedWorth net worth of FPT./
function _addLockBalance(address account, uint256 amount,uint256 lockedWorth)internal { lockedBalances[account]= lockedBalances[account].add(amount); lockedTotalWorth[account]= lockedTotalWorth[account].add(lockedWorth); _totalLockedWorth = _totalLockedWorth.add(lockedWorth); emit Ad...
11,978,488
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1922, 9397, 20606, 445, 16, 527, 729, 1807, 8586, 11013, 18, 632, 891, 2236, 729, 1807, 2236, 18, 632, 891, 3844, 3844, 434, 478, 1856, 18, 632, 891, 8586, 59, 7825, 2901, 26247, 434, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1289, 2531, 13937, 12, 2867, 2236, 16, 2254, 5034, 3844, 16, 11890, 5034, 8586, 59, 7825, 13, 7236, 288, 203, 3639, 8586, 38, 26488, 63, 4631, 65, 33, 8586, 38, 26488, 63, 4631, 8009, 1289, 12, 8949, 1769, 203, 3...
./full_match/1/0xF056374Dd1201FdDdC00A54AD92f68e48580c83C/sources/libraries/PoolActions.sol
@title This library is created to conduct a variety of burn liquidity methods
library PoolActions { using PoolVariables for IUniswapV3Pool; using LowGasSafeMath for uint256; using SafeCast for uint256; function burnLiquidityShare( IUniswapV3Pool pool, int24 tickLower, int24 tickUpper, uint256 totalSupply, uint256 share, address to ...
2,985,582
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 1220, 5313, 353, 2522, 358, 356, 1828, 279, 1394, 14369, 434, 18305, 4501, 372, 24237, 2590, 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, 12083, 8828, 6100, 288, 203, 565, 1450, 8828, 6158, 364, 467, 984, 291, 91, 438, 58, 23, 2864, 31, 203, 565, 1450, 23629, 27998, 9890, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 9735, 364, 2254, 5034, 31, 203, 203, 565, ...
//HEXMONEY.sol // // pragma solidity 0.6.4; import "./SafeMath.sol"; import "./IERC20.sol"; import "./HEX.sol"; import "./Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or...
send hex from user to contract
require(hexInterface.transferFrom(msg.sender, address(this), hearts), "Transfer failed");
1,284,068
[ 1, 4625, 348, 7953, 560, 30, 1366, 3827, 628, 729, 358, 6835, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 7118, 1358, 18, 13866, 1265, 12, 3576, 18, 15330, 16, 1758, 12, 2211, 3631, 3904, 485, 87, 3631, 315, 5912, 2535, 8863, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.24; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./SelfServiceAccessControls.sol"; interface IKODAV2SelfServiceEditionCuration { function crea...
* @dev Checks to see if the account can create editions/
function canCreateAnotherEdition(address account) public view returns (bool) { if (!isEnabledForAccount(account)) { return false; } return !_isFrozen(account); }
966,341
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13074, 358, 2621, 309, 326, 2236, 848, 752, 1675, 5029, 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, 225, 445, 848, 1684, 37, 24413, 41, 1460, 12, 2867, 2236, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 565, 309, 16051, 291, 1526, 1290, 3032, 12, 4631, 3719, 288, 203, 1377, 327, 629, 31, 203, 565, 289, 203, 565, 327, 401, ...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; 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 ...
barter calculator for liquidity token
mapping( address => address ) public barterCalculator;
13,397,268
[ 1, 4625, 348, 7953, 560, 30, 225, 4653, 387, 15497, 364, 4501, 372, 24237, 1147, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 1758, 516, 1758, 262, 1071, 4653, 387, 19278, 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, -1...
//Address: 0x8851Db785eD637aB8f6FcDCC396cEdeaE2A204E0 //Contract name: ALCCrowdsale2 //Balance: 0 Ether //Verification Date: 11/25/2017 //Transacion Count: 9 // CODE STARTS HERE pragma solidity ^0.4.18; library SafeMath { // ------------------------------------------------------------------------ // Add a n...
------------------------------------------------------------------------ Tranche 1 crowdsale start date and end date Start - 23h00 Tier1 - 23h05 Tier2 - 23h10 Tier3 - 23h15 End - 23h20 ------------------------------------------------------------------------
uint public constant START_TIME = 1511606100;
15,816,295
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 840, 304, 18706, 404, 276, 492, 2377, 5349, 787, 1509, 471, 679, 1509, 3603, 300, 10213, 76, 713, 399, 2453, 21, 225, 300, 10213, 76, 6260, 399, 2453, 22, 225, 300, 10213, 76, 2163, 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, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 5381, 10485, 67, 4684, 273, 4711, 20562, 7677, 6625, 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, ...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view retu...
Convert reeth decimals to ETH
totalREETH = totalREETH.mul(10**uint256(IERC20(WETH_ADDRESS).decimals())).div(10**uint256(IERC20(reethAddress).decimals()));
14,367,337
[ 1, 4625, 348, 7953, 560, 30, 225, 4037, 283, 546, 15105, 358, 512, 2455, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 862, 1584, 44, 273, 2078, 862, 1584, 44, 18, 16411, 12, 2163, 636, 11890, 5034, 12, 45, 654, 39, 3462, 12, 59, 1584, 44, 67, 15140, 2934, 31734, 10756, 2934, 2892, 12, 2163, 636, 11890, 5034, 12, 45, 654, 39, 3462, ...
/** The software and documentation available in this repository (the "Software") is protected by copyright law and accessible pursuant to the license set forth below. Copyright © 2019 Staked Securely, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person or organizatio...
@notice Set the principal address/coin of the associated portfolio @param portfolioId - The id of the portfolio we're configuring @param _principalAddress - The coin's contract address for this portfolio
function setPrincipalAddress( bytes32 portfolioId, address _principalAddress ) external onlyStorageWrappers { _commonStorage[portfolioId].principalAddress = _principalAddress; }
12,906,409
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 225, 1000, 326, 8897, 1758, 19, 12645, 434, 326, 3627, 19933, 632, 891, 282, 19933, 548, 300, 1021, 612, 434, 326, 19933, 732, 4565, 642, 4017, 632, 891, 282, 389, 26138, 1887, 300, 1021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 9155, 1887, 12, 203, 565, 1731, 1578, 19933, 548, 16, 203, 565, 1758, 389, 26138, 1887, 203, 225, 262, 203, 565, 3903, 203, 565, 1338, 3245, 24114, 203, 225, 288, 203, 203, 565, 389, 6054, 3245, 63, 28962, 548, 8...
//Address: 0xd21daa01e682f849c8e21bd945bc040103091640 //Contract name: UTEMIS //Balance: 0 Ether //Verification Date: 1/26/2018 //Transacion Count: 472 // CODE STARTS HERE pragma solidity ^0.4.19; contract ERC20 { function totalSupply() public view returns (uint supply); function balanceOf( address _owner ) ...
* Approve spender to transfer amount of tokens from your address ERC20 ERC20 @param _spender Address that can transfer tokens from your address @param _value Amount of tokens that can be sended by spender/
function approve(address _spender , uint256 _value) public returns (bool success){ allowed[msg.sender][_spender] = _value; Approval(msg.sender , _spender , _value); return true; }
5,419,414
[ 1, 4625, 348, 7953, 560, 30, 380, 1716, 685, 537, 17571, 264, 358, 7412, 3844, 434, 2430, 628, 3433, 1758, 4232, 39, 3462, 4232, 39, 3462, 632, 891, 389, 87, 1302, 264, 4202, 5267, 716, 848, 7412, 2430, 628, 3433, 1758, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 12, 2867, 389, 87, 1302, 264, 269, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 2216, 15329, 203, 3639, 2935, 63, 3576, 18, 15330, 6362, 67, 87, 1302, 264, 65, 273, 389, 1132, 31, 203, 3639, 1716, 685,...
pragma solidity ^0.4.21; // SafeMath is a part of Zeppelin Solidity library // licensed under MIT License // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/LICENSE /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(ui...
The rest of the remainder goes to the ETIT Dividend pool
_processDividends(remainingReward);
7,280,582
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 3127, 434, 326, 10022, 13998, 358, 326, 4518, 1285, 21411, 26746, 2845, 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, 5411, 389, 2567, 7244, 350, 5839, 12, 17956, 17631, 1060, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/42/0x69A3A1090435021c6926aEa163E9D20FEF96d244/sources/InterestBearingERC20.sol
Catch up from previous missing rebase (if needed) Update with the remaining interest of the current period
function defineInterest(uint256 _interestRate) external override onlyOwner returns (bool) { require(_interestRate != 0, "IB01"); uint256 currentTime_ = currentTime(); require(rebaseInterest(), "IB02"); uint256 latestElasticity = elasticityAt(currentTime_); if (latestElasticity != elasticity...
9,059,366
[ 1, 4625, 348, 7953, 560, 30, 225, 21984, 731, 628, 2416, 3315, 283, 1969, 261, 430, 3577, 13, 2315, 598, 326, 4463, 16513, 434, 326, 783, 3879, 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, 225, 445, 4426, 29281, 12, 11890, 5034, 389, 2761, 395, 4727, 13, 203, 565, 3903, 3849, 1338, 5541, 1135, 261, 6430, 13, 203, 225, 288, 203, 565, 2583, 24899, 2761, 395, 4727, 480, 374, 16, 315, 13450, 1611, 8863, 203, 565, 2254,...
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.13; /// @title Nouns DAO Logic interfaces and events /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░██...
@notice Possible states that a proposal may be in
enum ProposalState { Pending, Active, Canceled, Defeated, Succeeded, Queued, Expired, Executed, Vetoed }
913,433
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 25433, 5493, 716, 279, 14708, 2026, 506, 316, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2792, 19945, 1119, 288, 203, 565, 16034, 16, 203, 565, 8857, 16, 203, 565, 10347, 329, 16, 203, 565, 1505, 3030, 690, 16, 203, 565, 348, 20983, 16, 203, 565, 27949, 5957, 16, 203, 565, 7784, 2921, 16, 203, 565, 3889, 4817,...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; imp...
* @notice Remove recipient. @param recipient Address of recipient contract./
function removeRecipient(address recipient) external onlyOwner { require(recipientsIndex.contains(recipient), "ProfitSplitter::removeRecipient: recipient already removed"); recipientsIndex.remove(recipient); shares[recipient] = 0; emit RecipientRemoved(recipient); }
15,785,766
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3581, 8027, 18, 632, 891, 8027, 5267, 434, 8027, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1206, 18241, 12, 2867, 8027, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 27925, 1016, 18, 12298, 12, 20367, 3631, 315, 626, 7216, 26738, 2866, 4479, 18241, 30, 8027, 1818, 3723, 8863, 203, 203, 3639, 12045, 1016, 18, ...
./full_match/77/0x3Db753B1E2b48A5fefaE23F2434C1FBEDbE0769e/sources/project_/contracts/Offer.sol
@dev Cashouts tokens for a specified user/ cashout is automatic, and done ONLY by the token wait till the offer is successful to allow transfer nothing to be paid make sure there's something to be paid
function cashoutTokens(address _investor) external virtual override returns (bool) { require(_msgSender() == address(baseToken), "Call only from token"); if (!bSuccess) { return false; } if (payment.totalAmount == 0) { retur...
5,046,392
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 385, 961, 20125, 2430, 364, 279, 1269, 729, 19, 276, 961, 659, 353, 5859, 16, 471, 2731, 20747, 635, 326, 1147, 2529, 21364, 326, 10067, 353, 6873, 358, 1699, 7412, 5083, 358, 506, 30591,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 276, 961, 659, 5157, 12, 2867, 389, 5768, 395, 280, 13, 203, 3639, 3903, 203, 3639, 5024, 203, 3639, 3849, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 24899, 3576, 12021, 1435, 422, 1758, 12, 1969, ...
/** *Submitted for verification at Etherscan.io on 2019-07-10 */ /* * Crypto stamp colors storage * Store colors for connected physical assets * * Developed by capacity.at * for post.at */ // File: openzeppelin-solidity/contracts/introspection/IERC165.sol pragma solidity ^0.5.0; /** * @dev Interface of the ...
If this contract gets a balance in some ERC20 contract after it&#39;s finished, then we can rescue it.
function rescueToken(IERC20 _foreignToken, address _to) external onlyTokenAssignmentControl { _foreignToken.transfer(_to, _foreignToken.balanceOf(address(this))); }
2,406,071
[ 1, 4625, 348, 7953, 560, 30, 225, 971, 333, 6835, 5571, 279, 11013, 316, 2690, 4232, 39, 3462, 6835, 1839, 518, 18642, 5520, 31, 87, 6708, 16, 1508, 732, 848, 8223, 518, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 8223, 1345, 12, 45, 654, 39, 3462, 389, 12774, 1345, 16, 1758, 389, 869, 13, 203, 565, 3903, 203, 565, 1338, 1345, 7729, 3367, 203, 565, 288, 203, 3639, 389, 12774, 1345, 18, 13866, 24899, 869, 16, 389, 12774, 1345, 1...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import { WrappedConvexPosition } from "./WrappedConvexPosition.sol"; import "./libraries/Authorizable.sol"; import "./interfaces/external/IConvexBooster.sol"; import "./interfaces/external/IConvexBaseRewardPool.sol"; import "./interfaces/external/ISwapRout...
First give approval to the curve zap contract to access our stable coins
_approveAll();
1,071,983
[ 1, 4625, 348, 7953, 560, 30, 225, 5783, 8492, 23556, 358, 326, 8882, 11419, 6835, 358, 2006, 3134, 14114, 276, 9896, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 12908, 537, 1595, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.6.0; import "../../../../node_modules/cdpsaver-contracts/contracts/mcd/general/SaverProxyActions.sol"; import "../constants/ConstantAddresses.sol"; contract ExtendedProxyActions { /// @notice Gets the maximum amount of debt available to generate // function getMaxDebt(bytes memory _ca...
function getMaxDebt(bytes memory _callArgs) function getMaxCollateral(uint _cdpId, bytes32 _ilk, address _joinAddr) public view returns (uint) { function getFee(uint _amount, uint _gasCost, address _owner) internal returns (uint feeAmount) { function getMaxCollateral(uint _cdpId, bytes32 _ilk, address _joinAddr) publi...
contract ExtendedProxyActions { The Stability Fee continuously accrues to the generated Dai Balance of a user’s Vault. Vault owners are free to pay back Dai at any time they wish. Vaults have no standards around repayment, instead, they require the owner of the Vault to keep its Collateraliza...
6,472,191
[ 1, 4625, 348, 7953, 560, 30, 225, 445, 7288, 758, 23602, 12, 3890, 3778, 389, 1991, 2615, 13, 445, 7288, 13535, 2045, 287, 12, 11890, 389, 4315, 84, 548, 16, 1731, 1578, 389, 330, 79, 16, 1758, 389, 5701, 3178, 13, 1071, 1476, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14094, 3886, 6100, 288, 203, 377, 203, 203, 203, 203, 203, 203, 203, 203, 377, 1021, 934, 2967, 30174, 17235, 715, 4078, 86, 3610, 358, 326, 4374, 463, 10658, 30918, 434, 279, 729, 163, 227, 252, 87, 17329, 18, 203, 377, ...
// SPDX-License-Identifier: BUSL-1.1 // // 8888888888 888 // 888 888 // 888 888 // 8888888 8888b. .d8888b 888888 .d88b. 888d888 888 888 // 888 "88b d88P" 888 d88""88b 888P" 888 888 // 888 .d888888 888 888 888 888 888 888 88...
* @dev Indicates that the contract has been initialized./* @dev Indicates that the contract is in the process of being initialized./* @dev Modifier to protect an initializer function from being invoked twice./ If the contract is initializing we ignore whether _initialized is set in order to support multiple inheritance...
function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity uint256[42] private __gap; } pragma solidity ^0.8.0; import "../../utils/AddressUpgra...
527,836
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 18336, 716, 326, 6835, 711, 2118, 6454, 18, 20308, 632, 5206, 18336, 716, 326, 6835, 353, 316, 326, 1207, 434, 3832, 6454, 18, 20308, 632, 5206, 12832, 358, 17151, 392, 12562, 445, 628, 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, 225, 445, 389, 5771, 1345, 1429, 18881, 12, 203, 565, 1758, 628, 16, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, 787, 1345, 548, 16, 203, 565, 2254, 5034, 10457, 203, 203, 225, 445, 389, 5205, 1345, 1429, 18881, 12, 203, 565...
./partial_match/42/0xF74fD2daa87DF8d99e1Ea7dF493a18B546957099/sources/YaxisChef.sol
Safe yax mint, ensure it is never over cap and we are the current owner.
function safeYaxMint(address _to, uint256 _amount) internal { if (yax.minters(address(this)) && _to != address(0)) { uint256 totalSupply = yax.totalSupply(); uint256 cap = yax.cap(); if (totalSupply.add(_amount) > cap) { yax.mint(_to, cap.sub(totalSupply))...
3,378,458
[ 1, 4625, 348, 7953, 560, 30, 225, 14060, 677, 651, 312, 474, 16, 3387, 518, 353, 5903, 1879, 3523, 471, 732, 854, 326, 783, 3410, 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, ...
[ 1, 1, 1, 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, 4183, 61, 651, 49, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 309, 261, 93, 651, 18, 1154, 5432, 12, 2867, 12, 2211, 3719, 597, 389, 869, 480, 1758, 12, 20, 3719, 288, 203, 5411, ...
./full_match/42220/0x1f93720b14B349Ee07010245D19813DF51fE3047/sources/contracts/FossilFarms.sol
Accumulated DINO per share, times 1e12. See below.
uint256 accDinoPerShare;
16,328,675
[ 1, 4625, 348, 7953, 560, 30, 225, 15980, 5283, 690, 463, 706, 51, 1534, 7433, 16, 4124, 404, 73, 2138, 18, 2164, 5712, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 3639, 2254, 5034, 4078, 40, 15020, 2173, 9535, 31, 540, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0xE8dD6415aBd0bc2b75E0217c9E65EBA5589284CD/sources/contracts/BCoC.sol
payable --> signifies that we are going to send some crypto currency through this function The amount of wei sent with a message to a contract (wei is a denomination of ETH) push the address of person who submitted the handling form transaction , sent is a variable to be called later, payable(evidence.owner) --> sendi...
function addHandlers(uint256 _id) public payable { uint256 amount = msg.value; Evidence storage evidence = evidences[_id]; evidence.donators.push(msg.sender); evidence.donations.push(amount); if(sent) { evidence.amountCollected = evidence.amountCollected + amount;...
7,052,875
[ 1, 4625, 348, 7953, 560, 30, 225, 8843, 429, 15431, 1573, 5032, 716, 732, 854, 8554, 358, 1366, 2690, 8170, 5462, 3059, 333, 445, 1021, 3844, 434, 732, 77, 3271, 598, 279, 883, 358, 279, 6835, 261, 1814, 77, 353, 279, 10716, 1735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 527, 6919, 12, 11890, 5034, 389, 350, 13, 1071, 8843, 429, 288, 203, 3639, 2254, 5034, 3844, 273, 1234, 18, 1132, 31, 203, 3639, 512, 9526, 2502, 14481, 273, 425, 1246, 2369, 63, 67, 350, 15533, 203, 3639, 14481, 18, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./extensions/IERC721Rental.sol"; import "../../utils/introspection/ERC165.sol"; /// @title ERC721 bundle rental agreement /// /// Deploy one contract for any token rentals following these principles: /// - The rental price is def...
If the token specific price is zero, it will use the default one. Same for the fee. Default prices cannot be changed afterwards.
constructor(uint32 _defaultRentPriceInWeiPerSecond, uint80 _defaultCancelationFeeInWei) { defaultRentPriceInWeiPerSecond = _defaultRentPriceInWeiPerSecond; defaultCancelationFeeInWei = _defaultCancelationFeeInWei; }
955,040
[ 1, 4625, 348, 7953, 560, 30, 225, 971, 326, 1147, 2923, 6205, 353, 3634, 16, 518, 903, 999, 326, 805, 1245, 18, 17795, 364, 326, 14036, 18, 2989, 19827, 2780, 506, 3550, 23838, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 11890, 1578, 389, 1886, 54, 319, 5147, 382, 3218, 77, 2173, 8211, 16, 2254, 3672, 389, 1886, 6691, 367, 14667, 382, 3218, 77, 13, 288, 203, 3639, 805, 54, 319, 5147, 382, 3218, 77, 2173, 8211, 273, 389, 1886, 54,...
// SPDX-License-Identifier: MIT // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is disstributed in...
* @dev See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`./
function transfer( Storage.Curve storage curve, address recipient, uint256 amount ) external returns (bool) { _transfer(curve, msg.sender, recipient, amount); return true; }
1,539,399
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 3462, 17, 13866, 5496, 29076, 30, 300, 1375, 20367, 68, 2780, 506, 326, 3634, 1758, 18, 300, 326, 4894, 1297, 1240, 279, 11013, 434, 622, 4520, 1375, 8949, 8338, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 203, 3639, 5235, 18, 9423, 2502, 8882, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3903, 1135, 261, 6430, 13, 288, 203, 3639, 389, 13866, 12, 16683, 16, 1234, 18, 15330, 16, 80...
pragma solidity ^0.5.16; import "./CErc20.sol"; import "./CToken.sol"; import "./PriceOracle.sol"; import "./Exponential.sol"; import "./EIP20Interface.sol"; interface V1PriceOracleInterface { function assetPrices(address asset) external view returns (uint); } interface CurveSwapInterface { function get_virt...
@notice ChainLink aggregator base, currently support ETH and USD
enum AggregatorBase { ETH, USD }
5,398,381
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 7824, 2098, 20762, 1026, 16, 4551, 2865, 512, 2455, 471, 587, 9903, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2792, 10594, 639, 2171, 288, 203, 3639, 512, 2455, 16, 203, 3639, 587, 9903, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity =0.8.10; abstract contract IManager { function last(address) virtual public returns (uint); function cdpCan(address, uint, address) virtual public view returns (uint); function ilks(uint) virtual public view returns (bytes32); function owns(uint) vir...
According to EIP-1052, 0x0 is the value returned for not-yet created accounts and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned for accounts without code, i.e. `keccak256('')` solhint-disable-next-line no-inline-assembly
function drip(bytes32) public virtual returns (uint); } } } } function isContract(address account) internal view returns (bool) { bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; assembly { codehas...
6,337,948
[ 1, 4625, 348, 7953, 560, 30, 225, 12848, 4643, 358, 512, 2579, 17, 2163, 9401, 16, 374, 92, 20, 353, 326, 460, 2106, 364, 486, 17, 24404, 2522, 9484, 471, 374, 6511, 25, 72, 3247, 26, 1611, 5292, 74, 9060, 3707, 71, 29, 5324, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 302, 21335, 12, 3890, 1578, 13, 1071, 5024, 1135, 261, 11890, 1769, 203, 97, 203, 203, 203, 203, 203, 203, 97, 203, 203, 203, 203, 203, 203, 97, 203, 203, 203, 203, 203, 203, 97, 203, 203, 203, 203, 203, 203, 565, ...
pragma solidity >=0.5.0 <0.7.0; // Import the different Roles import "../coffeecore/Ownable.sol"; import "../coffeeaccesscontrol/FarmerRole.sol"; import "../coffeeaccesscontrol/ProcessorRole.sol"; import "../coffeeaccesscontrol/DistributorRole.sol"; import "../coffeeaccesscontrol/RoasterRole.sol"; import "../coffeeacc...
Define a function 'buyItem' that allows a roaster to mark an item 'Bought' Update the appropriate fields Emit the appropriate event
function buyItem(uint _upc, uint _productFOBPrice) public listed(_upc) verifyRoaster(msg.sender) { items[_upc].ownerID = msg.sender; items[_upc].itemState = State.Bought; items[_upc].productFOBPrice = _productFOBPrice; items[_upc].roasterID = msg.sender; ...
14,097,276
[ 1, 4625, 348, 7953, 560, 30, 225, 13184, 279, 445, 296, 70, 9835, 1180, 11, 716, 5360, 279, 721, 2440, 358, 2267, 392, 761, 296, 13809, 9540, 11, 2315, 326, 5505, 1466, 16008, 326, 5505, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 1180, 12, 11890, 389, 416, 71, 16, 2254, 389, 5896, 3313, 38, 5147, 13, 203, 3639, 1071, 203, 3639, 12889, 24899, 416, 71, 13, 203, 3639, 3929, 22869, 2440, 12, 3576, 18, 15330, 13, 203, 565, 288, 203, 3639, 15...
// SPDX-License-Identifier: MIT pragma solidity 0.8.5; // ============ External Imports ============ import {IFoundationMarket} from "../external/interfaces/IFoundationMarket.sol"; // ============ Internal Imports ============ import {IMarketWrapper} from "./IMarketWrapper.sol"; /** * @title FoundationMarketWrapper...
* @notice Determine whether there is an existing auction for this token on the market @return TRUE if the auction exists/ line 219 of NFTMarketReserveAuction, logic within placeBid() function (not exposed publicly)
function auctionExists(uint256 auctionId) public view override returns (bool) { IFoundationMarket.ReserveAuction memory _auction = market.getReserveAuction(auctionId); return _auction.amount != 0; }
13,983,873
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 10229, 2856, 1915, 353, 392, 2062, 279, 4062, 364, 333, 1147, 603, 326, 13667, 632, 2463, 5383, 309, 326, 279, 4062, 1704, 19, 980, 576, 3657, 434, 423, 4464, 3882, 278, 607, 6527, 37, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 279, 4062, 4002, 12, 11890, 5034, 279, 4062, 548, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 467, 27788, 3882, 278, 18, 607, 6527, 37, 4062, 3778, ...
// File: contracts/InterestRateModel.sol pragma solidity ^0.5.16; /** * @title Compound's InterestRateModel Interface * @author Compound */ contract InterestRateModel { /// @notice Indicator that this is an InterestRateModel contract (for inspection) bool public constant isInterestRateModel = true; ...
* @notice Calculates the utilization rate of the market: `borrows / (cash + borrows - reserves)` @param cash The amount of cash in the market @param borrows The amount of borrows in the market @param reserves The amount of reserves in the market (currently unused) @return The utilization rate as a mantissa between [0, ...
function utilizationRate(uint cash, uint borrows, uint reserves) public pure returns (uint) { if (borrows == 0) { return 0; } return borrows.mul(1e18).div(cash.add(borrows).sub(reserves)); }
5,462,967
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 26128, 326, 1709, 1588, 4993, 434, 326, 13667, 30, 1375, 70, 280, 3870, 342, 261, 71, 961, 397, 324, 280, 3870, 300, 400, 264, 3324, 22025, 632, 891, 276, 961, 1021, 3844, 434, 276, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1709, 1588, 4727, 12, 11890, 276, 961, 16, 2254, 324, 280, 3870, 16, 2254, 400, 264, 3324, 13, 1071, 16618, 1135, 261, 11890, 13, 288, 203, 3639, 309, 261, 70, 280, 3870, 422, 374, 13, 288, 203, 5411, 327, 374, 31, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import "./interfaces/IComitium.sol"; import "./Queue.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; contract Governance is Queue { using SafeMath for uint256; enum ProposalState { WarmUp, ...
means it changed its vote
function abrogationProposal_castVote(uint256 proposalId, bool support) public { require(0 < proposalId && proposalId <= lastProposalId, "invalid proposal id"); AbrogationProposal storage abrogationProposal = abrogationProposals[proposalId]; require( state(proposalId) == Proposal...
12,130,572
[ 1, 4625, 348, 7953, 560, 30, 225, 4696, 518, 3550, 2097, 12501, 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, 1223, 303, 75, 367, 14592, 67, 4155, 19338, 12, 11890, 5034, 14708, 548, 16, 1426, 2865, 13, 1071, 288, 203, 3639, 2583, 12, 20, 411, 14708, 548, 597, 14708, 548, 1648, 1142, 14592, 548, 16, 315, 5387, 14708, 612, 8863,...
./partial_match/1/0x6A4d4525D6821292DbB861Ab263b3DD337248283/sources/FarmersVille.sol
1 ETH = 63600 FMV
RATE = 636000000;
15,576,810
[ 1, 4625, 348, 7953, 560, 30, 225, 404, 512, 2455, 273, 1666, 5718, 713, 478, 49, 58, 7010, 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, 3639, 534, 1777, 273, 1666, 5718, 9449, 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, ...
// File: contracts/1_Storage.sol // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance ...
Give the creator all initial tokens (100000 for example)
balances[msg.sender] = 10000000000000000000;
13,689,088
[ 1, 4625, 348, 7953, 560, 30, 225, 22374, 326, 11784, 777, 2172, 2430, 261, 21, 11706, 364, 3454, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 324, 26488, 63, 3576, 18, 15330, 65, 273, 2130, 12648, 2787, 11706, 31, 7734, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity >=0.8.4; import "../registry/HI.sol"; import "./ERC721.sol"; import "./BaseRegistrar.sol"; contract BaseRegistrarImplementation is ERC721, BaseRegistrar { // A map of expiry times mapping(uint256=>uint) expiries; bytes4 constant private INTERFACE_META_ID = bytes4(keccak256("supportsInter...
* @dev Returns true if `account` is a contract. [IMPORTANT] ==== It is unsafe to assume that an address for which this function returns false is an externally-owned account (EOA) and not a contract. Among others, `isContract` will return false for the following types of addresses: - an externally-owned account - a co...
function _beforeTokenTransfer( address from, address to, uint256 tokenId } pragma solidity ^0.8.4; import "../registry/HI.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; } pragma solidity ^0.8.0; import "../../utils/...
6,230,524
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 638, 309, 1375, 4631, 68, 353, 279, 6835, 18, 306, 20445, 6856, 65, 422, 631, 2597, 353, 7127, 358, 6750, 716, 392, 1758, 364, 1492, 333, 445, 1135, 629, 353, 392, 18885, 1230, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 97, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 24, 31, 203, 203, 5666, 315, 6216, 989...
./full_match/80001/0x199BBf4b9090FcA071ACdb5618ded3183f3F334f/sources/contracts/interfaces/IEntryPoint.sol
* Execute a batch of UserOperations. No signature aggregator is used. If any account requires an aggregator (that is, it returned an aggregator when performing simulateValidation), then handleAggregatedOps() must be used instead. @param ops - The operations to execute. @param beneficiary - The address to receiv...
function handleOps( UserOperation[] calldata ops, address payable beneficiary ) external; function handleAggregatedOps( UserOpsPerAggregator[] calldata opsPerAggregator, address payable beneficiary ) external; function getUserOpHash( UserOperation calldata u...
9,486,001
[ 1, 4625, 348, 7953, 560, 30, 380, 7903, 279, 2581, 434, 2177, 9343, 18, 2631, 3372, 20762, 353, 1399, 18, 971, 1281, 2236, 4991, 392, 20762, 261, 19056, 353, 16, 518, 2106, 392, 20762, 1347, 14928, 20089, 4354, 3631, 1508, 1640, 6078,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 8132, 12, 203, 3639, 2177, 2988, 8526, 745, 892, 6727, 16, 203, 3639, 1758, 8843, 429, 27641, 74, 14463, 814, 203, 565, 262, 3903, 31, 203, 203, 565, 445, 1640, 6078, 690, 8132, 12, 203, 3639, 2177, 8132, 2173, ...
./partial_match/3/0x07d8cBcF6148cC23faca1220DDf5B99Cd44d15a8/sources/Oracle.sol
Hardcoded oracle count
uint totalOracleCount = 3;
5,211,405
[ 1, 4625, 348, 7953, 560, 30, 225, 670, 1060, 24808, 20865, 1056, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 2078, 23601, 1380, 273, 890, 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, ...
./partial_match/1/0xA3050cE4b5D71CcE9BB05b6cBE9D200bbEBB8e6b/sources/THEONERING.sol
at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch. if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy
function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!blocked[from], "Sniper blocked"); ...
2,664,004
[ 1, 4625, 348, 7953, 560, 30, 225, 622, 8037, 309, 326, 7412, 4624, 353, 3696, 16, 3387, 326, 1203, 11267, 364, 5405, 343, 345, 414, 353, 444, 1493, 4982, 8037, 18, 309, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, ...
//Address: 0xab37d7c4a2ae9ad4451aa796171dc8ac0fa429f4 //Contract name: IcoToken //Balance: 0 Ether //Verification Date: 2/2/2018 //Transacion Count: 95 // CODE STARTS HERE //File: node_modules/zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol pragma solidity ^0.4.18; /** * @title ERC20Basic * @dev Simpler v...
* @dev override (not extend! because we only issues tokens after final KYC confirm phase) core functionality by blacklist check and registration of payment @param _beneficiary address address of the beneficiary to receive tokens after they have been confirmed/ 20% discount bonus amount 10% discount bonus amount ti...
function buyTokens(address _beneficiary) public payable { require(_beneficiary != address(0)); require(validPurchase()); require(!isBlacklisted[msg.sender]); uint256 weiAmount = msg.value; uint256 tokenAmount; uint256 purchasedTokens = weiAmount.mul(tokenPerWei); ...
13,074,870
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3849, 261, 902, 2133, 5, 2724, 732, 1338, 8296, 2430, 1839, 727, 1475, 61, 39, 6932, 6855, 13, 1377, 2922, 14176, 635, 11709, 866, 471, 7914, 434, 5184, 632, 891, 389, 70, 4009, 74, 144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30143, 5157, 12, 2867, 389, 70, 4009, 74, 14463, 814, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 24899, 70, 4009, 74, 14463, 814, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12, 877, 23164, 10663, 203, 3639, 2583, 12, ...
./partial_match/42/0x1fff21842a1c6A8e73a4C083ed57eec55C79FE72/sources/PortobelloToken.sol
* @dev Transfers `tokenId` from `from` to `to`. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./ Clear approvals from the previous owner
function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ownerOf(tokenId) == from, 'ERC721: transfer of token that is not own' ); require(to != address(0), 'ERC721: transfer to the zero address'); _beforeTokenTransfer(from, to, tokenId); ...
3,327,656
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2604, 18881, 1375, 2316, 548, 68, 628, 1375, 2080, 68, 358, 1375, 869, 8338, 225, 2970, 1061, 7423, 358, 288, 13866, 1265, 5779, 333, 709, 10522, 1158, 17499, 603, 1234, 18, 15330, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 13866, 12, 203, 565, 1758, 628, 16, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, 1147, 548, 203, 225, 262, 2713, 5024, 288, 203, 565, 2583, 12, 203, 1377, 3410, 951, 12, 2316, 548, 13, 422, 628, 16, 203, 1377...
/* ----------------------------------------------------------------- FILE INFORMATION ----------------------------------------------------------------- file: Owned.sol version: 1.1 author: Anton Jurisevic Dominic Romanowski date: 2018-2-26 ----------------------------------------------...
* @notice Construct a vesting schedule to release a quantities of havvens over a series of intervals. @dev Assumes that the quantities are nonzero and that the sequence of timestamps is strictly increasing. This may only be called by the owner during the contract&#39;s setup period./
function addVestingSchedule(address account, uint[] times, uint[] quantities) external onlyOwner onlyDuringSetup { for (uint i = 0; i < times.length; i++) { appendVestingEntry(account, times[i], quantities[i]); } }
2,140,129
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 14291, 279, 331, 10100, 4788, 358, 3992, 279, 10251, 1961, 434, 366, 842, 90, 773, 1879, 279, 4166, 434, 10389, 18, 632, 5206, 25374, 716, 326, 10251, 1961, 854, 16966, 471, 716, 326, 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, 527, 58, 10100, 6061, 12, 2867, 2236, 16, 2254, 8526, 4124, 16, 2254, 8526, 10251, 1961, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 3639, 1338, 26424, 7365, 203, 565, 288, 203, 3639, 364, 261, 11890, 277, 273, 374...
./full_match/4/0x919febb6648cE9015dC71E924FedFc91A56b9a0b/sources/contracts/Comptroller.sol
* @notice Set COMP borrow and supply speeds for the specified markets. @param cTokens The markets whose COMP speed to update. @param supplySpeeds New supply-side COMP speed for the corresponding market. @param borrowSpeeds New borrow-side COMP speed for the corresponding market./
function _setCompSpeeds(CToken[] memory cTokens, uint[] memory supplySpeeds, uint[] memory borrowSpeeds) public { require(adminOrInitializing(), "only admin can set comp speed"); uint numTokens = cTokens.length; require(numTokens == supplySpeeds.length && numTokens == borrowSpeeds.length, "...
770,305
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1000, 13846, 29759, 471, 14467, 8632, 87, 364, 326, 1269, 2267, 2413, 18, 632, 891, 276, 5157, 1021, 2267, 2413, 8272, 13846, 8632, 358, 1089, 18, 632, 891, 14467, 16562, 87, 1166, 14467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 2945, 16562, 87, 12, 1268, 969, 8526, 3778, 276, 5157, 16, 2254, 8526, 3778, 14467, 16562, 87, 16, 2254, 8526, 3778, 29759, 16562, 87, 13, 1071, 288, 203, 3639, 2583, 12, 3666, 1162, 29782, 9334, 315, 3700, 39...
pragma solidity 0.4.24; // File: openzeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pu...
solhint-disable-line not-rely-on-time
emit LogAuditFinished(requestId, msg.sender, auditResult, reportHash);
5,489,224
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 17, 1369, 486, 17, 266, 715, 17, 265, 17, 957, 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, ...
[ 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, 3626, 1827, 10832, 10577, 12, 2293, 548, 16, 1234, 18, 15330, 16, 8215, 1253, 16, 2605, 2310, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/80001/0xAED337e458920db62B135ea8BCFF54C4F52160CF/sources/PFP_MSG/04-Croos_Version.sol
****************************************** Dataset ****************************************** full ipfs uri here, example-> https:ipfs.io/ipfs/qm.... . this is json by simple data (look in the end of code) ****************************************** Yelling ****************************************** *******************...
contract BoomerangCross is ERC721, ERC721URIStorage, ERC721Burnable, ERC2981, Ownable, ReentrancyGuard { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; string private _iconUrl; event RoyaltyFee(uint96 fee, uint256 time); require(verifySignature(messageH...
9,498,085
[ 1, 4625, 348, 7953, 560, 30, 225, 20210, 1644, 14, 10778, 20210, 1644, 14, 1983, 2359, 2556, 2003, 2674, 16, 3454, 2122, 2333, 30, 625, 2556, 18, 1594, 19, 625, 2556, 19, 26245, 6265, 263, 333, 353, 1163, 635, 4143, 501, 261, 7330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 605, 4252, 264, 539, 13941, 353, 4232, 39, 27, 5340, 16, 4232, 39, 27, 5340, 3098, 3245, 16, 4232, 39, 27, 5340, 38, 321, 429, 16, 4232, 39, 5540, 11861, 16, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 203, 565, ...
pragma solidity 0.5.6; library SafeMath { ...
If the pokeReward has not been sent, refund it to the initiator
internal { if (!pokeRewardSent) { require(daiContract.TRANSFER863(initiator, pokeReward), "Refund of pokeReward to Initiator failed!"); } CHANGEPHASE108(Phase.Closed); emit RELEASED940(); require(daiContract.TRANSFER863(devFeeAddress, devFee), "Token transfer t...
5,369,385
[ 1, 4625, 348, 7953, 560, 30, 971, 326, 293, 3056, 17631, 1060, 711, 486, 2118, 3271, 16, 16255, 518, 358, 326, 26030, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2713, 288, 203, 3639, 309, 16051, 84, 3056, 17631, 1060, 7828, 13, 288, 203, 5411, 2583, 12, 2414, 77, 8924, 18, 16596, 6553, 28, 4449, 12, 2738, 10620, 16, 293, 3056, 17631, 1060, 3631, 315, 21537, 434, 293, 3056, 17631, 10...
./full_match/1285/0xEe1e83541054b0090fA42A16FB2c34CcdA5276C7/sources/src/Facets/CelerIMFacet.sol
@dev Contains the business logic for the bridge via CBridge @param _bridgeData The core information needed for bridging @param _celerIMData Data specific to CBridge Assuming messageBusFee is pre-calculated off-chain and available in _celerIMData Determine correct native asset amount to be forwarded (if so) and send fu...
function _startBridge( ILiFi.BridgeData memory _bridgeData, CelerIMData calldata _celerIMData ) private { uint256 msgValue = LibAsset.isNativeAsset(_bridgeData.sendingAssetId) ? _bridgeData.minAmount : 0; if (!_bridgeData.hasDestinationCall) { ...
834,122
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 8398, 326, 13160, 4058, 364, 326, 10105, 3970, 385, 13691, 632, 891, 389, 18337, 751, 1021, 2922, 1779, 3577, 364, 324, 1691, 1998, 632, 891, 389, 2183, 264, 3445, 751, 1910, 2923, 358, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 1937, 13691, 12, 203, 3639, 467, 28762, 42, 77, 18, 13691, 751, 3778, 389, 18337, 751, 16, 203, 3639, 385, 22990, 3445, 751, 745, 892, 389, 2183, 264, 3445, 751, 203, 565, 262, 3238, 288, 203, 3639, 2254, 5034, 1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./GamearoundNFT.sol"; // Gamearound Ecosystem Genesis Token /// @custom:security-contact [email protected] contract GenesisGuild is GamearoundNFT { using Counters for Counters.Counter; uint256 public maxSupply = 4500; // Maximum supply of NFT...
Add the collected mint fund
mintFundValue += _tempMintFundValue;
5,763,893
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 326, 12230, 312, 474, 284, 1074, 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, 3639, 312, 474, 42, 1074, 620, 1011, 389, 5814, 49, 474, 42, 1074, 620, 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, -...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; /// https://t.me/rstfinance import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openze...
* @dev See {IERC1155MetadataURI-uri}. This implementation returns the same URI for all token types. It relies on the token type ID substituion mechanism Clients calling this function must replace the \{id\} substring with the actual token type ID./
function uri(uint256 _id) public view override returns (string memory) { return bytes(tokenUri).length > 0 ? string(abi.encodePacked(tokenUri, _id.toString())) : ""; }
1,573,730
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 2499, 2539, 2277, 3098, 17, 1650, 5496, 1220, 4471, 1135, 326, 1967, 3699, 364, 777, 1147, 1953, 18, 2597, 14719, 281, 603, 326, 1147, 618, 1599, 7461, 89, 285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2003, 12, 11890, 5034, 389, 350, 13, 1071, 1476, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 203, 5411, 1731, 12, 2316, 3006, 2934, 2469, 405, 374, 203, 7734, 692, 533, 12, 21457, 18, 3015, 4420, 329, 12, 23...
pragma experimental ABIEncoderV2; // File: Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns ...
@notice External function for vault managers to manually liquidate a specific amount in 'want' tokens @param amountToLiquidate, The total amount of tokens needed to liberate @return uint256 liquidatedAmount, Amount freed @return uint256 loss, Losses incurred due to early closing of positions/
function liquidateWantAmount(uint256 amountToLiquidate) external onlyVaultManagers returns(uint256 liquidatedAmount, uint256 loss) { (liquidatedAmount, loss) = liquidatePosition(amountToLiquidate); }
4,804,455
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 225, 11352, 445, 364, 9229, 21103, 358, 10036, 4501, 26595, 340, 279, 2923, 3844, 316, 296, 17369, 11, 2430, 632, 891, 3844, 774, 48, 18988, 350, 340, 16, 1021, 2078, 3844, 434, 2430, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4501, 26595, 340, 59, 970, 6275, 12, 11890, 5034, 3844, 774, 48, 18988, 350, 340, 13, 3903, 1338, 12003, 17570, 1135, 12, 11890, 5034, 4501, 26595, 690, 6275, 16, 2254, 5034, 8324, 13, 288, 203, 3639, 261, 549, 26595, 6...
./full_match/1/0x04ebA57401184A97C919b0B6b4e8dDE263BCb920/sources/contracts/zone/ICANN.sol
Add a function to read the nonce of a domain
function nonceOf(bytes32 namehash) public view returns (uint256) { return domains[namehash].nonce; }
9,803,611
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 279, 445, 358, 855, 326, 7448, 434, 279, 2461, 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, 225, 445, 7448, 951, 12, 3890, 1578, 508, 2816, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 10128, 63, 529, 2816, 8009, 12824, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x36165601Ab78e9c8bc0274f3C004FC0697e95687/sources/browser/Token.sol
add tokens to investor balance from founder balanceemit event
function invest(address investor) payable public returns(bool) { uint tokens = msg.value / tokenPrice * (10 ** decimals); require(balances[founder] >= tokens && tokens > 0, 'No tokens left'); balances[investor] += tokens; balances[founder] -= tokens; emit Invest(investor, ...
3,055,619
[ 1, 4625, 348, 7953, 560, 30, 527, 2430, 358, 2198, 395, 280, 11013, 628, 284, 465, 765, 11013, 18356, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2198, 395, 12, 2867, 2198, 395, 280, 13, 8843, 429, 1071, 1135, 12, 6430, 13, 288, 203, 3639, 2254, 2430, 273, 1234, 18, 1132, 342, 1147, 5147, 380, 261, 2163, 2826, 15105, 1769, 203, 3639, 2583, 12, 70, 26488, 63, 74...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.2; pragma experimental ABIEncoderV2; // File: @openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC165 standard, as defined in the ...
* @dev _Available since v3.1._/
interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Recei...
14,585,951
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 389, 5268, 3241, 331, 23, 18, 21, 6315, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 2499, 2539, 12952, 10784, 429, 353, 467, 654, 39, 28275, 10784, 429, 288, 203, 3639, 632, 5206, 27020, 326, 16030, 434, 279, 2202, 4232, 39, 2499, 2539, 1147, 618, 18, 1220, 445, 353, 203, 3639, 2566, 622, 326...
pragma solidity ^0.5.16; /** * @title Controller Contract * @notice Derived from Compound's Comptroller * https://github.com/compound-finance/compound-protocol/tree/master/contracts */ /** * @title Careful Math * @notice Derived from OpenZeppelin's SafeMath library * https://github.com/OpenZeppe...
* @notice Checks if the seizing of assets should be allowed to occur @param aTokenCollateral Asset which was used as collateral and will be seized @param aTokenBorrowed Asset which was borrowed by the borrower @param liquidator The address repaying the borrow and seizing the collateral @param borrower The address of th...
function seizeAllowed( address aTokenCollateral, address aTokenBorrowed, address liquidator, address borrower, uint seizeTokens) external returns (uint) { require(!seizeGuardianPaused, "seize is paused"); seizeTokens; if (!markets[aTokenCollateral].i...
7,696,092
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 13074, 309, 326, 695, 6894, 434, 7176, 1410, 506, 2935, 358, 3334, 632, 891, 279, 1345, 13535, 2045, 287, 10494, 1492, 1703, 1399, 487, 4508, 2045, 287, 471, 903, 506, 695, 1235, 632, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 695, 554, 5042, 12, 203, 3639, 1758, 279, 1345, 13535, 2045, 287, 16, 203, 3639, 1758, 279, 1345, 38, 15318, 329, 16, 203, 3639, 1758, 4501, 26595, 639, 16, 203, 3639, 1758, 29759, 264, 16, 203, 3639, 2254, 695, 554, ...
// SPDX-License-Identifier: MIT // Welcome to the Golden Gumball Machine pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/uti...
Parameters of Whitelisted Tokens
struct Whitelist { bool status; } mapping(address => Whitelist) public whitelist;
13,006,576
[ 1, 4625, 348, 7953, 560, 30, 225, 7012, 434, 3497, 7523, 329, 13899, 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, 1958, 3497, 7523, 288, 203, 3639, 1426, 1267, 31, 203, 565, 289, 203, 203, 565, 2874, 12, 2867, 516, 3497, 7523, 13, 1071, 10734, 31, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...