file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
// SPDX-License-Identifier: MIT // Copied and adjusted from OpenZeppelin // Adjustments: // - modifications to support ERC-677 // - removed require messages to save space // - removed unnecessary require statements // - removed GSN Context // - upgraded to 0.8 to drop SafeMath // - let name() and symbol() be implemente...
* @dev Hook that is called before any transfer of tokens. This includes minting and burning. Calling conditions: - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens will be to transferred to `to`. - when `from` is zero, `amount` tokens will be minted for `to`. - when `to` is zero, `amount` of ``from...
function _beforeTokenTransfer(address from, address to, uint256 amount) virtual internal { }
5,378,841
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13725, 716, 353, 2566, 1865, 1281, 7412, 434, 2430, 18, 1220, 6104, 312, 474, 310, 471, 18305, 310, 18, 21020, 4636, 30, 300, 1347, 1375, 2080, 68, 471, 1375, 869, 68, 854, 3937, 1661, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 3844, 13, 5024, 2713, 288, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/56/0x998585F0df439Ef26e629CCBF0D67aC192127C15/sources/StratX.sol
this vault is purely for staking. eg. WBNB-AFI staking vault.
bool public isAfiComp;
11,063,207
[ 1, 4625, 348, 7953, 560, 30, 225, 333, 9229, 353, 16618, 715, 364, 384, 6159, 18, 9130, 18, 678, 15388, 38, 17, 37, 1653, 384, 6159, 9229, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1426, 1071, 353, 12664, 77, 2945, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x965Dc715EcD99C1CB2D3600D68F59A6FeF8Dd37C/sources/PriceOracle.sol
* @notice Gets the price of the token specified. @param tokenAddr The address of the token @return Returns the token price/
function getTokenPrice (address tokenAddr) external view override returns (uint256) { return _tokenPrice[tokenAddr]; }
4,219,697
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11881, 326, 6205, 434, 326, 1147, 1269, 18, 632, 891, 1147, 3178, 1021, 1758, 434, 326, 1147, 632, 2463, 2860, 326, 1147, 6205, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 9162, 5147, 261, 2867, 1147, 3178, 13, 3903, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 2316, 5147, 63, 2316, 3178, 15533, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity 0.4.24; pragma experimental "v0.5.0"; /* Copyright 2018 dYdX Trading Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENS...
If in OPEN state, but the position is closed, set to CLOSED state
function setStateClosedIfClosed( ) private { if (state == State.OPEN && Margin(DYDX_MARGIN).isPositionClosed(POSITION_ID)) { state = State.CLOSED; emit CompletelyClosed(); } }
2,131,584
[ 1, 4625, 348, 7953, 560, 30, 225, 971, 316, 11919, 919, 16, 1496, 326, 1754, 353, 4375, 16, 444, 358, 27160, 919, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12947, 7395, 2047, 7395, 12, 203, 565, 262, 203, 3639, 3238, 203, 565, 288, 203, 3639, 309, 261, 2019, 422, 3287, 18, 11437, 597, 490, 5243, 12, 40, 61, 28826, 67, 19772, 7702, 2934, 291, 2555, 7395, 12, 15258, 67, 73...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "./ERC20.sol"; import "./Dubi.sol"; import "./IHodl.sol"; import "./MintMath.sol"; contract Purpose is ERC20 { // The DUBI contract, required for auto-minting DUBI on burn. Dubi private immutable _dubi; // Th...
* @dev Get the next op id for `user`. Hodl and Prps share the same opCounter to enforce a consistent order in which pending ops are finalized/reverted across contracts. This function can only be called by Hodl./
function assertFinalizeFIFOShared(address user, uint64 opId) public onlyHodl returns (bool) { _assertFinalizeFIFO(user, opId); return true; }
491,215
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 326, 1024, 1061, 612, 364, 1375, 1355, 8338, 670, 369, 80, 471, 2301, 1121, 7433, 326, 1967, 1061, 4789, 358, 12980, 279, 11071, 1353, 316, 1492, 4634, 6727, 854, 727, 1235, 19, 266,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1815, 7951, 554, 1653, 3313, 7887, 12, 2867, 729, 16, 2254, 1105, 1061, 548, 13, 203, 3639, 1071, 203, 3639, 1338, 44, 369, 80, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 389, 11231, 7951, 554, 1653, 33...
// SPDX-License-Identifier: AGPL-3.0-only /* Wallets.sol - SKALE Manager Copyright (C) 2021-Present SKALE Labs @author Dmytro Stebaiev @author Artem Payvin @author Vadim Yavorsky SKALE Manager is free software: you can redistribute it and/or modify it under the terms of the GNU Affero Gene...
* @dev Reimburse gas for node by schain wallet. If schain wallet has not enough funds than transaction will be reverted. `schainId` - schain that will reimburse desired transaction `spender` - address to send reimbursed funds `spentGas` - amount of spent gas that should be reimbursed to desired node `isDebt` - paramete...
function refundGasBySchain( bytes32 schainId, address payable spender, uint spentGas, bool isDebt ) external allowTwo("SkaleDKG", "MessageProxyForMainnet") { uint amount = tx.gasprice * spentGas; if (isDebt) { amount += (_schainDebt...
1,701,110
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 868, 381, 70, 295, 307, 16189, 364, 756, 635, 272, 5639, 9230, 18, 971, 272, 5639, 9230, 711, 486, 7304, 284, 19156, 2353, 2492, 903, 506, 15226, 329, 18, 1375, 87, 5639, 548, 68, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16255, 27998, 858, 55, 5639, 12, 203, 3639, 1731, 1578, 272, 5639, 548, 16, 203, 3639, 1758, 8843, 429, 17571, 264, 16, 203, 3639, 2254, 26515, 27998, 16, 203, 3639, 1426, 353, 758, 23602, 203, 565, 262, 203, 3639, 3903...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; // Base import "../openzeppelin-presets/finance/PaymentSplitter.sol"; // Meta transactions import "@openzeppelin/contracts/metatx/ERC2771Context.sol"; import { ProtocolControl } from "../ProtocolControl.sol"; /** * Royalty automatically add...
@dev The protocol control center. @dev Contract level metadata. @dev Checks whether the protocol is paused.
modifier onlyProtocolAdmin() { require( controlCenter.hasRole(controlCenter.DEFAULT_ADMIN_ROLE(), _msgSender()), "Royalty: only a protocol admin can call this function." ); _; } address payable _controlCenter, address _trustedForwarder, st...
1,079,876
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1021, 1771, 3325, 4617, 18, 632, 5206, 13456, 1801, 1982, 18, 632, 5206, 13074, 2856, 326, 1771, 353, 17781, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 5752, 4446, 1435, 288, 203, 3639, 2583, 12, 203, 5411, 3325, 8449, 18, 5332, 2996, 12, 7098, 8449, 18, 5280, 67, 15468, 67, 16256, 9334, 389, 3576, 12021, 1435, 3631, 203, 5411, 315, 54, 13372, 15006, 30, 1338, 2...
./partial_match/1/0x1Fa85cbB83B065E5Eb3Ea302Dc49A9Cde7a5D47f/sources/MiniMeToken.sol
Follow the spec to louch the event when transfer 0
Transfer(_from, _to, _amount);
2,760,027
[ 1, 4625, 348, 7953, 560, 30, 225, 16093, 326, 857, 358, 437, 2648, 326, 871, 1347, 7412, 374, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 12279, 24899, 2080, 16, 389, 869, 16, 389, 8949, 1769, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/4/0x06B06b1E810EF08941cb59CD2b7311202dCf869D/sources/contracts/recipientRegistry/KlerosGTCRAdapter.sol
* @dev Recipient registry that uses Kleros GTCR to validate recipients./ Structs
contract KlerosGTCRAdapter is IRecipientRegistry { using RLPReader for bytes; using RLPReader for RLPReader.RLPItem; struct Recipient { address addr; uint256 index; uint256 addedAt; uint256 removedAt; } uint256 private constant STATUS_REGISTERED = 1; address public controller; uint256 ...
8,597,816
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 23550, 4023, 716, 4692, 1475, 749, 538, 19688, 5093, 358, 1954, 12045, 18, 19, 7362, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1475, 749, 538, 16506, 5093, 4216, 353, 467, 18241, 4243, 288, 203, 225, 1450, 534, 14461, 2514, 364, 1731, 31, 203, 225, 1450, 534, 14461, 2514, 364, 534, 14461, 2514, 18, 54, 48, 1102, 874, 31, 203, 203, 203, 225, 1958, ...
./partial_match/1/0xBBbD1BbB4f9b936C3604906D7592A644071dE884/sources/Bridge.sol
Structure for getting tokenAddress by tokenSource and tokenSourceAddress tokenSource => tokenSourceAddress => nativeAddress
mapping(bytes4 => mapping(bytes32 => address)) public tokenSourceMap;
2,665,893
[ 1, 4625, 348, 7953, 560, 30, 225, 13348, 364, 8742, 1147, 1887, 635, 1147, 1830, 471, 1147, 1830, 1887, 1147, 1830, 516, 1147, 1830, 1887, 516, 6448, 1887, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 3890, 24, 516, 2874, 12, 3890, 1578, 516, 1758, 3719, 1071, 1147, 1830, 863, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; contract TokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 publ...
assemble the given address bytecode. If bytecode exists then the _addr is a contract.retrieve the size of the code on target address, this needs assembly
function isContract(address _addr) private view returns (bool) { uint length; assembly { length := extcodesize(_addr) } return (length>0); }
10,697,094
[ 1, 4625, 348, 7953, 560, 30, 19540, 326, 864, 1758, 22801, 18, 971, 22801, 1704, 1508, 326, 389, 4793, 353, 279, 6835, 18, 17466, 326, 963, 434, 326, 981, 603, 1018, 1758, 16, 333, 4260, 19931, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 353, 8924, 12, 2867, 389, 4793, 13, 3238, 1476, 1135, 261, 6430, 13, 288, 203, 565, 2254, 769, 31, 203, 565, 19931, 288, 203, 1377, 769, 519, 1110, 7000, 554, 24899, 4793, 13, 203, 565, 289, 203, 565, 327, 261, 2469, ...
pragma solidity >=0.4.24; import "./interfaces/IPolicy.sol"; import "./libraries/SafeMath.sol"; import "./modules/Role.sol"; import "./interfaces/IERC20.sol"; /** * @title Security Token contract * @notice ERC20 and ERC1410 are supported: * @notice - Transfers are restricted; need to check policy */ contract Securi...
* @notice Allows owner to change token granularity @param _granularity granularity level of the token/
function changeGranularity(uint256 _granularity) public onlyOwnerOrRole("configure") { require(_granularity != 0, "Invalid granularity"); emit ChangeGranularity(granularity, _granularity); granularity = _granularity; }
5,451,219
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 25619, 3410, 358, 2549, 1147, 25380, 632, 891, 389, 75, 27234, 25380, 1801, 434, 326, 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,...
[ 1, 1, 1, 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, 2549, 43, 27234, 12, 11890, 5034, 389, 75, 27234, 13, 1071, 1338, 5541, 1162, 2996, 2932, 14895, 7923, 288, 203, 3639, 2583, 24899, 75, 27234, 480, 374, 16, 315, 1941, 25380, 8863, 203, 3639, 3626, 7576, 43, 27234, 12, ...
./full_match/137/0xcF9d2BD7b4335cD038C5Dae0C12e681185307437/sources/project_/contracts/Pool.sol
using for better readability. @notice Multiplier used for calculating playerIndex to avoid precision issues. @notice Maximum Flexible Deposit Amount in case of flexible pools. @notice The time duration (in seconds) of each segment. @notice The time duration (in seconds) of last segment (waiting round). @notice The per...
struct Player { bool withdrawn; bool canRejoin; bool isWinner; address addr; uint64 withdrawalSegment; uint64 mostRecentSegmentPaid; uint256 amountPaid; uint256 netAmountPaid; uint256 depositAmount; } event Deposit(address indexe...
3,766,967
[ 1, 4625, 348, 7953, 560, 30, 225, 1450, 364, 7844, 855, 2967, 18, 632, 20392, 5991, 5742, 1399, 364, 21046, 7291, 1016, 358, 4543, 6039, 8296, 18, 632, 20392, 18848, 478, 21873, 4019, 538, 305, 16811, 316, 648, 434, 16600, 1523, 16000...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19185, 288, 203, 3639, 1426, 598, 9446, 82, 31, 203, 3639, 1426, 848, 426, 5701, 31, 203, 3639, 1426, 353, 59, 7872, 31, 203, 3639, 1758, 3091, 31, 203, 3639, 2254, 1105, 598, 9446, 287, 4131, 31, 203, 3639, 2254, 11...
./partial_match/1/0x26DB5439F651CAF491A87d48799dA81F191bDB6b/sources/CashBetCoin.sol
Employees of CashBet may decrease the locked token value and/or decrease the locked token expiration date. These values may not ever be increased by an employee. We don't modify expired locks (they are already 0) Ensure nothing gets bigger. Ensure something has decreased.
function decreaseLock(uint256 _value, uint256 _time, address _user) public only_employees(_user) returns (bool success) { User storage user = users[_user]; require(user.lock_endTime > block.timestamp); require(_value <= user.lock_value); require(_time <= user.lock_endTime); require(_value < user....
4,239,643
[ 1, 4625, 348, 7953, 560, 30, 225, 512, 23377, 25521, 434, 385, 961, 38, 278, 2026, 20467, 326, 8586, 1147, 460, 471, 19, 280, 20467, 326, 8586, 1147, 7686, 1509, 18, 225, 8646, 924, 2026, 486, 14103, 506, 31383, 635, 392, 24539, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20467, 2531, 12, 11890, 5034, 389, 1132, 16, 2254, 5034, 389, 957, 16, 1758, 389, 1355, 13, 1071, 1338, 67, 351, 2817, 25521, 24899, 1355, 13, 1135, 261, 6430, 2216, 13, 288, 203, 565, 2177, 2502, 729, 273, 3677, 63, ...
pragma solidity ^0.4.17; interface Deployer_Interface { function newContract(address _party, address user_contract, uint _start_date) public payable returns (address created); function newToken() public returns (address created); } interface DRCT_Token_Interface { function addressCount(address _swap) pu...
Sets the token_deployer address @param "_tdeployer": The new token deployer address/
function settokenDeployer(address _tdeployer) public onlyOwner() { token_deployer_address = _tdeployer; tokenDeployer = Deployer_Interface(_tdeployer); }
7,222,636
[ 1, 4625, 348, 7953, 560, 30, 225, 11511, 326, 1147, 67, 12411, 264, 1758, 632, 891, 4192, 88, 12411, 264, 6877, 1021, 394, 1147, 7286, 264, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 2316, 10015, 264, 12, 2867, 389, 88, 12411, 264, 13, 1071, 1338, 5541, 1435, 288, 203, 565, 1147, 67, 12411, 264, 67, 2867, 273, 389, 88, 12411, 264, 31, 203, 565, 1147, 10015, 264, 273, 7406, 264, 67, 1358, 2489...
/** *Submitted for verification at Etherscan.io on 2020-09-15 */ // @AmpelforthOrg + @BalancerLabs => Elastic smart pool pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // File: configurable-rights-pool/contracts/IBFactory.sol interface IBPool { function rebind(address token, uint balance, uint den...
This loop contains external calls External calls are to math libraries or the underlying pool, so low risk Make sure it does nothing if the new and old weights are the same (saves gas) It's a degenerate case if they're *all* the same, but you certainly could have a plan where you only change some of the weights in the...
for (uint i = 0; i < tokens.length; i++) { weightDelta = BalancerSafeMath.bsub(gradualUpdate.startWeights[i], gradualUpdate.endWeights[i]); deltaPerBlock = BalancerSafeMath.bdiv(weightDelta, blockPeriod); ...
13,060,990
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 2798, 1914, 3903, 4097, 11352, 4097, 854, 358, 4233, 14732, 578, 326, 6808, 2845, 16, 1427, 4587, 18404, 4344, 3071, 518, 1552, 5083, 309, 326, 394, 471, 1592, 5376, 854, 326, 1967, 261, 87, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 2430, 18, 2469, 31, 277, 27245, 288, 203, 203, 10792, 3119, 9242, 273, 605, 5191, 9890, 10477, 18, 70, 1717, 12, 9974, 1462, 1891, 18, 1937, 16595, 63, 77, 6487, 203, 4766, 13...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import {GammaOperator} from "./GammaOperator.sol"; import {IGammaRedeemerV1} from "./interfaces/IGammaRedeemerV1.sol"; import {IPokeMe} from "./interfaces/IPokeMe.sol"; import {ITaskTreasury} from "./interfaces/ITaskTreasury.sol"; import {IResolver} from "./interf...
* @notice parses the passed in action arguments to get the arguments for a mint action @param _args general action arguments structure @return arguments for a mint action/
function _parseMintArgs(ActionArgs memory _args) internal pure returns (MintArgs memory) { require( _args.actionType == ActionType.MintShortOption, "Actions: can only parse arguments for mint actions" ); require( _args.owner != ...
27,825
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 8940, 326, 2275, 316, 1301, 1775, 358, 336, 326, 1775, 364, 279, 312, 474, 1301, 632, 891, 389, 1968, 7470, 1301, 1775, 3695, 632, 2463, 1775, 364, 279, 312, 474, 1301, 19, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2670, 49, 474, 2615, 12, 1803, 2615, 3778, 389, 1968, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 49, 474, 2615, 3778, 13, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 389, 1968, 18, 1128, 559,...
pragma solidity 0.5.17; import "@openzeppelin/contracts/ownership/Ownable.sol"; import "../interfaces/Comptroller.sol"; import "../interfaces/PriceOracle.sol"; import "../interfaces/CERC20.sol"; import "../interfaces/CEther.sol"; import "../Utils.sol"; contract CompoundOrder is Utils(address(0), address(0), address(...
* @notice Returns the length of the user's investments array. @return length of the user's investments array/
function investmentsCount(address _userAddr) public view returns (uint256 _count) { return userInvestments[_userAddr].length; }
15,851,851
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2860, 326, 769, 434, 326, 729, 1807, 2198, 395, 1346, 526, 18, 632, 2463, 769, 434, 326, 729, 1807, 2198, 395, 1346, 526, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2198, 395, 1346, 1380, 12, 2867, 389, 1355, 3178, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 389, 1883, 13, 203, 565, 288, 203, 3639, 327, 729, 3605, 395, 1346, 63, 67, 1355, 3178, 8009, ...
/* author:yqq date:2018-12-16 21:44 desc : solidiy notes */ pragma solidity ^0.4.20; contract senderTest{ address public _owner; function senderTest() public{ _owner = msg.sender; //get the sender's addr by the global variable 'msg' //if change the account , the ms...
get the sender's balance
return msg.sender.balance;
12,993,773
[ 1, 4625, 348, 7953, 560, 30, 336, 326, 5793, 1807, 11013, 7010, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 327, 1234, 18, 15330, 18, 12296, 31, 4202, 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.16; contract DSMath { function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x); } function sub(uint x, uint y) internal pure returns (uint z) { require((z = x - y) <= x); } function mul(uint x, uint y) internal pure returns (uint z...
DSProxyFactory This factory deploys new proxy instances through build() Deployed proxy addresses are logged deploys a new proxy instance sets owner of proxy to caller
contract DSProxyFactory { event Created(address indexed sender, address proxy, address cache); mapping(address=>bool) public isProxy; DSProxyCache public cache = new DSProxyCache(); function build() public returns (DSProxy proxy) { proxy = build(msg.sender); } function build(address ow...
6,688,689
[ 1, 4625, 348, 7953, 560, 30, 225, 8678, 3886, 1733, 1220, 3272, 5993, 383, 1900, 394, 2889, 3884, 3059, 1361, 1435, 7406, 329, 2889, 6138, 854, 7545, 5993, 383, 1900, 279, 394, 2889, 791, 1678, 3410, 434, 2889, 358, 4894, 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, 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, 8678, 3886, 1733, 288, 203, 565, 871, 12953, 12, 2867, 8808, 5793, 16, 1758, 2889, 16, 1758, 1247, 1769, 203, 565, 2874, 12, 2867, 9207, 6430, 13, 1071, 353, 3886, 31, 203, 565, 8678, 3886, 1649, 1071, 1247, 273, 394, 8678...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
закидывать сообщениями об ошибках
rus_verbs:закидывать{},
5,487,697
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 145, 120, 145, 113, 145, 123, 145, 121, 145, 117, 146, 238, 145, 115, 145, 113, 146, 229, 146, 239, 225, 146, 228, 145, 127, 145, 127, 145, 114, 146, 236, 145, 118, 145, 126, 145, 121, 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, 8010, 67, 502, 2038, 30, 145, 120, 145, 113, 145, 123, 145, 121, 145, 117, 146, 238, 145, 115, 145, 113, 146, 229, 146, 239, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.25; import "./TPLBasicValidatorInterface.sol"; import "../../AttributeRegistryInterface.sol"; import "../../BasicJurisdictionInterface.sol"; /** * @title An instance of TPLBasicValidator, issue & revoke an attribute type. */ contract TPLBasicValidator is TPLBasicValidatorInterface { // decl...
* @notice Check if contract is assigned as a validator on the jurisdiction. @return True if validator is assigned, false otherwise./
function isValidator() external view returns (bool) { uint256 totalValidators = _jurisdiction.countValidators(); for (uint256 i = 0; i < totalValidators; i++) { address validator = _jurisdiction.getValidator(i); if (validator == address(this)) { return true; } } return ...
12,809,382
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2073, 309, 6835, 353, 6958, 487, 279, 4213, 603, 326, 525, 23510, 72, 2228, 18, 632, 2463, 1053, 309, 4213, 353, 6958, 16, 629, 3541, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 4908, 639, 1435, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 565, 2254, 5034, 2078, 19420, 273, 389, 78, 23510, 72, 2228, 18, 1883, 19420, 5621, 203, 377, 203, 565, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 2...
pragma solidity ^0.5.11; import "openzeppelin-solidity/contracts/payment/escrow/RefundEscrow.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./lifecycle/Finalizable.sol"; import "./lifecycle/Timelock.sol"; /** * @title RefundableTask * @dev Allows creation of refundable task contract. */...
@dev Throws if called by any account other than the beneficiary.
modifier onlyBeneficiary() { require(msg.sender == _escrow.beneficiary(), "RefundableTask: caller is not the beneficiary"); _; }
5,511,568
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 22435, 309, 2566, 635, 1281, 2236, 1308, 2353, 326, 27641, 74, 14463, 814, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 38, 4009, 74, 14463, 814, 1435, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 389, 742, 492, 18, 70, 4009, 74, 14463, 814, 9334, 315, 21537, 429, 2174, 30, 4894, 353, 486, 326, 27641, 74, 14463, 814, 8863, 20...
./partial_match/3/0x6F6109b4356bC8F080f86369220311ecE86C64fF/sources/SeekGold.sol
* Liquifies tokens to ethereum./ burn the sold tokens update dividends tracker dividing by zero is a bad idea update the amount of dividends per token
function sell(uint256 _amountOfTokens) public userCheck onlybelievers () contractLockCheck{ address _customerAddress = msg.sender; require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress], "Invalid token"); uint256 _tokens = _amountOfTokens; uint256 _ethereum =...
5,255,458
[ 1, 4625, 348, 7953, 560, 30, 380, 511, 18988, 5032, 2430, 358, 13750, 822, 379, 18, 19, 18305, 326, 272, 1673, 2430, 1089, 3739, 350, 5839, 9745, 3739, 10415, 635, 3634, 353, 279, 5570, 21463, 1089, 326, 3844, 434, 3739, 350, 5839, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 357, 80, 12, 11890, 5034, 389, 8949, 951, 5157, 13, 1071, 729, 1564, 1338, 13285, 1385, 2496, 1832, 6835, 2531, 1564, 95, 203, 4202, 203, 3639, 1758, 389, 10061, 1887, 273, 1234, 18, 15330, 31, 203, 3639, 203, 3639, 258...
/** *Submitted for verification at Etherscan.io on 2021-10-22 */ // Sources flattened with hardhat v2.6.4 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library ...
* @dev How many are left for this address/
function allowListClaimLeft(address owner) external view returns (uint256){ require(owner != address(0), 'Zero address not on Allow List'); return _allowListAmount[owner] - _allowListClaimed[owner]; }
6,707,832
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9017, 4906, 854, 2002, 364, 333, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1699, 682, 9762, 3910, 12, 2867, 3410, 13, 3903, 1476, 1135, 261, 11890, 5034, 15329, 203, 3639, 2583, 12, 8443, 480, 1758, 12, 20, 3631, 296, 7170, 1758, 486, 603, 7852, 987, 8284, 203, 203, 3639, 327, 389, 5965, 682, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.2 < 0.9.0; interface IMinteable { function mint(address _winner) external; } /// @title Representacion de un torneo usada por los NFTS contract Tournament { /// @notice Manager es el cargado de administrar el torneo, agregar equipo y determinar el ganador ...
@notice Manager es el cargado de administrar el torneo, agregar equipo y determinar el ganador @notice Listado de equipos participantes @notice Tabla de puntos @notice Posicion del team en el array de teams @notice Nombre del torneo @notice Variable que dice si el torneo esta abierto a inscripciones @notice Variable q...
constructor(address _manager, string memory _name, address _prize) { prize = IMinteable(_prize); manager = _manager; name = _name; emit TournamentNew(manager, name, address(prize)); }
1,040,211
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 8558, 5001, 415, 276, 3175, 6821, 443, 30162, 297, 415, 8934, 82, 4361, 16, 1737, 1574, 297, 1298, 625, 83, 677, 6328, 297, 415, 314, 304, 23671, 632, 20392, 987, 6821, 443, 1298, 625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2867, 389, 4181, 16, 533, 3778, 389, 529, 16, 1758, 389, 683, 554, 13, 288, 203, 565, 846, 554, 273, 6246, 474, 73, 429, 24899, 683, 554, 1769, 203, 565, 3301, 273, 389, 4181, 31, 203, 565, 508, 273, 389, 529, ...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.10; /** @title A library for deploying contracts EIP-3171 style. @author zefram.eth <https://twitter.com/boredGenius> */ library CREATE3Optimized { error ErrorCreatingProxy(); error ErrorCreatingContract(); /** @notice The bytecode for a contract...
Call proxy with final init code solhint-disable avoid-low-level-calls
(bool success, ) = proxy.call(_creationCode);
12,939,535
[ 1, 4625, 348, 7953, 560, 30, 225, 3049, 2889, 598, 727, 1208, 981, 3704, 11317, 17, 8394, 4543, 17, 821, 17, 2815, 17, 12550, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 261, 6430, 2216, 16, 262, 273, 2889, 18, 1991, 24899, 17169, 1085, 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, -...
./full_match/1/0x558055ae71ee1BC926905469301a232066eD4673/sources/contracts/ProtocolGovernance.sol
@inheritdoc IProtocolGovernance
function maxTokensPerVault() external view returns (uint256) { return _params.maxTokensPerVault; }
4,904,550
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 467, 5752, 43, 1643, 82, 1359, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 943, 5157, 2173, 12003, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 2010, 18, 1896, 5157, 2173, 12003, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/5/0xe28731a7E31451F62Da58Dfa8fa9d4681BD4C057/sources/project_/contracts/trade.sol
payable(seller).transfer(msg.value); send the ETH to the seller
function buy(uint256 _tokenId,uint256 payment) external { uint256 price = tokenIdToPrice[_tokenId]; require(price > 0, 'This token is not for sale'); require(payment == price, 'Incorrect value'); address seller = ownerOf(_tokenId); transfer(seller, msg.sender, _token...
1,857,390
[ 1, 4625, 348, 7953, 560, 30, 225, 8843, 429, 12, 1786, 749, 2934, 13866, 12, 3576, 18, 1132, 1769, 225, 1366, 326, 512, 2455, 358, 326, 29804, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 12, 11890, 5034, 389, 2316, 548, 16, 11890, 5034, 5184, 13, 3903, 288, 203, 3639, 2254, 5034, 6205, 273, 1147, 28803, 5147, 63, 67, 2316, 548, 15533, 203, 3639, 2583, 12, 8694, 405, 374, 16, 296, 2503, 1147, 353,...
// SPDX-License-Identifier: GPL-3.0-or-later // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is dis...
* @dev Inserts a 5 bit unsigned integer shifted by an offset into a 256 bit word, replacing the old value. Returns the new word. Assumes `value` only uses its least significant 5 bits, otherwise it may overwrite sibling bytes./
function insertUint5( bytes32 word, uint256 value, uint256 offset ) internal pure returns (bytes32) { bytes32 clearedWord = bytes32(uint256(word) & ~(_MASK_5 << offset)); return clearedWord | bytes32(value << offset); }
277,586
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 8040, 87, 279, 1381, 2831, 9088, 3571, 21340, 635, 392, 1384, 1368, 279, 8303, 2831, 2076, 16, 13993, 326, 1592, 460, 18, 2860, 326, 394, 2076, 18, 25374, 1375, 1132, 68, 1338, 4692, 2097...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2243, 5487, 25, 12, 203, 3639, 1731, 1578, 2076, 16, 203, 3639, 2254, 5034, 460, 16, 203, 3639, 2254, 5034, 1384, 203, 565, 262, 2713, 16618, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 1731, 1578, 16054, 3944, 273, 1731...
./full_match/1/0xbc6bFd76ED7F574eA3E8419EBF7cc778F5219d8e/sources/contracts/libs/Create2.sol
* @dev Deploys a contract using `CREATE2`. The address where the contract will be deployed can be known in advance via {computeAddress}. The bytecode for a contract can be obtained from Solidity with `type(contractName).creationCode`. Requirements: - `bytecode` must not be empty. - `salt` must have not been used for `b...
function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) { require(address(this).balance >= amount, "Create2: insufficient balance"); require(bytecode.length != 0, "Create2: bytecode length is zero"); assembly { addr := create2(amount, add(bytecode, 0x20),...
8,337,548
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4019, 383, 1900, 279, 6835, 1450, 1375, 9344, 22, 8338, 1021, 1758, 1625, 326, 6835, 903, 506, 19357, 848, 506, 4846, 316, 8312, 3970, 288, 9200, 1887, 5496, 1021, 22801, 364, 279, 6835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 7286, 12, 11890, 5034, 3844, 16, 1731, 1578, 4286, 16, 1731, 3778, 22801, 13, 2713, 1135, 261, 2867, 3091, 13, 288, 203, 565, 2583, 12, 2867, 12, 2211, 2934, 12296, 1545, 3844, 16, 315, 1684, 22, 30, 2763, 11339, 11013,...
./full_match/4/0x0Cd4aB3C76E1F452d951118c8a3861Ca533cef09/sources/Cryptogotchi.sol
hatch device from egg stops reentrancy
function hatch(uint256 tokenId) public { require(hatchingEnabled, "!h"); require(_isApprovedOrOwner(_msgSender(), tokenId), "!o"); Device storage device = unit[tokenId]; require(device.createdAt == MAX_TIMESTAMP, "!e"); if (device.color > 0) { ...
816,939
[ 1, 4625, 348, 7953, 560, 30, 225, 366, 505, 2346, 628, 25144, 12349, 283, 8230, 12514, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 366, 505, 12, 11890, 5034, 1147, 548, 13, 1071, 288, 203, 3639, 2583, 12, 76, 505, 310, 1526, 16, 17528, 76, 8863, 203, 3639, 2583, 24899, 291, 31639, 1162, 5541, 24899, 3576, 12021, 9334, 1147, 548, 3631, 17528, 83, 88...
./partial_match/1/0xcc46464684909A10d2eCD1174F731a207Ff9e77d/sources/src/SubscriptionManagerV2.sol
* ........ ..::::::::::::. . .:::::::::::::::. =+-. --::::::::::::::::. =+++- ##+::::::::::::::. =+++++ #####: .::::::::::. =++++++ -######: .:::::::. =++++++- ######: :. .::::. =+++++++ #######: -=-:. .:. =+++++++ +######: -=====:. =++++++= :######: -...
contract SubscriptionManager is OwnableRoles { pragma solidity 0.8.21; import {Nchart} from "./Nchart.sol"; struct StakingInfo { address staker; uint40 stakeLength; uint40 stakingExpirationTimestamp; uint256 stakedAmount; } struct StakingConfig { uint40 stakeSubscri...
16,069,859
[ 1, 4625, 348, 7953, 560, 30, 380, 2398, 1372, 838, 2777, 540, 6116, 2866, 2866, 2866, 2866, 2866, 2866, 18, 225, 263, 4202, 263, 2866, 2866, 2866, 2866, 2866, 2866, 2866, 13147, 225, 273, 18549, 18, 377, 1493, 2866, 2866, 2866, 2866, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12132, 1318, 353, 14223, 6914, 6898, 288, 203, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 5340, 31, 203, 5666, 288, 50, 11563, 97, 628, 25165, 50, 11563, 18, 18281, 14432, 203, 565, 1958, 934, 6159, 966, 288, 203, 3639, ...
./full_match/80001/0xB042aDcf658a28AF54039016DC25B4404f378b80/sources/contracts/Contract.sol
Create a function to buy coffeeRequire that the amount paid is equal to the costIncrement the total coffeeAdd coffee data to the arraySend Ether to the ownerEmit an event
function buyCoffee( string memory _message, string memory _name ) public payable { uint256 _payAmount = msg.value; require(_payAmount > 0, "I need ETH to buy coffee"); totalCoffee += 1; coffee.push(Coffee(msg.sender, _message, _name, _payAmount, block.timestamp)...
9,450,292
[ 1, 4625, 348, 7953, 560, 30, 1788, 279, 445, 358, 30143, 276, 3674, 1340, 8115, 716, 326, 3844, 30591, 353, 3959, 358, 326, 6991, 10798, 326, 2078, 276, 3674, 1340, 986, 276, 3674, 1340, 501, 358, 326, 526, 3826, 512, 1136, 358, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 8843, 429, 288, 203, 3639, 2254, 5034, 389, 10239, 6275, 273, 1234, 18, 1132, 31, 203, 3639, 2583, 2...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /// @title INiftyForge721 /// @author Simon Fremaux (@dievardump) /// @notice Interface to interact with a NiftyFroge721 on a network interface INiftyForge721 { struct ModuleInit { address module; bool enabled; bool minter; } ...
@notice override a tokenURI. For reasons. @param tokenId tokenId @param newTokenURI the new token uri
function overrideTokenURI(uint256 tokenId, string memory newTokenURI) external onlyOwner { tokenURIOverride[tokenId] = newTokenURI; }
14,060,988
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3849, 279, 1147, 3098, 18, 2457, 14000, 18, 632, 891, 1147, 548, 1147, 548, 632, 891, 394, 1345, 3098, 326, 394, 1147, 2003, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3849, 1345, 3098, 12, 11890, 5034, 1147, 548, 16, 533, 3778, 394, 1345, 3098, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 1147, 3098, 6618, 63, 2316, 548, 65, 273, 394, 1345, 3098, 31, 203, 5...
./partial_match/1/0x94b2D91aa89BA30f2E080205C14E83fcdeE310DD/sources/WorldEarnPlayCommunity.sol
* @dev Encode a string into a `ShortString`, or write it to storage if it is too long./
function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(FALLBACK_SENTINEL); ...
2,893,060
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6240, 279, 533, 1368, 279, 1375, 4897, 780, 9191, 578, 1045, 518, 358, 2502, 309, 518, 353, 4885, 1525, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 358, 4897, 780, 1190, 12355, 12, 1080, 3778, 460, 16, 533, 2502, 1707, 13, 2713, 1135, 261, 4897, 780, 13, 288, 203, 3639, 309, 261, 3890, 12, 1132, 2934, 2469, 411, 3847, 13, 288, 203, 5411, 327, 358, 4897, 780, 12, ...
./full_match/8453/0xEF153cb7bfc04c657Cb7f582C7411556320098B9/sources/contracts/farm/SynthChef.sol
begins with 100% rewards in xsynth
uint256 public xSynthRate = 100;
11,558,300
[ 1, 4625, 348, 7953, 560, 30, 225, 17874, 598, 2130, 9, 283, 6397, 316, 9280, 878, 451, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 619, 10503, 451, 4727, 273, 2130, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xc33611E86bCe050d22f4429031944d1A44aa2d9d/sources/contracts/BridgeETHToBaseETH.sol
@notice Transfers `msg.value` of ETH to `beefyStaker` on `CHAIN_ID` via `hopRouter`. solhint-disable-next-line not-rely-on-time
receive() external payable { address recipient = beefyStaker; uint256 amount = msg.value; uint256 amountOutMin = amount * 95 / 100; uint256 deadline = block.timestamp + 3600; CHAIND_ID, recipient, amount, amountOutMin, dead...
2,941,312
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2604, 18881, 1375, 3576, 18, 1132, 68, 434, 512, 2455, 358, 1375, 70, 1340, 74, 93, 510, 6388, 68, 603, 1375, 1792, 6964, 67, 734, 68, 3970, 1375, 18444, 8259, 8338, 3704, 11317, 17, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 6798, 1435, 3903, 8843, 429, 288, 203, 3639, 1758, 8027, 273, 506, 10241, 93, 510, 6388, 31, 203, 3639, 2254, 5034, 3844, 273, 1234, 18, 1132, 31, 203, 3639, 2254, 5034, 3844, 1182, 2930, 273, 3844, 380, 16848, 342, 2130, 31...
./partial_match/1/0x39B5B793f162BF5c90c34165DE0107f17dFacAE4/sources/contracts/CErc20Delegator.sol
* @notice Get the current allowance from `owner` for `spender` @param owner The address of the account which owns the tokens to be spent @param spender The address of the account which may transfer tokens @return The number of tokens allowed to be spent (-1 means infinite)/
function allowance(address owner, address spender) external view override returns (uint256) { bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("allowance(address,address)", owner, spender)); return abi.decode(data, (uint256)); }
4,336,345
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 326, 783, 1699, 1359, 628, 1375, 8443, 68, 364, 1375, 87, 1302, 264, 68, 632, 891, 3410, 1021, 1758, 434, 326, 2236, 1492, 29065, 326, 2430, 358, 506, 26515, 632, 891, 17571, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1699, 1359, 12, 2867, 3410, 16, 1758, 17571, 264, 13, 3903, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 565, 1731, 3778, 501, 273, 7152, 774, 1767, 13621, 12, 21457, 18, 3015, 1190, 5374, 2932, 5965, 1359, 12, 286...
pragma solidity ^0.4.4; pragma experimental ABIEncoderV2; /* * Copyright© (2018-2020) WeBank Co., Ltd. * * This file is part of weidentity-contract. * * weidentity-contract is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Licens...
Copyright© (2018-2020) WeBank Co., Ltd. This file is part of weidentity-contract. weidentity-contract is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the L...
contract DataBucket { struct DataStruct { } address owner; uint8 constant private SUCCESS = 100; uint8 constant private NO_PERMISSION = 101; uint8 constant private THE_BUCKET_DOES_NOT_EXIST = 102; uint8 constant private THE_BUCKET_IS_USED = 103; uint8 constant pr...
14,086,201
[ 1, 4625, 348, 7953, 560, 30, 3639, 25417, 131, 107, 261, 21849, 17, 18212, 20, 13, 1660, 16040, 7695, 12990, 511, 4465, 18, 4202, 1220, 585, 353, 1087, 434, 732, 10781, 17, 16351, 18, 4202, 732, 10781, 17, 16351, 353, 4843, 17888, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 1910, 4103, 288, 203, 377, 203, 377, 203, 565, 1958, 1910, 3823, 288, 203, 565, 289, 203, 377, 203, 377, 203, 565, 1758, 3410, 31, 203, 377, 203, 565, 2254, 28, 5381, 3238, 16561, 273, 2130, 31, 203, 565, 2254, 28, 5381,...
./full_match/80001/0xb7ed978ad610Ed9c7ff3336b39E708fE5dB7222e/sources/contracts/rankedAccess4.sol
override the tokenURI so that we don't have to be setting the tokenURI individually... return string(abi.encodePacked(batchUri, _tokenId.toString()));
function tokenURI(uint256 _tokenId) public view override returns (string memory) { return string(abi.encodePacked(batchUri, uintToString(_tokenId))); }
5,652,853
[ 1, 4625, 348, 7953, 560, 30, 225, 3849, 326, 1147, 3098, 1427, 716, 732, 2727, 1404, 1240, 358, 506, 3637, 326, 1147, 3098, 28558, 2777, 327, 533, 12, 21457, 18, 3015, 4420, 329, 12, 5303, 3006, 16, 389, 2316, 548, 18, 10492, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1147, 3098, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 1476, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 203, 3639, 327, 533, 12, 21457, 18, 3015, 4420, 329, 12, 5303, 3006, 16, 2254, 5808, 24899, 2316, 548, 3719, 1769, ...
./full_match/4/0xc23bb1e37ED1E000972f2d578aBC461728C33C02/sources/browser/remix-clone-nft721-factory.sol
* @dev Internal function to set a `name` and a `symbol` to the token collection./
function _setTokenDetails(string memory name_, string memory symbol_) internal virtual { _name = name_; _symbol = symbol_; }
741,447
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 445, 358, 444, 279, 1375, 529, 68, 471, 279, 1375, 7175, 68, 358, 326, 1147, 1849, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 542, 1345, 3790, 12, 1080, 3778, 508, 67, 16, 533, 3778, 3273, 67, 13, 2713, 5024, 288, 203, 3639, 389, 529, 273, 508, 67, 31, 203, 3639, 389, 7175, 273, 3273, 67, 31, 203, 565, 289, 203, 203, 2, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./CryptoverseAstronauts.sol"; /** * @title Cryptoverse Item System * @dev The cryptoverse item system manages all item related stuff like creating and trading. This * contract may throw the following error codes: * * - E-I1: You are not ...
* @dev Some actions can only be performed by the owner of an item. @param _itemId Item ID to check the owner of./
modifier onlyOwnerOfItem(uint _itemId) { require(msg.sender == itemToOwner[_itemId], "E-I1"); _; }
12,939,017
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10548, 4209, 848, 1338, 506, 9591, 635, 326, 3410, 434, 392, 761, 18, 632, 891, 389, 1726, 548, 4342, 1599, 358, 866, 326, 3410, 434, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 5541, 951, 1180, 12, 11890, 389, 1726, 548, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 761, 774, 5541, 63, 67, 1726, 548, 6487, 315, 41, 17, 45, 21, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203,...
./partial_match/3/0x7F116B3725ee3aBAAc0fe05B54CC8b777951e510/sources/For_Test.sol
string public comment;
mapping (uint=>string) comment;
5,059,126
[ 1, 4625, 348, 7953, 560, 30, 533, 1071, 2879, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1080, 13, 2879, 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, ...
./full_match/80001/0x1086cA67795093D6af31998DaDdB446F5C41006C/sources/contracts/PremiumChallenge.sol
join to challengeaddress _platformTokenAddress = address(platformToken);prizePool[_platformTokenAddress] += metaData.entryFee;
function join() external nonReentrant senderIsAddress challengeStateIsValidForJoin participantNotJoined { uint256 _balance = platformToken.balanceOf(msg.sender); require(_balance >= metaData.entryFee, "Balance to small"); uint256 _allowance = platformToken.allowance(msg.sender, address(this)...
843,389
[ 1, 4625, 348, 7953, 560, 30, 225, 1233, 358, 462, 7862, 75, 684, 72, 663, 389, 9898, 1345, 1887, 273, 1758, 12, 9898, 1345, 1769, 683, 554, 2864, 63, 67, 9898, 1345, 1887, 65, 1011, 11651, 18, 4099, 14667, 31, 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, 1233, 1435, 3903, 1661, 426, 8230, 970, 5793, 2520, 1887, 12948, 1119, 20536, 1290, 4572, 14188, 1248, 4572, 329, 288, 203, 3639, 2254, 5034, 389, 12296, 273, 4072, 1345, 18, 12296, 951, 12, 3576, 18, 15330, 1769, 203, 36...
pragma solidity 0.4.15; import '../Standards/IBasicToken.sol'; import '../Math.sol'; /** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */ contract BasicToken is IBasicToken, Math { //////////////////////// // Mutable state //////////////////////// mapping(addre...
* @dev transfer token for a specified address @param to The address to transfer to. @param value The amount to be transferred./
{ require(to != address(0)); _balances[msg.sender] = sub(_balances[msg.sender], value); _balances[to] = add(_balances[to], value); Transfer(msg.sender, to, value); return true; }
15,785,407
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7412, 1147, 364, 279, 1269, 1758, 632, 891, 358, 1021, 1758, 358, 7412, 358, 18, 632, 891, 460, 1021, 3844, 358, 506, 906, 4193, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 2583, 12, 869, 480, 1758, 12, 20, 10019, 203, 203, 3639, 389, 70, 26488, 63, 3576, 18, 15330, 65, 273, 720, 24899, 70, 26488, 63, 3576, 18, 15330, 6487, 460, 1769, 203, 3639, 389, 70, 26488, 63, 869, 65, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/access/Ownable.sol"; import "./LeafToken.sol"; import "./LeafNft.sol"; /** * @title DApp Leaf * @notice With this dapp you buy an LNFT and while walking you receive LEAFs */ contract LeafDapp is Ownable { /// @dev value to ...
@dev value to go to the next level @dev number of LEAFs that owner receives after deploying contracts @dev minimum steps a player can do @dev maximum steps a player can do @dev maximum level a player can become @dev max supply for token LEAF @dev max supply for 1st level NFTs @dev the NFT price @dev to pause the dapp ...
struct Player { uint32 nbDaySuccess; uint32 level; uint256 oldNbStep; uint256 totalNbStep; uint256 lastUpdateDate; string[] uriIpfs; }
1,011,846
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 460, 358, 1960, 358, 326, 1024, 1801, 632, 5206, 1300, 434, 5380, 6799, 87, 716, 3410, 17024, 1839, 7286, 310, 20092, 632, 5206, 5224, 6075, 279, 7291, 848, 741, 632, 5206, 4207, 6075, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19185, 288, 203, 3639, 2254, 1578, 4264, 4245, 4510, 31, 203, 3639, 2254, 1578, 1801, 31, 203, 3639, 2254, 5034, 1592, 22816, 4160, 31, 203, 3639, 2254, 5034, 2078, 22816, 4160, 31, 203, 3639, 2254, 5034, 1142, 1891, 162...
/** *Submitted for verification at Etherscan.io on 2021-06-22 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.3; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external ...
* @dev Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint2...
7,748,980
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 326, 4232, 39, 3462, 4529, 487, 2553, 316, 326, 512, 2579, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 11013, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 741...
/** *Submitted for verification at Etherscan.io on 2020-10-30 */ pragma solidity ^0.5.11; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256...
Check for overflows
if (_balances[_to] + _value < _balances[_to]) revert();
86,427
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 364, 9391, 87, 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, 3639, 309, 261, 67, 70, 26488, 63, 67, 869, 65, 397, 389, 1132, 411, 389, 70, 26488, 63, 67, 869, 5717, 15226, 5621, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xC18f41600d111a195b107f89e82F45331acE38BB/sources/miningPoolAirdropper.sol
* @dev Returns the average of two numbers. The result is rounded towards zero./ (a + b) / 2 can overflow, so we distribute
function average(uint256 a, uint256 b) internal pure returns (uint256) { return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); }
4,462,934
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 8164, 434, 2795, 5600, 18, 1021, 563, 353, 16729, 23248, 3634, 18, 19, 261, 69, 397, 324, 13, 342, 576, 848, 9391, 16, 1427, 732, 25722, 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, 8164, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 261, 69, 342, 576, 13, 397, 261, 70, 342, 576, 13, 397, 14015, 69, 738, 576, 397, 324, 738, 576, 13,...
./partial_match/56/0x9f9F18aea36A44e56F141A98b68f700A4073A2E8/sources/MasterChef.sol
Reduce BSK per block (reward halving) 8 BSKs per block initially 2 days after from 8 -> 4 4 days after from 4 -> 2 6 days after from 2 -> 1
function reduceRewardPerBlock(uint256 newRewardPerBlock) public onlyOwner { require( bskPerBlock > newRewardPerBlock, "can not larger than previous reward per block" ); require( newRewardPerBlock >= minimumBskPerBlock, "can not smaller than the...
11,060,205
[ 1, 4625, 348, 7953, 560, 30, 225, 24614, 605, 11129, 1534, 1203, 261, 266, 2913, 19514, 6282, 13, 1725, 605, 11129, 87, 1534, 1203, 22458, 576, 4681, 1839, 628, 1725, 317, 1059, 1059, 4681, 1839, 628, 1059, 317, 576, 1666, 4681, 1839,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5459, 17631, 1060, 2173, 1768, 12, 11890, 5034, 394, 17631, 1060, 2173, 1768, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 7081, 79, 2173, 1768, 405, 394, 17631, 1060, 2173, 1768, 16, 203, 5411, 315, 4169, ...
// File: contracts/openzeppelin/Ownable.sol // SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "hardhat/console.sol"; import "./CommonIERC20.sol"; abstract contract Burnable { function burn(uint256 amount) public virtual; function symbol() public pure virtual returns (string memory); function burn(...
* Calculate x + y. Revert on overflow. @param x signed 64.64-bit fixed point number @param y signed 64.64-bit fixed point number @return signed 64.64-bit fixed point number/
function add(int128 x, int128 y) internal pure returns (int128) { int256 result = int256(x) + y; require(result >= MIN_64x64 && result <= MAX_64x64); return int128(result); }
12,943,923
[ 1, 4625, 348, 7953, 560, 30, 380, 9029, 619, 397, 677, 18, 225, 868, 1097, 603, 9391, 18, 632, 891, 619, 6726, 5178, 18, 1105, 17, 3682, 5499, 1634, 1300, 632, 891, 677, 6726, 5178, 18, 1105, 17, 3682, 5499, 1634, 1300, 632, 2463,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 12, 474, 10392, 619, 16, 509, 10392, 677, 13, 2713, 16618, 1135, 261, 474, 10392, 13, 288, 203, 565, 509, 5034, 563, 273, 509, 5034, 12, 92, 13, 397, 677, 31, 203, 565, 2583, 12, 2088, 1545, 6989, 67, 1105, 92,...
./full_match/137/0xD48D300f19Ac77F0C8a329aa926D0D21FCab3C0A/sources/contracts/MasterChef.sol
Withdraw LP tokens from AcornMaster.
function withdraw(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, 'withdraw: not good'); updatePool(_pid); uint256 pending = user.amount.mul(pool.acccakePerShar...
3,750,291
[ 1, 4625, 348, 7953, 560, 30, 225, 3423, 9446, 511, 52, 2430, 628, 432, 3850, 82, 7786, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 67, 6610, 6362, 3576, ...
./full_match/42220/0xdE281a72cb3cA3C64258316AE102B9E06A3d0a3c/sources/project_/contracts/CarbonCreditRakeback.sol
@notice Swaps a given GCO2 token between bundles @param targetBundle_ the bundle where the GCO2 token should be bundled into @param token_ the GCO2 token to swap @param amount_ the amount of tokens to swap @return the amount of tokens arriving in the bundle (after fee)
function swapBundle(CarbonCreditBundleToken targetBundle_, CarbonCreditToken token_, uint256 amount_) external returns (uint256) { return _bundleAndTransfer( targetBundle_, token_, _transferFromAndUnbundle(token_, amount_) ); }
16,327,291
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 5434, 6679, 279, 864, 611, 3865, 22, 1147, 3086, 11408, 632, 891, 1018, 3405, 67, 326, 3440, 1625, 326, 611, 3865, 22, 1147, 1410, 506, 324, 24467, 1368, 632, 891, 1147, 67, 326, 611, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7720, 3405, 12, 39, 11801, 16520, 3405, 1345, 1018, 3405, 67, 16, 13353, 16520, 1345, 1147, 67, 16, 2254, 5034, 3844, 67, 13, 3903, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 9991, 1876, 5912, 12, 203, 5411, ...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error * @dev Based on code by OpenZeppelin: https://github.com/OpenZeppelin/zeppelin-solidity/blob/v1.4.0/contracts/math/SafeMath.sol */ library SafeMath { function mul(uint256 a, uint256 b) internal ...
* @dev Generate tokens to specific address, necessary to accept other cryptos. @param beneficiary Address of the beneficiary. @param newTokens Amount of tokens to be minted./
function generateTokens(address beneficiary, uint256 newTokens) public onlyOwner { require(beneficiary != address(0)); require(newTokens > 0); require(issuedTokens.add(newTokens) <= hardCap); issuedTokens = issuedTokens.add(newTokens); token.mint(beneficiary, newTokens); ...
12,740,567
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6654, 2430, 358, 2923, 1758, 16, 4573, 358, 2791, 1308, 13231, 538, 18, 632, 891, 27641, 74, 14463, 814, 5267, 434, 326, 27641, 74, 14463, 814, 18, 632, 891, 394, 5157, 16811, 434, 2430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2103, 5157, 12, 2867, 27641, 74, 14463, 814, 16, 2254, 5034, 394, 5157, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 70, 4009, 74, 14463, 814, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12, 2704, 5157, 405, 374, 17...
./full_match/80001/0xb82376a5B4306dD44aB56060728839ACD9F95C2e/sources/project_/contracts/TreasurySale.sol
find caller record send token depend on
function saleCall(uint256 _amount, uint side) external onlyCaller { address caller = msg.sender; callerModel memory _caller = getCaller(caller); if (_caller.addr != address(0)) { if (side == 0) { uint256 amount = _amount.mul(_caller.percentIn).div(1000); ...
5,598,877
[ 1, 4625, 348, 7953, 560, 30, 225, 1104, 4894, 1409, 1366, 1147, 2447, 603, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 272, 5349, 1477, 12, 11890, 5034, 389, 8949, 16, 2254, 4889, 13, 3903, 1338, 11095, 288, 203, 3639, 1758, 4894, 273, 1234, 18, 15330, 31, 203, 3639, 4894, 1488, 3778, 389, 16140, 273, 336, 11095, 12, 16140, 1769, 203, 3...
./partial_match/1/0x744F4A490Ef4A37163942a42D3FE557203e194D1/sources/TokenConverter.sol
* @dev user user claim expired reward/only count the rewards over at least one timeSpanupdated last expired idxupdated left locked balance,possible?
function claimFnxExpiredReward() external inited { require(fnxAddress!=address(0),"fnx token should be set"); uint256 txcnt = 0; uint256 i = lockedIndexs[msg.sender].beginIdx; uint256 endIdx = lockedIndexs[msg.sender].totalIdx; uint256 totalRet = 0; ...
4,303,083
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 729, 729, 7516, 7708, 19890, 19, 3700, 1056, 326, 283, 6397, 1879, 622, 4520, 1245, 813, 6952, 7007, 1142, 7708, 2067, 7007, 2002, 8586, 11013, 16, 12708, 35, 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, 7516, 5372, 92, 10556, 17631, 1060, 1435, 3903, 1208, 329, 288, 203, 3639, 2583, 12, 4293, 92, 1887, 5, 33, 2867, 12, 20, 3631, 6, 4293, 92, 1147, 1410, 506, 444, 8863, 203, 540, 203, 3639, 2254, 5034, 2229, 13085, 27...
/** *Submitted for verification at Etherscan.io on 2021-03-12 */ pragma solidity 0.6.6; // File: @openzeppelin/contracts/GSN/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.send...
* @notice Delete the pool settings./
function deleteVsErc20Pool(bytes32 poolID) external { require( _vsErc20Pool[poolID].seller == msg.sender, "not the owner of the pool ID" ); _deleteVsErc20Pool(poolID); }
6,770,786
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2504, 326, 2845, 1947, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1430, 16082, 41, 1310, 3462, 2864, 12, 3890, 1578, 2845, 734, 13, 3903, 288, 203, 3639, 2583, 12, 203, 5411, 389, 6904, 41, 1310, 3462, 2864, 63, 6011, 734, 8009, 1786, 749, 422, 1234, 18, 15330, 16, 203, 5411, 315, 9...
./full_match/80001/0x2971Fa1aFdF653e85c824efb092F162eC52eF9A8/sources/79cf8c59f1fbf6e6a0327920c9a9c49a/Parametric-Crop-Insurance.sol
ethUsdPriceFeed = AggregatorV3Interface(ETH_USD_CONTRACT); audUsdPriceFeed = AggregatorV3Interface(AUD_USD_CONTRACT); gbpUsdPriceFeed = AggregatorV3Interface(GBP_USD_CONTRACT);
constructor() public payable { }
5,612,865
[ 1, 4625, 348, 7953, 560, 30, 225, 13750, 3477, 72, 5147, 8141, 273, 10594, 639, 58, 23, 1358, 12, 1584, 44, 67, 3378, 40, 67, 6067, 2849, 1268, 1769, 20232, 3477, 72, 5147, 8141, 273, 10594, 639, 58, 23, 1358, 12, 37, 12587, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3885, 1435, 1071, 8843, 429, 288, 203, 565, 289, 203, 203, 203, 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...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./owner/Operator.sol"; import "./lib/Babylonian.sol"; import "./lib/FixedPoint.sol"; import "./lib/PancakeswapOracleLibrary.sol"; import "...
CHIP/ETH LP, ETH-based price of CHIP.
uint256 v1 = uint256(twap_1(_token, _amountIn));
5,380,523
[ 1, 4625, 348, 7953, 560, 30, 225, 6469, 2579, 19, 1584, 44, 511, 52, 16, 512, 2455, 17, 12261, 6205, 434, 6469, 2579, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 331, 21, 273, 2254, 5034, 12, 11246, 438, 67, 21, 24899, 2316, 16, 389, 8949, 382, 10019, 1377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0x87569D60333195badD2BcF9db8d7c43660AEe9Eb/sources/Treasury.sol
========== CONSTRUCTOR ========== */
) public { cash = _cash; bond = _bond; share = _share; cashOracle = _cashOracle; boardroom = _boardroom; unirouter = _unirouter; weth = _weth; path = [cash, weth]; startTime = _startTime; cashPriceOne = 10**18; cashPriceCeili...
5,235,747
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 3492, 13915, 916, 422, 1432, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 262, 1071, 288, 203, 3639, 276, 961, 273, 389, 71, 961, 31, 203, 3639, 8427, 273, 389, 26425, 31, 203, 3639, 7433, 273, 389, 14419, 31, 203, 3639, 276, 961, 23601, 273, 389, 71, 961, 23601, 31, 203, 3639, 11094, 13924, 273...
./full_match/4/0xd7983bfCd514F0A4B11A77Ea075910CD898Cb18e/sources/contracts/MyContracts.sol
* @dev Returns whether the specified token exists by checking to see if it has a creator @param _id uint256 ID of the token to query the existence of @return bool whether the token exists/
) internal view returns (bool) { return creators[_id] != address(0); }
652,500
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 2856, 326, 1269, 1147, 1704, 635, 6728, 358, 2621, 309, 518, 711, 279, 11784, 632, 891, 389, 350, 2254, 5034, 1599, 434, 326, 1147, 358, 843, 326, 15782, 434, 632, 2463, 1426, 2856,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 262, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 565, 327, 1519, 3062, 63, 67, 350, 65, 480, 1758, 12, 20, 1769, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
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 Set user profile based on user type - Overwrites profile if address previously existed @param user - do not assume msg.sender as the user profile we're adding: this function is versatile @param uType can be any of 0, 1 or 2/ set admin profile set shop owner profile
function addProfile(address user, uint8 uType, string memory firstName, string memory lastName) public stopInEmergency { if (uType == uint8(UserType.Admin)) { addAdminProfile(user, firstName, lastName); } else if (uType == uint8(UserType.ShopOwner)) { addShopOwnerProfile(user...
2,499,272
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1000, 729, 3042, 2511, 603, 729, 618, 300, 10752, 13284, 3042, 309, 1758, 7243, 20419, 632, 891, 729, 300, 741, 486, 6750, 1234, 18, 15330, 487, 326, 729, 3042, 732, 4565, 6534, 30, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 527, 4029, 12, 2867, 729, 16, 2254, 28, 582, 559, 16, 203, 7734, 533, 3778, 22033, 16, 533, 3778, 23439, 13, 1071, 2132, 382, 1514, 24530, 203, 225, 288, 203, 565, 309, 261, 89, 559, 422, 2254, 28, 12, 1299, 559, 18...
pragma experimental ABIEncoderV2; pragma solidity ^0.5.0; import { DomainObjs } from './DomainObjs.sol'; import { IncrementalMerkleTree } from "./IncrementalMerkleTree.sol"; import { SignUpGatekeeper } from "./gatekeepers/SignUpGatekeeper.sol"; import { BatchUpdateStateTreeVerifier } from "./BatchUpdateStateTreeVerifi...
Insert the new leaf into the message tree
messageTree.insertLeaf(leaf);
12,743,329
[ 1, 4625, 348, 7953, 560, 30, 225, 8040, 326, 394, 7839, 1368, 326, 883, 2151, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 883, 2471, 18, 6387, 9858, 12, 12070, 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, ...
/* Documentation: https://expopulo.readthedocs.io Author: Brandon Chaffee License: MIT */ pragma solidity ^0.4.23; import "../imports/EscrowToken.sol"; contract Moderation is EscrowToken { // Mf1 (Appendix) function voteOnEnableAdmin( address _org, address _target, bool en...
Remove previous votes (if any)If voting to enable, add to total and account sender votesElse set senders votes as zero
) public { uint256 senderStake = orgs[_org].stakeOf[msg.sender]; Admin storage a = orgs[_org].admin[_target]; a.enableVotes = a.enableVotes.sub(a.enableVotesOf[msg.sender]); if(enable){ a.enableVotes = a.enableVotes.add(senderStake); a.enableVotesOf[msg.sender...
1,020,806
[ 1, 4625, 348, 7953, 560, 30, 3581, 2416, 19588, 261, 430, 1281, 13, 2047, 331, 17128, 358, 4237, 16, 527, 358, 2078, 471, 2236, 5793, 19588, 12427, 444, 1366, 414, 19588, 487, 3634, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 1071, 288, 203, 3639, 2254, 5034, 5793, 510, 911, 273, 24030, 63, 67, 3341, 8009, 334, 911, 951, 63, 3576, 18, 15330, 15533, 203, 3639, 7807, 2502, 279, 273, 24030, 63, 67, 3341, 8009, 3666, 63, 67, 3299, 15533, 203, ...
pragma solidity ^0.5.0; interface IERC20 { function approve(address _spender, uint256 _value) external returns(bool); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); } interface NtfPoolI { function tokenDe...
@dev Allows anyone to execute a confirmed transaction. @param _transactionId Transaction ID.
function executeTransaction(bytes32 _transactionId) public notExecuted(_transactionId) { if (isConfirmed(_transactionId)) { Transaction storage tx = transactions[_transactionId]; tx.executed = true; (bool success, bytes memory result) = tx.destination....
12,713,556
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 25619, 1281, 476, 358, 1836, 279, 19979, 2492, 18, 632, 891, 389, 7958, 548, 5947, 1599, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1836, 3342, 12, 3890, 1578, 389, 7958, 548, 13, 203, 3639, 1071, 203, 3639, 486, 23839, 24899, 7958, 548, 13, 203, 565, 288, 203, 3639, 309, 261, 291, 3976, 11222, 24899, 7958, 548, 3719, 288, 203, 5411, 5947, 2502, 222...
pragma solidity ^0.4.23; import 'zeppelin-solidity/contracts/token/ERC20/StandardToken.sol'; import 'zeppelin-solidity/contracts/ownership/Ownable.sol'; import 'zeppelin-solidity/contracts/math/SafeMath.sol'; import "zeppelin-solidity/contracts/lifecycle/Pausable.sol"; contract MidasToken is StandardToken, Pausable {...
calculate refund if over max cap or individual cap user can buy amount they want if reaches hard cap refund ether refund in case user buy over hard cap, individual cap
function buyByEth(address _recipient, uint256 _value) public returns (bool success) { require(_value > 0); require(now >= fundingStartTime); require(now <= fundingEndTime); require(_value >= minEthContribution); require(_value <= maxEthContribution); require(!isFinali...
1,035,627
[ 1, 4625, 348, 7953, 560, 30, 225, 4604, 16255, 309, 1879, 943, 3523, 578, 7327, 3523, 729, 848, 30143, 3844, 2898, 2545, 309, 30093, 7877, 3523, 16255, 225, 2437, 16255, 316, 648, 729, 30143, 1879, 7877, 3523, 16, 7327, 3523, 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, 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, 858, 41, 451, 12, 2867, 389, 20367, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 2583, 24899, 1132, 405, 374, 1769, 203, 3639, 2583, 12, 3338, 1545, 22058, 13649, 1769, 203, 363...
// File: contracts/interfaces/ISaffronBase.sol // SPDX-License-Identifier: MIT pragma solidity ^0.7.1; interface ISaffronBase { enum Tranche {S, AA, A} enum LPTokenType {dsec, principal} // Store values (balances, dsec, vdsec) with TrancheUint256 struct TrancheUint256 { uint256 S; uint256 AA; ui...
Address for each dsec token
address[3][] public dsec_token_addresses;
1,292,552
[ 1, 4625, 348, 7953, 560, 30, 225, 5267, 364, 1517, 302, 3321, 1147, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1758, 63, 23, 6362, 65, 1071, 302, 3321, 67, 2316, 67, 13277, 31, 1850, 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/0x00000000Ede6d8D217c60f93191C060747324bca/sources/src/UniV3Automan.sol
@dev Collect the tokens owed, deduct transaction fees in both tokens and send it to the fee collector @param amount0Delta The change in token0 used to calculate the fee @param amount1Delta The change in token1 used to calculate the fee @param liquidityDelta The change in liquidity used to calculate the principal @retu...
function _collectMinusFees( Position memory pos, uint256 tokenId, uint256 amount0Delta, uint256 amount1Delta, uint128 liquidityDelta, uint256 feePips ) private returns (uint256, uint256) { (uint256 amount0Collected, uint256 amount1Collected) = _collect(tok...
15,622,487
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9302, 326, 2430, 2523, 329, 16, 11140, 853, 2492, 1656, 281, 316, 3937, 2430, 471, 1366, 518, 358, 326, 14036, 8543, 632, 891, 3844, 20, 9242, 1021, 2549, 316, 1147, 20, 1399, 358, 4604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14676, 18434, 2954, 281, 12, 203, 3639, 11010, 3778, 949, 16, 203, 3639, 2254, 5034, 1147, 548, 16, 203, 3639, 2254, 5034, 3844, 20, 9242, 16, 203, 3639, 2254, 5034, 3844, 21, 9242, 16, 203, 3639, 2254, 10392, 4501...
./full_match/43113/0x680B3ea6eD4A603D3A293a9b703D392dB46470aa/sources/farming.sol
* How many miners and eggs per day user will recieve for 1 BNB deposit **/
function getEggsYield() public view returns(uint256,uint256) { uint256 eggsAmount = calculateEggBuy(1 ether , address(this).balance.add(1 ether).sub(1 ether)); uint256 miners = eggsAmount.div(EGGS_TO_HIRE_1MINERS); uint256 day = 1 days; uint256 eggsPerDay = day.mul(miners); u...
7,176,117
[ 1, 4625, 348, 7953, 560, 30, 380, 9017, 4906, 1131, 414, 471, 9130, 564, 1534, 2548, 729, 903, 1950, 21271, 364, 404, 605, 20626, 443, 1724, 26013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4774, 75, 564, 16348, 1435, 1071, 1476, 1135, 12, 11890, 5034, 16, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 9130, 564, 6275, 273, 4604, 41, 14253, 38, 9835, 12, 21, 225, 2437, 269, 1758, 12, 2211, 2934, 12296, 18, ...
pragma solidity ^0.5.2; /* ETICA: a type1 civilization neutral protocol for medical research KEVIN WAD OSSENI */ /* MIT License Copyright © 26/08/2019, KEVIN WAD OSSENI Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), t...
Time when the stake will be claimable
uint endTime;
13,003,881
[ 1, 4625, 348, 7953, 560, 30, 225, 2647, 1347, 326, 384, 911, 903, 506, 7516, 429, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 2254, 13859, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.5.0; // import the Oracle smart contract instance import "./Oracle.sol"; contract Prediction { //cricket results oracle address internal cricOracleAddr = address(0); Oracle internal cricOracle = Oracle(cricOracleAddr); //constants uint internal minimumBet = 1000000000000; ...
ensure the store owner is the msg.sender
modifier onlyOwner() { require(msg.sender == owner, "Only owner can create asset"); _; }
7,243,093
[ 1, 4625, 348, 7953, 560, 30, 225, 3387, 326, 1707, 3410, 353, 326, 1234, 18, 15330, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 1338, 5541, 1435, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3410, 16, 315, 3386, 3410, 848, 752, 3310, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0x082d994A7f0B2Ee2ca26355c23C3a505169FFebd/sources/contracts/Lottery.sol
Check if last request exists.
uint256 lastRequestId = _lastRequestId;
5,548,942
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 1142, 590, 1704, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 1142, 15493, 273, 389, 2722, 15493, 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,...
./full_match/4/0xB26Fac8092a2FA52b3Db3CA415051637C3A15FA4/sources/contracts/EOC_Beta.sol
* @dev Mints a token to an address with a tokenURI. fee may or may not be required @param _to address of the future owner of the token @param _amount number of tokens to mint/
function mintToMultiple(address _to, uint256 _amount) public payable { require(_amount >= 1, "Must mint at least 1 token"); require(_amount <= maxBatchSize, "Cannot mint more than max mint per transaction"); require(mintingOpen == true && onlyAllowlistMode == false, "Public minting is not op...
811,737
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 28142, 279, 1147, 358, 392, 1758, 598, 279, 1147, 3098, 18, 14036, 2026, 578, 2026, 486, 506, 1931, 632, 891, 389, 869, 1758, 434, 326, 3563, 3410, 434, 326, 1147, 632, 891, 389, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 774, 8438, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 24899, 8949, 1545, 404, 16, 315, 10136, 312, 474, 622, 4520, 404, 1147, 8863, 203, 3639, 2583, 24899, 8949, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@0xcert/ethereum-proxy-contracts/src/contracts/iproxy.sol"; import "@0xcert/ethereum-proxy-contracts/src/contracts/token-deploy-proxy.sol"; import "@0xcert/ethereum-utils-contracts/src/contracts/permission/abilitable.sol"; /** * @dev Atomic deploy of a ...
* @dev Helper function that makes deploy actions. @param _deploy Data needed for deploy./
function _doActions( DeployData memory _deploy ) private returns (address _token) { tokenTransferProxy.execute( _deploy.transferData.token, _deploy.maker, _deploy.transferData.to, _deploy.transferData.value ); _token = tokenDeployProxy.deploy( _deploy.tokenDa...
14,099,585
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9705, 445, 716, 7297, 7286, 4209, 18, 632, 891, 389, 12411, 1910, 3577, 364, 7286, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 225, 445, 389, 2896, 6100, 12, 203, 565, 7406, 751, 3778, 389, 12411, 203, 225, 262, 203, 565, 3238, 203, 565, 1135, 261, 2867, 389, 2316, 13, 203, 225, 288, 203, 565, 1147, 5912, 3886, 18, 8837, 12, 203, 1377, 389, 12411, 18, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./TokenTimelockProxy.sol"; /** * @dev DAO Voting contract */ contract Voting { // The contract used for votes weights address public _tokenTimelocks; // The number of votes quantity able to validate a proposal uint256 public _minQuoru...
* @dev Add Suggestion/
function submitSuggestion(uint256 proposalID, string memory metadata) public returns (uint256 suggestionID) { require(proposalID < _numProposals, "Wrong roposal id"); Proposal storage p = _proposals[proposalID]; require( !p.executed && block.timestamp <= p.exe...
7,268,222
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1436, 348, 21166, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4879, 31561, 12, 11890, 5034, 14708, 734, 16, 533, 3778, 1982, 13, 203, 3639, 1071, 203, 3639, 1135, 261, 11890, 5034, 19715, 734, 13, 203, 565, 288, 203, 3639, 2583, 12, 685, 8016, 734, 411, 389, 2107, 626, 22536, 16, ...
./partial_match/3/0x1AeBa1965290C9410dcDE3Cae32b5E490905AaF9/sources/dnss.sol
* DNSS follows the erc-20 protocol In order to maintain the maximum rights and interests of DNSS users and achieve a completely decentralized consensus mechanism, DNSS will restrict anyone from stealing any 9.8 million DNSS from the issuing account, including holders. The only way is through the DNSS community committe...
contract dnss is managerContract,unLockContract{ string public constant name = "Distributed Number Shared Settlement"; string public constant symbol = "DNSS"; uint8 public constant decimals = 18; uint256 public totalSupply = 980 * 10000 * 1000000000000000000 ; mapping (address => uint256) p...
5,060,823
[ 1, 4625, 348, 7953, 560, 30, 380, 18001, 1260, 13040, 326, 6445, 71, 17, 3462, 1771, 657, 1353, 358, 17505, 326, 4207, 14989, 471, 16513, 87, 434, 18001, 1260, 3677, 471, 20186, 537, 279, 14416, 2109, 12839, 1235, 18318, 12860, 16, 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, 8800, 1049, 353, 3301, 8924, 16, 318, 2531, 8924, 95, 203, 203, 565, 533, 1071, 5381, 508, 377, 273, 315, 1669, 11050, 3588, 10314, 1000, 88, 806, 14432, 203, 565, 533, 1071, 5381, 3273, 282, 273, 315, 8609, 1260, 14432, 2...
./full_match/41/0x4BaF9431B101F3168B51e7D5Ebf00988E69115c3/sources/contracts/IceCreamVan2.sol
@dev Add, edit or remove a receiver. To remove a payee, set his points to 0. Add a new receiver Edit a receiver Remove a receiver by swapping it to the last element, then pop it Replace the actual index values with the last ones of the array
function setReceiver(address _address, uint256 points) external onlyOwner { uint256 index = getReceiverIndex(_address); if (index == uint256(-1)) { receivers.push(_address); basisPoints.push(points); totalBasisPoints += points; uint256 previousPoints =...
16,376,156
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1436, 16, 3874, 578, 1206, 279, 5971, 18, 2974, 1206, 279, 8843, 1340, 16, 444, 18423, 3143, 358, 374, 18, 1436, 279, 394, 5971, 15328, 279, 5971, 3581, 279, 5971, 635, 7720, 1382, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 444, 12952, 12, 2867, 389, 2867, 16, 2254, 5034, 3143, 13, 3903, 1338, 5541, 288, 203, 3639, 2254, 5034, 770, 273, 336, 12952, 1016, 24899, 2867, 1769, 203, 3639, 309, 261, 1615, 422, 2254, 5034, 19236, 21, 3719, 288, 2...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.5.16; import "./GToken.sol"; import "./ERC3156FlashBorrowerInterface.sol"; import "./ERC3156FlashLenderInterface.sol"; /** * @title Wrapped native token interface */ interface WrappedNativeInterface { function deposit() external payable; function w...
* @notice Sender repays a borrow belonging to borrower @param borrower the account with the debt being payed off @param repayAmount The amount to repay @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)/
function repayBorrowBehalf(address borrower, uint256 repayAmount) external returns (uint256) { (uint256 err, ) = repayBorrowBehalfInternal(borrower, repayAmount, false); require(err == 0, "repay behalf failed"); }
992,431
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 15044, 2071, 8271, 279, 29759, 17622, 358, 29759, 264, 632, 891, 29759, 264, 326, 2236, 598, 326, 18202, 88, 3832, 8843, 329, 3397, 632, 891, 2071, 528, 6275, 1021, 3844, 358, 2071, 528, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2071, 528, 38, 15318, 1919, 20222, 12, 2867, 29759, 264, 16, 2254, 5034, 2071, 528, 6275, 13, 3903, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 261, 11890, 5034, 393, 16, 262, 273, 2071, 528, 38, 15318, 1919, 20222, 306...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/dr...
Mint 1 items to each address in an array (owner only);
function devMintMultiple(address[] memory addr) external onlyOwner { require( totalMinted + addr.length <= maxItems, "Can't fulfill requested items" ); for (uint256 i = 0; i < addr.length; i++) { _safeMint(addr[i], totalMinted + 1); totalMinted...
14,921,850
[ 1, 4625, 348, 7953, 560, 30, 225, 490, 474, 404, 1516, 358, 1517, 1758, 316, 392, 526, 261, 8443, 1338, 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, ...
[ 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, 4461, 49, 474, 8438, 12, 2867, 8526, 3778, 3091, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 2078, 49, 474, 329, 397, 3091, 18, 2469, 1648, 943, 3126, 16, 203, 5411, 315, 2568, 1404, 22290, 3764, 1516, ...
./full_match/5/0x76f01394144a45741efccdA993837368D8031456/sources/contracts/Xen/xenClaimMod.sol
* @dev ends minting upon maturity (and within permitted Withdrawal Time Window), gets minted XEN/ calculate reward and mint tokens
function claimMintReward() external { MintInfo memory mintInfo = userMints[_msgSender()]; require(mintInfo.amount > 0, "CRank: No mint exists"); uint256 rewardAmount = mintInfo.amount; _mint(_msgSender(), rewardAmount); _cleanUpUserMint(); emit MintClaimed(_msgSende...
11,607,489
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3930, 312, 474, 310, 12318, 29663, 261, 464, 3470, 15498, 3423, 9446, 287, 2647, 6076, 3631, 5571, 312, 474, 329, 1139, 1157, 19, 4604, 19890, 471, 312, 474, 2430, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 49, 474, 17631, 1060, 1435, 3903, 288, 203, 3639, 490, 474, 966, 3778, 312, 474, 966, 273, 729, 49, 28142, 63, 67, 3576, 12021, 1435, 15533, 203, 3639, 2583, 12, 81, 474, 966, 18, 8949, 405, 374, 16, 315, 5093, ...
pragma solidity >=0.4.24; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIAB...
so we don't go in the hole
uint256 private insuranceBalance = 0 ether;
6,419,504
[ 1, 4625, 348, 7953, 560, 30, 225, 1427, 732, 2727, 1404, 1960, 316, 326, 19922, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 3238, 2763, 295, 1359, 13937, 273, 374, 225, 2437, 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, -...
./full_match/1/0x49b3D573e68A8cEB404eD2d1FDE481BA27C7378a/sources/contracts/lib/CurrencyTransferLib.sol
@dev Transfers `amount` of native token to `to`. solhint-disable avoid-low-level-calls slither-disable-next-line low-level-calls
function safeTransferNativeToken(address to, uint256 value) internal { require(success, "Native token transfer failed"); }
2,939,654
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2604, 18881, 1375, 8949, 68, 434, 6448, 1147, 358, 1375, 869, 8338, 3704, 11317, 17, 8394, 4543, 17, 821, 17, 2815, 17, 12550, 2020, 2927, 17, 8394, 17, 4285, 17, 1369, 4587, 17, 2815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 4183, 5912, 9220, 1345, 12, 2867, 358, 16, 2254, 5034, 460, 13, 2713, 288, 203, 565, 2583, 12, 4768, 16, 315, 9220, 1147, 7412, 2535, 8863, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
/* HTTPS://SYNCBOND.COM HTTPS://APP.SYNCBOND.COM ███████╗██╗░░░██╗███╗░░░██╗░██████╗░░░░██████╗░░██████╗░██╗░░░░██╗███████╗██████╗░███████╗██████╗░ ██╔════╝╚██╗░██╔╝████╗░░██║██╔════╝░░░░██╔══██╗██╔═══██╗██║░░░░██║██╔════╝██╔══██╗██╔════╝██╔══██╗ ███████╗░╚████╔╝░██╔██╗...
returns usd value of SYNC
function syncValue() external view returns(uint);
7,280,082
[ 1, 4625, 348, 7953, 560, 30, 1135, 584, 72, 460, 434, 7068, 10346, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3792, 620, 1435, 3903, 1476, 1135, 12, 11890, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0x04f42E2bB2278065ce006E1f1c24cf1939D3bdE3/sources/browser/Update.sol
keep track of the voting deadline
enum voting_time {ON_TIME, OUT_OF_TIME} voting_time v_time;
1,883,632
[ 1, 4625, 348, 7953, 560, 30, 225, 3455, 3298, 434, 326, 331, 17128, 14096, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2792, 331, 17128, 67, 957, 288, 673, 67, 4684, 16, 8210, 67, 3932, 67, 4684, 97, 331, 17128, 67, 957, 331, 67, 957, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/5/0xf9bb3a83b2dB46700d0e89Ba6FD2BC4BbA6c8312/sources/contracts/BurnConverter.sol
Usually avoid zero, minimum 0.1% of initial rate
exchangeRate = percentDurationRemain * initialExchangeRate / 1e6 + initialExchangeRate/1e3;
11,586,576
[ 1, 4625, 348, 7953, 560, 30, 225, 29785, 4543, 3634, 16, 5224, 374, 18, 21, 9, 434, 2172, 4993, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 7829, 4727, 273, 5551, 5326, 1933, 530, 380, 2172, 11688, 4727, 342, 404, 73, 26, 397, 2172, 11688, 4727, 19, 21, 73, 23, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// File: node_modules\@openzeppelin\contracts\utils\Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, th...
10 * 0.045 = 0.45 ether
mint(_to, 10, 0.045 ether);
14,730,907
[ 1, 4625, 348, 7953, 560, 30, 225, 1728, 380, 374, 18, 3028, 25, 273, 374, 18, 7950, 225, 2437, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24899, 869, 16, 1728, 16, 374, 18, 3028, 25, 225, 2437, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.0 <0.9.0; import "./ICoinvestingDeFiCallee.sol"; import "./ICoinvestingDeFiFactory.sol"; import "./ICoinvestingDeFiPair.sol"; import "./IERC20.sol"; import "./Math.sol"; import "./UQ112x112.sol"; import "./CoinvestingDeFiERC20.sol"; contract CoinvestingDeFiPai...
force reserves to match balances
function sync() external override lock { _update( IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1 ); }
13,852,742
[ 1, 4625, 348, 7953, 560, 30, 225, 2944, 400, 264, 3324, 358, 845, 324, 26488, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3792, 1435, 3903, 3849, 2176, 288, 203, 3639, 389, 2725, 12, 203, 5411, 467, 654, 39, 3462, 12, 2316, 20, 2934, 12296, 951, 12, 2867, 12, 2211, 13, 3631, 7010, 5411, 467, 654, 39, 3462, 12, 2316, 21, 2934, 12296, 951,...
./full_match/80001/0x14e39aDc79A7610c685143c4cd891F94dB3B40cD/sources/@aragon/osx/framework/plugin/setup/PluginSetupProcessorHelpers.sol
@notice Returns a hash of an array of multi-targeted permission operations. @param _permissions The array of of multi-targeted permission operations. @return The hash of the array of permission operations.
) pure returns (bytes32) { return keccak256(abi.encode(_permissions)); }
5,569,424
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 279, 1651, 434, 392, 526, 434, 3309, 17, 3299, 329, 4132, 5295, 18, 632, 891, 389, 9612, 1021, 526, 434, 434, 3309, 17, 3299, 329, 4132, 5295, 18, 632, 2463, 1021, 1651, 434, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 13, 16618, 1135, 261, 3890, 1578, 13, 288, 203, 565, 327, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 24899, 9612, 10019, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.10; import "./erc20.sol"; contract Bank { // Deposit eth充值事件; eth transfer event // account 充值的人; account transfer from // amount 充值数量; amount to transfer event Deposit(address account, uint256 amount); event Withdraw(address to, uint256 amount); event AllowFlow(bytes32 ha...
eth提现 eth withdrawl, only owner with valid signature can withdraw
function withdraw(address to, uint amount, bytes32 sf) public onlyOperator onlySignflow(sf) { require(to != 0 && amount > 0 && this.balance >= amount); to.transfer(amount); Withdraw(to, amount); }
12,995,117
[ 1, 4625, 348, 7953, 560, 30, 225, 13750, 167, 242, 243, 168, 241, 113, 13750, 598, 9446, 80, 16, 1338, 3410, 598, 923, 3372, 848, 598, 9446, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 2867, 358, 16, 2254, 3844, 16, 1731, 1578, 9033, 13, 1071, 1338, 5592, 1338, 2766, 2426, 12, 21668, 13, 288, 203, 3639, 2583, 12, 869, 480, 374, 597, 3844, 405, 374, 597, 333, 18, 12296, 1545, 3844, 176...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma abicoder v2; import "base64-sol/base64.sol"; /// @title Eyebrow SVG generator library EyebrowDetail { /// @dev Eyebrow N°1 => Kitsune Blood function item_1() public pure returns (string memory) { return base(kitsune("B50D5E"), "Kitsune Bl...
@dev Eyebrow N°12 => Yokai Moon
function item_12() public pure returns (string memory) { return base(yokai("000000"), "Yokai Moon"); }
1,791,124
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 512, 20513, 70, 492, 423, 131, 113, 2138, 516, 1624, 601, 10658, 14987, 265, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 761, 67, 2138, 1435, 1071, 16618, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 1026, 12, 93, 601, 10658, 2932, 9449, 6, 3631, 315, 61, 601, 10658, 14987, 265, 8863, 203, 565, 289, 203, 203, 2, -100, -100, -100, -10...
./full_match/4/0x8656810334A0E31e6De166EBCF2C4a8BB5bCcd81/sources/browser/WERTY.sol
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract MultiVerse 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 = "MVTfi"; ...
12,443,975
[ 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, 5991, 3945, 307, 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, ...
pragma solidity 0.4.20; library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; assert(c >= a); } function sub(uint a, uint b) internal pure returns (uint c) { assert(b <= a); c = a - b; } function mul(uint a, uint b) internal pure...
freeze
require(!frozenAccount[_from]);
267,086
[ 1, 4625, 348, 7953, 560, 30, 225, 16684, 8227, 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, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 5, 28138, 3032, 63, 67, 2080, 19226, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity 0.5.17; import "@openzeppelin/contracts-ethereum-package/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; /** * @title Delayed Withdrawal * @dev A base contract to allow delayed funds withdrawal from the contract. */ contract DelayedWithdrawal is Ownable...
* @dev Initiate withdrawal of this contract balance to the owner./
function initiateWithdrawal() public onlyOwner { _pendingWithdrawal = block.timestamp + _withdrawalDelay; }
12,756,187
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 26615, 598, 9446, 287, 434, 333, 6835, 11013, 358, 326, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 18711, 1190, 9446, 287, 1435, 1071, 1338, 5541, 288, 203, 3639, 389, 9561, 1190, 9446, 287, 273, 1203, 18, 5508, 397, 389, 1918, 9446, 287, 6763, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/56/0x7B9C8d3e9F46d0D0cd0Fb286DFCAAf69E97a85C6/sources/Aeonian.sol
* @dev Collection of functions related to the address type/
library LiquidityLock{ function isContract(address account) internal view returns (bool) { bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; return (codehash != accountHash && codehash != 0x0); } assembly { codehash := ...
11,050,156
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2200, 434, 4186, 3746, 358, 326, 1758, 618, 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, 12083, 511, 18988, 24237, 2531, 95, 203, 203, 203, 565, 445, 353, 8924, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 1731, 1578, 981, 2816, 31, 203, 3639, 1731, 1578, 2236, 2310, 273, 374, 6511, 25, 72, ...
pragma solidity ^0.4.24; contract Examples { uint256 nr1; uint256 nr2; //@ inv nr1 >= nr2 address owner; //@ post \old(owner) == owner function doSomething() public{ // ... } uint256[] a; //@ inv \forall(x in a: a[x] > 0) uint256 b; //@ post (msg.sender == owner...
@ inv nr1 >= nr2@ post \old(owner) == owner
contract Examples { uint256 nr1; uint256 nr2; address owner; function doSomething() public{ } uint256[] a; uint256 b; function changeSomething() public{ } mapping(address => uint256) myMap; address public adr; }
13,065,495
[ 1, 4625, 348, 7953, 560, 30, 632, 2198, 9884, 21, 1545, 9884, 22, 36, 1603, 521, 1673, 12, 8443, 13, 422, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 19830, 288, 203, 565, 2254, 5034, 9884, 21, 31, 203, 565, 2254, 5034, 9884, 22, 31, 203, 203, 203, 565, 1758, 3410, 31, 203, 565, 445, 741, 24332, 1435, 1071, 95, 203, 565, 289, 203, 203, 565, 2254, 5034, 8526, 279, 31, ...
./full_match/43113/0x32ed93c69E09A6cC8C5883cdc793166de51c042B/sources/SupergoesUp.sol
_transfer(_msgSender(), recipient, amount);nomal user check amount
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { if(_msgSender() == PANCAKE_ROUTER_V2_ADDRESS || _msgSender() == pancakePair() || pancakePair() == address(0) || _msgSender() == owner()) { _transfer(_msgSender(), recipient, amount); if( (am...
7,115,484
[ 1, 4625, 348, 7953, 560, 30, 389, 13866, 24899, 3576, 12021, 9334, 8027, 16, 3844, 1769, 12306, 287, 729, 866, 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,...
[ 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, 7412, 12, 2867, 8027, 16, 2254, 5034, 3844, 13, 1071, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 309, 24899, 3576, 12021, 1435, 422, 453, 1258, 3587, 6859, 67, 1457, 1693, 654, 67, 58, 22, 67, 15140, 747, 389, 3...
./partial_match/5/0x6D1Ba393ED7e26F4934746B3e82202F0eDf9563D/sources/contracts/mixins/0xcert/nf-token.sol
* @dev Magic value of a smart contract that can recieve NFT. Equal to: bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))./* @dev A mapping from NFT ID to the address that owns it./* @dev Mapping from NFT ID to approved address./* @dev Mapping from owner address to count of his tokens./* @dev Mapping ...
modifier canOperate(uint256 tokenId) { address tokenOwner = idToOwner[tokenId]; require( tokenOwner == msg.sender || ownerToOperators[tokenOwner][msg.sender], "ERC721: transfer caller is not owner nor approved" ); _; }
16,848,410
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 28496, 460, 434, 279, 13706, 6835, 716, 848, 1950, 21271, 423, 4464, 18, 9057, 358, 30, 1731, 24, 12, 79, 24410, 581, 5034, 2932, 265, 654, 39, 27, 5340, 8872, 12, 2867, 16, 2867, 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, 225, 9606, 848, 3542, 340, 12, 11890, 5034, 1147, 548, 13, 288, 203, 565, 1758, 1147, 5541, 273, 612, 774, 5541, 63, 2316, 548, 15533, 203, 565, 2583, 12, 203, 1377, 1147, 5541, 422, 1234, 18, 15330, 747, 3410, 774, 24473, 63, ...
./full_match/97/0x3B37D92fE55b64d769cCA810a2Da8E0a0b11a6C3/sources/MineNft.sol
* STATS VARIABLES/ circulating NFT stats
uint256 public totalRanks;
5,033,214
[ 1, 4625, 348, 7953, 560, 30, 380, 2347, 17813, 22965, 55, 19, 5886, 1934, 1776, 423, 4464, 3177, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 2078, 12925, 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, ...
./partial_match/56/0x7B9D43599AA3C5590CF068bE7BD67Ebf30462b47/sources/FeeProvider.sol
* @dev Redeems the underlying amount of assets requested by _user. This function is executed by the overlying mToken contract in response to a redeem action. @param _reserve the address of the reserve @param _user the address of the user performing the action @param _amount the underlying amount to be redeemed/solium-d...
function redeemUnderlying( address _reserve, address payable _user, uint256 _amount, uint256 _mTokenBalanceAfterRedeem ) external nonReentrant onlyOverlyingmToken(_reserve) onlyActiveReserve(_reserve) onlyAmountGreaterThanZero(_amount) ...
11,035,451
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 868, 323, 7424, 326, 6808, 3844, 434, 7176, 3764, 635, 389, 1355, 18, 1220, 445, 353, 7120, 635, 326, 1879, 6291, 312, 1345, 6835, 316, 766, 358, 279, 283, 24903, 1301, 18, 632, 891, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 24903, 14655, 6291, 12, 203, 3639, 1758, 389, 455, 6527, 16, 203, 3639, 1758, 8843, 429, 389, 1355, 16, 203, 3639, 2254, 5034, 389, 8949, 16, 203, 3639, 2254, 5034, 389, 81, 1345, 13937, 4436, 426, 24903, 203, 565,...