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
/* Copyright 2019 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/LICENSE-2.0 Unless required by applicable law or agreed ...
true if it takes longer for the liquidator owed balance to become negative than it takes the liquidator held balance to become positive.
bool owedGoesToZeroLast;
7,232,204
[ 1, 4625, 348, 7953, 560, 30, 225, 638, 309, 518, 5530, 7144, 364, 326, 4501, 26595, 639, 2523, 329, 11013, 358, 12561, 6092, 2353, 518, 5530, 326, 4501, 26595, 639, 15770, 11013, 358, 12561, 6895, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1426, 2523, 329, 5741, 281, 774, 7170, 3024, 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/1/0xA3D1D966EfA6C99487eF1E0009a4D2F0AE3A4578/sources/new.sol
* @dev Initializes the contract setting the deployer as the initial owner./
constructor() internal { address msgSender = _msgSender(); _owner = 0x514018744DA659E750877162D0387e580a8D00d0; emit OwnershipTransferred(address(0), msgSender); }
4,910,693
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 326, 6835, 3637, 326, 7286, 264, 487, 326, 2172, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 3885, 1435, 2713, 288, 203, 3639, 1758, 1234, 12021, 273, 389, 3576, 12021, 5621, 203, 3639, 389, 8443, 273, 374, 92, 25, 3461, 1611, 28, 5608, 24, 9793, 26, 6162, 41, 27, 3361, 28, 4700, 30042, 40, 4630, 11035, 73, 25, 36...
// SPDX-License-Identifier: Apache-2.0 /* Copyright 2021 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by a...
@dev Creates a proposal to send ZRX from this treasury on the the given actions. Must have at least `proposalThreshold` of voting power to call this function. See `getVotingPower` for how voting power is computed. If a proposal is successfully created, voting starts at the epoch after next (current...
function propose( ProposedAction[] memory actions, uint256 executionEpoch, string memory description, bytes32[] memory operatedPoolIds ) public override returns (uint256 proposalId) { require( getVotingPower(msg.sender, operatedPool...
1,775,070
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 10210, 279, 14708, 358, 1366, 2285, 54, 60, 628, 333, 9787, 345, 22498, 603, 326, 1377, 326, 864, 4209, 18, 6753, 1240, 622, 4520, 1375, 685, 8016, 7614, 68, 1377, 434, 331, 17128, 7212, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 450, 4150, 12, 203, 3639, 1186, 7423, 1803, 8526, 3778, 4209, 16, 203, 3639, 2254, 5034, 4588, 14638, 16, 203, 3639, 533, 3778, 2477, 16, 203, 3639, 1731, 1578, 8526, 3778, 2255, 690, 2864, 2673, 203, 565, 262, 203, 363...
./full_match/43114/0x7Fa15A54c1e61ab3A10A2A3ecd1Db1D95003f055/sources/AvaStake.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; } ...
4,597,158
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 261, 2867, 51...
./full_match/1/0x1d372cfD924880E5C1E3900D4E6aE41B6cF4dfF3/sources/contracts/flattened/Debase.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
8,352,665
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 3...
pragma solidity ^0.4.23; import "./TRC20.sol"; import "./MinterRole.sol"; /** * @title VRSToken token * @dev The decimals are only for visualization purposes. * All the operations are done using the smallest and indivisible token unit, * just as on TRON all the operations are done in sun. */ contract VRSToken is...
* @title VRSToken token @dev The decimals are only for visualization purposes. All the operations are done using the smallest and indivisible token unit, just as on TRON all the operations are done in sun./
contract VRSToken is TRC20, MinterRole { string private _name; string private _symbol; uint8 private _decimals; constructor (string name, string symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } function name() public view returns ...
12,656,456
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 776, 10637, 969, 1147, 632, 5206, 1021, 15105, 854, 1338, 364, 30056, 13694, 18, 4826, 326, 5295, 854, 2731, 1450, 326, 13541, 471, 6335, 18932, 1147, 2836, 16, 2537, 487, 603, 4235, 673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 776, 10637, 969, 353, 4235, 39, 3462, 16, 490, 2761, 2996, 288, 203, 565, 533, 3238, 389, 529, 31, 203, 565, 533, 3238, 389, 7175, 31, 203, 565, 2254, 28, 3238, 389, 31734, 31, 203, 203, 565, 3885, 261, 1080, 508, 16, ...
pragma solidity 0.4.25; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } contract TokenDGT { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the ...
* Set allowance for other address Allows `_spender` to spend no more than `_value` tokens on your behalf @param _spender The address authorized to spend @param _value the max amount they can spend/
function approve(address _spender, uint256 _value) public returns (bool success) { require(!blacklist[msg.sender]); allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
10,441,409
[ 1, 4625, 348, 7953, 560, 30, 380, 1000, 1699, 1359, 364, 1308, 1758, 25619, 1375, 67, 87, 1302, 264, 68, 358, 17571, 1158, 1898, 2353, 1375, 67, 1132, 68, 2430, 603, 3433, 12433, 6186, 632, 891, 389, 87, 1302, 264, 1021, 1758, 10799...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6617, 537, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 13, 1071, 203, 565, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 2583, 12, 5, 22491, 63, 3576, 18, 15330, 19226, 203, 3639, 1699, 1359, 63, 3576, 18, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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, they should not be accessed in such a direct * manner, sinc...
Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` Mapping from holder address to their (enumerable) set of owned tokens Enumerable mapping from token ids to their owners Mapping from token ID to approved address...
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; bytes4 private constant _ERC...
557,921
[ 1, 4625, 348, 7953, 560, 30, 225, 19344, 358, 1375, 3890, 24, 12, 79, 24410, 581, 5034, 2932, 265, 654, 39, 27, 5340, 8872, 12, 2867, 16, 2867, 16, 11890, 5034, 16, 3890, 2225, 3719, 68, 1492, 848, 506, 2546, 12700, 487, 1375, 45,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 27, 5340, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 16, 467, 654, 39, 27, 5340, 3572, 25121, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 56...
pragma solidity ^0.5.0; //Functions for retrieving min and Max in 51 length array (requestQ) //Taken partly from: https://github.com/modular-network/ethereum-libraries-array-utils/blob/master/contracts/Array256Lib.sol library Utilities{ /** * @dev Returns the minimum value in an array. */ function g...
* @dev This function allows miners to deposit their stake./self adjusting disputeFee
function depositStake(TellorStorage.TellorStorageStruct storage self) public { newStake(self, msg.sender); TellorDispute.updateDisputeFee(self); }
12,548,578
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1220, 445, 5360, 1131, 414, 358, 443, 1724, 3675, 384, 911, 18, 19, 2890, 5765, 310, 1015, 2507, 14667, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 510, 911, 12, 21009, 280, 3245, 18, 21009, 280, 3245, 3823, 2502, 365, 13, 1071, 288, 203, 1377, 394, 510, 911, 12, 2890, 16, 1234, 18, 15330, 1769, 203, 1377, 29860, 280, 1669, 2507, 18, 2725, 1669, 2507, ...
./partial_match/1/0xe3BE0054Da2F8da5002E8bdD8AA4c7fDf851E86D/sources/ERC721CreatorMaxMint.sol
* @dev See {IERC721CreatorCore-mintBaseBatch}./
function mintBaseBatch(address to, uint16 count) public virtual override nonReentrant adminRequired returns(uint256[] memory tokenIds) { tokenIds = new uint256[](count); uint256 firstTokenId = _tokenCount+1; _tokenCount += count; for (uint i; i < count;) { tokenIds[i] = ...
2,680,818
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 10636, 4670, 17, 81, 474, 2171, 4497, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 2171, 4497, 12, 2867, 358, 16, 2254, 2313, 1056, 13, 1071, 5024, 3849, 1661, 426, 8230, 970, 3981, 3705, 1135, 12, 11890, 5034, 8526, 3778, 1147, 2673, 13, 288, 203, 3639, 1147, 2673, 273, 394, 2254, 5034, 852...
./full_match/11155111/0xdAadc80107184c5bfCc73d0d6E99c07645A4d008/sources/contracts/AssetManagement.sol
Function to get event history
function getEventHistory() public view returns (EventHistory[] memory) { return eventHistory; }
3,792,559
[ 1, 4625, 348, 7953, 560, 30, 225, 4284, 358, 336, 871, 4927, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9832, 5623, 1435, 1071, 1476, 1135, 261, 1133, 5623, 8526, 3778, 13, 288, 203, 3639, 327, 871, 5623, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/41/0xED231ad1C1C88Db553Ac8d0C57028C01B792fEF7/sources/contracts/FarmBooster.sol
@notice Checks if the msg.sender is the FarmBooster Proxy.
modifier onlyProxy(address _user) { require(msg.sender == proxyContract[_user], "onlyProxy: Not proxy"); _; }
16,371,276
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 13074, 309, 326, 1234, 18, 15330, 353, 326, 478, 4610, 26653, 264, 7659, 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, 3886, 12, 2867, 389, 1355, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 2889, 8924, 63, 67, 1355, 6487, 315, 3700, 3886, 30, 2288, 2889, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, ...
pragma solidity ^0.4.24; import "../../lib/common/TimeHelpers.sol"; import "../../lib/lib/math/SafeMath.sol"; import "../../lib/lib/math/SafeMath64.sol"; contract TimeHelpersMock is TimeHelpers { using SafeMath for uint256; using SafeMath64 for uint64; uint256 public mockedTimestamp; uint256 public mockedBlo...
* @dev Returns the mocked timestamp value/
function getTimestampPublic() external view returns (uint64) { return getTimestamp64(); }
13,104,861
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 5416, 329, 2858, 460, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 11940, 4782, 1435, 3903, 1476, 1135, 261, 11890, 1105, 13, 288, 203, 565, 327, 11940, 1105, 5621, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/43113/0xE9D6040CE9cB63A6990171acB338fF4Fc04EEC70/sources/SmayToken.sol
Maximum total supply of the token (7.5M)
uint256 private _maxTotalSupply = 7500000000000000000000000;
13,167,887
[ 1, 4625, 348, 7953, 560, 30, 225, 18848, 2078, 14467, 434, 326, 1147, 261, 27, 18, 25, 49, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 389, 1896, 5269, 3088, 1283, 273, 18821, 12648, 12648, 17877, 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...
// File: contracts/upgradeability/EternalStorage.sol pragma solidity 0.7.5; /** * @title EternalStorage * @dev This contract holds all the necessary state variables to carry out the storage of any contract. */ contract EternalStorage { mapping(bytes32 => uint256) internal uintStorage; mapping(bytes32 => st...
* @dev Updates execution daily limit for the particular token. Only owner can call this method. @param _token address of the token contract, or address(0) for configuring the default limit. @param _dailyLimit daily allowed amount of executed tokens, should be greater than executionMaxPerTx. 0 value is also allowed, wil...
function setExecutionDailyLimit(address _token, uint256 _dailyLimit) external onlyOwner { require(_token == address(0) || isTokenRegistered(_token)); _setExecutionDailyLimit(_token, _dailyLimit); }
14,530,322
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15419, 4588, 18872, 1800, 364, 326, 6826, 1147, 18, 5098, 3410, 848, 745, 333, 707, 18, 632, 891, 389, 2316, 1758, 434, 326, 1147, 6835, 16, 578, 1758, 12, 20, 13, 364, 642, 4017, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 444, 3210, 40, 12857, 3039, 12, 2867, 389, 2316, 16, 2254, 5034, 389, 26790, 3039, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 24899, 2316, 422, 1758, 12, 20, 13, 747, 353, 1345, 10868, 24899, 2316, 10019, 203, 3639, 38...
./full_match/97/0x27c9fe71Aa539e99D62C8D64cF9A00A12999EAf1/sources/project_/contracts/Viddly.sol
* @dev Distributes the fees to the parent nodes. @param videoId_ The ID of the video. @param currentLeaf_ The address of the current participant in the video hierarchy. @return True if the fee distribution is successful./
function _distributeFee( string memory videoId_, address currentLeaf_ ) internal returns (bool) { uint256 eachLevelFee = ((msg.value * _levelPercentage) / 100) / _profitableLevels; uint256 distributedFee; uint256 creatorFee = (msg.value * _creatorPercentage) / 100; address newJoiner = cu...
3,264,099
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3035, 1141, 326, 1656, 281, 358, 326, 982, 2199, 18, 632, 891, 6191, 548, 67, 1021, 1599, 434, 326, 6191, 18, 632, 891, 783, 9858, 67, 1021, 1758, 434, 326, 783, 14188, 316, 326, 6191, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 2251, 887, 14667, 12, 203, 565, 533, 3778, 6191, 548, 67, 16, 203, 565, 1758, 783, 9858, 67, 203, 225, 262, 2713, 1135, 261, 6430, 13, 288, 203, 565, 2254, 5034, 1517, 2355, 14667, 273, 14015, 3576, 18, 1132, 380...
./full_match/1/0x85EA92569Ff1c7ea9B6F221aaD7BDc178C8fa82d/sources/contracts/NightmareRealm.sol
NIGHT Base URI for Meta data
contract NightmareRealm is ERC721F,AllowList { using Strings for uint256; uint256 public tokenPrice = 0.029 ether; uint256 public preSaleTokenPrice = 0.019 ether; uint256 public constant MAX_TOKENS = 4400; bool public saleIsActive; bool public allowListSaleIsActive; mapping(address ...
16,491,489
[ 1, 4625, 348, 7953, 560, 30, 225, 423, 7700, 3360, 3699, 364, 6565, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 423, 750, 81, 834, 22545, 353, 4232, 39, 27, 5340, 42, 16, 7009, 682, 288, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 1071, 1147, 5147, 273, 374, 18, 3103, 29, 225, 2437, 31, 7010, 565, 2254, ...
pragma solidity 0.5.17; import "./WLToken.sol"; import "./PriceOracle.sol"; contract UnitrollerAdminStorage { /** * @notice Administrator for this contract */ address public admin; /** * @notice Pending administrator for this contract */ address public pendingAdmin; ...
* @notice Oracle which gives the price of any given asset/* @notice Multiplier used to calculate the maximum repayAmount when liquidating a borrow/* @notice Multiplier representing the discount on collateral that a liquidator receives/* @notice Max number of assets a single account can participate in (borrow or use as ...
struct Market { bool isListed; uint collateralFactorMantissa; mapping(address => bool) accountMembership; bool isWel; bool public _mintGuardianPaused; bool public _borrowGuardianPaused; bool public transferGuardianPaused; bool public seizeGuardianPaused; mapp...
6,366,734
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 28544, 1492, 14758, 326, 6205, 434, 1281, 864, 3310, 20308, 632, 20392, 5991, 5742, 1399, 358, 4604, 326, 4207, 2071, 528, 6275, 1347, 4501, 26595, 1776, 279, 29759, 20308, 632, 20392, 5991,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6622, 278, 288, 203, 3639, 1426, 28106, 329, 31, 203, 203, 3639, 2254, 4508, 2045, 287, 6837, 49, 970, 21269, 31, 203, 203, 3639, 2874, 12, 2867, 516, 1426, 13, 2236, 13447, 31, 203, 203, 3639, 1426, 353, 59, 292, 31...
./full_match/4/0xB65e6A85BFCBA6dd35fCe13306B7360b4020181C/sources/browser/Farming.sol
Info of each VIP account.
mapping (address => uint256) public vips;
12,345,987
[ 1, 4625, 348, 7953, 560, 30, 225, 3807, 434, 1517, 776, 2579, 2236, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 1071, 331, 7146, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/4/0xfC7BdB813c6345B5f32fB667febCBB3CF2aDC558/sources/contracts/2_Owner.sol
Info of each pool.
PoolInfo[] public poolInfo;
645,398
[ 1, 4625, 348, 7953, 560, 30, 225, 3807, 434, 1517, 2845, 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, 0, 0, 0, 0, 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, 8828, 966, 8526, 1071, 2845, 966, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; // openzeppelin import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeab...
@custom:oz-upgrades-unsafe-allow constructor
constructor(string memory name, string memory symbol, address treasury,uint mintRate,uint burnRate,address owner) initializer{ __ERC20_init(name, symbol); _treasury = treasury; _setTaxRate(mintRate, burnRate); _transferOwnership(owner); BondingSwap curve = new BondingS...
15,846,605
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 3662, 30, 11142, 17, 416, 13088, 17, 318, 4626, 17, 5965, 3885, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 1080, 3778, 508, 16, 533, 3778, 3273, 16, 1758, 9787, 345, 22498, 16, 11890, 312, 474, 4727, 16, 11890, 18305, 4727, 16, 2867, 3410, 13, 12562, 95, 203, 377, 203, 3639, 1001, 654, 39, 3462, 67, 2738, 12, 529, 16,...
./full_match/80001/0x53A37bBB44B84dAE567274Ed75aa7775E654C65c/sources/contracts/CoffeePortal.sol
You'll notice I changed the buyCoffee function a little here as well and now it requires a string called _message. This is the message our user sends us from the front end!/
function buyCoffee( string memory _message, string memory _name, uint256 _payAmount ) public payable { uint256 cost = 0.001 ether; require(_payAmount <= cost, "Insufficient Ether provided"); totalCoffee += 1; coffee.push(Coffee(msg.sender, _message, _nam...
856,332
[ 1, 4625, 348, 7953, 560, 30, 225, 4554, 5614, 11690, 467, 3550, 326, 30143, 39, 3674, 1340, 445, 279, 12720, 2674, 487, 5492, 471, 2037, 518, 4991, 279, 533, 2566, 389, 2150, 18, 1220, 353, 326, 883, 3134, 729, 9573, 584, 628, 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, 16, 203, 3639, 2254, 5034, 389, 10239, 6275, 203, 565, 262, 1071, 8843, 429, 288, 203, 3639, 2254, 5034, 6991, 273, 374, ...
./full_match/137/0x2a8ecE1F5Ab7EC2e4a1963e3Ba36D7e6F3Bdc6D1/sources/src/NFTNameGenDrop.sol
@notice Sale details @return INFTNameGenDrop.SaleDetails sale information details
function saleDetails() external view returns (INFTNameGenDrop.ERC20SaleDetails memory) { return INFTNameGenDrop.ERC20SaleDetails({ erc20PaymentToken: salesConfig.erc20PaymentToken, publicSaleActive: _publicSaleActive(), ...
4,684,363
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 348, 5349, 3189, 632, 2463, 2120, 4464, 461, 7642, 7544, 18, 30746, 3790, 272, 5349, 1779, 3189, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 272, 5349, 3790, 1435, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 706, 4464, 461, 7642, 7544, 18, 654, 39, 3462, 30746, 3790, 3778, 13, 203, 565, 288, 203, 3639, 327, 203, 5411, 2120, 4464, 461, 7642, 7544,...
pragma solidity ^0.4.25; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIAB...
* @dev Credits payouts to insurees/get all the insureescheck if already paid
function creditInsurees ( address airline, string flight, uint256 timestamp, uint factor_numerator, uint...
7,325,348
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 5206, 385, 1118, 1282, 293, 2012, 87, 358, 316, 2055, 281, 19, 588, 777, 326, 316, 2055, 281, 1893, 309, 1818, 30591, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 12896, 382, 2055, 281, 203, 27573, 261, 203, 4766, 565, 1758, 23350, 1369, 16, 203, 4766, 565, 533, 25187, 16, 203, 4766, 565, 2254, 5034, 2858, 16, 203, 4766, 565, 2254, 5578, 67, 2107, 7385, 16, 203, 4766, 565, 2254, ...
// LC->24.10.2015 tree_scorers ОдушОбъект tree_scorer ОдушОбъект language=Russian { if context { местоим_сущ:кто{} } then 1 } tree_scorer ОдушОбъект language=Russian { if context { местоим_сущ:кто-нибудь{} } then 1 } tree_scorer ОдушОбъект language=Russian { if context { местоим_сущ:кто-то{} } then 1 } ...
Артур погладил по носу старого коня ^^^^^^^^ ^^^^
tree_scorer ВалентностьГлагола language=Russian { if context { rus_verbs:погладить{}.<OBJECT>*:*{ ПАДЕЖ:ВИН } } then 2 }
12,629,432
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 145, 243, 146, 227, 146, 229, 146, 230, 146, 227, 225, 145, 128, 145, 127, 145, 116, 145, 124, 145, 113, 145, 117, 145, 121, 145, 124, 225, 145, 128, 145, 127, 225, 145, 126, 145, 127, 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, 3413, 67, 1017, 8922, 225, 145, 245, 145, 113, 145, 124, 145, 118, 145, 126, 146, 229, 145, 126, 145, 127, 146, 228, 146, 229, 146, 239, 145, 246, 145, 124, 145, 113, 145, 116, 145, 127, 145, 124, 145, 113, 2653, 33, 54, 55...
./full_match/44787/0x2397E13E30438c86A49102E69A23bB21591c2Ef7/sources/contracts/StarFarm.sol
Deposit LP tokens to MasterChef for STAR allocation.if (_pid == 0) require(userNFTs[_msgSender()].length == 0, "nft user");
function deposit(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_msgSender()]; updatePool(_pid); (uint256 _selfGain, uint256 _parentGain) = starNode.nodeGain(); uint256 _amountGain = user.amount.add(user...
13,284,009
[ 1, 4625, 348, 7953, 560, 30, 225, 4019, 538, 305, 511, 52, 2430, 358, 13453, 39, 580, 74, 364, 21807, 13481, 18, 430, 261, 67, 6610, 422, 374, 13, 2583, 12, 1355, 50, 4464, 87, 63, 67, 3576, 12021, 1435, 8009, 2469, 422, 374, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 1071, 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, 67, ...
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "../interfaces/IEmergencyStop.sol"; /** * @title EmergencyStop * @author Pods Finance * @notice Keeps the addresses of stopped contracts, so contracts can be aware * of which functions to inte...
* @title EmergencyStop @author Pods Finance @notice Keeps the addresses of stopped contracts, so contracts can be aware of which functions to interrupt temporarily/
contract EmergencyStop is IEmergencyStop, Ownable { mapping(address => bool) private _addresses; event Stopped(address indexed target); event Resumed(address indexed target); function stop(address target) external override onlyOwner { _addresses[target] = true; emit Stopped(target); ...
10,131,916
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 512, 6592, 75, 2075, 4947, 632, 4161, 20526, 9458, 1359, 632, 20392, 10498, 87, 326, 6138, 434, 9627, 20092, 16, 1427, 20092, 848, 506, 18999, 434, 1492, 4186, 358, 13123, 18917, 19, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 512, 6592, 75, 2075, 4947, 353, 467, 1514, 24530, 4947, 16, 14223, 6914, 288, 203, 565, 2874, 12, 2867, 516, 1426, 13, 3238, 389, 13277, 31, 203, 203, 565, 871, 5131, 1845, 12, 2867, 8808, 1018, 1769, 203, 565, 871, 1124, ...
./full_match/100/0xCf28a4CcB49e778d501947bB6Def793F9EC8D23a/sources/contracts/official/SB04/SB04Token.sol
Name of the token Symbol of the token Index of the last token snapshot Reference to the token the dividends are paid in A flag marking if the payment was completed Total amount of input tokens paid to holders Map of investor to last payment snapshot index Map of snapshot index to dividend date A map of the offer index...
contract SB04Token is ERC20Snapshot, Ownable { string public constant TEXT__FIELD__2 = "CNPJ - SACADO:37.353.627/0001-36"; uint256 public constant TOTAL_TOKENS = 4889.6568 * 1 ether; uint256 public constant DATE_INTEREST_START = 1656990000; uint256[] private PERIOD_DATES = [1660456800]; string publi...
14,278,036
[ 1, 4625, 348, 7953, 560, 30, 225, 1770, 434, 326, 1147, 8565, 434, 326, 1147, 3340, 434, 326, 1142, 1147, 4439, 6268, 358, 326, 1147, 326, 3739, 350, 5839, 854, 30591, 316, 432, 2982, 24073, 309, 326, 5184, 1703, 5951, 10710, 3844, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 348, 38, 3028, 1345, 353, 4232, 39, 3462, 4568, 16, 14223, 6914, 288, 203, 565, 533, 1071, 5381, 9204, 972, 6776, 972, 22, 273, 315, 12821, 52, 46, 300, 348, 2226, 1880, 51, 30, 6418, 18, 4763, 23, 18, 26, 5324, 19, 13...
./partial_match/1/0x39B5B793f162BF5c90c34165DE0107f17dFacAE4/sources/contracts/EIP20NonStandardInterface.sol
* @title EIP20NonStandardInterface @dev Version of ERC20 with no return values for `transfer` and `transferFrom`/
interface EIP20NonStandardInterface { function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256 balance); function transfer(address dst, uint256 amount) external; function transferFrom( address src, address dst, uint256 amount ) e...
4,336,381
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 512, 2579, 3462, 3989, 8336, 1358, 632, 5206, 4049, 434, 4232, 39, 3462, 598, 1158, 327, 924, 364, 1375, 13866, 68, 471, 1375, 13866, 1265, 68, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 512, 2579, 3462, 3989, 8336, 1358, 288, 203, 225, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 225, 445, 11013, 951, 12, 2867, 3410, 13, 3903, 1476, 1135, 261, 11890, 5034, 11013, 1769, 203...
pragma solidity ^0.4.23; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transf...
* Event for token purchase logging @param purchaser who paid for the tokens @param beneficiary who got the tokens @param value weis paid for purchase @param amount amount of tokens purchased/* @param _rate Number of token units a buyer gets per wei @param _wallet Address where collected funds will be forwarded to @para...
constructor(uint256 _rate, address _wallet, ERC20 _token) public { require(_rate > 0); require(_wallet != address(0)); require(_token != address(0)); rate = _rate; wallet = _wallet; token = _token; }
10,170,601
[ 1, 4625, 348, 7953, 560, 30, 380, 2587, 364, 1147, 23701, 2907, 632, 891, 5405, 343, 14558, 10354, 30591, 364, 326, 2430, 632, 891, 27641, 74, 14463, 814, 10354, 2363, 326, 2430, 632, 891, 460, 732, 291, 30591, 364, 23701, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 3885, 12, 11890, 5034, 389, 5141, 16, 1758, 389, 19177, 16, 4232, 39, 3462, 389, 2316, 13, 1071, 288, 203, 3639, 2583, 24899, 5141, 405, 374, 1769, 203, 3639, 2583, 24899, 19177, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 24...
pragma solidity ^0.5.0; /// @title Provides helper functions to determine the validity of passed signatures. /// @author Noah Zinsmeister /// @dev Supports both prefixed and un-prefixed signatures. contract SignatureVerifier { /// @notice Determines whether the passed signature of `messageHash` was made by the pri...
@dev Checks prefixed signatures.
function _isSignedPrefixed(address _address, bytes32 messageHash, uint8 v, bytes32 r, bytes32 s) internal pure returns (bool) { bytes memory prefix = "\x19Ethereum Signed Message:\n32"; return _isSigned(_address, keccak256(abi.encodePacked(prefix, messageHash)), v, r, s); }
5,497,654
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 13074, 12829, 14862, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 291, 12294, 2244, 329, 12, 2867, 389, 2867, 16, 1731, 1578, 883, 2310, 16, 2254, 28, 331, 16, 1731, 1578, 436, 16, 1731, 1578, 272, 13, 203, 3639, 2713, 16618, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 1731,...
pragma solidity 0.5.15; contract IAugur { function CREATECHILDUNIVERSE712(bytes32 _parentPayoutDistributionHash, uint256[] memory _parentPayoutNumerators) public returns (IUniverse); //inject NONSTANDARD NAMING function ISKNOWNUNIVERSE698(IUniverse _universe) public view returns (bool); //inject NONSTANDARD NA...
inject NONSTANDARD NAMING
function LOGREPUTATIONTOKENSTRANSFERRED904(IUniverse _universe, address _from, address _to, uint256 _value, uint256 _fromBalance, uint256 _toBalance) public returns (bool);
2,553,797
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 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, 565, 445, 2018, 862, 4762, 2689, 8412, 3902, 11607, 17356, 29, 3028, 12, 45, 984, 17488, 389, 318, 17488, 16, 1758, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 16, 2254, 5034, 389, 2080, 13937, 16, 2254, 5034, 389, ...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.7.6; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import {IUniswapV2Router02 as ISwapRouter} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import ...
minimum amount to be returned after swap
uint256 amountOutMin;
1,825,539
[ 1, 4625, 348, 7953, 560, 30, 225, 5224, 3844, 358, 506, 2106, 1839, 7720, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3844, 1182, 2930, 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, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; import "../interfaces/ICryptoChampions.sol"; import "../interfaces/IMinigameFactoryRegistry.sol"; import "./minigames/games/priceWars/PriceWarsFactory.sol"; import "./minigames/games/priceWars/PriceWars.sol"; import "./chainlink/VRFConsumerBase.sol"; impor...
dev: Can't mint hero. Too mnay heroes minted for elder.
require(_canMintHero(elderId));
6,458,009
[ 1, 4625, 348, 7953, 560, 30, 225, 4461, 30, 4480, 1404, 312, 474, 366, 2439, 18, 15869, 12883, 528, 366, 2439, 281, 312, 474, 329, 364, 415, 765, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24899, 4169, 49, 474, 44, 2439, 12, 488, 264, 548, 10019, 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, -10...
./partial_match/42/0xB40ea11f489300d0F4DCC9890Fc70b4444F003Eb/sources/DController.sol
* @notice Validates transfer and reverts on rejection. May emit logs. @param dToken Asset being transferred @param src The account which sources the tokens @param dst The account which receives the tokens @param transferTokens The number of dTokens to transfer/ Shh - currently unused Shh - we don't ever want this hook ...
function transferVerify(address dToken, address src, address dst, uint transferTokens) external { dToken; src; dst; transferTokens; if (false) { maxAssets = maxAssets; } }
3,428,433
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2364, 815, 7412, 471, 15226, 87, 603, 283, 3710, 18, 16734, 3626, 5963, 18, 632, 891, 302, 1345, 10494, 3832, 906, 4193, 632, 891, 1705, 1021, 2236, 1492, 5550, 326, 2430, 632, 891, 3046...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7412, 8097, 12, 2867, 302, 1345, 16, 1758, 1705, 16, 1758, 3046, 16, 2254, 7412, 5157, 13, 3903, 288, 203, 3639, 302, 1345, 31, 203, 3639, 1705, 31, 203, 3639, 3046, 31, 203, 3639, 7412, 5157, 31, 203, 203, 3639, 309,...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "./NonBlockingReceiver.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./interfaces/ILayerZeroEndpoint.sol"; /// @title A LayerZero OmnichainNonFungibleToken contract /// @au...
@notice Constructor for the OmniFrogs NFT @param _baseTokenURI the Uniform Resource Identifier (URI) for tokenId token @param _notRevealedURI the not revealed URI @param _layerZeroEndpoint handles message transmission across chains @param _startToken the starting mint number on this chain @param _maxMint the max numbe...
) ERC721("OmniFrogs", "OFROGS") { setBaseURI(_baseTokenURI); notRevealedURI = _notRevealedURI; endpoint = ILayerZeroEndpoint(_layerZeroEndpoint); nextTokenId = _startToken; maxMint = _maxMint; }
5,849,883
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 11417, 364, 326, 531, 13607, 77, 42, 303, 564, 423, 4464, 632, 891, 389, 1969, 1345, 3098, 326, 1351, 6854, 2591, 10333, 261, 3098, 13, 364, 1147, 548, 1147, 632, 891, 389, 902, 426, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 4232, 39, 27, 5340, 2932, 51, 13607, 77, 42, 303, 564, 3113, 315, 3932, 1457, 16113, 7923, 288, 203, 3639, 26435, 3098, 24899, 1969, 1345, 3098, 1769, 203, 3639, 486, 426, 537, 18931, 3098, 273, 389, 902, 426, 537, 1893...
./full_match/1/0xfB2Bfc368a7edfD51aa2cbEC513ad50edEa74E84/sources/contracts/cctp/SynapseCCTP.sol
@notice Sets the remote domain and deployment of SynapseCCTP for the given remote chainId. ChainId should be non-zero and different from the local chain id. Remote domain should differ from the local domain. Remote domain should be 0 IF AND ONLY IF remote chain id is 1 (Ethereum Mainnet). Remote SynapseCCTP should be ...
function setRemoteDomainConfig( uint256 remoteChainId, uint32 remoteDomain, address remoteSynapseCCTP ) external onlyOwner { if (remoteChainId == 0 || remoteChainId == block.chainid) revert CCTPIncorrectChainId(); if (remoteDomain == localDomain) revert CCTPIncorrectDomai...
5,006,453
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 11511, 326, 2632, 2461, 471, 6314, 434, 16091, 28933, 39, 1268, 52, 364, 326, 864, 2632, 2687, 548, 18, 7824, 548, 1410, 506, 1661, 17, 7124, 471, 3775, 628, 326, 1191, 2687, 612, 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, 565, 445, 444, 5169, 3748, 809, 12, 203, 3639, 2254, 5034, 2632, 3893, 548, 16, 203, 3639, 2254, 1578, 2632, 3748, 16, 203, 3639, 1758, 2632, 10503, 28933, 39, 1268, 52, 203, 565, 262, 3903, 1338, 5541, 288, 203, 3639, 309, 261, ...
pragma solidity ^0.5.0; // Assertion libraries import "truffle/Assert.sol"; // Get the address of the deployed testing contract import "truffle/DeployedAddresses.sol"; import "../contracts/Adoption.sol"; contract TestAdoption { // The address of the adoption contract to be tested Adoption adoption = Adoption...
The address of the adoption contract to be tested The id of the pet that will be used for testing The expected owner of adopted pet is this contract Because the TestAdoption contract will be sending the transaction Hence it's the adopter according to how the contract design Testing the adopt() function Calling `adopt(...
contract TestAdoption { Adoption adoption = Adoption(DeployedAddresses.Adoption()); uint expectedPetId = 8; address expectedAdopter = address(this); import "truffle/Assert.sol"; import "truffle/DeployedAddresses.sol"; function testUserCanAdoptPet() public { uint returnedId = adoption.adopt(e...
12,859,903
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 1758, 434, 326, 1261, 3482, 6835, 358, 506, 18432, 1021, 612, 434, 326, 293, 278, 716, 903, 506, 1399, 364, 7769, 1021, 2665, 3410, 434, 1261, 3838, 329, 293, 278, 353, 333, 6835, 15191, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 7766, 1871, 3482, 288, 203, 203, 565, 432, 2896, 375, 1261, 3482, 273, 432, 2896, 375, 12, 31954, 7148, 18, 1871, 3482, 10663, 203, 203, 565, 2254, 2665, 52, 278, 548, 273, 1725, 31, 203, 203, 565, 1758, 2665, 1871, 3838, ...
./partial_match/42/0x43F5A201724249eF197556DcD5b463d29e211645/sources/StakeProtocal.sol
* Constrctor function Initializes contract with initial supply tokens to the creator of the contract/
constructor() public { name = "StakeProtocal"; symbol = "STK"; decimals = 18; _totalSupply = 10000000000000000000000000; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); }
9,094,743
[ 1, 4625, 348, 7953, 560, 30, 380, 735, 701, 30206, 445, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 1071, 288, 203, 3639, 508, 273, 315, 510, 911, 626, 1391, 287, 14432, 203, 3639, 3273, 273, 315, 882, 47, 14432, 203, 3639, 15105, 273, 6549, 31, 203, 3639, 389, 4963, 3088, 1283, 273, 2130, 12648, 12648, 17877, ...
pragma solidity ^ 0.4.19; // DopeRaider Districts Contract // by gasmasters.io // contact: team@doperaider.com // special thanks to : // 8฿ł₮₮Ɽł₱ // Etherguy /// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens contract ERC721 { function implementsERC7...
who just arrived here
NarcoArrived(targetLocation, _narcoId);
10,245,632
[ 1, 4625, 348, 7953, 560, 30, 225, 10354, 2537, 2454, 2950, 2674, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 377, 423, 297, 2894, 5715, 2950, 12, 3299, 2735, 16, 389, 82, 297, 2894, 548, 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, ...
// Yeah, wallet controller was so great we filmed WalletController 2 // TODO: wait until new standart is published pragma ton-solidity >= 0.43.0; pragma AbiHeader pubkey; pragma AbiHeader expire; pragma AbiHeader time; import "./interfaces/IWalletControllerMarketInteractions.sol"; import "./interfaces/IWalletControll...
********************************************************************************************************/ Getter functions
function getRealTokenRoots() external override view responsible returns(mapping(address => bool)) { }
13,076,377
[ 1, 4625, 348, 7953, 560, 30, 19756, 5021, 11345, 5549, 968, 387, 4186, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12361, 1345, 17540, 1435, 3903, 3849, 1476, 14549, 1135, 12, 6770, 12, 2867, 516, 1426, 3719, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** *Submitted for verification at Etherscan.io on 2021-01-13 */ // File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in ex...
@notice Withdraw function for ETH and INCH fees/
function withdrawFees() public onlyOwner { uint256 ethBal = address(this).balance; (bool success, ) = msg.sender.call.value(ethBal)(""); require(success, "Transfer failed"); uint256 oneInchFees = withdrawableOneInchFees; withdrawableOneInchFees = 0; oneInch.safeTrans...
7,653,641
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3423, 9446, 445, 364, 512, 2455, 471, 2120, 1792, 1656, 281, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 2954, 281, 1435, 1071, 1338, 5541, 288, 203, 3639, 2254, 5034, 13750, 38, 287, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 3639, 261, 6430, 2216, 16, 262, 273, 1234, 18, 15330, 18, 1991, 18, 1132, 12, 546, 3...
./partial_match/1/0x37653126a22FE12C527197CE2016F74Cd74f3c77/sources/BerrieToken.sol
* @return the number of decimals of the token./
function decimals() public view returns (uint256) { return _decimals; }
4,200,524
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 326, 1300, 434, 15105, 434, 326, 1147, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15105, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 1377, 327, 389, 31734, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/4/0x05000cEec7477b4eFC622029F98278E19b52EF16/sources/YVAULTMASTER.sol
Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardBlock = block.number;...
8,764,535
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 19890, 3152, 434, 326, 864, 2845, 358, 506, 731, 17, 869, 17, 712, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 2864, 12, 11890, 5034, 389, 6610, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 309, 261, 2629, 18, 2696, 1648, 2845, 18, 2722, 17631, 1060, 1768, 13, 288, 203, ...
pragma solidity 0.5.10; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be apl...
* @dev Returns list of registered users/
function getUsers() external view returns(address[] memory) { return _users; }
1,833,265
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 666, 434, 4104, 3677, 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, 27564, 1435, 3903, 1476, 1135, 12, 2867, 8526, 3778, 13, 288, 203, 3639, 327, 389, 5577, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// File @animoca/ethereum-contracts-erc20_base/contracts/token/ERC20/IERC20.sol@v3.0.0 /* https://github.com/OpenZeppelin/openzeppelin-contracts The MIT License (MIT) Copyright (c) 2016-2019 zOS Global Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
* @dev Library for managing types. Sets have the following properties: - Elements are added, removed, and checked for existence in constant time (O(1)). - Elements are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { using EnumSet for EnumSet.Set; EnumSet.Set private mySet; } `...
library EnumSet { struct Set { bytes32[] values; mapping (bytes32 => uint256) indexes; } function add(Set storage set, bytes32 value) internal returns (bool) { if (!contains(set, value)) { set.values.push(value); set.indexes[value] = set.values.length; ...
228,516
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 18694, 364, 30632, 1953, 18, 11511, 1240, 326, 3751, 1790, 30, 300, 17219, 854, 3096, 16, 3723, 16, 471, 5950, 364, 15782, 316, 5381, 813, 261, 51, 12, 21, 13, 2934, 300, 17219, 854, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 28347, 288, 203, 203, 203, 203, 203, 565, 1958, 1000, 288, 203, 3639, 1731, 1578, 8526, 924, 31, 203, 203, 3639, 2874, 261, 3890, 1578, 516, 2254, 5034, 13, 5596, 31, 203, 565, 289, 203, 203, 565, 445, 527, 12, 694, 2502...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `...
* Burn a token - any game logic should be handled before this function./
function burn(uint256 tokenId) external override whenNotPaused { require(admins[msg.sender]); require( ownerOf[tokenId] == tx.origin || msg.sender == address(pytheas) || msg.sender == address(pirateGames), "Colonist: Not Owner" ); ...
6,195,489
[ 1, 4625, 348, 7953, 560, 30, 380, 605, 321, 279, 1147, 300, 1281, 7920, 4058, 1410, 506, 7681, 1865, 333, 445, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18305, 12, 11890, 5034, 1147, 548, 13, 3903, 3849, 1347, 1248, 28590, 288, 203, 3639, 2583, 12, 3666, 87, 63, 3576, 18, 15330, 19226, 203, 3639, 2583, 12, 203, 5411, 3410, 951, 63, 2316, 548, 65, 422, 2229, 18, 10012, ...
pragma solidity ^0.5.0; import "./Roles.sol"; /** * @title Exchange interface */ interface ExchangeInterface { function createERC20order(uint price, uint amount, uint tokenId, uint expireDate) external returns(uint id); function fillERC20order(uint orderId) external payable returns(bool); function canc...
* @dev Fill ERC721 oreder. @param orderId uint The order id/
function fillERC721order(uint orderId) external payable isActive fillOrderERC721(orderId) returns(bool) { ordersERC721[orderId].status = false; ordersERC721[orderId].owner.transfer(msg.value); ERC721tokens[ordersERC721[orderId].tokenId].transferFrom(address(this), msg.sender, ordersERC721[or...
973,849
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 14192, 4232, 39, 27, 5340, 320, 266, 765, 18, 632, 891, 20944, 2254, 1021, 1353, 612, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 3636, 654, 39, 27, 5340, 1019, 12, 11890, 20944, 13, 3903, 8843, 429, 15083, 3636, 2448, 654, 39, 27, 5340, 12, 1019, 548, 13, 1135, 12, 6430, 13, 288, 203, 3639, 11077, 654, 39, 27, 5340, 63, 1019, 548, 8009, 2327, ...
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...
require that the caller is the dApp owner
modifier isOwner { require(ui.fnIsOwner(msg.sender), "Only the dApp owner can perform this action."); _; }
2,499,259
[ 1, 4625, 348, 7953, 560, 30, 225, 2583, 716, 326, 4894, 353, 326, 302, 3371, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 225, 9606, 353, 5541, 288, 203, 1377, 2583, 12, 4881, 18, 4293, 2520, 5541, 12, 3576, 18, 15330, 3631, 315, 3386, 326, 302, 3371, 3410, 848, 3073, 333, 1301, 1199, 1769, 389, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is...
* @dev Initializes the contract setting the deployer as the initial owner./
function __Ownable_init() internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); }
6,308,023
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 326, 6835, 3637, 326, 7286, 264, 487, 326, 2172, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1001, 5460, 429, 67, 2738, 1435, 2713, 288, 203, 3639, 1758, 1234, 12021, 273, 389, 3576, 12021, 5621, 203, 3639, 389, 8443, 273, 1234, 12021, 31, 203, 3639, 3626, 14223, 9646, 5310, 1429, 4193, 12, 2867, 12, 20, 3631, ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns(uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) intern...
funds allocated to crowdfund
uint256 public tokensAllocatedToCrowdFund;
507,477
[ 1, 4625, 348, 7953, 560, 30, 225, 284, 19156, 11977, 358, 276, 492, 2180, 1074, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 2254, 5034, 1071, 2430, 29392, 774, 39, 492, 72, 42, 1074, 31, 6647, 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...
pragma solidity 0.7.6; import "./_external/SafeMath.sol"; import "./_external/Ownable.sol"; import "./lib/SafeMathInt.sol"; import "./lib/UInt256Lib.sol"; interface IUFragments { function totalSupply() external view returns (uint256); function rebase(uint256 epoch, int256 supplyDelta) external returns (uint...
* @notice Initiates a new rebase operation, provided the minimum time period has elapsed. @dev Changes supply with percentage of: (Upper-Lower)/(1-(Upper/Lower)/2^(GrowthNormalizedPriceDelta))) + Lower/ This comparison also ensures there is no reentrancy. Snap the rebase time to the start of this window.
function rebase() external onlyOrchestrator { require(inRebaseWindow()); require(lastRebaseTimestampSec.add(minRebaseTimeIntervalSec) < block.timestamp); lastRebaseTimestampSec = block .timestamp .sub(block.timestamp.mod(minRebaseTimeIntervalSec)) .add(r...
10,044,875
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4378, 16020, 279, 394, 283, 1969, 1674, 16, 2112, 326, 5224, 813, 3879, 711, 9613, 18, 632, 5206, 17776, 14467, 598, 11622, 434, 30, 225, 261, 5988, 17, 4070, 13176, 12, 21, 17, 12, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1969, 1435, 3903, 1338, 1162, 23386, 639, 288, 203, 3639, 2583, 12, 267, 426, 1969, 3829, 10663, 203, 203, 3639, 2583, 12, 2722, 426, 1969, 4921, 2194, 18, 1289, 12, 1154, 426, 1969, 950, 4006, 2194, 13, 411, 1203,...
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint25...
Подсчет бонусов с учетом бонусов реферальной системы
function _getTokenAmountWithReferal(uint256 _weiAmount, uint8 _percent) internal view returns(uint256) { return _weiAmount.mul(rate).mul(_percent).div(100); }
15,055,626
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 145, 258, 145, 127, 145, 117, 146, 228, 146, 234, 145, 118, 146, 229, 225, 145, 114, 145, 127, 145, 126, 146, 230, 146, 228, 145, 127, 145, 115, 225, 146, 228, 225, 146, 230, 146, 234, 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, 225, 445, 389, 588, 1345, 6275, 1190, 426, 586, 287, 12, 11890, 5034, 389, 1814, 77, 6275, 16, 2254, 28, 389, 8849, 13, 2713, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 565, 327, 389, 1814, 77, 6275, 18, 16411, 12, 5141, 2934, ...
/** ****************************************************************************************************************************************************************************************** $$$$$$$\ $$\ $$\ $...
game round's end state
uint256 private rdStateEnd = 2;
13,123,047
[ 1, 4625, 348, 7953, 560, 30, 7920, 3643, 1807, 679, 919, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 3238, 9437, 1119, 1638, 273, 576, 31, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; contract BO3Kevents { event onBuying ( address indexed _addr, uint256 ethAmount, uint256 flagAmount, uint256 playerFlags, uint256 ethOfRound, uint256 keysOfRound, uint256 potOfRound ); event onTimeAdding( uint256 startTime, uint256 endTime, uint256 ne...
distribute value to the pot of the round. 50%, 25%, 37.5%, respectively
round[roundID].pot = ( round[roundID].pot ).add( ( _value.mul( team[_teamID].city ) ).div( DENOMINATOR ) );
5,363,140
[ 1, 4625, 348, 7953, 560, 30, 225, 25722, 460, 358, 326, 5974, 434, 326, 3643, 18, 6437, 9, 16, 6969, 9, 16, 18091, 18, 25, 9, 16, 19629, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 202, 2260, 63, 2260, 734, 8009, 13130, 273, 261, 3643, 63, 2260, 734, 8009, 13130, 262, 18, 1289, 12, 261, 389, 1132, 18, 16411, 12, 5927, 63, 67, 10035, 734, 8009, 14240, 262, 262, 18, 2892, 12, 463, 1157, 1872, 706, 3575...
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "../BaseContracts/BaseVesting.sol"; contract AlteredStateMachine is BaseVesting { constructor( address signer_, address token_, uint256 startDate_, uint256 vestingDuration_, uint256 totalAllocatedAmount_ ) ...
* @dev Returns current available rewards for investor @param percentageLP investor percenage for LP stake @param percentageNative investor percentage for Native stake/
function getRewardBalance( address beneficiary, uint256 percentageLP, uint256 percentageNative ) public view returns (uint256 amount) { uint256 reward = _getRewardBalance(percentageLP, percentageNative); Investor storage investor = investorInfo[beneficiary]; uint2...
6,991,460
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 783, 2319, 283, 6397, 364, 2198, 395, 280, 632, 891, 11622, 14461, 2198, 395, 280, 26514, 275, 410, 364, 511, 52, 384, 911, 632, 891, 11622, 9220, 2198, 395, 280, 11622, 364, 16717,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4170, 359, 1060, 13937, 12, 203, 3639, 1758, 27641, 74, 14463, 814, 16, 203, 3639, 2254, 5034, 11622, 14461, 16, 203, 3639, 2254, 5034, 11622, 9220, 203, 565, 262, 1071, 1476, 1135, 261, 11890, 5034, 3844, 13, 288, 203, ...
./partial_match/1/0xb4bBA71E32C3628f0896639da4C5364519A8CA08/sources/FlatPricingExt.sol
* Set policy do we need to have server-side customer ids for the investments./
function setRequireCustomerId(bool value) onlyOwner { requireCustomerId = value; InvestmentPolicyChanged(requireCustomerId, requiredSignedAddress, signerAddress); }
4,336,821
[ 1, 4625, 348, 7953, 560, 30, 380, 1000, 3329, 741, 732, 1608, 358, 1240, 1438, 17, 5564, 6666, 3258, 364, 326, 2198, 395, 1346, 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, 444, 8115, 8883, 548, 12, 6430, 460, 13, 1338, 5541, 288, 203, 565, 2583, 8883, 548, 273, 460, 31, 203, 565, 5454, 395, 475, 2582, 5033, 12, 6528, 8883, 548, 16, 1931, 12294, 1887, 16, 10363, 1887, 1769, 203, 225, 289...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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, they should not be accessed in such a direct * manner, sinc...
@title Managing a candidate @notice Either a user or layer2 contract can be a candidate
contract Candidate is Ownable, ERC165, ICandidate, ILayer2 { using SafeMath for uint256; bool public override isLayer2Candidate; address public override candidate; string public override memo; IDAOCommittee public override committee; ISeigManager public override seigManager; pragma solidity ^...
10,158,393
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 490, 940, 310, 279, 5500, 632, 20392, 14635, 279, 729, 578, 3018, 22, 6835, 848, 506, 279, 5500, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 16351, 385, 8824, 353, 14223, 6914, 16, 4232, 39, 28275, 16, 467, 11910, 16, 467, 4576, 22, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 1426, 1071, 3849, 353, 4576, 22, 11910, 31, 203, 565, 1758, 1071, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./LandNFT.sol"; contract LockedNFT is Ownable, ReentrancyGuard, IERC721Receiver...
Move the last token to the slot of the to-delete token
_allStakedTokens[tokenIndex] = lastTokenId;
7,310,474
[ 1, 4625, 348, 7953, 560, 30, 225, 9933, 326, 1142, 1147, 358, 326, 4694, 434, 326, 358, 17, 3733, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 454, 510, 9477, 5157, 63, 2316, 1016, 65, 273, 27231, 548, 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,...
pragma solidity ^0.8.4; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzep...
* Mint tokens that have been minted on the old contract and send to minters Set the same seed as the old contract generated for the minted tokens so they get the same properties/
function migrateMintedTokensFromOldContract(address mintedByOnOldContract) private { _safeMint(msg.sender, 0); _safeMint(mintedByOnOldContract, 1); _safeMint(mintedByOnOldContract, 2); _safeMint(mintedByOnOldContract, 3); _safeMint(mintedByOnOldContract, 4); ...
1,425,368
[ 1, 4625, 348, 7953, 560, 30, 380, 490, 474, 2430, 716, 1240, 2118, 312, 474, 329, 603, 326, 1592, 6835, 471, 1366, 358, 1131, 5432, 1000, 326, 1967, 5009, 487, 326, 1592, 6835, 4374, 364, 326, 312, 474, 329, 2430, 1427, 2898, 336, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13187, 49, 474, 329, 5157, 1265, 7617, 8924, 12, 2867, 312, 474, 18696, 1398, 7617, 8924, 13, 203, 3639, 3238, 203, 565, 288, 203, 3639, 389, 4626, 49, 474, 12, 3576, 18, 15330, 16, 374, 1769, 203, 3639, 389, 4626, 49...
./full_match/10200/0xC05e00faE313225e074D03040A0521D06F7AAda5/sources/src/Splitter.sol
@dev debt share (not using amount to avoid rounding errors)
int256 share = int256(_amount / targetsLength);
3,785,718
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 18202, 88, 7433, 261, 902, 1450, 3844, 358, 4543, 13885, 1334, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 509, 5034, 7433, 273, 509, 5034, 24899, 8949, 342, 5774, 1782, 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, ...
./partial_match/4/0x98527aeE992Fa368fB59b4eEa094F7D78603506F/sources/MasterChef.sol
Swapdex tokens created per block.
uint256 public swapdexPerBlock;
8,624,240
[ 1, 4625, 348, 7953, 560, 30, 225, 12738, 561, 2430, 2522, 1534, 1203, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 7720, 561, 2173, 1768, 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, ...
pragma solidity ^0.5.0; import './OptimBookerLib.sol'; /** * */ contract Ethbnb { uint constant SECONDS_PER_DAY = 3600 * 24; using OptimBookerLib for OptimBookerLib.Storage; enum Country { AF, AX, AL, DZ, AS, AD, AO, AI, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BA, BW...
* Invoked by the guest of a booking after the booking end, confirming the host fulfilled their obligations, and releasing funds held in escrow. @param bid id of the booking/ Fund Release: Guest receives: booking.balance Listing receives: 2 x booking.balance Owner: booking.balance
function fulfilBooking(uint bid) public validBooking(bid) { Booking storage booking = bookings[bid]; uint lid = booking.lid; address guest = booking.guestAddr; address host = booking.hostAddr; (, uint toDate) = getBookingDates(bid); require(msg.sender == guest, 'Only guest can call fulfilBooki...
15,827,924
[ 1, 4625, 348, 7953, 560, 30, 380, 5454, 14276, 635, 326, 13051, 434, 279, 6978, 310, 1839, 326, 6978, 310, 679, 16, 6932, 310, 326, 1479, 16136, 13968, 3675, 320, 31627, 1012, 16, 471, 6707, 11730, 284, 19156, 15770, 316, 2904, 492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16136, 7540, 9084, 310, 12, 11890, 9949, 13, 1071, 923, 9084, 310, 12, 19773, 13, 288, 203, 565, 20258, 310, 2502, 6978, 310, 273, 6978, 899, 63, 19773, 15533, 203, 565, 2254, 328, 350, 273, 6978, 310, 18, 80, 350, 31...
//██████╗ █████╗ ██╗ █████╗ ██████╗ ██╗███╗ ██╗ //██╔══██╗██╔══██╗██║ ██╔══██╗██╔══██╗██║████╗ ██║ //██████╔╝███████║██║ ███████║██║ ██║██║██╔██╗ ██║ //██╔═══╝ ██╔══██║██║ ██╔══██║██║ ██║██║██║╚██╗██║ //██║ ██║ ██║███████╗██║ ██║██████╔╝██║██║ ╚████║ //╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════...
In case tokens are stuck in the contract
function sendToken(address _tokenAddress, address payable _recipient) external onlyOwner { if(_tokenAddress == address(0)){ Address.sendValue(_recipient, address(this).balance); } else{ IERC20(_tokenAddress).safeTransfer(_recipient, IERC20(_tokenAddress).balanceOf(add...
9,976,803
[ 1, 4625, 348, 7953, 560, 30, 225, 657, 648, 2430, 854, 384, 9031, 316, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1366, 1345, 12, 2867, 389, 2316, 1887, 16, 1758, 8843, 429, 389, 20367, 13, 3903, 1338, 5541, 288, 203, 3639, 309, 24899, 2316, 1887, 422, 1758, 12, 20, 3719, 95, 203, 5411, 5267, 18, 4661, 620, 24899, 20367, 16, 1758, ...
./partial_match/100/0x98dC6e3B3E922d4b32EdC8fED899850F764EbEc9/sources/SimpleRecipientRegistry.sol
* @dev A simple recipient registry managed by a trusted entity./ Structs
contract SimpleRecipientRegistry is Ownable, IRecipientRegistry { struct Recipient { uint256 index; uint256 addedAt; uint256 removedAt; uint256 prevRemovedAt; } uint256 public maxRecipients; uint256 private nextRecipientIndex = 1; mapping(address => Recipient) private recipients; address[...
16,657,175
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 432, 4143, 8027, 4023, 7016, 635, 279, 13179, 1522, 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, 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, 4477, 18241, 4243, 353, 14223, 6914, 16, 467, 18241, 4243, 288, 203, 203, 203, 225, 1958, 23550, 288, 203, 565, 2254, 5034, 770, 31, 203, 565, 2254, 5034, 3096, 861, 31, 203, 565, 2254, 5034, 3723, 861, 31, 203, 565, 2254,...
pragma solidity ^0.4.0; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "../../ERC721/ERC721Basic.sol"; import "../../common/interfaces/ISettingsRegistry.sol"; import "../../common/interfaces/TRC223.sol"; import "../../common/PausableDS...
// Constructor// initializeContract
constructor(ISettingsRegistry _registry) public { registry = _registry; }
1,822,557
[ 1, 4625, 348, 7953, 560, 30, 368, 11417, 759, 4046, 8924, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 45, 2628, 4243, 389, 9893, 13, 1071, 288, 203, 3639, 4023, 273, 389, 9893, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.7.5; pragma abicoder v2; import "./lib/LibSafeMath.sol"; import "./ERC1155Mintable.sol"; import "./mixin/MixinOwnable.sol"; contract ProofOfCultureMinter is Ownable { using LibSafeMath for uint256; struct _HashtagContainer { string originalHashtag; string normalizedHashtag; uint256...
@dev returns owner of a non-fungible token
function ownerOf(uint256 id) public view returns (address) { return nfOwners[id]; }
130,538
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1135, 3410, 434, 279, 1661, 17, 12125, 75, 1523, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3410, 951, 12, 11890, 5034, 612, 13, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 13958, 5460, 414, 63, 350, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x175586ac3f8A7463499D1019A30120aa6fC67C5f/sources/Sett.sol
@dev Calculate the number of shares to issue for a given deposit @dev This is based on the realized value of underlying assets between Sett & associated Strategy
function _deposit(uint256 _amount) internal { uint256 _pool = balance(); uint256 _before = token.balanceOf(address(this)); token.safeTransferFrom(msg.sender, address(this), _amount); uint256 _after = token.balanceOf(address(this)); uint256 shares = 0; if (totalSupply(...
2,611,347
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9029, 326, 1300, 434, 24123, 358, 5672, 364, 279, 864, 443, 1724, 632, 5206, 1220, 353, 2511, 603, 326, 2863, 1235, 460, 434, 6808, 7176, 3086, 1000, 88, 473, 3627, 19736, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 323, 1724, 12, 11890, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 2254, 5034, 389, 6011, 273, 11013, 5621, 203, 3639, 2254, 5034, 389, 5771, 273, 1147, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 1147, 18,...
pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; // causes high gas usage, so only use for view functions import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; contract NetEmissionsTokenNetwor...
Retire audited emissions on mint
function issue( address account, uint8 tokenTypeId, uint256 quantity, uint256 fromDate, uint256 thruDate, uint256 automaticRetireDate, string memory metadata, string memory manifest, string memory description ) public onlyDealer { _...
5,390,239
[ 1, 4625, 348, 7953, 560, 30, 225, 17100, 577, 8215, 329, 801, 1054, 1115, 603, 312, 474, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5672, 12, 203, 3639, 1758, 2236, 16, 203, 3639, 2254, 28, 1147, 11731, 16, 203, 3639, 2254, 5034, 10457, 16, 203, 3639, 2254, 5034, 628, 1626, 16, 203, 3639, 2254, 5034, 286, 8653, 1626, 16, 203, 3639, 2254, 5034, 5859,...
pragma solidity ^0.4.19; // Reentrancy vulnerable contract example contract HoneyPot { mapping (address=>uint) public balances; function HoneyPot() public payable { put(); } function put() public payable { balances[msg.sender] += msg.value; } function get() public { ...
The collect() function is the one that will set the reentrancy attack in motion. It puts some ether in HoneyPot and right after it gets it. The payable term here tells the Ethereum Virtual Machine that it permits to receive ether. Invoke this function with also some ether.
function collect() public payable { honeypot.put.value(msg.value)(); honeypot.get(); kill(); }
12,852,401
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 3274, 1435, 445, 353, 326, 1245, 716, 903, 444, 326, 283, 8230, 12514, 13843, 316, 21188, 18, 2597, 8200, 2690, 225, 2437, 316, 670, 265, 402, 18411, 471, 2145, 1839, 518, 5571, 518, 18, 1021,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 3274, 1435, 1071, 8843, 429, 288, 203, 3639, 24338, 402, 13130, 18, 458, 18, 1132, 12, 3576, 18, 1132, 13, 5621, 203, 3639, 24338, 402, 13130, 18, 588, 5621, 203, 3639, 8673, 5621, 203, 565, 289, 203, 203, 2, -100, -1...
// 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 Contract module that helps prevent reentrant calls to a function. Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. Note that because there is a single `nonReentrant` guard, functions ma...
abstract contract ReentrancyGuard { uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } modifier nonReentrant() { _enterNonReentrant(); _; _exitNonReentrant(); ...
140,673
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13456, 1605, 716, 21814, 5309, 283, 8230, 970, 4097, 358, 279, 445, 18, 25953, 310, 628, 1375, 426, 8230, 12514, 16709, 68, 903, 1221, 326, 288, 5836, 426, 8230, 970, 97, 9606, 2319, 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, 17801, 6835, 868, 8230, 12514, 16709, 288, 203, 203, 565, 2254, 5034, 3238, 5381, 389, 4400, 67, 12278, 2056, 273, 404, 31, 203, 565, 2254, 5034, 3238, 5381, 389, 12278, 2056, 273, 576, 31, 203, 203, 565, 2254, 5034, 3238, 389, 2...
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol pragma solidity ^0.5.2; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address ...
true for onlyOptedIn, false for onlyOptedOut
modifier onlyOptedBool(bool isIn) {
5,444,826
[ 1, 4625, 348, 7953, 560, 30, 225, 638, 364, 1338, 6179, 329, 382, 16, 629, 364, 1338, 6179, 329, 1182, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 6179, 329, 7464, 12, 6430, 8048, 13, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import {IAaveDistributionManager} from '../interfaces/IAaveDistributionManager.sol'; import {SafeMath} from '../lib/SafeMath.sol'; import {DistributionTypes} from '../lib/DistributionTypes.sol'; /** * @title DistributionMan...
* @dev Called by the proxy contract/solium-disable-next-line
function initialize( address slashingAdmin, address cooldownPauseAdmin, address claimHelper, uint256 maxSlashablePercentage, string calldata name, string calldata symbol, uint8 decimals ) external initializer { uint256 chainId; assembly { chainId := chainid() } DO...
14,847,120
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11782, 635, 326, 2889, 6835, 19, 18281, 5077, 17, 8394, 17, 4285, 17, 1369, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4046, 12, 203, 565, 1758, 9026, 310, 4446, 16, 203, 565, 1758, 27367, 2378, 19205, 4446, 16, 203, 565, 1758, 7516, 2276, 16, 203, 565, 2254, 5034, 943, 11033, 429, 16397, 16, 203, 565, 533, 745, 892, 508, 16, 203, 565...
./partial_match/1/0xE950159CCdF36f6Dc661DEC0E0De75113455bF63/sources/contracts/sh-verify/SlotSettlementRegistry.sol
@notice Adds 8 SLOT and issues shares to that KNOT based on the origin (which StakeHouse a KNOT belongs to) @dev Only core module and a StakeHouse that's been deployed by the universe Make a note of the SLOT shares being minted - this must not be done more than once Send recipient sETH representing half of the SLOT - ...
function mintSLOTAndSharesBatch( address _stakeHouse, bytes calldata _memberId, address _recipient ) external onlyModule onlyValidStakeHouse(_stakeHouse) onlyValidStakeHouseKnot(_stakeHouse, _memberId) { require(_recipient != address(0), "Zero recipient"); require(msg.sen...
15,964,456
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 15605, 1725, 348, 1502, 56, 471, 8296, 24123, 358, 716, 1475, 4400, 2511, 603, 326, 4026, 261, 12784, 934, 911, 44, 3793, 279, 1475, 4400, 11081, 358, 13, 632, 5206, 5098, 2922, 1605, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 312, 474, 55, 1502, 56, 1876, 24051, 4497, 12, 203, 3639, 1758, 389, 334, 911, 44, 3793, 16, 203, 3639, 1731, 745, 892, 389, 5990, 548, 16, 203, 3639, 1758, 389, 20367, 203, 565, 262, 3903, 1338, 3120, 1338, 1556, 510...
./partial_match/1/0xbEAF9E75F92a2D9bAf6F79cA7f53C8fD64542ced/sources/ETT_Exchange.sol
only people with tokens
contract ETT_Exchange { modifier onlyBagholders() { require(myTokens() > 0); _; } modifier onlyAdministrator(){ address _customerAddress = msg.sender; require(administrators[_customerAddress]); _; } ==============================*/ event onWithdraw(...
15,461,245
[ 1, 4625, 348, 7953, 560, 30, 225, 1338, 16951, 598, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 512, 1470, 67, 11688, 288, 203, 203, 565, 9606, 1338, 5013, 9000, 1435, 288, 203, 3639, 2583, 12, 4811, 5157, 1435, 405, 374, 1769, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 565, 9606, 1338, 4446, 14207, 1435, 95, 203, ...
// SPDX-License-Identifier: MIT OR Apache-2.0 pragma solidity ^0.7.0; import "./IERC20.sol"; import "./Bytes.sol"; library Utils { /// @notice Returns lesser of two values function minU32(uint32 a, uint32 b) internal pure returns (uint32) { return a < b ? a : b; } /// @notice Returns lesser ...
@notice Returns new_hash = hash(old_hash + bytes)
function concatHash(bytes32 _hash, bytes memory _bytes) internal pure returns (bytes32) { bytes32 result; assembly { let bytesLen := add(mload(_bytes), 32) mstore(_bytes, _hash) result := keccak256(_bytes, bytesLen) } return result; }
2,521,448
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 394, 67, 2816, 273, 1651, 12, 1673, 67, 2816, 397, 1731, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 3835, 2310, 12, 3890, 1578, 389, 2816, 16, 1731, 3778, 389, 3890, 13, 2713, 16618, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 1731, 1578, 563, 31, 203, 3639, 19931, 288, 203, 5411, 2231, 1731, 2891, 519, 527, 12, 81, ...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functio...
* @dev Returns an array of booleans indicated if each index is claimed./
function claimedList() public view override returns (bool[] memory) { bool[] memory list = new bool[](numClaims); for (uint i = 0; i < numClaims; i++) { list[i] = isClaimed(i); } return list; }
1,107,237
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 392, 526, 434, 31050, 17710, 309, 1517, 770, 353, 7516, 329, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 7516, 18073, 1435, 1071, 1476, 3849, 1135, 261, 6430, 8526, 3778, 13, 288, 203, 3639, 1426, 8526, 3778, 666, 273, 394, 1426, 8526, 12, 2107, 15925, 1769, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 818, 159...
./partial_match/1/0x7e1396C482777185A0Be6420e04403ec961c76cB/sources/RetroCats.sol
* @dev Base URI for computing {tokenURI}./
function _baseURI() internal view virtual override returns (string memory) { return s_baseURI; }
3,581,517
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3360, 3699, 364, 20303, 288, 2316, 3098, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1969, 3098, 1435, 2713, 1476, 5024, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 272, 67, 1969, 3098, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.4.25; import 'openzeppelin-solidity/contracts/math/SafeMath.sol'; import 'openzeppelin-solidity/contracts/ownership/Ownable.sol'; import './token/OceanToken.sol'; /** @title Ocean Protocol Marketplace Contract @author Team: Fang Gong, Samer Sallam, Ahmed Ali, Sebastian Gerske */ contract OceanMark...
============ DATA STRUCTURES: ============
contract OceanMarket is Ownable { using SafeMath for uint256; using SafeMath for uint; @title Ocean Protocol Marketplace Contract struct Asset { } struct Payment { } event FrequentTokenRequest(address indexed _requester, uint256 _minPeriod); event LimitTokenRequest(address indexe...
12,649,762
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 631, 8730, 7128, 9749, 4830, 55, 30, 422, 1432, 631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 531, 31393, 3882, 278, 353, 14223, 6914, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 36, 2649, 531, 31393, 4547, 6622, 24577, 13456, 203, 203, 565, 1958...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@yield-protocol/utils-v2/contracts/token/ERC20Permit.sol"; contract ERC20Wrapper is ERC20Permit { event Wrapped(address indexed from, address indexed to, uint256 underlying, uint256 wrapper); event Unwrapped(address indexed from, address indexed...
@dev Burn wrapper token from the caller and send underlying tokens in exchange. Any amount of unaccounted wrapper in this contract will also be used.
function unwrap(address to, uint256 wrapperIn) external returns (uint256 underlyingOut) { uint256 wrapperHere = _balanceOf[address(this)]; uint256 wrapperUsed = wrapperIn + wrapperHere; underlyingOut = _unwrapMath(wrapperUsed); if (wrapperHere > 0) _burn(address(...
938,000
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 605, 321, 4053, 1147, 628, 326, 4894, 471, 1366, 6808, 2430, 316, 7829, 18, 5502, 3844, 434, 640, 4631, 329, 4053, 316, 333, 6835, 903, 2546, 506, 1399, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11014, 12, 2867, 358, 16, 2254, 5034, 4053, 382, 13, 203, 3639, 3903, 203, 3639, 1135, 261, 11890, 5034, 6808, 1182, 13, 203, 565, 288, 203, 3639, 2254, 5034, 4053, 26715, 273, 389, 12296, 951, 63, 2867, 12, 2211, 13, ...
/** *Submitted for verification at Etherscan.io on 2020-05-01 */ /* Copyright 2020 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/lic...
============ Structs ============
{ using SafeMath for uint256; using Math for uint256; using P1BalanceMath for P1Types.Balance; contract P1Liquidation is struct TradeData { uint256 amount; } event LogLiquidated( address indexed maker, address indexed taker, uint256 amount, uint256 ora...
15,861,764
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 631, 7362, 87, 422, 1432, 631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 95, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 2361, 364, 2254, 5034, 31, 203, 565, 1450, 453, 21, 13937, 10477, 364, 453, 21, 2016, 18, 13937, 31, 203, 203, 203, 203, 16351, 453, 21, 48, 18988, 350, 367...
pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner,...
KRS/USD rate for conversion to KRS
require(krsUsd > 0);
6,979,731
[ 1, 4625, 348, 7953, 560, 30, 225, 1475, 13225, 19, 3378, 40, 4993, 364, 4105, 358, 1475, 13225, 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, 202, 202, 6528, 12, 79, 5453, 3477, 72, 405, 374, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/7700/0x65cA83eCb77b418c2c5B7fc7712e1aDC0655961B/sources/src/Namespace.sol
@notice Fuse a new Namespace NFT with the referenced tiles @param _characterList The tiles to use for the fusing Extract unique trays for burning them later on Check for duplicate characters in the provided list. 1/2 * n^2 loop iterations, but n is bounded to 13 and we do not perform any storage operations Emoji We sk...
function fuse(CharacterData[] calldata _characterList) external { uint256 numCharacters = _characterList.length; if (numCharacters > 13 || numCharacters == 0) revert InvalidNumberOfCharacters(numCharacters); uint256 namespaceIDToMint = ++numTokensMinted; Tray.TileData[] storage nftTo...
4,657,069
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 478, 1202, 279, 394, 6005, 423, 4464, 598, 326, 8042, 12568, 632, 891, 389, 11560, 682, 1021, 12568, 358, 999, 364, 326, 284, 9940, 8152, 3089, 268, 435, 87, 364, 18305, 310, 2182, 5137,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19552, 12, 7069, 751, 8526, 745, 892, 389, 11560, 682, 13, 3903, 288, 203, 3639, 2254, 5034, 818, 11600, 273, 389, 11560, 682, 18, 2469, 31, 203, 3639, 309, 261, 2107, 11600, 405, 5958, 747, 818, 11600, 422, 374, 13, ...
./partial_match/80001/0x38Eb53Bc0CB2E996230325e01FB147b47bd05d93/sources/contracts/UnergyLogicReserve.sol
transfer pWatts from the institutional user accountto the reserve (UnergyLogicReserve) This additions here is to avoid the loss of decimalsthis function delivers the corresponding uWattafter calculating the exchange factor
function customInstitutionalSwap( address _projectAddr, address _userAddr ) external whenNotPaused hasRoleInPermissionGranter(msg.sender, address(this), "swapToken") { bool isInstitutionalAddress = unergyData.isInstitutionalAddress( _userAddr, ...
8,796,015
[ 1, 4625, 348, 7953, 560, 30, 7412, 293, 59, 270, 3428, 628, 326, 1804, 305, 1421, 287, 729, 2236, 869, 326, 20501, 261, 984, 31920, 20556, 607, 6527, 13, 1220, 26260, 2674, 353, 358, 4543, 326, 8324, 434, 6970, 20244, 291, 445, 1464...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 1679, 382, 14278, 287, 12521, 12, 203, 3639, 1758, 389, 4406, 3178, 16, 203, 3639, 1758, 389, 1355, 3178, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1347, 1248, 28590, 203, 3639, 28335, 382, 5041, 43, 2450, 387, 12, 357...
pragma solidity ^0.4.25; /* ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌ ▐░█▀▀▀▀▀▀▀█░▌▐░▌ ...
exempt the dev from transfer fees so we can do some promo, you'll thank me in the morning
if (msg.sender == dev){
918,610
[ 1, 4625, 348, 7953, 560, 30, 431, 5744, 326, 4461, 628, 7412, 1656, 281, 1427, 732, 848, 741, 2690, 3012, 83, 16, 1846, 5614, 286, 2304, 1791, 316, 326, 31213, 2093, 203, 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, 3639, 309, 261, 3576, 18, 15330, 422, 4461, 15329, 565, 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, ...
pragma solidity ^0.5.0; //Creates the Contract contract Contest { //creating structure to model the contestant struct Contestant { uint id; string name; uint voteCount; } //use mapping to get or fetch the contestant details mapping(uint => Contestant) public contestants; //add a public state variable to...
Creates the Contractcreating structure to model the contestant
contract Contest { struct Contestant { uint id; string name; uint voteCount; } mapping(uint => Contestant) public contestants; uint public contestantCount; constructor () public { addContestant('Tom'); addContestant("Jerry"); } function addContestant (string memory _name) private { contestantCo...
12,676,537
[ 1, 4625, 348, 7953, 560, 30, 10210, 326, 13456, 23799, 3695, 358, 938, 326, 466, 395, 970, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1816, 395, 288, 203, 203, 202, 1697, 1816, 395, 970, 288, 203, 202, 202, 11890, 612, 31, 203, 202, 202, 1080, 508, 31, 203, 202, 202, 11890, 12501, 1380, 31, 203, 202, 97, 203, 203, 203, 203, 203, 202, 6770, 12, 11890, ...
./partial_match/1/0xd9b7eC74C06c558A59AfdE6a16E614950730F44d/sources/contracts/libs/v0.8.x/Bytes32Strings.sol
* @dev Intended to convert a `bytes32`-encoded string literal to `string`. Trims zero padding to arrive at original string literal./ free memory pointer update free memory pointer to new "memory end" (offset is 64-bytes: 32 for length, 32 for data) store length in first 32-byte memory slot write actual data in second 3...
) internal pure returns (string memory result) { uint8 length = 0; while (source[length] != 0 && length < 32) { length++; } assembly { result := mload(0x40) mstore(0x40, add(result, 0x40)) mstore(result, length) mstore(add(r...
3,903,698
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 657, 8140, 358, 1765, 279, 1375, 3890, 1578, 68, 17, 10787, 533, 7158, 358, 1375, 1080, 8338, 7105, 87, 3634, 4992, 358, 2454, 688, 622, 2282, 533, 7158, 18, 19, 4843, 3778, 4407, 1089, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 2713, 16618, 1135, 261, 1080, 3778, 563, 13, 288, 203, 3639, 2254, 28, 769, 273, 374, 31, 203, 3639, 1323, 261, 3168, 63, 2469, 65, 480, 374, 597, 769, 411, 3847, 13, 288, 203, 5411, 769, 9904, 31, 203, 3639, 289, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/c...
handled in the Ownable import
payable(owner()).transfer(BOI_PRICE.mul(luckyOwners.length));
5,962,751
[ 1, 4625, 348, 7953, 560, 30, 7681, 316, 326, 14223, 6914, 1930, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 8843, 429, 12, 8443, 1435, 2934, 13866, 12, 5315, 45, 67, 7698, 1441, 18, 16411, 12, 80, 9031, 93, 5460, 414, 18, 2469, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0xb2A093d117EE06ae270136F854AA3C1F25322202/sources/KINGSHIBA.sol
* @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut...
abstract contract Context { pragma solidity 0.8.20; function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
2,666,282
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 28805, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 3462, 31, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, 203, 203...
./full_match/1/0xDB094c58278501a87f3df5f17a0F0EC58a1DeE61/sources/ICOtpc__1_.sol
* @return the address where funds are collected./
function getwallet() public view returns (address payable) { return _wallet; }
4,915,589
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 326, 1758, 1625, 284, 19156, 854, 12230, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 19177, 1435, 1071, 1476, 1135, 261, 2867, 8843, 429, 13, 288, 203, 3639, 327, 389, 19177, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/3/0xb63C065991BDc3dB72e3Ab0bD4f454f259aa0215/sources/browser/IAmTokenPresale2.sol
Increase the balance of the receiever that is account with address _to
balances[_to] = balances[_to].add(_value);
8,252,843
[ 1, 4625, 348, 7953, 560, 30, 225, 657, 11908, 326, 11013, 434, 326, 2637, 1385, 502, 716, 353, 2236, 598, 1758, 389, 869, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 324, 26488, 63, 67, 869, 65, 273, 324, 26488, 63, 67, 869, 8009, 1289, 24899, 1132, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/42/0x94E64a52FE20AB1AcEA11EAF126314dfc5075319/sources/HYPEAdmin.sol
Accumulated HYPEs per share, times 1e12. See below.
uint256 accHYPEPerShare;
3,357,696
[ 1, 4625, 348, 7953, 560, 30, 225, 15980, 5283, 690, 670, 1738, 87, 1534, 7433, 16, 4124, 404, 73, 2138, 18, 2164, 5712, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 4078, 44, 1738, 2173, 9535, 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, ...
./full_match/106/0x5Cd38482B208F22f714be5E8ca55f6A2A55fc155/sources/XENEVFTorrent/XENEV.sol
INTERNAL TYPE TO DESCRIBE A XEN STAKE
struct StakeInfo { uint256 term; uint256 maturityTs; uint256 amount; uint256 apy; } uint256 public constant SECONDS_IN_DAY = 3_600 * 24; uint256 public constant DAYS_IN_YEAR = 365; uint256 public constant GENESIS_RANK = 1; uint256 public constant MIN_TERM = 1 *...
7,099,387
[ 1, 4625, 348, 7953, 560, 30, 225, 18139, 3463, 8493, 2030, 26469, 432, 1139, 1157, 2347, 37, 6859, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1958, 934, 911, 966, 288, 203, 3639, 2254, 5034, 2481, 31, 203, 3639, 2254, 5034, 29663, 17218, 31, 203, 3639, 2254, 5034, 3844, 31, 203, 3639, 2254, 5034, 513, 93, 31, 203, 565, 289, 203, 203, 565, 2254, 5034, 1071, 5381, ...
// SPDX-License-Identifier: MIT // pragma solidity ^0.5.1; pragma solidity ^0.6.0; import "./TimeLockFixed.sol"; import "@nomiclabs/buidler/console.sol"; contract TimeLockAttackFixed { TimeLockFixed private timeLock; // intialise the timeLock variable with the contract address constructor(address payabl...
intialise the timeLock variable with the contract address
contract TimeLockAttackFixed { TimeLockFixed private timeLock; pragma solidity ^0.6.0; constructor(address payable _timeLockAddress) public { timeLock = TimeLockFixed(_timeLockAddress); console.log("Info@TimeLockAttack.sol::constructor ContBal(%s)", address(this).balance ); } function...
14,112,512
[ 1, 4625, 348, 7953, 560, 30, 225, 509, 649, 784, 326, 813, 2531, 2190, 598, 326, 6835, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 16351, 2647, 2531, 3075, 484, 7505, 288, 203, 203, 565, 2647, 2531, 7505, 3238, 813, 2531, 31, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, 20, 31, 203, 565, 3885, 12, 2867, 8843, 429, 389, 957, 2531, 1887, 13, 1071, ...
./full_match/3/0x87Ef307670bB136c3B67280900298DCC3B505B51/sources/browser/maestro_products_working.sol
This notifies clients about the creation of a new component
event NewComponent(uint indexed serialNumber, string indexed name, bytes32 indexed checksum);
14,239,537
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 19527, 7712, 2973, 326, 6710, 434, 279, 394, 1794, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 871, 1166, 1841, 12, 11890, 8808, 2734, 1854, 16, 533, 8808, 508, 16, 1731, 1578, 8808, 6697, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
//Address: 0x7e66e6d17a5ffa489e5f6fd04c084b708897977b //Contract name: Hut34ICO //Balance: 0.247 Ether //Verification Date: 10/30/2017 //Transacion Count: 2 // CODE STARTS HERE /* file: Hut34ICO.sol ver: 0.2.4_deploy author: Darryl Morris date: 27-Oct-2017 email: o0ragman0o AT gmail.com (c) Darryl Morris 201...
Calculates the sale and wholesale portion of tokens for a given value of wei at the time of calling. Get wholesale portion of ether and tokens No wholesale purchse Total wholesale purchase over funded for remaining wholesale tokens Remaining wei used to purchase retail tokens Get retail rate
function ethToTokens(uint _wei) public view returns (uint allTokens_, uint wholesaleTokens_) { uint wsValueLeft = wholeSaleValueLeft(); uint wholesaleSpend = fundFailed() ? 0 : icoSucceeded ? 0 : now < START_DATE ? 0 : ...
2,474,292
[ 1, 4625, 348, 7953, 560, 30, 225, 26128, 326, 272, 5349, 471, 600, 9112, 5349, 14769, 434, 2430, 364, 279, 864, 460, 434, 732, 77, 622, 326, 813, 434, 4440, 18, 968, 600, 9112, 5349, 14769, 434, 225, 2437, 471, 2430, 2631, 600, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13750, 774, 5157, 12, 11890, 389, 1814, 77, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 777, 5157, 67, 16, 2254, 600, 9112, 5349, 5157, 67, 13, 203, 565, 288, 203, 3639, 2254, 4945, 620, 3910, 2...
./full_match/5/0x1437426f3738C0609bA156a77f164F54706dB8EE/sources/contracts/RaiseFundContract.sol
Check that the owner has not exceeded the maximum number of campaigns Check that the deadline is in the future Check that the minimum investment is a positive number Check that the goal is a positive number Increment the number of campaigns created by the owner Initialize the new campaign Log the creation of a new cam...
function createCampaign( string memory _logoUrl, string memory _bannerUrl, string memory _name, string memory _description, string memory _industry, string memory _videoUrl, uint256 _goal, uint256 _minInvestment, uint256 _valuationCap, ...
1,875,293
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 716, 326, 3410, 711, 486, 12428, 326, 4207, 1300, 434, 8965, 87, 2073, 716, 326, 14096, 353, 316, 326, 3563, 2073, 716, 326, 5224, 2198, 395, 475, 353, 279, 6895, 1300, 2073, 716, 326, 17683, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 752, 13432, 12, 203, 3639, 533, 3778, 389, 19882, 1489, 16, 203, 3639, 533, 3778, 389, 16563, 1489, 16, 203, 3639, 533, 3778, 389, 529, 16, 203, 3639, 533, 3778, 389, 3384, 16, 203, 3639, 533, 3778, 389, 728, 407, 698...
pragma solidity ^0.4.13; /** * @title Array16 Library * @author Majoolr.io * * version 1.0.0 * Copyright (c) 2017 Majoolr, LLC * The MIT License (MIT) * https://github.com/Majoolr/ethereum-libraries/blob/master/LICENSE * * The Array16 Library provides a few utility functions to work with * storage uint16[] t...
@dev Returns the max value in an array. @param self Storage array containing uint256 type variables @return maxValue The highest value in the array
function getMax(uint16[] storage self) constant returns(uint16 maxValue) { uint256 term; assembly { mstore(0x60,self_slot) maxValue := 0 term := sload(add(sha3(0x60,0x20),div(i,16))) switch mod(i,16) case 1 { term := div(term,65536) } } ...
15,288,619
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 326, 943, 460, 316, 392, 526, 18, 632, 891, 365, 5235, 526, 4191, 2254, 5034, 618, 3152, 632, 2463, 18666, 1021, 9742, 460, 316, 326, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7288, 12, 11890, 2313, 8526, 2502, 365, 13, 5381, 1135, 12, 11890, 2313, 18666, 13, 288, 203, 565, 2254, 5034, 2481, 31, 203, 565, 19931, 288, 203, 1377, 312, 2233, 12, 20, 92, 4848, 16, 2890, 67, 14194, 13, 203, 1377...
./full_match/80001/0x93606Db8e1340eBa115633Cc8a031D379D7638C6/sources/contracts/dev/vendor/openzeppelin-solidity/v.4.8.0/contracts/utils/SafeCast.sol
* @dev Returns the downcasted int120 from int256, reverting on overflow (when the input is less than smallest int120 or greater than largest int120). Counterpart to Solidity's `int120` operator. Requirements: - input must fit into 120 bits _Available since v4.7._/
function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); require(downcasted == value, "SafeCast: value doesn't fit in 120 bits"); }
5,640,087
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 2588, 4155, 329, 509, 22343, 628, 509, 5034, 16, 15226, 310, 603, 9391, 261, 13723, 326, 810, 353, 5242, 2353, 13541, 509, 22343, 578, 6802, 2353, 12756, 509, 22343, 2934, 9354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20771, 22343, 12, 474, 5034, 460, 13, 2713, 16618, 1135, 261, 474, 22343, 2588, 4155, 329, 13, 288, 203, 565, 2588, 4155, 329, 273, 509, 22343, 12, 1132, 1769, 203, 565, 2583, 12, 2378, 4155, 329, 422, 460, 16, 315, 9...
./partial_match/1/0xB690fC16279C096999264e3C049fA133024b4d69/sources/contracts/storefront/AbstractStorefront.sol
* @notice The number of sales on the storefront/
uint256 public numSales;
3,599,558
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1021, 1300, 434, 272, 5408, 603, 326, 1707, 10211, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 818, 23729, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...