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
./partial_match/56/0x33388c658fa959E11eFa30E68d3f07E4E192DC96/sources/Tinenanmen_Square.sol
* @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing the total supply. Requirements - `msg.sender` must be the token owner/
function mint() public returns (bool) { _mint(msg.sender, getMiningReward()); return true; }
11,065,203
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10210, 1375, 8949, 68, 2430, 471, 22698, 2182, 358, 1375, 3576, 18, 15330, 9191, 21006, 326, 2078, 14467, 18, 29076, 300, 1375, 3576, 18, 15330, 68, 1297, 506, 326, 1147, 3410, 19, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 312, 474, 1435, 1071, 1135, 261, 6430, 13, 288, 203, 565, 389, 81, 474, 12, 3576, 18, 15330, 16, 9555, 310, 17631, 1060, 10663, 203, 565, 327, 638, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x8914B3Af6c10A6f377C89A868f4CA992519AdA7E/sources/elio/vesting.sol
* @title TokenVesting @dev A token holder contract that can release its token balance gradually like a typical vesting scheme, with a cliff and vesting period. Optionally revocable by the owner./ The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is therefore sensitiv...
contract TokenVesting is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; event TokensReleased(address token, uint256 amount); event TokenVestingRevoked(address token); address private _beneficiary; uint256 private _cliff; uint256 private _start; uint256 private _dur...
4,939,237
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 3155, 58, 10100, 632, 5206, 432, 1147, 10438, 6835, 716, 848, 3992, 2097, 1147, 11013, 3087, 2544, 1230, 3007, 279, 24917, 331, 10100, 4355, 16, 598, 279, 927, 3048, 471, 331, 10100, 3879, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3155, 58, 10100, 353, 14223, 6914, 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, 871, 13899, 26363, 12, 2867, 1147, 16, 2254,...
./partial_match/42/0x4B6F0A6f4EF25C465449B9A35B587b994EceDC04/sources/Depot.sol
* @notice Calculate how many SNX you will receive if you transfer an amount of synths. @param amount The amount of synths (in 18 decimal places) you want to ask about/ And what would that be worth in SNX based on the current price?
function synthetixReceivedForSynths(uint amount) public view returns (uint) { return amount.divideDecimal(exchangeRates().rateForCurrency(SNX)); }
3,462,276
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9029, 3661, 4906, 14204, 60, 1846, 903, 6798, 309, 1846, 7412, 540, 392, 3844, 434, 6194, 451, 87, 18, 632, 891, 3844, 1021, 3844, 434, 6194, 451, 87, 261, 267, 6549, 6970, 12576, 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, 6194, 451, 278, 697, 8872, 1290, 10503, 451, 87, 12, 11890, 3844, 13, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 3844, 18, 2892, 831, 5749, 12, 16641, 20836, 7675, 5141, 1290, 7623, 12, 13653, 60, 10019, 203...
pragma solidity 0.5.6; /** * @title Interfaz de fábrica de contratos metamórficos * @notice Una interfaz para el contrato de fábrica que contiene una referencia al * código de inicialización que será utilizado por el contrato transitorio para implementar * el contrato metamórfico. */ interface FactoryInterface {...
* @dev En el constructor, recupere el código de inicialización para la nueva versión del contrato metamórfico, úsela para implementar el contrato metamórfico mientras reenvía cualquier valor, y destruye el contrato transitorio./ recupera la dirección de implementación de destino del creador de este contrato. configura ...
constructor() public payable { bytes memory initCode = FactoryInterface(msg.sender).getInitializationCode(); address payable metamorphicContractAddress; assembly { ) } /* solhint-enable no-inline-assembly */ }
1,075,230
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1374, 415, 3885, 16, 1950, 416, 822, 415, 276, 132, 116, 5606, 83, 443, 316, 22354, 452, 1077, 77, 132, 116, 82, 12602, 7125, 290, 344, 15304, 14690, 77, 132, 116, 82, 1464, 16252, 3109...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3885, 1435, 1071, 8843, 429, 288, 203, 565, 1731, 3778, 1208, 1085, 273, 7822, 1358, 12, 3576, 18, 15330, 2934, 588, 17701, 1085, 5621, 203, 203, 565, 1758, 8843, 429, 5100, 301, 18435, 8924, 1887, 31, 203, 203, 565, 19931, ...
pragma solidity 0.4.24; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "./Stack.sol"; import "./Period.sol"; /** * A periodic contract. Enables any contract to change state on a periodic basis **/ contract PeriodicStages is Ownable ...
Set of stages inside a Period
contract PeriodicStages is Ownable { using SafeMath for uint256; Period public period; Stack public stack; constructor(uint256 _T) public { stack = new Stack(_T); period = new Period (_T); } function setPeriodLength(uint256 _T) public { require(msg.sender == owner())...
7,315,990
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 434, 20298, 4832, 279, 12698, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12698, 335, 31359, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 12698, 1071, 3879, 31, 203, 565, 7283, 1071, 2110, 31, 203, 203, 203, 203, 565, 3885, 12, 11890, 5034, 389, 56, 13...
pragma solidity ^0.4.24; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- contract SafeMath { function safeAdd(uint a, uint b) public pure returns (uint c) { c = a + b; requi...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract DFGL is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { symbol = "DFGL"; n...
10,057,617
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 463, 42, 11261, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4963, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/co...
returns the unclaimed rewards for a token id
function currentRewardsOf(uint16 _tokenId) public view returns (uint256) { require(stakes[_tokenId].tokenId != 0, "the token id is not staked"); uint256 stakedSeconds = block.timestamp - stakes[_tokenId].time; uint256 epochsStaked = stakedSeconds / epochTime; uint256 reward = epochsS...
14,352,849
[ 1, 4625, 348, 7953, 560, 30, 225, 1135, 326, 6301, 80, 4581, 329, 283, 6397, 364, 279, 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, ...
[ 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, 783, 17631, 14727, 951, 12, 11890, 2313, 389, 2316, 548, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 334, 3223, 63, 67, 2316, 548, 8009, 2316, 548, 480, 374, 16, 315, 5787, 1147, 612, 353, 48...
./full_match/137/0x97aaEC48EbA0861609B960F4D89BBe010985CB11/sources/samples/v8/SecAccountFactory.sol
* create an account, and return its address. returns the address even if the account is already deployed. Note that during UserOperation execution, this method is called only if the account is not deployed. This method returns an existing account address so that entryPoint.getSenderAddress() would work even after accou...
function createAccount(address owner, uint256 salt) public returns (SecAccount ret) { address addr = getAddress(owner, salt); uint256 codeSize = addr.code.length; if (codeSize > 0) { return SecAccount(payable(addr)); } ret = SecAccount( ...
4,714,762
[ 1, 4625, 348, 7953, 560, 30, 380, 752, 392, 2236, 16, 471, 327, 2097, 1758, 18, 1135, 326, 1758, 5456, 309, 326, 2236, 353, 1818, 19357, 18, 3609, 716, 4982, 2177, 2988, 4588, 16, 333, 707, 353, 2566, 1338, 309, 326, 2236, 353, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 752, 3032, 12, 2867, 3410, 16, 2254, 5034, 4286, 13, 203, 3639, 1071, 203, 3639, 1135, 261, 2194, 3032, 325, 13, 203, 565, 288, 203, 3639, 1758, 3091, 273, 14808, 12, 8443, 16, 4286, 1769, 203, 3639, 2254, 5034, 981, ...
/** *Submitted for verification at Etherscan.io on 2021-11-03 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * @dev ERC-721 non-fungible token standard. * See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md. */ interface ERC721 { /** * @dev Emits when ownership of any NFT change...
* @dev Helper function that gets NFT count of owner. This is needed for overriding in enumerable extension to remove double storage(gas optimization) of owner nft count. @param _owner Address for whom to query the count. @return Number of _owner NFTs./
function _getOwnerNFTCount(address _owner) internal view override(NFToken, NFTokenEnumerable) returns (uint256) { return NFTokenEnumerable._getOwnerNFTCount(_owner); }
10,392,930
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9705, 445, 716, 5571, 423, 4464, 1056, 434, 3410, 18, 1220, 353, 3577, 364, 19488, 316, 14873, 2710, 358, 1206, 1645, 2502, 12, 31604, 14850, 13, 434, 3410, 290, 1222, 1056, 18, 632, 891,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 588, 5541, 50, 4464, 1380, 12, 2867, 389, 8443, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 3849, 12, 26473, 1345, 16, 423, 42, 1345, 3572, 25121, 13, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 20...
./full_match/4/0xf09105719d11281154143fCddD1b5AF032Af5cd5/sources/contracts/DivinityX/DivinityX.sol
check if token URI exists
mapping(string => bool) public tokenURIExists;
686,328
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 309, 1147, 3699, 1704, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 12, 1080, 516, 1426, 13, 1071, 1147, 3098, 4002, 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, -10...
./full_match/1/0xdE1e5706Ab562e48601c99A442e9F1793784aE22/sources/Context.sol
* @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut...
abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
17,133,955
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 28805, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 203, 203, 203, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, 203, 203, 565, 445, 389, 3576, 751, 1435, 2713, ...
./full_match/5/0x49A45933E21274b96090306B74D54CFBfae23CA6/sources/contracts/router/CashmereAggregatorUniswap.sol
TODO: check for dirty bits mstore(payloadPtr, mload(data)) uint256 srcChainId data := add(data, 32) payloadPtr := add(payloadPtr, 32) mstore(payloadPtr, shr(96, mload(data))) address srcAggregatorAddress data := add(data, 20) payloadPtr := add(payload...
function continueSwap(ContinueSwapParams memory params) external onlyRole(CONTINUE_EXECUTOR_ROLE) { require(!continuedSwaps[params.srcChainId][params.id], "already continued"); IAssetRouter.SwapMessage memory swapMsg = bridge.getReceivedSwaps(params.srcChainId, params.id); PayloadData memory...
7,033,484
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 30, 866, 364, 9603, 4125, 5411, 312, 2233, 12, 7648, 5263, 16, 312, 945, 12, 892, 3719, 225, 2254, 5034, 1705, 3893, 548, 5411, 501, 519, 527, 12, 892, 16, 3847, 13, 5411, 2385, 5263, 519, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1324, 12521, 12, 12378, 12521, 1370, 3778, 859, 13, 3903, 1338, 2996, 12, 6067, 26725, 67, 15271, 1693, 916, 67, 16256, 13, 288, 203, 3639, 2583, 12, 5, 1213, 267, 5957, 6050, 6679, 63, 2010, 18, 4816, 3893, 548, 6362, ...
./full_match/1/0xD0454428ecd868A9AC615125FCbDB5Da9027436e/sources/contracts/SplitFeeFarm.sol
calculate fraction in base ten Check: less than the max? Check: OK to send?
function takeFees(uint256 entitledFeesInDollars, uint256 averagePoolBalanceInDollars) external onlyOwner { uint256 theFraction = (ONE_IN_TEN_DECIMALS*entitledFeesInDollars)/averagePoolBalanceInDollars; if(theFraction > MAXIMUM_DAO_WITHDRAWAL_IN_TEN_DECIMALS) { revert DAOFeeSplitTooMuch()...
9,620,490
[ 1, 4625, 348, 7953, 560, 30, 225, 4604, 8330, 316, 1026, 19572, 2073, 30, 5242, 2353, 326, 943, 35, 2073, 30, 7791, 358, 1366, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 4862, 2954, 281, 12, 11890, 5034, 3281, 305, 1259, 2954, 281, 382, 40, 22382, 5913, 16, 2254, 5034, 8164, 2864, 13937, 382, 40, 22382, 5913, 13, 3903, 1338, 5541, 288, 203, 3639, 2254, 5034, 326, 13724, 273, 261, 5998, ...
// Sources flattened with hardhat v2.4.1 https://hardhat.org // File contracts/interfaces/IQUAI_Vault.sol // SPDX-License-Identifier: MIT pragma solidity >=0.5.0; pragma experimental ABIEncoderV2; interface IQUAI_Vault { function token() external view returns(address); function min() external view returns(uin...
@dev Unroll from all strategy positions, and transfer non-core tokens to controller rewards Withdraw all want from Chef === Transfer extra token: Sushi === Withdraw all sushi from SushiBar Send all Sushi to controller rewards Note: All want is automatically withdrawn outside this "inner hook" in base strategy function
function _withdrawAll() internal override { (uint256 staked, ) = ISushiChef(chef).userInfo(pid, address(this)); ISushiChef(chef).withdraw(pid, staked); uint256 _xsushi = IERC20Upgradeable(xsushi).balanceOf(address(this)); IxSushi(xsushi).leave(_xsushi); uint256 _sushi = IE...
1,625,112
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1351, 2693, 628, 777, 6252, 6865, 16, 471, 7412, 1661, 17, 3644, 2430, 358, 2596, 283, 6397, 3423, 9446, 777, 2545, 628, 31296, 757, 12279, 2870, 1147, 30, 348, 1218, 77, 757, 3423, 9446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1918, 9446, 1595, 1435, 2713, 3849, 288, 203, 3639, 261, 11890, 5034, 384, 9477, 16, 262, 273, 4437, 1218, 77, 39, 580, 74, 12, 343, 10241, 2934, 1355, 966, 12, 6610, 16, 1758, 12, 2211, 10019, 203, 203, 3639, 44...
./full_match/10200/0xCc9CacDC48B596E151F5F3314B9d516fb788255c/sources/contracts/test-purposes/AppealableArbitrator.sol
* @dev Gets the cost of appeal for the specified dispute. @param _disputeID The ID of the dispute. @param _extraData Additional info about the appeal. @return The cost of the appeal./
function appealCost(uint _disputeID, bytes memory _extraData) public view returns(uint cost) { if (appealDisputes[_disputeID].arbitrator != IArbitrator(address(0))) cost = appealDisputes[_disputeID].arbitrator.appealCost(appealDisputes[_disputeID].appealDisputeID, _extraData); else if (d...
3,785,305
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11881, 326, 6991, 434, 7226, 287, 364, 326, 1269, 1015, 2507, 18, 225, 632, 891, 389, 2251, 2507, 734, 1021, 1599, 434, 326, 1015, 2507, 18, 225, 632, 891, 389, 7763, 751, 15119, 1123, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 565, 445, 7226, 287, 8018, 12, 11890, 389, 2251, 2507, 734, 16, 1731, 3778, 389, 7763, 751, 13, 1071, 1476, 1135, 12, 11890, 6991, 13, 288, 203, 3639, 309, 261, 438, 347, 287, 1669, 458, 281, 63, 67, 2251, 2507, 734, 8009, 297,...
pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; /** * @title EternalStorage * @dev An ownable contract that can be used as a storage where the variables * are stored in a set of mappings indexed by hash names. * Contract importing following the guidelines in the zeppelino...
* @dev Allows the owner to set a value for a address variable. @param h The keccak256 hash of the variable name @param v The value to be stored/
function setAddress(bytes32 h, address v) external onlyOwner { s._address[h] = v; }
12,731,444
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25619, 326, 3410, 358, 444, 279, 460, 364, 279, 1758, 2190, 18, 632, 891, 366, 1021, 417, 24410, 581, 5034, 1651, 434, 326, 2190, 508, 632, 891, 331, 1021, 460, 358, 506, 4041, 19, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 1887, 12, 3890, 1578, 366, 16, 1758, 331, 13, 3903, 1338, 5541, 288, 203, 3639, 272, 6315, 2867, 63, 76, 65, 273, 331, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2022-01-30 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.4; library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements...
* @notice Transfers tokens held by timelock to beneficiary./ solhint-disable-next-line not-rely-on-time
function release() public virtual { require(block.timestamp >= releaseTime(), "TokenTimelock: current time is before release time"); uint256 amount = IERC20(token()).balanceOf(address(this)); require(amount > 0, "TokenTimelock: no tokens to release"); IERC20(token()).transfer(benef...
6,588,006
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2604, 18881, 2430, 15770, 635, 1658, 292, 975, 358, 27641, 74, 14463, 814, 18, 19, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 486, 17, 266, 715, 17, 265, 17, 957, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3992, 1435, 1071, 5024, 288, 203, 3639, 2583, 12, 2629, 18, 5508, 1545, 3992, 950, 9334, 315, 1345, 10178, 292, 975, 30, 783, 813, 353, 1865, 3992, 813, 8863, 203, 203, 3639, 2254, 5034, 3844, 273, 467, 654, 39, 3462, ...
// File: contracts/PollenParams.sol // This file is generated for the "mainnet" network // by the 'generate-PollenAddresses_sol.js' script. // Do not edit it directly - updates will be lost. // SPDX-License-Identifier: MIT pragma solidity >=0.6 <0.7.0; /// @dev Network-dependant params (i.e. addresses, block numbers...
Jan-01-2021 00:00:00 +UTC
uint32 internal constant mintStartBlock = 11565019;
302,540
[ 1, 4625, 348, 7953, 560, 30, 225, 23214, 17, 1611, 17, 18212, 21, 9631, 30, 713, 30, 713, 397, 11471, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1578, 2713, 5381, 312, 474, 1685, 1768, 273, 22821, 26, 9172, 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, -100, -100...
./full_match/1/0x11a022822aDCC66111F9b2DAf5B2E892f90d95b4/sources/contracts/PlatformMaster.sol
@inheritdoc IPlatformMaster
function setAcceptableAssets(address[] memory _assets, bool _accept) external onlyOwner override { uint256 length = _assets.length; require (length > 0, "invalid asset array"); for (uint256 i = 0; i < length; i ++) { _addAllowAssets(_assets[i], _accept); } }
4,884,408
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 467, 8201, 7786, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 5933, 429, 10726, 12, 2867, 8526, 3778, 389, 9971, 16, 1426, 389, 9436, 13, 3903, 1338, 5541, 3849, 288, 203, 3639, 2254, 5034, 769, 273, 389, 9971, 18, 2469, 31, 203, 3639, 2583, 261, 2469, 405, 374, 16, 315, 53...
./partial_match/1/0x49341d165942A4DcdD71689f2fe5179E0D09Bc4e/sources/PEPE.sol
Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract PEPE is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0x000000000000000000000000000000000000dEaD); bool private swapping; address public market...
3,698,074
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 4352, 749, 1635, 22467, 1098, 1635, 1203, 1300, 434, 10191, 1284, 7459, 4433, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16628, 1423, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 7010, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, 203...
./full_match/1/0x963f176BaA5F5Ef40EbE8C6c575B78dC23494Fe8/sources/contracts/SuperverseNFT.sol
* @notice This is an internal function which should be called from user-implemented external burn function. Its purpose is to show and properly initialize data structures when using this implementation. Also, note that this burn implementation allows the minter to re-mint a burned NFT. @dev Burns a NFT. @param _tokenId...
function _burn( uint256 _tokenId ) internal override virtual { super._burn(_tokenId); uint256 tokenIndex = idToIndex[_tokenId]; uint256 lastTokenIndex = tokens.length - 1; uint256 lastToken = tokens[lastTokenIndex]; tokens[tokenIndex] = lastToken; tokens.pop(); idToI...
16,566,319
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1220, 353, 392, 2713, 445, 1492, 1410, 506, 2566, 628, 729, 17, 21099, 3903, 18305, 445, 18, 29517, 13115, 353, 358, 2405, 471, 8214, 4046, 501, 12597, 1347, 1450, 333, 4471, 18, 8080, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 70, 321, 12, 203, 565, 2254, 5034, 389, 2316, 548, 203, 225, 262, 203, 565, 2713, 203, 565, 3849, 203, 565, 5024, 203, 225, 288, 203, 565, 2240, 6315, 70, 321, 24899, 2316, 548, 1769, 203, 203, 565, 2254, 5034, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "../interfaces/IERC721Consumable.sol"; /// @title Version 1 adapter for metaverse integrations /// @author Daniel K Ivanov /// @n...
@title Version 1 adapter for metaverse integrations @author Daniel K Ivanov @notice Adapter for metaverses that lack the necessary consumer role required to be integrated into LandWorks For reference see https://eips.ethereum.org/EIPS/eip-4400
contract ConsumableAdapterV1 is IERC165, IERC721Consumable { address public immutable landworks; IERC721 public immutable token; mapping(uint256 => address) private consumers; pragma solidity 0.8.10; constructor(address _landworks, address _token) { landworks = _landworks; token = IERC...
12,541,083
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 4049, 404, 4516, 364, 2191, 2476, 11301, 1012, 632, 4161, 463, 28662, 292, 1475, 467, 90, 304, 1527, 632, 20392, 14238, 364, 9170, 414, 281, 716, 30679, 326, 4573, 4765, 2478, 1931, 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, 22210, 429, 4216, 58, 21, 353, 467, 654, 39, 28275, 16, 467, 654, 39, 27, 5340, 11911, 429, 288, 203, 565, 1758, 1071, 11732, 19193, 18597, 31, 203, 565, 467, 654, 39, 27, 5340, 1071, 11732, 1147, 31, 203, 203, 565, 2874...
pragma solidity ^0.4.24; // File: contracts\CloneFactory.sol /** * @title CloneFactory * @dev This contracts helps clone an oracle. * The address of the targeted contract to clone has to be provided. */ contract CloneFactory { /** * @dev Creates oracle clone * @param target is the address being cloned ...
* @dev Retreive value from oracle based on timestamp @param _timestamp to retreive data/value from @return value for timestamp submitted/
function retrieveData(uint _timestamp) public returns (uint) { ProofOfWorkToken _master = ProofOfWorkToken(master); require(isData(_timestamp) && _master.callTransfer(msg.sender,readFee)); payoutPool[_timestamp] = payoutPool[_timestamp] + readFee; emit DataRetrieved(msg.sender,values...
938,695
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17100, 266, 688, 460, 628, 20865, 2511, 603, 2858, 632, 891, 389, 5508, 358, 325, 266, 688, 501, 19, 1132, 628, 632, 2463, 460, 364, 2858, 9638, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 4614, 751, 12, 11890, 389, 5508, 13, 1071, 1135, 261, 11890, 13, 288, 203, 3639, 1186, 792, 19107, 1345, 389, 7525, 273, 1186, 792, 19107, 1345, 12, 7525, 1769, 203, 3639, 2583, 12, 291, 751, 24899, 5508, 13, 597, 389, ...
//solium-disable linebreak-style pragma solidity ^0.4.24; library ExtendedMath { function limitLessThan(uint a, uint b) internal pure returns(uint c) { if (a > b) return b; return a; } } library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function m...
* @dev Allow us to update a masternode to team member status @param _member address/
function updateMasternodeAsTeamMember(address _member) internal returns (bool) { userByAddress[_member].isTeamMember = true; return (true); }
6,632,817
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7852, 584, 358, 1089, 279, 4171, 2159, 358, 5927, 3140, 1267, 632, 891, 389, 5990, 1758, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 7786, 2159, 1463, 8689, 4419, 12, 2867, 389, 5990, 13, 2713, 1135, 261, 6430, 13, 288, 203, 3639, 729, 858, 1887, 63, 67, 5990, 8009, 291, 8689, 4419, 273, 638, 31, 203, 3639, 327, 261, 3767, 1769, 203, 565, 289...
./partial_match/1/0x00000000000006c7676171937C444f6BDe3D6282/sources/contracts/helpers/PointerLibraries.sol
@dev Reads the uint160 at `mPtr` in memory.
function readUint160( MemoryPointer mPtr ) internal pure returns (uint160 value) { assembly { value := mload(mPtr) } }
4,300,646
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 29185, 326, 2254, 16874, 622, 1375, 81, 5263, 68, 316, 3778, 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, ...
[ 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, 855, 5487, 16874, 12, 203, 3639, 9251, 4926, 312, 5263, 203, 565, 262, 2713, 16618, 1135, 261, 11890, 16874, 460, 13, 288, 203, 3639, 19931, 288, 203, 5411, 460, 519, 312, 945, 12, 81, 5263, 13, 203, 3639, 289, 203, 5...
./partial_match/3/0x2870e460BAc9bbEaFE497A1ABaE5A8C98198638B/sources/FINMINITY.sol
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ----------------------------------------------------------------------------
contract FINMINITY is IERC20 { using SafeMath for uint256; address ecosys = 0x933E3bBBF54Af383AA33b09a9E116F7b4cED87b9; address foundation = 0x2eBED784888016995b341bdaEaa3d2B4Da646e7c; address presale = 0x5DaBbAd3059F61e0CB9b10D66c6d5E88f6fEE71C; address uniswap = 0x11d8a4BCd466308A15cCC11459A117268...
5,291,102
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 17563, 6236, 4107, 353, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1758, 6557, 538, 1900, 273, 374, 92, 29, 3707, 41, 23, 70, 9676, 42, 6564, 12664, 7414, 23, 5284, 3707, 70, 59...
./partial_match/56/0xBbf6eD080Bc313E3f8F0E15eEF90894A13CaA181/sources/RMB.sol
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract RMB is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { symbol = "RMB"; nam...
11,312,948
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 534, 7969, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4963, 3088, ...
/*************************************************************************************************** * * * (c) 2019 Quantstamp, Inc. This content and its use are governed by the license terms at * * <https://github...
For generating bugIDs starting from 1
uint256 private bugCounter;
14,059,313
[ 1, 4625, 348, 7953, 560, 30, 225, 2457, 12516, 7934, 5103, 5023, 628, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 3238, 7934, 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, -100, -100, ...
/** * The TestRockPaperScissors contract */ pragma solidity ^0.4.23; import "../contracts/RPSExposed.sol"; import "truffle/Assert.sol"; contract TestRockPaperScissors { RPSExposed testContract; function beforeEach() public { testContract = new RPSExposed(); } function testCompare () public ret...
Rock: Paper:Scissors
function testCompare () public returns(bool r) { uint hand1 = uint(testContract.rock()); uint hand2 = uint(testContract.rock()); uint res = testContract.compareExposed(hand1,hand2); Assert.equal(res, 0, "should equal input"); hand2 = uint(testContract.paper()); res = testContr...
12,815,191
[ 1, 4625, 348, 7953, 560, 30, 225, 534, 975, 30, 20971, 30, 1541, 1054, 1383, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 8583, 1832, 1071, 1135, 12, 6430, 436, 13, 288, 203, 377, 202, 203, 377, 202, 11890, 948, 21, 273, 2254, 12, 3813, 8924, 18, 26926, 10663, 203, 377, 202, 11890, 948, 22, 273, 2254, 12, 3813, 8924, 18, 26926, 106...
//Address: 0xbac2dc4fe58f1f3382f036b1cb8d92591e0c135f //Contract name: MiningToken //Balance: 8 wei //Verification Date: 3/2/2018 //Transacion Count: 19 // CODE STARTS HERE pragma solidity ^0.4.16; // The following is the Ethereum Mining Manager Contract, Version Two. // It assumes that each graphics card draws 80...
How many are in stock to be bought (set to zero to disable the buying of cards)
uint256 public supplyReady;
5,521,386
[ 1, 4625, 348, 7953, 560, 30, 225, 9017, 4906, 854, 316, 12480, 358, 506, 800, 9540, 261, 542, 358, 3634, 358, 4056, 326, 30143, 310, 434, 18122, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 14467, 8367, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.5.0; import { UserIdentity } from './UserIdentity.sol'; import '../event/EmitsEvent.sol'; /** * @title UserProfileManager * @dev This contract provides us a way to store users profile * and update them based on the permissions declared. * 1. dApp Owner (who is also an admin) can create and upda...
* @dev Create shop owner profile/ set profile emit success event
function addShopOwnerProfile(address user, string memory firstName, string memory lastName) private isAdmin stopInEmergency { profile[user] = Profile(user, true, firstName, lastName, UserType.ShopOwner); emitActionSuccess("Shop owner profile created succesfully"); }
2,499,277
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1788, 12122, 3410, 3042, 19, 444, 3042, 3626, 2216, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 527, 7189, 5541, 4029, 12, 2867, 729, 16, 533, 3778, 22033, 16, 203, 18701, 533, 3778, 23439, 13, 3238, 23467, 2132, 382, 1514, 24530, 203, 225, 288, 203, 565, 3042, 63, 1355, 65, 273, 11357, 12, 1355, 16, 638, 16, 22...
./full_match/80001/0xA35D448c8E8Df620204C39e0E2F55cdd0F100E49/sources/contracts/Contract.sol
emit throwTotalAmount(totalAmount);
return ords;
872,280
[ 1, 4625, 348, 7953, 560, 30, 225, 3626, 604, 5269, 6275, 12, 4963, 6275, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4642, 87, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.24; import "./SafeMath.sol"; import "./Ownable.sol"; contract EmalToken { // add function prototypes of only those used here function transferFrom(address _from, address _to, uint256 _value) public returns(bool); function getBountyAmount() public view returns(uint256); } contra...
* @dev Removes an investor's address from whitelist @param investorAddr The address to user to be added to the whitelist, signifies that the user completed KYC requirements./
function removeFromWhitelist(address investorAddr) public onlyOwner returns(bool success) { require(investorAddr!= address(0)); whitelist[investorAddr] = false; return true; }
7,279,346
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 20284, 392, 2198, 395, 280, 1807, 1758, 628, 10734, 632, 891, 2198, 395, 280, 3178, 1021, 1758, 358, 729, 358, 506, 3096, 358, 326, 10734, 16, 1573, 5032, 716, 326, 729, 5951, 1475, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 22386, 18927, 12, 2867, 2198, 395, 280, 3178, 13, 1071, 1338, 5541, 1135, 12, 6430, 2216, 13, 288, 203, 3639, 2583, 12, 5768, 395, 280, 3178, 5, 33, 1758, 12, 20, 10019, 203, 3639, 10734, 63, 5768, 395, 280, 3178, 65,...
pragma solidity ^0.5.6; import "./ownership/Ownable.sol"; import "./math/SafeMath.sol"; import "./interface/IGusuelV2.sol"; import "./token/KIP37/KIP37Burnable.sol"; import "./token/KIP17/IKIP17.sol"; contract GuseulKongChick is Ownable, IGuseulV2 { using SafeMath for uint256; KIP37Burnable public...
round => user => uint256, bool
mapping(uint256 => mapping(address => bool)) private _betBool;
14,041,932
[ 1, 4625, 348, 7953, 560, 30, 3643, 516, 729, 516, 2254, 5034, 16, 1426, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 2874, 12, 2867, 516, 1426, 3719, 3238, 389, 70, 278, 7464, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.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...
Increment the number of shares for a member
function addShare(address who, uint256 amount) public onlyAdmin() onlyExisting(who) { totalShares = totalShares.add(amount); members[who].shares = members[who].shares.add(amount); AddShare(who, amount, members[who].shares); }
2,560,820
[ 1, 4625, 348, 7953, 560, 30, 225, 17883, 326, 1300, 434, 24123, 364, 279, 3140, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 9535, 12, 2867, 10354, 16, 2254, 5034, 3844, 13, 1071, 1338, 4446, 1435, 1338, 9895, 12, 3350, 83, 13, 288, 203, 3639, 2078, 24051, 273, 2078, 24051, 18, 1289, 12, 8949, 1769, 203, 3639, 4833, 63, 3350, 83, 8009, ...
./partial_match/80001/0x062292e464fc5A7dC1D00CC5dd214bC0efB65a1C/sources/Users/famousbirthdays/Sites/mb-contracts/contracts/MetaBoards.sol
check if we passed go harvest the NFT farmsdon't pay them twicemultiply by the level or the max level for this board
if(player.spotId >= gameStats.totalSpaces){ contracts.nftStaking.gameHarvest(_player); if(lvl < gameSettings.maxLevel){ lvl = lvl + 1; contracts.gameCoordinator.setLevel(_player,lvl); } player.spotId = player.spotId - gameStats.totalSpaces; ...
8,804,587
[ 1, 4625, 348, 7953, 560, 30, 866, 309, 732, 2275, 1960, 17895, 26923, 326, 423, 4464, 10247, 959, 19752, 1404, 8843, 2182, 13605, 7027, 1283, 635, 326, 1801, 578, 326, 943, 1801, 364, 333, 11094, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 12, 14872, 18, 19032, 548, 1545, 7920, 4195, 18, 4963, 12077, 15329, 203, 203, 1850, 20092, 18, 82, 1222, 510, 6159, 18, 13957, 44, 297, 26923, 24899, 14872, 1769, 203, 203, 1850, 309, 12, 25748, 411, 7920, 2628, 18, 1...
./full_match/4/0x3b85837Ed9C20ee81265D3180486405309c3943D/sources/contracts/CryptoPoly.sol
Mapping of requestId
mapping (address => bytes32) players;
691,694
[ 1, 4625, 348, 7953, 560, 30, 225, 9408, 434, 14459, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 2867, 516, 1731, 1578, 13, 18115, 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, -...
/********************************** /* Author: Nick Mudge, <nick@perfectabstractions.com>, https://medium.com/@mudgen. /**********************************/ pragma solidity ^0.7.5; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@open...
0xed81cdda == rootOwnerOfChild(address,uint256) clear approval remove and transfer token
function _transferFrom( address _from, address _to, uint256 _tokenId ) private { require(_from != address(0)); require(tokenIdToTokenOwner[_tokenId].tokenOwner == _from); require( tokenIdToTokenOwner[_tokenId].parentTokenId == 0, "Cannot tr...
1,767,793
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 92, 329, 11861, 71, 449, 69, 422, 1365, 5541, 951, 1763, 12, 2867, 16, 11890, 5034, 13, 2424, 23556, 1206, 471, 7412, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 1265, 12, 203, 3639, 1758, 389, 2080, 16, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 2316, 548, 203, 565, 262, 3238, 288, 203, 3639, 2583, 24899, 2080, 480, 1758, 12, 20, 10019, 203, 3639, ...
pragma solidity ^0.4.4; import './ERC20Basic.sol'; import '../SafeMath.sol'; /* * Basic token * Basic version of StandardToken, with no allowances */ contract BasicToken is ERC20Basic, SafeMath { mapping(address => uint) balances; function transfer(address _to, uint _value) { balances[msg.sender] = saf...
Basic token Basic version of StandardToken, with no allowances/
contract BasicToken is ERC20Basic, SafeMath { mapping(address => uint) balances; function transfer(address _to, uint _value) { balances[msg.sender] = safeSub(balances[msg.sender], _value); balances[_to] = safeAdd(balances[_to], _value); Transfer(msg.sender, _to, _value); } function balanceOf(addr...
1,828,140
[ 1, 4625, 348, 7953, 560, 30, 225, 7651, 1147, 7651, 1177, 434, 8263, 1345, 16, 598, 1158, 1699, 6872, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7651, 1345, 353, 4232, 39, 3462, 8252, 16, 14060, 10477, 288, 203, 203, 225, 2874, 12, 2867, 516, 2254, 13, 324, 26488, 31, 203, 203, 225, 445, 7412, 12, 2867, 389, 869, 16, 2254, 389, 1132, 13, 288, 203, 565, 324, 26488...
/** *Submitted for verification at Etherscan.io on 2020-08-31 */ // SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.8; pragma experimental ABIEncoderV2; interface iERC20 { function name() external view returns (string memory); function symbol() external view returns (string memory); function deci...
inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
globalDetails.totalVolume = iROUTER(DAO.ROUTER()).totalVolume();
1,843,273
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 14939, 8350, 13255, 40, 6953, 17187, 478, 21163, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 3639, 2552, 3790, 18, 4963, 4545, 273, 277, 1457, 1693, 654, 12, 18485, 18, 1457, 1693, 654, 1435, 2934, 4963, 4545, 5621, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/80001/0x7717aB77bf46033626CCF17366015A867f6FC9b2/sources/project:/contracts/agreements/GeneralDistributionAgreementV1.sol
not using oldFlowRate in this model surprising effect: reducing flow rate may require more buffer when liquidation_period adjusted upward @note downcasting from uint256 -> uint32 for liquidation period
function _adjustBuffer( bytes memory eff, address pool, address from, bytes32 flowHash, FlowRate newFlowRate ) internal returns (bytes memory) { address token = abi.decode(eff, (address)); ISuperfluidGovernance gov = ISuperfluidGovernance(ISuperfluid(_host...
5,577,465
[ 1, 4625, 348, 7953, 560, 30, 225, 486, 1450, 1592, 5249, 4727, 316, 333, 938, 5056, 683, 13734, 5426, 30, 9299, 2822, 4693, 4993, 2026, 2583, 1898, 1613, 1347, 4501, 26595, 367, 67, 6908, 13940, 731, 2913, 632, 7652, 2588, 4155, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13362, 1892, 12, 203, 3639, 1731, 3778, 16419, 16, 203, 3639, 1758, 2845, 16, 203, 3639, 1758, 628, 16, 203, 3639, 1731, 1578, 4693, 2310, 16, 203, 3639, 9473, 4727, 394, 5249, 4727, 203, 565, 262, 2713, 1135, 261,...
./full_match/1/0xcf12800894d3fc9c53f243E3B3179Fe99A4ABdf1/sources/contracts/seekrewards.sol
* @dev failSafe: Returns transfer token/
function failSafe(address _toUser, uint _amount) external onlyOwner returns(bool) { require(_toUser != address(0), "Invalid Address"); require(token.balanceOf(address(this)) >= _amount, "SeekReward: insufficient amount"); token.transfer(_toUser, _amount); return true; }
9,620,603
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2321, 9890, 30, 2860, 7412, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2321, 9890, 12, 2867, 389, 869, 1299, 16, 2254, 389, 8949, 13, 3903, 1338, 5541, 1135, 12, 6430, 13, 288, 203, 3639, 2583, 24899, 869, 1299, 480, 1758, 12, 20, 3631, 315, 1941, 5267, 8863, 203, 3639, 2583, 12, 2316, 1...
pragma solidity ^0.4.8; import "zeppelin-solidity/contracts/token/ERC20/PausableToken.sol"; import "zeppelin-solidity/contracts/token/ERC20/MintableToken.sol"; import "zeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol"; import "zeppelin-solidity/contracts/token/ERC20/BurnableToken.sol"; import "zeppelin-solidit...
@dev transfer ownership of token between whitelisted accounts can only be triggered when contract is not paused @param _to address of receiver _value amount to token to transfer @return true if transfer succeeds false if not enough gas is provided, or if _value is larger than current user balance/
function transfer(address _to, uint256 _value) whenNotPaused onlyWhitelisted public returns (bool success) { return super.transfer(_to, _value); }
13,007,055
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 7412, 23178, 434, 1147, 3086, 26944, 9484, 848, 1338, 506, 10861, 1347, 6835, 353, 486, 17781, 632, 891, 389, 869, 1758, 434, 5971, 389, 1132, 3844, 358, 1147, 358, 7412, 632, 2463, 638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7412, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 13, 7010, 3639, 1347, 1248, 28590, 203, 3639, 1338, 18927, 329, 7010, 3639, 1071, 7010, 3639, 1135, 261, 6430, 2216, 13, 7010, 565, 288, 203, 3639, 327, 2240, 18, 138...
./full_match/97/0x5311E9c12A426a384Bae678dB62473A094241b23/sources/project_/contracts/NBPresale.sol
Calculate tokens to mint Reward for user is less than remaining tokens in round, so we don't need to move to next round Reward for user is more than the remaining tokens in round, but we are in the last round, so we reward all the tokens remaining and don't move to the next round Get the address of the currency contra...
function initializeTokenBuying(IERC20 currency, uint256 usdtIn, address refferal) internal { require(isPresaleActive, "Presale has not started yet"); require(usdtIn > 0, "Investment is 0"); require( currentRound < roundRewardPoolArray.length, "Presale has ended" ...
3,290,555
[ 1, 4625, 348, 7953, 560, 30, 225, 9029, 2430, 358, 312, 474, 534, 359, 1060, 364, 729, 353, 5242, 2353, 4463, 2430, 316, 3643, 16, 1427, 732, 2727, 1404, 1608, 358, 3635, 358, 1024, 3643, 534, 359, 1060, 364, 729, 353, 1898, 2353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4046, 1345, 38, 9835, 310, 12, 45, 654, 39, 3462, 5462, 16, 2254, 5034, 584, 7510, 382, 16, 1758, 1278, 586, 287, 13, 2713, 288, 203, 3639, 2583, 12, 291, 12236, 5349, 3896, 16, 315, 12236, 5349, 711, 486, 5746, 4671,...
./full_match/5/0x83e4A0C6A115603d1e4471E3a7261E1d5b6004A6/sources/contracts/Contract.sol
buy coffee function hash the customer's message send the funds to the owner emit the event when the transaction goes through
function buyCoffee( string memory _message, string memory _name ) payable public { require(msg.value == 0.01 ether, "You need to pay 0.01 ETH"); totalCoffee += 1; bytes32 hashedAnswer = keccak256(abi.encodePacked(_message)); coffee.push(Coffee(msg.sender, hashedA...
1,940,150
[ 1, 4625, 348, 7953, 560, 30, 225, 30143, 276, 3674, 1340, 445, 1651, 326, 6666, 1807, 883, 1366, 326, 284, 19156, 358, 326, 3410, 3626, 326, 871, 1347, 326, 2492, 13998, 3059, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 39, 3674, 1340, 12, 203, 3639, 533, 3778, 389, 2150, 16, 203, 3639, 533, 3778, 389, 529, 203, 565, 262, 8843, 429, 1071, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 422, 374, 18, 1611, 225, 2437, 16, 315, 6225, ...
/* * @title String & slice utility library for Solidity contracts. * @author Nick Johnson <arachnid@notdot.net> * * Source: https://github.com/Arachnid/solidity-stringutils/ */ pragma solidity ^0.5.2; library Strings { struct slice { uint _len; uint _ptr; } function memcpy(uint dest,...
@dev Counts the number of nonoverlapping occurrences of `needle` in `self`. @param self The slice to search. @param needle The text to search for in `self`. @return The number of occurrences of `needle` found in `self`./
function count(slice memory self, slice memory needle) internal pure returns (uint cnt) { uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len; while (ptr <= self._ptr + self._len) { cnt++; ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._...
899,693
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 6974, 87, 326, 1300, 434, 1661, 17946, 1382, 15698, 434, 1375, 14891, 298, 68, 316, 1375, 2890, 8338, 632, 891, 365, 1021, 2788, 358, 1623, 18, 632, 891, 9936, 1021, 977, 358, 1623, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1056, 12, 6665, 3778, 365, 16, 2788, 3778, 9936, 13, 2713, 16618, 1135, 261, 11890, 7599, 13, 288, 203, 3639, 2254, 6571, 273, 1104, 5263, 12, 2890, 6315, 1897, 16, 365, 6315, 6723, 16, 9936, 6315, 1897, 16, 9936, 6315,...
./partial_match/42/0xE1E543c1DA24cdcca7d3a627fe9D984b69cE255e/sources/MasterChefStageOne.sol
Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
function add(address _lpTokenSwap, address _tokenAToEthSwap, address _tokenBToEthSwap) public override onlyOwner{ IERC20 lpToken = IERC20(_lpTokenSwap); TokenPairInfo memory tokenAInfo = generateOrcaleInfo(_tokenAToEthSwap, commonToken); TokenPairInfo memory tokenBInfo = generateOrcaleInfo(_...
3,321,319
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 279, 394, 12423, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 11329, 5467, 4269, 527, 326, 1967, 511, 52, 1147, 1898, 2353, 3647, 18, 534, 359, 14727, 903, 506, 15216, 730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 2867, 389, 9953, 1345, 12521, 16, 1758, 389, 2316, 37, 774, 41, 451, 12521, 16, 1758, 389, 2316, 38, 774, 41, 451, 12521, 13, 1071, 3849, 1338, 5541, 95, 203, 3639, 467, 654, 39, 3462, 12423, 1345, 273, 467, ...
pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract PrettyGirl { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the...
Public variables of the token 18 decimals is the strongly suggested default, avoid changing it This creates an array with all balances This generates a public event on the blockchain that will notify clients This notifies clients about the amount burnt
contract PrettyGirl { string public name; string public symbol; uint8 public decimals = 18; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to...
2,202,869
[ 1, 4625, 348, 7953, 560, 30, 225, 7224, 3152, 434, 326, 1147, 6549, 15105, 353, 326, 11773, 715, 22168, 805, 16, 4543, 12770, 518, 1220, 3414, 392, 526, 598, 777, 324, 26488, 1220, 6026, 279, 1071, 871, 603, 326, 16766, 716, 903, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 22328, 43, 481, 80, 288, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 1071, 15105, 273, 6549, 31, 203, 565, 2254, 5034, 1071, 2078, 3088, 1283, 31, 203, 203, 565, 2874, 261, 2867, 516,...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way to...
@inheritdoc IOracle
function name(bytes calldata) public pure override returns (string memory) { return "Chainlink Popsicle"; }
1,679,936
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 1665, 16873, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 508, 12, 3890, 745, 892, 13, 1071, 16618, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 315, 3893, 1232, 453, 4473, 3711, 14432, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0x326BfE5CAC27e68631E64f58FD43cB5Bef9c7a2b/sources/@thirdweb-dev/contracts/extension/Staking721.sol
@dev Logic for claiming rewards. Override to add custom logic.
function _claimRewards() internal virtual { uint256 rewards = stakers[_stakeMsgSender()].unclaimedRewards + _calculateRewards(_stakeMsgSender()); require(rewards != 0, "No rewards"); stakers[_stakeMsgSender()].timeOfLastUpdate = uint128(block.timestamp); stakers[_stakeMsgSender()]....
5,565,031
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 10287, 364, 7516, 310, 283, 6397, 18, 1439, 358, 527, 1679, 4058, 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, 389, 14784, 17631, 14727, 1435, 2713, 5024, 288, 203, 3639, 2254, 5034, 283, 6397, 273, 384, 581, 414, 63, 67, 334, 911, 3332, 12021, 1435, 8009, 551, 80, 4581, 329, 17631, 14727, 397, 389, 11162, 17631, 14727, 24899, 334...
./partial_match/3/0x43E30a5A3ED56a59984208c1CbD88eaC86CEDAc8/sources/TokenZendR.sol
* @dev add address of token to list of supported tokens using token symbol as identifier in mapping/
function addNewToken(bytes32 symbol_, address address_) public onlyOwner returns (bool) { tokens[symbol_] = address_; return true; }
5,139,248
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 527, 1758, 434, 1147, 358, 666, 434, 3260, 2430, 1450, 1147, 3273, 487, 2756, 316, 2874, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 20973, 1345, 12, 3890, 1578, 3273, 67, 16, 1758, 1758, 67, 13, 1071, 1338, 5541, 1135, 261, 6430, 13, 288, 203, 3639, 2430, 63, 7175, 67, 65, 273, 1758, 67, 31, 203, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 203,...
./full_match/100/0x0Ac7ac8C6Eb5BbBEbE2d02E6B6f5B2B8e05759f1/sources/contracts/BetExpress.sol
* @notice Change odds on express' conditions proportionally to considered win payouts on them @notice The purpose is to avoid value abuse/
function _shiftOdds( uint256 expressOdds, uint256 oddsSum, uint128 amount, SubBet[] memory subBets, uint64[] memory conditionOdds, uint256[] memory outcomesIndexes, uint128[2][] memory virtualFunds ) internal { uint256 length = subBets.length; ...
14,285,462
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 7576, 14800, 87, 603, 16947, 11, 4636, 23279, 1230, 358, 7399, 5657, 293, 2012, 87, 603, 2182, 632, 20392, 1021, 13115, 353, 358, 4543, 460, 1223, 1202, 19, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 4012, 51, 449, 87, 12, 203, 3639, 2254, 5034, 16947, 51, 449, 87, 16, 203, 3639, 2254, 5034, 14800, 87, 3495, 16, 203, 3639, 2254, 10392, 3844, 16, 203, 3639, 2592, 38, 278, 8526, 3778, 720, 38, 2413, 16, 203, ...
/*** ██╗██╗░░██╗░█████╗░██╗██╗░░██╗░█████╗░  ██╗███╗░░██╗██╗░░░██╗ ██║██║░██╔╝██╔══██╗██║██║░██╔╝██╔══██╗  ██║████╗░██║██║░░░██║ ██║█████═╝░███████║██║█████═╝░███████║  ██║██╔██╗██║██║░░░██║ ██║██╔═██╗░██╔══██║██║██╔═██╗░██╔══██║  ██║██║╚████║██║░░░██║ ...
exclude from paying fees or having max transaction amount
constructor() ERC20("IKAIKA INU", "IKAI") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2Factory(_u...
561,839
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 2932, 45, 47, 18194, 47, 37, 2120, 57, 3113, 315, 45, 47, 18194, 7923, 288, 203, 7010, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, ...
./partial_match/80001/0x52497a13FEF0EcB1e7Aff7D7dcd0f4bc909D3883/sources/project_/contracts/smart-contracts-dev/dynamicStorage/MentaportERC721.sol
---------------------------------------------------------------------------- External functions* @dev Mint function for tokens - Contract not paused - Has to pass `mintCompliance` Requirement: _tokenURI/
function mint(string memory _tokenURI) virtual external payable nonReentrant whenNotPaused() mintCompliance(msg.sender) returns (uint256) { require(msg.value == cost , "Insufficient funds!"); return _mintNFT(msg.sender, _tokenURI); }
8,820,180
[ 1, 4625, 348, 7953, 560, 30, 8879, 13849, 11352, 4186, 14, 632, 5206, 490, 474, 445, 364, 2430, 282, 300, 13456, 486, 17781, 282, 300, 4393, 358, 1342, 1375, 81, 474, 16687, 68, 225, 30813, 30, 282, 389, 2316, 3098, 19, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 312, 474, 12, 1080, 3778, 389, 2316, 3098, 13, 203, 565, 5024, 7010, 565, 3903, 7010, 565, 8843, 429, 7010, 565, 1661, 426, 8230, 970, 203, 565, 1347, 1248, 28590, 1435, 203, 565, 312, 474, 16687, 12, 3576, 18, 15330, ...
./full_match/80001/0x60d4f0a904B8c544e19628866Db119E9F7177F27/sources/contracts/Contract.sol
Assign the logistics partner to the waste materialrecycledMaterials[RecycledId].Manufacturer = Manufacturer;
recycledMaterials[RecycledId].logisticsPartner = logisticsPartner;
9,519,739
[ 1, 4625, 348, 7953, 560, 30, 225, 12093, 326, 613, 4287, 19170, 358, 326, 341, 14725, 9390, 266, 2431, 71, 1259, 11790, 87, 63, 426, 2431, 71, 1259, 548, 8009, 24419, 273, 8660, 13019, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 25745, 71, 1259, 11790, 87, 63, 426, 2431, 71, 1259, 548, 8009, 1330, 4287, 1988, 1224, 273, 613, 4287, 1988, 1224, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x37DA9DE38c4094e090c014325f6eF4baEB302626/sources/contracts/OTSeaDividends.sol
@dev Internal function that burns an amount of the token of a given account. Update magnifiedDividendCorrections to keep dividends unchanged. @param account The account whose tokens will be burnt. @param value The amount that will be burnt.
function _burn(address account, uint256 value) internal override { super._burn(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account].add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); }
3,026,588
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 3186, 445, 716, 18305, 87, 392, 3844, 434, 326, 1147, 434, 279, 864, 2236, 18, 2315, 28160, 939, 7244, 26746, 20884, 87, 358, 3455, 3739, 350, 5839, 14827, 18, 632, 891, 2236, 1021, 2236,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 70, 321, 12, 2867, 2236, 16, 2254, 5034, 460, 13, 2713, 3849, 288, 203, 3639, 2240, 6315, 70, 321, 12, 4631, 16, 460, 1769, 203, 203, 3639, 28160, 939, 7244, 26746, 20884, 87, 63, 4631, 65, 273, 28160, 939, 7244,...
pragma solidity ^0.4.18; /* ==================================================================== */ /* Copyright (c) 2018 The Priate Conquest Project. All rights reserved. /* /* https://www.pirateconquest.com One of the world's slg games of blockchain /* /* authors rainy@livestar.com/Jonny.Fu@livestar.com /...
@dev Creates a new Captain with the given name.
function CreateCaptainToken(address _owner,uint256 _price, uint32 _captainId, uint32 _color,uint32 _atk,uint32 _defense,uint32 _atk_min,uint32 _atk_max) public onlyAccess { _createCaptainToken(_owner,_price,_captainId,_color,_atk,_defense,_atk_min,_atk_max); }
1,032,234
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 10210, 279, 394, 385, 1657, 530, 598, 326, 864, 508, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1788, 26294, 530, 1345, 12, 2867, 389, 8443, 16, 11890, 5034, 389, 8694, 16, 2254, 1578, 389, 71, 1657, 530, 548, 16, 2254, 1578, 389, 3266, 16, 11890, 1578, 389, 25815, 16, 11890, 1578, 389, 536, 3558, 16, 11890, 1578,...
./partial_match/1/0x86f0cf42Ad673B3D666d103E009EC142D1298a17/sources/src/UpgradeExecutor.sol
@notice Execute an upgrade by delegate calling an upgrade contract @dev Only executor can call this. Since we're using a delegatecall here the Upgrade contract will have access to the state of this contract - including the roles. Only upgrade contracts that do not touch local state should be used. O...
function execute(address upgrade, bytes memory upgradeCallData) public payable onlyRole(EXECUTOR_ROLE) nonReentrant { address(upgrade).functionDelegateCall( upgradeCallData, "UpgradeExecutor: inner delegate call failed without reason" ); emit ...
16,017,674
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 7903, 392, 8400, 635, 7152, 4440, 392, 8400, 6835, 632, 5206, 565, 5098, 6601, 848, 745, 333, 18, 7897, 732, 4565, 1450, 279, 7152, 1991, 2674, 326, 17699, 6835, 540, 903, 1240, 2006, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1836, 12, 2867, 8400, 16, 1731, 3778, 8400, 1477, 751, 13, 203, 3639, 1071, 203, 3639, 8843, 429, 203, 3639, 1338, 2996, 12, 15271, 1693, 916, 67, 16256, 13, 203, 3639, 1661, 426, 8230, 970, 203, 565, 288, 203, 3639, ...
pragma solidity ^0.4.24; import "./CardFactory.sol"; contract CharacterFactory is CardFactory { struct Charactor { uint32 level; uint8 cardType; uint8 starNum; uint8 charactorType; } event AddCharactor(uint charactorId, uint charactorType, uint cardType, uint st...
uint[2**20] charactors;
mapping (uint=>address) public charactorsToOwner;
15,800,797
[ 1, 4625, 348, 7953, 560, 30, 2254, 63, 22, 636, 3462, 65, 2367, 1383, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 11890, 9207, 2867, 13, 1071, 2367, 1383, 774, 5541, 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, -...
./partial_match/1/0x90F42043E638094d710bdCF1D1CbE6268AEB22d7/sources/OracleMultiPair.sol
fixed window oracle that recomputes the average price for the entire epochPeriod once every epochPeriod note that the price average is only guaranteed to be over at least 1 epochPeriod, but may be over a longer epochPeriod governance epoch BPool Pool price for update in cumulative epochPeriod oracle
contract OracleMultiPair is Ownable { using FixedPoint for *; using SafeMath for uint256; using UQ112x112 for uint224; uint256 public constant BPOOL_BONE = 10**18; address public operator; uint256 public startTime; uint256 public lastEpochTime; uint256 public epochPeriod; mappi...
4,176,602
[ 1, 4625, 348, 7953, 560, 30, 225, 5499, 2742, 20865, 716, 283, 13406, 281, 326, 8164, 6205, 364, 326, 7278, 7632, 5027, 3647, 3614, 7632, 5027, 4721, 716, 326, 6205, 8164, 353, 1338, 15403, 358, 506, 1879, 622, 4520, 404, 7632, 5027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28544, 5002, 4154, 353, 14223, 6914, 288, 203, 565, 1450, 15038, 2148, 364, 380, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 587, 53, 17666, 92, 17666, 364, 2254, 23622, 31, 203, 203, 203, 565, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.4; pragma experimental ABIEncoderV2; import "./tokens/erc20permit-upgradeable/ERC20PermitUpgradeable.sol"; import "./abstract/AbstractLeveragePortfolio.sol"; import "./interfaces/IBMICoverStaking.sol"; import "./interfaces/IBMICoverStakingView.sol"; import "./inter...
5 decimal places or zero
rewardsGenerator.updatePolicyBookShare(_totalBmiMultiplier.div(10**22), address(this));
6,397,446
[ 1, 4625, 348, 7953, 560, 30, 225, 1381, 6970, 12576, 578, 3634, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 283, 6397, 3908, 18, 2725, 2582, 9084, 9535, 24899, 4963, 38, 9197, 23365, 18, 2892, 12, 2163, 636, 3787, 3631, 1758, 12, 2211, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity >=0.4.22 <0.6.0; contract PropertyAuctionContract { event reg(address _from, uint _amount); event withdrawn(address _from, uint _amount); event result(address _from,address _to, uint _amount); struct Property { string name; // name of Property string details; // hash of property details such ...
obviously should meet this condition.
function bidResult() public onlyOwner returns (bool success) { uint balance = isProspect[status.highestBidder]; address oldOwner = owner; require(balance <= address(this).balance, "Contract balance is not sufficient to complete the transaction"); return true; }
12,904,640
[ 1, 4625, 348, 7953, 560, 30, 225, 28067, 715, 1410, 18721, 333, 2269, 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, 202, 915, 9949, 1253, 1435, 1071, 1338, 5541, 1135, 261, 6430, 2216, 13, 288, 203, 202, 202, 11890, 11013, 273, 353, 626, 13234, 63, 2327, 18, 8766, 395, 17763, 765, 15533, 203, 202, 202, 2867, 1592, 5541, 273, 3410, 31, 203, 202...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error,...
@notice Stakes LP tokens @param _vaultProxy The VaultProxy of the calling fund @param _actionData Data specific to this action @param _assetData Parsed spend assets and incoming assets data for this action
function stake( address _vaultProxy, bytes calldata _actionData, bytes calldata _assetData ) external onlyIntegrationManager { (, address incomingStakingToken, uint256 amount) = __decodeStakeCallArgs(_actionData); (address[] memory spendAssets, , ) = __decodeAssetData(_a...
10,237,943
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 934, 3223, 511, 52, 2430, 632, 891, 389, 26983, 3886, 1021, 17329, 3886, 434, 326, 4440, 284, 1074, 632, 891, 389, 1128, 751, 1910, 2923, 358, 333, 1301, 632, 891, 389, 9406, 751, 19244,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 911, 12, 203, 3639, 1758, 389, 26983, 3886, 16, 203, 3639, 1731, 745, 892, 389, 1128, 751, 16, 203, 3639, 1731, 745, 892, 389, 9406, 751, 203, 565, 262, 3903, 1338, 15372, 1318, 288, 203, 3639, 261, 16, 1758, 693...
pragma solidity ^0.5.0; /** * @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 returns (bool); function tran...
------------------------------------------------------------------------ Returns the amount of tokens approved by the owner that can be transferred to the spender's account ------------------------------------------------------------------------
function allowance(address tokenOwner, address spender) public view returns (uint remaining) { return allowed[tokenOwner][spender]; } This is only needed if you put the funds in the Dex contract address, and then need to withdraw them Avoid this, by not putting funds in there that you need to g...
7,212,869
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 2860, 326, 3844, 434, 2430, 20412, 635, 326, 3410, 716, 848, 506, 906, 4193, 358, 326, 17571, 264, 1807, 2236, 8879, 17082, 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, 1699, 1359, 12, 2867, 1147, 5541, 16, 1758, 17571, 264, 13, 1071, 1476, 1135, 261, 11890, 4463, 13, 288, 203, 3639, 327, 2935, 63, 2316, 5541, 6362, 87, 1302, 264, 15533, 203, 565, 289, 203, 203, 565, 1220, 353, 1338, ...
./partial_match/1/0x46d81377EDA197f24ea58C636336569216b58D1f/sources/contracts/EmergencyWithdraw.sol
Show the current candidate
function emergencyWithdraw_getAddress() view public returns(address){
16,034,020
[ 1, 4625, 348, 7953, 560, 30, 225, 9674, 326, 783, 5500, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1190, 9446, 67, 588, 1887, 1435, 1476, 1071, 1135, 12, 2867, 15329, 4766, 2398, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0x9D1e384f2c737079017c2212fc98993D57844eA8/sources/_thirdweb-dev/contracts/eip/ERC721AVirtualApprove.sol
Overflows are incredibly unrealistic. balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
function _safeMintWomen( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndexWomen; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address...
869,306
[ 1, 4625, 348, 7953, 560, 30, 225, 10752, 24190, 854, 7290, 1118, 24755, 640, 7688, 5846, 18, 11013, 578, 1300, 49, 474, 329, 9391, 309, 783, 460, 434, 3344, 397, 10457, 405, 404, 18, 28, 73, 3657, 261, 22, 636, 1105, 13, 300, 404,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 4626, 49, 474, 59, 362, 275, 12, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 10457, 16, 203, 3639, 1731, 3778, 389, 892, 203, 565, 262, 2713, 288, 203, 3639, 2254, 5034, 787, 1345, 548, 273, 389, 2972, 1016,...
./full_match/4/0x91F5059870632Aa91DcD97477816FF6ED69E94b8/sources/Step_By_Step.sol
必须声明该函数才能成为ERC1155的Receiver, 不然添加流动性的那一步会revert
function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _value, bytes calldata _data) external returns(bytes4){ bytes4 a = 0xf23a6e61; return a; }
832,670
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 166, 128, 232, 170, 99, 124, 166, 101, 113, 167, 251, 241, 169, 112, 103, 166, 234, 126, 167, 248, 113, 167, 236, 240, 169, 230, 126, 167, 235, 243, 165, 121, 123, 654, 39, 2499, 2539, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 603, 654, 39, 2499, 2539, 8872, 12, 2867, 389, 9497, 16, 1758, 389, 2080, 16, 2254, 5034, 389, 350, 16, 2254, 5034, 389, 1132, 16, 1731, 745, 892, 389, 892, 13, 3903, 1135, 12, 3890, 24, 15329, 203, 3639, 1731, 24, ...
pragma solidity ^0.6.9; // SPDX-License-Identifier: GPL-3.0-or-later import "./SafeMath.sol"; import "../../interfaces/IERC20.sol"; // ---------------------------------------------------------------------------- // DutchSwap Auction Contract // // // MVP prototype. DO NOT USE! // // (c) Adria...
@notice Returns the amout able to be committed during an auction
function calculateCommitment( uint256 _commitment) public view returns (uint256 committed) { uint256 maxCommitment = tokenSupply.mul(clearingPrice()).div(TENPOW18); if (amountRaised.add(_commitment) > maxCommitment) { return maxCommitment.sub(amountRaised); } ...
12,812,466
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 326, 2125, 659, 7752, 358, 506, 16015, 4982, 392, 279, 4062, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4604, 5580, 475, 12, 2254, 5034, 389, 7371, 475, 13, 7010, 3639, 1071, 1476, 1135, 261, 11890, 5034, 16015, 13, 7010, 565, 288, 203, 3639, 2254, 5034, 943, 5580, 475, 273, 1147, 3088, 1283, 18, 16411, 12, 2131, 5968, 51...
./partial_match/42/0xb67e3087b617C68F81b6A85a086C3F6833a7334B/sources/astronaut7/acap-pw/42/0xb67e3087b617C68F81b6A85a086C3F6833a7334B/Agreement.sol
* Config contract address/
address public configAddr;
9,085,800
[ 1, 4625, 348, 7953, 560, 30, 380, 1903, 6835, 1758, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 642, 3178, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0xe563e65ABd754398e150d4B20339F179ee42Db03/sources/contracts/Oxnftworlds.sol
Distribute funds to wallets
function withdrawAll() public onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "Insufficent balance"); _withdraw(w1, ((balance * 100) / 100)); _withdraw(w1, address(this).balance); }
12,320,271
[ 1, 4625, 348, 7953, 560, 30, 225, 3035, 887, 284, 19156, 358, 17662, 2413, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1595, 1435, 1071, 1338, 5541, 288, 203, 3639, 2254, 5034, 11013, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 3639, 2583, 12, 12296, 405, 374, 16, 315, 5048, 3809, 335, 319, 11013, 8863, 203, 3639, 389, 1918, 9...
./partial_match/3/0x9BA3c5D7F6083715Eb5dF3A5AE8d7D4367c5020D/sources/RUBY.sol
Public variables of the token
contract RUBY is Ownable, ERC20 { = TOKEN DATA = ===============================*/ using SafeMath for uint256; uint256 public withdrawnByAdmin; string public constant name = "Ruby Token"; string public constant symbol = "RUBY"; uint256 public constant decimals = 18; ...
5,333,682
[ 1, 4625, 348, 7953, 560, 30, 225, 7224, 3152, 434, 326, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 534, 3457, 61, 353, 14223, 6914, 16, 4232, 39, 3462, 288, 203, 203, 565, 273, 6647, 14275, 8730, 1850, 273, 203, 565, 28562, 14468, 33, 5549, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 2254, 5034, 10...
/* * Origin Protocol * https://originprotocol.com * * Released under the MIT license * https://github.com/OriginProtocol/origin-dollar * * Copyright 2020 Origin Protocol, Inc * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files ...
Price from Oracle is returned with 8 decimals scale to 18 so 18-8=10
return price.scaleBy(10);
13,653,306
[ 1, 4625, 348, 7953, 560, 30, 225, 20137, 628, 28544, 353, 2106, 598, 1725, 15105, 3159, 358, 6549, 1427, 6549, 17, 28, 33, 2163, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 327, 6205, 18, 5864, 858, 12, 2163, 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, -100, -...
./partial_match/40/0xE51F6F19Ebfb47d3284A6B15Cc04B1b39C6c4dB2/sources/contracts/Milkomeda/AdaReflectionsLfgo.sol
Burns token on the contract, like when there is a very large backlog of tokenor for scheudled BurnEvents
function TeamBurnContractToken(uint8 percent) public onlyTeam { require(percent <= 100); uint256 burnAmount = (_balances[address(this)] * percent) / 100; _removeToken(address(this), burnAmount); emit Transfer(address(this), address(0), burnAmount); emit ContractBurn(burnAmoun...
8,827,766
[ 1, 4625, 348, 7953, 560, 30, 605, 321, 87, 1147, 603, 326, 6835, 16, 3007, 1347, 1915, 353, 279, 8572, 7876, 1473, 1330, 434, 1147, 280, 364, 18551, 73, 1100, 1259, 605, 321, 3783, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 10434, 38, 321, 8924, 1345, 12, 11890, 28, 5551, 13, 1071, 1338, 8689, 288, 203, 3639, 2583, 12, 8849, 1648, 2130, 1769, 203, 3639, 2254, 5034, 18305, 6275, 273, 261, 67, 70, 26488, 63, 2867, 12, 2211, 25887, 380, 5551,...
./full_match/5/0xd98398a279434A5ACE8cBB8ed72C4bAeA1221377/sources/contracts/L1/delegation/Delegation.sol
* @notice Internal function implementing the delegation from `staker` to `operator`. @param staker The address to delegate from -- this address is delegating control of its own assets. @param operator The address to delegate to -- this address is being given power to place the `staker`'s assets at risk on services @dev...
function _delegate(address staker, address operator) internal { IDelegationCallback dt = delegationCallback[operator]; require( address(dt) != address(0), "Delegation._delegate: operator has not yet registered as a delegate" ); require(isNotDelegated(staker), "Delegation...
7,039,423
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3186, 445, 19981, 326, 23595, 628, 1375, 334, 6388, 68, 358, 1375, 9497, 8338, 632, 891, 384, 6388, 1021, 1758, 358, 7152, 628, 1493, 333, 1758, 353, 11158, 1776, 3325, 434, 2097, 4953, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22216, 12, 2867, 384, 6388, 16, 1758, 3726, 13, 2713, 288, 203, 203, 3639, 1599, 13451, 367, 2428, 3681, 273, 23595, 2428, 63, 9497, 15533, 203, 3639, 2583, 12, 203, 5411, 1758, 12, 7510, 13, 480, 1758, 12, 20, 3...
// File @aragon/os/contracts/common/UnstructuredStorage.sol@v4.4.0 /* * SPDX-License-Identifier: MIT */ pragma solidity ^0.4.24; library UnstructuredStorage { function getStorageBool(bytes32 position) internal view returns (bool data) { assembly { data := sload(position) } } function getSt...
* @notice Return the first epoch of the frame that `_epochId` belongs to/
function _getFrameFirstEpochId(uint256 _epochId, BeaconSpec memory _beaconSpec) internal view returns (uint256) { return _epochId / _beaconSpec.epochsPerFrame * _beaconSpec.epochsPerFrame; }
173,020
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2000, 326, 1122, 7632, 434, 326, 2623, 716, 1375, 67, 12015, 548, 68, 11081, 358, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 588, 3219, 3759, 14638, 548, 12, 11890, 5034, 389, 12015, 548, 16, 4823, 16329, 1990, 3778, 389, 2196, 16329, 1990, 13, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 12015, 548, 342, 389, 2196, ...
./full_match/1/0x199475d41F454114fA3DeA16DcaCFe8d29a204D4/sources/contracts/X2Token.sol
max uint128 has 38 digits the initial divisor has 10 digits each 1 wei of rewards will increase cumulativeRewardPerToken by 1*10^10 (PRECISION 10^20 / divisor 10^10) assuming a supply of only 1 wei of X2Tokens if the reward token has 18 decimals, total rewards of up to 1 billion reward tokens is supported max uint96 h...
struct Reward { uint128 previousCumulativeRewardPerToken; uint96 claimable; uint32 lastBoughtAt; } uint256 constant HOLDING_TIME = 10 minutes; uint256 constant PRECISION = 1e20; uint256 constant MAX_BALANCE = uint128(-1); uint256 constant MAX_REWARD = uint96(-1); uin...
4,998,680
[ 1, 4625, 348, 7953, 560, 30, 225, 943, 2254, 10392, 711, 18012, 6815, 326, 2172, 15013, 711, 1728, 6815, 1517, 404, 732, 77, 434, 283, 6397, 903, 10929, 15582, 17631, 1060, 2173, 1345, 635, 404, 14, 2163, 66, 2163, 261, 3670, 26913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 534, 359, 1060, 288, 203, 3639, 2254, 10392, 2416, 39, 11276, 17631, 1060, 2173, 1345, 31, 203, 3639, 2254, 10525, 7516, 429, 31, 203, 3639, 2254, 1578, 1142, 13809, 9540, 861, 31, 203, 565, 289, 203, 203, 565, 2254, 5...
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.7.6; import "./interfaces/IModuleAuthUpgradable.sol"; import "./ModuleSelfAuth.sol"; import "./ModuleAuth.sol"; import "./ModuleStorage.sol"; /** @notice Implements ModuleAuthUpgradable but ignores the validity of the signature should only be used durin...
* @notice Returns the current image hash of the wallet/
function imageHash() external override virtual view returns (bytes32) { return ModuleStorage.readBytes32(IMAGE_HASH_KEY); }
12,958,301
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2860, 326, 783, 1316, 1651, 434, 326, 9230, 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, 225, 445, 1316, 2310, 1435, 3903, 3849, 5024, 1476, 1135, 261, 3890, 1578, 13, 288, 203, 565, 327, 5924, 3245, 18, 896, 2160, 1578, 12, 13603, 67, 15920, 67, 3297, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
// // compiler: solcjs -o ./build/contracts --optimize --abi --bin <this file> // version: 0.4.19+commit.bbb8e64f.Emscripten.clang // pragma solidity ^0.4.19; contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { if (msg.sender != owner) { revert(); } _; ...
03 APR 2018 14:00:00 GMT
uint public constant ENDTIME = 1522764000;
6,569,411
[ 1, 4625, 348, 7953, 560, 30, 225, 17107, 432, 8025, 14863, 5045, 30, 713, 30, 713, 21706, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 1071, 5381, 7273, 4684, 273, 4711, 3787, 27, 1105, 3784, 31, 1377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x2E2e0cc3AE127E657c513b9a94D8B22d4c11B720/sources/DollarBankForDSD.sol
transfer amountsub genesis rewardcalc genesisTotalReward
function withdrawDollar(uint256 amount) public returns (bool) { require(amount > 0, "amount wrong"); require( currentRoundNum == 0 || roundsMap[currentRoundNum].isEnd, "not complete" ); updatePlayerStatus(); require(playersMap[msg.sender].balance >= am...
2,778,163
[ 1, 4625, 348, 7953, 560, 30, 7412, 3844, 1717, 21906, 19890, 12448, 21906, 5269, 17631, 1060, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 598, 9446, 40, 25442, 12, 11890, 5034, 3844, 13, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 8949, 405, 374, 16, 315, 8949, 7194, 8863, 203, 3639, 2583, 12, 203, 5411, 783, 11066, 2578, 422, 374, 747, 21196, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol"; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "./tender.sol"; contract Register is VRFConsu...
require(msg.value >= 10**18);
function requestRandomNumber() public returns (bytes32 requestId) { require(LINK.balanceOf(address(this)) >= randomnessfee, "Not enough LINK - fill contract with faucet"); requests[requestId]= msg.sender; return requestRandomness(keyHash, randomnessfee); }
956,081
[ 1, 4625, 348, 7953, 560, 30, 2583, 12, 3576, 18, 1132, 1545, 1728, 636, 2643, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 590, 8529, 1854, 1435, 1071, 1135, 261, 3890, 1578, 14459, 13, 288, 203, 3639, 2583, 12, 10554, 18, 12296, 951, 12, 2867, 12, 2211, 3719, 1545, 2744, 4496, 21386, 16, 315, 1248, 7304, 22926, 300, 3636, 6835, 598, 11087, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when d...
Archbishop will crown the King and he is a fair guy... Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once $KING is sufficiently distributed and the community can show to govern itself.
contract ArchbishopV2 is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeMath96 for uint96; using SafeMath32 for uint32; using SafeERC20 for IERC20; struct UserInfo { } struct PoolInfo { } event Deposit( address indexed user, uint256 indexe...
1,345,932
[ 1, 4625, 348, 7953, 560, 30, 225, 16959, 70, 1468, 556, 903, 276, 26253, 326, 1475, 310, 471, 3904, 353, 279, 284, 1826, 3058, 93, 2777, 3609, 716, 518, 1807, 4953, 429, 471, 326, 3410, 341, 491, 87, 268, 2764, 409, 1481, 7212, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 16959, 70, 1468, 556, 58, 22, 353, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 10525, 364, 2254, 10525, 31, 203, 565, 1450, 14060, 10477, 15...
/** *Submitted for verification at BscScan.com on 2021-05-05 */ // File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //import "hardhat/console.sol"; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupp...
@notice Initialize the contract @param _stakedToken: staked token address @param _rewardToken: reward token address @param _rewardPerBlock: reward per block (in rewardToken) @param _startBlock: start block @param _bonusEndBlock: end block @param _poolLimitPerUser: pool limit per user in stakedToken (if any, else 0) @p...
function initialize( IERC20Metadata _stakedToken, IERC20Metadata _rewardToken, uint256 _rewardPerBlock, uint256 _startBlock, uint256 _bonusEndBlock, uint256 _poolLimitPerUser, uint256 _numberBlocksForUserLimit, address _admin ) external { r...
1,017,816
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 9190, 326, 6835, 632, 891, 389, 334, 9477, 1345, 30, 384, 9477, 1147, 1758, 632, 891, 389, 266, 2913, 1345, 30, 19890, 1147, 1758, 632, 891, 389, 266, 2913, 2173, 1768, 30, 19890, 1534, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4046, 12, 203, 3639, 467, 654, 39, 3462, 2277, 389, 334, 9477, 1345, 16, 203, 3639, 467, 654, 39, 3462, 2277, 389, 266, 2913, 1345, 16, 203, 3639, 2254, 5034, 389, 266, 2913, 2173, 1768, 16, 203, 3639, 2254, 5034, 389...
/** *Submitted for verification at Etherscan.io on 2020-09-19 */ pragma solidity 0.6.12; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath{ /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counte...
* approve should be called when allowed[_spender] == 0. To increment allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol/
function increaseApproval (address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
2,272,979
[ 1, 4625, 348, 7953, 560, 30, 380, 6617, 537, 1410, 506, 2566, 1347, 2935, 63, 67, 87, 1302, 264, 65, 422, 374, 18, 2974, 5504, 2935, 460, 353, 7844, 358, 999, 333, 445, 358, 4543, 576, 4097, 261, 464, 2529, 3180, 326, 1122, 2492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 10929, 23461, 261, 2867, 389, 87, 1302, 264, 16, 2254, 389, 9665, 620, 13, 1071, 1135, 261, 6430, 13, 288, 203, 565, 2935, 63, 3576, 18, 15330, 6362, 67, 87, 1302, 264, 65, 273, 2935, 63, 3576, 18, 15330, 6362, 67, ...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
Этот пакет законов действует в ущерб частным предпринимателям.
rus_verbs:ДЕЙСТВОВАТЬ{},
5,482,785
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 145, 260, 146, 229, 145, 127, 146, 229, 225, 145, 128, 145, 113, 145, 123, 145, 118, 146, 229, 225, 145, 120, 145, 113, 145, 123, 145, 127, 145, 126, 145, 127, 145, 115, 225, 145, 117, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 436, 407, 67, 502, 2038, 30, 145, 247, 145, 248, 145, 252, 145, 99, 145, 100, 145, 245, 145, 257, 145, 245, 145, 243, 145, 100, 145, 110, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.18; library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal returns (uint) { // assert(b > 0); // Solidity automatically throws...
* @dev Called by the payer to store the sent amount as credit to be pulled. @param dest The destination address of the funds. @param amount The amount to transfer./
function asyncSend(address dest, uint256 amount) internal { payments[dest] = payments[dest].add(amount); totalPayments = totalPayments.add(amount); }
927,744
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11782, 635, 326, 293, 1773, 358, 1707, 326, 3271, 3844, 487, 12896, 358, 506, 30741, 18, 632, 891, 1570, 1021, 2929, 1758, 434, 326, 284, 19156, 18, 632, 891, 3844, 1021, 3844, 358, 7412,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4326, 3826, 12, 2867, 1570, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 3639, 25754, 63, 10488, 65, 273, 25754, 63, 10488, 8009, 1289, 12, 8949, 1769, 203, 3639, 2078, 23725, 273, 2078, 23725, 18, 1289, 12, 8949, 1769, 20...
//Address: 0x7f0c38d5e951c47d96d3ec96e3127c73ed4b278e //Contract name: OnePay //Balance: 75.873377075 Ether //Verification Date: 2/16/2018 //Transacion Count: 220 // CODE STARTS HERE pragma solidity ^0.4.17; // ERC Token Standard #20 Interface interface ERC20 { // Get the total token supply function totalSu...
Increase the number of minted coins
mintedCoins += amount;
12,591,412
[ 1, 4625, 348, 7953, 560, 30, 225, 657, 11908, 326, 1300, 434, 312, 474, 329, 276, 9896, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 312, 474, 329, 39, 9896, 1011, 3844, 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, -1...
pragma solidity >=0.4.22 <0.6.0; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (u...
set new params from buy
_initPeriod(false);
13,061,129
[ 1, 4625, 348, 7953, 560, 30, 444, 394, 859, 628, 30143, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1082, 202, 67, 2738, 5027, 12, 5743, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.11; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `...
low level token purchase function caution: tokens must be redeemed by beneficiary address calculate token amount to be purchased update state allocate tokens to purchaser
function buyTokens(address beneficiary) payable { require(beneficiary != 0x0); require(validPurchase()); uint256 weiAmount = msg.value; uint256 tokens = weiAmount.mul(rate); weiRaised = weiRaised.add(weiAmount); allocations[beneficiary] = tokens; TokenPurchase(msg.sender, beneficiary, ...
2,241,161
[ 1, 4625, 348, 7953, 560, 30, 225, 4587, 1801, 1147, 23701, 445, 3474, 1421, 30, 2430, 1297, 506, 283, 24903, 329, 635, 27641, 74, 14463, 814, 1758, 4604, 1147, 3844, 358, 506, 5405, 343, 8905, 1089, 919, 10101, 2430, 358, 5405, 343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 30143, 5157, 12, 2867, 27641, 74, 14463, 814, 13, 8843, 429, 288, 203, 565, 2583, 12, 70, 4009, 74, 14463, 814, 480, 374, 92, 20, 1769, 203, 565, 2583, 12, 877, 23164, 10663, 203, 203, 565, 2254, 5034, 732, 77, 6275, ...
./full_match/77/0x23d52F4CAC014886235aC2d0E003B2DC244af122/sources/contracts/Core.sol
outcomeId -> margin
mapping(uint64 => uint128) margins;
5,046,290
[ 1, 4625, 348, 7953, 560, 30, 225, 12884, 548, 317, 7333, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 1105, 516, 2254, 10392, 13, 24889, 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, ...
./full_match/5/0x2AFaD3F369566E3720105F9833e4925c70a69D6a/sources/contracts/Contract.sol
function to check if an ego has already been used to generate an evolved
function getUsedEgos(uint256 tokenId) external view returns (bool) { return usedEgos[tokenId]; }
1,850,384
[ 1, 4625, 348, 7953, 560, 30, 225, 445, 358, 866, 309, 392, 425, 3240, 711, 1818, 2118, 1399, 358, 2103, 392, 2113, 12894, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 336, 6668, 41, 19340, 12, 11890, 5034, 1147, 548, 13, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 1399, 41, 19340, 63, 2316, 548, 15533, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.10; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @title A simple smart contract which only records everyone’s voting on each proposal. */ contract VoteBox { using SafeMath for uint256...
* @title A simple smart contract which only records everyone’s voting on each proposal./ Meta data
contract VoteBox { using SafeMath for uint256; pragma solidity 0.6.10; struct Meta { uint256 beginBlock; uint256 endBlock; } public enum Content { INVALID, FOR, AGAINST } uint256 public constant MIN_PERIOD = 5760; IERC20 public mcb; Meta[] public proposals; ...
5,438,836
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 432, 4143, 13706, 6835, 1492, 1338, 3853, 3614, 476, 163, 227, 252, 87, 331, 17128, 603, 1517, 14708, 18, 19, 6565, 501, 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, 16351, 27540, 3514, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 683, 9454, 18035, 560, 374, 18, 26, 18, 2163, 31, 203, 565, 1958, 6565, 288, 203, 3639, 2254, 5034, 2376, 1768, 31, 203, 3639, 2254, 5034, 679,...
./full_match/1/0x6f480D5F2Bf3F298e65357dbfCb01cCc06698603/sources/contracts/SignatureSneakerHighs.sol
************************************************************************** Public/* @dev See {ERC721A-_totalMinted}./
function totalMinted() external view returns (uint256) { return _totalMinted(); }
2,902,688
[ 1, 4625, 348, 7953, 560, 30, 19756, 1644, 14, 7224, 20308, 632, 5206, 2164, 288, 654, 39, 27, 5340, 37, 17, 67, 4963, 49, 474, 329, 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, ...
[ 1, 1, 1, 1, 1, 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, 2078, 49, 474, 329, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 4963, 49, 474, 329, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; contract LDEvents { // fired whenever a player registers a name event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, ...
* @dev prepares compression data and fires event for buy or reload tx's/
function endTx(uint256 _pID, uint256 _eth, uint256 _keys, LDdatasets.EventReturns memory _eventData_) private { _eventData_.compressedData = _eventData_.compressedData + (now * 1000000000000000000); _eventData_.compressedIDs = _eventData_.compressedIDs + _pID; emit LDEve...
13,797,548
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 29294, 9154, 501, 471, 29564, 871, 364, 30143, 578, 7749, 2229, 1807, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 679, 4188, 12, 11890, 5034, 389, 84, 734, 16, 2254, 5034, 389, 546, 16, 2254, 5034, 389, 2452, 16, 28083, 21125, 18, 1133, 1356, 3778, 389, 2575, 751, 67, 13, 203, 3639, 3238, 203, 565, 288, 203, 3639, 389, 2575, 751,...
./full_match/3/0x6F0b091e31899f0F3379F517D4c532d92AD6a261/sources/contracts/perfSafemoonBNBLPSplitFundFee.sol
is the token balance of this contract address over the min number of tokens that we need to initiate a swap + liquidity lock? also, don't get caught in a circular liquidity event. also, don't swap & liquify if sender is pancakeswap pair.add liquidityif any account belongs to _isExcludedFromFee account then remove the ...
function _transfer( address from, address to, uint256 amount ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be gre...
14,169,369
[ 1, 4625, 348, 7953, 560, 30, 225, 353, 326, 1147, 11013, 434, 333, 6835, 1758, 1879, 326, 1131, 1300, 434, 2430, 716, 732, 1608, 358, 18711, 279, 7720, 397, 4501, 372, 24237, 2176, 35, 2546, 16, 2727, 1404, 336, 13537, 316, 279, 153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 203, 3639, 1758, 628, 16, 202, 203, 3639, 1758, 358, 16, 202, 203, 3639, 2254, 5034, 3844, 202, 203, 565, 262, 3238, 288, 202, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3...
./full_match/1/0xa7367c89434aC03c8410306936106e31A91346fe/sources/src/GenericPfp.sol
* @dev Sets the address that can manually transfer tokens in the event a member loses their private key. This function will become more expensive the more NFTs this contract has created/
function setManualTransfersAddress(address _manualTransfersAddress) external onlyOwner { manualTransfersAddress = _manualTransfersAddress; for(uint256 i = 1; i <= _tokenIds.current(); i++) { _approve(manualTransfersAddress, i); } }
17,144,597
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 326, 1758, 716, 848, 10036, 7412, 2430, 316, 326, 871, 279, 3140, 437, 2420, 3675, 3238, 498, 18, 1220, 445, 903, 12561, 1898, 19326, 326, 1898, 423, 4464, 87, 333, 6835, 711, 2522...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 25139, 1429, 18881, 1887, 12, 2867, 389, 19840, 1429, 18881, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 11297, 1429, 18881, 1887, 273, 389, 19840, 1429, 18881, 1887, 31, 203, 203, 3639, 364, 12, 11890, 5034, 277, 27...
./full_match/1/0xAEf566ca7E84d1E736f999765a804687f39D9094/sources/@equilibria/root/control/unstructured/UOwnable.sol
* @notice Initializes the contract setting `msg.sender` as the initial owner/
function __UOwnable__initialize() internal onlyInitializer { _updateOwner(msg.sender); }
17,012,354
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 10188, 3128, 326, 6835, 3637, 1375, 3576, 18, 15330, 68, 487, 326, 2172, 3410, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1001, 57, 5460, 429, 972, 11160, 1435, 2713, 1338, 14729, 288, 203, 3639, 389, 2725, 5541, 12, 3576, 18, 15330, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity 0.5.12; import "./library/Pausable.sol"; import "./library/ERC20SafeTransfer.sol"; import "./library/SafeMath.sol"; import "./interface/IDTokenController.sol"; contract Handler is ERC20SafeTransfer, Pausable { using SafeMath for uint256; bool private initialized; // Flags for initializing data...
Supports token or not
mapping(address => bool) private tokensEnable;
1,001,168
[ 1, 4625, 348, 7953, 560, 30, 225, 25110, 1147, 578, 486, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 1426, 13, 3238, 2430, 8317, 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, -10...
./full_match/73799/0xb5fF083230fa8f6241Bc17F5ca8cc1D3FB3fDBD7/sources/contracts/facets/IssuerFacet.sol
* @notice `requestBatchIssuance` - An authorized issuer requests issuance of a bacth of certificates. @param issuanceRequestsList - An array of IssuanceRequest struct containing the data needed to issue a certificate. @dev This function is used to issue a batch of certificates after a consensus is reached. @dev The gen...
function requestBatchIssuance(IssuanceRequest[] memory issuanceRequestsList) external onlyIssuer { uint256 listSize = issuanceRequestsList.length; LibIssuer.checkBatchIssuanceSize(listSize); for (uint256 i; i < listSize; i++) { _issueCertificate( issuanceRequestsL...
16,361,877
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1375, 2293, 4497, 7568, 89, 1359, 68, 300, 1922, 10799, 9715, 3285, 3385, 89, 1359, 434, 279, 324, 621, 76, 434, 12522, 18, 632, 891, 3385, 89, 1359, 6421, 682, 300, 1922, 526, 434, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 590, 4497, 7568, 89, 1359, 12, 7568, 89, 1359, 691, 8526, 3778, 3385, 89, 1359, 6421, 682, 13, 3903, 1338, 16667, 288, 203, 3639, 2254, 5034, 666, 1225, 273, 3385, 89, 1359, 6421, 682, 18, 2469, 31, 203, 3639, 10560, ...
pragma solidity ^0.5.13; pragma experimental ABIEncoderV2; /** * @dev An Adjudicator Interface calls for a method that allows a finalized outcome to be pushed to an asset holder. */ interface Adjudicator { /** * @notice Allows a finalized channel's outcome to be decoded and one or more AssetOutcomes register...
* @dev An Adjudicator Interface calls for a method that allows a finalized outcome to be pushed to an asset holder./
interface Adjudicator { function pushOutcome( bytes32 channelId, uint256 turnNumRecord, uint256 finalizesAt, bytes32 stateHash, address challengerAddress, bytes calldata outcomeBytes ) external; }
12,573,189
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1922, 4052, 78, 1100, 8844, 6682, 4097, 364, 279, 707, 716, 5360, 279, 727, 1235, 12884, 358, 506, 18543, 358, 392, 3310, 10438, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 4052, 78, 1100, 8844, 288, 203, 565, 445, 1817, 19758, 12, 203, 3639, 1731, 1578, 27709, 16, 203, 3639, 2254, 5034, 7005, 2578, 2115, 16, 203, 3639, 2254, 5034, 727, 3128, 861, 16, 203, 3639, 1731, 1578, 919, 2310, 16, 203,...
./full_match/5/0x0C2a79a9f8BDfE2Ed82CE9e973827A01dce6D36A/sources/project_/contracts/SmartLeaseContract.sol
註冊租賃合約 定義一個事件「建立租約」 在什麼時間建立了租約、租約地址、房東地址、房客數量 定義一個陣列,裡面放的是租約地址 定義一個函式,建立租約
contract SmartLeaseRegistry { event LeaseContractCreated( uint256 timestamp, address newLeaseContractAddress, address landlord, uint8 capacity ); address[] contracts; function createLease(uint8 _capacity) public { address newLeaseContract = address( ...
1,875,704
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 169, 106, 124, 166, 233, 237, 168, 105, 258, 169, 116, 230, 166, 243, 235, 168, 117, 231, 225, 166, 111, 253, 168, 127, 107, 165, 121, 227, 166, 227, 238, 165, 123, 238, 165, 124, 119, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 19656, 17746, 4243, 288, 203, 565, 871, 23175, 8924, 6119, 12, 203, 3639, 2254, 5034, 2858, 16, 203, 3639, 1758, 394, 17746, 8924, 1887, 16, 203, 3639, 1758, 19193, 80, 517, 16, 203, 3639, 2254, 28, 7519, 203, 565, 11272, ...