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
/* AMP Copyright 2017-2020 AMP Development 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,...
make sure the asset is listed on amp check if the contract is allowed to spend check if the contract is able to transfer the dai amount from the user to itself if the allowance is given if the transfer is successful, then updaate the regular rewards balance for the asset/token then mark the contribution as successful
function contributeAssetRegularRewards(address tokenAddress, uint256 amountUSD) public returns(bool){ bool contributionSuccessful = false; if(isAssetOnAMP(tokenAddress)) { require(IERC20(daiToken).allowance(msg.sender, address(this)) >= amountUSD, 'Please approve this contract to spend...
12,562,696
[ 1, 6540, 3071, 326, 3310, 353, 12889, 603, 16946, 866, 309, 326, 6835, 353, 2935, 358, 17571, 866, 309, 326, 6835, 353, 7752, 358, 7412, 326, 5248, 77, 3844, 628, 326, 729, 358, 6174, 309, 326, 1699, 1359, 353, 864, 309, 326, 7412, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 356, 887, 6672, 17974, 17631, 14727, 12, 2867, 1147, 1887, 16, 2254, 5034, 3844, 3378, 40, 13, 1071, 1135, 12, 6430, 15329, 203, 203, 3639, 1426, 24880, 14277, 273, 629, 31, 203, 203, 3639, 309, 12, 291, 6672, 1398, 890...
./partial_match/1/0x63E9E16421a2b1Ea14AE8592C0810A9E47809399/sources/pacman.sol
Buy FeeSell FeeOriginal Fee
contract pacman is Context, IERC20, Ownable { using SafeMath for uint256; string private constant _name = "pacman"; string private constant _symbol = "pacman"; uint8 private constant _decimals = 9; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; ...
9,173,247
[ 1, 38, 9835, 30174, 55, 1165, 30174, 8176, 30174, 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, 16351, 293, 1077, 4728, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 7010, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 7010, 565, 533, 3238, 5381, 389, 529, 273, 315, 84, 1077, 4728, 14432, 7010, 565, 533,...
pragma solidity ^0.5.9; // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol /** * @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 amount of tokens in existenc...
delete operation->beneficiaryIndexdelete operations count for beneficiary
function _cancelAllPending() internal { for (uint i = 0; i < allOperations.length; i++) { delete(allOperationsIndicies[allOperations[i]]); delete(votesMaskByOperation[allOperations[i]]); delete(votesCountByOperation[allOperations[i]]); delete(operationsByBenef...
12,684,393
[ 1, 3733, 1674, 2122, 70, 4009, 74, 14463, 814, 1016, 3733, 5295, 1056, 364, 27641, 74, 14463, 814, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 389, 10996, 1595, 8579, 1435, 2713, 288, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 777, 9343, 18, 2469, 31, 277, 27245, 288, 203, 5411, 1430, 12, 454, 9343, 3866, 335, 606, 63, 454, 9343, 63, 77, 13563,...
./partial_match/3/0x51886Cc76a28F49439BF0fE7051FF25Ab6d66432/sources/Ris3Factory.sol
set government address
function setGovernmentAddress(address _govAddress) public onlyOwner { governmentAddress = _govAddress; government = ris3Gov(governmentAddress); ris3Address = government.getRis3Address(); ris3 = IERC20(ris3Address); taxPoolAddress = government.getTaxPoolAddress(); }
5,059,046
[ 1, 542, 314, 1643, 82, 475, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 26770, 1643, 82, 475, 1887, 12, 2867, 389, 75, 1527, 1887, 13, 1071, 1338, 5541, 288, 203, 3639, 314, 1643, 82, 475, 1887, 273, 389, 75, 1527, 1887, 31, 203, 3639, 314, 1643, 82, 475, 273, 436, 291, 23, 43, 1527, 12...
./partial_match/42/0xA17716b2e0ec620B5BD7eb0b6fE1b8C2dCa57679/sources/CompoundNoFoldStrategyUSDTTestnet.sol
File: contracts/strategies/compound/CompoundInteractor.sol
contract CompoundInteractor is ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public underlying; IERC20 public _weth = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); CompleteCToken public ctoken; ComptrollerInterface public comptroller; constructor( ...
3,383,170
[ 1, 812, 30, 20092, 19, 701, 15127, 19, 22585, 19, 16835, 2465, 3362, 18, 18281, 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, 16351, 21327, 2465, 3362, 353, 868, 8230, 12514, 16709, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 467, 654, 39, 3462, 1071, 6808...
pragma solidity ^0.4.24; /** * SmartEth.co * ERC20 Token and ICO smart contracts development, smart contracts audit, ICO websites. * contact@smarteth.co */ /** * @title SafeMath */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } ...
Determined by start()
openingTime = 1530446400;
2,015,898
[ 1, 9139, 329, 635, 787, 1435, 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, 10890, 950, 273, 4711, 23, 3028, 24, 1105, 713, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/4/0x0962121eb6acdd5E94B6c1fF5beA3f19E23efDc2/sources/contracts/staking.sol
Raise flag showing the user has been paid
user_list[_affiliate].firstMilestoneHit = true;
796,534
[ 1, 30570, 2982, 17253, 326, 729, 711, 2118, 30591, 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, 5411, 729, 67, 1098, 63, 67, 7329, 330, 3840, 8009, 3645, 49, 18270, 13616, 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, ...
./full_match/1/0xdC85866dDd95fA9b7C856944faB128902CA8C60F/sources/contracts/neymar/nft/ERC721APausable.sol
* @dev ERC721 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug./
abstract contract ERC721APausable is ERC721A, Pausable { function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override(ERC721A) { super._beforeTokenTransfers(from, to, startTokenId, quantity); require...
9,781,854
[ 1, 654, 39, 27, 5340, 1147, 598, 6790, 16665, 1147, 29375, 16, 312, 474, 310, 471, 18305, 310, 18, 19256, 364, 22456, 4123, 487, 5309, 310, 1284, 5489, 3180, 326, 679, 434, 392, 9873, 3879, 16, 578, 7999, 392, 801, 24530, 1620, 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, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 4232, 39, 27, 5340, 2203, 69, 16665, 353, 4232, 39, 27, 5340, 37, 16, 21800, 16665, 288, 203, 565, 445, 389, 5771, 1345, 1429, 18881, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 7...
./full_match/1/0xD5d3299585580F10151f991698578a02Fe327Fb9/sources/contracts/CanvaIsland.sol
update distributed amount
targetInfo.distributedAmount += _amount;
17,145,061
[ 1, 2725, 16859, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1018, 966, 18, 2251, 11050, 6275, 1011, 389, 8949, 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, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "./IcoToken.sol"; /// @title /// @author /// @dev contract IcoContract is Ownable { using Address for address payable; IcoToken priva...
@dev ICO is finished @return Time left before the end ICO
function timeLeft() public view returns (uint256) { require(block.timestamp < _end, "ICO: there is no time left"); return _end - block.timestamp; }
7,276,740
[ 1, 2871, 51, 353, 6708, 327, 2647, 2002, 1865, 326, 679, 467, 3865, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 813, 3910, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 2629, 18, 5508, 411, 389, 409, 16, 315, 2871, 51, 30, 1915, 353, 1158, 813, 2002, 8863, 203, 3639, 327, 389, 409, 300, 1203, 18, 5508,...
./partial_match/42/0x432bCddE6237D9CF07411CfE05b46811Ad67c7f3/sources/AlohaStaking.sol
* @dev Generates a "random" number using the numbers of backgrounds that we have./
function _randomA(uint256 _limit) internal view returns (uint8) { uint256 _gasleft = gasleft(); bytes32 _blockhash = blockhash(block.number-1); bytes32 _structHash = keccak256( abi.encode( _blockhash, backgrounds, _gasleft, ...
9,062,993
[ 1, 6653, 279, 315, 9188, 6, 1300, 1450, 326, 5600, 434, 5412, 87, 716, 732, 1240, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 9188, 37, 12, 11890, 5034, 389, 3595, 13, 2713, 1476, 1135, 261, 11890, 28, 13, 288, 203, 3639, 2254, 5034, 389, 31604, 4482, 273, 16189, 4482, 5621, 203, 3639, 1731, 1578, 389, 2629, 2816, 273, 1203, 2816, 12, 262...
/** *Submitted for verification at Etherscan.io on 2022-01-14 */ // hevm: flattened sources of src/UniswapTwap.sol // SPDX-License-Identifier: MIT AND GPL-3.0-or-later AND CC-BY-4.0 pragma solidity 0.8.9; ////// node_modules/@openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.so...
returns a UQ112x112 which represents the ratio of the numerator to the denominator can be lossy
function fraction(uint numerator, uint denominator) internal pure returns (uq112x112 memory) { require(denominator > 0, "FixedPoint::fraction: division by zero"); if (numerator == 0) return FixedPoint.uq112x112(0); if (numerator <= type(uint144).max) { ...
2,395,559
[ 1, 6154, 279, 587, 53, 17666, 92, 17666, 1492, 8686, 326, 7169, 434, 326, 16730, 358, 326, 15030, 848, 506, 8324, 93, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8330, 12, 11890, 16730, 16, 2254, 15030, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 89, 85, 17666, 92, 17666, 3778, 13, 203, 565, 288, 203, 3639, 2583, 12, 13002, 26721, 405, 374, 16, 315, 7505, 2148, ...
./full_match/137/0xABBB4d0074C0361fBf7e07FD3d4d4e9cCCB9128f/sources/contracts/PrimexDNS/PrimexDNS.sol
* @inheritdoc IPrimexDNS/
function activateDEX(string memory _dex) external override onlyRole(MEDIUM_TIMELOCK_ADMIN) { _require(!dexes[_dex].isActive, Errors.DEX_IS_ALREADY_ACTIVATED.selector); dexes[_dex].isActive = true; emit DexActivated(dexes[_dex].routerAddress); }
4,668,687
[ 1, 36, 10093, 467, 2050, 381, 338, 11602, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10235, 6832, 12, 1080, 3778, 389, 561, 13, 3903, 3849, 1338, 2996, 12, 15971, 2799, 67, 4684, 6589, 67, 15468, 13, 288, 203, 3639, 389, 6528, 12, 5, 561, 281, 63, 67, 561, 8009, 291, 3896, 16, 9372, 18, 6832, 67, 51...
./partial_match/1/0xeD57331cffF9DB2a1E772d7d38956400dfaB04C7/sources/ZeroX.sol
Anti-bot and anti-whale mappings and variables exlcude 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 ZeroX is ERC20, Ownable { uint256 public maxBuyAmount; uint256 public maxSellAmount; uint256 public maxWalletAmount; IDexRouter public dexRouter; address public lpPair; bool private swapping; uint256 public swapTokensAtAmount; address operationsAddress; address devAddres...
4,081,815
[ 1, 14925, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 431, 17704, 1317, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 358, 4259, 6138, 3377, 506, 3221, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 12744, 60, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 203, 565, 2254, 5034, 1071, 943, 38, 9835, 6275, 31, 203, 565, 2254, 5034, 1071, 943, 55, 1165, 6275, 31, 203, 565, 2254, 5034, 1071, 943, 16936, 6275, 31, 203, ...
pragma solidity 0.5.17; pragma experimental ABIEncoderV2; interface IERC20 { function TOTALSUPPLY57() external view returns (uint256); //inject NONSTANDARD NAMING function BALANCEOF949(address account) external view returns (uint256); //inject ...
inject NONSTANDARD NAMING
function _TRANSFEROWNERSHIP409(address payable newOwner) internal {
12,740,419
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 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, 565, 445, 389, 16596, 6553, 29602, 20101, 24, 5908, 12, 2867, 8843, 429, 394, 5541, 13, 2713, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0x80e485FC993FfB0e72f00484f8A404a06B50C895/sources/CCNCrowdsale.sol
$0.25 = 1 token => $ 1,000 = 2.50287204567 ETH =>4,000 token = 2.50287204567 ETH => 1 ETH = 4,000/2.08881106 = 1915 List of admins
contract CCNCrowdsale is Ownable, Crowdsale, MintableToken { using SafeMath for uint256; uint256 public rate = 1915; mapping (address => uint256) public deposited; mapping(address => bool) public whitelist; mapping (address => bool) public contractAdmins; mapping (address => bool) approveAdm...
4,101,703
[ 1, 8, 20, 18, 2947, 273, 404, 1147, 516, 271, 404, 16, 3784, 273, 576, 18, 25, 3103, 28, 9060, 3028, 17339, 512, 2455, 516, 24, 16, 3784, 1147, 273, 576, 18, 25, 3103, 28, 9060, 3028, 17339, 512, 2455, 516, 404, 512, 2455, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 16351, 16525, 10346, 492, 2377, 5349, 353, 14223, 6914, 16, 385, 492, 2377, 5349, 16, 490, 474, 429, 1345, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 1071, 4993, 225, 273, 5342, 3600, 31, 2...
./full_match/3/0x05502f13420F8D3F0C3B2119559cF00a2e626a49/sources/browser/1_Storage.sol
struct for a single energy data tranaction public data for live monitoring private data with detailed information about the single use of technival units Leistungskenndaten eines poolData
struct Poolfahrt { mapping(uint => TechnischeEinheit) technischeEinheiten; }
8,115,413
[ 1, 1697, 364, 279, 2202, 12929, 501, 13637, 1128, 1071, 501, 364, 8429, 16309, 3238, 501, 598, 6864, 1779, 2973, 326, 2202, 999, 434, 17734, 5162, 4971, 3519, 376, 318, 564, 79, 25713, 3404, 275, 425, 1465, 2845, 751, 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, 0, 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, 8828, 507, 76, 3797, 288, 203, 203, 3639, 2874, 12, 11890, 516, 30960, 291, 18706, 41, 267, 580, 305, 13, 17734, 291, 18706, 41, 267, 580, 305, 275, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100,...
./partial_match/56/0x943c70EeE7A8576120e99b5f4201221E12A55bDa/sources/Strategy.sol
View function to see pending CREAMs on frontend. Part: OpenZeppelin/openzeppelin-contracts@3.1.0/SafeERC20* @title SafeERC20 @dev Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-...
library SafeERC20 { using SafeMath for uint256; using Address for address; function BONUS_MULTIPLIER ( ) external view returns ( uint256 ); function add ( uint256 _allocPoint, address _lpToken, bool _withUpdate ) external; function bonusEndBlock ( ) external view returns ( uint256 ); function...
11,264,864
[ 1, 1767, 445, 358, 2621, 4634, 9666, 2192, 87, 603, 15442, 18, 6393, 30, 3502, 62, 881, 84, 292, 267, 19, 3190, 94, 881, 84, 292, 267, 17, 16351, 87, 36, 23, 18, 21, 18, 20, 19, 9890, 654, 39, 3462, 225, 14060, 654, 39, 3462, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 445, 605, 673, 3378, 67, 24683, 2053, 654, 261, 225, 262, 3903, 1476, 1135, 261, 2254, 5034,...
pragma solidity ^0.5.12; import "./ERC1400Raw.sol"; import "openzeppelin-solidity/contracts/access/roles/MinterRole.sol"; /** * @title ERC1400RawIssuable * @dev ERC1400Raw issuance logic */ contract ERC1400RawIssuable is ERC1400Raw, MinterRole { /** * [NOT MANDATORY FOR ERC1400Raw STANDARD] * @dev Issue ...
* [NOT MANDATORY FOR ERC1400Raw STANDARD] @dev Issue the amout of tokens for the recipient 'to'. @param to Token recipient. @param value Number of tokens issued. @param data Information attached to the issuance, by the token holder. [CONTAINS THE CONDITIONAL OWNERSHIP CERTIFICATE] @return A boolean that indicates if th...
{ _issue("", msg.sender, to, value, data, ""); return true; }
1,829,818
[ 1, 63, 4400, 490, 4307, 3575, 61, 12108, 4232, 39, 3461, 713, 4809, 23255, 65, 225, 11820, 326, 2125, 659, 434, 2430, 364, 326, 8027, 296, 869, 10332, 225, 358, 3155, 8027, 18, 225, 460, 3588, 434, 2430, 16865, 18, 225, 501, 15353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 565, 389, 13882, 2932, 3113, 1234, 18, 15330, 16, 358, 16, 460, 16, 501, 16, 1408, 1769, 203, 203, 565, 327, 638, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0xcE36fC4e87Cf42DD24718e8b08DABedaa0761B30/sources/src/ContractooorAgreement.sol
@notice allows a party to begin to terminate an agreement at their own will @notice SPEC: A valid call to this function will mark a party's at will termination given: S1: the `msg.sender` is either the client or the service provider RES1: marks the `msg.sender`'s `atWillTerminationTimestamp` to the current tim...
function issueNoticeOfTermination(string memory terminationInfo) public { onlyClientOrServiceProvider(); atWillTerminationTimestamp[msg.sender] = block.timestamp; emit TerminationProposed(msg.sender, terminationInfo, TerminationReason.AtWill); }
1,950,298
[ 1, 5965, 87, 279, 18285, 358, 2376, 358, 10850, 392, 19602, 622, 3675, 4953, 903, 225, 22872, 30, 432, 923, 745, 358, 333, 445, 903, 2267, 279, 18285, 1807, 622, 903, 19650, 864, 30, 377, 348, 21, 30, 326, 1375, 3576, 18, 15330, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 5672, 20127, 951, 16516, 12, 1080, 3778, 19650, 966, 13, 1071, 288, 203, 3639, 1338, 1227, 1162, 16300, 5621, 203, 3639, 622, 13670, 16516, 4921, 63, 3576, 18, 15330, 65, 273, 1203, 18, 5508, 31, 203, 203, 3639, 3626, 6...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./interfaces/IArtBridge.sol"; import "./BridgeContext.sol"; /// /// /// ██████╗ ██████╗ ██╗██████╗ ██████╗ ███████╗ /// ██╔══██╗██╔══██╗██║██╔══██╗██╔════╝ ██╔════╝ /// ██████╔╝█████...
@dev projects may support multiple minters @notice adds a minter as available to mint a given project @param _id target bridge project id @param _minter minter address
function addMinter(uint256 _id, address _minter) external onlyOwner { projectToMinters[_id][_minter] = true; }
13,744,254
[ 1, 13582, 2026, 2865, 3229, 1131, 5432, 225, 4831, 279, 1131, 387, 487, 2319, 358, 312, 474, 279, 864, 1984, 225, 389, 350, 1018, 10105, 1984, 612, 225, 389, 1154, 387, 1131, 387, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 49, 2761, 12, 11890, 5034, 389, 350, 16, 1758, 389, 1154, 387, 13, 3903, 1338, 5541, 288, 203, 565, 1984, 774, 49, 2761, 87, 63, 67, 350, 6362, 67, 1154, 387, 65, 273, 638, 31, 203, 225, 289, 203, 203, 2, -10...
// File: @openzeppelin/contracts/math/Math.sol // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure r...
update reward whenever you want
if (block.timestamp > starttime) {
547,234
[ 1, 2725, 19890, 17334, 1846, 2545, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 2629, 18, 5508, 405, 23437, 13, 288, 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, -1...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; /** * @title Role based set membership. * * @notice Encapsulation of tracking, management and validati...
* @dev Override for a custom revert message./
function _revertMessageAlreadyHasGlobalRole(bytes32 role, address account) internal view virtual returns (string memory) { return string( abi.encodePacked( "RoleMembership: account ", StringsUpgradeable.t...
12,779,025
[ 1, 6618, 364, 279, 1679, 15226, 883, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 266, 1097, 1079, 9430, 5582, 5160, 2996, 12, 3890, 1578, 2478, 16, 1758, 2236, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 1135, 261, 1080, 3778, 13, 203, 565, 288, 203, 3639, 327, 203, 5411, ...
./full_match/44787/0xaE7D6EA88c7536bA6B12682A752e748c45c50DCB/sources/contracts/ReceiverRestricted.sol
List of eligible receivers, specified/modified by owner
abstract contract ReceiverRestricted is ERC20, Ownable { address[] public receivers; event Receiver(address indexed recv, string status); pragma solidity ^0.8.4; function addReceiver(address _recv) public onlyOwner { require(_recv != address(0), "Elonium: can't add zero address"); require...
13,248,952
[ 1, 682, 434, 21351, 22686, 16, 1269, 19, 7342, 635, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 31020, 18784, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 203, 565, 1758, 8526, 1071, 22686, 31, 203, 203, 565, 871, 31020, 12, 2867, 8808, 10665, 16, 533, 1267, 1769, 203, 203, 683, 9454, 18035, 560, 3602, 20, 1...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external retu...
If the contract is in/will be moved to a settled state, the margin requirement will be 0.
function _calcExcessMargin(TDS.Storage storage s) external view returns (int newExcessMargin) { (TDS.TokenState memory newTokenState, int newShortMarginBalance) = s._calcNewTokenStateAndBalance(); int requiredMargin = newTokenState.time >= s.endTime ? 0 : s._getRequiredMargin(newTokenState); ...
972,315
[ 1, 2047, 326, 6835, 353, 316, 19, 20194, 506, 10456, 358, 279, 26319, 1259, 919, 16, 326, 7333, 12405, 903, 506, 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, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 12448, 424, 614, 9524, 12, 56, 3948, 18, 3245, 2502, 272, 13, 3903, 1476, 1135, 261, 474, 394, 424, 614, 9524, 13, 288, 203, 3639, 261, 56, 3948, 18, 1345, 1119, 3778, 394, 1345, 1119, 16, 509, 394, 4897, 9524, ...
pragma solidity ^0.4.15; /** * @title TokenLib * @author Majoolr.io * * version 1.1.0 * Copyright (c) 2017 Majoolr, LLC * The MIT License (MIT) * https://github.com/Majoolr/ethereum-libraries/blob/master/LICENSE * * The Token Library provides functionality to create a variety of ERC20 tokens. * See https://g...
@dev Mints additional tokens, new tokens go to owner @param self Stored token from token contract @param _amount Number of tokens to mint @return True if completed
function mintToken(TokenStorage storage self, uint256 _amount) returns (bool) { require((self.owner == msg.sender) && self.stillMinting); uint256 _newAmount; bool err; (err, _newAmount) = self.totalSupply.plus(_amount); require(!err); self.totalSupply = _newAmount; self.balances[self.ow...
7,668,809
[ 1, 49, 28142, 3312, 2430, 16, 394, 2430, 1960, 358, 3410, 225, 365, 26548, 1147, 628, 1147, 6835, 225, 389, 8949, 3588, 434, 2430, 358, 312, 474, 327, 1053, 309, 5951, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 312, 474, 1345, 12, 1345, 3245, 2502, 365, 16, 2254, 5034, 389, 8949, 13, 1135, 261, 6430, 13, 288, 203, 565, 2583, 12443, 2890, 18, 8443, 422, 1234, 18, 15330, 13, 597, 365, 18, 334, 737, 49, 474, 310, 1769, 203, 5...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.1; import "./OffchainAggregator.sol"; import "./SimpleReadAccessController.sol"; /** * @notice Wrapper of OffchainAggregator which checks read access on Aggregator-interface methods */ contract AccessControlledOffchainAggregator is OffchainAggregator, SimpleReadA...
Don't reimburse a gas price higher than maximumGasPrice
return min(gasPrice, maximumGasPrice);
51,161
[ 1, 22293, 1404, 283, 381, 70, 295, 307, 279, 16189, 6205, 10478, 2353, 4207, 27998, 5147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 327, 1131, 12, 31604, 5147, 16, 4207, 27998, 5147, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/GSN/Context.sol"; /** * @dev Modified Ownable. Introduces `auditor` address that has the exclusive * right to transfer ownership of the contract. * * This module makes available the modifiers: `onlyAuditor`, `onlyOwnerAndAuditor`. * `onlyOwner` rep...
* @dev Modified Ownable. Introduces `auditor` address that has the exclusive right to transfer ownership of the contract. This module makes available the modifiers: `onlyAuditor`, `onlyOwnerAndAuditor`. `onlyOwner` replaced with `onlyOwnerAndAuditor` in function `transferOwnership`./
abstract contract Auditable is Context { address private _owner; address private _auditor; event AuditingTransferred(address indexed previousAuditor, address indexed newAuditor); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () internal { ...
12,997,292
[ 1, 4575, 14223, 6914, 18, 3094, 303, 2544, 764, 1375, 24901, 1811, 68, 1758, 716, 711, 326, 12060, 2145, 358, 7412, 23178, 434, 326, 6835, 18, 1220, 1605, 7297, 2319, 326, 10429, 30, 1375, 3700, 37, 1100, 1811, 9191, 1375, 3700, 5541,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12975, 429, 353, 1772, 288, 203, 565, 1758, 3238, 389, 8443, 31, 203, 565, 1758, 3238, 389, 24901, 1811, 31, 203, 203, 565, 871, 12975, 310, 1429, 4193, 12, 2867, 8808, 2416, 37, 1100, 1811, 16, 1758, 8808, 394, 37, ...
./full_match/3/0x31af1c1800E1a0a552d934F00AB82B2F0dB937Bc/sources/BCoin.sol
Create a uniswap pair for this new token set the rest of the contract variablesexclude owner and this contract from feeExclude dead address from reflection
constructor () { _rOwned[_msgSender()] = _rTotal; IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; _isExcludedFro...
8,248,348
[ 1, 1684, 279, 640, 291, 91, 438, 3082, 364, 333, 394, 1147, 444, 326, 3127, 434, 326, 6835, 3152, 10157, 3410, 471, 333, 6835, 628, 14036, 12689, 8363, 1758, 628, 5463, 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, 12316, 1832, 288, 203, 67, 86, 5460, 329, 63, 67, 3576, 12021, 1435, 65, 273, 389, 86, 5269, 31, 203, 203, 45, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, 58, ...
./full_match/1/0xE03b1F81D1c3b730272442a16eAc84226A989041/sources/contracts/AuctionHouse.sol
* @notice Create an auction. @dev Store the auction details in the `auction` state variable and emit an AuctionCreated event. If the mint reverts, the minter was updated without pausing this contract first. To remedy this, catch the revert and pause this contract./
function _createAuction() internal { try snoopDAONFT.mint(address(this)) returns (uint256 snoopDAONFTId) { uint256 startTime = block.timestamp; uint256 endTime = startTime + _getAuctionDuration(snoopDAONFTId); auction = Auction({ snoopDAONFTId: snoopDAONF...
3,059,905
[ 1, 1684, 392, 279, 4062, 18, 225, 4994, 326, 279, 4062, 3189, 316, 326, 1375, 69, 4062, 68, 919, 2190, 471, 3626, 392, 432, 4062, 6119, 871, 18, 971, 326, 312, 474, 15226, 87, 16, 326, 1131, 387, 1703, 3526, 2887, 6790, 9940, 333,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 565, 445, 389, 2640, 37, 4062, 1435, 2713, 288, 203, 3639, 775, 272, 2135, 556, 9793, 673, 4464, 18, 81, 474, 12, 2867, 12, 2211, 3719, 1135, 261, 11890, 5034, 272, 2135, 556, 9793, 673, 4464, 548, 13, 288, 203, 5411, 2254, 503...
/** *Submitted for verification at Etherscan.io on 2020-02-11 */ // File: @aragon/os/contracts/common/EtherTokenConstant.sol /* * SPDX-License-Identitifer: MIT */ pragma solidity ^0.4.24; // aragonOS and aragon-apps rely on address(0) to denote native ETH, in // contracts where both tokens and ETH are accept...
tokens - vestedTokens
return tokens.sub(vestedTokens);
451,257
[ 1, 7860, 300, 331, 3149, 5157, 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, 327, 2430, 18, 1717, 12, 90, 3149, 5157, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/80001/0x74051B8501C673f7e38ccc9B0cb9c8361f9f34f6/sources/@cryptoalgebra/core/contracts/libraries/FullMath.sol
@notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 @param a The multiplicand @param b The multiplier @param denominator The divisor @return result The 256-bit result @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv 512-b...
function mulDiv(uint256 a, uint256 b, uint256 denominator) internal pure returns (uint256 result) { unchecked { assembly { let mm := mulmod(a, b, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } if (prod1 == 0) { assembly { result := div(prod0, denominato...
8,797,548
[ 1, 10587, 6346, 12, 69, 132, 250, 70, 132, 120, 13002, 26721, 13, 598, 1983, 6039, 18, 22435, 309, 563, 9391, 87, 279, 2254, 5034, 578, 15030, 422, 374, 225, 279, 1021, 3309, 1780, 464, 225, 324, 1021, 15027, 225, 15030, 1021, 15013...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14064, 7244, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 16, 2254, 5034, 15030, 13, 2713, 16618, 1135, 261, 11890, 5034, 563, 13, 288, 203, 565, 22893, 288, 203, 1377, 19931, 288, 203, 3639, 2231, 9740, 519, 14064, 1711, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "./interface/CLV2V3Interface.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; /** * @title Flux first-party price feed oracle a...
@notice Update prices, callable by anyone, slower but less gas require min delay since lastUpdate Aggregate prices from oracles
function updatePricesUsingQuickSort() public whenNotPaused { require(block.timestamp > transmissions[latestAggregatorRoundId].timestamp + minDelay, "Delay required"); int192[] memory oraclesLatestAnswers = new int192[](oracles.length); for (uint256 i = 0; i < oracles.length; i++) { ...
2,515,267
[ 1, 1891, 19827, 16, 4140, 635, 1281, 476, 16, 27926, 1496, 5242, 16189, 2583, 1131, 4624, 3241, 1142, 1891, 18059, 19827, 628, 578, 69, 9558, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 31862, 7736, 13663, 4416, 1435, 1071, 1347, 1248, 28590, 288, 203, 3639, 2583, 12, 2629, 18, 5508, 405, 906, 7300, 63, 13550, 17711, 11066, 548, 8009, 5508, 397, 1131, 6763, 16, 315, 6763, 1931, 8863, 203, 203, 3639...
pragma solidity ^0.5.0; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // // ---------------------------------------------------------------------------- contract ERC20Interface { function totalSupply() public view returns (uint); function ba...
* Constrctor function Initializes contract with initial supply tokens to the creator of the contract/
constructor() public { name = "DOV"; symbol = "DOV"; decimals = 18; _totalSupply = 100000000000000000000000000000; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); }
11,947,096
[ 1, 442, 701, 30206, 445, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 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, 3885, 1435, 1071, 288, 203, 3639, 508, 273, 315, 3191, 58, 14432, 203, 3639, 3273, 273, 315, 3191, 58, 14432, 203, 3639, 15105, 273, 6549, 31, 203, 3639, 389, 4963, 3088, 1283, 273, 2130, 12648, 12648, 12648, 3784, 31, 203, ...
pragma solidity 0.5.4; import "@daostack/arc/contracts/controller/Avatar.sol"; import "@daostack/arc/contracts/controller/ControllerInterface.sol"; import "../../token/GoodDollar.sol"; import "./SchemeGuard.sol"; /* @title Scheme for proposing and adding a new minter. */ contract AddMinter is SchemeGuard { add...
@title Scheme for proposing and adding a new minter./
contract AddMinter is SchemeGuard { address public minter; constructor(Avatar _avatar, address _minter) public SchemeGuard(_avatar) { require(_minter != address(0), "Minter must not be null"); minter = _minter; } function addMinter() public onlyRegistered { ...
15,797,318
[ 1, 9321, 364, 450, 24014, 471, 6534, 279, 394, 1131, 387, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1436, 49, 2761, 353, 10714, 16709, 288, 203, 203, 565, 1758, 1071, 1131, 387, 31, 203, 203, 565, 3885, 12, 23999, 389, 19660, 16, 1758, 389, 1154, 387, 13, 7010, 3639, 1071, 203, 3639, 10714, 16709, 24899, 19660, 13, 7010, ...
./partial_match/8453/0xF407009ea759728E4349cca85292739347Df9196/sources/contracts/libraries/SmartRouterHelper.sol
@notice Returns the address of a valid ThroneExchange V3 Pool @param deployer The contract address of the ThroneExchange V3 deployer @param tokenA The contract address of either token0 or token1 @param tokenB The contract address of the other token @param fee The fee collected upon every swap in the pool, denominated ...
function verifyCallback( address deployer, address tokenA, address tokenB, uint24 fee ) public view returns (IThroneV3Pool pool) { return verifyCallback(deployer, getPoolKey(tokenA, tokenB, fee)); }
16,719,377
[ 1, 1356, 326, 1758, 434, 279, 923, 935, 86, 476, 11688, 776, 23, 8828, 225, 7286, 264, 1021, 6835, 1758, 434, 326, 935, 86, 476, 11688, 776, 23, 7286, 264, 225, 1147, 37, 1021, 6835, 1758, 434, 3344, 1147, 20, 578, 1147, 21, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3929, 2428, 12, 203, 3639, 1758, 7286, 264, 16, 203, 3639, 1758, 1147, 37, 16, 203, 3639, 1758, 1147, 38, 16, 203, 3639, 2254, 3247, 14036, 203, 565, 262, 1071, 1476, 1135, 261, 1285, 7256, 476, 58, 23, 2864, 2845, 13...
/** *Submitted for verification at Etherscan.io on 2021-10-26 */ // SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Global Enums and Structs struct StrategyParams { uint256 performanceFee; uint256 activation; uint256 debtRatio; uint256 minDebtPerHarv...
Units used in Maker contracts DAI token 100% Maximum loss on withdrawal from yVault Wrapped Ether - Used for swaps routing SushiSwap router Uniswap router Provider to read current block's base fee Token Adapter Module for collateral Maker Oracle Security Module Use Chainlink oracle to obtain latest want/ETH price DAI ...
contract Strategy is BaseStrategy { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; uint256 internal constant WAD = 10**18; uint256 internal constant RAY = 10**27; IERC20 internal constant investmentToken = IERC20(0x6B175474E89094C44Da98b954EedeAC4952...
508,371
[ 1, 7537, 1399, 316, 490, 6388, 20092, 463, 18194, 1147, 2130, 9, 18848, 8324, 603, 598, 9446, 287, 628, 677, 12003, 24506, 512, 1136, 300, 10286, 364, 1352, 6679, 7502, 348, 1218, 77, 12521, 4633, 1351, 291, 91, 438, 4633, 7561, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 19736, 353, 3360, 4525, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 2713, 5381,...
./full_match/1/0x21FfcbdbdD2C0f59d779Cf8f1FD0A87b5F84bc44/sources/SproutToken.sol
* @notice Overload OpenZepplin internal _transfer() function to add extra require statement preventing transferring tokens to the contract address @param _sender The senders address @param _recipient The recipients address @param _amount Amount of tokens to transfer (in wei units) @dev Moves tokens `amount` from `sende...
function _transfer(address _sender, address _recipient, uint256 _amount) internal override { require(_recipient != address(this), "SproutToken: transfer to token contract"); require(_recipient != mEcoFiTokenContract, "SproutToken: transfer to ECO token contract"); generateTokensFromStake(); ...
3,126,759
[ 1, 4851, 945, 3502, 62, 881, 412, 267, 2713, 389, 13866, 1435, 445, 358, 527, 2870, 2583, 3021, 5309, 310, 906, 74, 20245, 2430, 358, 326, 6835, 1758, 225, 389, 15330, 1021, 1366, 414, 1758, 225, 389, 20367, 1021, 12045, 1758, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 2867, 389, 15330, 16, 1758, 389, 20367, 16, 2254, 5034, 389, 8949, 13, 2713, 3849, 288, 203, 3639, 2583, 24899, 20367, 480, 1758, 12, 2211, 3631, 315, 55, 685, 322, 1345, 30, 7412, 358, 1147, 6835, 8863,...
./full_match/80001/0x2d3B52Ab8233f29c7F189B6AAbD4AF8de3036cC4/sources/contracts/mixins/MixinLockMetadata.sol
* @dev Gets the token symbol @return string representing the token name/
function symbol() external view returns (string memory) { if (bytes(lockSymbol).length == 0) { return unlockProtocol.globalTokenSymbol(); return lockSymbol; } }
9,435,293
[ 1, 3002, 326, 1147, 3273, 327, 533, 5123, 326, 1147, 508, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 3273, 1435, 3903, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 565, 309, 261, 3890, 12, 739, 5335, 2934, 2469, 422, 374, 13, 288, 203, 1377, 327, 7186, 5752, 18, 6347, 1345, 5335, 5621, 203, 1377, 327, 2176, 5335, 31, 2...
./full_match/4/0xC9434231534B8fab79d9226e1b443c372A966F65/sources/contracts/governance/Managed.sol
* @dev Return EpochManager interface. @return Epoch manager contract registered with Controller/
function epochManager() internal view returns (IEpochManager) { return IEpochManager(_resolveContract(keccak256("EpochManager"))); }
649,255
[ 1, 990, 512, 6127, 1318, 1560, 18, 327, 512, 6127, 3301, 6835, 4104, 598, 6629, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7632, 1318, 1435, 2713, 1476, 1135, 261, 8732, 6127, 1318, 13, 288, 203, 3639, 327, 10897, 6127, 1318, 24899, 10828, 8924, 12, 79, 24410, 581, 5034, 2932, 14638, 1318, 6, 3719, 1769, 203, 565, 289, 203, 203, 2, -100, -1...
./full_match/80001/0xCCBECCd69D6B3Fa78652d6C70a6C435F59621196/sources/KushoStaking.sol
Interfaces for ERC20 and ERC721 Constructor function to set the rewards token and the NFT collection addresses
contract KushoStaking is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; IERC20 public immutable rewardsToken; IERC721 public immutable nftCollection; pragma solidity ^0.8.4; constructor(IERC721 _nftCollection, IERC20 _rewardsToken) { nftCollection = _nftCollection; rewardsToken...
5,686,690
[ 1, 10273, 364, 4232, 39, 3462, 471, 4232, 39, 27, 5340, 11417, 445, 358, 444, 326, 283, 6397, 1147, 471, 326, 423, 4464, 1849, 6138, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 16351, 1475, 1218, 83, 510, 6159, 353, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 467, 654, 39, 3462, 1071, 11732, 283, 6397, 1345, 31, 203, ...
pragma solidity^0.4.23; import "./InvestableDAL.sol"; contract AffiliateDAL is InvestableDAL { //... } mapping(address => uint) affiliate; function getAffiliatePay() public { //... } uint amount = affiliate[msg.sender]; require(amount > 0); msg.senser.transfer(amount); affiliate[msg.sender] = 0; func...
* @dev Function to get affiliate payout/
function play(uint _hash, address _affiliate) } uint ticketValue = msg.value; } pragma solidity^0.4.23; import "./InvestableDAL.sol"; function getAffiliatePay() public { uint amount = affiliate[msg.sender]; require(amount > 0); msg.senser.transfer(amount); affiliate[msg.se...
1,757,265
[ 1, 2083, 358, 336, 7103, 330, 3840, 293, 2012, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 915, 6599, 12, 11890, 389, 2816, 16, 1758, 389, 7329, 330, 3840, 13, 225, 203, 97, 203, 203, 203, 11890, 9322, 620, 273, 1234, 18, 1132, 31, 203, 203, 97, 203, 203, 203, 203, 203, 683, 9454, 18035, 560, 66, 20, 18, 24, 18, ...
// RUN: --emit cfg contract c2 { int public cd; function sum(int32 a, int32 b) public pure returns (int32) { return a+b; } // BEGIN-CHECK: function::doSomething function doSomething() public returns (int, int) { cd=2; // CHECK: store storage slot(uint256 0) ty:int256 = return (1...
BEGIN-CHECK: c3::function::test14 CHECK: store storage slot(%temp.69) ty:int256 storage = int256 3
function test14() public returns (int) { int[] storage ptrArr = testArr; ptrArr.push(3); return ptrArr[0]; }
6,354,035
[ 1, 16061, 17, 10687, 30, 276, 23, 2866, 915, 2866, 3813, 3461, 14565, 30, 1707, 2502, 4694, 9275, 5814, 18, 8148, 13, 13806, 30, 474, 5034, 2502, 273, 509, 5034, 890, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 3461, 1435, 1071, 1135, 261, 474, 13, 288, 203, 3639, 509, 8526, 2502, 6571, 5715, 273, 1842, 5715, 31, 203, 540, 203, 3639, 6571, 5715, 18, 6206, 12, 23, 1769, 203, 203, 3639, 327, 6571, 5715, 63, 20, 15533, 20...
./partial_match/1/0x28eCa74CF9b3C3D654cf034908576bdD655c03a8/sources/MONSTER.sol
* @dev Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` mus...
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "SimpleERC20: decreased allowance below zero"); unchec...
2,821,301
[ 1, 3641, 6478, 23850, 3304, 326, 1699, 1359, 17578, 358, 1375, 87, 1302, 264, 68, 635, 326, 4894, 18, 1220, 353, 392, 10355, 358, 288, 12908, 537, 97, 716, 848, 506, 1399, 487, 279, 20310, 360, 367, 364, 9688, 11893, 316, 288, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 20467, 7009, 1359, 12, 2867, 17571, 264, 16, 2254, 5034, 10418, 329, 620, 13, 1071, 5024, 1135, 261, 6430, 13, 288, 203, 3639, 1758, 3410, 273, 389, 3576, 12021, 5621, 203, 3639, 2254, 5034, 783, 7009, 1359, 273, 1699, ...
./partial_match/4/0xbe0618E2Fb24160366AEdA7696FA0BBAcCe5151a/sources/ERC20.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _s...
8,549,948
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 3...
./full_match/122/0xC7B410C687d7C6740D75daE46948B4f7e474DD7a/sources/Users/wilsontay/Projects/AttributeNft/contracts/OrbsAsiaNftSale.sol
* Set the starting index block for the collection, essentially unblocking setting starting index/
function emergencySetStartingIndexBlock() public onlyOwner { require(startingIndex == 0, "Starting index is already set"); startingIndexBlock = block.number; }
16,367,022
[ 1, 694, 326, 5023, 770, 1203, 364, 326, 1849, 16, 18518, 11220, 640, 18926, 3637, 5023, 770, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 801, 24530, 694, 11715, 1016, 1768, 1435, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 18526, 1016, 422, 374, 16, 315, 11715, 770, 353, 1818, 444, 8863, 203, 203, 3639, 5023, 1016, 1768, 273, 1203, 18, 2696, 31, 203, 565...
./full_match/62320/0x6BC2ff220C1F18AfDd09aEb4966CB2D2c1b0902D/sources/lib/mento-core-2.2.0/contracts/oracles/BreakerBox.sol
* @notice Checks whether a breaker with the specifed address has been added./
function isBreaker(address breaker) public view returns (bool) { for (uint256 i = 0; i < breakers.length; i++) { if (breakers[i] == breaker) { return true; } } return false; }
3,225,587
[ 1, 4081, 2856, 279, 898, 264, 598, 326, 857, 430, 329, 1758, 711, 2118, 3096, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 353, 22660, 12, 2867, 898, 264, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 565, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 898, 414, 18, 2469, 31, 277, 27245, 288, 203, 1377, 309, 261, 8820, 414, 63, 77...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ /...
Total USD value in entire AMO, including FXS
allocations[16] = allocations[2] + allocations[8] + allocations[14];
1,834,641
[ 1, 5269, 587, 9903, 460, 316, 7278, 432, 5980, 16, 6508, 478, 60, 55, 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, 3639, 23804, 63, 2313, 65, 273, 23804, 63, 22, 65, 397, 23804, 63, 28, 65, 397, 23804, 63, 3461, 15533, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.6.0; import "./IHRC20.sol"; // Bow DAO Token Wallet // All data's decimal is 18. interface IBowTokenWallet is IHRC20 { function approveTokenToProxy(address tokenAddress, uint256 amt) external; }
Bow DAO Token Wallet All data's decimal is 18.
interface IBowTokenWallet is IHRC20 { function approveTokenToProxy(address tokenAddress, uint256 amt) external; }
14,097,781
[ 1, 38, 543, 463, 20463, 3155, 20126, 4826, 501, 1807, 6970, 353, 6549, 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, 5831, 23450, 543, 1345, 16936, 353, 467, 44, 11529, 3462, 288, 203, 565, 445, 6617, 537, 1345, 774, 3886, 12, 2867, 1147, 1887, 16, 2254, 5034, 25123, 13, 3903, 31, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.6; import "../l2/L2Lib.sol"; import "../utils/FurLib.sol"; import "../utils/FurProxy.sol"; import "../utils/MetaData.sol"; import "./ZoneDefinition.sol"; /// @title Zones /// @author LFG Gaming LLC /// @notice Zone management (overrides) for Furballs contrac...
@notice When a furball earns FUR via Timekeeper
function addFur(uint256 tokenId, uint32 fur) external gameAdmin { zoneRewards[tokenId].timestamp = uint64(block.timestamp); zoneRewards[tokenId].fur += fur; }
1,277,745
[ 1, 9434, 279, 284, 15850, 454, 425, 1303, 87, 478, 1099, 3970, 2647, 79, 9868, 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, 225, 445, 527, 42, 295, 12, 11890, 5034, 1147, 548, 16, 2254, 1578, 284, 295, 13, 3903, 7920, 4446, 288, 203, 565, 4157, 17631, 14727, 63, 2316, 548, 8009, 5508, 273, 2254, 1105, 12, 2629, 18, 5508, 1769, 203, 565, 4157, 17631, ...
pragma solidity ^0.4.24; import "https://github.com/itinance/openzeppelin-solidity/blob/master/contracts/token/ERC721/ERC721Full.sol"; import "https://github.com/utgarda/openzeppelin-solidity/blob/master/contracts/access/roles/MinterRole.sol"; import "https://github.com/dalemat/eth-token-recover/blob/master/contracts/...
max available number of gift
uint256 private _maxSupply;
1,065,355
[ 1, 1896, 2319, 1300, 434, 314, 2136, 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, 225, 2254, 5034, 3238, 389, 1896, 3088, 1283, 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, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../interfaces/INFTComplexGemPoolData.sol"; import "../interfaces/ISwapQueryHelper.sol"; import "../interfaces/INFTGemMultiToken.sol"; ...
make sure the convertible amount is less than max price
require(maturityTime >= self.minTime, "INSUFFICIENT_TIME");
15,863,456
[ 1, 6540, 3071, 326, 1765, 1523, 3844, 353, 5242, 2353, 943, 6205, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2583, 12, 7373, 2336, 950, 1545, 365, 18, 1154, 950, 16, 315, 706, 6639, 42, 1653, 7266, 2222, 67, 4684, 8863, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.24; library NameFilter { /** * @dev filters name strings * -converts uppercase to lower case. * -makes sure it does not start/end with a space * -makes sure it does not contain multiple spaces in a row * -cannot be only numbers * -cannot start with 0x * -rest...
call end tx function to fire end tx event.
endTxQR(_realSender,_pID, _team, _eth, _keys, _eventData_);
5,799,379
[ 1, 1991, 679, 2229, 445, 358, 4452, 679, 2229, 871, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 679, 4188, 29853, 24899, 7688, 12021, 16, 67, 84, 734, 16, 389, 10035, 16, 389, 546, 16, 389, 2452, 16, 389, 2575, 751, 67, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.25; contract Ayvazcoin { // Track how many tokens are owned by each address. mapping (address => uint256) public balanceOf; string public name = "Ayvazcoin"; string public symbol = "AYZ"; uint8 public decimals = 8; uint256 public totalSupply = 100000000 * (uint256(10) ** ...
Track how many tokens are owned by each address.
contract Ayvazcoin { mapping (address => uint256) public balanceOf; string public name = "Ayvazcoin"; string public symbol = "AYZ"; uint8 public decimals = 8; uint256 public totalSupply = 100000000 * (uint256(10) ** decimals); event Transfer(address indexed from, address indexed to, uint256 v...
4,802,515
[ 1, 4402, 3661, 4906, 2430, 854, 16199, 635, 1517, 1758, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 432, 93, 90, 1561, 12645, 288, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 1071, 11013, 951, 31, 203, 203, 565, 533, 1071, 508, 273, 315, 37, 93, 90, 1561, 12645, 14432, 203, 565, 533, 1071, 3273, 273, 315, 5255, 62,...
./full_match/80001/0x0dc003f5366f09878B03066d26d4B411A9c2A4E4/sources/https_/github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.0-beta.0/contracts/token/ERC721/IERC721Enumerable.sol
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension/
abstract contract IERC721Enumerable is IERC721 { function totalSupply() public view virtual returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256 tokenId); function tokenByIndex(uint256 index) public view virtual returns (uint256); }
5,578,883
[ 1, 654, 39, 17, 27, 5340, 3858, 17, 42, 20651, 1523, 3155, 8263, 16, 3129, 16836, 2710, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 467, 654, 39, 27, 5340, 3572, 25121, 353, 467, 654, 39, 27, 5340, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 1071, 1476, 5024, 1135, 261, 11890, 5034, 1769, 203, 565, 445, 1147, 951, 5541, 21268, 12, 2867, 3410, 16,...
pragma solidity ^0.4.15; /** * @title Doneth (Doneth) * @dev Doneth is a contract that allows shared access to funds * in the form of Ether and ERC20 tokens. It is especially relevant * to donation based projects. The admins of the contract determine * who is a member, and each member gets a number of sha...
* @title SafeMath @dev Math operations with safety checks that throw on error/
library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; } f...
2,560,832
[ 1, 9890, 10477, 225, 2361, 5295, 598, 24179, 4271, 716, 604, 603, 555, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 14060, 10477, 288, 203, 565, 445, 14064, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 5381, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 276, 273, 279, 380, 324, 31, 203, 3639, 1815, 12, 69, 422, 374, ...
pragma solidity ^0.4.24; library stringToBytes32 { function convert(string memory source) internal pure returns (bytes32 result) { bytes memory tempEmptyStringTest = bytes(source); if (tempEmptyStringTest.length == 0) { return 0x0; } assembly { result := mload(add(source, 32)) } ...
return contract address from Bancor registry by name
function getBancorContractAddresByName(string _name) public view returns (address result){ bytes32 name = stringToBytes32.convert(_name); result = bancorRegistry.addressOf(name); }
10,572,685
[ 1, 2463, 6835, 1758, 628, 605, 304, 3850, 4023, 635, 508, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2882, 304, 3850, 8924, 986, 455, 5911, 12, 1080, 389, 529, 13, 1071, 1476, 1135, 261, 2867, 563, 15329, 203, 377, 1731, 1578, 508, 273, 14134, 2160, 1578, 18, 6283, 24899, 529, 1769, 203, 377, 563, 273, 25732, 3850, 424...
pragma solidity ^0.4.19; import "../node_modules/zeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "../node_modules/zeppelin-solidity/contracts/math/SafeMath.sol"; import "./KYCBase.sol"; import "./ICOEngineInterface.sol"; contract SecondCrowdsale is ICOEngineInterface, KYCBase { using SafeMath for uint...
a valid purchase requires a minimum amount of Eth, valid beneficiaryAddr and cap not reached yet. Only while open/
function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal view onlyWhileOpen { require(_beneficiary != address(0)); require(_weiAmount >= XXXXXXXXXXXXXXXX); require(weiRaised.add(_weiAmount) <= cap); }
7,218,220
[ 1, 69, 923, 23701, 4991, 279, 5224, 3844, 434, 512, 451, 16, 923, 27641, 74, 14463, 814, 3178, 471, 3523, 486, 8675, 4671, 18, 5098, 1323, 1696, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1484, 4270, 23164, 12, 2867, 389, 70, 4009, 74, 14463, 814, 16, 2254, 5034, 389, 1814, 77, 6275, 13, 2713, 1476, 1338, 15151, 3678, 288, 203, 3639, 2583, 24899, 70, 4009, 74, 14463, 814, 480, 1758, 12, 20, 10019, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight...
* @notice Allow anyone to mint a token with the supply id if this pass is unrestricted. n token holders can use this function without using the n token holders allowance, this is useful when the allowance is fully utilized. @param recipient Recipient of the mint @param amount Amount of tokens to mint @p...
function mint( address recipient, uint8 amount, uint256 paid, bytes calldata data ) public virtual override; function mintTokenId( address, uint256[] calldata, uint256 ) public view override { require(derivativeParams.supportsTokenId, "Nil...
5,785,001
[ 1, 7009, 1281, 476, 358, 312, 474, 279, 1147, 598, 326, 14467, 612, 309, 333, 1342, 353, 640, 29306, 18, 540, 290, 1147, 366, 4665, 848, 999, 333, 445, 2887, 1450, 326, 290, 1147, 366, 4665, 1699, 1359, 16, 540, 333, 353, 5301, 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, 565, 445, 312, 474, 12, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 28, 3844, 16, 203, 3639, 2254, 5034, 30591, 16, 203, 3639, 1731, 745, 892, 501, 203, 565, 262, 1071, 5024, 3849, 31, 203, 203, 565, 445, 312, 474, 1345, 548, ...
pragma solidity ^0.4.26; // Simple Options is a binary option smart contract. Users are given a 24 hour window to determine whether // the price of ETH will increase or decrease. Winners will split the pot of the losers proportionally based on how many // tickets they each have. The first 12 hours of the window allows...
Cannot close a round unless the endTime is reached
require( cTime >= _round.endTime );
5,473,109
[ 1, 4515, 1746, 279, 3643, 3308, 326, 13859, 353, 8675, 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, 1377, 2583, 12, 276, 950, 1545, 389, 2260, 18, 409, 950, 11272, 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, -10...
pragma solidity ^0.5.0; import "./Ownable.sol"; import "./SafeMath.sol"; import "./SafeMath16.sol"; contract CertVerify is Ownable { using SafeMath for uint; using SafeMath16 for uint16; uint public maxAdmins; uint public adminIndex = 0; uint public studentIndex = 0; enum assignm...
Trigger EtherDonated
emit EtherDonated(address(this), msg.value);
964,336
[ 1, 6518, 512, 1136, 22293, 690, 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, 3626, 512, 1136, 22293, 690, 12, 2867, 12, 2211, 3631, 1234, 18, 1132, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
/* * * Docs: https://docs.synthetix.io/ * * * MIT License * =========== * * Copyright (c) 2020 Synthetix * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including with...
* @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use ...
contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() internal { _owner = _msgSender(); emit OwnershipTransferred(address(0), _owner); } function owner() publi...
97,522
[ 1, 8924, 1605, 1492, 8121, 279, 5337, 2006, 3325, 12860, 16, 1625, 1915, 353, 392, 2236, 261, 304, 3410, 13, 716, 848, 506, 17578, 12060, 2006, 358, 2923, 4186, 18, 1220, 1605, 353, 1399, 3059, 16334, 18, 2597, 903, 1221, 2319, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 14223, 6914, 353, 1772, 288, 203, 565, 1758, 3238, 389, 8443, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 203, 3639, 1758, 8808, 2416, 5541, 16, 203, 3639, 1758, 8808, 394, 5541, 203, 565, 11272, 203, 203, 2...
pragma solidity ^0.5.0; import "./libraries/SafeMath.sol"; import "./libraries/Utilities.sol"; import "./DisputesAndVoting.sol"; /** * @title Tellor Oracle System * @dev Oracle contract where miners can submit the proof of work along with the value. */ contract Tellor is DisputesAndVoting{ using SafeMath for ...
solidity should always round down
nums[2] = (_api.payout + payoutTotal) / payoutTotal;
12,743,385
[ 1, 30205, 560, 1410, 3712, 3643, 2588, 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, 7734, 21060, 63, 22, 65, 273, 261, 67, 2425, 18, 84, 2012, 397, 293, 2012, 5269, 13, 342, 293, 2012, 5269, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xCbAb999b25850c6530bcA365e5005702CB6Bf006/sources/Treasury/FarmBossV1.sol
we are calling a payable function, or the data is otherwise invalid (need 4 bytes for any fn call)
if (_data.length < 4){
3,127,628
[ 1, 1814, 854, 4440, 279, 8843, 429, 445, 16, 578, 326, 501, 353, 3541, 2057, 261, 14891, 1059, 1731, 364, 1281, 2295, 745, 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...
[ 1, 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, 202, 202, 430, 261, 67, 892, 18, 2469, 411, 1059, 15329, 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...
/** *Submitted for verification at Etherscan.io on 2021-05-01 */ // contracts/Sweeties.sol // SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTA...
There will be discount for sweeties with parent
function calculatePrice(uint256 parentIndex) public view returns (uint256) { require(HAS_SALE_STARTED == true, "Sale hasn't started"); require(totalSupply() < MAX_SWEETIES, "Sale has already ended"); uint priceMultiplier = 10; if(parentIndex != 0) priceMultiplier...
6,766,446
[ 1, 9828, 903, 506, 12137, 364, 1352, 73, 278, 606, 598, 982, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4604, 5147, 12, 11890, 5034, 982, 1016, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 27765, 67, 5233, 900, 67, 20943, 6404, 422, 638, 16, 315, 30746, 13342, 1404, 5746, 8863, 203, 3639, 2583, 12...
./partial_match/1/0xF8243ECF8f734452B184A1dF3AD3cD92fC93B58a/sources/project_/contracts/_external/openzeppelin/ERC20Upgradeable.sol
* @dev Sets the values for {name} and {symbol}. The default 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./
function __ERC20_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name_, symbol_); }
2,879,146
[ 1, 2785, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5496, 1021, 805, 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, 11732, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1001, 654, 39, 3462, 67, 2738, 12, 1080, 3778, 508, 67, 16, 533, 3778, 3273, 67, 13, 2713, 12562, 288, 203, 565, 1001, 1042, 67, 2738, 67, 4384, 8707, 5621, 203, 565, 1001, 654, 39, 3462, 67, 2738, 67, 4384, 8707, 1...
./full_match/122/0xCbc6Ce8C3bc4E5D7EB0fe7440B7b0f58C2884D3B/sources/contracts/LiquidStakingPool.sol
* @notice This handles the pool staking to validators @dev Process the normal delegation of funds and redistribution @param _amount the value amount to be staked/
function _validatorStakeRedistribution(uint256 _amount) internal { address currentValidator = _getCurrentValidator(); uint256 validatorDelegatedAmount = IConsensus(consensus()).stakeAmount( currentValidator ); uint256 availableAmount = IConsensus(consensus()).getMaxStake(...
16,366,569
[ 1, 2503, 7372, 326, 2845, 384, 6159, 358, 11632, 225, 4389, 326, 2212, 23595, 434, 284, 19156, 471, 5813, 4027, 225, 389, 8949, 326, 460, 3844, 358, 506, 384, 9477, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 7357, 510, 911, 14406, 4027, 12, 11890, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 1758, 783, 5126, 273, 389, 588, 3935, 5126, 5621, 203, 3639, 2254, 5034, 4213, 15608, 690, 6275, 273, 467, 9054, 9781, 12, 29220, 1...
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view ret...
staking before start time regards as staking at epoch 0.
function getCheckpointEpoch() view public returns(uint128) { uint256 currentEpoch = getCurrentEpoch(); return uint128(currentEpoch) + 1; }
9,894,578
[ 1, 334, 6159, 1865, 787, 813, 12283, 87, 487, 384, 6159, 622, 7632, 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, 0, 0, 0, 0, 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, 336, 14431, 14638, 1435, 1476, 1071, 1135, 12, 11890, 10392, 13, 288, 203, 3639, 2254, 5034, 783, 14638, 273, 5175, 14638, 5621, 203, 3639, 327, 2254, 10392, 12, 2972, 14638, 13, 397, 404, 31, 203, 203, 565, 289, 203, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC...
@notice inverse datastructure to registryMap @dev returns the label associated with a given token id
mapping(uint256 => string) public reverseRegistryMap;
1,796,507
[ 1, 22552, 5386, 13583, 358, 4023, 863, 225, 1135, 326, 1433, 3627, 598, 279, 864, 1147, 612, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 533, 13, 1071, 4219, 4243, 863, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** *Submitted for verification at Etherscan.io on 2021-03-25 */ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.5.5; /*Math operations with safety checks */ contract SafeMath { function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b...
Check if the sender has enough
require (balanceOf[msg.sender] >= _value) ;
14,968,924
[ 1, 1564, 309, 326, 5793, 711, 7304, 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, 2583, 261, 12296, 951, 63, 3576, 18, 15330, 65, 1545, 389, 1132, 13, 274, 5411, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.25; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { //using SafeMath for uint; using SafeMath for uint256; /********************************************************************************************/ /* ...
push insured passenger as insurance owner
insuredPassengers[flight].ownerAddresses.push(passenger);
12,989,622
[ 1, 6206, 316, 2055, 72, 1342, 14348, 487, 2763, 295, 1359, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 316, 2055, 72, 6433, 275, 6215, 63, 19131, 8009, 8443, 7148, 18, 6206, 12, 5466, 14348, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.26; import "./FlightSuretyBaseAppWithAccessControl.sol"; contract FlightSuretyFlightController is FlightSuretyBaseAppWithAccessControl { // constants // Flight status codes uint8 private constant STATUS_CODE_UNKNOWN = 0; uint8 private constant STATUS_CODE_ON_TIME = 10; uint8 p...
Called by oracle when a response is available to an outstanding request For the response to be accepted, there must be a pending request that is open and matches one of the three Indexes randomly assigned to the oracle at the time of registration (i.e. uninvited oracles are not welcome) Information isn't considered ve...
function submitOracleResponse( uint8 index, address airline, bytes32 flightKey, uint256 timestamp, uint8 statusCode, bytes32 oracleKey ) external { uint8[3] memory oracleIndexes = flightSuretyData.getOracleIndexes( msg.sender ); ...
7,228,948
[ 1, 8185, 635, 20865, 1347, 279, 766, 353, 2319, 358, 392, 20974, 590, 2457, 326, 766, 358, 506, 8494, 16, 1915, 1297, 506, 279, 4634, 590, 716, 353, 1696, 471, 1885, 1245, 434, 326, 8925, 3340, 281, 20153, 6958, 358, 326, 20865, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4879, 23601, 1064, 12, 203, 3639, 2254, 28, 770, 16, 203, 3639, 1758, 23350, 1369, 16, 203, 3639, 1731, 1578, 25187, 653, 16, 203, 3639, 2254, 5034, 2858, 16, 203, 3639, 2254, 28, 6593, 16, 203, 3639, 1731, 1578, 20865,...
pragma solidity ^0.4.24; /* * Creator: XERA */ /* * Abstract Token Smart Contract * */ /* * Safe Math Smart Contract. * https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ contract SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { ...
* Freeze specific account Only be called by smart contract owner./
function freezeAccount(address _target, bool freeze) { require (msg.sender == owner); require (msg.sender != _target); frozenAccount[_target] = freeze; emit FrozenFunds(_target, freeze); } event FrozenFunds(address target, bool frozen); event Burn(address target,uint256 _value); ...
2,177,858
[ 1, 9194, 8489, 2923, 2236, 5098, 506, 2566, 635, 13706, 6835, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 16684, 3032, 12, 2867, 389, 3299, 16, 1426, 16684, 13, 288, 203, 1377, 2583, 261, 3576, 18, 15330, 422, 3410, 1769, 203, 202, 225, 2583, 261, 3576, 18, 15330, 480, 389, 3299, 1769, 203, 1377, 12810, 3032, 63, 67, 3299, ...
./full_match/10/0x02bD0b89F7b198014425Df1a4152A2E77576c38D/sources/src/abstract/BaseTrigger.sol
@dev Call this method to update Set addresses after deploy.
function addSet(ISet _set) external { if (msg.sender != address(manager)) revert Unauthorized(); (bool _exists,,,) = manager.sets(_set); if (!_exists) revert Unauthorized(); uint256 setLength = sets.length; if (setLength >= MAX_SET_LENGTH) revert SetLimitReached(); for (uint256 i = 0; i < set...
3,778,146
[ 1, 1477, 333, 707, 358, 1089, 1000, 6138, 1839, 7286, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 694, 12, 45, 694, 389, 542, 13, 3903, 288, 203, 565, 309, 261, 3576, 18, 15330, 480, 1758, 12, 4181, 3719, 15226, 15799, 5621, 203, 565, 261, 6430, 389, 1808, 16408, 16, 13, 273, 3301, 18, 4424, 24899, 542, 1769,...
pragma solidity >0.4.99 <0.6.0; // SMART CONTRACT de pruebas, que permite realizar una compra y que este sea validado por un arbitro, // o bien por el propio comprador, hasta no ser aprobada el dinero no irá al Vendedor. // Si se deniega se devuelve el dinero al comprador */ contract CompraArbitrada { address pa...
Recibe from, transferirá al vendedor el dinero del contrato.
function pagarAlVendedor() public {
2,509,371
[ 1, 5650, 495, 73, 628, 16, 7412, 481, 132, 99, 524, 331, 3934, 280, 415, 302, 267, 2439, 1464, 16252, 31093, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4262, 297, 1067, 58, 3934, 280, 1435, 1071, 288, 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, -1...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; ...
* @dev See {IERC721-getApproved}./
function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), ERROR_QUERY_FOR_NONEXISTENT_TOKEN); return tokenApprovals[tokenId]; }
5,974,291
[ 1, 9704, 288, 45, 654, 39, 27, 5340, 17, 588, 31639, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31639, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 5024, 3849, 1135, 261, 2867, 13, 288, 203, 3639, 2583, 24899, 1808, 12, 2316, 548, 3631, 5475, 67, 10753, 67, 7473, 67, 3993, 11838, 2222, 67, 8412, 1769, 203, 363...
// File: contracts/noteUSDStorage.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; contract noteUSDStorage { /** WARNING: NEVER RE-ORDER VARIABLES! * Always double-check that new variables are added APPEND-ONLY. * Re-ordering variables can permanently BREAK the deployed proxy contract. ...
solium-disable-line
function updateCodeAddress(address newAddress) internal { require( bytes32( 0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7 ) == Proxiable(newAddress).proxiableUUID(), "Not compatible" ); assembly { sstore( ...
567,435
[ 1, 18281, 5077, 17, 8394, 17, 1369, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 1085, 1887, 12, 2867, 394, 1887, 13, 2713, 288, 203, 3639, 2583, 12, 203, 5411, 1731, 1578, 12, 203, 7734, 374, 6511, 25, 74, 2313, 74, 20, 74, 952, 21607, 507, 8875, 69, 8148, 24, 8285, 5718, 72, 10689, 3361, ...
//Address: 0xc5bfCb042f5bc5402D7F6980F17695bf8147Dfb0 //Contract name: PeralToken //Balance: 0 Ether //Verification Date: 1/8/2018 //Transacion Count: 7 // CODE STARTS HERE pragma solidity ^0.4.16; contract Owned { address public owner; function Owned() public { owner = msg.sender; } modif...
This generates a public event on the blockchain that will notify clients */ Initializes contract with initial supply tokens to the creator of the contract */
function PeralToken(uint remainAmount,string tokenName,string tokenSymbol) TokenERC20(remainAmount, tokenName, tokenSymbol) public { }
14,024,460
[ 1, 2503, 6026, 279, 1071, 871, 603, 326, 16766, 716, 903, 5066, 7712, 342, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5722, 287, 1345, 12, 11890, 7232, 6275, 16, 1080, 1147, 461, 16, 1080, 1147, 5335, 13, 3155, 654, 39, 3462, 12, 2764, 530, 6275, 16, 1147, 461, 16, 1147, 5335, 13, 1071, 288, 203, 540, 203, 565, 289, 203, 203, 2, -1...
./full_match/4/0x25642a458ef3D0F4403A037e93B02E63A0C9DcD7/sources/browser/pxt_v1.sol
SELL_PRICE provided is WITHOUT BIDDING_PRICE_RATIO_PERCENT INCLUDED, take that into account before transaction
function SetSell(uint block_id, uint32 eth_sell_price) public {
821,227
[ 1, 1090, 4503, 67, 7698, 1441, 2112, 353, 13601, 5069, 605, 23513, 1360, 67, 7698, 1441, 67, 54, 789, 4294, 67, 3194, 19666, 2120, 11686, 7660, 16, 4862, 716, 1368, 2236, 1865, 2492, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1000, 55, 1165, 12, 11890, 1203, 67, 350, 16, 2254, 1578, 13750, 67, 87, 1165, 67, 8694, 13, 1071, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// Copyright 2021 - See NOTICE file for copyright holders. // // 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 ap...
solhint-disable-line reason-string
require(msg.sender == adjudicator, "can only be called by the defined adjudicator");
13,026,792
[ 1, 18281, 11317, 17, 8394, 17, 1369, 3971, 17, 1080, 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, 3639, 2583, 12, 3576, 18, 15330, 422, 8307, 1100, 8844, 16, 315, 4169, 1338, 506, 2566, 635, 326, 2553, 8307, 1100, 8844, 8863, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/4/0xCb444455b6b51CD1aa99681E09C430Ef14CAB2d7/sources/Scrambles.sol
* @notice returns the attributes part of the json string. @param tokenId the token to generate traits for./
function getTraits(uint256 tokenId) public view returns (string memory) { if(!revealed){ } string[9] memory cols; uint256[6] memory colTotals; for(uint8 j = 1; j < 10; j++) { string memory col = getColour(j,getSeed(tokenId)); cols[j-...
773,346
[ 1, 6154, 326, 1677, 1087, 434, 326, 1163, 533, 18, 225, 1147, 548, 326, 1147, 358, 2103, 18370, 364, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 30370, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 1135, 261, 1080, 3778, 13, 203, 565, 288, 203, 3639, 309, 12, 5, 266, 537, 18931, 15329, 203, 3639, 289, 203, 203, 3639, 533, 63, 29, 65, 3778, 5347, 31, 203, ...
pragma solidity 0.6.7; import "./../openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "./../openzeppelin/contracts/access/Ownable.sol"; import "./../openzeppelin/contracts/math/SafeMath.sol"; /// @title Vesting Contract attached to Crowns (CWS) token. /// @author Medet Ahmetson /// @notice A simple contract t...
* @notice Check whether given {beneficiary} was granted by token or not./
function isLocked(address beneficiary) external view returns (bool) { return _grant[beneficiary].locked; }
1,842,308
[ 1, 1564, 2856, 864, 288, 70, 4009, 74, 14463, 814, 97, 1703, 17578, 635, 1147, 578, 486, 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, 31753, 12, 2867, 27641, 74, 14463, 814, 13, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 389, 16243, 63, 70, 4009, 74, 14463, 814, 8009, 15091, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -1...
./full_match/44787/0xAD63F69c2BaE2B6E1A83d2Ec4dd4de551a5C501F/sources/contracts/SnippooLogic.sol
optional alternative address for owner withdrawals.
address ownerAltPayout;
13,249,068
[ 1, 10444, 10355, 1758, 364, 3410, 598, 9446, 1031, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 3410, 10655, 52, 2012, 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, ...
import "solidity-BN256G2/BN256G2.sol"; pragma solidity ^0.4.19; pragma experimental ABIEncoderV2; /** * @title Coconut threshold issuance credentials library * @author Mustafa Al-Bassam (mus@musalbas.com) */ library Coconut { struct CoconutInstance { int q; // number of messages int t; // thres...
array of 4 integers representing a point on G2
uint256[4] g2;
12,628,841
[ 1, 1126, 434, 1059, 12321, 5123, 279, 1634, 603, 611, 22, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 63, 24, 65, 314, 22, 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, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.1; contract FunctionExample { address payable public owner; constructor() { owner = payable(msg.sender); } mapping(address => uint) public balanceReceived; function getContractBalance() public view returns(uint) { r...
makes sure value being sent is greater than zero
function receiveMoney() public payable { require (msg.value != 0, "You must send a value greater than zero!") ; assert(balanceReceived[msg.sender] + uint64(msg.value) >= balanceReceived[msg.sender]); balanceReceived[msg.sender] += msg.value; }
910,884
[ 1, 81, 3223, 3071, 460, 3832, 3271, 353, 6802, 2353, 3634, 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, 565, 445, 6798, 23091, 1435, 1071, 8843, 429, 288, 203, 3639, 2583, 261, 3576, 18, 1132, 480, 374, 16, 315, 6225, 1297, 1366, 279, 460, 6802, 2353, 3634, 4442, 13, 274, 203, 540, 203, 3639, 1815, 12, 12296, 8872, 63, 3576, 18, ...
./full_match/3/0x2403d774082A19Fd6820e0d1F1FfDda95882dE38/sources/contracts/4RAM.sol
10 trillion, or 1% of total supply
uint256 public _maxTxAmount = 1000000000000 * 10**9;
8,278,694
[ 1, 2163, 433, 737, 285, 16, 578, 404, 9, 434, 2078, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 1896, 4188, 6275, 273, 15088, 9449, 380, 1728, 636, 29, 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, -10...
pragma experimental ABIEncoderV2; pragma solidity 0.7.3; import "./interfaces/IProxy.sol"; import "./interfaces/IPV2SmartPool.sol"; import "./interfaces/IBPool.sol"; import "./interfaces/IBFactory.sol"; import "./interfaces/ISmartPoolStorageDoctor.sol"; import "./interfaces/IExperiPieStorageDoctor.sol"; import "@pie-d...
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
interface IBPool { function isBound(address token) external view returns (bool); function getBalance(address token) external view returns (uint256); function rebind( address token, uint256 balance, uint256 denorm ) external; function setSwapFee(uint256 swapFee) external; function setPublicSw...
14,728,672
[ 1, 6461, 25494, 759, 1220, 5402, 353, 4843, 17888, 30, 1846, 848, 5813, 887, 518, 471, 19, 280, 5612, 518, 3613, 326, 6548, 434, 326, 611, 50, 57, 9544, 7224, 16832, 487, 9487, 635, 326, 15217, 24199, 31289, 16, 3344, 1177, 890, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 23450, 2864, 288, 203, 225, 445, 353, 3499, 12, 2867, 1147, 13, 3903, 1476, 1135, 261, 6430, 1769, 203, 203, 225, 445, 2882, 6112, 12, 2867, 1147, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 225, 445, 283, 4376,...
./full_match/4/0x6b158de65B8338C065F6b8e0f26DC83484B51972/sources/contracts/tokens/ERC1155BridgeToken.sol
* @title ERC1155BridgeToken @dev template token contract for bridged ERC1155 tokens./ Optional mapping for token URIs Base URI
contract ERC1155BridgeToken is BaseRelayRecipient, ERC1155, IBurnableMintableERC1155Token { string public name; string public symbol; mapping(uint256 => string) private tokenURIs; string private baseURI; address public bridgeContract; bool private hasAlreadyMinted; constructor( s...
12,305,741
[ 1, 654, 39, 2499, 2539, 13691, 1345, 225, 1542, 1147, 6835, 364, 324, 1691, 2423, 4232, 39, 2499, 2539, 2430, 18, 19, 4055, 2874, 364, 1147, 24565, 3360, 3699, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 2499, 2539, 13691, 1345, 353, 3360, 27186, 18241, 16, 4232, 39, 2499, 2539, 16, 23450, 321, 429, 49, 474, 429, 654, 39, 2499, 2539, 1345, 288, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 2...
pragma solidity ^0.6.4; import "./Item.sol"; import "./Ownable.sol"; //We want to initially deploy the ItemManager contract contract ItemManager is Ownable { //enum of the state the item is in enum SupplyChainState{Created, Paid, Delivered} //Creating the item structure struct S_Item { // f...
We want to initially deploy the ItemManager contractenum of the state the item is inCreating the item structure
contract ItemManager is Ownable { enum SupplyChainState{Created, Paid, Delivered} struct S_Item { Item _item; string _identifier; uint _itemPrice; ItemManager.SupplyChainState _state; } uint itemIndex; event SupplyChainStep(uint _itemIndex, uint _step, address _...
974,246
[ 1, 3218, 2545, 358, 22458, 7286, 326, 4342, 1318, 6835, 7924, 434, 326, 919, 326, 761, 353, 316, 11092, 326, 761, 3695, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4342, 1318, 353, 14223, 6914, 288, 203, 203, 203, 565, 2792, 3425, 1283, 3893, 1119, 95, 6119, 16, 453, 20736, 16, 6603, 1667, 329, 97, 203, 565, 1958, 348, 67, 1180, 288, 203, 3639, 4342, 389, 1726, 31, 203, 203, 3639, ...
./full_match/4/0xA42e1Fa47208874B8620890C293E89F49Cd5843E/sources/contracts/BSTICKS.sol
@notice Claim Breadsticks for a given NFOG ID @param tokenId The tokenId of the NFOG NFT Further Checks, Effects, and Interactions are contained within the _claim() function
function claimById(uint256 tokenId) external { require(_msgSender() == nfogAirdropWallet, "Can only be initiated by NFOG wallet"); require(bsticksPerNFOG <= balanceOf(nfogAirdropWallet), "NFOG Airdrop Wallet doesn't have enough $BSTICK for this claim"); require(tokenId >= 0 && tokenId <= 879...
697,567
[ 1, 9762, 605, 896, 334, 20642, 364, 279, 864, 423, 3313, 43, 1599, 225, 1147, 548, 1021, 1147, 548, 434, 326, 423, 3313, 43, 423, 4464, 478, 8753, 13074, 16, 30755, 87, 16, 471, 5294, 4905, 854, 7542, 3470, 326, 389, 14784, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 5132, 12, 11890, 5034, 1147, 548, 13, 3903, 288, 203, 3639, 2583, 24899, 3576, 12021, 1435, 422, 290, 617, 75, 37, 6909, 1764, 16936, 16, 315, 2568, 1338, 506, 27183, 635, 423, 3313, 43, 9230, 8863, 203, 3639, 258...
pragma solidity 0.5.15; pragma experimental ABIEncoderV2; import {PredicateRegistry} from 'ROOT/matic/PredicateRegistry.sol'; import {BytesLib} from 'ROOT/matic/libraries/BytesLib.sol'; import {RLPEncode} from 'ROOT/matic/libraries/RLPEncode.sol'; import {RLPReader} from 'ROOT/matic/libraries/RLPReader.sol'; import {I...
* @notice Proof receipt and index of the log (ShareTokenBalanceChanged) in the receipt to claim balance from Matic @param data RLP encoded data of the reference tx (proof-of-funds) that encodes the following fields headerNumber Header block number of which the reference tx was a part of blockProof Proof that the block ...
function parseData(bytes calldata data) external view returns ( address account, address market, uint256 outcome, uint256 balance, uint256 age ) { RLPReader.RLPItem[] memory referenceTxData = data.toRlpItem().toL...
12,725,885
[ 1, 20439, 16030, 471, 770, 434, 326, 613, 261, 9535, 1345, 13937, 5033, 13, 316, 326, 16030, 358, 7516, 11013, 628, 490, 2126, 225, 501, 534, 14461, 3749, 501, 434, 326, 2114, 2229, 261, 24207, 17, 792, 17, 74, 19156, 13, 716, 16834...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 751, 12, 3890, 745, 892, 501, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 1758, 2236, 16, 203, 5411, 1758, 13667, 16, 203, 5411, 2254, 5034, 12884, 16, 203, 5411, 2254, 5034, 11013, 16, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.6; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol"; contract Turtis is ERC721, ChainlinkClient { address public contractOwner; // Owner of this contract // Bytes32 data related to IPFS Hash r...
API url for the second call
string private apiSecondUrl;
12,617,613
[ 1, 2557, 880, 364, 326, 2205, 745, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 533, 3238, 1536, 8211, 1489, 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, ...
./partial_match/3/0xBB9dAB0ecb218ad758453E3e4d7c06BDF72754DC/sources/Users/erinshaben/Work/box-project/contracts/ArrayContract.sol
assignment to a storage array performs a copy of ``newPairs`` and replaces the complete array ``m_pairsOfFlags``.
function setAllFlagPairs(string[2][] memory newPairs) public { m_pairsOfStrings = newPairs; }
5,272,667
[ 1, 12960, 358, 279, 2502, 526, 11199, 279, 1610, 434, 12176, 2704, 10409, 10335, 471, 12878, 326, 3912, 526, 12176, 81, 67, 11545, 951, 5094, 68, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30213, 4678, 10409, 12, 1080, 63, 22, 6362, 65, 3778, 394, 10409, 13, 1071, 288, 203, 3639, 312, 67, 11545, 951, 7957, 273, 394, 10409, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "sol-temple/src/tokens/ERC721.sol"; import "sol-temple/src/utils/Auth.sol"; import "sol-temple/src/utils/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; /** * @titl...
* @title Pausable @notice Freeze your contract with a secure paused mechanism./
abstract contract Pausable { event Paused(address indexed by); event Unpaused(address indexed by); bool private _paused; pragma solidity >=0.8.0 <0.9.0; modifier onlyWhenPaused() { require(_paused, "Pausable: contract not paused"); _; } modifier onlyWhenUnpaused() { require(!_paused, "Pausa...
5,470,704
[ 1, 16507, 16665, 225, 15217, 8489, 3433, 6835, 598, 279, 8177, 17781, 12860, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 21800, 16665, 288, 203, 203, 225, 871, 21800, 3668, 12, 2867, 8808, 635, 1769, 203, 203, 225, 871, 1351, 8774, 3668, 12, 2867, 8808, 635, 1769, 203, 203, 225, 1426, 3238, 389, 8774, 3668, 31, 203, 203, 683, 9454, 180...
pragma solidity ^0.5.2; pragma experimental ABIEncoderV2; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/cryptography/ECDSA.sol"; /** * @title Perun Ledger Payment Channels * @author Sebastian Stammler, Marius van der Wijden * @notice Single-deployment ledger pa...
* @notice generates a deterministic channel id for a channel between _A and _B, using seed _idSeed. Channels are saved to the channels map at this id, having the effect that a channel id can never belong to a different pair of channel parties./
function genId(address _A, address _B, uint _idSeed) public pure returns (uint) { return uint256(keccak256(abi.encodePacked(_A, _B, _idSeed))); }
6,412,496
[ 1, 3441, 815, 279, 25112, 1904, 612, 364, 279, 1904, 3086, 389, 37, 471, 282, 389, 38, 16, 1450, 5009, 389, 350, 12702, 18, 282, 25263, 854, 5198, 358, 326, 5750, 852, 622, 333, 612, 16, 7999, 326, 5426, 282, 716, 279, 1904, 612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3157, 548, 12, 2867, 389, 37, 16, 1758, 389, 38, 16, 2254, 389, 350, 12702, 13, 1071, 16618, 1135, 261, 11890, 13, 288, 203, 3639, 327, 2254, 5034, 12, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 24899, 37, ...
./full_match/1/0x52A043bcebdB2f939BaEF2E8b6F01652290eAB3f/sources/contracts/Depository.sol
Calculate the number of pending bonds
uint256 numBonds = bondCounter;
3,040,662
[ 1, 8695, 326, 1300, 434, 4634, 15692, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 818, 26090, 273, 8427, 4789, 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, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2; /* * ZaigarFinance */ import '@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol'; import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol'; import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol'; import '@pancakeswa...
Update the given pool's ZFAI allocation point. Can only be called by the owner.
function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner { require(_depositFeeBP <= 10000, "set: invalid deposit fee basis points"); if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid...
13,010,926
[ 1, 1891, 326, 864, 2845, 1807, 2285, 2046, 45, 13481, 1634, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 9853, 2148, 16, 2254, 2313, 389, 323, 1724, 14667, 30573, 16, 1426, 389, 1918, 1891, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 24899, 323, 1724, 14667, 30573, 1648, ...
/** *Submitted for verification at Etherscan.io on 2021-12-21 */ // Sources flattened with hardhat v2.6.2 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signa...
long vesting end date
uint256 public immutable vestLong;
8,030,312
[ 1, 5748, 331, 10100, 679, 1509, 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, 225, 2254, 5034, 1071, 11732, 331, 395, 3708, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-04-28 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Part: IBalancerPool interface IBalancerPool { function getFinalTokens() external view returns (address[] memory); function getNormalizedWeight(address...
@dev Internal call to borrow tokens from the bank on behalf of the current executor. @param token The token to borrow from the bank. @param amount The amount to borrow. @notice Do not use `amount` input argument to handle the received amount.
function doBorrow(address token, uint amount) internal { if (amount > 0) { bank.borrow(token, amount); } }
2,414,075
[ 1, 3061, 745, 358, 29759, 2430, 628, 326, 11218, 603, 12433, 6186, 434, 326, 783, 6601, 18, 225, 1147, 1021, 1147, 358, 29759, 628, 326, 11218, 18, 225, 3844, 1021, 3844, 358, 29759, 18, 225, 2256, 486, 999, 1375, 8949, 68, 810, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 741, 38, 15318, 12, 2867, 1147, 16, 2254, 3844, 13, 2713, 288, 203, 565, 309, 261, 8949, 405, 374, 13, 288, 203, 1377, 11218, 18, 70, 15318, 12, 2316, 16, 3844, 1769, 203, 565, 289, 203, 225, 289, 203, 203, 2, -100,...
./partial_match/3/0x640E550F1Ed4b25f7902a79eA211D56b9223d0EE/sources/fMain.sol
Withdraw LP tokens from TLTMain.
function withdraw(uint256 _aid, uint256 _pid, uint256 _amount) payable public { PoolInfo storage pool = poolInfo[_aid][_pid]; UserInfo storage user = userInfo[_aid][_pid][msg.sender]; require((pool.bLock == false) || (pool.bLock && (block.number >= (startBlock.add(lockPeriods)))), "withdraw:...
5,084,758
[ 1, 1190, 9446, 511, 52, 2430, 628, 399, 12050, 6376, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 5034, 389, 20736, 16, 2254, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 8843, 429, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 20736, 6362, 67, 6610, 15533, 203, 3639, ...