file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./full_match/1/0xE2d593ee1018C6BeEADc3415316EEf1084061aB1/sources/src/Nibble.sol
@notice Only Owner function to set stage of token sale
function setStage(Stages _stage) external onlyOwner { require(_stage != stage, "NIBBLE: Cannot set stage to current stage"); require(uint256(_stage) > uint256(stage), "NIBBLE: Cannot set stage to previous stage"); if (_stage == Stages.SaleOne) { taxFee = 4000; taxFee = 3000; taxFee = 200...
8,395,029
[ 1, 3386, 16837, 445, 358, 444, 6009, 434, 1147, 272, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 8755, 12, 31359, 389, 12869, 13, 3903, 1338, 5541, 288, 203, 565, 2583, 24899, 12869, 480, 6009, 16, 315, 50, 45, 9676, 900, 30, 14143, 444, 6009, 358, 783, 6009, 8863, 203, 565, 2583, 12, 11890, 5034, 24899, 12869...
./partial_match/1/0x00000000000006c7676171937C444f6BDe3D6282/sources/contracts/lib/OrderValidator.sol
* @dev Internal pure function to either revert or return an empty tuple depending on the value of `revertOnInvalid`. @param revertOnInvalid Whether to revert on invalid input. @param contractOrderHash The contract order hash. @return orderHash The order hash. @return numerator The numerator. @return denomina...
function _revertOrReturnEmpty( bool revertOnInvalid, bytes32 contractOrderHash ) internal pure returns (bytes32 orderHash, uint256 numerator, uint256 denominator) { if (revertOnInvalid) { _revertInvalidContractOrder(contractOrderHash); } ...
4,301,624
[ 1, 3061, 16618, 445, 358, 3344, 15226, 578, 327, 392, 1008, 3193, 1377, 8353, 603, 326, 460, 434, 1375, 266, 1097, 1398, 1941, 8338, 225, 15226, 1398, 1941, 282, 17403, 358, 15226, 603, 2057, 810, 18, 225, 6835, 2448, 2310, 1021, 6835...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 266, 1097, 1162, 990, 1921, 12, 203, 3639, 1426, 15226, 1398, 1941, 16, 203, 3639, 1731, 1578, 6835, 2448, 2310, 203, 565, 262, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 3890, 1578, 1353, 2310, 16, 2...
./full_match/1/0xBEbB92Ed09688e64DC38c240B600D0B1d504EE56/sources/lib/aera-contracts/contracts/v1/AeraVaultV1.sol
@inheritdoc IProtocolAPI
function initialDeposit(TokenValue[] calldata tokenWithAmount) external override onlyOwner { if (initialized) { revert Aera__VaultIsAlreadyInitialized(); } initialized = true; lastFeeCheckpoint = block.timestamp; IERC20[] memory token...
3,080,177
[ 1, 36, 10093, 467, 5752, 2557, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2172, 758, 1724, 12, 1345, 620, 8526, 745, 892, 1147, 1190, 6275, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 309, 261, 13227, 13, 288, 203, 5411, 15226, 432, 6070, 972, 12003,...
./partial_match/42220/0x56E44A9f86C2e3a53e816335cBE6deaE440b0856/sources/WitnetPriceFeedBypass.sol
@notice Returns the EVM-timestamp when last valid price was reported back from the Witnet oracle.
function lastTimestamp() override external view returns (uint256) { IWitnetPriceSolver.Price memory _price = feeds.latestPrice(feedId); return _price.timestamp; }
3,498,441
[ 1, 1356, 326, 512, 7397, 17, 5508, 1347, 1142, 923, 6205, 1703, 14010, 1473, 628, 326, 678, 305, 2758, 20865, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1142, 4921, 1435, 203, 3639, 3849, 7010, 3639, 3903, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 467, 59, 305, 2758, 5147, 27721, 18, 5147, 3778, 389, 8694, 273, 27684, 18, 13550, 5147, 12, 78...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; /** * @title Smart contract production Musicale * @author Djo...
* @dev mapping uint vers enum InvestNededByArtist/
mapping(uint256 => InvestNededByArtist) private _InvestNededByArtist;
13,015,691
[ 1, 6770, 2254, 14690, 2792, 5454, 395, 50, 2830, 858, 4411, 376, 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, 2874, 12, 11890, 5034, 516, 5454, 395, 50, 2830, 858, 4411, 376, 13, 3238, 389, 3605, 395, 50, 2830, 858, 4411, 376, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/43114/0x513037395FA0C9c35E41f89189ceDfE3bD42fAdb/sources/KashiPairMediumRiskV1.sol
@dev Helper function to perform a contract call and eventually extracting revert messages on failure. Calls to `bentoBox` are not allowed for obvious security reasons. This also means that calls made from this contract shall *not* be trusted.
function _call( uint256 value, bytes memory data, uint256 value1, uint256 value2 ) internal returns (bytes memory, uint8) { (address callee, bytes memory callData, bool useValue1, bool useValue2, uint8 returnValues) = abi.decode(data, (address, bytes, bool, bo...
4,558,907
[ 1, 2276, 445, 358, 3073, 279, 6835, 745, 471, 18011, 27117, 15226, 2743, 603, 5166, 18, 23665, 358, 1375, 70, 29565, 3514, 68, 854, 486, 2935, 364, 28067, 4373, 14000, 18, 1220, 2546, 4696, 716, 4097, 7165, 628, 333, 6835, 24315, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1991, 12, 203, 3639, 2254, 5034, 460, 16, 203, 3639, 1731, 3778, 501, 16, 203, 3639, 2254, 5034, 460, 21, 16, 203, 3639, 2254, 5034, 460, 22, 203, 565, 262, 2713, 1135, 261, 3890, 3778, 16, 2254, 28, 13, 288, 2...
./full_match/7700/0xD256aF1ab4A807eFcbD987fef1040f5437B10EF3/sources/src/Vault.sol
* @dev It switches the active strat for the strat candidate. After upgrading, the candidate implementation is set to the 0x00 address, and proposedTime to a longer time to ensure safety./
function upgradeStrat() public onlyOwner { assert(stratCandidate.implementation != address(0)); assert(stratCandidate.proposedTime + approvalDelay < block.timestamp); emit UpgradeStrat(stratCandidate.implementation); strategy.retireStrat(); strategy = IStrategyV7(stratCandi...
4,652,437
[ 1, 7193, 28216, 326, 2695, 609, 270, 364, 326, 609, 270, 5500, 18, 7360, 731, 15210, 16, 326, 5500, 4471, 353, 444, 358, 326, 374, 92, 713, 1758, 16, 471, 20084, 950, 358, 279, 7144, 813, 358, 3387, 24179, 18, 19, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8400, 1585, 270, 1435, 1071, 1338, 5541, 288, 203, 3639, 1815, 12, 701, 270, 11910, 18, 30810, 480, 1758, 12, 20, 10019, 203, 3639, 1815, 12, 701, 270, 11910, 18, 685, 7423, 950, 397, 23556, 6763, 411, 1203, 18, 5508, ...
./full_match/11155111/0x14C5B68a68302960F4Ce301391207295E24991cE/sources/contracts/Contract.sol
retrive patent of specific Id
function getPatentById(uint256 _id) public view returns (Patent memory) { return patents[_id]; }
3,804,599
[ 1, 266, 313, 688, 9670, 319, 434, 2923, 3124, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1689, 270, 319, 5132, 12, 11890, 5034, 389, 350, 13, 1071, 1476, 1135, 261, 22834, 319, 3778, 13, 288, 203, 3639, 327, 9670, 4877, 63, 67, 350, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.4; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/math/Math.sol"; import "./interfaces/IPolicyBook.sol"; import "./interfaces/IPolicyQuote.sol"; import "./interfaces/IPolicyBookFacade.sol"; import "./abstract/AbstractDependant....
@notice setup all pricing model varlues@param _highRiskRiskyAssetThresholdPercentage URRp Utilization ration for pricing model when the assets is considered risky, %@param _lowRiskRiskyAssetThresholdPercentage URRp Utilization ration for pricing model when the assets is not considered risky, %@param _highRiskMinimumCo...
function setupPricingModel( uint256 _highRiskRiskyAssetThresholdPercentage, uint256 _lowRiskRiskyAssetThresholdPercentage, uint256 _highRiskMinimumCostPercentage, uint256 _lowRiskMinimumCostPercentage, uint256 _minimumInsuranceCost, uint256 _lowRiskMaxPercentPremiumCo...
12,864,983
[ 1, 8401, 777, 31765, 938, 569, 80, 3610, 389, 8766, 54, 10175, 54, 10175, 93, 6672, 7614, 16397, 1618, 54, 84, 3564, 1588, 436, 367, 364, 31765, 938, 1347, 326, 7176, 353, 7399, 18404, 93, 16, 738, 389, 821, 54, 10175, 54, 10175, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 52, 1512, 310, 1488, 12, 203, 3639, 2254, 5034, 389, 8766, 54, 10175, 54, 10175, 93, 6672, 7614, 16397, 16, 203, 3639, 2254, 5034, 389, 821, 54, 10175, 54, 10175, 93, 6672, 7614, 16397, 16, 203, 3639, 2254, 5034, ...
./partial_match/40/0x3D2c6bCED5f50f5412234b87fF0B445aBA4d10e9/sources/MasterChef.sol
Returns maximum total supply of the token
function getMaxTotalSupply() external pure returns (uint256) { return _maxTotalSupply; }
8,827,592
[ 1, 1356, 4207, 2078, 14467, 434, 326, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7288, 5269, 3088, 1283, 1435, 3903, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 1896, 5269, 3088, 1283, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.24; library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is als...
* @dev Transfer token for a specified addresses @param from The address to transfer from. @param to The address to transfer to. @param value The amount to be transferred./
function _transfer(address from, address to, uint256 value) internal { require(value <= _balances[from]); require(to != address(0)); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); }
13,069,623
[ 1, 5912, 1147, 364, 279, 1269, 6138, 225, 628, 1021, 1758, 358, 7412, 628, 18, 225, 358, 1021, 1758, 358, 7412, 358, 18, 225, 460, 1021, 3844, 358, 506, 906, 4193, 18, 19, 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, 389, 13866, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 460, 13, 2713, 288, 203, 3639, 2583, 12, 1132, 1648, 389, 70, 26488, 63, 2080, 19226, 203, 3639, 2583, 12, 869, 480, 1758, 12, 20, 10019, 203, 3639, 389, 70, ...
./partial_match/1/0xf7d35CA1c865871e8cF8ba58515343ECBff6A46D/sources/project:/contracts/MTokenStorage.sol
* @dev Guard variable for re-entrancy checks/** Global variables: addresses of other contracts to call. These are set at contract initialization and can only be modified by a (timelock) admin/* @notice Address of the underlying asset contract (this never changes again after initialization)/* @notice Contract address ...
struct BorrowSnapshot { uint principal; uint interestIndex; }
3,927,801
[ 1, 16709, 2190, 364, 283, 17, 8230, 12514, 4271, 19, 8510, 3152, 30, 6138, 434, 1308, 20092, 358, 745, 18, 282, 8646, 854, 444, 622, 6835, 10313, 471, 848, 1338, 506, 4358, 635, 279, 261, 8584, 292, 975, 13, 3981, 19, 225, 5267, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 605, 15318, 4568, 288, 203, 3639, 2254, 8897, 31, 203, 3639, 2254, 16513, 1016, 31, 203, 565, 289, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100...
./partial_match/42/0x579AbEEE14a52A4CA6707a4590c524Dc149D56a1/sources/CompoundLeverageModule.sol
* MANAGER ONLY: Decrease leverage for a given collateral position using an enabled borrow asset that is enabled @param _setToken Instance of the SetToken @param _collateralAsset Address of collateral asset (underlying of cToken) @param _repayAsset Address of asset being repaid @param _redeemQ...
function delever( ISetToken _setToken, address _collateralAsset, address _repayAsset, uint256 _redeemQuantity, uint256 _minRepayQuantity, string memory _tradeAdapterName, bytes memory _tradeData ) external nonReentrant onlyManagerAn...
3,333,983
[ 1, 19402, 20747, 30, 31073, 448, 884, 5682, 364, 279, 864, 4508, 2045, 287, 1754, 1450, 392, 3696, 29759, 3310, 716, 353, 3696, 225, 389, 542, 1345, 2398, 5180, 434, 326, 1000, 1345, 225, 389, 12910, 2045, 287, 6672, 1377, 5267, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1464, 6084, 12, 203, 3639, 467, 694, 1345, 389, 542, 1345, 16, 203, 3639, 1758, 389, 12910, 2045, 287, 6672, 16, 203, 3639, 1758, 389, 266, 10239, 6672, 16, 203, 3639, 2254, 5034, 389, 266, 24903, 12035, 16, 203, 3639, ...
./partial_match/1/0x29bb73C01DdFe83Ed73baEF6D032e0ad2cc4f8e8/sources/MetaWorld.sol
* @dev Initializes the contract setting the deployer as the initial owner./
function _beforeTokenTransfer( address from, address to, uint256 tokenId } constructor() { _transferOwnership(_msgSender()); }
4,256,561
[ 1, 9685, 326, 6835, 3637, 326, 7286, 264, 487, 326, 2172, 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, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 97, 203, 203, 565, 3885, 1435, 288, 203, 3639, 389, 13866, 5460, 12565, 24899, 3576, 12021, 10663, 20...
// SPDX-License-Identifier: MIT // File: AngoraStaker.sol // File: anotest.sol pragma solidity ^0.8.13; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { ...
* @dev Returns the floor of the division of two numbers This divides two numbers and rounds down/
function floorDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; return a / b - (a % b == 0 ? 1 : 0); }
5,725,360
[ 1, 1356, 326, 6346, 434, 326, 16536, 434, 2795, 5600, 1220, 3739, 4369, 2795, 5600, 471, 21196, 2588, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6346, 7244, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 69, 422, 374, 13, 327, 374, 31, 203, 3639, 327, 279, 342, 324, 300, 261, 69, 738, 324, 42...
pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions...
* @title YieldFarmEarn @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator. Note they can later distribute these tokens as they wish using `transfer` and other `ERC20` functions./
contract YieldFarmEarn is Context, ERC20, ERC20Detailed { constructor () public ERC20Detailed("Yield Farm Earn", "YFE", 18) { _mint(_msgSender(), 33000 * (10 ** uint256(decimals()))); } }
10,850,758
[ 1, 16348, 42, 4610, 41, 1303, 225, 776, 627, 4143, 4232, 39, 3462, 3155, 3454, 16, 1625, 777, 2430, 854, 675, 17, 15938, 358, 326, 11784, 18, 3609, 2898, 848, 5137, 25722, 4259, 2430, 487, 2898, 14302, 1450, 1375, 13866, 68, 471, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 31666, 42, 4610, 41, 1303, 353, 1772, 16, 4232, 39, 3462, 16, 4232, 39, 3462, 40, 6372, 288, 203, 203, 565, 3885, 1832, 1071, 4232, 39, 3462, 40, 6372, 2932, 16348, 478, 4610, 512, 1303, 3113, 315, 61, 8090, 3113, 6549, ...
/** *Submitted for verification at Etherscan.io on 2021-09-12 */ // File: ErrorReporter.sol pragma solidity 0.4.24; contract ErrorReporter { /** * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary * contract-specific code that enables us to re...
Remember to enter percentage times 100. ex., if it is 2.50%, enter 250 Checks for reasonable interest rate parameters
) public { require(MinRate < MaxRate, "Min Rate should be lesser than Max Rate"); require( HealthyMinUR < HealthyMaxUR, "HealthyMinUR should be lesser than HealthyMaxUR" ); require( HealthyMinRate < HealthyMaxRate, "HealthyMinRate shoul...
7,909,508
[ 1, 28810, 358, 6103, 11622, 4124, 2130, 18, 431, 12990, 309, 518, 353, 576, 18, 3361, 9, 16, 6103, 16927, 13074, 364, 23589, 16513, 4993, 1472, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 1071, 288, 203, 3639, 2583, 12, 2930, 4727, 411, 4238, 4727, 16, 315, 2930, 13025, 1410, 506, 5242, 264, 2353, 4238, 13025, 8863, 203, 3639, 2583, 12, 203, 5411, 11745, 93, 2930, 1099, 411, 11745, 93, 2747, 1099, 16, 20...
pragma solidity 0.7.1; library Address { /** * @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. * *...
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./
constructor (string memory name, string memory symbol) { _name = name; _symbol = symbol; _decimals = 18; }
7,597,456
[ 1, 2785, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5779, 11643, 288, 31734, 97, 598, 279, 805, 460, 434, 6549, 18, 2974, 2027, 279, 3775, 460, 364, 288, 31734, 5779, 999, 288, 67, 8401, 31809, 5496, 4826, 8925, 434, 4259, 924, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 377, 3885, 261, 1080, 3778, 508, 16, 533, 3778, 3273, 13, 288, 203, 203, 203, 3639, 389, 529, 273, 508, 31, 203, 203, 203, 3639, 389, 7175, 273, 3273, 31, 203, 203, 203, 3639, 389, 31734, 273, 6549, 31, 203, 203, 203, 565, 28...
./partial_match/1/0x578CE9175554a724419F60BA6Ab4608e61748B71/sources/fumble.sol
Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract fumble is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0x000000000000000000000000000000000000dEaD); bool private swapping; address public fumb...
4,470,384
[ 1, 14925, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 4352, 749, 1635, 22467, 1098, 1635, 1203, 1300, 434, 10191, 1284, 7459, 4433, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 557...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 284, 3592, 298, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 7010, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, ...
./full_match/43114/0x9A641E87c60472D90F9A7e2e60e006bE66408B6F/sources/contracts/liquidation/IsolatedLendingLiquidation.sol
View liquidation share for a token
function viewLiqSharePer10k(address token) public view returns (uint256 liqShare) { liqShare = liquidationRewardPer10k[token]; if (liqShare == 0) { liqShare = defaultLiquidationRewardPer10k; } }
4,536,084
[ 1, 1767, 4501, 26595, 367, 7433, 364, 279, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1476, 48, 18638, 9535, 2173, 2163, 79, 12, 2867, 1147, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 4501, 85, 9535, 13, 203, 565, 288, 203, 3639, 4501, 85, 9535, 273, 4501, 26595, 367, 17631,...
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "./utils/User.sol"; address constant SuperDAIAddress = 0xBF6201a6c48B56d8577eDD079b84716BB4918E8A; contract CreateAgreement is BrokeTest { function testFail_needToApproveTokenFirst() public { alice.createAgreement( address(erc721Mock), ...
set block timestamp after the end date delete flow since it was paid off. bob shouldn't be able to retrieve his token.
function testFail_agreementOver() public { setupAgreement(); alice.createFlow(SuperDAIAddress, address(bob), int96(price / length)); hevm.warp(block.timestamp + length + 1); alice.deleteFlow(SuperDAIAddress, address(bob)); bob.retrieveToken(hash); assertEq(erc721Mock.ownerOf(tokenID), address...
2,515,915
[ 1, 542, 1203, 2858, 1839, 326, 679, 1509, 1430, 4693, 3241, 518, 1703, 30591, 3397, 18, 800, 70, 12044, 1404, 506, 7752, 358, 4614, 18423, 1147, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 3754, 67, 31135, 4851, 1435, 1071, 288, 203, 565, 3875, 17420, 5621, 203, 565, 524, 1812, 18, 2640, 5249, 12, 8051, 9793, 45, 1887, 16, 1758, 12, 70, 947, 3631, 509, 10525, 12, 8694, 342, 769, 10019, 203, 565, 3...
pragma solidity 0.5.11; // optimization runs: 200, evm version: petersburg import "../helpers/Timelocker.sol"; import "../helpers/TwoStepOwnable.sol"; /** * @title TimelockTwoStepOwnableTestContract * @author 0age * @notice This contract implements the TwoStepOwnable and timelocker contracts * (the timelock para...
* @notice In the constructor, set the initial owner to the transaction submitter and initial minimum timelock interval and default timelock expiration values./ Set initial minimum timelock interval values. Set initial default timelock expiration values.
constructor() public { _setInitialTimelockExpiration(this.test.selector, 30 minutes); }
1,058,121
[ 1, 382, 326, 3885, 16, 444, 326, 2172, 3410, 358, 326, 2492, 4879, 387, 471, 2172, 5224, 1658, 292, 975, 3673, 471, 805, 1658, 292, 975, 7686, 924, 18, 19, 1000, 2172, 5224, 1658, 292, 975, 3673, 924, 18, 1000, 2172, 805, 1658, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 1435, 1071, 288, 203, 203, 565, 389, 542, 4435, 10178, 292, 975, 12028, 12, 2211, 18, 3813, 18, 9663, 16, 5196, 6824, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; /** * @title Module * @dev Interface for a module. * A module MUST implement the addModule() method to ensure that a wallet with at least one module * can never end up in a "frozen" state. * @author Julien Niset - <julien@argent.xyz> */ interface Module { /** * @de...
* @dev lets the owner transfer tokens (ETH or ERC20) from a wallet. @param _wallet The target wallet. @param _token The address of the token to transfer. @param _to The destination address @param _amount The amoutn of token to transfer @param _data The data for the transaction/ eth transfer to whitelist erc20 transfer ...
function transferToken( BaseWallet _wallet, address _token, address _to, uint256 _amount, bytes _data ) external onlyOwnerOrModule(_wallet) onlyWhenUnlocked(_wallet) { if(isWhitelisted(_wallet, _to)) { if(_token == ET...
5,456,350
[ 1, 17307, 326, 3410, 7412, 2430, 261, 1584, 44, 578, 4232, 39, 3462, 13, 628, 279, 9230, 18, 225, 389, 19177, 1021, 1018, 9230, 18, 225, 389, 2316, 1021, 1758, 434, 326, 1147, 358, 7412, 18, 225, 389, 869, 1021, 2929, 1758, 225, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7412, 1345, 12, 203, 3639, 3360, 16936, 389, 19177, 16, 7010, 3639, 1758, 389, 2316, 16, 7010, 3639, 1758, 389, 869, 16, 7010, 3639, 2254, 5034, 389, 8949, 16, 7010, 3639, 1731, 389, 892, 203, 565, 262, 7010, 3639, 3903...
./full_match/5/0x6E72699accca06BfBdd81d17A3041da757460283/sources/contracts/PlanetHelper.sol
There's been a new update -> so update the mapping
playerLastUpdate[msg.sender].isData = true;
1,935,558
[ 1, 9828, 1807, 2118, 279, 394, 1089, 317, 1427, 1089, 326, 2874, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 7291, 3024, 1891, 63, 3576, 18, 15330, 8009, 291, 751, 273, 638, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// Sources flattened with hardhat v2.8.4 https://hardhat.org // File @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol@v4.3.0 // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be depl...
uint256 amountToTransfer, uint256 lpFee, uint256 transferFeeAmount, uint256 gasFee
function sendFundsToUser( address tokenAddress, uint256 amount, address payable receiver, bytes calldata depositHash, uint256 tokenGasPrice, uint256 fromChainId ) external nonReentrant onlyExecutor whenNotPaused { uint256 initialGas = gasleft(); To...
12,902,924
[ 1, 11890, 5034, 3844, 774, 5912, 16, 2254, 5034, 12423, 14667, 16, 2254, 5034, 7412, 14667, 6275, 16, 2254, 5034, 16189, 14667, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1366, 42, 1074, 11634, 1299, 12, 203, 3639, 1758, 1147, 1887, 16, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 1758, 8843, 429, 5971, 16, 203, 3639, 1731, 745, 892, 443, 1724, 2310, 16, 203, 3639, 2254, 5034, 1147, 27998...
pragma solidity ^0.4.23; // Copyright 2018 OpenST Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
* @notice Deactivate CoGateway contract. Can be set only by the Organisation address @return `true` if value is set/
function deactivateCoGateway() external onlyOrganisation returns (bool) { require( deactivated == false, "Gateway is already deactive" ); deactivated = true; return true; }
2,553,545
[ 1, 758, 10014, 7695, 5197, 6835, 18, 4480, 506, 444, 1338, 635, 326, 540, 8533, 304, 10742, 1758, 327, 1375, 3767, 68, 309, 460, 353, 444, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18790, 4249, 5197, 1435, 203, 3639, 3903, 203, 3639, 1338, 6001, 304, 10742, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 443, 18836, 422, 629, 16, 203, 5411, 315, 5197, 353, 1818, 443,...
/** *Submitted for verification at Etherscan.io on 2021-07-16 */ pragma solidity 0.5.15; // /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed i...
* @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ...
function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "Token::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; ...
2,295,997
[ 1, 8519, 326, 6432, 1300, 434, 19588, 364, 392, 2236, 487, 434, 279, 1203, 1300, 225, 3914, 1300, 1297, 506, 279, 727, 1235, 1203, 578, 469, 333, 445, 903, 15226, 358, 5309, 7524, 13117, 18, 225, 2236, 1021, 1758, 434, 326, 2236, 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, 1689, 2432, 29637, 12, 2867, 2236, 16, 2254, 1203, 1854, 13, 203, 565, 3903, 203, 565, 1476, 203, 565, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 1345, 28...
./full_match/1/0x5395df198fCbC9C13bEC506004C9A8B6460A7712/sources/contracts/bubududu/BUBUDUDU.sol
percent to marketing
uint256 public marketingFee = 1;
16,600,527
[ 1, 8849, 358, 13667, 310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 13667, 310, 14667, 273, 404, 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, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./Token.sol"; contract dBank { //assign Token contract to variable Token private token; //add mappings mapping(address=>uint) public etherBalanceOf; mapping(address=>uint) public depositStart; mapping(address=>bool) public isDeposit...
check if msg.sender deposit status is true assign msg.sender ether deposit balance to variable for event check user's hodl timecalc interest per secondcalc accrued interestsend eth to usersend interest in tokens to userreset depositer dataemit event
function withdraw() public { require(isDeposited[msg.sender]==true,"Error: User hasnt deposited"); uint userBalance = etherBalanceOf[msg.sender]; uint depositTime = block.timestamp - depositStart[msg.sender]; uint interestPerSecond = 31668017 * (etherBalanceOf[msg.sender]/0.01 ether); uint inter...
12,644,219
[ 1, 1893, 309, 1234, 18, 15330, 443, 1724, 1267, 353, 638, 2683, 1234, 18, 15330, 225, 2437, 443, 1724, 11013, 358, 2190, 364, 871, 866, 729, 1807, 366, 369, 80, 813, 12448, 16513, 1534, 2205, 12448, 4078, 86, 5957, 16513, 4661, 13750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 598, 9446, 1435, 1071, 288, 203, 565, 2583, 12, 291, 758, 1724, 329, 63, 3576, 18, 15330, 65, 631, 3767, 10837, 668, 30, 2177, 711, 496, 443, 1724, 329, 8863, 203, 565, 2254, 729, 13937, 273, 225, 2437, 13937, 951, 63...
pragma solidity ^0.5.10; import {TypedMemView} from "../libraries/TypedMemView.sol"; import {ViewCKB} from "../libraries/ViewCKB.sol"; contract ViewCKBTest { using TypedMemView for bytes; using TypedMemView for bytes29; using ViewCKB for bytes29; // members in CellInput function since(bytes memo...
members in CellInput
contract ViewCKBTest { using TypedMemView for bytes; using TypedMemView for bytes29; using ViewCKB for bytes29; import {TypedMemView} from "../libraries/TypedMemView.sol"; import {ViewCKB} from "../libraries/ViewCKB.sol"; function since(bytes memory _input) public pure returns (uint64) { return...
6,354,448
[ 1, 7640, 316, 8614, 1210, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4441, 3507, 38, 4709, 288, 203, 565, 1450, 13833, 3545, 1767, 364, 1731, 31, 203, 565, 1450, 13833, 3545, 1767, 364, 1731, 5540, 31, 203, 565, 1450, 4441, 3507, 38, 364, 1731, 5540, 31, 203, 203, 5666, 288, 11985, 3545, 17...
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.0; import "hardhat/console.sol"; interface IChallenge_luksgrin { function enterDungeon() external payable; } contract Exploit_luksgrin { HauntedDungeon instance; constructor(IChallenge_luksgrin _instance) payable { // instance = _insta...
Generate pseudo random number
function random() private view returns (uint256) { return uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, msg.sender))); }
1,029,597
[ 1, 4625, 12454, 2744, 1300, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2744, 1435, 3238, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 2254, 5034, 12, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 12, 2629, 18, 5508, 16, 1203, 18, 5413, 21934, 16, 1234, 18, 15330, 3719, ...
//Address: 0xc7c11eb6983787f7aa0c20abeeac8101cf621e47 //Contract name: BaktFactory //Balance: 0 Ether //Verification Date: 5/16/2017 //Transacion Count: 3 // CODE STARTS HERE /******************************************************************************\ file: RegBase.sol ver: 0.2.1 updated:9-May-2017 author:...
Release the contract from a Panic after the panic period has expired.
function calm() public isHolder(msg.sender) returns (bool) { require(uint40(now) > timeToCalm && panicked); panicked = false; Calm(); return true; }
12,918,751
[ 1, 7391, 326, 6835, 628, 279, 21040, 1839, 326, 3933, 3879, 711, 7708, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1443, 81, 1435, 203, 3639, 1071, 203, 3639, 353, 6064, 12, 3576, 18, 15330, 13, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 11890, 7132, 12, 3338, 13, 405, 23813, 3005, 81, 597, 2800, 1200, 329...
pragma solidity ^0.8.0; // // Made for Doge Legacy // import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title Hashed Timelock Contracts (HTLCs) on Ethereum ERC721 tokens. * * This contract provides a way to create and keep HTLCs for ERC721 tokens. *...
* @dev Get contract details. @param _contractId HTLC contract id/
function getContract(bytes32 _contractId) public view returns ( address sender, address receiver, address tokenContract, uint256 tokenId, uint256 timelock, bool withdrawn, bool refunded, bytes32 p...
22,304
[ 1, 967, 6835, 3189, 18, 225, 389, 16351, 548, 27095, 6835, 612, 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, 336, 8924, 12, 3890, 1578, 389, 16351, 548, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 1758, 5793, 16, 203, 5411, 1758, 5971, 16, 203, 5411, 1758, 1147, 8924, 16, 203, 5411, 2254, 5034, 1147,...
pragma solidity 0.4.24; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint balance) {} ...
@dev ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited amount. @param _from Address to transfer from. @param _to Address to transfer to. @param _value Amount to transfer. @return Success of transfer.
{ uint allowance = allowed[_from][msg.sender]; if (balances[_from] >= _value && allowance >= _value && balances[_to] + _value >= balances[_to] ) { balances[_to] += _value; balances[_from] -= _value; if (allowance < MAX_UINT) { ...
15,443,206
[ 1, 654, 39, 3462, 7412, 1265, 16, 4358, 4123, 716, 392, 1699, 1359, 434, 4552, 67, 57, 3217, 8686, 392, 640, 21325, 3844, 18, 225, 389, 2080, 5267, 358, 7412, 628, 18, 225, 389, 869, 5267, 358, 7412, 358, 18, 225, 389, 1132, 16811...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 3639, 2254, 1699, 1359, 273, 2935, 63, 67, 2080, 6362, 3576, 18, 15330, 15533, 203, 3639, 309, 261, 70, 26488, 63, 67, 2080, 65, 1545, 389, 1132, 203, 5411, 597, 1699, 1359, 1545, 389, 1132, 203, 5411, 597, 324, ...
./partial_match/1/0xf9D896fE0142897f70A4565dbdcd9096156cbd3d/sources/turkeysGameFarmers.sol
Check against max supply
require(totalMinted < MAX_SUPPLY, "Maximum supply reached");
4,295,506
[ 1, 1564, 5314, 943, 14467, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 4963, 49, 474, 329, 411, 4552, 67, 13272, 23893, 16, 315, 13528, 14467, 8675, 8863, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x911a768fF40e6477736AA009EF0055563982bE3a/sources/src/ExternalRefinancing.sol
@dev Returns the returndata pointer one word after `cdPtr`.
function next( ReturndataPointer rdPtr ) internal pure returns (ReturndataPointer rdPtrNext) { assembly { rdPtrNext := add(rdPtr, _OneWord) } }
3,218,173
[ 1, 1356, 326, 327, 892, 4407, 1245, 2076, 1839, 1375, 4315, 5263, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 1024, 12, 203, 565, 2000, 892, 4926, 9437, 5263, 203, 225, 262, 2713, 16618, 1135, 261, 990, 892, 4926, 9437, 5263, 2134, 13, 288, 203, 565, 19931, 288, 203, 1377, 9437, 5263, 2134, 519, 527, 12, 13623, 5263, 16, 389, ...
pragma solidity ^0.4.8; contract Rouleth { //Game and Global Variables, Structure of gambles address public developer; uint8 public blockDelay; //nb of blocks to wait before spin uint8 public blockExpiration; //nb of blocks before bet expiration (due to hash storage limits) uint256 public maxGamble; ...
delay after which gamble expires
blockExpiration=200;
12,543,781
[ 1, 10790, 1839, 1492, 314, 26574, 7368, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1203, 12028, 33, 6976, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSED /* * @title String & slice utility library for Solidity contracts. * @author Nick Johnson <arachnid@notdot.net> * * @dev Functionality in this library is largely implemented using an * abstraction called a 'slice'. A slice represents a part of a string - * anything...
Make sure this value if false in production env. Ideally we can use chainid(), but there is a bug in truffle so testing is buggy: https:github.com/trufflesuite/ganache/issues/1643
{ address public collectTo; uint public defaultLockPeriod; BaseENSManager public ensManager; PriceOracle public priceOracle; DappAddressStore public dappAddressStore; HashStore public hashStore; NonceStore public nonceStore; Q...
12,073,632
[ 1, 6464, 3071, 333, 460, 309, 629, 316, 12449, 1550, 18, 23062, 1230, 732, 848, 999, 2687, 350, 9334, 1496, 1915, 353, 279, 7934, 316, 433, 10148, 1427, 7769, 353, 324, 5696, 93, 30, 2333, 30, 6662, 18, 832, 19, 313, 3809, 1040, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1758, 2398, 1071, 3274, 774, 31, 203, 565, 2254, 7734, 1071, 805, 2531, 5027, 31, 203, 565, 3360, 21951, 1318, 1377, 1071, 19670, 1318, 31, 203, 565, 20137, 23601, 540, 1071, 6205, 23601, 31, 203, 565, 463, 2910, 18...
./full_match/80001/0xC9268e1DE8924950aa3CBeE6dE66af86379Ce010/sources/contracts/StakingApl.sol
require(block.timestamp < planExpired , "Plan Expired");
function stakeToken(uint256 stakeAmount, uint256 planDuration) external payable whenNotPaused { require(stakeAmount >0, "Stake amount should be correct"); require(addressStaked[_msgSender()] == false, "You already participated"); require(aplToken.balanceOf(_msgSender()) >= stakeAmount, "Insu...
5,649,685
[ 1, 6528, 12, 2629, 18, 5508, 411, 4995, 10556, 269, 315, 5365, 7784, 2921, 8863, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 911, 1345, 12, 11890, 5034, 384, 911, 6275, 16, 2254, 5034, 4995, 5326, 13, 3903, 8843, 429, 1347, 1248, 28590, 288, 203, 3639, 2583, 12, 334, 911, 6275, 405, 20, 16, 315, 510, 911, 3844, 1410, 506, 3434, 8863, 2...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.4; import { ISynthereumPoolOnChainPriceFeed } from './interfaces/IPoolOnChainPriceFeed.sol'; import {ISynthereumPoolGeneral} from './interfaces/IPoolGeneral.sol'; import { ISynthereumPoolOnChainPriceFeedStorage } from './interfaces/IPoolOnChainPriceFee...
Amount of tokens to send Amount of collateral (excluding fees) equivalent to synthetic token (exluding fees) to send Amount of fees of collateral user must pay Amount of collateral equal to collateral redemeed + fees Amount of synthetic token to receive
struct ExecuteExchangeParams { FixedPoint.Unsigned numTokens; FixedPoint.Unsigned collateralAmount; FixedPoint.Unsigned feeAmount; FixedPoint.Unsigned totCollateralAmount; FixedPoint.Unsigned destNumTokens; } address indexed account, address indexed pool, uint256 collateralSent, ...
5,382,103
[ 1, 6275, 434, 2430, 358, 1366, 16811, 434, 4508, 2045, 287, 261, 338, 18596, 1656, 281, 13, 7680, 358, 25535, 1147, 261, 338, 80, 12673, 1656, 281, 13, 358, 1366, 16811, 434, 1656, 281, 434, 4508, 2045, 287, 729, 1297, 8843, 16811, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1958, 7903, 11688, 1370, 288, 203, 565, 15038, 2148, 18, 13290, 818, 5157, 31, 203, 565, 15038, 2148, 18, 13290, 4508, 2045, 287, 6275, 31, 203, 565, 15038, 2148, 18, 13290, 14036, 6275, 31, 203, 565, 15038, 2148, 18, 13290, ...
./partial_match/1313161554/0xA5dF6D8D59A7fBDb8a11E23FDa9d11c4103dc49f/sources/contracts/distribution/SpolarRewardPool.sol
do not allow to drain core token (spolar or lps) if less than 90 days after pool ends
function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator { if (block.timestamp < poolEndTime + 90 days) { require(_token != spolar, "spolar"); uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { ...
16,943,307
[ 1, 2896, 486, 1699, 358, 15427, 2922, 1147, 261, 1752, 355, 297, 578, 328, 1121, 13, 309, 5242, 2353, 8566, 4681, 1839, 2845, 3930, 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, 314, 1643, 82, 1359, 27622, 8544, 12, 45, 654, 39, 3462, 389, 2316, 16, 2254, 5034, 3844, 16, 1758, 358, 13, 3903, 1338, 5592, 288, 203, 3639, 309, 261, 2629, 18, 5508, 411, 2845, 25255, 397, 8566, 4681, 13, 288, 203,...
./full_match/1/0xA215610b717576D23EC54a1f0Cd37fa3f14163b1/sources/contracts/smartyield/providers/AaveV2/fix/SmartYield.fix.sol
* @dev allow user to borrow against his bond token, currently only considering stable coins only, assuming we are only borrowing against stable interest mode @param _bond the address of bond token, represent the term user wants to borrow against @param _bondAmount the amount of the bond used as collateral @param _borro...
function borrow( address _bond, uint256 _bondAmount, address _borrowAsset, uint256 _borrowAmount ) external override nonReentrant defaultCheck { revert("borrow not allowed"); }
4,830,303
[ 1, 5965, 729, 358, 29759, 5314, 18423, 8427, 1147, 16, 4551, 1338, 24453, 14114, 276, 9896, 1338, 16, 15144, 732, 854, 1338, 29759, 310, 5314, 14114, 16513, 1965, 225, 389, 26425, 326, 1758, 434, 8427, 1147, 16, 2406, 326, 2481, 729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29759, 12, 203, 3639, 1758, 389, 26425, 16, 203, 3639, 2254, 5034, 389, 26425, 6275, 16, 203, 3639, 1758, 389, 70, 15318, 6672, 16, 203, 3639, 2254, 5034, 389, 70, 15318, 6275, 203, 565, 262, 3903, 3849, 1661, 426, 8230...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "hardhat/console.sol"; contract WavePortal { uint totalWaves; // Initialized to 0 by default uint private seed; // called and returned as a log event NewWave(address indexed from, uint timestamp, string message); mapping(addr...
Initialized to 0 by default
uint totalWaves;
909,748
[ 1, 11459, 358, 374, 635, 805, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 2078, 59, 6606, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0xCbEDAB3193dc8027cc403a01cE054695a08E2F34/sources/contracts/upgrade_initializers/DiamondInit.sol
@notice initalize the Fee Manager facet @param _feePerClaim fee per claim to reward the validators @param _feeManagerBank fee manager bank address @param _feeManagerOwner fee manager owner address
function initFeeManager( uint256 _feePerClaim, address _feeManagerBank, address _feeManagerOwner ) private { LibFeeManager.DiamondStorage storage feeManagerDS = LibFeeManager .diamondStorage(); feeManagerDS.feePerClaim = _feePerClaim; feeManagerDS.ban...
1,895,336
[ 1, 2738, 287, 554, 326, 30174, 8558, 11082, 225, 389, 21386, 2173, 9762, 14036, 1534, 7516, 358, 19890, 326, 11632, 225, 389, 21386, 1318, 16040, 14036, 3301, 11218, 1758, 225, 389, 21386, 1318, 5541, 14036, 3301, 3410, 1758, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 1208, 14667, 1318, 12, 203, 3639, 2254, 5034, 389, 21386, 2173, 9762, 16, 203, 3639, 1758, 389, 21386, 1318, 16040, 16, 203, 3639, 1758, 389, 21386, 1318, 5541, 203, 565, 262, 3238, 288, 203, 3639, 10560, 14667, 1318, 18,...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; import "../../errors.sol"; import "./IURIBuilder.sol"; import "../Property.sol"; import "./TraitSet.sol"; import "../../utils/Random.sol"; contract Ship is Property { struct ShipParams { uint128 base; uint8 flags; uint8 maxHea...
solhint-disable-next-line avoid-tx-origin
modifier onlyEOA() { if (msg.sender.isContract() || msg.sender != tx.origin) { revert CallerNotEOA(); } _; }
10,302,731
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 4543, 17, 978, 17, 10012, 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, 9606, 1338, 41, 28202, 1435, 288, 203, 3639, 309, 261, 3576, 18, 15330, 18, 291, 8924, 1435, 747, 1234, 18, 15330, 480, 2229, 18, 10012, 13, 288, 203, 5411, 15226, 20646, 1248, 41, 28202, 5621, 203, 3639, 289, 203, 203, 3639...
// SPDX-License-Identifier: Unlicensed pragma solidity 0.8.0; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "./interfaces/IERC20.sol"; import "./interfaces/IERC1132.sol"; import "./interfaces/uni...
this method is responsible for taking all fee, if takeFee is true
function _tokenTransfer( address sender, address recipient, uint256 amount, bool takeFee ) private { if (!takeFee) removeAllFee(); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); _transferToExcluded(sender, recipient, amoun...
12,746,925
[ 1, 2211, 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, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 2316, 5912, 12, 203, 565, 1758, 5793, 16, 203, 565, 1758, 8027, 16, 203, 565, 2254, 5034, 3844, 16, 203, 565, 1426, 4862, 14667, 203, 225, 262, 3238, 288, 203, 565, 309, 16051, 22188, 14667, 13, 12787, 14667, 5621,...
/* Copyright 2019 ZeroEx Intl. 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 writing, ...
Check if staticcall would be successful
(bool success,) = staticCallProxyAddress.staticcall(transferFromData);
11,990,956
[ 1, 1564, 309, 760, 1991, 4102, 506, 6873, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 261, 6430, 2216, 16, 13, 273, 760, 1477, 3886, 1887, 18, 3845, 1991, 12, 13866, 1265, 751, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0xF404Aee9478Bc869010c72b0d44a094E3CE663A7/sources/contracts/token/ForeVesting.sol
* @dev Internal function. Calculates vested amount available to claim (at the moment of execution)/ in case of exceeding end time
function _vestedAmount(Vesting memory vesting) internal view returns (uint256) { if (vesting.vestingAmount == 0) { return 0; } if (block.timestamp < vesting.timestampStart) { return 0; } if (block.timestamp >= vesting.times...
5,696,517
[ 1, 3061, 445, 18, 26128, 331, 3149, 3844, 2319, 358, 7516, 261, 270, 326, 10382, 434, 4588, 13176, 316, 648, 434, 9943, 310, 679, 813, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 90, 3149, 6275, 12, 58, 10100, 3778, 331, 10100, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 309, 261, 90, 10100, 18, 90, 10100, 6275, 422, 374, 13, 288,...
./partial_match/8453/0x5FA9D145D0846190634AF0d414B7411447B7f410/sources/DamasSwapRouter.sol
given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) internal pure returns (uint256 amountB) { require(amountA > 0, "DamasSwapLibrary: INSUFFICIENT_AMOUNT"); require( reserveA > 0 && reserveB > 0, "DamasSwapLibrary: INSUFFICIENT_LI...
16,779,878
[ 1, 10822, 2690, 3844, 434, 392, 3310, 471, 3082, 400, 264, 3324, 16, 1135, 392, 7680, 3844, 434, 326, 1308, 3310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3862, 12, 203, 3639, 2254, 5034, 3844, 37, 16, 203, 3639, 2254, 5034, 20501, 37, 16, 203, 3639, 2254, 5034, 20501, 38, 203, 565, 262, 2713, 16618, 1135, 261, 11890, 5034, 3844, 38, 13, 288, 203, 3639, 2583, 12, 8949, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 ind...
bids history of allworks[i]
mapping (uint256 => Record[]) public _bids;
1,801,391
[ 1, 70, 2232, 4927, 434, 777, 18597, 63, 77, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 11890, 5034, 516, 5059, 63, 5717, 1071, 389, 70, 2232, 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 /** ███╗ ██╗███████╗████████╗ ██████╗ ██╗ ██╗██████╗ █████╗ ██╗ ████╗ ██║██╔════╝╚══██╔══╝ ██╔══██╗██║ ██║██╔══██╗██╔══██╗██║ ██╔██╗ ██║█████╗ ██║ ██║ ██║██║ ██║██████╔╝███████║██║ ██║╚██╗██║██╔══╝ ██║ ██║ ██║██║ ██║██╔══██╗██╔══██║██║ ██║ ╚████║██...
* @dev Sets the values for {name} and {symbol}. The defaut value of {decimals} is 18. To select a different value for {decimals} you should overload it. All two of these values are immutable: they can only be set once during construction./
constructor () { _name = "NFT Dubai"; _symbol = "NFTD"; _totalSupply; _mint(owner(), 50000000000 * 10 ** (decimals()) ); }
1,605,256
[ 1, 2785, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5496, 1021, 443, 507, 322, 460, 434, 288, 31734, 97, 353, 6549, 18, 2974, 2027, 279, 3775, 460, 364, 288, 31734, 97, 1846, 1410, 30402, 518, 18, 4826, 2795, 434, 4259, 924, 854...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1832, 288, 203, 3639, 389, 529, 273, 315, 50, 4464, 463, 373, 10658, 14432, 203, 3639, 389, 7175, 273, 315, 50, 4464, 40, 14432, 203, 3639, 389, 4963, 3088, 1283, 31, 203, 3639, 389, 81, 474, 12, 8443, 9334, 1381, 27...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see `ERC20Detailed`. */ interface IERC20 { /** * @dev Returns the amo...
Reward is ERC20 token which support mint and can not rebase
contract HtswapMaster is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; struct CustomerStatus { uint256 amount; uint256 rewardArrear; } struct PoolStatus { IERC20 liquidity; uint256 weight; uint256 lastRewardBlock; uint256 growthR...
12,684,492
[ 1, 17631, 1060, 353, 4232, 39, 3462, 1147, 1492, 2865, 312, 474, 471, 848, 486, 283, 1969, 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, 16351, 670, 3428, 91, 438, 7786, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 203, 565, 1958, 13702, 1482, 288, 203, 3639, ...
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.2; /** * @title ERC20 interface * @dev see https://eips.ethereum.org/EIPS/eip-20 */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value)...
* @dev Override to extend the way in which ether is converted to tokens. @param tokenAmount Value in token to be converted into wei @return Number of wei that can be purchased with the specified _weiAmount/
function _getWeiAmount(uint256 tokenAmount) internal view returns (uint256) { return tokenAmount.mul(_tokenPrice); } event CreateEpoch( uint256 epoch, uint256 weiAmount, uint256 tokenAmount, uint256 tokenPrice, uint256 totalSupply, uint256...
2,569,650
[ 1, 6618, 358, 2133, 326, 4031, 316, 1492, 225, 2437, 353, 5970, 358, 2430, 18, 225, 1147, 6275, 1445, 316, 1147, 358, 506, 5970, 1368, 732, 77, 327, 3588, 434, 732, 77, 716, 848, 506, 5405, 343, 8905, 598, 326, 1269, 389, 1814, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 588, 3218, 77, 6275, 12, 11890, 5034, 1147, 6275, 13, 203, 565, 2713, 203, 565, 1476, 203, 565, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 1147, 6275, 18, 16411, 24899, 2316, 5147, 1769, 203, 565, 289, 203, ...
pragma solidity ^0.4.17; import { Identity } from './Identity.sol'; /** Contract to map identities to uints */ contract IdentityManager { // Added for testing purposes event IdentityCreated(address newIdentity); // double reference for quick searching mapping ( uint => Identity ) _identities; ...
/ Added for testing purposes double reference for quick searching
contract IdentityManager { event IdentityCreated(address newIdentity); mapping ( uint => Identity ) _identities; mapping ( address => uint ) _index; uint _currentIndex = 0; import { Identity } from './Identity.sol'; Contract to map identities to uints modifier requiresExistanceOf(uint index) ...
12,616,279
[ 1, 19, 25808, 364, 7769, 13694, 1645, 2114, 364, 9549, 15300, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7808, 1318, 288, 203, 565, 871, 7808, 6119, 12, 2867, 394, 4334, 1769, 203, 203, 565, 2874, 261, 2254, 516, 7808, 262, 389, 6392, 1961, 31, 203, 565, 2874, 261, 1758, 516, 2254, 262, 389, 1615, 31, 203, 565, 2254, 389, 2...
./full_match/1/0xac9189ABf4FfC8034860dceBe71455DAA41Fc988/sources/contracts/Titles.sol
shorten job if it's bigger than max characters reduce number of words
function title(uint _jobID) public view returns (string memory) { if (customExists[_jobID]) return (customs[_jobID]); string memory _prefix = titlePrefix(_jobID); string memory _a; string memory _b; string memory _c; (_a,_b,_c) = titleSeperated(_jobID); ...
16,537,638
[ 1, 6620, 275, 1719, 309, 518, 1807, 18983, 2353, 943, 3949, 5459, 1300, 434, 4511, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2077, 12, 11890, 389, 4688, 734, 13, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 309, 261, 3662, 4002, 63, 67, 4688, 734, 5717, 203, 5411, 327, 261, 3662, 87, 63, 67, 4688, 734, 19226, 203, 3639, 533, 3778,...
// SPDX-License-Identifier: AGPL-3.0-or-later // hevm: flattened sources of contracts/Loan.sol pragma solidity =0.6.11 >=0.6.0 <0.8.0 >=0.6.2 <0.8.0; ////// contracts/interfaces/ICollateralLocker.sol /* pragma solidity 0.6.11; */ interface ICollateralLocker { function collateralAsset() external view returns (ad...
The total length of the Loan term in days.
uint256 public immutable termDays;
110,531
[ 1, 1986, 2078, 769, 434, 326, 3176, 304, 2481, 316, 4681, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 11732, 2481, 9384, 31, 1171, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.24; // File: node_modules\zeppelin-solidity\contracts\math\Math.sol /** * @title Math * @dev Assorted math operations */ library Math { function max64(uint64 a, uint64 b) internal pure returns (uint64) { return a >= b ? a : b; } function min64(uint64 a, uint64 b) intern...
* @dev Allows for the beneficiary to withdraw their funds, rejecting further deposits./
function close() public onlyOwner { super.close(); }
6,420,707
[ 1, 19132, 364, 326, 27641, 74, 14463, 814, 358, 598, 9446, 3675, 284, 19156, 16, 4925, 310, 9271, 443, 917, 1282, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1746, 1435, 1071, 1338, 5541, 288, 203, 565, 2240, 18, 4412, 5621, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2019-12-03 */ pragma solidity 0.5.13; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in suc...
inject UNINIT LOCAL/STATE VAR
uint256 payout ;
1,819,016
[ 1, 22170, 5019, 12919, 15234, 19, 7998, 8350, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 293, 2012, 274, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/1/0x10eC0D497824e342bCB0EDcE00959142aAa766dD/sources/IdleToken.sol
* Dynamic allocate all the pool across different lending protocols if needed Everyone should be incentivized in calling this method If _newAmount == 0 then simple rebalance else rebalance (if needed) and mint (always) NOTE: this method can be paused @param _newAmount : amount of underlying tokens that needs to be minte...
function rebalance(uint256 _newAmount, uint256[] memory _clientProtocolAmounts) public whenNotPaused whenITokenPriceHasNotDecreased returns (bool) { bool shouldRebalance; address bestToken; if (currentTokensUsed.length == 1 && _newAmount > 0) { (shouldRebalance, bestToken) = _rebal...
4,112,224
[ 1, 9791, 10101, 777, 326, 2845, 10279, 3775, 328, 2846, 16534, 309, 3577, 16420, 476, 1410, 506, 316, 2998, 427, 1235, 316, 4440, 333, 707, 971, 389, 2704, 6275, 422, 374, 1508, 4143, 283, 12296, 469, 283, 12296, 261, 430, 3577, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 283, 12296, 12, 11890, 5034, 389, 2704, 6275, 16, 2254, 5034, 8526, 3778, 389, 2625, 5752, 6275, 87, 13, 203, 565, 1071, 1347, 1248, 28590, 1347, 1285, 969, 5147, 5582, 1248, 23326, 8905, 203, 565, 1135, 261, 6430, 13, ...
/** *Submitted for verification at Etherscan.io on 2020-10-06 */ pragma solidity 0.5.17; contract Context { constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData...
injected INTEGER OVERFLOW OR UNDERFLOW
totalStaked = totalStaked.add(_amount);
12,938,781
[ 1, 267, 6059, 16481, 22577, 17430, 4869, 587, 18556, 17430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4963, 510, 9477, 273, 2078, 510, 9477, 18, 1289, 24899, 8949, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.7.0; // SPDX-License-Identifier: MIT import "./DaoConstants.sol"; import "../helpers/FlagHelper.sol"; import "../guards/AdapterGuard.sol"; import "../utils/IERC20.sol"; import "../utils/SafeMath.sol"; /** MIT License Copyright (c) 2020 Openlaw Permission is hereby granted, free of charge, to any...
tokenAddress => availability tokenAddress => memberAddress => checkpointNum => Checkpoint tokenAddress => memberAddress => numCheckpoints
struct Bank { address[] tokens; address[] internalTokens; mapping(address => bool) availableTokens; mapping(address => bool) availableInternalTokens; mapping(address => mapping(address => mapping(uint32 => Checkpoint))) checkpoints; mapping(address => mapping(address ...
5,421,609
[ 1, 2316, 1887, 516, 13395, 1147, 1887, 516, 3140, 1887, 516, 9776, 2578, 516, 25569, 1147, 1887, 516, 3140, 1887, 516, 818, 1564, 4139, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 25610, 288, 203, 3639, 1758, 8526, 2430, 31, 203, 3639, 1758, 8526, 2713, 5157, 31, 203, 3639, 2874, 12, 2867, 516, 1426, 13, 2319, 5157, 31, 203, 3639, 2874, 12, 2867, 516, 1426, 13, 2319, 3061, 5157, 31, 203, 3639, ...
./full_match/1/0x30b3EaB9450036C432C1D2529E031D0F340E154e/sources/contracts/ASICLottery.sol
function to send rewards to the winner for a specific drawId
function sendRewards(uint256 _drawId) external nonReentrant { bool _isRewardClaimed = drawHistory[_drawId].isRewardClaimed; require(!_isRewardClaimed, "Reward already claimed"); address winner = drawHistory[_drawId].winner; require(winner != address(0), "No winner yet"); ui...
4,938,288
[ 1, 915, 358, 1366, 283, 6397, 358, 326, 5657, 1224, 364, 279, 2923, 3724, 548, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1366, 17631, 14727, 12, 11890, 5034, 389, 9446, 548, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 1426, 389, 291, 17631, 1060, 9762, 329, 273, 3724, 5623, 63, 67, 9446, 548, 8009, 291, 17631, 1060, 9762, 329, 31, 203...
pragma solidity ^0.6.0; import "./SchedulableTokensale.sol"; /** * @title BonusTokensale * @dev BonusTokensale contract * * @author Cyril Lapinte - <cyril.lapinte@openfiz.com> * SPDX-License-Identifier: MIT * * Error messages * BT01: There must have the same number of bonuses and bonusUntils * BT02: There m...
* @title BonusTokensale @dev BonusTokensale contract @author Cyril Lapinte - <cyril.lapinte@openfiz.com> SPDX-License-Identifier: MIT Error messages BT01: There must have the same number of bonuses and bonusUntils BT02: There must be some bonuses BT03: There cannot be too many bonuses BT04: BonusUntils must be declared...
contract BonusTokensale is SchedulableTokensale { uint256 private constant MAX_BONUSES = 10; BonusMode internal bonusMode_ = BonusMode.NONE; uint256[] internal bonusUntils_; uint256[] internal bonuses_; event BonusesDefined(uint256[] bonuses, BonusMode bonusMode, uint256[] bonusUntils); constructor( ...
5,433,035
[ 1, 38, 22889, 5157, 5349, 225, 605, 22889, 5157, 5349, 6835, 225, 22337, 86, 330, 511, 438, 474, 73, 300, 411, 2431, 86, 330, 18, 3762, 474, 73, 36, 3190, 74, 452, 18, 832, 34, 11405, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22889, 5157, 5349, 353, 348, 4292, 429, 5157, 5349, 288, 203, 203, 225, 2254, 5034, 3238, 5381, 4552, 67, 38, 673, 8001, 55, 273, 1728, 31, 203, 203, 225, 605, 22889, 2309, 2713, 324, 22889, 2309, 67, 273, 605, 22889,...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
приливать к голове
rus_verbs:приливать{},
5,488,141
[ 1, 145, 128, 146, 227, 145, 121, 145, 124, 145, 121, 145, 115, 145, 113, 146, 229, 146, 239, 225, 145, 123, 225, 145, 116, 145, 127, 145, 124, 145, 127, 145, 115, 145, 118, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 436, 407, 67, 502, 2038, 30, 145, 128, 146, 227, 145, 121, 145, 124, 145, 121, 145, 115, 145, 113, 146, 229, 146, 239, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity >=0.5.6; import "./interfaces/ERC165.sol"; /** * @title ERC165 * @dev The contract implements ERC165 standard (see https://eips.ethereum.org/EIPS/eip-165) using a mapping. */ contract ERC165Base is ERC165 { /** * @dev Mapping whether an interface ID is supported. */ mapping(bytes4 => bool...
* @dev Mapping whether an interface ID is supported./* @dev The ERC165 constructor registers the implementation of ERC165 standard itself./
{ _registerInterface(INTERFACE_ID_ERC_165); }
12,969,730
[ 1, 3233, 2856, 392, 1560, 1599, 353, 3260, 18, 19, 225, 1021, 4232, 39, 28275, 3885, 10285, 326, 4471, 434, 4232, 39, 28275, 4529, 6174, 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,...
[ 1, 1, 1, 1, 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, 288, 203, 565, 389, 4861, 1358, 12, 18865, 67, 734, 67, 654, 39, 67, 28275, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0x512e973C5103Dccc962C6256E838d2ed3a04b06A/sources/contracts/OperatorMixin.sol
* @title OperatorMixin OperatorMixin - Mixin that allows third party operator addresses the ability to transact on a token owner's behalf. This solution saves in some extraneous gas costs to `setApprovalForAll()` for new traders for this contract./
abstract contract OperatorMixin is ERC721Tradable { bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE"); constructor() { _grantRole(OPERATOR_ROLE, msg.sender); } function isApprovedForAll(address owner, address operator) override public virtual vi...
12,479,733
[ 1, 5592, 14439, 11097, 14439, 300, 490, 10131, 716, 5360, 12126, 18285, 3726, 6138, 326, 7123, 358, 906, 621, 603, 279, 1147, 3410, 1807, 12433, 6186, 18, 1220, 6959, 14649, 316, 2690, 7582, 15522, 16189, 22793, 358, 1375, 542, 23461, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17801, 6835, 11097, 14439, 353, 4232, 39, 27, 5340, 1609, 17394, 288, 203, 565, 1731, 1578, 1071, 5381, 25500, 67, 16256, 273, 417, 24410, 581, 5034, 2932, 26110, 67, 16256, 8863, 203, 203, 203, 565, 3885, 1435, 288, 203, 3639, 389...
./full_match/3/0xEb99aE6F970F489cD197c4436863cB7A85E31D46/sources/browser/PoolPortal.sol
* @dev sell Bancor or Uniswap pool @param _amount amount of pool token @param _type pool type @param _poolToken pool token address @param _additionalArgs bytes32 array for case if need pass some extra params, can be empty @param _additionalData for provide any additional data, if not used just set "0x"/ ...
function sellPool ( uint256 _amount, uint _type, IERC20 _poolToken, bytes32[] calldata _additionalArgs, bytes calldata _additionalData ) external payable returns( address[] memory connectorsAddress, uint256[] memory connectorsAmount, uint256 poolAmountSent ) { if(_typ...
14,251,440
[ 1, 87, 1165, 605, 304, 3850, 578, 1351, 291, 91, 438, 2845, 225, 389, 8949, 377, 3844, 434, 2845, 1147, 225, 389, 723, 4202, 2845, 618, 225, 389, 6011, 1345, 225, 2845, 1147, 1758, 225, 389, 13996, 2615, 225, 1731, 1578, 526, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 357, 80, 2864, 203, 225, 261, 203, 565, 2254, 5034, 389, 8949, 16, 203, 565, 2254, 389, 723, 16, 203, 565, 467, 654, 39, 3462, 389, 6011, 1345, 16, 203, 565, 1731, 1578, 8526, 745, 892, 389, 13996, 2615, 16, 203, 56...
./full_match/42161/0x471E35C0D689564E31f4476a1f8fa7a7cd626c15/sources/contracts/GaurVault1_ERC4626.sol
Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block, given current on-chain conditions. MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw call in the same transaction. I.e. withdraw should return the same or f...
function previewWithdraw(uint256 assets) public view override returns (uint256 shares) { if (totalSupply() == 0 || balance() == 0) return 0; shares = roundUpDiv(assets * totalSupply(), balance()); }
16,303,430
[ 1, 19132, 392, 603, 17, 5639, 578, 3397, 17, 5639, 729, 358, 20089, 326, 16605, 434, 3675, 598, 9446, 287, 622, 326, 783, 1203, 16, 864, 783, 603, 17, 5639, 4636, 18, 10685, 327, 487, 1746, 358, 471, 1158, 27886, 2353, 326, 5565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10143, 1190, 9446, 12, 11890, 5034, 7176, 13, 1071, 1476, 3849, 1135, 261, 11890, 5034, 24123, 13, 288, 203, 3639, 309, 261, 4963, 3088, 1283, 1435, 422, 374, 747, 11013, 1435, 422, 374, 13, 327, 374, 31, 203, 3639, 241...
/** *Submitted for verification at Etherscan.io on 2021-07-18 */ // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.0 <0.9.0; contract HamsterTigerHype { // структура пользователя, куда заносится информация о депозите пользователя, времени его инвестов и проверка на участие в программе struct User {...
Время которое должно пройти для получения выплаты на рекламный счёт
uint256 advertisingTime = 1 minutes;
7,859,954
[ 1, 145, 245, 146, 227, 145, 118, 145, 125, 146, 242, 225, 145, 123, 145, 127, 146, 229, 145, 127, 146, 227, 145, 127, 145, 118, 225, 145, 117, 145, 127, 145, 124, 145, 119, 145, 126, 145, 127, 225, 145, 128, 146, 227, 145, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2254, 5034, 16738, 13734, 950, 273, 404, 6824, 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, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ******************************************...
* Do some processing/
function newRandomnessRequest() external override returns (bytes32) { require( msg.sender == address(randomnessConsumer), 'Only consumer is allowed' ); if (LINK.balanceOf(address(this)) >= fee) { return VRFConsumerBase.requestRandomness(keyHash, fee); ...
1,443,454
[ 1, 3244, 2690, 4929, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 394, 8529, 4496, 691, 1435, 3903, 3849, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 1758, 12, 9188, 4496, 5869, 3631, 203, 5411, 296, 3386, 4765, 353, 2935, 11, 203, 3639, 11272...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; //pragma experimental ABIEncoderV2; // -------------------------------------------------------------------------------------- // GENESISVault.sol - 3/16/2021 by CryptoGamblers // - A staking vault that accepts wbtc // - Call Terminated to end Staking // - At Gen...
We should only accept wbtc into the STAKE in any quanitity.
function stake(uint256 amount) public virtual { _totalSupply = _totalSupply.add(amount); _balances[msg.sender] = _balances[msg.sender].add(amount); IERC20(stakingToken).transferFrom(msg.sender, address(this), amount); }
10,055,460
[ 1, 3218, 1410, 1338, 2791, 17298, 5111, 1368, 326, 2347, 37, 6859, 316, 1281, 719, 5241, 560, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 911, 12, 11890, 5034, 3844, 13, 1071, 5024, 288, 203, 3639, 389, 4963, 3088, 1283, 273, 389, 4963, 3088, 1283, 18, 1289, 12, 8949, 1769, 203, 3639, 389, 70, 26488, 63, 3576, 18, 15330, 65, 273, 389, 70, 26488, 63...
./full_match/1/0x2234332C7C817972CeD04a9bD0cCfdE40312A68F/sources/home/keso/projects/crypto/uptown-panda-token/contracts/UptownPandaFarm.sol
how much percent you're allowed to withdraw (after 1 day 10%, after 2 days 20%,...)
uint256 public constant HARVEST_STEP = 10;
3,092,801
[ 1, 13606, 9816, 5551, 1846, 4565, 2935, 358, 598, 9446, 261, 5205, 404, 2548, 1728, 9, 16, 1839, 576, 4681, 4200, 9, 16, 21846, 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, 2254, 5034, 1071, 5381, 670, 985, 3412, 882, 67, 26951, 273, 1728, 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, -10...
/** *Submitted for verification at Etherscan.io on 2021-10-17 */ // Sources flattened with hardhat v2.6.4 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transac...
* @notice Set the duration of the auction in seconds. @dev Only callable by the owner./
function setDuration(uint256 _duration) external override onlyOwner { duration = _duration; emit AuctionDurationUpdated(_duration); }
10,857,617
[ 1, 694, 326, 3734, 434, 326, 279, 4062, 316, 3974, 18, 225, 5098, 4140, 635, 326, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 5326, 12, 11890, 5034, 389, 8760, 13, 3903, 3849, 1338, 5541, 288, 203, 3639, 3734, 273, 389, 8760, 31, 203, 540, 203, 3639, 3626, 432, 4062, 5326, 7381, 24899, 8760, 1769, 203, 565, 289, 203, 203, 2, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.21 <0.7.0; // For smoke test purpose // contract Election // { // // Automatically assigns a getter as candidarte() // string public candidate; // constructor() public // { // candidate = "Candidate 1"; // } // } // Now when we run fol...
Model for a candidate
{ struct Candidate pragma solidity >=0.4.21 <0.7.0; contract Election { uint id; string name; uint voteCount; } constructor() public mapping(uint => Candidate) public candidates; uint public candidatesCount; mapping(address => bool) public voters; { ...
6,364,801
[ 1, 1488, 364, 279, 5500, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1958, 385, 8824, 203, 683, 9454, 18035, 560, 1545, 20, 18, 24, 18, 5340, 411, 20, 18, 27, 18, 20, 31, 203, 203, 203, 16351, 512, 942, 203, 565, 288, 203, 3639, 2254, 612, 31, 203, 3639, 533, 508, 31, 203, 3639...
//Address: 0x2dcfaac11c9eebd8c6c42103fe9e2a6ad237af27 //Contract name: ERC20Token //Balance: 0 Ether //Verification Date: 12/26/2017 //Transacion Count: 122 // CODE STARTS HERE pragma solidity ^0.4.18; contract ERC20 { uint public totalSupply; function balanceOf(address who) constant returns (uint); fun...
the founder address can set this to true to halt the whole TGE event due to emergency
}bool halted = false;
15,796,095
[ 1, 5787, 284, 465, 765, 1758, 848, 444, 333, 358, 638, 358, 18389, 326, 7339, 399, 7113, 871, 6541, 358, 801, 24530, 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, 289, 6430, 19514, 2344, 273, 629, 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, ...
./full_match/1/0xC7c82A0Be062aB70CD5B0A09F920b74FA11fb2C8/sources/contracts-lib/openzeppelin-contracts/contracts/access/AccessControlCrossChain.sol
* @dev An extension to {AccessControl} with support for cross-chain access management. For each role, is extension implements an equivalent "aliased" role that is used for restricting calls originating from other chains. For example, if a function `myFunction` is protected by `onlyRole(SOME_ROLE)`, and if an address `x...
abstract contract AccessControlCrossChain is AccessControl, CrossChainEnabled { bytes32 public constant CROSSCHAIN_ALIAS = keccak256("CROSSCHAIN_ALIAS"); function _checkRole(bytes32 role) internal view virtual override { if (_isCrossChain()) { _checkRole(_crossChainRoleAlias(role), _crossC...
3,138,582
[ 1, 979, 2710, 358, 288, 16541, 97, 598, 2865, 364, 6828, 17, 5639, 2006, 11803, 18, 2457, 1517, 2478, 16, 353, 2710, 4792, 392, 7680, 315, 18083, 8905, 6, 2478, 716, 353, 1399, 364, 13108, 310, 4097, 4026, 1776, 628, 1308, 13070, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 24349, 13941, 3893, 353, 24349, 16, 19742, 3893, 1526, 288, 203, 565, 1731, 1578, 1071, 5381, 385, 1457, 1260, 1792, 6964, 67, 23784, 273, 417, 24410, 581, 5034, 2932, 39, 1457, 1260, 1792, 6964, 67, 23784, 8863, 203, ...
./full_match/1/0x976d1D061f282a672782ce913023E277a8652674/sources/browser/Wasabi.sol
deal with if the offer expired.
function close(address _from, uint8 _state, address sushi) external returns (address tokenToOwner, address tokenToTaker, uint amountToOwner, uint amountToTaker) { require(offerStats[msg.sender] != 0, "WASABI: CLOSE OFFER NOT FOUND"); OfferStruct storage offer = offers[msg.sender]; require(_s...
9,768,936
[ 1, 323, 287, 598, 309, 326, 10067, 7708, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2867, 389, 2080, 16, 2254, 28, 389, 2019, 16, 1758, 272, 1218, 77, 13, 3903, 1135, 261, 2867, 1147, 774, 5541, 16, 1758, 1147, 774, 56, 6388, 16, 2254, 3844, 774, 5541, 16, 2254, 3844, 774, 56, 6388, 13, 2...
./partial_match/1/0x24Ae2dA0f361AA4BE46b48EB19C91e02c5e4f27E/sources/src/MevEth.sol
@notice The length of the withdrawal queue.
uint256 public queueLength;
16,111,564
[ 1, 1986, 769, 434, 326, 598, 9446, 287, 2389, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2389, 1782, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.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 cheaper than...
* @dev Burns a specific amount of tokens. @param _value The amount of token to be burned./
function burn(uint256 _value) hasBurnPermission public { _burn(msg.sender, _value); }
6,835,973
[ 1, 38, 321, 87, 279, 2923, 3844, 434, 2430, 18, 225, 389, 1132, 1021, 3844, 434, 1147, 358, 506, 18305, 329, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 18305, 12, 11890, 5034, 389, 1132, 13, 711, 38, 321, 5041, 1071, 288, 203, 565, 389, 70, 321, 12, 3576, 18, 15330, 16, 389, 1132, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/* Copyright 2022 Dolomite. 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 wr...
_to = */ msg.sender,
function withdrawPar( uint _accountIndex, uint _marketId, uint _amountPar ) external nonReentrant { _withdraw( _accountIndex, _marketId, Types.AssetAmount({ sign: false, denomination: Types.AssetDenominat...
15,819,709
[ 1, 67, 869, 273, 342, 1234, 18, 15330, 16, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1553, 12, 203, 3639, 2254, 389, 4631, 1016, 16, 203, 3639, 2254, 389, 27151, 548, 16, 203, 3639, 2254, 389, 8949, 1553, 203, 565, 262, 203, 565, 3903, 203, 565, 1661, 426, 8230, 970, 288, 203, 3639, 389, 19...
pragma solidity >=0.4.0 <=0.6.0; import "./PRToken.sol"; contract ProductReview { struct Status { bool isBuy; bool isReview; string reviewDescription; uint timeStamp; } struct EndorseValue{ string status; uint upVoteCount; uint downVoteCount...
1000 weis returned to buyer"
msg.sender.transfer(reviewReturn);
12,993,203
[ 1, 18088, 732, 291, 2106, 358, 27037, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 2868, 1234, 18, 15330, 18, 13866, 12, 16041, 990, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.8; /** * Math operations with safety checks * By OpenZeppelin: https://github.com/OpenZeppelin/zeppelin-solidity/contracts/SafeMath.sol */ library SafeMath { function mul(uint256 a, uint256 b) internal returns (uint256) { uint256 c = a * b; if(!(a == 0 || c / a == b)) throw...
rest days , normal
return 2000;
1,804,036
[ 1, 8792, 4681, 269, 2212, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 327, 16291, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/80001/0x4c5970b979619355b15C380DA7bB2AD3Da23b82B/sources/_thirdweb-dev/contracts/base/ERC721LazyMint.sol
@dev Returns whether operator restriction can be set in the given execution context.
function _canSetOperatorRestriction() internal virtual override returns (bool) { return msg.sender == owner(); }
840,989
[ 1, 1356, 2856, 3726, 9318, 848, 506, 444, 316, 326, 864, 4588, 819, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4169, 694, 5592, 11670, 1435, 2713, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 327, 1234, 18, 15330, 422, 3410, 5621, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity 0.5.7; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; /** * @title AccreditationRepo stores the whitelisted attesters * @notice Bloom stores a whitelist of accredited attesters. * This list is queried during the whisper negotiation process * to ensure trusted attesters are biddi...
* @notice setAdmin changes the contract admin which has privileges to grant and revoke accreditation @dev Restricted to contract owner @param _newAdmin address of new admin user or contract/
function setAdmin(address _newAdmin) public onlyOwner nonZero(_newAdmin) { address _oldAdmin = admin; require (_newAdmin != _oldAdmin); admin = _newAdmin; emit AdminChanged(_oldAdmin, _newAdmin); }
2,501,183
[ 1, 542, 4446, 3478, 326, 6835, 3981, 1492, 711, 19583, 358, 7936, 471, 18007, 4078, 1118, 8773, 225, 29814, 358, 6835, 3410, 225, 389, 2704, 4446, 1758, 434, 394, 3981, 729, 578, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 4446, 12, 2867, 389, 2704, 4446, 13, 1071, 1338, 5541, 1661, 7170, 24899, 2704, 4446, 13, 288, 203, 565, 1758, 389, 1673, 4446, 273, 3981, 31, 203, 565, 2583, 261, 67, 2704, 4446, 480, 389, 1673, 4446, 1769, 203, ...
/** *Submitted for verification at Etherscan.io on 2021-05-05 */ pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in suc...
1000 - 3999 0.01 ETH
return 10000000000000000;
6,584,510
[ 1, 18088, 300, 890, 11984, 374, 18, 1611, 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, 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, 1850, 327, 2130, 12648, 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, -100, -100,...
./partial_match/1/0x2132110A63c623EAcA0A888fFe9580135a758355/sources/Sprial2.sol
1% maxTransactionAmountTxn
maxBuyAmount = totalSupply / 100;
2,875,188
[ 1, 21, 9, 943, 3342, 6275, 13789, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 943, 38, 9835, 6275, 273, 2078, 3088, 1283, 342, 2130, 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...
./full_match/42161/0x249FF48fE3CBA8a5486836676e3eaA1C294d4a9A/sources/project_/contracts/v6.2/GNSReferralsV6_2.sol
DAI (to reach maximum referral system fee, eg. 1e8)
uint public targetVolumeDai;
16,299,395
[ 1, 9793, 45, 261, 869, 9287, 4207, 1278, 29084, 2619, 14036, 16, 9130, 18, 404, 73, 28, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 1071, 1018, 4545, 40, 10658, 31, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0xAd2F6576a7Df16680B432EF1E9d21633621c7074/sources/polygon/connectors/1inch/1inch-v3/main.sol
* @dev Gets the swapping data from 1inch's API. @param oneInchData Struct with multiple swap data defined in interfaces.sol @param setId Set token amount at this ID in `InstaMemory` Contract./
) internal returns (OneInchData memory) { TokenInterface _sellAddr = oneInchData.sellToken; uint ethAmt; if (address(_sellAddr) == maticAddr) { ethAmt = oneInchData._sellAmt; approve(TokenInterface(_sellAddr), oneInchAddr, oneInchData._sellAmt); }
1,907,042
[ 1, 3002, 326, 7720, 1382, 501, 628, 404, 267, 343, 1807, 1491, 18, 225, 1245, 382, 343, 751, 7362, 598, 3229, 7720, 501, 2553, 316, 7349, 18, 18281, 225, 10446, 1000, 1147, 3844, 622, 333, 1599, 316, 1375, 10773, 69, 6031, 68, 13456...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 2713, 1135, 261, 3335, 382, 343, 751, 3778, 13, 288, 203, 3639, 29938, 389, 87, 1165, 3178, 273, 1245, 382, 343, 751, 18, 87, 1165, 1345, 31, 203, 203, 3639, 2254, 13750, 31787, 31, 203, 3639, 309, 261, 2867, 24899, 8...
/** *Submitted for verification at Etherscan.io on 2021-12-10 */ // File: contracts/Owned.sol pragma solidity ^0.5.16; // https://docs.synthetix.io/contracts/source/contracts/owned contract Owned { address public owner; address public nominatedOwner; constructor(address _owner) public { require...
ERROR: type should be string, got " https:docs.synthetix.io/contracts/source/interfaces/istakingrewards Views Mutative"
interface IStakingRewards { function balanceOf(address account) external view returns (uint256); function earned(address account) external view returns (uint256); function getRewardForDuration() external view returns (uint256); function lastTimeRewardApplicable() external view returns (uint256); ...
6,693,554
[ 1, 4528, 30, 8532, 18, 11982, 451, 278, 697, 18, 1594, 19, 16351, 87, 19, 3168, 19, 15898, 19, 376, 6159, 266, 6397, 31117, 14138, 1535, 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, 5831, 467, 510, 6159, 17631, 14727, 288, 203, 203, 565, 445, 11013, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 425, 1303, 329, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 17...
./partial_match/1/0xCC4fCe9171dE972aE892BD0b749F96B49b3740E7/sources/etherscana_verify.sol
* @notice Changes the infinityNFTFee of the XfaiV0Core contract @dev Only the owner of the XfaiV0Core contract can call this function @param _newLnftFee The new infinityNFTFee/
function changeInfinityNFTFee(uint _newLnftFee) external override onlyOwner { require(lpFee + _newLnftFee <= MAX_FEE, 'XfaiV0Core: FEE_EXCEEDS_LIMIT'); infinityNFTFee = _newLnftFee; emit InfinityNFTFeeChange(_newLnftFee); }
16,068,427
[ 1, 7173, 326, 27272, 50, 4464, 14667, 434, 326, 1139, 507, 77, 58, 20, 4670, 6835, 225, 5098, 326, 3410, 434, 326, 1139, 507, 77, 58, 20, 4670, 6835, 848, 745, 333, 445, 225, 389, 2704, 13780, 1222, 14667, 1021, 394, 27272, 50, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2549, 382, 7850, 50, 4464, 14667, 12, 11890, 389, 2704, 13780, 1222, 14667, 13, 3903, 3849, 1338, 5541, 288, 203, 565, 2583, 12, 9953, 14667, 397, 389, 2704, 13780, 1222, 14667, 1648, 4552, 67, 8090, 41, 16, 296, 60, 50...
./full_match/4/0x96B7976e045BC2eB6FB2605a99e155D8cD986463/sources/browser/Untitled1.sol
emit showMSG("shopAttackprice", msg.sender);
function price() public returns(uint){ if(shopInstance.isSold()==false){ return 101; return 99; } }
813,137
[ 1, 18356, 2405, 11210, 2932, 5020, 3075, 484, 8694, 3113, 1234, 18, 15330, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6205, 1435, 1071, 1135, 12, 11890, 15329, 203, 540, 203, 540, 203, 3639, 309, 12, 5020, 1442, 18, 291, 55, 1673, 1435, 631, 5743, 15329, 203, 5411, 327, 13822, 31, 203, 5411, 327, 14605, 31, 203, 3639, 289, 203, 565, ...
./full_match/80001/0xCb27a94A51dA5D5F066B50087eFdF7FA3C76d103/sources/src/Contract.sol
144 hours / 6 days
MAX_EINETIEN_EGGS_AUTOCOMPOUND_TIMER = 518400;
846,818
[ 1, 25339, 7507, 342, 1666, 4681, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 4552, 67, 41, 18819, 45, 1157, 67, 41, 43, 16113, 67, 18909, 4208, 2419, 5240, 67, 56, 31582, 273, 1381, 2643, 16010, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity 0.6.11; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./interfaces/IProxy.sol"; /// @title A contract for the management of votes /// @dev The contract can still be impro...
uint amountRequest; bool state;
struct LoanRequest { string description; uint voteCount; address receiver; } IProxy proxy; address public stacking; address public proxySimple; uint16 winningProposalId; address receiverAddress; event ProposalsRegistrationStarted(); event ProposalsRegistra...
13,102,148
[ 1, 11890, 3844, 691, 31, 1377, 1426, 919, 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, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 3176, 304, 691, 288, 203, 3639, 533, 2477, 31, 203, 3639, 2254, 12501, 1380, 31, 203, 3639, 1758, 5971, 31, 203, 565, 289, 203, 203, 565, 467, 3886, 2889, 31, 203, 565, 1758, 1071, 2110, 310, 31, 203, 565, 1758, 1071...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "../event/EventEmitter.sol"; import "../treasury/Treasury.sol"; import "../voting/Voting.sol"; /** @title ValidatorRegistry @...
Converting reward rate from ether to tokens to mintConverting reward rate from ether to tokens to burnTokens remaining in the treasury
if (_hasRewardPending(l)) { uint rewardPeriods = block.number.sub(l.lastRewardBlock).div(rewardPeriod); if (l.rewardRate > 0) { kosuToken.mintTo(l.owner, kosuToken.estimateEtherToToken(uint(l.rewardRate).mul(rewardPeriods))); uint tokensToBurn = kosuToken....
13,030,716
[ 1, 2723, 310, 19890, 4993, 628, 225, 2437, 358, 2430, 358, 312, 474, 2723, 310, 19890, 4993, 628, 225, 2437, 358, 2430, 358, 18305, 5157, 4463, 316, 326, 9787, 345, 22498, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 67, 5332, 17631, 1060, 8579, 12, 80, 3719, 288, 203, 5411, 2254, 19890, 30807, 273, 1203, 18, 2696, 18, 1717, 12, 80, 18, 2722, 17631, 1060, 1768, 2934, 2892, 12, 266, 2913, 5027, 1769, 203, 5411, 309, 261, 80, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; /** * @title ScoreMemory * @dev This contract will demo using memory */ contract ScoreMemory { // This is still stored as storage int[] public scores; /// Puts two numbers in the scores array function insertAndUpdateScores() publ...
Puts two numbers in the scores array newCounts will be a copy of the values from scores
{ scores.push(27); scores.push(42); int[] memory newScores = scores; newScores[0] = 0; }
930,736
[ 1, 26804, 2795, 5600, 316, 326, 8474, 526, 394, 9211, 903, 506, 279, 1610, 434, 326, 924, 628, 8474, 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, 8474, 18, 6206, 12, 5324, 1769, 203, 3639, 8474, 18, 6206, 12, 9452, 1769, 203, 7010, 3639, 509, 8526, 3778, 394, 20037, 273, 8474, 31, 203, 3639, 394, 20037, 63, 20, 65, 273, 374, 31, 203, 565, 289, 7010, ...
// SPDX-License-Identifier: MIT pragma solidity 0.5.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../libraries/SignedSafeMath.sol"; import "../libraries/SafeCast.sol"; import "../codes/Ownable.sol"; import "...
@notice Add a new fee token to the pool. Can only be called by the owner. @param feeToken_ Address of the ERC-20 token.
function addToken(IERC20 feeToken_) public onlyOwner { require(feeToken.length == 0 || (_tIdOf[address(feeToken_)] == 0 && feeToken[0] != feeToken_), "feeToken_ already exists"); _tIdOf[address(feeToken_)] = feeToken.length; feeToken.push(feeToken_); emit AddToken(feeToken.length.su...
6,389,781
[ 1, 986, 279, 394, 14036, 1147, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 225, 14036, 1345, 67, 5267, 434, 326, 4232, 39, 17, 3462, 1147, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 1345, 12, 45, 654, 39, 3462, 14036, 1345, 67, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 21386, 1345, 18, 2469, 422, 374, 747, 261, 67, 88, 548, 951, 63, 2867, 12, 21386, 1345, 67, 25887, 422, 374, 597, 14...
./full_match/11155111/0xF1De736CcBb1a37591f7fCA4CA415932a4a8d632/sources/contracts/gateway/L1GraphTokenGateway.sol
* @dev Get the accumulated L2 mint allowance at a particular block number @param _blockNum Block at which allowance will be computed @return The accumulated GRT amount that can be minted from L2 at the specified block/
function accumulatedL2MintAllowanceAtBlock(uint256 _blockNum) public view returns (uint256) { require(_blockNum >= lastL2MintAllowanceUpdateBlock, "INVALID_BLOCK_FOR_MINT_ALLOWANCE"); return accumulatedL2MintAllowanceSnapshot.add( l2MintAllowancePerBlock.mul(_blockNum.sub...
3,805,488
[ 1, 967, 326, 24893, 511, 22, 312, 474, 1699, 1359, 622, 279, 6826, 1203, 1300, 225, 389, 2629, 2578, 3914, 622, 1492, 1699, 1359, 903, 506, 8470, 327, 1021, 24893, 611, 12185, 3844, 716, 848, 506, 312, 474, 329, 628, 511, 22, 622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 24893, 48, 22, 49, 474, 7009, 1359, 861, 1768, 12, 11890, 5034, 389, 2629, 2578, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 24899, 2629, 2578, 1545, 1142, 48, 22, 49, 474, 7009, 1359, 1891, 1768, ...
./full_match/1/0xCE938c27C04d4A638307D44e28515D4bcD28bD74/sources/contracts/f_x_/Treasury.sol
@inheritdoc ITreasury @dev If the current collateral ratio >= new collateral ratio, we should return 0.
function maxMintableXTokenWithIncentive(uint256 _newCollateralRatio, uint256 _incentiveRatio) external view override returns (uint256 _maxBaseIn, uint256 _maxXTokenMintable) { require(_newCollateralRatio > PRECISION, "collateral ratio too small"); StableCoinMath.SwapState memory _state = _l...
3,108,128
[ 1, 36, 10093, 24142, 266, 345, 22498, 225, 971, 326, 783, 4508, 2045, 287, 7169, 1545, 394, 4508, 2045, 287, 7169, 16, 732, 1410, 327, 374, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 943, 49, 474, 429, 60, 1345, 1190, 382, 2998, 688, 12, 11890, 5034, 389, 2704, 13535, 2045, 287, 8541, 16, 2254, 5034, 389, 267, 2998, 688, 8541, 13, 203, 565, 3903, 203, 565, 1476, 203, 565, 3849, 203, 565, 1135, 261...
./full_match/420/0x455A0A9338d2Ca251032e0Dea31612C4305665eB/sources/contracts/CryptoCare.sol
Withdrawl Request Struct ===
struct WithdrawlStruct { string description; uint value; address payable recipient; bool complete; uint completedTimestamp; uint approvalsCount; mapping(address => bool) approvals; } WithdrawlStruct[] public withdrawls; uint wdIndex;
13,226,303
[ 1, 1190, 9446, 80, 1567, 7362, 757, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 3423, 9446, 80, 3823, 288, 203, 3639, 533, 2477, 31, 203, 3639, 2254, 460, 31, 203, 3639, 1758, 8843, 429, 8027, 31, 203, 3639, 1426, 3912, 31, 203, 3639, 2254, 5951, 4921, 31, 203, 3639, 2254, 6617, 4524, 1380, 31, ...
./full_match/44787/0x1E2B33c756c8f0709A5867ED7408e740F717012A/sources/Users/zviad/src/savingscelo/contracts/SavingsCELO.sol
Deposits CELO to the contract in exchange of SavingsCELO tokens. CELO tokens are transfered using ERC20.transferFrom call, thus caller must call .approve or .increaseAllowance first to allow for the transfer to go through. It is safe to call _lockedGold.lock() with 0 value.
function deposit() external payable { uint256 totalCELO = totalSupplyCELO().sub(msg.value); uint256 totalSavingsCELO = this.totalSupply(); uint256 toMint = savingsToMint(totalSavingsCELO, totalCELO, msg.value); _mint(msg.sender, toMint); uint256 toLock = address(this).balance; assert(toLock >= msg.value);...
13,265,774
[ 1, 758, 917, 1282, 29538, 1502, 358, 326, 6835, 316, 7829, 434, 348, 27497, 1441, 1502, 2430, 18, 29538, 1502, 2430, 854, 7412, 329, 1450, 4232, 39, 3462, 18, 13866, 1265, 745, 16, 12493, 4894, 1297, 745, 263, 12908, 537, 578, 263, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 443, 1724, 1435, 3903, 8843, 429, 288, 203, 202, 202, 11890, 5034, 2078, 1441, 1502, 273, 2078, 3088, 1283, 1441, 1502, 7675, 1717, 12, 3576, 18, 1132, 1769, 203, 202, 202, 11890, 5034, 2078, 55, 27497, 1441, 1502, 273, ...